fix : 修复路由规范问题
This commit is contained in:
@@ -122,7 +122,7 @@ const search = (val) => {
|
||||
}
|
||||
const handleAdd = () => {
|
||||
router.push({
|
||||
path: '/project/demand/collection/add',
|
||||
name: 'Collection/add',
|
||||
query: {
|
||||
isAdd: 1
|
||||
}
|
||||
@@ -130,7 +130,7 @@ const handleAdd = () => {
|
||||
}
|
||||
const handleEdit = (row) => {
|
||||
router.push({
|
||||
path: '/project/demand/collection/edit',
|
||||
name: 'Collection/edit',
|
||||
query: {
|
||||
id: row.requirementId
|
||||
}
|
||||
@@ -138,7 +138,7 @@ const handleEdit = (row) => {
|
||||
}
|
||||
const handleDetail = (row) => {
|
||||
router.push({
|
||||
path: '/project/demand/collection/detail',
|
||||
name: 'Collection/detail',
|
||||
query: {
|
||||
id: row.requirementId
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ const headBtnClick = (key) => {
|
||||
|
||||
const handleAdd = () => {
|
||||
router.push({
|
||||
name: 'Demandsummaryadd',
|
||||
name: 'Summary/add',
|
||||
query: {}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -131,12 +131,14 @@ const tableConfig = reactive({
|
||||
prop: 'status',
|
||||
label: '发布状态',
|
||||
align: 'center',
|
||||
showOverflowTooltip: false,
|
||||
currentRender: ({row, index}) => (<Tag dictType={'process_state'} value={row.state}/>)
|
||||
},
|
||||
{
|
||||
prop: 'oper',
|
||||
label: '操作',
|
||||
align: 'center',
|
||||
showOverflowTooltip: false,
|
||||
currentRender: ({row, index}) => {
|
||||
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
|
||||
if (row.state === '3' || row.state === '2') {
|
||||
@@ -163,7 +165,7 @@ const tableConfig = reactive({
|
||||
}
|
||||
}
|
||||
],
|
||||
api: '',
|
||||
api: '/workflow/mosr/requirement',
|
||||
params: {},
|
||||
})
|
||||
|
||||
@@ -174,7 +176,7 @@ const search = (val) => {
|
||||
|
||||
const handleDetail = (row) => {
|
||||
router.push({
|
||||
path: '/project/management/detail',
|
||||
name:'Detail',
|
||||
query: {
|
||||
id: row.requirementId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user