Pārlūkot izejas kodu

+ 大屏接口研发,《源》

chen.cheng 11 mēneši atpakaļ
vecāks
revīzija
16743dafb5
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      ems-ui/src/views/devmgr/state/index.vue

+ 6 - 1
ems-ui/src/views/devmgr/state/index.vue

@@ -71,7 +71,11 @@
           <el-table-column label="归属设施" align="center" prop="refFacsName"/>
           <el-table-column label="设备代码" align="center" prop="deviceCode"/>
           <el-table-column label="设备类型" align="center" prop="deviceTypeName"/>
-          <el-table-column label="设备状态" align="center" prop="deviceStatus"/>
+          <el-table-column label="设备状态" align="center" prop="deviceStatus">
+            <template slot-scope="scope">
+              <dict-tag :options="dict.type.sys_device_stat" :value="scope.row.deviceStatus"/>
+            </template>
+          </el-table-column>
           <el-table-column label="子系统" align="center" prop="subsystemName"/>
         </el-table>
 
@@ -128,6 +132,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 
 export default {
   name: 'Device',
+  dicts: ['sys_device_stat'],
   components: { Treeselect },
   data() {
     return {