【修改】撤回标签修改

This commit is contained in:
zhoulingpo
2023-05-10 16:38:01 +08:00
parent d235d236e3
commit 0efc8c6c14
@@ -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()