fix : 修复路由规范问题

This commit is contained in:
2024-05-14 20:49:46 +08:00
parent ef1acd65b7
commit de0e0be953
3 changed files with 8 additions and 6 deletions

View File

@@ -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
}

View File

@@ -157,7 +157,7 @@ const headBtnClick = (key) => {
const handleAdd = () => {
router.push({
name: 'Demandsummaryadd',
name: 'Summary/add',
query: {}
})
}

View File

@@ -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
}