tb-wallet-topup-fail.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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.peopleName" width="8em"></sa-item>
  25. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  26. <el-button size="mini" type="info" @click="sa.f5()">重置</el-button>
  27. </el-form>
  28. <!-- ------------- 数据列表 ------------- -->
  29. <div style="padding: 10px 15px;font-weight: bold;">总充值数:<span>{{sum}}</span></div>
  30. <el-table class="data-table" ref="data-table" :data="dataList">
  31. <sa-td type="index" name="序号"></sa-td>
  32. <sa-td name="边民姓名" prop="peopleName"></sa-td>
  33. <sa-td name="订单号" prop="outTradeNo" width="200"></sa-td>
  34. <sa-td name="充值点数" prop="amount"></sa-td>
  35. <sa-td name="充值时间" prop="topupTime" width="160"></sa-td>
  36. <el-table-column label="操作" fixed="right" width="160px">
  37. <template slot-scope="s">
  38. <el-button class="c-btn" type="success" icon="el-icon-view"
  39. @click="check(s.row)">查询状态</el-button>
  40. </template>
  41. </el-table-column>
  42. </el-table>
  43. <!-- ------------- 分页 ------------- -->
  44. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount"
  45. @change="f5()"></sa-item>
  46. </div>
  47. </div>
  48. <script>
  49. var app = new Vue({
  50. components: {
  51. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  52. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  53. },
  54. el: '.vue-box',
  55. data: {
  56. p: { // 查询参数
  57. peopleName: '', // 边民姓名
  58. mchid: '', // 商户号
  59. payStatus: 3,
  60. pageNo: 1, // 当前页
  61. pageSize: 10, // 页大小
  62. sortType: 0 // 排序方式
  63. },
  64. dataCount: 0,
  65. dataList: [], // 数据集合
  66. sum: 0
  67. },
  68. methods: {
  69. // 刷新
  70. f5: function() {
  71. sa.ajax('/level-one-server/TbWalletTopup/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. check: function(data) {
  78. sa.ajax('/level-one-server/TbWalletTopup/checkStatus?id=' + data.id, function(res) {
  79. sa.alert(res.data)
  80. }.bind(this));
  81. },
  82. },
  83. created: function() {
  84. this.f5();
  85. sa.onInputEnter();
  86. }
  87. })
  88. </script>
  89. </body>
  90. </html>