Ver Fonte

新加待审核状态

xw há 1 mês atrás
pai
commit
870e7959e8
1 ficheiros alterados com 17 adições e 12 exclusões
  1. 17 12
      src/views/course/coursePlaySourceConfig/index.vue

+ 17 - 12
src/views/course/coursePlaySourceConfig/index.vue

@@ -160,7 +160,7 @@
       <el-table-column label="状态" align="center" prop="status" width="100px">
         <template slot-scope="scope">
           <el-tag
-            :type="scope.row.status === 0 ? 'success' : scope.row.status === 1 ? 'warning' : 'danger'"
+            :type="scope.row.status === -1 ? 'info' : scope.row.status === 0 ? 'success' : scope.row.status === 1 ? 'warning' : 'danger'"
           >
             {{ getStatusLabel(scope.row.status) }}
           </el-tag>
@@ -329,15 +329,11 @@ export default {
         appid: null,
         status: null
       },
-      showSearch: true,
-      single: true,
-      multiple: true,
-      ids: [],
-      loading: false,
-      list: [],
-      total: 0,
-      typesOptions: [],
       statusOptions: [
+        {
+          label: "待审核",
+          value: -1
+        },
         {
           label: "正常",
           value: 0
@@ -351,6 +347,14 @@ export default {
           value: 2
         }
       ],
+      showSearch: true,
+      single: true,
+      multiple: true,
+      ids: [],
+      loading: false,
+      list: [],
+      total: 0,
+      typesOptions: [],
       isMallOptions:[
         {
           dictLabel: "是",
@@ -589,9 +593,10 @@ export default {
     },
     getStatusLabel(status) {
       const statusMap = {
-        0: '正常',
-        1: '半封禁',
-        2: '封禁'
+        '-1': '待审核',
+        '0': '正常',
+        '1': '半封禁',
+        '2': '封禁'
       };
       return statusMap[status] || '未知';
     }