Parcourir la source

迁移防区代码

jiawuxian il y a 1 an
Parent
commit
009c6179f5

+ 0 - 0
src/views/menu/protection/components/dialog.stateChange.vue → src/views/menu/iot/protection/components/dialog.stateChange.vue


+ 0 - 0
src/views/menu/protection/components/item.vue → src/views/menu/iot/protection/components/item.vue


+ 8 - 4
src/views/menu/protection/detail.vue → src/views/menu/iot/protection/detail.vue

@@ -4,8 +4,8 @@
     <card class="info">
       <van-cell-group>
         <van-cell title="控制器名称" :value="info.name" />
+        <van-cell title="所属监控主机" :value="info.hostName" v-if="info.hostName" value-class="cell-host"/>
         <van-cell title="所属机构" :value="info.orgName" />
-        <van-cell title="24小时控制器" :value="info.allHour ? '是' : '否'" />
       </van-cell-group>
     </card>
 
@@ -23,9 +23,9 @@
             <div class="datarow">
               <!-- <span v-if="data.status == 1" style="color: rgb(0, 164, 46)">布防</span>
               <span v-else-if="data.status == 0" style="color: rgb(215, 0, 15)">撤防</span> -->
-              <span >{{ getDictLabel(data.status,  'protection_status', '未上报') }}</span>
+              <span>{{ getDictLabel(data.status, 'protection_status', '未上报') }}</span>
               <span>{{ data.updateTime }}</span>
-              <span>{{ data.statusUpdatorName }}</span>
+              <span>{{ data.statusUpdatorName ? data.statusUpdatorName : '自动获取' }}</span>
             </div>
           </template>
         </k-list>
@@ -53,7 +53,7 @@ export default {
         { value: '1', text: '布防' },
         { value: '2', text: '未知' }
       ],
-      dicts: ["protection_status"]
+      dicts: ['protection_status']
     }
   },
   components: { NavBar, KList, Card },
@@ -138,4 +138,8 @@ export default {
     width: 30%;
   }
 }
+
+.cell-host{
+  min-width: 58vw;
+}
 </style>

+ 0 - 0
src/views/menu/protection/index.vue → src/views/menu/iot/protection/index.vue