Просмотр исходного кода

[Mod 0000]修改局部风机详情页字段名称

wangkeyi 2 месяцев назад
Родитель
Сommit
550a9ac930
1 измененных файлов с 14 добавлено и 14 удалено
  1. 14 14
      src/views/vent/monitorManager/fanLocalMonitor/index.vue

+ 14 - 14
src/views/vent/monitorManager/fanLocalMonitor/index.vue

@@ -15,7 +15,7 @@
           <span style="color: var(--vent-font-color); margin-left: 5px">风机类型:</span>
           <JDictSelectTag
             style="width: 180px"
-            v-model:value="devicekide"
+            v-model:value="devicekind"
             dictCode="fanlocaltype"
             :showChooseOption="false"
             :getPopupContainer="getPopupContainer"
@@ -193,8 +193,8 @@
                                 selectData[state.dataIndex.replace('Fan', 'Fan1')] === undefined
                                   ? '无状态'
                                   : selectData[state.dataIndex.replace('Fan', 'Fan1')] == '0'
-                                  ? '正常'
-                                  : '异常'
+                                    ? '正常'
+                                    : '异常'
                               }}</div>
                             </div>
                             <div class="signal-item" v-if="warningMonitorRowIndex == 1">
@@ -212,8 +212,8 @@
                                 selectData[state.dataIndex.replace('Fan', 'Fan2')] == undefined
                                   ? '无状态'
                                   : selectData[state.dataIndex.replace('Fan', 'Fan2')] == '0'
-                                  ? '正常'
-                                  : '异常'
+                                    ? '正常'
+                                    : '异常'
                               }}</div>
                             </div>
                           </div>
@@ -271,13 +271,13 @@
               <template v-if="globalConfig.History_Type == 'remote'">
                 <HistoryTable
                   :columns-type="`${selectData.deviceType}`"
-                  :device-type="`${devicekide}`"
+                  :device-type="`${devicekind}`"
                   designScope="fanlocal-history"
                   :scroll="scroll"
                 />
               </template>
               <template v-else>
-                <HistoryTable class="w-100% h-100%" :device-code="`${devicekide}`" :scroll="scroll" dict-code="fanlocal_dict" />
+                <HistoryTable class="w-100% h-100%" :device-code="`${devicekind}`" :scroll="scroll" dict-code="fanlocal_dict" />
               </template>
             </div>
           </a-tab-pane>
@@ -298,14 +298,14 @@
           </a-tab-pane>
           <a-tab-pane key="4" tab="报警历史">
             <div class="tab-item" v-if="activeKey === '4'">
-              <AlarmHistoryTable columns-type="alarm" :device-type="`${devicekide}`" designScope="alarm-history" :scroll="scroll" />
+              <AlarmHistoryTable columns-type="alarm" :device-type="`${devicekind}`" designScope="alarm-history" :scroll="scroll" />
             </div>
           </a-tab-pane>
           <a-tab-pane key="5" tab="操作历史">
             <div class="tab-item" v-if="activeKey === '5'">
               <HandlerHistoryTable
                 columns-type="operator_history"
-                :device-type="`${devicekide}`"
+                :device-type="`${devicekind}`"
                 :device-list-api="baseList"
                 designScope="alarm-history"
                 :scroll="scroll"
@@ -844,7 +844,7 @@
     { title: '回风流超限评价', value: '正常' },
     { title: '风筒漏风率评价', value: '正常' },
   ]);
-  const devicekide = ref(deviceTypeDicts && deviceTypeDicts.length > 0 ? deviceTypeDicts[0]['value'] : 'fanlocal');
+  const devicekind = ref(deviceTypeDicts && deviceTypeDicts.length > 0 ? deviceTypeDicts[0]['value'] : 'fanlocal');
   const deviceType = ref(selectData.deviceType);
   const headElHeight = ref(0);
   let btnClick = ref(true); // 判断按钮是否可点
@@ -898,7 +898,7 @@
   };
 
   const changeDeviceKind = (e) => {
-    devicekide.value = e;
+    devicekind.value = e;
     loading.value = true;
     selectRowIndex.value = -1;
     nextTick(() => {
@@ -960,8 +960,8 @@
 
   //
   async function getDataSource() {
-    if (devicekide.value) {
-      const res = await list({ devicetype: devicekide.value, pagetype: 'normal' });
+    if (devicekind.value) {
+      const res = await list({ devicetype: devicekind.value, pagetype: 'normal' });
       // const res = await list({ devicetype: 'fanlocal', pagetype: 'normal' });
       if (res.msgTxt && res.msgTxt[0] && res.msgTxt[0].datalist && res.msgTxt[0].datalist.length > 0) {
         const dataArr = res.msgTxt[0].datalist || [];
@@ -1612,7 +1612,7 @@
 
   onMounted(() => {
     const { query } = unref(currentRoute);
-    if (query['deviceType']) devicekide.value = query['deviceType'] as string;
+    if (query['deviceType']) devicekind.value = query['deviceType'] as string;
     if (globalConfig.is2DModel) {
       getMonitor(true);
     } else {