|
@@ -60,12 +60,18 @@
|
|
|
:exam-id="filter.examId"
|
|
|
></summary-line>
|
|
|
<div class="part-filter-info-sub">
|
|
|
- <el-button
|
|
|
- icon="el-icon-phone-outline"
|
|
|
- type="success"
|
|
|
- @click="toCommunication"
|
|
|
- >通话待办</el-button
|
|
|
+ <el-badge
|
|
|
+ :value="communicationCount"
|
|
|
+ :max="99"
|
|
|
+ :hidden="!communicationCount"
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ icon="icon icon-ring"
|
|
|
+ type="success"
|
|
|
+ @click="toCommunication"
|
|
|
+ >通话待办</el-button
|
|
|
+ >
|
|
|
+ </el-badge>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -187,11 +193,20 @@
|
|
|
<el-table-column prop="paperDownload" label="试题下载"></el-table-column>
|
|
|
<el-table-column prop="status" label="考试状态"></el-table-column>
|
|
|
<el-table-column prop="progress" label="进度"></el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="clientCommunicationStatus"
|
|
|
- label="通讯"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column prop="subjectCode" label="推流通讯"></el-table-column>
|
|
|
+ <el-table-column prop="clientCommunicationStatus" label="通讯">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <right-or-wrong
|
|
|
+ :status="scope.row.clientCommunicationStatus"
|
|
|
+ ></right-or-wrong>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="subjectCode" label="推流通讯">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <right-or-wrong
|
|
|
+ :status="scope.row.clientCommunicationStatus"
|
|
|
+ ></right-or-wrong>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="clientCurrentIp" label="IP"></el-table-column>
|
|
|
<el-table-column prop="updateTime" label="更新时间"></el-table-column>
|
|
|
<el-table-column prop="warningCount" label="预警数"></el-table-column>
|
|
@@ -251,6 +266,7 @@ import {
|
|
|
invigilateExamFinish,
|
|
|
} from "@/api/invigilation";
|
|
|
import ExamBatchDialog from "./ExamBatchDialog";
|
|
|
+import RightOrWrong from "../common/RightOrWrong";
|
|
|
import InvigilationStudent from "../common/InvigilationStudent";
|
|
|
import SummaryLine from "../common/SummaryLine";
|
|
|
import handleRollupDialog from "./handleRollupDialog";
|
|
@@ -260,6 +276,7 @@ export default {
|
|
|
name: "realtime-monitoring",
|
|
|
components: {
|
|
|
ExamBatchDialog,
|
|
|
+ RightOrWrong,
|
|
|
InvigilationStudent,
|
|
|
SummaryLine,
|
|
|
handleRollupDialog,
|
|
@@ -277,6 +294,7 @@ export default {
|
|
|
minWarningCount: undefined,
|
|
|
},
|
|
|
hasNewWarning: false,
|
|
|
+ communicationCount: 0,
|
|
|
curExamBatch: {},
|
|
|
curViewingAngle: {},
|
|
|
current: 1,
|
|
@@ -291,7 +309,29 @@ export default {
|
|
|
dataList: [
|
|
|
{
|
|
|
breachStatus: 0,
|
|
|
- clientCommunicationStatus: "12",
|
|
|
+ clientCommunicationStatus: 0,
|
|
|
+ clientCurrentIp: "192.168.10.12",
|
|
|
+ courseCode: "F001",
|
|
|
+ courseName: "数学",
|
|
|
+ examActivityId: 0,
|
|
|
+ examId: 111,
|
|
|
+ examRecordId: 222,
|
|
|
+ examStudentId: 333,
|
|
|
+ identity: "000000000000008",
|
|
|
+ monitorStatusSource: "",
|
|
|
+ name: "楚一一",
|
|
|
+ paperDownload: 0,
|
|
|
+ progress: 0,
|
|
|
+ roomCode: "123",
|
|
|
+ roomName: "第一教师",
|
|
|
+ status: "1",
|
|
|
+ statusCode: "1",
|
|
|
+ updateTime: "2020-12-12",
|
|
|
+ warningCount: 0,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ breachStatus: 0,
|
|
|
+ clientCommunicationStatus: 1,
|
|
|
clientCurrentIp: "192.168.10.12",
|
|
|
courseCode: "F001",
|
|
|
courseName: "数学",
|
|
@@ -329,7 +369,25 @@ export default {
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
- mounted() {},
|
|
|
+ mounted() {
|
|
|
+ window.inviligateWaining = (id) => {
|
|
|
+ console.log(id);
|
|
|
+ };
|
|
|
+ this.$notify({
|
|
|
+ duration: 0,
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ customClass: "msg-monitor-magbox",
|
|
|
+ position: "bottom-right",
|
|
|
+ offset: 50,
|
|
|
+ message: `
|
|
|
+ <div class="msg-monitor">
|
|
|
+ <span class="msg-monitor-icon"><i class="icon icon-warning"></i></span>
|
|
|
+ <span>注意:<b>张三意识</b>发现违纪,</span>
|
|
|
+ <span class="msg-monitor-action" onclick="window.inviligateWaining(12)">立即处理</span>
|
|
|
+ </div>
|
|
|
+ `,
|
|
|
+ });
|
|
|
+ },
|
|
|
methods: {
|
|
|
async getList() {
|
|
|
const datas = {
|
|
@@ -412,6 +470,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
+ beforeDestroy() {
|
|
|
+ delete window.inviligateWaining;
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|