瀏覽代碼

master代码发版

朱鑫波 3 年之前
父節點
當前提交
0778d34a5e

+ 4 - 0
public/index.html

@@ -6,6 +6,10 @@
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="referrer" content="never">
   <meta name="viewport" content="width=device-width,initial-scale=1.0">
+  <meta http-equiv="pragram" content="no-cache">
+  <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
+  <meta http-equiv="expires" content="0">
+
   <title>有腾投放助手</title>
   <link rel="icon" href="<%= BASE_URL %>logo.png">
   <link href="<%= BASE_URL %>color.less">

+ 2 - 2
src/utils/request.js

@@ -21,9 +21,9 @@ else if (process.env.NODE_ENV === 'debug') {
 else if (process.env.NODE_ENV === 'production') {
 	// axios.defaults.baseURL = 'http://apipre.tjyourong.com.cn/jeecg-boot'; // 预生产
 	// axios.defaults.baseURL = 'http://gateway.tjyourong.com.cn/jeecg-boot';//测试
-	// axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot'; // 生产环境
+	axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot'; // 生产环境
 	// axios.defaults.baseURL = 'http://gateway.tjyourong.com.cn/jeecg-boot'; // 测试环境
-	axios.defaults.baseURL = 'http://192.168.0.195:9999/jeecg-boot'; // 测试环境
+	// axios.defaults.baseURL = 'http://192.168.0.195:9999/jeecg-boot'; // 测试环境
 	// axios.defaults.baseURL = 'http://192.168.1.134:9999/jeecg-boot'; // 泽宇环境
 
 }

+ 2 - 2
src/views/modules/account-config/account-config-server.js

@@ -3,8 +3,8 @@
  * @author jiayufei
  */
 
-// export const urlAcount = 'http://118.24.244.213:8808'; // 线上
+export const urlAcount = 'http://118.24.244.213:8808'; // 线上
 // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
 // export const urlAcount = 'http://192.168.1.43:8808'; // 子安
-export const urlAcount = 'http://139.186.165.84:8808'; // 测试
+// export const urlAcount = 'http://139.186.165.84:8808'; // 测试
 // export const urlAcount = 'http://192.168.1.8:8080'; // 学超

+ 34 - 6
src/views/modules/autoLaunchRevision/components/targetedPopulation.vue

@@ -53,6 +53,13 @@ li:hover {
             </div>
             <div class="dingxiang_paichu" v-if="allForm.people != '0'" style="width:100%">
                 <a-tabs v-model="allForm.tabKey" @change="retargetAccountId()">
+                    <a-button
+                        slot="tabBarExtraContent"
+                        type="primary"
+                        @click="refreshPopulation"
+                        :loading="refreshPopulationLoading"
+                        >刷新人群包</a-button
+                    >
                     <a-tab-pane key="1" tab="定向池" v-if="allForm.people != '2'">
                         <a-table
                             :columns="retargetColumns"
@@ -751,7 +758,7 @@ let retargetColumns = [
 
 export default {
     name: 'new-create-template',
-    components:{
+    components: {
         selectRegion
     },
     props: {
@@ -903,7 +910,7 @@ export default {
                                 'deviceBrand',
                                 'devicePrice',
                                 'businessInterest',
-                                'filterConvertedLevel',
+                                'filterConvertedLevel'
                                 // 'timeType',
                                 // 'strengthType',
                                 // 'sceneType'
@@ -977,6 +984,7 @@ export default {
     directives: { clickoutside },
     data() {
         return {
+            refreshPopulationLoading: false,
             behaviorData: [],
             interestData: [],
             optionsAll: [],
@@ -1070,6 +1078,26 @@ export default {
         }
     },
     methods: {
+        refreshPopulation() {
+            if (this.accountId) {
+                this.refreshPopulationLoading = true
+                // this.$refs.application.showApplication()
+                this.getAction('/kuaishou/batch/pullPopulationList', {
+                    accountId: this.accountId
+                }).then(res => {
+                    if (res.success) {
+                        this.refreshPopulationLoading = false
+                        this.$message.success(res.message)
+                        this.retargetAccountId()
+                    } else {
+                        this.refreshPopulationLoading = false
+                        this.$message.error(res.message)
+                    }
+                })
+            } else {
+                this.$message.error('请先选择账户')
+            }
+        },
         personSelect() {
             if (this.allForm.people === '1' || this.allForm.people === '2') {
                 this.retargetAccountId()
@@ -1341,16 +1369,16 @@ export default {
                         json.region = []
                     }
                     var jsonData = {}
-                    if(this.allForm.people == '0'){
+                    if (this.allForm.people == '0') {
                         jsonData.population = []
                         jsonData.excludePopulation = []
-                    }else if(this.allForm.people == '1'){
+                    } else if (this.allForm.people == '1') {
                         jsonData.population = this.allForm.incluedSelectedRowKeys
                         jsonData.excludePopulation = []
-                    }else if(this.allForm.people == '2'){
+                    } else if (this.allForm.people == '2') {
                         jsonData.population = []
                         jsonData.excludePopulation = this.allForm.excludeSelectedRowKeys
-                    }else if(this.allForm.people == '3'){
+                    } else if (this.allForm.people == '3') {
                         jsonData.population = this.allForm.incluedSelectedRowKeys
                         jsonData.excludePopulation = this.allForm.excludeSelectedRowKeys
                     }

+ 2 - 2
src/views/modules/copy-library/copy-library-server.js

@@ -3,8 +3,8 @@
  * @author jiayufei
  */
 
-// export const urlAcount = 'http://118.24.244.213:8808'; // 线上
+export const urlAcount = 'http://118.24.244.213:8808'; // 线上
 // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
 // export const urlAcount = 'http://192.168.1.43:8080'; // 子安
-export const urlAcount = 'http://139.186.165.84:8808'; // 测试
+// export const urlAcount = 'http://139.186.165.84:8808'; // 测试
 // export const urlAcount = 'http://192.168.1.8:8808'; // 学超

+ 2 - 2
src/views/modules/headline-view/headline-view-server.js

@@ -3,8 +3,8 @@
  * @author jiayufei
  */
 
-// export const urlAcount = 'http://118.24.244.213:8808'; // 线上
+export const urlAcount = 'http://118.24.244.213:8808'; // 线上
 // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
 // export const urlAcount = 'http://192.168.1.43:8808'; // 子安
-export const urlAcount = 'http://139.186.165.84:8808'; // 测试
+// export const urlAcount = 'http://139.186.165.84:8808'; // 测试
 // export const urlAcount = 'http://192.168.1.8:8080'; // 学超

+ 2 - 2
src/views/modules/user-manage-operation/user-manage-operation-server.js

@@ -3,8 +3,8 @@
  * @author jiayufei
  */
 
-//  export const urlAcount = 'http://118.24.244.213:8808'; // 线上
+ export const urlAcount = 'http://118.24.244.213:8808'; // 线上
  // export const urlAcount = 'http://apipre.tjyourong.com.cn'; // 预生产
 //  export const urlAcount = 'http://192.168.1.43:'; // 子安
- export const urlAcount = 'http://139.186.165.84:8808'; // 测试
+//  export const urlAcount = 'http://139.186.165.84:8808'; // 测试
 //  export const urlAcount = 'http://192.168.1.8:9999'; // 学超

+ 2 - 2
vue.config.js

@@ -108,7 +108,7 @@ module.exports = {
         // target: 'http://192.168.1.59:7701', //请求本地 需要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后台项目
@@ -119,7 +119,7 @@ module.exports = {
         // target:'http://gateway.tjyourong.com.cn', //测试
         // target:'http://apipre.tjyourong.com.cn', //预生产
         // target: 'http://192.168.1.134:7001', //请求本地 需要jeecg-boot后台项目  周泽宇
-        target:'http://192.168.0.195:9999/',
+        // target:'http://192.168.0.195:9999/',
         // target:'http://gateway.tjyourong.com.cn/',//测试
 
         ws: false,