فهرست منبع

middle 文案库修改

jiayufei 4 سال پیش
والد
کامیت
46d4967013

+ 3 - 3
src/views/modules/copy-library/copy-library.vue

@@ -702,7 +702,7 @@ export default {
             getAction(urlAcount + '/bytedance-api/advertiser/bytedanceGeneralCopywriter/queryPageListByText', paramsData).then(result => {
                 if (result.code === 0) {
                     this.currencyData = result.result.list;
-                    this.currencyTotalAll = result.result.total;
+                    this.currencyTotalAll = result.result.total || 0;
                 }
                 else {
                     this.currencyData = [];
@@ -726,11 +726,11 @@ export default {
             getAction(urlAcount + '/bytedance-api/ctop/bytedanceVideoSlogenInfo/queryPageListByText', paramsData).then(result => {
                 if (result.code === 0) {
                     this.appointData = result.result.list;
-                    this.appointTotalAll = result.result.total;
+                    this.appointTotalAll = result.result.total || 0;
                 }
                 else {
                     this.appointData = [];
-                    this.appointTotalAll = [];
+                    this.appointTotalAll = 0;
                     this.$message.error(result.message);
                 }
             }).catch(error => {

+ 21 - 37
src/views/modules/creative-copywrit/creative-copywrit.vue

@@ -1279,7 +1279,7 @@
                                 :wrapper-col="wrapperCol"
                                 label=""
                             >
-                                <div style="width: 500px;">
+                                <div style="width: 430px;">
                                     <template v-if="item.name === defaultSolganTitle">
                                         <a-input
                                             v-decorator="[
@@ -2038,9 +2038,12 @@ export default {
                 this.loadData();
             }
         },
-        'queryParam.productId'(n, o) {
-            if (n !== '') {
+        'queryParam.productId': function (n, o) {
+            if (n != '') {
                 this.getList(n);
+                this.checkArr = [];
+                this.$refs.selectTableProject.keyValue = '';
+                this.$refs.selectTableProject.getData(n);
             }
         },
         visibleDetail(n, o) {
@@ -2082,6 +2085,7 @@ export default {
         ...mapGetters(['nickname', 'avatar', 'userInfo']),
         handleBudgetCancel() {
             this.defaultSolganTitle = 'test';
+            this.defaultSolganStatus = 'input';
             this.visibleDetail = false;
         },
         // 获取设计人员
@@ -2095,6 +2099,10 @@ export default {
             });
         },
         handleSubmit() {
+            if (!this.queryParam.productId) {
+                this.$refs.selectTableProject.keyValue = '';
+                this.$refs.selectTableProject.getData();
+            }
             this.searchQuery();
             this.checkArr = [];
         },
@@ -2998,28 +3006,12 @@ export default {
         },
         moment,
         tongbu(value) {
-            // getAction('/ctop/project/queryById', {id: this.queryParam.projectId}).then(res => {
-            //     if (res.success) {
-            //         if (res.result.mediaId === '1' || res.result.mediaId === '3') {
-            //             this.$refs.check.getData('/ctop/userAllocation/getAccountListByProjectId', {
-            //                 userId: this.userInfo().id,
-            //                 projectId: this.queryParam.projectId
-            //             });
-            //         }
-            //         else if (res.result.mediaId === '2' || res.result.mediaId === '4') {
-            //             this.$refs.accountCheckBytedance.getParticipateList(this.queryParam.projectId);
-            //         }
-            //     }
-            //     else {
-            //         this.$message.error('网络波动,请稍后再试');
-            //     }
-            // });
-            this.mediaId = value
+            this.mediaId = value;
             this.$refs.check.getData('/ctop/userAllocation/getAccountListByUserIdAndProductId', {
                 userId: this.userInfo().id,
                 productId: this.queryParam.productId,
-                mediaId: value,
-            })
+                mediaId: value
+            });
         },
         implement(data) {
             let params = {};
@@ -3104,24 +3096,16 @@ export default {
                 userId: this.userInfo().id,
                 status: this.active,
                 productId: ''
-            }
-            this.$refs.selectTable.keyValue = "";
-            this.$refs.selectTable.getData()
+            };
+            this.$refs.selectTable.keyValue = '';
+            this.$refs.selectTable.getData();
+            this.$refs.selectTableProject.keyValue = '';
+            this.$refs.selectTableProject.getData();
             this.labelValue = [];
             this.loadData(1);
             this.checkArr = [];
         },
         getList(value) {
-            // if (value) {
-            //     getAction('/ctop/projectMember/participateListV2', {
-            //         userId: this.userInfo().id,
-            //         projectId: value
-            //     }).then(res => {
-            //         if (res.code === 0) {
-            //             this.mediaId = res.result.records[0].mediaId;
-            //         };
-            //     });
-            // }
             this.loadData();
         },
         onChangeCheckImage(checkedList) {
@@ -3452,7 +3436,7 @@ export default {
                         md5: [],
                         name: [],
                         size: []
-                    }
+                    };
                     this.imageArrList = [];
                     this.addImageVisible = false;
                     this.loadingImage = false;
@@ -3825,7 +3809,7 @@ export default {
             });
         },
         getDataSource(page, pageSize) {
-            this.ipagination.current = page
+            this.ipagination.current = page;
             this.checkArr = [];
             this.checkAll = false;
             this.loadData();

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

@@ -363,7 +363,7 @@ export default {
     data() {
         let adCpaBidValidator = (rule, value, callback) => {
             if (Number(this.currentUnit.adBudget) < Number(value)) {
-                callback(`出价不能大于预算,当前预算${this.currentUnit.adBudget}`);
+                callback('出价不能大于预算');
             }
             else {
                 callback();