From 8bc236381c8fcac1e52837109820aba04c0d6b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Mon, 9 Aug 2021 16:56:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E7=AC=A6=E5=90=88=E9=A1=B9=E6=95=B4?= =?UTF-8?q?=E6=94=B9=E9=83=A8=E9=97=A8=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/rectificationDatabase.vue | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue b/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue index 22cb60d74..8850b9076 100644 --- a/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue +++ b/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue @@ -458,8 +458,22 @@ export default { _this: this }, res => { this.myLoading.loadData = false - this.nonList = res.data.records this.total = res.data.total + this.nonList = res.data.records + this.nonList.forEach(item => { + // 责任部门转换 + if (item.responsibleUnit !== null || item.responsibleUnit !== "") { + let k = (item.responsibleUnit || "").split(","); + for (let i in this.zrbmOptions) { + for (let m = 0; m < k.length; m++) { + if (this.zrbmOptions[i].value === k[m]) { + k[m] = this.zrbmOptions[i].label; + } + item.responsibleUnit = k.join(","); + } + } + } + }); }, e => { this.myLoading.loadData = false }) @@ -665,18 +679,15 @@ export default { }, }, mounted () { + // 从数据库中查询各下拉框数据 this.$http.get('sys/dictype/getDicTypeListCode', '', { _this: this }, res => { - this.allSelectOptions = res.data || {} this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 - this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 - this.getGzzOption() - this.setMap(this.standStateOptions) + this.getTableByPage() }, e => { }) - this.getTableByPage() // 加载所有的部门 this.getOrgTreeSource() }