Pārlūkot izejas kodu

短剧统计和染色时间配置功能点优化等

pansl 1 gadu atpakaļ
vecāks
revīzija
c3fc54b6ab

+ 53 - 53
src/router/modules/charge.ts

@@ -1,54 +1,54 @@
-import { RouteRecordRaw } from 'vue-router';
-// eslint-disable-next-line @typescript-eslint/ban-ts-comment
-// @ts-ignore
-const router: RouteRecordRaw[] = [
-  {
-    path: '/charge',
-    component: () => import('@/layout/index.vue'),
-    meta: { title: '回传管理', icon: 'user' },
-    children: [
-      {
-        path: 'index',
-        name: 'user-account11',
-        meta: { title: '巨量2.0事件-微信小程序', icon: 'home' },
-        component: () => import('@/views/payBack/juliangPlus/index.vue')
-      },
-      {
-        path: 'index1',
-        name: 'user-account',
-        meta: { title: '被关注回复', icon: 'home' },
-        component: () =>
-          import('@/views/officialAccount/attentionReply/index.vue')
-      },
-      {
-        path: 'index3',
-        name: 'user-account33',
-        meta: { title: '关键字回复', icon: 'home' },
-        component: () =>
-          import('@/views/officialAccount/keywordReply/index.vue')
-      },
-      {
-        path: 'index4',
-        name: 'user-account44',
-        meta: { title: '公众号列表', icon: 'home' },
-        component: () =>
-          import('@/views/officialAccount/officialList/index.vue')
-      },
-      {
-        path: 'index5',
-        name: 'user-account55',
-        meta: { title: '客服消息', icon: 'home' },
-        component: () => import('@/views/officialAccount/newsService/index.vue')
-      },
-      {
-        path: 'index2',
-        name: 'user-account123',
-        meta: { title: '菜单', icon: 'home', hidden: true },
-        component: () =>
-          import('@/views/officialAccount/publicCustomMenu/index.vue')
-      }
-    ]
-  }
-];
+// import { RouteRecordRaw } from 'vue-router';
+// // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// // @ts-ignore
+// const router: RouteRecordRaw[] = [
+//   {
+//     path: '/charge',
+//     component: () => import('@/layout/index.vue'),
+//     meta: { title: '回传管理', icon: 'user' },
+//     children: [
+//       {
+//         path: 'index',
+//         name: 'user-account11',
+//         meta: { title: '巨量2.0事件-微信小程序', icon: 'home' },
+//         component: () => import('@/views/payBack/juliangPlus/index.vue')
+//       },
+//       {
+//         path: 'index1',
+//         name: 'user-account',
+//         meta: { title: '被关注回复', icon: 'home' },
+//         component: () =>
+//           import('@/views/officialAccount/attentionReply/index.vue')
+//       },
+//       {
+//         path: 'index3',
+//         name: 'user-account33',
+//         meta: { title: '关键字回复', icon: 'home' },
+//         component: () =>
+//           import('@/views/officialAccount/keywordReply/index.vue')
+//       },
+//       {
+//         path: 'index4',
+//         name: 'user-account44',
+//         meta: { title: '公众号列表', icon: 'home' },
+//         component: () =>
+//           import('@/views/officialAccount/officialList/index.vue')
+//       },
+//       {
+//         path: 'index5',
+//         name: 'user-account55',
+//         meta: { title: '客服消息', icon: 'home' },
+//         component: () => import('@/views/officialAccount/newsService/index.vue')
+//       },
+//       {
+//         path: 'index2',
+//         name: 'user-account123',
+//         meta: { title: '菜单', icon: 'home', hidden: true },
+//         component: () =>
+//           import('@/views/officialAccount/publicCustomMenu/index.vue')
+//       }
+//     ]
+//   }
+// ];
 
-export default router;
+// export default router;

+ 10 - 7
src/views/officialAccount/keywordReply/form/generateLink.vue

@@ -8,10 +8,9 @@
             <el-option v-for="item in videoList" :key="item.id" :label="item.name" :value="item.id" />
           </el-select>
         </el-form-item>
-        <el-form-item label="剧集" prop="video_id">
-          <el-select v-model="formCallback.video_id" class="w-full" clearable filterable remote
-            :remote-method="remoteMethod" placeholder="请选择剧集">
-            <el-option v-for="item in videoList" :key="item.id" :label="item.name" :value="item.id" />
+        <el-form-item label="剧集" prop="sequence" v-if="formCallback.video_id">
+          <el-select v-model="formCallback.sequence" class="w-full" clearable filterable placeholder="请选择剧集">
+            <el-option v-for="item in videoEpisodeList" :key="item.id" :label="item.name" :value="item.id" />
           </el-select>
         </el-form-item>
         <div class="flex justify-end">
@@ -27,7 +26,7 @@
 <script lang="ts" setup>
 import { Plus, InfoFilled } from '@element-plus/icons-vue';
 import { FormInstance } from 'element-plus';
-import { videoStockVideoList } from '@/api/video/index'
+import { videoStockVideoList, videoStockEpisodeList } from '@/api/video/index'
 const props = defineProps({
   primary: Object | null,
 });
@@ -35,6 +34,7 @@ const emit = defineEmits(['close']);
 const loading = ref(false)
 const formCallback = ref({})
 const videoList = ref([])
+const videoEpisodeList = ref([])
 
 const initVideoList = (params?: object) => {
   videoStockVideoList({ limit: 999, ...params }).then(res => {
@@ -43,8 +43,11 @@ const initVideoList = (params?: object) => {
   })
 }
 
-const initVideoStockEpisodeList = () => {
-
+const initVideoStockEpisodeList = (params: object) => {
+  videoStockEpisodeList(params).then(res => {
+    console.log(res, 'videoEpisodeList');
+    videoEpisodeList.value = res.data;
+  })
 }
 const remoteMethod = (query: string) => {
   if (query) {