tb-charge-record-list.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>充值记录-列表</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  8. <!-- 所有的 css & js 资源 -->
  9. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="../../static/kj/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. </head>
  18. <body>
  19. <div class="vue-box" style="display: none;" :style="'display: block;'">
  20. <div class="c-panel">
  21. <!-- ------------- 检索参数 ------------- -->
  22. <div class="c-title">检索参数</div>
  23. <el-form ref="form" :model='p' @submit.native.prevent>
  24. <sa-item type="text" name="客户名称" v-model="p.customerName"></sa-item>
  25. <sa-item type="text" name="充值渠道" v-model="p.chargeChannel"></sa-item>
  26. <sa-item type="text" name="订单号" v-model="p.no"></sa-item>
  27. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  28. <sa-item type="fast-btn" show="reset" style="display: inline;"></sa-item>
  29. </el-form>
  30. <!-- ------------- 快捷按钮 ------------- -->
  31. <!-- ------------- 数据列表 ------------- -->
  32. <el-table class="data-table" ref="data-table" :data="dataList">
  33. <sa-td type="selection"></sa-td>
  34. <sa-td name="订单号" prop="no"></sa-td>
  35. <sa-td name="客户名称" prop="customerName"></sa-td>
  36. <sa-td name="充值金额" prop="money"></sa-td>
  37. <sa-td name="充值渠道" prop="chargeChannel"></sa-td>
  38. <sa-td name="充值时间" prop="createTime"></sa-td>
  39. <sa-td name="充值人" prop="chargePeople"></sa-td>
  40. </el-table>
  41. <!-- ------------- 分页 ------------- -->
  42. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()">
  43. </sa-item>
  44. </div>
  45. </div>
  46. <script>
  47. var app = new Vue({
  48. components: {
  49. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  50. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  51. },
  52. el: '.vue-box',
  53. data: {
  54. p: { // 查询参数
  55. customerName: '', // 客户名称
  56. money: '', // 充值金额
  57. chargeChannel: '', // 充值渠道
  58. createTime: '', // 充值时间
  59. chargePeople: '', // 充值人
  60. no: '', // 订单号
  61. pageNo: 1, // 当前页
  62. pageSize: 10, // 页大小
  63. sortType: 0 // 排序方式
  64. },
  65. dataCount: 0,
  66. dataList: [], // 数据集合
  67. },
  68. methods: {
  69. // 刷新
  70. f5: function() {
  71. sa.ajax('/TbChargeRecord/getList', sa.removeNull(this.p), function(res) {
  72. this.dataList = res.data; // 数据
  73. this.dataCount = res.dataCount; // 数据总数
  74. sa.f5TableHeight(); // 刷新表格高度
  75. }.bind(this));
  76. },
  77. },
  78. created: function() {
  79. this.f5();
  80. sa.onInputEnter();
  81. }
  82. })
  83. </script>
  84. </body>
  85. </html>