@@ -215,6 +216,7 @@
上报驾驶舱
退回重训练
+ 审核通过
- {{ eventInfo.title }}
- {{ eventInfo.titleBefore }}
+ {{ eventInfo.title }}
+ {{ eventInfo.titleBefore }}
@@ -376,34 +378,50 @@ export default {
titleBlur(){
this.disabled = true;
if(this.backupsInfo.title !== this.eventInfo.title) {
- editTitle({title:this.eventInfo.title, innerEventId:this.eventInfo.innerEventId}).then(res=>{
- if(res.code == 200) {
- this.$message({
- type: "success",
- message: "标题修改成功!",
- });
- }
- })
+ // editTitle({title:this.eventInfo.title, innerEventId:this.eventInfo.innerEventId}).then(res=>{
+ // if(res.code == 200) {
+ // this.$message({
+ // type: "success",
+ // message: "标题修改成功!",
+ // });
+ // }
+ // })
}
},
// 上报驾驶舱/退回重训练
reported(id){
// console.log(this.multipleSelection);
// console.log(this.audioInfo.innerEventId);
- this.$confirm(`确定要${id == 1 ? '重新上报驾驶仓' : '退回重训练'}吗?`, "警告", {
+ this.$confirm(`确定要${id == 1 ? '重新上报驾驶仓' : id == 2 ? '退回重训练' : id == 3 ? '审核通过':''}吗?`, "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
- eventChangeIsReport({isReport:id,caseSerial:[this.audioInfo.caseSerial],innerEventId:this.eventInfo.innerEventId}).then(res=>{
- // console.log(res);
- this.$message({
- type: "success",
- message: id == 1 ? '已上报驾驶舱' : '已退回重训练' + "!",
- });
- this.$emit('closeDialog')
- this.close();
- })
+ if(id !== 3) {
+ 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(`您已修改标题,请上报驾驶舱或退回重训练`);
+ } else {
+ eventChangeIsReport({isReport:id,caseSerial:[this.audioInfo.caseSerial],innerEventId:this.eventInfo.innerEventId}).then(res=>{
+ // console.log(res);
+ this.$message({
+ type: "success",
+ message: "审核完成",
+ });
+ this.$emit('closeDialog')
+ this.close();
+ })
+ }
+ }
})
},
// 修改第二列样式
diff --git a/src/views/warningManage/warningAppear.vue b/src/views/warningManage/warningAppear.vue
index 878ce4a..b2b86fd 100644
--- a/src/views/warningManage/warningAppear.vue
+++ b/src/views/warningManage/warningAppear.vue
@@ -7,13 +7,20 @@
+
+
@@ -381,6 +388,12 @@ export default {
this.queryParams.size = 10;
this.getList();
},
+ handleIconClick(){
+ this.queryParams.title = ''
+ this.queryParams.current = 1;
+ this.queryParams.size = 10;
+ this.getList();
+ },
// 审核
audit(item){
this.urgencyTitle = "事件审核"
diff --git a/src/views/warningManage/warningAudit/emphasisEvent.vue b/src/views/warningManage/warningAudit/emphasisEvent.vue
index 51a19f9..0df4371 100644
--- a/src/views/warningManage/warningAudit/emphasisEvent.vue
+++ b/src/views/warningManage/warningAudit/emphasisEvent.vue
@@ -14,6 +14,7 @@
+
@@ -25,7 +26,7 @@