row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], | row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], | ||||
row.leaderDept?row.leaderDept.split(",").map((item) => parseInt(item)):[] | row.leaderDept?row.leaderDept.split(",").map((item) => parseInt(item)):[] | ||||
); | ); | ||||
let bool = arr.includes(this.user.user.deptId) || row.status == 1; | |||||
let bool = arr.includes(this.user.user.deptId) || row.isApply == 2; | |||||
return bool; | return bool; | ||||
}, | }, | ||||
getDataList() { | getDataList() { | ||||
edit(row) { | edit(row) { | ||||
this.showEdit = true; | this.showEdit = true; | ||||
this.form.chainIndustryId = row.id | this.form.chainIndustryId = row.id | ||||
this.form.isApply = 2 | |||||
}, | }, | ||||
save(){ | save(){ | ||||
applyApi | applyApi |
row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], | row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], | ||||
row.leaderDept?row.leaderDept.split(",").map((item) => parseInt(item)):[] | row.leaderDept?row.leaderDept.split(",").map((item) => parseInt(item)):[] | ||||
); | ); | ||||
let bool = arr.includes(this.user.user.deptId) || row.status == 1; | |||||
let bool = arr.includes(this.user.user.deptId) || row.isApply == 2; | |||||
return bool; | return bool; | ||||
}, | }, | ||||
updateParams(data) { | updateParams(data) { | ||||
let data = res.data.data; | let data = res.data.data; | ||||
this.count = data.total; | this.count = data.total; | ||||
this.dataList = this.reduceData(data.records); | this.dataList = this.reduceData(data.records); | ||||
console.log(this.dataList); | |||||
}) | }) | ||||
.catch((e) => { | .catch((e) => { | ||||
this.dataList = []; | this.dataList = []; | ||||
this.form.type = 1; | this.form.type = 1; | ||||
this.form.itemId = row.basicTaskId; | this.form.itemId = row.basicTaskId; | ||||
this.form.leaderDept = row.leaderDept; | this.form.leaderDept = row.leaderDept; | ||||
console.log(this.form); | |||||
this.form.isApply = 2 | |||||
}, | }, | ||||
save() { | save() { | ||||
applyApi | applyApi |
row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], | row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], | ||||
row.leaderDept?row.leaderDept.split(",").map((item) => parseInt(item)):[] | row.leaderDept?row.leaderDept.split(",").map((item) => parseInt(item)):[] | ||||
); | ); | ||||
let bool = arr.includes(this.user.user.deptId) || row.status == 1; | |||||
let bool = arr.includes(this.user.user.deptId) || row.isApply == 2; | |||||
return bool; | return bool; | ||||
}, | }, | ||||
updateParams(data) { | updateParams(data) { | ||||
this.form.type = 3; | this.form.type = 3; | ||||
this.form.itemId = row.rigidityConstraintId; | this.form.itemId = row.rigidityConstraintId; | ||||
this.form.leaderDept = row.leaderDept; | this.form.leaderDept = row.leaderDept; | ||||
this.form.isApply = 2 | |||||
}, | }, | ||||
save() { | save() { | ||||
console.log(this.form); | console.log(this.form); |
row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], | row.cooperateDept?row.cooperateDept.split(",").map((item) => parseInt(item)):[], | ||||
row.leaderDept?row.leaderDept.split(",").map((item) => parseInt(item)):[] | row.leaderDept?row.leaderDept.split(",").map((item) => parseInt(item)):[] | ||||
); | ); | ||||
let bool = arr.includes(this.user.user.deptId) || row.status == 1; | |||||
let bool = arr.includes(this.user.user.deptId) || row.isApply == 2; | |||||
return bool; | return bool; | ||||
}, | }, | ||||
updateParams(data) { | updateParams(data) { | ||||
this.form.type = 2; | this.form.type = 2; | ||||
this.form.itemId = row.specialPowerId; | this.form.itemId = row.specialPowerId; | ||||
this.form.leaderDept = row.leaderDept; | this.form.leaderDept = row.leaderDept; | ||||
this.form.isApply = 2 | |||||
}, | }, | ||||
save() { | save() { | ||||
console.log(this.form); | console.log(this.form); |