[update] 全局修改跳转标准详情页的判断国标改成外来标准,删除外标

This commit is contained in:
lideqin
2024-06-24 14:59:09 +08:00
parent 7c80ec024b
commit d32b14ba2a
11 changed files with 10 additions and 42 deletions
@@ -332,8 +332,6 @@ export default {
// 需要先判断是哪种标准
if (record.standardType === '1') {
path = '/standardRegulationLibrary/foreignStandardDetailPage'
} else if (record.standardType === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (record.standardType === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
@@ -333,8 +333,6 @@ export default {
// 需要先判断是哪种标准
if (record.source === '1') {
path = '/standardRegulationLibrary/foreignStandardDetailPage'
} else if (record.source === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (record.source === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
@@ -285,14 +285,10 @@ export default {
let path
// 根据来源跳转不同的详情页
switch (source) {
// 国内
case StandardSource.DOMESTIC.value:
// 外来标准
case StandardSource.FOREIGN.value:
path = '/standardRegulationLibrary/foreignStandardDetailPage'
break
// 海外
case StandardSource.OVERSEAS.value:
path = '/standardRegulationLibrary/OverseasStandardDetail'
break
// 企标
case StandardSource.ENTERPRISE.value:
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
@@ -236,8 +236,6 @@ export default {
// 需要先判断是哪种标准
if (this.model.type === '1') {
path = '/standardRegulationLibrary/foreignStandardDetailPage'
} else if (this.model.type === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (this.model.type === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
@@ -272,14 +272,10 @@ export default {
let path
// 根据来源跳转不同的详情页
switch (record.source + '') {
// 国内
case StandardSource.DOMESTIC.value:
// 外来标准
case StandardSource.FOREIGN.value:
path = '/standardRegulationLibrary/foreignStandardDetailPage'
break
// 海外
case StandardSource.OVERSEAS.value:
path = '/standardRegulationLibrary/OverseasStandardDetail'
break
// 企标
case StandardSource.ENTERPRISE.value:
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
@@ -309,8 +309,6 @@ export default {
// 需要先判断是哪种标准
if (this.currStandardType === '1') {
path = '/standardRegulationLibrary/foreignStandardDetailPage'
} else if (this.currStandardType === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (this.currStandardType === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
@@ -536,8 +536,6 @@ export default {
// 需要先判断是哪种标准
if (record.resourceType === '1') {
path = '/standardRegulationLibrary/foreignStandardDetailPage'
} else if (record.resourceType === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (record.resourceType === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
} else if (record.resourceType === '4') {
@@ -358,14 +358,10 @@ export default {
}
// 根据来源跳转不同的详情页
switch (standardSource) {
// 国内
case StandardSource.DOMESTIC.value:
// 外来标准
case StandardSource.FOREIGN.value:
path = '/standardRegulationLibrary/foreignStandardDetailPage'
break
// 海外
case StandardSource.OVERSEAS.value:
path = '/standardRegulationLibrary/OverseasStandardDetail'
break
// 企标
case StandardSource.ENTERPRISE.value:
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
@@ -354,14 +354,10 @@ export default {
let path
// 根据来源跳转不同的详情页
switch (splitStandardSource) {
// 国内
case StandardSource.DOMESTIC.value:
// 外来标准
case StandardSource.FOREIGN.value:
path = '/standardRegulationLibrary/foreignStandardDetailPage'
break
// 海外
case StandardSource.OVERSEAS.value:
path = '/standardRegulationLibrary/OverseasStandardDetail'
break
// 企标
case StandardSource.ENTERPRISE.value:
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
@@ -325,14 +325,10 @@ export default {
let path
// 根据来源跳转不同的详情页
switch (standardInfo.source) {
// 国内
case StandardSource.DOMESTIC.value:
// 外来标准
case StandardSource.FOREIGN.value:
path = '/standardRegulationLibrary/foreignStandardDetailPage'
break
// 海外
case StandardSource.OVERSEAS.value:
path = '/standardRegulationLibrary/OverseasStandardDetail'
break
// 企标
case StandardSource.ENTERPRISE.value:
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
@@ -135,8 +135,6 @@ export default {
// 需要先判断是哪种标准
if (record.source === '1') {
path = '/standardRegulationLibrary/foreignStandardDetailPage'
} else if (record.source === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (record.source === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}