zhuxinbo 5 роки тому
батько
коміт
d83228d218

+ 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

@@ -239,7 +239,6 @@
         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">
+                            <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>

+ 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) {

Різницю між файлами не показано, бо вона завелика
+ 1235 - 0
src/views/modules/kuaishouapp/account/stepForm/stepModule/newModulePop.vue


+ 0 - 5
vue.config.js

@@ -73,13 +73,8 @@ module.exports = {
         // target: 'http://192.168.1.54:8080', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.1.51:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉
-<<<<<<< HEAD
         target: 'http://api.tjyourong.com.cn/jeecg-boot', //请求本地 需要jeecg-boot后台项目 
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
-=======
-        // target: 'http://api.tjyourong.com.cn/jeecg-boot', //请求本地 需要jeecg-boot后台项目 
-        target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
->>>>>>> 6c6ca1355430eb6ec2be730b342e112441291393
         // target: 'http://192.168.1.251:8088', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目