Browse Source

feat: 短剧组推广 - 短剧组 - 列表接口

zhengxy 2 years ago
parent
commit
acb47e78a5

+ 1 - 0
project/src/assets/config/interface_api.js

@@ -306,6 +306,7 @@ var api = {
306 306
   playletManage_createLink: "/api/platform/createLink", // 企微助手 - 剧集管理 - 创建群发链接
307 307
   playletManage_paramsValidate: "/api/platform/paramsValidate", // 企微助手 - 剧集管理 - 加入剧组参数校验
308 308
   playletManage_setPlayletGroup: "/api/platform/setPlayletGroup", // 企微助手 - 剧集管理 - 创建组
309
+  playletManage_playletGroupList: "/api/platform/playletGroupList", // 企微助手 - 剧集管理 - 短剧组列表
309 310
 
310 311
   sop_ruleList: "/api/userSop/ruleList", // 企微助手 - SOP设置 - 列表
311 312
   sop_changeStatus: "/api/userSop/changeStatus", // 企微助手 - SOP设置 - 启用/禁用

+ 8 - 12
project/src/components/manage/playletManageV2/playletGroup.vue

@@ -7,9 +7,10 @@
7 7
       <el-table-column label="短剧组名称" prop="name" min-width="200" align="left" fixed="left" />
8 8
       <el-table-column label="短剧" min-width="500" align="left">
9 9
         <template slot-scope="{ row }">
10
-          <div class="playlet-wrap">
11
-            <span class="playlet-item" v-for="item in 3" :key="item">短剧1111111</span>
10
+          <div v-if="row.playlet_list && row.playlet_list.length" class="playlet-wrap">
11
+            <span v-for="(item, idx) in row.playlet_list" :key="item.playlet_id + idx" class="playlet-item">{{ item.name }}</span>
12 12
           </div>
13
+          <div v-else> - </div>
13 14
         </template>
14 15
       </el-table-column>
15 16
       <el-table-column label="操作" min-width="210" align="center" fixed="right">
@@ -51,30 +52,25 @@ export default {
51 52
         total: 0,
52 53
       },
53 54
       filter: {
54
-        platform_id: '',
55
-        account_id: '',
56 55
         keyword: '',
57 56
       },
58 57
       groupList: [],
59 58
 
60 59
       groupDialogVisible: false,
61
-
62 60
     }
63 61
   },
64 62
   created () {
65 63
     this.height = document.documentElement.clientHeight - 200 > 400 ? document.documentElement.clientHeight - 200 : 400
66
-    this.handleGetPlaylet()
64
+    this.handleGetGroupList()
67 65
   },
68 66
   methods: {
69 67
     // 获取列表数据
70
-    async handleGetPlaylet() {
68
+    async handleGetGroupList() {
71 69
       try {
72 70
         this.loading = true
73
-        const url = `${this.URL.BASEURL}${this.URL.playletManage_playletList}`
71
+        const url = `${this.URL.BASEURL}${this.URL.playletManage_playletGroupList}`
74 72
         const params = {
75
-          platform_id: this.filter.platform_id,
76
-          keyword: this.filter.keyword,
77
-          account_id: this.filter.account_id,
73
+          // keyword: this.filter.keyword,
78 74
           page: this.pagination.page,
79 75
           page_size: this.pagination.page_size,
80 76
         }
@@ -102,7 +98,7 @@ export default {
102 98
     // 监听当前页数变化
103 99
     handleCurrentChange(currentPage) {
104 100
       this.pagination.page = currentPage
105
-      this.handleGetPlaylet()
101
+      this.handleGetGroupList()
106 102
     },
107 103
     // 监听点击“创建组”
108 104
     onClickCreateGroup() {