|
|
@ -95,15 +95,6 @@ export default { |
|
|
|
this.prohibitEditing = true |
|
|
|
} |
|
|
|
getDFMaintenanceRecords(row.id).then((res) => { |
|
|
|
console.log('🚀res🚀', res) |
|
|
|
// this.ruleForm.selectUser = [] |
|
|
|
// res.data.operators.forEach(element => { |
|
|
|
// let a = { |
|
|
|
// id: element.uid, |
|
|
|
// lebel: element.name |
|
|
|
// } |
|
|
|
// this.ruleForm.selectUser.push(a) |
|
|
|
// }); |
|
|
|
// 遍历用户数据让select组件渲染选项 |
|
|
|
if (res.data.operators) { |
|
|
|
this.personnelList = [] |
|
|
@ -127,6 +118,15 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
this.ruleForm = res.data |
|
|
|
// 渲染选中项 |
|
|
|
this.ruleForm.selectUser = [] |
|
|
|
res.data.operators.forEach(element => { |
|
|
|
let a = { |
|
|
|
id: element.uid, |
|
|
|
lebel: element.name |
|
|
|
} |
|
|
|
this.ruleForm.selectUser.push(a) |
|
|
|
}); |
|
|
|
this.dialogVisible = true |
|
|
|
}) |
|
|
|
}, |
|
|
|