|
@@ -159,8 +159,8 @@
|
|
|
<el-button
|
|
|
icon="icon icon-info-danger"
|
|
|
size="mideum"
|
|
|
- @click="toBreach"
|
|
|
- >{{ isBreach ? "撤销违纪" : "违纪处理" }}</el-button
|
|
|
+ @click="toBreach(0)"
|
|
|
+ >违纪处理</el-button
|
|
|
>
|
|
|
</div>
|
|
|
<div
|
|
@@ -213,7 +213,16 @@
|
|
|
</div>
|
|
|
<div class="warning-track-body">
|
|
|
<div class="warning-track-info">
|
|
|
- <h3>{{ log.title }}</h3>
|
|
|
+ <div class="warning-track-info-title">
|
|
|
+ <template v-if="log.type === 'BREACH_HANDLE'">
|
|
|
+ <el-button type="text" @click="toBreach(1, log.id)"
|
|
|
+ >撤销违纪</el-button
|
|
|
+ >
|
|
|
+ <!-- todo: 日志撤销状态 -->
|
|
|
+ <span>已撤销</span>
|
|
|
+ </template>
|
|
|
+ <h3>{{ log.title }}</h3>
|
|
|
+ </div>
|
|
|
<p v-if="log.desc">{{ log.desc }}</p>
|
|
|
<p>
|
|
|
时间段:
|
|
@@ -617,7 +626,7 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
- toBreach() {
|
|
|
+ toBreach(status = 0, logId = null) {
|
|
|
this.curDetail = {
|
|
|
examStudentName: this.detailInfo.examStudentName,
|
|
|
identity: this.detailInfo.identity,
|
|
@@ -625,7 +634,8 @@ export default {
|
|
|
description: "",
|
|
|
examRecordId: [this.detailInfo.examRecordId],
|
|
|
breachStatus: this.detailInfo.breachStatus,
|
|
|
- status: this.detailInfo.breachStatus ? 0 : 1,
|
|
|
+ status,
|
|
|
+ logId,
|
|
|
// 状态,0:新建,1:撤销
|
|
|
// 违纪状态:正常(1)=>新建,违纪(0)=>撤销
|
|
|
type: "",
|