|
|
|
@ -17,7 +17,9 @@
|
|
|
|
|
<div class="grid-content" v-if="auditStatus == 1">
|
|
|
|
|
<div class="grid-title">概括名称:</div>
|
|
|
|
|
<div class="grid-value-btn">
|
|
|
|
|
<el-input class="grid-value-value" v-loading="InputLoading" @blur="titleBlur" v-model="audioInfo.title" placeholder="概括名称" :disabled="disabled"></el-input>
|
|
|
|
|
<el-tooltip class="item" effect="light" :content="audioInfo.title" placement="top">
|
|
|
|
|
<el-input class="grid-value-value" v-loading="InputLoading" @blur="titleBlur" v-model="audioInfo.title" placeholder="概括名称" :disabled="disabled"></el-input>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
<el-button size="mini" @click="changeTitle"><img src="@/assets/images/changeTitle.png" alt=""> 修改标题</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -28,13 +30,13 @@
|
|
|
|
|
<div class="grid-value">{{ audioInfo.title }}</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
<el-button size="mini" @click="lookTitleBefore"><img src="@/assets/images/changeTitle.png" alt=""> 查看原标题</el-button>
|
|
|
|
|
<el-button size="mini" v-if="audioInfo.titleBefore" @click="lookTitleBefore"><img src="@/assets/images/changeTitle.png" alt=""> 查看原标题</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<div class="grid-content">
|
|
|
|
|
<div class="grid-title">预警时间:</div>
|
|
|
|
|
<div class="grid-value">{{ audioInfo.firstWarnTime }}</div>
|
|
|
|
|
<div class="grid-value">{{ audioInfo.firstWarnTime || audioInfo.caseDate }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
@ -58,14 +60,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<!-- <el-row>
|
|
|
|
|
<el-col :span="14">
|
|
|
|
|
<div class="grid-content">
|
|
|
|
|
<div class="grid-title">事件数量:</div>
|
|
|
|
|
<div class="grid-value">{{ audioInfo.number }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="audit-table">
|
|
|
|
|
<section class="table-box">
|
|
|
|
@ -89,14 +83,14 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="审核结果" v-if="auditStatus == 2" align="center" prop="isReport">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span class="sign">不符合</span>
|
|
|
|
|
<span class="unmark">符合</span>
|
|
|
|
|
<span class="sign" v-if="scope.row.isReport == 1 || scope.row.isReport == 2">不符合</span>
|
|
|
|
|
<span class="unmark" v-else>符合</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="operation-box" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div class="operation" v-if="audioInfo.msgType == '1'">
|
|
|
|
|
<el-radio-group v-model="scope.row.radio" @change.native="changRadio(scope.row)">
|
|
|
|
|
<div class="operation">
|
|
|
|
|
<el-radio-group v-model="scope.row.radio" @change.native="changRadio(scope.row)" v-if="auditStatus == 1">
|
|
|
|
|
<el-radio v-removeAriaHiddent :label="1">符合</el-radio>
|
|
|
|
|
<el-radio v-removeAriaHiddent :label="2" value="13212">不符合</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
@ -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=>{
|
|
|
|
|