紧急事件上报/重训练必须修改标题

Lvtianfang
吕天方 9 months ago
parent e8f1cbf1f1
commit 031a5b9eeb

@ -398,15 +398,19 @@ export default {
type: "warning", type: "warning",
}).then(() => { }).then(() => {
if(id !== 3) { if(id !== 3) {
eventChangeIsReport({isReport:id,caseSerial:[this.audioInfo.caseSerial],innerEventId:this.eventInfo.innerEventId,newTitle:this.eventInfo.title,oldTitle:this.backupsInfo.title}).then(res=>{ if(this.backupsInfo.title == this.eventInfo.title) {
// console.log(res); this.$message.error(`请修改标题`);
this.$message({ } else {
type: "success", eventChangeIsReport({isReport:id,caseSerial:[this.audioInfo.caseSerial],innerEventId:this.eventInfo.innerEventId,newTitle:this.eventInfo.title,oldTitle:this.backupsInfo.title}).then(res=>{
message: id == 1 ? '已上报驾驶舱' : '已退回重训练' + "!", // console.log(res);
}); this.$message({
this.$emit('closeDialog') type: "success",
this.close(); message: id == 1 ? '已上报驾驶舱' : '已退回重训练' + "!",
}) });
this.$emit('closeDialog')
this.close();
})
}
} else { } else {
if(this.backupsInfo.title !== this.eventInfo.title) { if(this.backupsInfo.title !== this.eventInfo.title) {
this.$message.error(`您已修改标题,请上报驾驶舱或退回重训练`); this.$message.error(`您已修改标题,请上报驾驶舱或退回重训练`);

Loading…
Cancel
Save