【修改】修改权限申请流程
This commit is contained in:
@@ -265,15 +265,36 @@ export default {
|
||||
this.tags=JSON.parse(this.processForm.keyContent)
|
||||
}
|
||||
if(this.processForm.labelList && typeof this.processForm.labelList[0]=='string'){
|
||||
this.form.labelList= this.processForm.labelList.map(item=>{
|
||||
return JSON.parse(item)
|
||||
this.form.labelList.map(item=>{
|
||||
return this.getParentsById(cascaderOptions,item)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
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=>{
|
||||
@@ -293,7 +314,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()
|
||||
|
||||
Reference in New Issue
Block a user