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 = () => { const handleAdd = () => {
router.push({ router.push({
path: '/project/demand/collection/add', name: 'Collection/add',
query: { query: {
isAdd: 1 isAdd: 1
} }
@@ -130,7 +130,7 @@ const handleAdd = () => {
} }
const handleEdit = (row) => { const handleEdit = (row) => {
router.push({ router.push({
path: '/project/demand/collection/edit', name: 'Collection/edit',
query: { query: {
id: row.requirementId id: row.requirementId
} }
@@ -138,7 +138,7 @@ const handleEdit = (row) => {
} }
const handleDetail = (row) => { const handleDetail = (row) => {
router.push({ router.push({
path: '/project/demand/collection/detail', name: 'Collection/detail',
query: { query: {
id: row.requirementId id: row.requirementId
} }

View File

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

View File

@@ -131,12 +131,14 @@ const tableConfig = reactive({
prop: 'status', prop: 'status',
label: '发布状态', label: '发布状态',
align: 'center', align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => (<Tag dictType={'process_state'} value={row.state}/>) currentRender: ({row, index}) => (<Tag dictType={'process_state'} value={row.state}/>)
}, },
{ {
prop: 'oper', prop: 'oper',
label: '操作', label: '操作',
align: 'center', align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => { currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}] let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
if (row.state === '3' || row.state === '2') { if (row.state === '3' || row.state === '2') {
@@ -163,7 +165,7 @@ const tableConfig = reactive({
} }
} }
], ],
api: '', api: '/workflow/mosr/requirement',
params: {}, params: {},
}) })
@@ -174,7 +176,7 @@ const search = (val) => {
const handleDetail = (row) => { const handleDetail = (row) => {
router.push({ router.push({
path: '/project/management/detail', name:'Detail',
query: { query: {
id: row.requirementId id: row.requirementId
} }