diff --git a/src/components/CustomFormComponents/InputForAllStandards2.vue b/src/components/CustomFormComponents/InputForAllStandards2.vue index cd4220446..442e181b3 100644 --- a/src/components/CustomFormComponents/InputForAllStandards2.vue +++ b/src/components/CustomFormComponents/InputForAllStandards2.vue @@ -36,15 +36,18 @@
- - + + + + + - + @@ -86,36 +89,44 @@ + show-overflow-tooltip + label="标准名称"> + + - - + {{$t('m.dataAcquisition')}} @@ -167,10 +178,15 @@ }, placeholderText: { type: String + }, + enterpriseStandard: { + type: Boolean, + default: false } }, data () { return { + textStatusMap: {}, replaceLawsNumModel: false, sarBussionessLawsEO: { replaceLawsNum: '' @@ -178,6 +194,7 @@ // 代替标准号 replaceLawsNumForm: { standNumber: '', // 政策编号 + standName: '', page: 1, pageSize: this.$store.getters.userInfo.configContent, total: 0, @@ -210,6 +227,11 @@ } }, methods: { + setMap(data) { + data.forEach(item => { + this.$set(this.textStatusMap, item.value, item.label) + }) + }, handleChange (event) { const value = event this.$emit('input', value) @@ -234,15 +256,6 @@ }, res => { this.replaceLawsNumRow = res.data.list this.replaceTotal = res.data.count - // if (this.selectedListRep.length !== 0) { - // this.selectedListRep.map((list) => { - // this.replaceLawsNumRow.map((item) => { - // if (list.id === item.id) { - // item._checked = true - // } - // }) - // }) - // } }, e => { }) } else { @@ -258,15 +271,6 @@ }, res => { this.replaceLawsNumRow = res.data.list this.replaceTotal = res.data.count - // if (this.selectedListRep.length !== 0) { - // this.selectedListRep.map((list) => { - // this.replaceLawsNumRow.map((item) => { - // if (list.id === item.id) { - // item._checked = true - // } - // }) - // }) - // } }, e => { }) } @@ -327,14 +331,26 @@ }, // 点击查看 handlePreview (item) { - let routeUrl = this.$router.resolve({ - name: 'OtherBussStandardDetails', - params: { - id: item.id, - pageType: 'BUSINESS_STAND' - } - }) - window.open(routeUrl.href, '_blank') + if (item.standType === 'INLAND' || item.standType === 'FOREIGN') { + let pageType = item.standType === 'INLAND' ? 'INLAND_STAND' : 'FOREIGN_STAND' + let routeUrl = this.$router.resolve({ + name: 'OtherStandardDetails', + params: { + id: item.id, + pageType: pageType + } + }) + window.open(routeUrl.href, '_blank') + } else { + let routeUrl = this.$router.resolve({ + name: 'OtherBussStandardDetails', + params: { + id: item.id, + pageType: 'BUSINESS_STAND' + } + }) + window.open(routeUrl.href, '_blank') + } }, getResetLawsNumRow () { this.replaceLawsNumForm = { @@ -348,6 +364,14 @@ } this.getReplaceLawsNumRow() } + }, + mounted() { + this.$http.get('sys/dictype/getDicTypeListCode', '', { + _this: this + }, res => { + this.setMap(res.data.WBZTCLASS) + }, e => { + }) } } diff --git a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue index 5c970f03d..be87ace8d 100644 --- a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue +++ b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue @@ -118,7 +118,7 @@ prop="reviseStatus" width="150" align="center" - label="制修订状态"> + label="制修订类型"> @@ -235,7 +235,7 @@
- + @@ -243,7 +243,7 @@ - + @@ -357,13 +357,13 @@
@@ -389,6 +389,7 @@