修复监管端发起安全环保检查时,当选择第二个检查人员时,如果是错误的会清除之前选择的bug。

安全环保检查发起优化
songwenxuan 2024-02-23 18:00:49 +08:00
parent cb0de8b3ad
commit 6b493efef0
1 changed files with 4 additions and 4 deletions

View File

@ -519,8 +519,8 @@ export default {
).then((data) => { ).then((data) => {
if (data.message!=null) { if (data.message!=null) {
this.INSPECTION_DEPARTMENT_ID = '' this.INSPECTION_DEPARTMENT_ID = ''
this.INSPECTOR_List = []
this.INSPECTION_USER_ID = '' this.INSPECTION_USER_ID = ''
this.form.inspectorList.splice(i,1)
this.$message.error(data.message) this.$message.error(data.message)
}else { }else {
// //
@ -544,9 +544,9 @@ export default {
}).catch((e) => { }).catch((e) => {
}) })
} }
this.form.inspectorList = [] // this.form.inspectorList = []
this.form.inspectorList.push({ INSPECTION_INSPECTOR_ID: item.INSPECTION_INSPECTOR_ID, INSPECTION_DEPARTMENT_ID: item.INSPECTION_DEPARTMENT_ID, INSPECTION_USER_ID: '', USER_SIDE: item.USER_SIDE }) // this.form.inspectorList.push({ INSPECTION_INSPECTOR_ID: item.INSPECTION_INSPECTOR_ID, INSPECTION_DEPARTMENT_ID: item.INSPECTION_DEPARTMENT_ID, INSPECTION_USER_ID: '', USER_SIDE: item.USER_SIDE })
this.INSPECTOR_List.push([]) // this.INSPECTOR_List.push([])
}, },
// //
getInspectorList(DEPARTMENT_ID, i) { getInspectorList(DEPARTMENT_ID, i) {