Jelajahi Sumber

修改人员回显

朱鑫波 4 tahun lalu
induk
melakukan
7ce717524f

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

@@ -313,7 +313,7 @@
             <a-form layout="inline" :selfUpdate="true">
                 <a-row :gutter="24">
                     <a-col :md="8" :sm="8">
-                        <selectTable :projectId.sync="queryParam.productId"></selectTable>
+                        <selectTable :projectId.sync="queryParam.productId" ref="selectTable"></selectTable>
                     </a-col>
                     <a-col :md="8" :sm="8">
                         <a-form-item label="素材名称">
@@ -368,7 +368,7 @@
             <a-button
                 @click="onCheckAllChange"
                 v-if="
-                queryParam.projectId &&
+                queryParam.productId &&
                 active == '1' &&
                 (role.roleCode == 'operator' ||
                     role.roleCode == 'kuaishouOperationManager' ||
@@ -381,7 +381,7 @@
             </a-button>
             <a-button
                 v-if="
-                queryParam.projectId &&
+                queryParam.productId &&
                 active == '1' &&
                 (role.roleCode == 'operator' ||
                     role.roleCode == 'kuaishouOperationManager' ||
@@ -390,9 +390,24 @@
                     role.roleCode == 'touTiaoOperationManager')
                 "
                 :disabled="checkArr.length == 0"
-                @click="tongbu"
+                @click="tongbu('1')"
             >
-                一键同步
+                一键同步头条
+            </a-button>
+            <a-button
+                v-if="
+                queryParam.productId &&
+                active == '1' &&
+                (role.roleCode == 'operator' ||
+                    role.roleCode == 'kuaishouOperationManager' ||
+                    role.roleCode == 'admin' ||
+                    role.roleCode == 'operationAssistant' ||
+                    role.roleCode == 'touTiaoOperationManager')
+                "
+                :disabled="checkArr.length == 0"
+                @click="tongbu('3')"
+            >
+                一键同步头条内广
             </a-button>
             <!-- &&  -->
             <a-button v-if="checkArr.length && active !== '0'" type="primary" @click="handleFodderWind">素材下线</a-button>
@@ -1891,7 +1906,7 @@ export default {
                 this.loadData();
             }
         },
-        'queryParam.projectId'(n, o) {
+        'queryParam.productId'(n, o) {
             if (n !== '') {
                 this.getList(n);
             }
@@ -2500,23 +2515,29 @@ export default {
             return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
         },
         moment,
-        tongbu() {
-            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('网络波动,请稍后再试');
-                }
-            });
+        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.$refs.check.getData('/ctop/userAllocation/getAccountListByUserIdAndProductId', {
+                userId: this.userInfo().id,
+                productId: this.queryParam.productId,
+                mediaId: value,
+            })
         },
         implement(data) {
             let params = {};
@@ -2599,22 +2620,25 @@ export default {
             this.queryParam = {
                 type: 'VIDEO',
                 userId: this.userInfo().id,
-                status: this.active
-            };
+                status: this.active,
+                productId: ''
+            }
+            this.$refs.selectTable.keyValue = "";
+            this.$refs.selectTable.getData()
             this.labelValue = [];
             this.loadData(1);
         },
         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;
-                    };
-                });
-            }
+            // 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) {
@@ -3111,7 +3135,7 @@ export default {
                     type: 'VIDEO',
                     userId: this.userInfo().id,
                     status: key,
-                    projectId: this.queryParam.projectId
+                    productId: this.queryParam.productId
                 }
                 if (this.labelValue.length >= 1) {
                     this.queryParam.tagCode = this.labelValue[this.labelValue.length - 1];
@@ -3119,7 +3143,7 @@ export default {
                 else {
                     this.queryParam.tagCode = '';
                 }
-                if (this.form.getFieldValue('projectId')) {
+                if (this.form.getFieldValue('productId')) {
                     this.form.setFieldsValue({
                         projectId: ''
                     });

+ 1 - 1
src/views/modules/material/accountCheck.vue

@@ -120,7 +120,7 @@ export default {
               key: item.projectId,
               children:item.userAllocationList.map(i=>{
                   return {
-                    title: i.authName+'\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0'+(item.userName?item.userName:'管理员'), 
+                    title: i.authName+'\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0'+(i.userName?i.userName:'管理员'), 
                     key: i.accountId
                   }
               })

+ 6 - 2
src/views/modules/material/videoMaterial.vue

@@ -356,7 +356,7 @@ a {
         <a-row :gutter="24">
           <a-col :md="8" :sm="8">
             <!-- <a-form-item label="项目名称"> -->
-            <selectTable :projectId.sync="queryParam.productId"></selectTable>
+            <selectTable :projectId.sync="queryParam.productId" ref="selectTable"></selectTable>
           </a-col>
 
           <a-col :md="8" :sm="8">
@@ -2344,7 +2344,10 @@ export default {
         type: 'VIDEO',
         userId: this.userInfo().id,
         status: this.active,
+        productId: ''
       }
+      this.$refs.selectTable.keyValue = "";
+      this.$refs.selectTable.getData()
       this.labelValue = []
 
       this.loadData(1)
@@ -2851,6 +2854,7 @@ export default {
       this.checkAll = false
       this.checkArr = []
 
+
       if (key == '3') {
         this.url.list = '/ctop/materialInfo/effiMaterialInfo'
         this.queryParam = {}
@@ -2861,7 +2865,7 @@ export default {
           type: 'VIDEO',
           userId: this.userInfo().id,
           status: key,
-          projectId: this.queryParam.projectId,
+          productId: this.queryParam.productId,
         }
         if (this.labelValue.length >= 1) {
           this.queryParam.tagCode = this.labelValue[this.labelValue.length - 1]

+ 2 - 2
vue.config.js

@@ -72,7 +72,7 @@ module.exports = {
           // target: 'http://192.168.1.3:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.1.62:8088', //请求本地 需要jeecg-boot后台项目  英豪
-        target: 'http://192.168.6.162:9806', //请求本地 需要jeecg-boot后台项目  祚云
+        // target: 'http://192.168.6.162:9806', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.43:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.43:8806', //请求本地 需要jeecg-boot后台项目  毕洁泉
@@ -89,7 +89,7 @@ module.exports = {
         // target: 'http://192.168.1.43:8080', // 子安
         // target: 'http://192.168.1.8:8806', // 学超
       //  target:'http://139.186.165.84:8806', //测试
-        // target:'http://apipre.tjyourong.com.cn', //预生产
+        target:'http://apipre.tjyourong.com.cn', //预生产
 
         ws: false,