Kaynağa Gözat

work 修改账户配置 新增

jiayufei 3 yıl önce
ebeveyn
işleme
b941130c14

+ 46 - 11
src/views/modules/account-config/components/configuration-copy.vue

@@ -185,14 +185,25 @@
                             <a-radio-button value="EXTERNAL_URL">落地页</a-radio-button>
                         </a-radio-group>
                     </a-form-model-item>
-                    <a-form-model-item v-if="configForm.adDownloadType === 'EXTERNAL_URL'" label="落地页链接" prop="adExternalUrl">
+                    <div v-if="configForm.adDownloadType === 'EXTERNAL_URL'">
+                        <a-form-model-item label="落地页链接" prop="adExternalUrl" key="arr">
+                            <a-input
+                                class="common-input-long"
+                                :disabled="modalTitle === 'edit'"
+                                v-model="configForm.adExternalUrl"
+                                placeholder="请输入落地页链接"
+                                allow-clear
+                            />
+                        </a-form-model-item>
+                    </div>
+                    <!-- <a-form-model-item v-if="configForm.adDownloadType === 'EXTERNAL_URL'" label="落地页链接" prop="adExternalUrl">
                         <a-input
                             class="common-input-long"
                             v-model="configForm.adExternalUrl"
                             placeholder="请输入落地页链接"
                             allow-clear
                         />
-                    </a-form-model-item>
+                    </a-form-model-item> -->
                     <!-- <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="下载链接" prop="adDownloadUrl">
                         <a-input
                             class="common-input-long"
@@ -218,7 +229,7 @@
                             allow-clear
                         />
                     </a-form-model-item>
-                    <a-form-model-item v-if="platformLoadingType === 'APP_ANDROID'" label="应用下载详情页" prop="creativeWebUrl">
+                    <a-form-model-item v-if="platformLoadingType === 'APP_ANDROID' && configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用下载详情页" prop="creativeWebUrl">
                         <a-input
                             class="common-input-long"
                             v-model="configForm.creativeWebUrl"
@@ -228,7 +239,7 @@
                         />
                         <span style="margin-left: 10px;"><a @click="handleHaveWebUrl">使用已有</a></span>
                     </a-form-model-item>
-                    <div v-if="platformLoadingType === 'APP_ANDROID'" class="adver-position-radio">
+                    <div v-if="platformLoadingType === 'APP_ANDROID' && configForm.adDownloadType === 'DOWNLOAD_URL'" class="adver-position-radio">
                         <div class="create-web-url-class">
                             <div class="web-url-img">
                                 <img v-if="landingPageShowData.thumbnail" :src="landingPageShowData.thumbnail"/>
@@ -842,6 +853,14 @@
                                 allow-clear
                             />
                         </a-form-model-item>
+                        <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用名" prop="creativeAppName" key="creativeAppName26">
+                            <a-input
+                                class="common-input-long"
+                                placeholder="请输入应用名"
+                                v-model="configForm.creativeAppName"
+                                allow-clear
+                            />
+                        </a-form-model-item>
                         <a-form-model-item label="搭配试玩">
                             <a-radio-group v-model="configForm.collocationPlay" button-style="solid" disabled>
                                 <a-radio-button value="a">不启用</a-radio-button>
@@ -905,6 +924,14 @@
                                 allow-clear
                             />
                         </a-form-model-item>
+                        <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用名" prop="creativeAppName" key="creativeAppName27">
+                            <a-input
+                                class="common-input-long"
+                                placeholder="请输入应用名"
+                                v-model="configForm.creativeAppName"
+                                allow-clear
+                            />
+                        </a-form-model-item>
                         <a-form-model-item label="创意展现">
                             <a-radio-group v-model="configForm.creativeDisplayMode" button-style="solid">
                                 <a-radio-button value="CREATIVE_DISPLAY_MODE_CTR">优选模式</a-radio-button>
@@ -946,6 +973,14 @@
                                 allow-clear
                             />
                         </a-form-model-item>
+                        <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用名" prop="creativeAppName" key="creativeAppName28">
+                            <a-input
+                                class="common-input-long"
+                                placeholder="请输入应用名"
+                                v-model="configForm.creativeAppName"
+                                allow-clear
+                            />
+                        </a-form-model-item>
                         <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="自动生成视频素材">
                             <a-radio-group v-model="configForm.creativeIsPresentedVideo" button-style="solid">
                                 <a-radio-button :value="0">不启用</a-radio-button>
@@ -1079,7 +1114,7 @@
                                 allow-clear
                             />
                         </a-form-model-item>
-                        <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用名" prop="creativeAppName">
+                        <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用名" prop="creativeAppName" key="creativeAppName29">
                             <a-input
                                 class="common-input-long"
                                 placeholder="请输入应用名"
