|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-12-07 14:27:28
|
|
|
- * @LastEditTime: 2021-12-16 09:48:19
|
|
|
+ * @LastEditTime: 2021-12-17 10:26:32
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: 设备管理页面
|
|
|
* @FilePath: \hyyfClient\src\views\DeviceMana\Device.vue
|
|
@@ -11,7 +11,7 @@
|
|
|
<div class="manage-items">
|
|
|
<manage-item
|
|
|
v-for="(item, index) in manageItems"
|
|
|
- :key="item.key"
|
|
|
+ :key="item.title"
|
|
|
v-bind="item"
|
|
|
>
|
|
|
<template #icon>
|
|
@@ -141,6 +141,7 @@ export default {
|
|
|
this.$message.warning("请选中设备再删除");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
let ids = "";
|
|
|
if (flag) {
|
|
|
const items = [];
|
|
@@ -155,9 +156,16 @@ export default {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
}).then(async () => {
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "加载中...",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
+ });
|
|
|
const res = await postDeviceDel({
|
|
|
- ids: ids,
|
|
|
+ id: ids,
|
|
|
});
|
|
|
+ loading.close();
|
|
|
this.reflash();
|
|
|
if (res.code === 10000) {
|
|
|
this.$message.success("删除成功");
|