Browse Source

5.17 需求 迭代

jiayufei 4 years ago
parent
commit
745a20f6ee

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

@@ -1,2 +1,3 @@
-// export const urlAcount = 'http://118.24.244.213:8080';
-export const urlAcount = 'http://192.168.1.43:8080';
+// export const urlAcount = 'http://118.24.244.213:8080'; // 线上
+export const urlAcount = 'http://192.168.1.43:8080'; // 子安
+// export const urlAcount = 'http://139.186.165.84:8080'; // 测试

+ 4 - 0
src/views/modules/account-config/components/configuration-modal.vue

@@ -1978,6 +1978,10 @@ export default {
                     return;
                 }
             }
+            if (this.selectPackageTabs === '2' && !this.configForm.adAudiencePackageId) {
+                this.$message.error('请选择已有定向包');
+                return;
+            }
             if (this.configForm.adScheduleType === 'SCHEDULE_START_END' && !this.configForm.launchDateRange.length) {
                 this.$message.error('请选择投放时间');
                 return;

+ 33 - 0
src/views/modules/creative-copywrit/creative-copywrit.vue

@@ -394,6 +394,7 @@
             >
                 一键同步
             </a-button>
+            <a-button v-if="checkArr.length" type="primary" @click="handleFodderWind">素材下线</a-button>
         </div>
         <a-tabs @change="callbackTwo" v-model="active" type="card" id="material-card">
             <a-tab-pane :tab="item.tab" v-for="item of examinelList" :key="item.value">
@@ -1521,6 +1522,7 @@ import uploadFile from '@/components/uploadFile.vue';
 import {closeAllVideoFun, stopOtherVideo} from '@/utils/videoControl';
 import accountCheck from '@/views/modules/material/accountCheck';
 import accountCheckBytedance from '@/views/modules/material/accountCheckBytedance';
+import {urlAcount} from '../account-config/account-config-server.js';
 
 import qs from 'qs';
 import {mapGetters} from 'vuex';
@@ -1861,6 +1863,35 @@ export default {
     },
     methods: {
         ...mapGetters(['nickname', 'avatar', 'userInfo']),
+        handleFodderWind() {
+            if (this.checkArr.length > 8) {
+                this.$message.error('最多可以支持同时选择8个视频');
+                return;
+            }
+            const paramsData = {
+                offlineFlag: 1,
+                id: this.checkArr.join(',')
+            };
+            let that = this;
+            this.$confirm({
+                title: '下线提示',
+                content: '是否下线选中视频',
+                onOk() {
+                    getAction(urlAcount + '/bytedance-api/advertiser/materialInfoController/updMaterialOfflineById', paramsData).then(result => {
+                        if (result.code === 0) {
+                            that.searchQuery();
+                            that.checkArr = [];
+                            that.$message.success(result.message);
+                        }
+                        else {
+                            that.$message.error(result.message);
+                        }
+                    }).catch(error => {
+                        console.log(error, 'eeee');
+                    });
+                }
+            });
+        },
         compareToFirstPassword(rule, value, callback) {
             if (value && value.length > 30 || value.length < 5) {
                 callback('创意标题5-30个字');
@@ -2443,6 +2474,8 @@ export default {
             }
         },
         onChangeCheck(checkedList) {
+            console.log(checkedList, 'checkedList--checkedList--bbbbb');
+            console.log(this.checkArr, 'checkArr--checkArr--checkArr');
             if (checkedList.length === 0) {
                 this.checkAll = false;
             }