考核任务修改提示添加

main
wanglei 2 months ago
parent b7e05f87f4
commit a0649b7147

@ -820,30 +820,37 @@ export default {
this.reset() this.reset()
const id = row.id || this.ids const id = row.id || this.ids
getPingce(id).then(response => { getPingce(id).then(response => {
this.form = response.data;
if(this.form.bkhdxType==='1'){ if(response.data.state==='0'){
this.form.pcBkhdxs.forEach(item=>{ this.form = response.data;
this.form_bkh_zg.push({ if(this.form.bkhdxType==='1'){
id: item.bkhdxId, this.form.pcBkhdxs.forEach(item=>{
empName: item.bkhdxName, this.form_bkh_zg.push({
deptId: item.deptId, id: item.bkhdxId,
deptName: item.deptName, empName: item.bkhdxName,
deptId: item.deptId,
deptName: item.deptName,
})
}) })
}) }
}
if(this.form.bkhdxType==='0'){ if(this.form.bkhdxType==='0'){
let Keys = []; let Keys = [];
this.form.pcBkhdxs.forEach(item=>{ this.form.pcBkhdxs.forEach(item=>{
Keys.push(item.bkhdxId); Keys.push(item.bkhdxId);
}) })
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.dept.setCheckedKeys(Keys) this.$refs.dept.setCheckedKeys(Keys)
})
}
this.form.pcBkhdxs = [];
this.open = true;
this.title = "修改考核任务";
}else {
this.$alert(`当前状态不可修改,只有未开始状态下可执行修改操作!`, `提示`, {
type: 'Danger'
}) })
} }
this.form.pcBkhdxs = [];
this.open = true;
this.title = "修改考核任务";
}) })
}, },
/** 提交按钮 */ /** 提交按钮 */

Loading…
Cancel
Save