@@ -2479,20 +2514,20 @@ export default {
             this.optimizationOption = [];
             this.landingPageShowData = {};
             this.configForm.creativeWebUrl = '';
-            this.platformLoadingType = '';
+            // this.platformLoadingType = '';
             const defaultValue = e.target.value;
             if (defaultValue === 'DOWNLOAD_URL') {
                 this.configForm.adExternalUrl = '';
                 this.configForm.adOpenUrl = '';
-                this.$refs.ruleForm.clearValidate(['adExternalUrl']);
+                // this.$refs.ruleForm.clearValidate(['adExternalUrl']);
             }
             else if (defaultValue === 'EXTERNAL_URL') {
-                this.configForm.adDownloadUrl = '';
-                this.configForm.adPackage = '';
+                // this.configForm.adDownloadUrl = '';
+                // this.configForm.adPackage = '';
                 this.configForm.adConvertId = '';
                 this.configForm.adAppType = '';
-                this.$refs.ruleForm.clearValidate(['adDownloadUrl']);
-                this.$refs.ruleForm.clearValidate(['adPackage']);
+                // this.$refs.ruleForm.clearValidate(['adDownloadUrl']);
+                // this.$refs.ruleForm.clearValidate(['adPackage']);
             }
         },
         handleCampaignCnt(e) {

+ 44 - 18
src/views/modules/account-config/components/configuration-modal.vue

@@ -187,15 +187,17 @@
                             <a-radio-button value="EXTERNAL_URL">落地页</a-radio-button>
                         </a-radio-group>
                     </a-form-model-item>
-                    <a-form-model-item v-if="configForm.adDownloadType === 'EXTERNAL_URL'" label="落地页链接" prop="adExternalUrl">
-                        <a-input
-                            class="common-input-long"
-                            :disabled="modalTitle === 'edit'"
-                            v-model="configForm.adExternalUrl"
-                            placeholder="请输入落地页链接"
-                            allow-clear
-                        />
-                    </a-form-model-item>
+                    <div v-if="configForm.adDownloadType === 'EXTERNAL_URL'">
+                        <a-form-model-item label="落地页链接" prop="adExternalUrl" key="arr">
+                            <a-input
+                                class="common-input-long"
+                                :disabled="modalTitle === 'edit'"
+                                v-model="configForm.adExternalUrl"
+                                placeholder="请输入落地页链接"
+                                allow-clear
+                            />
+                        </a-form-model-item>
+                    </div>
                     <!-- <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="下载链接" prop="adDownloadUrl">
                         <a-input
                             class="common-input-long"
@@ -223,7 +225,7 @@
                             allow-clear
                         />
                     </a-form-model-item>
-                    <a-form-model-item v-if="platformLoadingType === 'APP_ANDROID'" label="应用下载详情页" prop="creativeWebUrl">
+                    <a-form-model-item v-if="platformLoadingType === 'APP_ANDROID' && configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用下载详情页" prop="creativeWebUrl">
                         <a-input
                             class="common-input-long"
                             v-model="configForm.creativeWebUrl"
@@ -234,7 +236,7 @@
                         />
                         <span style="margin-left: 10px;"><a :disabled="modalTitle === 'edit'" @click="handleHaveWebUrl">使用已有</a></span>
                     </a-form-model-item>
-                    <div v-if="platformLoadingType === 'APP_ANDROID'" class="adver-position-radio">
+                    <div v-if="platformLoadingType === 'APP_ANDROID' && configForm.adDownloadType === 'DOWNLOAD_URL'" class="adver-position-radio">
                         <div class="create-web-url-class">
                             <div class="web-url-img">
                                 <img v-if="landingPageShowData.thumbnail" :src="landingPageShowData.thumbnail"/>
@@ -854,6 +856,14 @@
                                 allow-clear
                             />
                         </a-form-model-item>
+                        <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用名" prop="creativeAppName" key="creativeAppName24">
+                            <a-input
+                                class="common-input-long"
+                                placeholder="请输入应用名"
+                                v-model="configForm.creativeAppName"
+                                allow-clear
+                            />
+                        </a-form-model-item>
                         <a-form-model-item label="搭配试玩">
                             <a-radio-group v-model="configForm.collocationPlay" button-style="solid" disabled>
                                 <a-radio-button value="a">不启用</a-radio-button>
@@ -917,6 +927,14 @@
                                 allow-clear
                             />
                         </a-form-model-item>
+                        <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用名" prop="creativeAppName" key="creativeAppName23">
+                            <a-input
+                                class="common-input-long"
+                                placeholder="请输入应用名"
+                                v-model="configForm.creativeAppName"
+                                allow-clear
+                            />
+                        </a-form-model-item>
                         <a-form-model-item label="创意展现">
                             <a-radio-group v-model="configForm.creativeDisplayMode" button-style="solid">
                                 <a-radio-button value="CREATIVE_DISPLAY_MODE_CTR">优选模式</a-radio-button>
@@ -958,6 +976,14 @@
                                 allow-clear
                             />
                         </a-form-model-item>
+                        <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用名" prop="creativeAppName" key="creativeAppName25">
+                            <a-input
+                                class="common-input-long"
+                                placeholder="请输入应用名"
+                                v-model="configForm.creativeAppName"
+                                allow-clear
+                            />
+                        </a-form-model-item>
                         <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="自动生成视频素材">
                             <a-radio-group v-model="configForm.creativeIsPresentedVideo" button-style="solid">
                                 <a-radio-button :value="0">不启用</a-radio-button>
@@ -1091,7 +1117,7 @@
                                 allow-clear
                             />
                         </a-form-model-item>
-                        <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用名" prop="creativeAppName">
+                        <a-form-model-item v-if="configForm.adDownloadType === 'DOWNLOAD_URL'" label="应用名" prop="creativeAppName" key="creativeAppName26">
                             <a-input
                                 class="common-input-long"
                                 placeholder="请输入应用名"
@@ -2478,20 +2504,20 @@ export default {
             this.optimizationOption = [];
             this.landingPageShowData = {};
             this.configForm.creativeWebUrl = '';
-            this.platformLoadingType = '';
+            // this.platformLoadingType = '';
             const defaultValue = e.target.value;
             if (defaultValue === 'DOWNLOAD_URL') {
                 this.configForm.adExternalUrl = '';
                 this.configForm.adOpenUrl = '';
-                this.$refs.ruleForm.clearValidate(['adExternalUrl']);
+                // this.$refs.ruleForm.clearValidate(['adExternalUrl']);
             }
             else if (defaultValue === 'EXTERNAL_URL') {
-                this.configForm.adDownloadUrl = '';
-                this.configForm.adPackage = '';
+                // this.configForm.adDownloadUrl = '';
+                // this.configForm.adPackage = '';
                 this.configForm.adConvertId = '';
                 this.configForm.adAppType = '';
-                this.$refs.ruleForm.clearValidate(['adDownloadUrl']);
-                this.$refs.ruleForm.clearValidate(['adPackage']);
+                // this.$refs.ruleForm.clearValidate(['adDownloadUrl']);
+                // this.$refs.ruleForm.clearValidate(['adPackage']);
             }
         },
         handleCampaignCnt(e) {

+ 4 - 7
src/views/modules/settlement-information/settlement-information.vue

@@ -500,7 +500,6 @@ export default {
         this.searchForm = this.$form.createForm(this);
     },
     mounted() {
-        console.log(this.userInfo(), 'this.userInfo()');
         const userRoleName = this.userInfo().roleName;
         if (userRoleName === '财务') {
             this.profitBtnStatus = true;
@@ -561,9 +560,6 @@ export default {
                     this.downLoadAccountNum = result.result.accountNum;
                     this.downLoadImgNum = result.result.imageNum;
                 }
-                else {
-                    this.$message.error(result.message);
-                }
             }).catch(error => {
                 console.log(error, 'eeee');
             });
@@ -736,7 +732,8 @@ export default {
                         advertiserId,
                         productId,
                         mediaId,
-                        uploadYears: moment(uploadYears).format('YYYY-MM')
+                        uploadYears: moment(uploadYears).format('YYYY-MM'),
+                        userId: this.userInfo().id
                     };
                     const urlData = mediaId === 1 ? '/finance/exportReportController/settlementReportBytedance' : '/finance/exportReportController/settlementReportKuaiShou';
                     getAction(urlAcount + urlData, paramsData).then(result => {
@@ -746,7 +743,7 @@ export default {
                         else {
                             this.handleSettlementModalnCancel();
                             this.$message.success('正在下载结算单,请稍后...', 4);
-                            window.location.href = `${urlAcount}${urlData}?advertiserId=${advertiserId}&productId=${productId}&mediaId=${mediaId}&uploadYears=${paramsData.uploadYears}`;
+                            window.location.href = `${urlAcount}${urlData}?advertiserId=${advertiserId}&productId=${productId}&mediaId=${mediaId}&uploadYears=${paramsData.uploadYears}&userId=${this.userInfo().id}`;
                         }
                     }).catch(error => {
                         console.log(error, 'eeee');
@@ -773,7 +770,7 @@ export default {
             this.policyOperationForm.uploadYears = dateString;
         },
         handleUploadYears(date, dateString) {
-            this.settlementModalForm.uploadYearss = dateString;
+            this.settlementModalForm.uploadYears = dateString;
             if (this.settlementModalForm.productId) {
                 this.handleGetDownLoadAllNum();
             }