Forráskód Böngészése

增加 微课制作

wangguoyu 4 éve
szülő
commit
433f51ee16
1 módosított fájl, 8 hozzáadás és 9 törlés
  1. 8 9
      src/views/management/weikezhizuo/index.vue

+ 8 - 9
src/views/management/weikezhizuo/index.vue

@@ -54,7 +54,7 @@
             return {
                 defaultPageSizes: defaultPageSizes,
                 searchOpt:        {},
-
+                userId:           null,
             };
         },
         methods:    {
@@ -78,8 +78,8 @@
             },
             async handleAudit(data) {
                 const opt = {
-                    deId:   data.deId,
-                 //   userId: this.userId,
+                    wkId:   data.wkId,
+                    userId: this.userId,
                 };
                 const loading = this.$loading({ background: 'rgba(0, 0, 0, 0.7)' });
 
@@ -97,8 +97,8 @@
             async handleUnAudit(data) {
 
                 const opt = {
-                    deId:   data.deId,
-                   // userId: this.userId,
+                    wkId:   data.wkId,
+                    userId: this.userId,
                 };
                 const loading = this.$loading({ background: 'rgba(0, 0, 0, 0.7)' });
 
@@ -128,8 +128,7 @@
                 this.getWeikezhizuoListData();
             },
             async getWeikezhizuoListData() {
-              //  const opt = Object.assign({}, this.searchOpt, paginationServiceData, { userId: this.userId });
-                const opt = Object.assign({}, this.searchOpt, paginationServiceData);
+                const opt = Object.assign({}, this.searchOpt, paginationServiceData, { userId: this.userId });
                 delete opt.total;
 
                 const loading = this.$loading({ background: 'rgba(0, 0, 0, 0.7)' });
@@ -157,8 +156,8 @@
             },
         },
         created() {
-       /*     const userAuth = commonTools.getUserAuth();
-            this.userId = userAuth && userAuth.userId;*/
+            const userAuth = commonTools.getUserAuth();
+            this.userId = userAuth && userAuth.userId;
         },
         beforeDestroy() {
             this.clearData();