From c85c9b3e7cc877496a98b79277cacece5719f515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 6 Jan 2022 16:47:45 +0800 Subject: [PATCH 1/3] =?UTF-8?q?ocr=E8=AF=86=E5=88=AB=E6=B6=88=E8=80=97?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../localTool/standardRecognition/index.vue | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/src/pages/localTool/standardRecognition/index.vue b/src/pages/localTool/standardRecognition/index.vue index 656a7b7f0..61cc5c087 100644 --- a/src/pages/localTool/standardRecognition/index.vue +++ b/src/pages/localTool/standardRecognition/index.vue @@ -23,6 +23,7 @@ style="width: 100%" height="100%" @selection-change="standSelectChange" + @sort-change="sortChange" :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" > @@ -97,13 +98,13 @@ - + { if (res.ok) { this.standRecoList = res.data.list; + console.log(this.standRecoList); this.total = res.data.count } }, From 507eeea77294a9c7ff71ac85ec4ef001c076a951 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Thu, 6 Jan 2022 17:23:04 +0800 Subject: [PATCH 2/3] commit --- .../InputForAllStandards2.vue | 106 +++++++++++------- .../enterpriseStandardPlan/index.vue | 13 ++- 2 files changed, 72 insertions(+), 47 deletions(-) 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 @@ - {{ scope.row.standSort }} {{ scope.row.standNumber }}-{{ scope.row.standYear }} - {{ scope.row.standSort }} {{ scope.row.standNumber }} + {{ scope.row.standSort }} {{ scope.row.standNumber }}-{{ scope.row.standYear }} + {{ scope.row.standSort }} {{ scope.row.standNumber }} + show-overflow-tooltip + label="标准名称"> + + {{ scope.row.standName }} + + + {{ scope.row.ssrq }} + {{ scope.row.putTime }} + - - + + {{ textStatusMap[scope.row.textStatus] }} + {{ scope.row.standStatusShow }} + {{$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="制修订类型"> {{ scope.row.reviseStatus === ''? '' : (scope.row.reviseStatus === '1'? '制定' : '修订') }} @@ -235,7 +235,7 @@ - + @@ -243,7 +243,7 @@ - + @@ -357,13 +357,13 @@ - + > @@ -389,6 +389,7 @@