Ver Fonte

账户配置 动态词包 修改

jiayufei há 4 anos atrás
pai
commit
64ee61f2b4

+ 1 - 0
src/views/modules/account-config/account-config-server.js

@@ -7,3 +7,4 @@
 // 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:8080'; // 测试
+// export const urlAcount = 'http://192.168.1.8:8080'; // 学超

+ 19 - 7
src/views/modules/account-config/components/configuration-modal.vue

@@ -106,10 +106,21 @@
                 <a-form-model-item label="广告组名称" prop="campaignName">
                     <a-input
                         class="common-input-long"
+                        id="campaignName"
                         v-model="configForm.campaignName"
                         allow-clear
                         placeholder="请输入广告组名称"
                     />
+                    <!-- <div>
+                        <a-tag
+                            v-for="item in campaignTags"
+                            :key="item"
+                            color="#1890ff"
+                            @click="handleGetChangeAll(item, 'campaignName', 'campaignName')"
+                        >
+                            + {{ item }}
+                        </a-tag>
+                    </div> -->
                 </a-form-model-item>
                 <a-form-model-item label="广告计划名称" prop="adName">
                     <a-input
@@ -124,7 +135,7 @@
                             v-for="item in adNameTags"
                             :key="item"
                             color="#1890ff"
-                            @click="handleGetChangeAll(item, 'groupName')"
+                            @click="handleGetChangeAll(item, 'groupName', 'adName')"
                         >
                             + {{ item }}
                         </a-tag>
@@ -1257,7 +1268,8 @@ export default {
             md5Result: '',
             urlResult: '',
             createOptions: [],
-            adNameTags: ['序号', '出价方式', '素材名称', '日期', '创意方式'],
+            campaignTags: ['序号', '日期'],
+            adNameTags: ['出价方式', '素材名称', '日期', '创意方式'],
             fieldNames: {
                 label: 'industryName',
                 value: 'industryId',
@@ -1395,7 +1407,7 @@ export default {
                     {validator: adMaxBidValidator, trigger: 'blur'}
                 ],
                 adName: [
-                    {required: true, message: '请输入广告计划名称'},
+                    {required: true, message: '请输入广告计划名称', trigger: 'blur'},
                     {validator: handleCharacterLen100, trigger: 'blur'}
                 ],
                 creativeProductDescription: [
@@ -2263,7 +2275,7 @@ export default {
                                 this.optimizationOption = updateResult[0].external_actions;
                                 setTimeout(() => {
                                     this.configForm.adConvertId = detailData.adConvertId;
-                                }, 1000);
+                                }, 1500);
                             }
                             else {
                                 this.$message.error(result.message);
@@ -2471,16 +2483,16 @@ export default {
             });
         },
         // 点击获取光标位置进行字段插入
-        handleGetChangeAll(item, field) {
+        handleGetChangeAll(item, field, type) {
             let node = document.getElementById(field);
             let startPos = node.selectionStart; // input 第0个字符到选中的字符
             let endPos = node.selectionEnd; // 选中的字符到最后的字符
             let txt = node.value;
             if (startPos === 0 || endPos === 0) {
-                this.configForm.adName += '-{{' + item + '}}-';
+                this.configForm[type] += '-{{' + item + '}}-';
             }
             else {
-                this.configForm.adName = txt.substring(0, startPos) + '-{{' + item + '}}-' + txt.substring(endPos);
+                this.configForm[type] = txt.substring(0, startPos) + '-{{' + item + '}}-' + txt.substring(endPos);
                 node.selectionStart = startPos + item.length + 6;
                 node.selectionEnd = startPos + item.length + 6;
             }

+ 1 - 1
src/views/modules/headline-view/headline-view.vue

@@ -299,7 +299,7 @@
         </a-modal>
         <a-modal
             v-if="budgetVisible"
-            title="修改价"
+            title="修改价"
             :visible="budgetVisible"
             dialog-class="mode-modal-class"
             @ok="handleBudgetSure"