Преглед изворни кода

修复首页办理状态在流程异常时数据处理错误的bug

cfort пре 3 година
родитељ
комит
98792863f0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/views/system/dashboard/components/new-home.vue

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

@@ -86,7 +86,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