魏志佳 4 rokov pred
rodič
commit
270f2af752

+ 11 - 6
src/views/modules/BatchCreate/components/material.vue

@@ -103,11 +103,14 @@
     </div>
     <!-- 创建大图横图创意 -->
 
-    <a-modal :maskClosable="false" title="选择素材" v-model="visibleMatemal" @ok="handleOkShow" :width="1000">
+    <a-modal :maskClosable="false" title="选择素材" v-model="visibleMatemal" @ok="handleOkShow" :width="1000" :height='500'>
+      <div >
+
+     
       <a-range-picker name="buildTime" style="width: 400px;margin:10px 0" v-model="time" />
-      <ul v-if="dataSource.length>0" style="overflow:auto;padding-left:0">
+      <ul v-if="dataSource.length>0" style="overflow:auto;padding-left:0;height:380px">
         <a-checkbox-group v-model="checkVideo" @change="onChangeVideo" style="width:100%">
-          <li v-for="(item,index) of dataSource" :key="index" class="chouzhen" style="height:350px;">
+          <li v-for="(item,index) of dataSource" :key="index" class="chouzhen" style="padding-bottom:15px">
 
             <!-- <video class="video" :src="item.url" controls="controls" style="width:100%">
                   您的浏览器不支持 video 标签。
@@ -147,12 +150,14 @@
           showQuickJumper :pageSize.sync="ipagination.pageSize" :total="ipagination.total" v-model="ipagination.current"
           @change="getDataSource" />
       </div>
+       </div>
+
     </a-modal>
     <a-modal :maskClosable="false" title="选择素材" v-model="visibleMatemalImage" @ok="handleOkShowImage" :width="1000">
       <a-range-picker name="buildTime" style="width: 400px;margin:10px 0" v-model="time" />
       <ul v-if="dataSource.length>0" style="overflow:auto;padding-left:0">
         <a-checkbox-group v-model="checkVideo" @change="onChangeVideo" style="width:100%">
-          <li v-for="(item,index) of dataSource" :key="index" class="chouzhen" style="height:350px;">
+          <li v-for="(item,index) of dataSource" :key="index" class="chouzhen" >
 
             <!-- <video class="video" :src="item.url" controls="controls" style="width:100%">
                   您的浏览器不支持 video 标签。
@@ -399,9 +404,9 @@
         if (this.materialType == 'CREATIVE_IMAGE_MODE_VIDEO' || this.materialType ==
           'CREATIVE_IMAGE_MODE_VIDEO_VERTICAL') {
           if (this.materialType == 'CREATIVE_IMAGE_MODE_VIDEO') {
-            params.type = 1
+            params.type = 2
           } else {
-            params.type = 0
+            params.type = 1
           }
 
           this.showVideoList('/bytedance/batch/getVideoList', params)