退回/上报去除校验

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

@ -6,7 +6,7 @@ ENV = 'development'
# 若依管理系统/开发环境 # 若依管理系统/开发环境
# VUE_APP_BASE_API = '/dev-api' # 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 VUE_CLI_BABEL_TRANSPILE_MODULES = true

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

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