|
@@ -16,7 +16,7 @@
|
|
|
<div style="display:flex;margin:0 0 20px 0;position:relative">
|
|
|
<a-input placeholder="请输出要查找的创意名称" style="width:300px;" v-model="keyWord" />
|
|
|
<a-button type="primary" style="margin-left:10px" @click="addUserKey">搜索</a-button>
|
|
|
- <a-button type="primary" style="margin-left:10px" @click="reset()">刷新列表</a-button>
|
|
|
+ <a-button type="primary" style="margin-left:10px" @click="reset">刷新列表</a-button>
|
|
|
<a-button type="primary" style="margin-left:10px" @click="clickAgain" v-if="selectedRowKeys.length>0"
|
|
|
:loading="loadingList">一键重提
|
|
|
</a-button>
|
|
@@ -431,7 +431,7 @@
|
|
|
return this.form.getFieldValue(className)
|
|
|
},
|
|
|
syncCreative() {
|
|
|
-
|
|
|
+
|
|
|
this.loadingSyncCreative = true
|
|
|
var params = {}
|
|
|
// localStorage.setItem('accountIdCreat', record.campaignId)
|
|
@@ -631,11 +631,34 @@
|
|
|
})
|
|
|
},
|
|
|
addUserKey() {
|
|
|
- this.dataList = this.list.filter(item => {
|
|
|
- return item.creativeName.toLowerCase().indexOf(this.keyWord.toLowerCase()) > -1
|
|
|
+ // this.dataList = this.list.filter(item => {
|
|
|
+ // return item.creativeName.toLowerCase().indexOf(this.keyWord.toLowerCase()) > -1
|
|
|
+ // })
|
|
|
+ this.loading = true
|
|
|
+ var params = {}
|
|
|
+ this.selectedRowKeys = []
|
|
|
+ this.selectedRowKeysValue = []
|
|
|
+ params.accountId = this.appId
|
|
|
+ params.pageSize = this.ipagination.pageSize
|
|
|
+ params.pageNo = this.ipagination.current
|
|
|
+ params.putStatus = this.putStatus == "0" ? null : this.putStatus
|
|
|
+ params.creativeName=this.keyWord
|
|
|
+ getAction('/MaterialRefuse/getRefuseCreative', params).then(res => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ this.dataList = res.result.records.map((v, index) => {
|
|
|
+ return {
|
|
|
+ ...v,
|
|
|
+ key: index
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.list = this.dataList
|
|
|
+ this.loading = false
|
|
|
+ this.ipagination.total = res.result.total
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
reset() {
|
|
|
+ // this.keyWord='';
|
|
|
this.addUser()
|
|
|
}
|
|
|
},
|