|
|
@ -324,8 +324,12 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async handleEdit(row) { |
|
|
|
if (this.btnType == 'add') this.save(row); |
|
|
|
else this.edit(row); |
|
|
|
if (row.inspectResult == '0' && row.nextInspectTime == '') { |
|
|
|
this.$message.error('拟复查时间不能为空'); |
|
|
|
} else { |
|
|
|
if (this.btnType == 'add') this.save(row); |
|
|
|
else this.edit(row); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
handleAdd() { |
|
|
@ -360,7 +364,6 @@ export default { |
|
|
|
this.isEdit = false; |
|
|
|
this.btnType = 'cancle'; |
|
|
|
this.getList(); |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
@ -383,10 +386,10 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async del(row) { |
|
|
|
let arr=[row.id] |
|
|
|
let arr = [row.id]; |
|
|
|
// const url = `/actual/base/emergencyEquipment/inspect-delete`; |
|
|
|
const url = `/actual/base/safetyEquipmentInspectRecord/delete`; |
|
|
|
const { data, code, msg } = await requestPost(url,arr); |
|
|
|
const { data, code, msg } = await requestPost(url, arr); |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
this.$message.success('删除成功'); |
|
|
|