Browse Source

设备管理页面增加删除按钮

jingyuanchao 11 months ago
parent
commit
5441c7f69d
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/iot/deviceInfo/index.vue

+ 8 - 2
src/views/iot/deviceInfo/index.vue

@@ -153,7 +153,7 @@
               size="mini"
               type="text"
               icon="el-icon-delete"
-              v-if="activeName !== 'fsu' || scope.row.syncStatus == 1"
+              v-if="showDeleted(scope.row)"
               @click="handleDelete(scope.row)"
               v-hasPermi="['core:drillPlan:remove']"
             >删除
@@ -524,7 +524,13 @@ export default {
         .catch(() => {
         });
     },
-
+    showDeleted(row) {
+      let arr = ["1", "4","23","24"];
+      /*if () {
+        return false;
+      }*/
+      return arr.includes(row.deviceType) && row.syncStatus != 1;
+    }
   },
 };
 </script>