|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2021-12-07 14:27:28
|
|
* @Date: 2021-12-07 14:27:28
|
|
- * @LastEditTime: 2021-12-09 16:02:13
|
|
|
|
|
|
+ * @LastEditTime: 2021-12-13 16:29:09
|
|
* @LastEditors: Please set LastEditors
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: 设备管理页面
|
|
* @Description: 设备管理页面
|
|
* @FilePath: \hyyfClient\src\views\DeviceMana\Device.vue
|
|
* @FilePath: \hyyfClient\src\views\DeviceMana\Device.vue
|
|
@@ -105,38 +105,7 @@ export default {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
},
|
|
},
|
|
tableData: tableData,
|
|
tableData: tableData,
|
|
- listData: [
|
|
|
|
- {
|
|
|
|
- name: "摄像头",
|
|
|
|
- code: "001",
|
|
|
|
- model: "hm-001",
|
|
|
|
- manufacturer: "大华",
|
|
|
|
- person: "-",
|
|
|
|
- basicalParams: "200万像素星光级网络摄像头",
|
|
|
|
- status: 1,
|
|
|
|
- record: "-",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: "摄像头",
|
|
|
|
- code: "002",
|
|
|
|
- model: "hm-002",
|
|
|
|
- manufacturer: "大华",
|
|
|
|
- person: "-",
|
|
|
|
- basicalParams: "200万像素星光级网络摄像头",
|
|
|
|
- status: 1,
|
|
|
|
- record: "-",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: "摄像头",
|
|
|
|
- code: "003",
|
|
|
|
- model: "hm-003",
|
|
|
|
- manufacturer: "大华",
|
|
|
|
- person: "-",
|
|
|
|
- basicalParams: "200万像素星光级网络摄像头",
|
|
|
|
- status: 1,
|
|
|
|
- record: "-",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ listData: [],
|
|
rows: [],
|
|
rows: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -189,9 +158,7 @@ export default {
|
|
const res = await postDeviceDel({
|
|
const res = await postDeviceDel({
|
|
ids: ids,
|
|
ids: ids,
|
|
});
|
|
});
|
|
- this.tableFooterData.pageNum = 1;
|
|
|
|
- this.initList();
|
|
|
|
- this.initSummer();
|
|
|
|
|
|
+ this.reflash();
|
|
if (res.code === 10000) {
|
|
if (res.code === 10000) {
|
|
this.$message.success("删除成功");
|
|
this.$message.success("删除成功");
|
|
}
|
|
}
|
|
@@ -202,9 +169,12 @@ export default {
|
|
pageNo: this.tableFooterData.pageNum,
|
|
pageNo: this.tableFooterData.pageNum,
|
|
pageSize: this.tableFooterData.size,
|
|
pageSize: this.tableFooterData.size,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
|
+ console.log(res);
|
|
if (res.code === 10000) {
|
|
if (res.code === 10000) {
|
|
this.listData = res.data.content;
|
|
this.listData = res.data.content;
|
|
this.tableFooterData.totals = res.data.totalElements;
|
|
this.tableFooterData.totals = res.data.totalElements;
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.warning(res.message);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -212,10 +182,16 @@ export default {
|
|
getDeviceSummer({
|
|
getDeviceSummer({
|
|
bit: 2,
|
|
bit: 2,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
|
+ console.log(res);
|
|
if (res.code === 10000) {
|
|
if (res.code === 10000) {
|
|
this.manageItems[0].num = res.data.total;
|
|
this.manageItems[0].num = res.data.total;
|
|
this.manageItems[1].num = res.data.num;
|
|
this.manageItems[1].num = res.data.num;
|
|
this.manageItems[2].num = res.data.rate;
|
|
this.manageItems[2].num = res.data.rate;
|
|
|
|
+ } else {
|
|
|
|
+ this.manageItems[0].num = "0";
|
|
|
|
+ this.manageItems[1].num = "0";
|
|
|
|
+ this.manageItems[2].num = "0";
|
|
|
|
+ this.$message.warning(res.message);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|