fix : 修复路由跳转
This commit is contained in:
@@ -176,10 +176,11 @@ const handleDownload = (row) => {
|
||||
})
|
||||
}
|
||||
const compositeParam = (item) => {
|
||||
console.log('router.currentRoute.value.path',router.currentRoute.value.path)
|
||||
let tag = ''
|
||||
if (!formData.value.collectType && router.currentRoute.value.name === 'Requirement/add') {
|
||||
tag = '需求征集'
|
||||
}
|
||||
// if (!formData.value.collectType && router.currentRoute.value.path === 'Requirement/add') {
|
||||
// tag = '需求征集'
|
||||
// }
|
||||
return {
|
||||
fileId: item.id,
|
||||
size: item.size,
|
||||
|
||||
@@ -149,7 +149,7 @@ const search = (val) => {
|
||||
const handleAdd = () => {
|
||||
//新增
|
||||
router.push({
|
||||
name: 'Requirement/add',
|
||||
name:'Requirement/add',
|
||||
query: {
|
||||
isAdd: 1
|
||||
}
|
||||
@@ -157,7 +157,7 @@ const handleAdd = () => {
|
||||
}
|
||||
const handleEdit = (row) => {
|
||||
router.push({
|
||||
name: 'Requirement/edit',
|
||||
name:'Requirement/edit',
|
||||
query: {
|
||||
id: row.requirementId
|
||||
}
|
||||
@@ -175,7 +175,7 @@ const handleDelete = (row) => {
|
||||
}
|
||||
const handleDetail = (row) => {
|
||||
router.push({
|
||||
name: 'Detail',
|
||||
name:'Requirement/detail',
|
||||
query: {
|
||||
id: row.requirementId
|
||||
}
|
||||
@@ -183,7 +183,7 @@ const handleDetail = (row) => {
|
||||
}
|
||||
const handleReport = (row) => {
|
||||
router.push({
|
||||
name: 'Summary/add',
|
||||
name:'Summary/add',
|
||||
query: {
|
||||
id:row.requirementId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user