|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-09-16 11:27:35
|
|
|
- * @LastEditTime: 2021-12-27 08:54:07
|
|
|
+ * @LastEditTime: 2021-12-30 17:38:30
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\PersonAdmin.vue
|
|
@@ -281,6 +281,9 @@ export default {
|
|
|
openType: 61, // 进门,刷脸
|
|
|
};
|
|
|
getFaceGuard(queryParams).then(async (res) => {
|
|
|
+ if (!res.result) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
// 结果是 JSON 格式
|
|
|
this.listData = JSON.parse(res.result).data.pageData;
|
|
|
this.listData.forEach((item) => {
|
|
@@ -290,6 +293,9 @@ export default {
|
|
|
});
|
|
|
// 近 7 小时进出统计
|
|
|
const recordRes = await getRecord({});
|
|
|
+ if (!res.result) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (recordRes.code === 0) {
|
|
|
const timeList = [];
|
|
|
const dataList = [];
|
|
@@ -319,6 +325,9 @@ export default {
|
|
|
openType: 61, // 进门,刷脸
|
|
|
};
|
|
|
getFaceGuardTotal(queryParams).then((res) => {
|
|
|
+ if (!res.result) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.total = JSON.parse(res.result).data;
|
|
|
if (this.isTotal === false) {
|
|
|
this.total1 = JSON.parse(res.result).data;
|