selectAccount.vue
1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
<div>
<span>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="footer-btns">
<el-button :size="size" type="primary" @click="handleSearch">搜索</el-button>
</span>
</glsx-combi-form>
<GLTable ref="merchantTable" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf">
</GLTable>
</span>
</div>
</template>
<script>
import url from '@/assets/empty.png'
export default {
name: 'SelectApplication',
data() {
return {
url,
dialogVisible: false,
searchForm: {
merchantName: ''
},
searchFormData: [
{
label: '关键字:',
name: 'accountName',
type: 'input',
maxlength: 20,
placeholder: '请输入账户名称或商户号搜索',
isClear: true
},
{
label: '商户类型:',
name: 'merchantType',
type: 'select',
maxlength: 20,
placeholder: '全部',
isClear: true
}
],
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '账户名称',
prop: 'accountName',
line: 2
},
{
label: '商户号',
prop: 'merchantID',
line: 2
},
{
label: '商户类型',
prop: 'merchantType',
line: 2
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }
}
},
methods: {
init() {
this.dialogVisible = true
},
handleSearch() {},
handleClose(done) {
this.$confirm('确认关闭?')
.then(_ => {
done()
})
.catch(_ => {})
}
}
}
</script>
<style lang="scss" scoped>
</style>