+
符合
不符合
@@ -158,7 +152,7 @@ export default {
size: 10
},
disabled:true,
- multipleSelection: {},
+ multipleSelection: [],
innerVisible:false,
auditStatusTwo: 1,
}
@@ -186,25 +180,28 @@ export default {
this.showCK = false;
this.InputLoading = false;
this.loading = false;
- this.multipleSelection = {};
- this.$emit('closeDialog')
+ this.multipleSelection = [];
+ this.pages = {
+ current: 1,
+ size: 10
+ }
},
getList(id){
this.loading = true;
auditList(id,{...this.pages}).then(res=>{
- this.tableData = [...res.data.records];
+ const deepCopy = JSON.parse(JSON.stringify(res.data.records));
+ this.tableData = deepCopy;
if(this.multipleSelection.length > 0) {
- this.tableData.map(item=>{
- this.multipleSelection.map(itemTwo=>{
- if(item.caseSerial = itemTwo) {
- // item.showTags = true;
+ this.tableData.forEach(item=>{
+ this.$set(item, 'radio', 1);
+ this.multipleSelection.forEach(itemTwo=>{
+ if(itemTwo == item.caseSerial) {
this.$set(item, 'radio', 2);
}
})
})
} else {
this.tableData.map(item=>{
- // item.showTags = true;
this.$set(item, 'radio', 1);
})
}
@@ -221,72 +218,30 @@ export default {
this.$refs.urgencyAudit.open(this.audioInfo,item);
},
changRadio(row){
- console.log(row,"变化");
+ if(row.radio == 2) {
+ this.multipleSelection.push(row.caseSerial);
+ } else if(row.radio == 1){
+ this.multipleSelection = this.multipleSelection.filter((item)=> item !== row.caseSerial)
+ }
},
- // 标记非同一事件
- // sign(row){
- // this.tableData.map(item=>{
- // if(item.caseSerial == row.caseSerial) {
- // item.showTags = !item.showTags;
- // // console.log(item.showTags,"item.showTags");
- // if(item.showTags) {
- // // 非同人
- // if(this.audioInfo.msgType == '2') {
- // this.multipleSelection[row.caseSerial] = 2;
- // } else {
- // // 非同一事件/非同一人事件/非重点事件
- // this.multipleSelection[row.caseSerial] = 1;
- // }
-
- // } else {
- // // this.multipleSelection = this.multipleSelection.filter(itemTwo => itemTwo !== row.caseSerial);
- // delete this.multipleSelection[row.caseSerial];
- // }
- // }
- // })
- // },
- // signTwo(row) {
- // this.tableData.map(item=>{
- // if(item.caseSerial == row.caseSerial) {
- // item.showTags = !item.showTags;
- // // console.log(item.showTags,"item.showTags");
- // if(item.showTags) {
- // // 非同诉
- // this.multipleSelection[row.caseSerial] = 3;
-
- // } else {
- // // this.multipleSelection = this.multipleSelection.filter(itemTwo => itemTwo !== row.caseSerial);
- // delete this.multipleSelection[row.caseSerial];
- // }
- // }
- // })
- // },
// 上报驾驶舱/退回重训练
reported(id){
- // console.log(this.audioInfo.innerEventId);
- if(id == 1) {
- // 上报驾驶舱
- eventChangeIsReport({isReport:1,caseSerial:this.multipleSelection,innerEventId:this.audioInfo.innerEventId,msgType:this.audioInfo.msgType}).then(res=>{
- // console.log(res);
- this.multipleSelection = {};
- this.$message({
- type: "success",
- message: "已上报驾驶舱!",
- });
- this.close();
- })
- } else {
- // 退回重训练
- eventChangeIsReport({isReport:2,caseSerial:this.multipleSelection,innerEventId:this.audioInfo.innerEventId,msgType:this.audioInfo.msgType}).then(res=>{
+ this.$confirm(`确定要${id == 1 ? '重新上报驾驶仓' : '退回重训练'}吗?`, "警告", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ }).then(() => {
+ eventChangeIsReport({isReport:id,caseSerial:this.multipleSelection,innerEventId:this.audioInfo.innerEventId}).then(res=>{
// console.log(res);
- this.multipleSelection = {};
+ this.multipleSelection = [];
this.$message({
type: "success",
- message: "已退回重训练!",
+ message: id == 1 ? '已上报驾驶舱' : '已退回重训练' + "!",
});
+ this.$emit('closeDialog')
this.close();
})
- }
+ })
},
// 查看标题按钮
lookTitleBefore(){
@@ -299,8 +254,6 @@ export default {
// 标题失去焦点
titleBlur(){
this.disabled = true;
- // console.log(this.backupsInfo.title);
- // console.log(this.audioInfo.title);
if(this.backupsInfo.title !== this.audioInfo.title) {
this.InputLoading = true;
editTitle({title:this.audioInfo.title, innerEventId:this.audioInfo.innerEventId}).then(res=>{
diff --git a/src/views/components/urgencyAudit.vue b/src/views/components/urgencyAudit.vue
index 885f7d1..d9f83fd 100644
--- a/src/views/components/urgencyAudit.vue
+++ b/src/views/components/urgencyAudit.vue
@@ -24,7 +24,9 @@
事件名称
:
-