Explorar el Código

添加批量工具选择素材的唯一编码查询

朱鑫波 hace 4 años
padre
commit
dfe2594553

+ 40 - 2
src/views/modules/kuaishouapp/account/stepForm/Step3.vue

@@ -705,15 +705,20 @@ li.chouzhen.first:before {
       <img :src="showImageStr" style="width: 100%" />
     </a-modal>
 
-    <a-modal :maskClosable="false" title="选择素材" v-model="visibleMatemal" @ok="handleOkShow" :width="1000">
+    <a-modal :maskClosable="false" title="选择素材" v-model="visibleMatemal" @ok="handleOkShow" @cancel="cancelAll" :width="1000">
       <a-tabs type="card" @change="callback" v-model="active" class="check-video">
         <a-tab-pane :tab="item.label" v-for="item of tab" :key="item.value">
           <a-row :gutter="24">
-            <a-col :span="12">
+            <a-col :span="9">
               <a-form-item label="日期选择" :labelCol="labelCol" :wrapperCol="wrapperCol">
                 <a-range-picker name="buildTime" v-model="time" />
               </a-form-item>
             </a-col>
+            <a-col :span="9">
+              <a-form-item label="唯一标识" :labelCol="labelCol" :wrapperCol="wrapperCol">
+                  <a-input placeholder="请输入唯一标识,多个以,隔开" v-model="md5Str"/>
+              </a-form-item>
+            </a-col>
             <!-- <a-col :span="12">
               <a-form-item label="筛选条件" :labelCol="labelCol" :wrapperCol="wrapperCol">
                 <a-select v-model="orderBy" style="width: 100%">
@@ -722,6 +727,11 @@ li.chouzhen.first:before {
                 </a-select>
               </a-form-item>
             </a-col> -->
+            <a-col :span="4">
+              <a-button type="primary" style="position: relative;top: 4px;margin-left:5px" @click="searchVideo">
+                搜索
+              </a-button>
+            </a-col>
           </a-row>
 
           <ul v-if="dataSource.length > 0" style="overflow: auto; padding-left: 0">
@@ -925,6 +935,7 @@ export default {
   },
   data() {
     return {
+      md5Str:"",
       fieldNames: {
         label: 'category_name',
         value: 'category_id',
@@ -1088,6 +1099,24 @@ export default {
     }
   },
   methods: {
+    searchVideo() {
+      var params = {}
+      params.accountId = localStorage.getItem('campaignAccountId')
+      params.materialType = this.creativeMaterialType
+      params.pageSize = this.ipagination.pageSize
+      params.pageNo = 1
+      params.status = 0
+      params.channelType = this.channelType
+      params.orderBy = this.orderBy
+      params.signatures = this.md5Str
+      if (this.time.length > 0) {
+        // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
+        // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
+        params.startDate = moment(this.time[0]).format('YYYY-MM-DD') + ' 00:00:00'
+        params.endDate = moment(this.time[1]).format('YYYY-MM-DD') + ' 23:59:59'
+      }
+      this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
+    },
     getInfo(item) {
       if (this.tagName == '') {
         this.$message.error('请输入分类名称')
@@ -1550,6 +1579,7 @@ export default {
       params.channelType = this.channelType
       params.status = 0
       params.orderBy = this.orderBy
+      params.signatures = this.md5Str
       if (this.time.length > 0) {
         // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
         // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
@@ -1819,6 +1849,7 @@ export default {
           params.status = 0
           params.channelType = this.channelType
           params.orderBy = this.orderBy
+          params.signatures = this.md5Str
           if (this.time.length > 0) {
             // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
             // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
@@ -2073,6 +2104,10 @@ export default {
     showStickerStyles(value) {
       return this.stickerStyles.filter((item) => item.overlay_type == value)[0].overlay_preview_url
     },
+    cancelAll() {
+      this.visibleMatemal = false
+      this.md5Str = ""
+    },
     handleOkShow(e) {
       //
 
@@ -2235,6 +2270,7 @@ export default {
         params.startDate = moment(n[0]).format('YYYY-MM-DD') + ' 00:00:00'
         params.endDate = moment(n[1]).format('YYYY-MM-DD') + ' 23:59:59'
         params.orderBy = this.orderBy
+        params.signatures = this.md5Str
         this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
       } else {
         var params = {}
@@ -2245,6 +2281,7 @@ export default {
         params.status = 0
         params.channelType = this.channelType
         params.orderBy = this.orderBy
+        params.signatures = this.md5Str
         this.ipagination.current = 1
         this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
       }
@@ -2257,6 +2294,7 @@ export default {
       params.pageNo = 1
       params.status = 0
       params.channelType = this.channelType
+      params.signatures = this.md5Str
       if (this.time.length > 0) {
         params.startDate = moment(this.time[0]).format('YYYY-MM-DD') + ' 00:00:00'
         params.endDate = moment(this.time[1]).format('YYYY-MM-DD') + ' 23:59:59'

+ 35 - 2
src/views/modules/kuaishouapp/batchCreation/creat/creatUnit.vue

@@ -814,15 +814,23 @@
          
         <a-tab-pane :tab="item.label" v-for="item of tab" :key="item.value">
           <a-row :gutter="24">
-            <a-col :span="12">
+            <a-col :span="9">
               <a-form-item label="日期选择" :labelCol="labelCol" :wrapperCol="wrapperCol">
                 <a-range-picker name="buildTime" v-model="time" />
               </a-form-item>
             </a-col>
-            <a-col :span="12">
+             <a-col :span="9">
+              <a-form-item label="唯一标识" :labelCol="labelCol" :wrapperCol="wrapperCol">
+                  <a-input placeholder="请输入唯一标识,多个以,隔开" v-model="md5Str"/>
+              </a-form-item>
+            </a-col>
+            <a-col :span="4">
               <a-button style="position: relative;top: 4px;" @click="selectAllVideo">
                 全选
               </a-button>
+              <a-button type="primary" style="position: relative;top: 4px;margin-left:5px" @click="searchVideo">
+                搜索
+              </a-button>
             </a-col>
 
             <!-- <a-col :span="12">
@@ -1135,6 +1143,7 @@ export default {
 
   data() {
     return {
+      md5Str:'',
       uriCheck: false,
       templateLoading: false,
       dataOne: [],
@@ -1334,6 +1343,24 @@ export default {
     },
   },
   methods: {
+    searchVideo() {
+      var params = {}
+      params.accountId = localStorage.getItem('campaignAccountId')
+      params.materialType = this.creativeMaterialType
+      params.pageSize = this.ipagination.pageSize
+      params.pageNo = 1
+      params.status = 0
+      params.channelType = this.channelType
+      params.orderBy = this.orderBy
+      params.signatures = this.md5Str
+      if (this.time.length > 0) {
+        // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
+        // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
+        params.startDate = moment(this.time[0]).format('YYYY-MM-DD') + ' 00:00:00'
+        params.endDate = moment(this.time[1]).format('YYYY-MM-DD') + ' 23:59:59'
+      }
+      this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
+    },
     tongbu() {
       this.tongbuLoading = true
       getAction('/kuaishou/batch/syncVideo', {
@@ -1350,6 +1377,7 @@ export default {
           params.status = 0
           params.channelType = this.channelType
           params.orderBy = this.orderBy
+          params.signatures = this.md5Str
           if (this.time.length > 0) {
             // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
             // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
@@ -1823,6 +1851,7 @@ export default {
       params.channelType = this.channelType
       params.status = 0
       params.orderBy = this.orderBy
+      params.signatures = this.md5Str
       if (this.time.length > 0) {
         // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
         // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
@@ -1834,6 +1863,8 @@ export default {
     cancelAll() {
       // this.checkVideoAll = []
       // this.checkVideoWei = []
+      this.visibleMatemal = false
+      this.md5Str = ""
     },
     handleOkShow() {
       // this.checkVideoAll = [...new Set(this.checkVideoAll)]
@@ -2405,6 +2436,7 @@ export default {
         params.startDate = moment(n[0]).format('YYYY-MM-DD') + ' 00:00:00'
         params.endDate = moment(n[1]).format('YYYY-MM-DD') + ' 23:59:59'
         params.orderBy = this.orderBy
+        params.signatures = this.md5Str
         this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
       } else {
         var params = {}
@@ -2415,6 +2447,7 @@ export default {
         params.status = 0
         params.channelType = this.channelType
         params.orderBy = this.orderBy
+        params.signatures = this.md5Str
         this.ipagination.current = 1
         this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
       }

+ 68 - 3
src/views/modules/kuaishouapp/newBatch/index.vue

@@ -1797,7 +1797,7 @@ li.chouzhen.first:before {
         </div>
         <a-tab-pane :tab="item.label" v-for="item of tab" :key="item.value">
           <a-row :gutter="24">
-            <a-col :span="12">
+            <a-col :span="9">
               <a-form-item
                 label="日期选择"
                 :labelCol="{
@@ -1832,8 +1832,46 @@ li.chouzhen.first:before {
                 <a-range-picker name="buildTime" v-model="time" />
               </a-form-item>
             </a-col>
-            <a-col :span="12">
+            <a-col :span="9">
+              <a-form-item
+                label="唯一编码"
+                :labelCol="{
+                  lg: {
+                    span: 6,
+                  },
+                  sm: {
+                    span: 6,
+                  },
+                  xs: {
+                    span: 6,
+                  },
+                  md: {
+                    span: 6,
+                  },
+                }"
+                :wrapperCol="{
+                  lg: {
+                    span: 18,
+                  },
+                  sm: {
+                    span: 18,
+                  },
+                  xs: {
+                    span: 14,
+                  },
+                  md: {
+                    span: 14,
+                  },
+                }"
+              >
+                <a-input placeholder="请输入唯一标识,多个以,隔开" v-model="md5Str"/>
+              </a-form-item>
+            </a-col>
+            <a-col :span="4">
               <a-button style="position: relative; top: 4px" @click="selectAllVideo"> 全选 </a-button>
+              <a-button type="primary" style="position: relative;top: 4px;margin-left:5px" @click="searchVideo">
+                搜索
+              </a-button>
             </a-col>
           </a-row>
           <ul v-if="dataSource.length > 0" style="overflow: auto; padding-left: 0; height: 400px">
@@ -2234,6 +2272,7 @@ export default {
   },
   data() {
     return {
+      md5Str: "",
       spinning: true,
       removeActive: null,
       visibleVideo: false,
@@ -2640,6 +2679,7 @@ export default {
         params.status = 0
         params.channelType = this.channelType
         params.orderBy = 'time'
+        params.signatures = this.md5Str
         this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
       }
     },
@@ -2655,6 +2695,7 @@ export default {
         params.startDate = moment(n[0]).format('YYYY-MM-DD') + ' 00:00:00'
         params.endDate = moment(n[1]).format('YYYY-MM-DD') + ' 23:59:59'
         params.orderBy = 'time'
+        params.signatures = this.md5Str
         this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
       } else {
         var params = {}
@@ -2665,6 +2706,7 @@ export default {
         params.status = 0
         params.channelType = this.channelType
         params.orderBy = 'time'
+        params.signatures = this.md5Str
         this.ipagination.current = 1
         this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
       }
@@ -3522,7 +3564,10 @@ export default {
         })
       })
     },
-    cancelAll() {},
+    cancelAll() {
+      this.md5Str = ""
+      this.checkMatemalVisible = false
+    },
     callback(key) {
       this.channelType = key
       this.checkVideo = []
@@ -3535,6 +3580,24 @@ export default {
         this.checkVideo = this.checkVideoWai[this.ipagination.current - 1]
       }
     },
+    searchVideo() {
+        var params = {}
+        params.accountId = this.accountId
+        params.materialType = 1
+        params.pageSize = this.ipagination.pageSize
+        params.pageNo = 1
+        params.status = 0
+        params.channelType = this.channelType
+        params.orderBy = 'time'
+        params.signatures = this.md5Str
+        if (this.time.length > 0) {
+          // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
+          // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
+          params.startDate = moment(this.time[0]).format('YYYY-MM-DD') + ' 00:00:00'
+          params.endDate = moment(this.time[1]).format('YYYY-MM-DD') + ' 23:59:59'
+        }
+        this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
+    },
     selectAllVideo() {
       this.checkVideo = this.dataSource.map((item) => {
         return item.photoId
@@ -3622,6 +3685,7 @@ export default {
           params.status = 0
           params.channelType = this.channelType
           params.orderBy = 'time'
+          params.signatures = this.md5Str
           if (this.time.length > 0) {
             // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
             // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
@@ -3650,6 +3714,7 @@ export default {
       params.channelType = this.channelType
       params.status = 0
       params.orderBy = 'time'
+      params.signatures = this.md5Str
       if (this.time.length > 0) {
         // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
         // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')

+ 4 - 3
vue.config.js

@@ -69,10 +69,10 @@ module.exports = {
     proxy: {
       '/jeecg-boot': {
           // target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
-          // target: 'http://192.168.1.3:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
+          target: 'http://192.168.1.3:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.1.62:8088', //请求本地 需要jeecg-boot后台项目  英豪
-        // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
+        // target: 'http://192.168.6.162:8806', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.43:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.43:8806', //请求本地 需要jeecg-boot后台项目  毕洁泉
@@ -80,7 +80,7 @@ module.exports = {
         // target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
-         target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+        //  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目
@@ -88,6 +88,7 @@ module.exports = {
         // target:'http://118.24.244.213:8804',
         // target: 'http://192.168.1.43:8080', // 子安
       //  target:'http://139.186.165.84:8806', //测试
+        // target:'http://apipre.tjyourong.com.cn', //预生产
 
         ws: false,