【修改】撤回标签修改
This commit is contained in:
@@ -265,8 +265,8 @@ export default {
|
|||||||
this.tags=JSON.parse(this.processForm.keyContent)
|
this.tags=JSON.parse(this.processForm.keyContent)
|
||||||
}
|
}
|
||||||
if(this.processForm.labelList && typeof this.processForm.labelList[0]=='string'){
|
if(this.processForm.labelList && typeof this.processForm.labelList[0]=='string'){
|
||||||
this.form.labelList.map(item=>{
|
this.form.labelList= this.processForm.labelList.map(item=>{
|
||||||
return this.getParentsById(cascaderOptions,item)
|
return JSON.parse(item)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,26 +275,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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){
|
downFile(id){
|
||||||
if(this.formControl) return
|
if(this.formControl) return
|
||||||
this.$api.report.reportDownload({reportId:'',fileId:id}).then(res=>{
|
this.$api.report.reportDownload({reportId:'',fileId:id}).then(res=>{
|
||||||
@@ -314,7 +295,7 @@ export default {
|
|||||||
parts.push(item.orgCode)
|
parts.push(item.orgCode)
|
||||||
partsName.push(item.orgName)
|
partsName.push(item.orgName)
|
||||||
})
|
})
|
||||||
|
debugger
|
||||||
this.qcrList = checkedList
|
this.qcrList = checkedList
|
||||||
this.form.department = parts.toString()
|
this.form.department = parts.toString()
|
||||||
this.form.departmentName = partsName.toString()
|
this.form.departmentName = partsName.toString()
|
||||||
|
|||||||
Reference in New Issue
Block a user