<!DOCTYPE html> <html> <head> <title>充值记录-列表</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <!-- 所有的 css & js 资源 --> <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css"> <link rel="stylesheet" href="../../static/sa.css"> <script src="../../static/kj/vue.min.js"></script> <script src="../../static/kj/element-ui/index.js"></script> <script src="../../static/kj/httpVueLoader.js"></script> <script src="../../static/kj/jquery.min.js"></script> <script src="../../static/kj/layer/layer.js"></script> <script src="../../static/sa.js"></script> </head> <body> <div class="vue-box" style="display: none;" :style="'display: block;'"> <div class="c-panel"> <!-- ------------- 检索参数 ------------- --> <div class="c-title">检索参数</div> <el-form ref="form" :model='p' @submit.native.prevent> <sa-item type="text" name="客户名称" v-model="p.customerName"></sa-item> <sa-item type="text" name="充值渠道" v-model="p.chargeChannel"></sa-item> <sa-item type="text" name="订单号" v-model="p.no"></sa-item> <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button> <sa-item type="fast-btn" show="reset" style="display: inline;"></sa-item> </el-form> <!-- ------------- 快捷按钮 ------------- --> <!-- ------------- 数据列表 ------------- --> <el-table class="data-table" ref="data-table" :data="dataList"> <sa-td type="selection"></sa-td> <sa-td name="订单号" prop="no"></sa-td> <sa-td name="客户名称" prop="customerName"></sa-td> <sa-td name="充值金额" prop="money"></sa-td> <sa-td name="支付金额" prop="payMoney"></sa-td> <sa-td name="充值渠道" prop="chargeChannel"></sa-td> <sa-td name="充值时间" prop="createTime"></sa-td> <sa-td name="充值人" prop="chargePeople"></sa-td> </el-table> <!-- ------------- 分页 ------------- --> <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()"> </sa-item> </div> </div> <script> var app = new Vue({ components: { "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'), "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'), }, el: '.vue-box', data: { p: { // 查询参数 customerName: '', // 客户名称 money: '', // 充值金额 chargeChannel: '', // 充值渠道 createTime: '', // 充值时间 chargePeople: '', // 充值人 no: '', // 订单号 pageNo: 1, // 当前页 pageSize: 10, // 页大小 sortType: 0 // 排序方式 }, dataCount: 0, dataList: [], // 数据集合 }, methods: { // 刷新 f5: function() { sa.ajax('/TbChargeRecord/getList', sa.removeNull(this.p), function(res) { this.dataList = res.data; // 数据 this.dataCount = res.dataCount; // 数据总数 sa.f5TableHeight(); // 刷新表格高度 }.bind(this)); }, }, created: function() { this.f5(); sa.onInputEnter(); } }) </script> </body> </html>