Quellcode durchsuchen

修复首页待办数据在流程异常时数据处理失败bug

cfort vor 3 Jahren
Ursprung
Commit
ff7d3aac8a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/views/system/dashboard/components/new-home.vue

+ 1 - 1
src/views/system/dashboard/components/new-home.vue

@@ -76,7 +76,7 @@
                                         </el-tooltip>
                                     </template>
                                     <template slot-scope="scope">
-                                        <el-tag :type="stateOption[scope.row.state].type">{{ stateOption[scope.row.state].label }}</el-tag>
+                                        <el-tag :type="scope.row.state ? stateOption[scope.row.state].type : ''">{{ scope.row.state ? stateOption[scope.row.state].label : '待办理' }}</el-tag>
                                     </template>
                                 </el-table-column>
                                 <el-table-column