退回/上报去除校验

Lvtianfang
吕天方 2 months ago
parent b151d746a5
commit 26e93afcb3

@ -6,7 +6,7 @@ ENV = 'development'
# 若依管理系统/开发环境
# VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = 'http://192.168.0.116:9102/api'
VUE_APP_BASE_API = 'http://192.168.0.109:9102/api'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -234,7 +234,7 @@ export default {
type: "warning",
}).then(() => {
if(id !== 3) {
if(this.multipleSelection.length > 0 || this.backupsInfo.title !== this.audioInfo.title) {
// if(this.multipleSelection.length > 0 || this.backupsInfo.title !== this.audioInfo.title) {
if(this.backupsInfo.title !== this.audioInfo.title) {
eventChangeIsReport({isReport:id,caseSerial:this.multipleSelection,innerEventId:this.audioInfo.innerEventId,newTitle:this.audioInfo.title,oldTitle:this.backupsInfo.title}).then(res=>{
// console.log(res);
@ -258,9 +258,9 @@ export default {
this.close();
})
}
} else {
this.$message.error(`您未做任何操作,请修改后再${id == 1 ? '上报驾驶仓' : id == 2 ? '退回重训练' : ''}`);
}
// } else {
// this.$message.error(`${id == 1 ? '' : id == 2 ? '退' : ''}`);
// }
} else {
if(this.backupsInfo.title !== this.audioInfo.title) {
this.$message.error(`您已修改标题,请上报驾驶舱或退回重训练`);

@ -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(`您已修改标题,请上报驾驶舱或退回重训练`);

Loading…
Cancel
Save