فهرست منبع

课程管理状态

natasha 1 سال پیش
والد
کامیت
eba49d9f8c
2فایلهای تغییر یافته به همراه82 افزوده شده و 58 حذف شده
  1. 41 29
      src/views/content_manage/course_manage/LiveCourse.vue
  2. 41 29
      src/views/content_manage/course_manage/RecordedCourse.vue

+ 41 - 29
src/views/content_manage/course_manage/LiveCourse.vue

@@ -138,6 +138,14 @@
                                 type="text"
                                 size="small"
                                 class="primary-btn"
+                                v-if="scope.row.status==='2'||scope.row.status==='3'">
+                                审核
+                            </el-button>
+                            <el-button
+                                @click.native.prevent="handleUp(scope.row, scope.$index)"
+                                type="text"
+                                size="small"
+                                class="primary-btn"
                                 v-if="scope.row.status==='0'">
                                 上架
                             </el-button>
@@ -225,6 +233,22 @@ export default {
             {
                 value:'',
                 label:'全部'
+            },
+            {
+                value:'1',
+                label:'已上架'
+            },
+            {
+                value:'0',
+                label:'未上架'
+            },
+            {
+                value:'2',
+                label:'待审核'
+            },
+            {
+                value:'3',
+                label:'被驳回'
             }
         ],
         studyList:[
@@ -252,13 +276,23 @@ export default {
         statusList:{
             '1':{
                 text:'已上架',
-                bg:'#165DFF',
+                bg:'#00B42A',
                 color:''
             },
             '0':{
                 text:'未上架',
-                bg:'#F53F3F',
+                bg:'#165DFF',
+                color:''
+            },
+            '2':{
+                text:'待审核',
+                bg:'#C9CDD4',
                 color:''
+            },
+            '3':{
+                text:'被驳回',
+                bg:'#F53F3F',
+                color:'#F53F3F'
             }
         },
         tableData:[
@@ -294,7 +328,7 @@ export default {
                 type:'0',
                 price:'12',
                 oldPrice:'16',
-                status:'0',
+                status:'2',
                 creator:'张三',
                 data:'2018-02-03'
             },
@@ -306,7 +340,7 @@ export default {
                 type:'0',
                 price:'12',
                 oldPrice:'16',
-                status:'1',
+                status:'3',
                 creator:'张三',
                 data:'2018-02-03'
             },
@@ -318,7 +352,7 @@ export default {
                 type:'0',
                 price:'12',
                 oldPrice:'16',
-                status:'1',
+                status:'3',
                 creator:'张三',
                 data:'2018-02-03'
             },
@@ -330,7 +364,7 @@ export default {
                 type:'0',
                 price:'12',
                 oldPrice:'16',
-                status:'1',
+                status:'2',
                 creator:'张三',
                 data:'2018-02-03'
             },
@@ -381,29 +415,7 @@ export default {
                 status:'1',
                 creator:'张三',
                 data:'2018-02-03'
-            },
-            {
-                id:'1',
-                title:'高考特辑',
-                teacher:['张老师','李老师'],
-                study:'2',
-                type:'0',
-                price:'12',
-                oldPrice:'16',
-                status:'1',
-                creator:'张三',
-                data:'2018-02-03'
-            },
-            {
-                userName:'赵萸艳',
-                realName:'赵萸艳',
-                sex:'1',
-                type:'4', // 0 管理员 1 平台管理员 2 内容管理员 3 财务管理员 4 兑换码管理员
-                email:'a.ghwrgoh@hlfh.nu',
-                phone:'13273549500',
-                status:'0',
-                data:'2018-02-03',
-            },
+            }
         ],
         pageSize: window.localStorage.getItem('pageSize')?Number(window.localStorage.getItem('pageSize')):10, 
         pageNumber: window.localStorage.getItem('pageNumber')?Number(window.localStorage.getItem('pageNumber')):1,

+ 41 - 29
src/views/content_manage/course_manage/RecordedCourse.vue

@@ -160,6 +160,14 @@
                                 type="text"
                                 size="small"
                                 class="primary-btn"
+                                v-if="scope.row.status==='2'||scope.row.status==='3'">
+                                审核
+                            </el-button>
+                            <el-button
+                                @click.native.prevent="handleUp(scope.row, scope.$index)"
+                                type="text"
+                                size="small"
+                                class="primary-btn"
                                 v-if="scope.row.status==='0'">
                                 上架
                             </el-button>
@@ -248,6 +256,22 @@ export default {
             {
                 value:'',
                 label:'全部'
+            },
+            {
+                value:'1',
+                label:'已上架'
+            },
+            {
+                value:'0',
+                label:'未上架'
+            },
+            {
+                value:'2',
+                label:'待审核'
+            },
+            {
+                value:'3',
+                label:'被驳回'
             }
         ],
         typeList:[
@@ -289,13 +313,23 @@ export default {
         statusList:{
             '1':{
                 text:'已上架',
-                bg:'#165DFF',
+                bg:'#00B42A',
                 color:''
             },
             '0':{
                 text:'未上架',
-                bg:'#F53F3F',
+                bg:'#165DFF',
+                color:''
+            },
+            '2':{
+                text:'待审核',
+                bg:'#C9CDD4',
                 color:''
+            },
+            '3':{
+                text:'被驳回',
+                bg:'#F53F3F',
+                color:'#F53F3F'
             }
         },
         tableData:[
@@ -343,7 +377,7 @@ export default {
                 type:'0',
                 price:'12',
                 oldPrice:'16',
-                status:'1',
+                status:'2',
                 creator:'张三',
                 data:'2018-02-03'
             },
@@ -355,7 +389,7 @@ export default {
                 type:'0',
                 price:'12',
                 oldPrice:'16',
-                status:'1',
+                status:'3',
                 creator:'张三',
                 data:'2018-02-03'
             },
@@ -391,7 +425,7 @@ export default {
                 type:'0',
                 price:'12',
                 oldPrice:'16',
-                status:'1',
+                status:'2',
                 creator:'张三',
                 data:'2018-02-03'
             },
@@ -415,32 +449,10 @@ export default {
                 type:'0',
                 price:'12',
                 oldPrice:'16',
-                status:'1',
+                status:'3',
                 creator:'张三',
                 data:'2018-02-03'
-            },
-            {
-                id:'1',
-                title:'高考特辑',
-                teacher:['张老师','李老师'],
-                study:'2',
-                type:'0',
-                price:'12',
-                oldPrice:'16',
-                status:'1',
-                creator:'张三',
-                data:'2018-02-03'
-            },
-            {
-                userName:'赵萸艳',
-                realName:'赵萸艳',
-                sex:'1',
-                type:'4', // 0 管理员 1 平台管理员 2 内容管理员 3 财务管理员 4 兑换码管理员
-                email:'a.ghwrgoh@hlfh.nu',
-                phone:'13273549500',
-                status:'0',
-                data:'2018-02-03',
-            },
+            }
         ],
         pageSize: window.localStorage.getItem('pageSize')?Number(window.localStorage.getItem('pageSize')):10, 
         pageNumber: window.localStorage.getItem('pageNumber')?Number(window.localStorage.getItem('pageNumber')):1,