瀏覽代碼

Bug Fix: 049

chris 3 年之前
父節點
當前提交
dba5e27ffe
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      src/store/modules/common.js
  2. 1 1
      src/views/modules/msg-center/approve.vue

+ 3 - 3
src/store/modules/common.js

@@ -28,9 +28,9 @@ export default {
       {
         code: '1', value: '待审批'
       },
-      {
-        code: '2', value: '审批中'
-      },
+      // {
+      //   code: '2', value: '审批中'
+      // },
       {
         code: '3', value: '审批完成'
       },

+ 1 - 1
src/views/modules/msg-center/approve.vue

@@ -79,7 +79,7 @@
         min-width="100"
         label="状态">
         <template slot-scope="scope">
-          <span>{{ optionsState[Number(scope.row.state) + 1].value  }}</span>
+          <span>{{(optionsState.find(t=>t.code === scope.row.state.toString())).value}}</span>
         </template>
       </el-table-column>
       <el-table-column