|
@@ -16,7 +16,7 @@
|
|
class="acount-search-class"
|
|
class="acount-search-class"
|
|
:appId.sync="configForm.acountId"
|
|
:appId.sync="configForm.acountId"
|
|
:multiple="false"
|
|
:multiple="false"
|
|
- request="1,3"
|
|
|
|
|
|
+ request="2,4"
|
|
>
|
|
>
|
|
</acount-search>
|
|
</acount-search>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -90,9 +90,9 @@
|
|
<a-modal
|
|
<a-modal
|
|
v-if="causeVisible"
|
|
v-if="causeVisible"
|
|
:title="copywritingType === 'add' ? '新建文案' : '编辑文案'"
|
|
:title="copywritingType === 'add' ? '新建文案' : '编辑文案'"
|
|
- dialog-class="auto-copy-library-modal"
|
|
|
|
:visible="causeVisible"
|
|
:visible="causeVisible"
|
|
:confirmLoading="confirmLoading"
|
|
:confirmLoading="confirmLoading"
|
|
|
|
+ dialog-class="auto-copy-library-modal"
|
|
@ok="handleCauseSure"
|
|
@ok="handleCauseSure"
|
|
@cancel="handleCauseCancel"
|
|
@cancel="handleCauseCancel"
|
|
>
|
|
>
|
|
@@ -101,7 +101,7 @@
|
|
<div class="acount-title-left">广告账户</div>
|
|
<div class="acount-title-left">广告账户</div>
|
|
<div class="acount-title-right">
|
|
<div class="acount-title-right">
|
|
<div class="only-title-mater">
|
|
<div class="only-title-mater">
|
|
- <acount-search :appId.sync="advertisingAccount" request="1,3"></acount-search>
|
|
|
|
|
|
+ <acount-search :appId.sync="advertisingAccount" request="2,4"></acount-search>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -153,10 +153,10 @@
|
|
<a-pagination
|
|
<a-pagination
|
|
class="pagin-table-class"
|
|
class="pagin-table-class"
|
|
v-model="rejectIdeasPag.page"
|
|
v-model="rejectIdeasPag.page"
|
|
|
|
+ size="small"
|
|
:page-size="rejectIdeasPag.size"
|
|
:page-size="rejectIdeasPag.size"
|
|
:total="rejectIdeasTotalAll"
|
|
:total="rejectIdeasTotalAll"
|
|
:show-total="total => `共 ${rejectIdeasTotalAll} 条`"
|
|
:show-total="total => `共 ${rejectIdeasTotalAll} 条`"
|
|
- size="small"
|
|
|
|
@change="handleRejectIdeasPage"
|
|
@change="handleRejectIdeasPage"
|
|
@showSizeChange="handleRejectIdeasPage"
|
|
@showSizeChange="handleRejectIdeasPage"
|
|
/>
|
|
/>
|
|
@@ -167,7 +167,7 @@
|
|
<script>
|
|
<script>
|
|
|
|
|
|
import AcountSearch from '@/views/modules/Statistics/components/Treeselect.vue';
|
|
import AcountSearch from '@/views/modules/Statistics/components/Treeselect.vue';
|
|
-import {getAction, postFileAction, postAction, deleteAction} from '@/api/manage';
|
|
|
|
|
|
+import {getAction, postAction} from '@/api/manage';
|
|
import {mapGetters} from 'vuex';
|
|
import {mapGetters} from 'vuex';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -177,6 +177,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ editShowAccountList: [],
|
|
confirmLoading: false,
|
|
confirmLoading: false,
|
|
controlLoading: false,
|
|
controlLoading: false,
|
|
refusedReasonList: {},
|
|
refusedReasonList: {},
|
|
@@ -329,8 +330,9 @@ export default {
|
|
this.$message.error('请选择账户');
|
|
this.$message.error('请选择账户');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ // this.editShowAccountList
|
|
let paramsData = new FormData();
|
|
let paramsData = new FormData();
|
|
- paramsData.append('accountIds', this.advertisingAccount);
|
|
|
|
|
|
+ paramsData.append('accountIds', [...this.advertisingAccount, ...this.editShowAccountList]);
|
|
if (this.copywritingType === 'add') {
|
|
if (this.copywritingType === 'add') {
|
|
if (!this.fileList.length) {
|
|
if (!this.fileList.length) {
|
|
this.$message.error('请上传文件');
|
|
this.$message.error('请上传文件');
|
|
@@ -352,6 +354,10 @@ export default {
|
|
if (result.code === 200) {
|
|
if (result.code === 200) {
|
|
this.$message.success(result.message);
|
|
this.$message.success(result.message);
|
|
this.causeVisible = false;
|
|
this.causeVisible = false;
|
|
|
|
+ this.currencyPag = {
|
|
|
|
+ page: 1,
|
|
|
|
+ size: 10
|
|
|
|
+ };
|
|
this.handleInitTable();
|
|
this.handleInitTable();
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
@@ -361,11 +367,13 @@ export default {
|
|
console.log(error, 'eeee');
|
|
console.log(error, 'eeee');
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
this.confirmLoading = false;
|
|
this.confirmLoading = false;
|
|
|
|
+ this.editShowAccountList = [];
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleCauseCancel() {
|
|
handleCauseCancel() {
|
|
this.advertisingAccount = [];
|
|
this.advertisingAccount = [];
|
|
this.fileList = [];
|
|
this.fileList = [];
|
|
|
|
+ this.editShowAccountList = [];
|
|
this.causeVisible = false;
|
|
this.causeVisible = false;
|
|
},
|
|
},
|
|
handleEditCopyLibrary(list) {
|
|
handleEditCopyLibrary(list) {
|
|
@@ -380,7 +388,9 @@ export default {
|
|
handleGetAcoountId(list) {
|
|
handleGetAcoountId(list) {
|
|
getAction('/document/library/getAcoountId', {copyWriterId: list.copyWriterId}).then(result => {
|
|
getAction('/document/library/getAcoountId', {copyWriterId: list.copyWriterId}).then(result => {
|
|
if (result.code === 0) {
|
|
if (result.code === 0) {
|
|
- this.advertisingAccount = result.result;
|
|
|
|
|
|
+ const defaultData = result.result.map(item => Number(item));
|
|
|
|
+ this.editShowAccountList = defaultData;
|
|
|
|
+ this.advertisingAccount = defaultData;
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
this.$message.error(result.message);
|
|
this.$message.error(result.message);
|