src/views/eam/repair/modules/EamReportRepairList/EamReportRepairModal.vue
@@ -321,8 +321,8 @@ message: '消息', description: res.message }) that.$emit('ok') that.close() this.$emit('ok', true) that.close(true) } else { that.$notification.warning({ message: '消息', @@ -412,14 +412,22 @@ } }, close() { this.$emit('close') /** * 点检/二保故障报修填报 * @param record */ handleRepair(record) { this.edit(record) }, close(success = false) { this.$emit('close', success) this.visible = false if (this.$refs.form) this.$refs.form.clearValidate() }, handleCancel() { this.close() } this.close(false) // 传递取消状态 }, } } </script>