|
@@ -95,13 +95,14 @@
|
|
<ul>
|
|
<ul>
|
|
<li v-for="(log, index) in exceptionSummary" :key="index">
|
|
<li v-for="(log, index) in exceptionSummary" :key="index">
|
|
<i>{{ index + 1 }}</i>
|
|
<i>{{ index + 1 }}</i>
|
|
- <h4>{{ log.info }}</h4>
|
|
|
|
- <p>
|
|
|
|
|
|
+ <h4>{{ log.title }}</h4>
|
|
|
|
+ <p v-if="log.desc">{{ log.desc }}</p>
|
|
|
|
+ <!-- <p>
|
|
时间段:
|
|
时间段:
|
|
<span v-if="log.startTime">{{ log.startTime }} ~ </span>
|
|
<span v-if="log.startTime">{{ log.startTime }} ~ </span>
|
|
<span>{{ log.endTime }}</span>
|
|
<span>{{ log.endTime }}</span>
|
|
</p>
|
|
</p>
|
|
- <p v-if="log.durationTime">持续时长约:{{ log.durationTime }}</p>
|
|
|
|
|
|
+ <p v-if="log.durationTime">持续时长约:{{ log.durationTime }}</p> -->
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
@@ -183,7 +184,8 @@
|
|
:key="log.id"
|
|
:key="log.id"
|
|
>
|
|
>
|
|
<div class="warning-history-info">
|
|
<div class="warning-history-info">
|
|
- <h3>{{ log.info }}</h3>
|
|
|
|
|
|
+ <h3>{{ log.title }}</h3>
|
|
|
|
+ <p v-if="log.desc">{{ log.desc }}</p>
|
|
<p>
|
|
<p>
|
|
时间段:
|
|
时间段:
|
|
<span v-if="log.startTime">{{ log.startTime }} ~ </span>
|
|
<span v-if="log.startTime">{{ log.startTime }} ~ </span>
|
|
@@ -291,7 +293,7 @@ import StudentBreachDialog from "./StudentBreachDialog";
|
|
import WarningTextMessageDialog from "./WarningTextMessageDialog";
|
|
import WarningTextMessageDialog from "./WarningTextMessageDialog";
|
|
import AudioRecordDialog from "./audioRecord/AudioRecordDialog";
|
|
import AudioRecordDialog from "./audioRecord/AudioRecordDialog";
|
|
import SecondTimer from "../common/SecondTimer";
|
|
import SecondTimer from "../common/SecondTimer";
|
|
-import { formatDate, timeNumberToText } from "@/utils/utils";
|
|
|
|
|
|
+import { formatDate, timeNumberToText, objTypeOf } from "@/utils/utils";
|
|
import { mapState } from "vuex";
|
|
import { mapState } from "vuex";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -448,6 +450,13 @@ export default {
|
|
let info = { ...item };
|
|
let info = { ...item };
|
|
info.endTime = formatDate("HH:mm:ss", new Date(info.createTime));
|
|
info.endTime = formatDate("HH:mm:ss", new Date(info.createTime));
|
|
info.viewType = statusTypeMap[info.type] || "common";
|
|
info.viewType = statusTypeMap[info.type] || "common";
|
|
|
|
+ const content = info.info.split(/【|】/);
|
|
|
|
+ if (content.length === 3) {
|
|
|
|
+ info.title = content[1];
|
|
|
|
+ info.desc = content[2];
|
|
|
|
+ } else {
|
|
|
|
+ info.title = content[0];
|
|
|
|
+ }
|
|
if (info.remark && info.remark.includes('{"')) {
|
|
if (info.remark && info.remark.includes('{"')) {
|
|
info.remark = JSON.parse(info.remark);
|
|
info.remark = JSON.parse(info.remark);
|
|
if (info.remark["MIN_CREATE_TIME"]) {
|
|
if (info.remark["MIN_CREATE_TIME"]) {
|
|
@@ -459,10 +468,18 @@ export default {
|
|
info.createTime - info.remark["MIN_CREATE_TIME"]
|
|
info.createTime - info.remark["MIN_CREATE_TIME"]
|
|
);
|
|
);
|
|
}
|
|
}
|
|
- let facePhoto = info.remark["FACE_VERIFY_PHOTO"]
|
|
|
|
- ? [info.remark["FACE_VERIFY_PHOTO"]]
|
|
|
|
- : "";
|
|
|
|
- info.photos = info.remark["PHOTOS"] || facePhoto;
|
|
|
|
|
|
+
|
|
|
|
+ let photos = [];
|
|
|
|
+ Object.keys(info.remark).map((key) => {
|
|
|
|
+ if (key.includes("PHOTO")) {
|
|
|
|
+ const kPhotos =
|
|
|
|
+ objTypeOf(info.remark[key]) === "array"
|
|
|
|
+ ? info.remark[key]
|
|
|
|
+ : [info.remark[key]];
|
|
|
|
+ photos = [...photos, ...kPhotos];
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ info.photos = photos;
|
|
} else if (info.updateTime) {
|
|
} else if (info.updateTime) {
|
|
info.startTime = formatDate("HH:mm:ss", new Date(info.createTime));
|
|
info.startTime = formatDate("HH:mm:ss", new Date(info.createTime));
|
|
info.endTime = formatDate("HH:mm:ss", new Date(info.updateTime));
|
|
info.endTime = formatDate("HH:mm:ss", new Date(info.updateTime));
|