[update] 修改企标中各模块跳转企标详情的问题

This commit is contained in:
lideqin
2023-09-22 15:21:50 +08:00
parent 6ca2e31211
commit aa767fe2fd
6 changed files with 11 additions and 7 deletions
@@ -353,7 +353,7 @@ export default {
this.$openPageNewSheet({ this.$openPageNewSheet({
path: '/enterpriseStandardLibrary/enterpriseStandardDetail', path: '/enterpriseStandardLibrary/enterpriseStandardDetail',
query: { query: {
id: record.id standardNumber: record.inspectNo
} }
}) })
}, },
@@ -430,7 +430,7 @@ export default {
this.$openPageNewSheet({ this.$openPageNewSheet({
path: '/enterpriseStandardLibrary/enterpriseStandardDetail', path: '/enterpriseStandardLibrary/enterpriseStandardDetail',
query: { query: {
id: record.id standardNumber: record.originEnStandardNo
} }
}) })
}, },
@@ -439,7 +439,7 @@ export default {
this.$openPageNewSheet({ this.$openPageNewSheet({
path: '/enterpriseStandardLibrary/enterpriseStandardDetail', path: '/enterpriseStandardLibrary/enterpriseStandardDetail',
query: { query: {
id: record.id standardNumber: record.newEnStandardNo
} }
}) })
}, },
@@ -194,7 +194,7 @@ export default {
this.$openPageNewSheet({ this.$openPageNewSheet({
path: '/enterpriseStandardLibrary/enterpriseStandardDetail', path: '/enterpriseStandardLibrary/enterpriseStandardDetail',
query: { query: {
id: record.id standardNumber: record.standardNo
} }
}) })
}, },
@@ -201,7 +201,7 @@ export default {
this.$openPageNewSheet({ this.$openPageNewSheet({
path: '/enterpriseStandardLibrary/enterpriseStandardDetail', path: '/enterpriseStandardLibrary/enterpriseStandardDetail',
query: { query: {
id: record.id standardNumber: record.standardNo
} }
}) })
}, },
@@ -194,7 +194,7 @@ export default {
this.$openPageNewSheet({ this.$openPageNewSheet({
path: '/enterpriseStandardLibrary/enterpriseStandardDetail', path: '/enterpriseStandardLibrary/enterpriseStandardDetail',
query: { query: {
id: record.id standardNumber: record.standardNo
} }
}) })
}, },
@@ -194,7 +194,11 @@ export default {
}, },
initData () { initData () {
const params = {} const params = {}
params.id = this.$route.query.id if (this.$route.query.id) {
params.id = this.$route.query.id
} else if (this.$route.query.standardNumber) {
params.standardNumber = this.$route.query.standardNumber
}
params.type = 1 params.type = 1
getEnterpriseStandardInfoById(params).then(res => { getEnterpriseStandardInfoById(params).then(res => {
if (res.success) { if (res.success) {