Просмотр исходного кода

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

cfort 3 лет назад
Родитель
Сommit
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>
                                         </el-tooltip>
                                     </template>
                                     </template>
                                     <template slot-scope="scope">
                                     <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>
                                     </template>
                                 </el-table-column>
                                 </el-table-column>
                                 <el-table-column
                                 <el-table-column