From 0efc8c6c14bcdcbb966a634e9b358df4892e8d44 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Wed, 10 May 2023 16:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E6=92=A4?= =?UTF-8?q?=E5=9B=9E=E6=A0=87=E7=AD=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reportProcess/components/reportForm.vue | 27 +++---------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/src/views/reportProcess/components/reportForm.vue b/src/views/reportProcess/components/reportForm.vue index 7acfbe0..8518748 100644 --- a/src/views/reportProcess/components/reportForm.vue +++ b/src/views/reportProcess/components/reportForm.vue @@ -265,8 +265,8 @@ export default { this.tags=JSON.parse(this.processForm.keyContent) } if(this.processForm.labelList && typeof this.processForm.labelList[0]=='string'){ - this.form.labelList.map(item=>{ - return this.getParentsById(cascaderOptions,item) + this.form.labelList= this.processForm.labelList.map(item=>{ + return JSON.parse(item) }) } @@ -275,26 +275,7 @@ export default { } }, methods: { - /* -* @param list 数据列表 -* @param id 后端返回的id -**/ - getParentsById(list, id) { - for (let i in list) { - if (list[i].value == id) { - //查询到就返回该数组对象的value - return [list[i].value] - } - if (list[i].children) { - let node = this.getParentsById(list[i].children, id) - if (node !== undefined) { - //查询到把父节把父节点加到数组前面 - node.unshift(list[i].value) - return node - } - } - } - }, + downFile(id){ if(this.formControl) return this.$api.report.reportDownload({reportId:'',fileId:id}).then(res=>{ @@ -314,7 +295,7 @@ export default { parts.push(item.orgCode) partsName.push(item.orgName) }) - + debugger this.qcrList = checkedList this.form.department = parts.toString() this.form.departmentName = partsName.toString()