From 156a0e5899abfc78c8ed84e49593175659d02008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Tue, 27 Jul 2021 19:34:55 +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=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzqdfb/step1.vue | 23 ++++-- .../pages/creatProcess/bzqdfb/step2.vue | 20 +----- .../nonConfomity/pages/historicalData.vue | 70 ++++++++++++------- .../pages/rectificationDatabase.vue | 70 ++++++++++++------- 4 files changed, 107 insertions(+), 76 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue index 302272626..872b4bef9 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue @@ -1066,8 +1066,10 @@ export default { middle.push(item.name); files.push(item.response.data.id); }); - this.fileListName = middle; - this.fileIds = files; + this.listForm.fileName = middle.join(','); + this.listForm.fileId = files.join(','); + // this.fileListName = middle; + // this.fileIds = files; }, fileUpload() { this.fileMadel = true; @@ -1081,12 +1083,17 @@ export default { }); this.fileListName = middle; this.fileIds.push(file.response.data.id); - if(this.listForm.fileName === null ){ + if(this.listForm.fileName === null || this.listForm.fileName == undefined){ this.listForm.fileName = this.fileListName.join(',') - }else { + } else { this.listForm.fileName = this.listForm.fileName + ',' + this.fileListName.join(','); } - this.listForm.fileId = this.listForm.fileId + ',' + this.fileIds.join(',') + if(this.listForm.fileId === null || this.listForm.fileId === undefined){ + this.listForm.fileId = this.fileIds.join(',') + }else { + this.listForm.fileId = this.listForm.fileId + ',' + this.fileIds.join(',') + } + console.log(this.listForm); this.$message.success("上传成功"); } else { this.$message.error(res.message); @@ -1205,7 +1212,11 @@ export default { exits.push(item.id) } }); - this.listForm.inforlist = this.listForm.inforlist + ',' + exits.join(',') + if(this.listForm.inforlist === null || this.listForm.inforlist === undefined){ + this.listForm.inforlist = exits.join(',') + } else { + this.listForm.inforlist = this.listForm.inforlist + ',' + exits.join(',') + } this.standardData = []; this.standModel = false; } diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue index 617b6018c..976a14cda 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue @@ -78,13 +78,8 @@ width="180px" label="标准号"> - {{ scope.row.standSortShow }} {{ - scope.row.standNumber - }}-{{ scope.row.standYear }} - {{ - scope.row.standSortShow }} - {{ scope.row.standNumber }} + {{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }} + {{ scope.row.standSortShow }} {{ scope.row.standNumber }} - - - - - treeClickSearch(treeId, treeNode)" - class="ztree" style="width: 200px;height: 400px;overflow: auto"> - - - + + + {{ opt.label}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + this.allSelectOptions = res.data || {} + this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 + this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 + this.getGzzOption() + this.setMap(this.standStateOptions) + }, e => { + }) this.getTableBtn() this.getOrgTreeSource() } diff --git a/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue b/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue index 38daf3d9b..0dfe97778 100644 --- a/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue +++ b/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue @@ -17,33 +17,39 @@ :maxlength="100"> - - - - - treeClickSearch(treeId, treeNode)" - class="ztree" style="width: 200px;height: 400px;overflow: auto"> - - - + + + {{ opt.label}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + this.allSelectOptions = res.data || {} + this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 + this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 + this.getGzzOption() + this.setMap(this.standStateOptions) + }, e => { + }) this.getTableByPage() // 加载所有的部门 this.getOrgTreeSource()
{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
{{ scope.row.standSortShow }} {{ scope.row.standNumber }}