|
|
@@ -72,7 +72,7 @@
|
|
|
</el-table>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<div class="dialog-pages">
|
|
|
- <el-pagination layout="prev, pager, next" :current-page.sync="currentPage"
|
|
|
+ <el-pagination layout="prev, pager, next" :current-page.sync="view_currentPage"
|
|
|
:hide-on-single-page="true" :page-size="pageRows" :total="view_rows_total"
|
|
|
@current-change="handleViewCurrentChange"></el-pagination>
|
|
|
</div>
|
|
|
@@ -117,6 +117,9 @@
|
|
|
this.get_amount_list(params)
|
|
|
},
|
|
|
methods: {
|
|
|
+ /**
|
|
|
+ * 格式化金额,保留两位小数
|
|
|
+ */
|
|
|
formatBalance: (row, column, cellValue, index) => {
|
|
|
// row: 行数据
|
|
|
// column: 列属性
|
|
|
@@ -147,7 +150,7 @@
|
|
|
*/
|
|
|
get_amount_list(params) {
|
|
|
var _this = this
|
|
|
- _this.tableData = []
|
|
|
+ // _this.tableData = []
|
|
|
// _this.rows_total = 0
|
|
|
this.$axios.get('/shuidian/HotWaters/waterMoney.action', {
|
|
|
params: params
|
|
|
@@ -230,9 +233,12 @@
|
|
|
// console.log(index, row)
|
|
|
// 获取当月
|
|
|
this.select_month = this.getNowFormatDate();
|
|
|
- this.stu_number = row.stu_number
|
|
|
+ this.stu_number = row.stu_number;
|
|
|
// 显示查看充值记录对话框
|
|
|
- this.viewdialogFormVisible = true
|
|
|
+ this.viewdialogFormVisible = true;
|
|
|
+
|
|
|
+ this.view_tableData = [];
|
|
|
+ this.view_rows_total = 0;
|
|
|
// 组合参数
|
|
|
let params = {
|
|
|
stu_number: this.stu_number,
|
|
|
@@ -242,10 +248,10 @@
|
|
|
}
|
|
|
|
|
|
// 获取查看记录列表
|
|
|
- this.get_view_list(params)
|
|
|
+ this.get_view_list(params);
|
|
|
|
|
|
// 充值记录总计
|
|
|
- this.get_view_total_amount()
|
|
|
+ this.get_view_total_amount();
|
|
|
},
|
|
|
/**
|
|
|
* 充值记录总计
|
|
|
@@ -280,12 +286,12 @@
|
|
|
*/
|
|
|
handleChangeMonth() {
|
|
|
// console.log(this.select_month);
|
|
|
- this.currentPage = 1
|
|
|
+ this.view_currentPage = 1
|
|
|
// 组合参数
|
|
|
let params = {
|
|
|
stu_number: this.stu_number,
|
|
|
time: this.select_month,
|
|
|
- page: this.currentPage,
|
|
|
+ page: this.view_currentPage,
|
|
|
rows: this.pageRows
|
|
|
}
|
|
|
|
|
|
@@ -300,14 +306,12 @@
|
|
|
*/
|
|
|
get_view_list(params) {
|
|
|
var _this = this
|
|
|
- _this.view_tableData = []
|
|
|
- // _this.view_rows_total = 0
|
|
|
this.$axios.get('/shuidian/HotWaters/waterfindRecharge.action', {
|
|
|
params: params
|
|
|
})
|
|
|
.then(res => {
|
|
|
// console.log(res.data);
|
|
|
- if (typeof(res.data.rows) != 'undefined' && res.data.rows != '' && JSON.stringify(res.data) !=
|
|
|
+ if (typeof res.data.rows != 'undefined' && res.data.rows != '' && JSON.stringify(res.data) !=
|
|
|
'{}') {
|
|
|
// _this.$message.success('数据加载成功!');
|
|
|
_this.view_tableData = res.data.rows
|