魏志佳 5 anos atrás
pai
commit
bdff72cbc8

+ 2 - 0
debug.log

@@ -3,3 +3,5 @@
 [0529/112937.608:ERROR:file_io.cc(89)] ReadExactly: expected 36, observed 0
 [0619/110835.729:ERROR:file_io.cc(89)] ReadExactly: expected 36, observed 0
 [0701/153438.192:ERROR:file_io.cc(89)] ReadExactly: expected 36, observed 0
+[0708/055752.148:ERROR:process_info.cc(375)] NtQuerySystemInformation SystemExtendedHandleInformation: {没有足够配额} 没有足够的虚拟内存或分页文件配额以完成指定的操作。 (0xc0000017)
+[0708/055807.088:ERROR:process_info.cc(359)] UncheckedAllocate

+ 16 - 0
src/components/layouts/TabLayout.vue

@@ -105,6 +105,22 @@
           let oldPositionRoute = this.pageList[oldIndex]
           this.pageList.splice(oldIndex, 1, Object.assign({}, newRoute, {meta: oldPositionRoute.meta}))
         }
+        if(!this.linkList.includes("/account/stepForm")){
+          localStorage.removeItem("step")
+          localStorage.removeItem("campaignId")
+          localStorage.removeItem("pans")
+        }
+        if(!this.linkList.includes("/account/advertisingGroup")){
+          localStorage.removeItem("advertisingGroup")
+          localStorage.removeItem("advertisingGroupKey")
+        }
+        if(!this.linkList.includes("/account/originality")){
+          localStorage.removeItem("originality")
+          localStorage.removeItem("originalityKey")
+        }
+        if(!this.linkList.includes("/account/accountIndex")){
+          localStorage.removeItem("accountId")
+        }
       },
       'activePage': function (key) {
         let index = this.linkList.lastIndexOf(key)

+ 1 - 1
src/utils/request.js

@@ -107,7 +107,7 @@ service.interceptors.response.use((response) => {
 }, (error) => {
     notification.error({
         message: '系统提示',
-        description: '网络超时'
+        description: '网络超时,请刷新页面'
       })
     return 
   })

+ 0 - 1
src/views/modules/BatchCreate/MultiCheckBox.vue

@@ -283,7 +283,6 @@ import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
         overflow: auto;
       }
 
