|
|
|
|
@ -194,6 +194,10 @@
|
|
|
|
|
</xy-dialog>
|
|
|
|
|
|
|
|
|
|
<Modal v-model="isShowMerchantSelect" title="所属商户选择">
|
|
|
|
|
<div class="searchMerchants">
|
|
|
|
|
<el-input type="text" v-model="merchantKeyword" placeholder="请输入关键词查找商户"></el-input>
|
|
|
|
|
<el-button type="primary" @click="searchMerchants">查询</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<Table size="small" highlight-row ref="currentRowTable" :columns="merchantTable" :data="merchants"
|
|
|
|
|
@on-current-change="merchantSelect" />
|
|
|
|
|
<Page :current="merchantIndex" :total="merchantTotal" simple
|
|
|
|
|
@ -339,6 +343,7 @@
|
|
|
|
|
sortable: true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
merchantKeyword:"",
|
|
|
|
|
merchantIndex: 1,
|
|
|
|
|
merchantTotal: 0,
|
|
|
|
|
}
|
|
|
|
|
@ -407,11 +412,15 @@
|
|
|
|
|
async getMerchants() {
|
|
|
|
|
const res = await merchantIndex({
|
|
|
|
|
page_size: 10,
|
|
|
|
|
page: this.merchantIndex
|
|
|
|
|
page: this.merchantIndex,
|
|
|
|
|
keyword:this.merchantKeyword
|
|
|
|
|
})
|
|
|
|
|
this.merchantTotal = res.total
|
|
|
|
|
this.merchants = res.data
|
|
|
|
|
},
|
|
|
|
|
searchMerchants(){
|
|
|
|
|
this.getMerchants()
|
|
|
|
|
},
|
|
|
|
|
merchantPageChange(e) {
|
|
|
|
|
this.merchantIndex = e
|
|
|
|
|
this.getMerchants()
|
|
|
|
|
@ -514,6 +523,15 @@
|
|
|
|
|
text-align: left !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.searchMerchants{
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin-bottom:16px;
|
|
|
|
|
.el-input{
|
|
|
|
|
width:80%
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|