heyang 8 mēneši atpakaļ
vecāks
revīzija
3eb98b44a9

+ 7 - 1
src/views/integratedManagement/laboratoryManagement/safetyInfoCategory/safetyInfoConfig.vue

@@ -62,13 +62,19 @@
                 ></el-switch>
               </template>
             </el-table-column>
-            <el-table-column label="危险源" align="left" prop="createName"/>
+            <el-table-column label="危险源" align="left" prop="isConfigHazard" width="100">
+              <template slot-scope="scope">
+                <span v-if="scope.row.isConfigHazard">已配置</span>
+                <span v-if="!scope.row.isConfigHazard" style="color: #FF0000;">未配置</span>
+              </template>
+            </el-table-column>
             <el-table-column label="添加人" align="left" prop="createName"/>
             <el-table-column label="添加时间" align="left" prop="createTime">
               <template slot-scope="scope">
                 <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
               </template>
             </el-table-column>
+
             <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120" v-if="tableButtonType">
               <template slot-scope="scope">
                 <div class="table-button-box">