Selaa lähdekoodia

账户配置 修改

jiayufei 4 vuotta sitten
vanhempi
commit
e48c33d348

+ 35 - 1
src/views/modules/account-config/account-config.vue

@@ -52,6 +52,9 @@
                 <span slot="acountRelax" slot-scope="text, record">
                     <a-switch :checked="text === 0" @change="handleSwitchChang($event, record)"/>
                 </span>
+                <span slot="creativeImageMode" slot-scope="text">
+                    <span>{{ handleChangeCreativeImage(text) }}</span>
+                </span>
                 <span solt="accountBudget" slot-scope="text, record">
                     {{ record.accountBudgetMode === '1' ? '不限' : text }}
                 </span>
@@ -272,6 +275,28 @@ export default {
             }
         };
         return {
+            creativeImageOption: [
+                {
+                    id: 'CREATIVE_IMAGE_MODE_VIDEO_VERTICAL',
+                    value: '竖版视频'
+                },
+                {
+                    id: 'CREATIVE_IMAGE_MODE_VIDEO',
+                    value: '横版视频'
+                },
+                {
+                    id: 'CREATIVE_IMAGE_MODE_LARGE',
+                    value: '大图横图'
+                },
+                {
+                    id: 'CREATIVE_IMAGE_MODE_SMALL',
+                    value: '小图'
+                },
+                {
+                    id: 'CREATIVE_IMAGE_MODE_LARGE_VERTICAL',
+                    value: '大图竖图'
+                }
+            ],
             searchStatus: 0,
             controlLoading: true,
             adBudgetShowTitle: false,
@@ -336,6 +361,12 @@ export default {
                     dataIndex: 'accountId_dictText'
                 },
                 {
+                    title: '素材类型',
+                    align: 'center',
+                    dataIndex: 'creativeImageMode',
+                    scopedSlots: {customRender: 'creativeImageMode'}
+                },
+                {
                     title: '账户ID',
                     align: 'center',
                     dataIndex: 'accountId'
@@ -371,7 +402,7 @@ export default {
                     title: '操作',
                     dataIndex: 'action',
                     align: 'center',
-                    width: '20%',
+                    width: '23%',
                     scopedSlots: {customRender: 'action'}
                 }
             ]
@@ -385,6 +416,9 @@ export default {
     },
     methods: {
         ...mapGetters(['nickname', 'avatar', 'userInfo']),
+        handleChangeCreativeImage(val) {
+            return val ? this.creativeImageOption.filter(item => item.id === val)[0].value : '-';
+        },
         handleAccountMode(e) {
             this.budgetForm.budget = 1000;
             this.adBudgetShowTitle = false;

+ 2 - 5
src/views/modules/account-config/components/configuration-copy.vue

@@ -2676,7 +2676,7 @@ export default {
         handleAddList(data) {
             postAction(urlAcount + '/bytedance-api/advertiser/aiBytedanceAdvertiserStrategy/addBytedanceStrategy', data).then(result => {
                 if (result.code === 0) {
-                    this.$message.success('创建成功');
+                    this.$message.success(result.message);
                     this.sureLoading = false;
                     this.$router.replace('/account-config/account-config');
                     this.$bus.$emit('remove', '/account-config/components/configuration-copy');
@@ -3039,12 +3039,9 @@ export default {
             this.$refs.ruleForm.validate(valid => {
                 if (valid) {
                     this.sureLoading = true;
-                    if (this.modalTitle === 'add') {
+                    if (this.modalTitle === 'copy') {
                         this.handleAddList(paramsFormData);
                     }
-                    else if (this.modalTitle === 'edit') {
-                        this.handleEditList(paramsFormData);
-                    }
                 }
                 else {
                     console.log('error submit!!');

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

@@ -8,4 +8,3 @@
  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'; // 学超
- 

+ 2 - 2
vue.config.js

@@ -87,8 +87,8 @@ module.exports = {
         // target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目 
         // target:'http://118.24.244.213:8804',
         // target: 'http://192.168.1.43:8806', // 子安
-        // target: 'http://192.168.1.8:8806', // 学超
-       target:'http://139.186.165.84:8806', //测试
+        target: 'http://192.168.1.8:8806', // 学超
+      //  target:'http://139.186.165.84:8806', //测试
         // target:'http://apipre.tjyourong.com.cn', //预生产
 
         ws: false,