Bladeren bron

refactor: 更新设备监控搜索字段

yusheng 2 maanden geleden
bovenliggende
commit
e5c22d8be3
1 gewijzigde bestanden met toevoegingen van 8 en 6 verwijderingen
  1. 8 6
      src/views/equipmentOperationMonitoring/index.vue

+ 8 - 6
src/views/equipmentOperationMonitoring/index.vue

@@ -60,8 +60,8 @@
               <!-- 搜索框 -->
               <div class="search-input-wrapper">
                 <el-input
-                  v-model="name"
-                  placeholder="请输入关键词"
+                  v-model="keyWord"
+                  placeholder="编码、名称、固资编码"
                   prefix-icon="el-icon-search"
                   clearable
                   @keyup.enter.native="handleSearch"
@@ -89,7 +89,9 @@
                 >
                   <div
                     class="device-card"
-                    :class="{ 'is-fault': item.status == '3'||item.status == '2' }"
+                    :class="{
+                      'is-fault': item.status == '3' || item.status == '2'
+                    }"
                     @click="details(item)"
                   >
                     <div class="card-header">
@@ -183,7 +185,7 @@
         // 更新时间
         updateTime: dayjs().format('YYYY-M-D HH:mm:ss'),
         // 搜索关键词
-        name: '',
+        keyWord: '',
         // 树形数据
         treeData: [],
         orgTreeData: [],
@@ -273,7 +275,7 @@
           categoryLevelId: this.categoryLevelId,
           rootCategoryLevelId: this.rootCategoryLevelId,
           areaId: this.areaId,
-          name: this.name
+          keyWord: this.keyWord
         }).then((res) => {
           this.updateTime = dayjs().format('YYYY-M-D HH:mm:ss');
           this.deviceData = res.list.map((item) => {
@@ -385,7 +387,7 @@
             id,
             code,
             name,
-            activeComp:'internet'
+            activeComp: 'internet'
           }
         });
       },