[update] 修改bug87763

This commit is contained in:
lideqin
2024-07-31 18:32:31 +08:00
parent b91c977df0
commit 92b6515e80
@@ -92,7 +92,7 @@ export default {
warningTab: '', // 预警当前tab warningTab: '', // 预警当前tab
loading: false, loading: false,
columns: [ columns: [
{ // 标准编号 { // 标准编号(跳外标或判断)
title: this.$t('standardNumber'), title: this.$t('standardNumber'),
align: 'left', align: 'left',
dataIndex: 'standardNumber', dataIndex: 'standardNumber',
@@ -101,13 +101,12 @@ export default {
show: () => { show: () => {
return [ return [
this.tabList[0].key, this.tabList[0].key,
this.tabList[2].key,
this.tabList[3].key, this.tabList[3].key,
this.tabList[4].key this.tabList[4].key
].includes(this.warningTab) ].includes(this.warningTab)
} }
}, },
{ // 标准名称 { // 标准名称(跳外标或判断)
title: this.$t('standardName'), title: this.$t('standardName'),
align: 'left', align: 'left',
dataIndex: 'standardName', dataIndex: 'standardName',
@@ -116,12 +115,35 @@ export default {
show: () => { show: () => {
return [ return [
this.tabList[0].key, this.tabList[0].key,
this.tabList[2].key,
this.tabList[3].key, this.tabList[3].key,
this.tabList[4].key this.tabList[4].key
].includes(this.warningTab) ].includes(this.warningTab)
} }
}, },
{ // 标准编号(跳企标)
title: this.$t('standardNumber'),
align: 'left',
dataIndex: 'standardNumber',
width: 120,
scopedSlots: { customRender: 'enStandard' },
show: () => {
return [
this.tabList[2].key
].includes(this.warningTab)
}
},
{ // 标准名称(跳企标)
title: this.$t('standardName'),
align: 'left',
dataIndex: 'standardName',
width: 180,
scopedSlots: { customRender: 'enStandard' },
show: () => {
return [
this.tabList[2].key
].includes(this.warningTab)
}
},
{ // 解读信息 { // 解读信息
title: this.$t('dashboard.tableList.interpretationInfo'), title: this.$t('dashboard.tableList.interpretationInfo'),
align: 'left', align: 'left',
@@ -347,22 +369,27 @@ export default {
detailClick (record) { detailClick (record) {
let path let path
// 根据来源跳转不同的详情页 // 根据来源跳转不同的详情页
switch (record.source + '') { if (record.source) {
// 外来标准 switch (record.source + '') {
case StandardSource.FOREIGN.value: // 外来标准
path = '/standardRegulationLibrary/foreignStandardDetailPage' case StandardSource.FOREIGN.value:
break path = '/standardRegulationLibrary/foreignStandardDetailPage'
// 企标 break
case StandardSource.ENTERPRISE.value: // 企标
path = '/enterpriseStandardLibrary/enterpriseStandardDetail' case StandardSource.ENTERPRISE.value:
break path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
default: break
break default:
break
}
} else {
// 没有来源就是外标
path = '/standardRegulationLibrary/foreignStandardDetailPage'
} }
this.$openPageNewSheet({ this.$openPageNewSheet({
path, path,
query: { query: {
id: record.id id: record.standardId || record.id
} }
}) })
}, },