Ver Fonte

bug修改

jingyuanchao há 10 meses atrás
pai
commit
8a644b9255
1 ficheiros alterados com 24 adições e 9 exclusões
  1. 24 9
      src/views/iot/deviceInfo/detailDialog.vue

+ 24 - 9
src/views/iot/deviceInfo/detailDialog.vue

@@ -28,6 +28,10 @@
               formData.parentName
             }}
           </el-descriptions-item>
+          <el-descriptions-item v-if="['1', '4', '23', '24'].includes(formData.deviceType)"
+                                labelClassName="gx_info_label" label="状态" >
+            {{formData.enableStatus=='0'?'启用':'禁用'}}
+          </el-descriptions-item>
         </el-descriptions>
         <div class="extend_mod" v-if="['1', '5'].includes(formData.deviceType)" style="max-height: 500px;">
           <el-table :data="childrenInfos" border style="width: 100%;max-height: 500px;overflow-y: auto;">
@@ -48,15 +52,16 @@
               align="center"
             >
             </el-table-column>
-<!--            <el-table-column-->
-<!--              align="center"-->
-<!--              prop="netStatus"-->
-<!--              label="网络状态"-->
-<!--            >-->
-<!--              <template slot-scope="scope">-->
-<!--                {{ getNetStatusDesc(scope.row.netStatus)}}-->
-<!--              </template>-->
-<!--            </el-table-column>-->
+            <el-table-column
+              v-if="['1', '4', '23', '24'].includes(formData.deviceType)"
+              align="center"
+              prop="netStatus"
+              label="状态"
+            >
+              <template slot-scope="scope">
+                {{scope.row.enableStatus=='0'?'启用':'禁用'}}
+              </template>
+            </el-table-column>
           </el-table>
         </div>
         <div class="extend_mod" v-if="formData.deviceType === '4'" style="max-height: 500px;">
@@ -87,6 +92,16 @@
                 {{ getSubSystemStatusDesc(scope.row.subSystemStatus)}}
               </template>
             </el-table-column>
+            <el-table-column
+              v-if="['1', '4', '23', '24'].includes(formData.deviceType)"
+              align="center"
+              prop="netStatus"
+              label="状态"
+            >
+              <template slot-scope="scope">
+                {{scope.row.enableStatus=='0'?'启用':'禁用'}}
+              </template>
+            </el-table-column>
           </el-table>
         </div>
       </div>