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