f61bd6e8
wuxw
费用下功能基本搞定
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleSearch">
{{ $t('common.search') }}
</el-button>
<el-button @click="handleReset">
{{ $t('common.reset') }}
</el-button>
</el-form-item>
</el-form>
</el-card>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-card>
<div slot="header" class="flex justify-between">
<span>{{ $t('staffFeeManage.list.title') }}</span>
|
26fd2f03
wuxw
费用功能测试完成
|
59
60
61
|
<el-pagination :current-page="pagination.current" :page-sizes="[10, 20, 30, 50]" :page-size="pagination.size"
layout="total, sizes, prev, pager, next, jumper" :total="pagination.total" @size-change="handleSizeChange"
@current-change="handleCurrentChange" />
|
f61bd6e8
wuxw
费用下功能基本搞定
|
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
</el-card>
</el-col>
</el-row>
</div>
</template>
<script>
import { getStaffFeeList } from '@/api/fee/staffFeeManageApi'
import { getCommunityId } from '@/api/community/communityApi'
export default {
name: 'StaffFeeManageList',
data() {
return {
loading: false,
searchForm: {
communityId: '',
userCode: '',
startTime: '',
endTime: ''
},
tableData: [],
pagination: {
current: 1,
size: 10,
total: 0
}
}
},
created() {
this.searchForm.communityId = getCommunityId()
this.getList()
},
methods: {
async getList() {
try {
this.loading = true
const params = {
page: this.pagination.current,
row: this.pagination.size,
...this.searchForm
}
const { data, total } = await getStaffFeeList(params)
this.tableData = data
this.pagination.total = total
} catch (error) {
this.$message.error(this.$t('staffFeeManage.fetchError'))
} finally {
this.loading = false
}
},
handleSearch() {
this.pagination.current = 1
this.getList()
},
handleReset() {
this.searchForm = {
communityId: getCommunityId(),
userCode: '',
startTime: '',
endTime: ''
}
this.pagination.current = 1
this.getList()
},
handleExport() {
// 导出逻辑
},
handleSizeChange(val) {
this.pagination.size = val
this.getList()
},
handleCurrentChange(val) {
this.pagination.current = val
this.getList()
}
}
}
</script>
<style lang="scss" scoped>
.staff-fee-manage-container {
padding: 20px;
|