|
|
|
@ -150,7 +150,7 @@ |
|
|
|
<el-form-item label="巡检人员" prop="servicemanId"> |
|
|
|
<el-form-item label="巡检人员" prop="servicemanId"> |
|
|
|
<el-select placeholder="请选择巡检人员" :disabled="addForm.taskStatus != 0 || dialogType == '查看'" |
|
|
|
<el-select placeholder="请选择巡检人员" :disabled="addForm.taskStatus != 0 || dialogType == '查看'" |
|
|
|
v-model="addForm.servicemanId" style="width: 98%;"> |
|
|
|
v-model="addForm.servicemanId" style="width: 98%;"> |
|
|
|
<el-option v-for="item in repairPersonList" :key="item.id" :label="item.name" |
|
|
|
<el-option v-for="item in repairPersonList" :key="item.id" :label="item.realName" |
|
|
|
:value="item.id"></el-option> |
|
|
|
:value="item.id"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
@ -1126,15 +1126,11 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleConfirm() { |
|
|
|
handleConfirm() { |
|
|
|
if (this.dialogType == '审核并指派') { |
|
|
|
if (this.dialogType == '审核并指派') { |
|
|
|
let servicemanArr = this.repairPersonList.filter(item => { |
|
|
|
|
|
|
|
return item.id = this.addForm.servicemanId |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
let query = { |
|
|
|
let query = { |
|
|
|
id: this.addForm.id, |
|
|
|
id: this.addForm.id, |
|
|
|
servicemanId: this.addForm.servicemanId, |
|
|
|
servicemanId: this.addForm.servicemanId, |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
console.log('query=========>', query, this.addForm) |
|
|
|
|
|
|
|
taskSupervisorConfirm(query).then(res => { |
|
|
|
taskSupervisorConfirm(query).then(res => { |
|
|
|
if (res.data.code == 200) { |
|
|
|
if (res.data.code == 200) { |
|
|
|
this.$message.success('操作成功') |
|
|
|
this.$message.success('操作成功') |
|
|
|
|