瀏覽代碼

BUG 修改

jiayufei 4 年之前
父節點
當前提交
7ee55d0105

+ 3 - 3
src/utils/request.js

@@ -18,9 +18,9 @@ if (process.env.NODE_ENV === 'development') {
 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://139.186.165.84:8806/jeecg-boot';
-	axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot';//生产环境
+	// axios.defaults.baseURL = 'http://apipre.tjyourong.com.cn/jeecg-boot'; // 预生产
+    axios.defaults.baseURL = 'http://139.186.165.84:8806/jeecg-boot';
+	// axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot'; // 生产环境
 }
 const service = axios.create({
 	// baseURL: '/jeecg-boot', // api base_url

+ 11 - 6
src/views/modules/account-config/components/configuration-copy.vue

@@ -130,7 +130,12 @@
                         </div>
                     </a-form-model-item>
                     <a-form-model-item label="创建数量: 广告组数量" class="campaign-cnt-class" prop="campaignCnt">
-                        <a-input-number v-model="configForm.campaignCnt" :min="1" @change="handleCampaignCnt" :disabled="configForm.dpLinkIndexUsed === 0"/>
+                        <a-input-number
+                            v-model="configForm.campaignCnt"
+                            :min="1"
+                            @change="handleCampaignCnt"
+                            :disabled="configForm.dpLinkIndexUsed === 0"
+                        />
                         <a-tooltip placement="top">
                             <template slot="title">
                                 <span>输入的数量为每天所创建的广告组数量</span>
@@ -710,8 +715,7 @@
                         <div v-if="isAdCpaBidBlur" style="width: 500px;color: #f00;">{{ adCpaBidBlurTxt }}</div>
                     </a-form-model-item>
                     <div v-if="configForm.adBidCreateType === 'RAND'">
-                        <a-form-model-item label="目标转化出价"
-                        class="dp-link-start" prop="adMinBid">
+                        <a-form-model-item label="目标转化出价" class="dp-link-start" prop="adMinBid">
                             <a-input-number
                                 class="common-input"
                                 v-model="configForm.adMinBid"
@@ -2131,6 +2135,7 @@ export default {
                     this.directionalData = result.result;
                 }
                 else {
+                    this.directionalData = [];
                     this.$message.error(result.message);
                 }
             }).catch(error => {
@@ -2508,9 +2513,8 @@ export default {
                             getAction(urlAcount + '/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/getAdAudiencePackage', {accountId: detailData.accountId})
                                 .then(result => {
                                     if (result.code === 0) {
-                                        let checkboxChangeValueList = detailData.creativeInventoryType.split(',');
+                                        let checkboxChangeValueList = detailData.creativeInventoryType ? detailData.creativeInventoryType.split(',') : [];
                                         if (checkboxChangeValueList.length === 1 && checkboxChangeValueList[0] === 'INVENTORY_UNION_SLOT') {
-                                            console.log(result.result, 'result.result--result.result');
                                             this.selectiveList = result.result.filter(item => item.delivery_range === 'UNION');
                                         }
                                         else {
@@ -2749,9 +2753,10 @@ export default {
         },
         handleConvertTypeChange(e) {
             this.configForm.adConvertId = '';
+            this.optimizationOption = [];
             this.toolConvertList.forEach(item => {
                 if (item.convert_type === e) {
-                    this.optimizationOption = item.external_actions;
+                    this.optimizationOption = [...item.external_actions];
                 }
             });
         },

+ 9 - 3
src/views/modules/account-config/components/configuration-modal.vue

@@ -1866,7 +1866,7 @@ export default {
             }
         },
         NewAountId(newVal, oldVal) {
-            if (newVal && this.configForm.adPackage) {
+            if ((newVal && this.configForm.adPackage) || (newVal && this.configForm.adExternalUrl)) {
                 const paramsData = {
                     advancedCreativeType: 'ATTACHED_CREATIVE_NONE',
                     advertiserId: this.configForm.accountId,
@@ -1916,6 +1916,10 @@ export default {
         moment,
         handleSelectValue(data) {
             this.configForm.accountId = data.id;
+            this.configForm.adConvertType = undefined;
+            this.configForm.adConvertId = undefined;
+            this.toolConvertList = [];
+            this.optimizationOption = [];
             this.handleGetAdAudiencePackage();
         },
         handleAdDistrict(e) {
@@ -2127,6 +2131,7 @@ export default {
                     this.directionalData = result.result;
                 }
                 else {
+                    this.directionalData = [];
                     this.$message.error(result.message);
                 }
             }).catch(error => {
@@ -2504,7 +2509,7 @@ export default {
                             getAction(urlAcount + '/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/getAdAudiencePackage', {accountId: detailData.accountId})
                                 .then(result => {
                                     if (result.code === 0) {
-                                        let checkboxChangeValueList = detailData.creativeInventoryType.split(',');
+                                        let checkboxChangeValueList = detailData.creativeInventoryType ? detailData.creativeInventoryType.split(',') : [];
                                         if (checkboxChangeValueList.length === 1 && checkboxChangeValueList[0] === 'INVENTORY_UNION_SLOT') {
                                             this.selectiveList = result.result.filter(item => item.delivery_range === 'UNION');
                                         }
@@ -2744,9 +2749,10 @@ export default {
         },
         handleConvertTypeChange(e) {
             this.configForm.adConvertId = '';
+            this.optimizationOption = [];
             this.toolConvertList.forEach(item => {
                 if (item.convert_type === e) {
-                    this.optimizationOption = item.external_actions;
+                    this.optimizationOption = [...item.external_actions];
                 }
             });
         },

+ 18 - 3
src/views/modules/account-config/components/directional-logic/directional-logic.vue

@@ -4,7 +4,12 @@
             <div class="select-class-left">
                 <a-tabs v-model="selectPackageTabs" @change="handleTabsChange">
                     <a-tab-pane key="1" tab="定向池">
-                        <a-input-search class="input-search" v-model="directInput" placeholder="请输入人群包名称" @change="handleSearchPack($event, 'all', 'direct')" />
+                        <a-input-search
+                            class="input-search"
+                            v-model="directInput"
+                            placeholder="请输入人群包名称"
+                            @change="handleSearchPack($event, 'all', 'direct')"
+                        />
                         <a-table
                             :columns="columns"
                             :data-source="tableDataAllDirect"
@@ -18,7 +23,12 @@
                         </a-table>
                     </a-tab-pane>
                     <a-tab-pane key="2" tab="排除池">
-                        <a-input-search class="input-search" v-model="excludeInput" placeholder="请输入人群包名称" @change="handleSearchPack($event, 'all', 'exclude')" />
+                        <a-input-search
+                            class="input-search"
+                            v-model="excludeInput"
+                            placeholder="请输入人群包名称"
+                            @change="handleSearchPack($event, 'all', 'exclude')"
+                        />
                         <a-table
                             :columns="columns"
                             :data-source="tableDataAllExclude"
@@ -82,7 +92,12 @@
             </div>
         </div>
         <div v-else>
-            <a-input-search class="input-search" v-model="aloneInput" placeholder="请输入人群包名称" @change="handleSearchPack($event, 'alone')" />
+            <a-input-search
+                class="input-search"
+                v-model="aloneInput"
+                placeholder="请输入人群包名称"
+                @change="handleSearchPack($event, 'alone')"
+            />
             <div class="tree-select-class">
                 <div class="select-class-left">
                     <a-table

+ 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:8080'; // 学超

+ 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: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: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: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:8080'; // 学超