|
@@ -17,6 +17,25 @@
|
|
|
<a-button type="primary" style="margin:10px" @click="addUser">搜索</a-button>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
+ <a-form layout="inline">
|
|
|
+ <a-row class="image-list-heading vm-panel" style="padding: 8px 20px;">
|
|
|
+ <a-col :md="6" :sm="8" style="display:flex">
|
|
|
+ <a-form-item label="计划id">
|
|
|
+ <a-input placeholder="请输入计划id" v-model="campaignId"></a-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="8" style="display:flex">
|
|
|
+ <a-form-item label="计划名称">
|
|
|
+ <a-input placeholder="请输入计划名称" v-model="campaignName"></a-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="8" style="display:flex">
|
|
|
+ <a-button type="primary" style="margin:0 10px" @click="searchLabel">查询</a-button>
|
|
|
+ <a-button type="primary" style="margin:0 10px" @click="searchRe">重置</a-button>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
<a-row :gutter="15" style="margin-top:15px">
|
|
|
<a-col :span="12">
|
|
|
<a-card hoverable title="总花费">
|
|
@@ -265,6 +284,8 @@
|
|
|
},
|
|
|
data: function () {
|
|
|
return {
|
|
|
+ campaignId: '',
|
|
|
+ campaignName: '',
|
|
|
loadingList: false,
|
|
|
form: this.$form.createForm(this),
|
|
|
jihua: false,
|
|
@@ -307,7 +328,18 @@
|
|
|
// 切换分页时的回调,
|
|
|
// 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
|
|
|
this.ipagination.current = current
|
|
|
- this.addUser()
|
|
|
+ if (this.campaignId == '' && this.campaignName == '') {
|
|
|
+ this.addUser()
|
|
|
+ } else {
|
|
|
+ var params = {}
|
|
|
+ params.accountId = this.appId + ''
|
|
|
+ params.pageNo = current
|
|
|
+ params.pageSize = this.ipagination.pageSize
|
|
|
+ params.campaignId = this.campaignId
|
|
|
+ params.campaignName = this.campaignName
|
|
|
+ this.getCampaignList(params)
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
total: 0
|
|
|
},
|
|
@@ -462,6 +494,25 @@
|
|
|
postAction('/kuaishou/batch/batchUpdateStatus', params).then(res => {})
|
|
|
},
|
|
|
...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
|
+ searchLabel() {
|
|
|
+ this.ipagination.current = 1
|
|
|
+ if (this.appId) {
|
|
|
+ var params = {}
|
|
|
+ params.accountId = this.appId + ''
|
|
|
+ params.pageNo = this.ipagination.current
|
|
|
+ params.pageSize = this.ipagination.pageSize
|
|
|
+ params.campaignId = this.campaignId
|
|
|
+ params.campaignName = this.campaignName
|
|
|
+ this.getCampaignList(params)
|
|
|
+ } else {
|
|
|
+ this.$message.error('请选择账户')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ searchRe() {
|
|
|
+ this.campaignId = ''
|
|
|
+ this.campaignName = ''
|
|
|
+ this.searchLabel()
|
|
|
+ },
|
|
|
addUser() {
|
|
|
this.loading = true
|
|
|
this.dataList = []
|