-      .checkAll {}
 
       li {
         height: 30px;

+ 2 - 2
src/views/modules/BatchCreate/newDirectedPackage.vue

@@ -489,7 +489,7 @@
                         
                     </a-form-item>
                     <div class="interestActionMode" v-show="interestActionMode=='CUSTOM'">
-                            <a-form-item label="行为:" class="optItem" :label-col="labelCol" :wrapper-col="wrapperCol">
+                            <a-form-item label="行为:" class="optItem"  :label-col="labelCol" :wrapper-col="wrapperCol">
                                 <div>
                                     <span style="margin-right:5px">在</span> 
                                     <a-select
@@ -634,7 +634,7 @@
                                     </div>
                                 </div>
                             </a-form-item>
-                            <a-form-item label="兴趣:" class="optItem">
+                            <a-form-item label="兴趣:" class="optItem"  :label-col="labelCol" :wrapper-col="wrapperCol">
 
                             </a-form-item>
                         </div>

+ 15 - 14
src/views/modules/Statistics/components/Treeselect.vue

@@ -7,7 +7,7 @@
   <div class="select-project">
     <treeselect :multiple="multiple" :disable-branch-nodes="!multiple" :options="options" :load-options="loadOptions"
       placeholder="请选择项目以及账户" v-model="value" :value-consists-of="valueConsistsOf" :auto-load-root-options="false"
-      @select="update" @input="emitValue" :limit="2" :limitText="
+      @select="update" @input="emitValue" :limit="2"  :default-options="true" :limitText="
         count => {
           return '隐藏' + count + '条'
         }
@@ -71,23 +71,24 @@
     },
     watch: {
       $route(n, o) {},
-      appId: {
-        handler(n, o) {
-          // console.log(n)
-          if (n.length == 0) {
-            if (this.multiple) {
-              this.value = []
-            } else {
-              this.value = ''
-            }
-          }
-        },
-        deep: true
-      }
+    //   appId: {
+    //     handler(n, o) {
+    //       console.log(n)
+    //       if (n.length == 0) {
+    //         if (this.multiple) {
+    //           this.value = []
+    //         } else {
+    //           this.value = ''
+    //         }
+    //       }
+    //     },
+    //     deep: true
+    //   }
     },
     methods: {
       ...mapGetters(['nickname', 'avatar', 'userInfo']),
       update(node, id) {
+          console.log(node)
         getAction('/ctop/userAllocation/getAccountListByProjectId', {
           projectId: node.id
         }).then(res => {

+ 27 - 18
src/views/modules/kuaishouapp/account/accountIndex.vue

@@ -419,33 +419,37 @@
         this.$refs.copyGroup.handleSubmit(e)
       },
       toDetail(record) {
+
         localStorage.setItem('advertisingGroupKey', record.campaignId)
         localStorage.setItem('accountId', this.appId)
 
         getAction('/kuaishou/batch/getAsyncCreativeList', {
           campaignId: record.campaignId,
           accountId: this.appId
-        }).then()
-        if (localStorage.getItem('advertisingGroup')) {
-          var dataElse = JSON.parse(localStorage.getItem('advertisingGroup'))
-          console.log(dataElse)
-          for (let i = 0; i < dataElse.length; i++) {
-            if (dataElse[i].key == record.key) {
-              this.$router.replace({
-                path: '/account/advertisingGroup'
-              })
-              return
+        }).then(() => {
+          localStorage.setItem('campaignId', record.campaignId)
+          if (localStorage.getItem('advertisingGroup')) {
+            var dataElse = JSON.parse(localStorage.getItem('advertisingGroup'))
+            console.log(dataElse)
+            for (let i = 0; i < dataElse.length; i++) {
+              if (dataElse[i].key == record.key) {
+                this.$router.replace({
+                  path: '/account/advertisingGroup'
+                })
+                return
+              }
             }
+            dataElse.push(record)
+            localStorage.setItem('advertisingGroup', JSON.stringify(dataElse))
+          } else {
+            var data = [record]
+            localStorage.setItem('advertisingGroup', JSON.stringify(data))
           }
-          dataElse.push(record)
-          localStorage.setItem('advertisingGroup', JSON.stringify(dataElse))
-        } else {
-          var data = [record]
-          localStorage.setItem('advertisingGroup', JSON.stringify(data))
-        }
-        this.$router.replace({
-          path: '/account/advertisingGroup'
+          this.$router.replace({
+            path: '/account/advertisingGroup'
+          })
         })
+
       },
       setData(item) {
         let date = new Date()
@@ -722,6 +726,11 @@
     activated() {
       this.manyTwo = this.many
       this.$refs.treeSelect.getParticipateList()
+      if (this.appId == '') {
+        return
+      } else {
+        this.addUser()
+      }
     }
   }
 </script>

+ 13 - 101
src/views/modules/kuaishouapp/account/newMould.vue

@@ -32,7 +32,7 @@
         <a-button type="primary" style="margin:10px" @click="addUser">搜索</a-button>
       </a-col>
     </a-row>
-    <a-button type="primary" @click=";(visible = true), (populationData = {}), (active = 'add')" :disabled="!appId">
+    <a-button type="primary" @click="addModule" :disabled="!appId">
       创建模板
     </a-button>
     <a-row style="margin-top:15px">
@@ -76,7 +76,7 @@
   } from 'vuex'
   import jq from 'jquery'
   import Treeselect from '@/views/modules/Statistics/components/Treeselect.vue'
-  import targetedPopulation from '@/views/modules/kuaishouapp/account/stepForm/stepModule/targetedPopulation.vue'
+  import targetedPopulation from '@/views/modules/kuaishouapp/account/stepForm/stepModule/newModulePop.vue'
   export default {
     name: 'new-mould',
     components: {
@@ -114,105 +114,6 @@
         ],
         appId: '',
         populationData: {
-          // platform_os: '1',
-          // is_open: '0',
-          // gender: '1',
-          // network: '1',
-          // interest_video: [2, 3],
-          // ages_range: ['12', '41'],
-          // device_brand: ['2', '9'],
-          // device_price: ['5', '9'],
-          // fans_star: [2, 3, 4, 5],
-          // app_interest: [3, 4],
-          // android_osv: '4',
-          // business_interest_type: '2',
-          // business_interest: [34328, 34330],
-          // no_age_break: 0,
-          // no_gender_break: 0,
-          // no_area_break: 0,
-          // region: [
-          //   11,
-          //   12,
-          //   13,
-          //   14,
-          //   15,
-          //   21,
-          //   22,
-          //   23,
-          //   31,
-          //   32,
-          //   33,
-          //   34,
-          //   35,
-          //   36,
-          //   37,
-          //   41,
-          //   42,
-          //   43,
-          //   44,
-          //   45,
-          //   46,
-          //   50,
-          //   51,
-          //   52,
-          //   53,
-          //   54,
-          //   61,
-          //   62,
-          //   63,
-          //   64,
-          //   65,
-          //   71,
-          //   81,
-          //   82
-          // ],
-          // allForm: {
-          //   regionType: 'limit',
-          //   region: [
-          //     { label: '北京', value: 11 },
-          //     { label: '天津', value: 12 },
-          //     { label: '河北', value: 13 },
-          //     { label: '山西', value: 14 },
-          //     { label: '内蒙古', value: 15 },
-          //     { label: '辽宁', value: 21 },
-          //     { label: '吉林', value: 22 },
-          //     { label: '黑龙江', value: 23 },
-          //     { label: '上海', value: 31 },
-          //     { label: '江苏', value: 32 },
-          //     { label: '浙江', value: 33 },
-          //     { label: '安徽', value: 34 },
-          //     { label: '福建', value: 35 },
-          //     { label: '江西', value: 36 },
-          //     { label: '山东', value: 37 },
-          //     { label: '河南', value: 41 },
-          //     { label: '湖北', value: 42 },
-          //     { label: '湖南', value: 43 },
-          //     { label: '广东', value: 44 },
-          //     { label: '广西', value: 45 },
-          //     { label: '海南', value: 46 },
-          //     { label: '重庆', value: 50 },
-          //     { label: '四川', value: 51 },
-          //     { label: '贵州', value: 52 },
-          //     { label: '云南', value: 53 },
-          //     { label: '西藏', value: 54 },
-          //     { label: '陕西', value: 61 },
-          //     { label: '甘肃', value: 62 },
-          //     { label: '青海', value: 63 },
-          //     { label: '宁夏', value: 64 },
-          //     { label: '新疆', value: 65 },
-          //     { label: '台湾', value: 71 },
-          //     { label: '香港', value: 81 },
-          //     { label: '澳门', value: 82 }
-          //   ],
-          //   ageType: 'ageLimit',
-          //   ages_range: [],
-          //   age: [],
-          //   device: '1',
-          //   price: '1',
-          //   appType: '1',
-          //   fansStar: '1',
-          //   interestVideo: '1'
-          // }
         },
         active: 'add',
         editId: '',
@@ -237,12 +138,21 @@
     computed: {},
     filters: {},
     methods: {
+      addModule() {
+        this.visible = true
+        this.populationData = {}
+        this.active = 'add'
+        localStorage.setItem('accountIdNewMoudle', this.appId)
+      },
       handleSubmit(e) {
         //   this.$refs.population.handleSubmit()
         e.preventDefault()
         this.$refs.population.handleSubmit()
         var data = this.populationData
         console.log(JSON.stringify(data))
+        // this.$bus.$emit('remove', '/account/stepForm')
+        // this.$bus.$emit('remove', '/account/advertisingGroup')
+        // this.$bus.$emit('remove', '/account/originality')
         if (this.active == 'add') {
           postAction('/kuaishou/batch/addDirectionalTemplate', {
             accountId: this.appId,
@@ -281,6 +191,7 @@
         this.editId = item.id
         this.name = item.templateName
         this.populationData = JSON.parse(item.templateContent)
+        localStorage.setItem('accountIdNewMoudle', this.appId)
         console.log(item.templateContent)
         this.visible = true
       },
@@ -303,6 +214,7 @@
         params.accountId = this.appId + ''
 
         if (this.appId) {
+          localStorage.setItem('accountIdNewMoudle', this.appId)
           getAction('/kuaishou/batch/pullPopulationList', params).then(res => {
             getAction('/kuaishou/batch/getDirectionalTemplate', params).then(res => {
               if (res.success) {

+ 12 - 1
src/views/modules/kuaishouapp/account/stepForm/Step3.vue

@@ -793,6 +793,16 @@
       handleOk() {
         if (this.allForm.fail.length == 0) {
           this.remove(this.pansKey)
+          if (localStorage.getItem('originality')) {
+            this.$router.replace({
+              path: '/account/originality'
+            })
+          } else {
+            this.$router.replace({
+              path: '/account/accountIndex'
+            })
+          }
+
           this.visible = false
         } else {
           this.visible = false
@@ -1391,7 +1401,8 @@
           this.content = res.result
         })
         getAction('/kuaishou/batch/getActionBarText', {
-          campaignId: localStorage.getItem('campaignId')
+          campaignId: localStorage.getItem('campaignId') ? localStorage.getItem('campaignId') : localStorage
+            .getItem('advertisingGroupKey')
         }).then(res => {
           if (res.success) {
             this.appList = res.result

Diferenças do arquivo suprimidas por serem muito extensas
+ 1235 - 0
src/views/modules/kuaishouapp/account/stepForm/stepModule/newModulePop.vue


+ 127 - 0
src/views/modules/material/modules/videoList.vue

@@ -0,0 +1,127 @@
+<template>
+  <a-card :bordered="false">
+    <!-- table区域-begin -->
+    <div>
+      <a-table ref="table" size="middle" bordered rowKey="id" :columns="columns" :dataSource="dataSource"
+        :pagination="false" :loading="loading">
+        <span slot="url" slot-scope="text">
+          <img :src="text+'?x-oss-process=video/snapshot,t_00000,m_fast'" style="width:200px" alt="">
+        </span>
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+
+          <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+            <a>删除</a>
+          </a-popconfirm>
+        </span>
+      </a-table>
+    </div>
+  </a-card>
+</template>
+
+<script>
+  import JTreeSelect from '@/components/jeecg/JTreeSelect'
+  import {
+    httpAction,
+    getAction
+  } from '@/api/manage'
+  //   import {
+  //     JeecgListMixin
+  //   } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: 'ProjectList',
+    // mixins: [JeecgListMixin],
+    components: {
+      JTreeSelect
+    },
+    props: {
+      dataSource: {
+        type: Array,
+        default () {
+          return []
+        }
+      },
+      ipagination: {
+        type: Object,
+        default () {
+          return {
+            current: 1,
+            pageSize: 10,
+            pageSizeOptions: ['10', '20', '30'],
+            showTotal: (total, range) => {
+              return range[0] + "-" + range[1] + " 共" + total + "条"
+            },
+            showQuickJumper: true,
+            // showSizeChanger: true,
+            total: 0
+          }
+        }
+      },
+      loading: {
+        type: Boolean,
+        default () {
+          return false
+        }
+      }
+    },
+    data() {
+      return {
+        description: '视频素材列表页',
+        // 表头
+        columns: [{
+            title: '项目名称',
+            align: 'center',
+            dataIndex: 'projectName'
+          },
+          {
+            title: '素材名称',
+            align: 'center',
+            dataIndex: 'materialName'
+          },
+          {
+            title: '素材',
+            align: 'center',
+            dataIndex: 'url',
+            scopedSlots: {
+              customRender: 'url'
+            }
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align: 'center',
+            scopedSlots: {
+              customRender: 'action'
+            }
+          }
+        ],
+        url: {},
+        options: []
+      }
+    },
+    computed: {
+      importExcelUrl: function () {
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
+      }
+    },
+    methods: {
+      filterOption(input, option) {
+        return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+      },
+    },
+    mounted() {
+      getAction('/sys/user/getAllUserList', '').then(res => {
+        console.log(res)
+        if (res.success) {
+          this.options = res.result
+        }
+      })
+    },
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>

Diferenças do arquivo suprimidas por serem muito extensas
+ 1504 - 1734
src/views/modules/material/videoMaterial.vue


+ 2 - 2
vue.config.js

@@ -67,13 +67,13 @@ module.exports = {
        
         // target: 'http://192.168.1.90:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
        
-        target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
+        // target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
        
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.94:8804', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.1.51:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://api.tjyourong.com.cn/jeecg-boot', //请求本地 需要jeecg-boot后台项目 
+        target: 'http://api.tjyourong.com.cn/jeecg-boot', //请求本地 需要jeecg-boot后台项目 
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://192.168.1.251:8088', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目