|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-12-17 15:50:33
|
|
|
- * @LastEditTime: 2021-12-17 16:06:00
|
|
|
+ * @LastEditTime: 2021-12-17 16:10:05
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: 大门事件
|
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\DoorAdmin.vue
|
|
@@ -163,6 +163,12 @@ export default {
|
|
|
},
|
|
|
// 死猪管理
|
|
|
pigManage() {
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "加载中...",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
+ });
|
|
|
let queryParams = {
|
|
|
pageNum: this.pageNum,
|
|
|
pageSize: this.size,
|
|
@@ -170,13 +176,17 @@ export default {
|
|
|
alarmEndDateString: this.params.time[1] + " 23:59:59",
|
|
|
};
|
|
|
getDoorAdmin(queryParams).then(async (res) => {
|
|
|
- const result = JSON.parse(res.data.result);
|
|
|
- console.log("res:", result);
|
|
|
- this.listData = result.data.pageData;
|
|
|
- this.listData.forEach((item) => {
|
|
|
- item.alarmPicture = `${this.ip}/video/picture/get?alarmPicture=${item.alarmPicture}`;
|
|
|
- });
|
|
|
- this.total = parseInt(res.total);
|
|
|
+ loading.close();
|
|
|
+ if (res.code === 0) {
|
|
|
+ const result = JSON.parse(res.data.result);
|
|
|
+ this.listData = result.data.pageData;
|
|
|
+ this.listData.forEach((item) => {
|
|
|
+ item.alarmPicture = `${this.ip}/video/picture/get?alarmPicture=${item.alarmPicture}`;
|
|
|
+ });
|
|
|
+ this.total = parseInt(res.total);
|
|
|
+ } else {
|
|
|
+ this.$message.warning(res.message);
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
// 死猪管理 - 总数
|