tb-pass-record-list.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="https://unpkg.com/vue@2.6.10/dist/vue.js"></script>
  12. <script src="https://unpkg.com/element-ui@2.13.0/lib/index.js"></script>
  13. <script src="https://unpkg.com/http-vue-loader@1.4.2/src/httpVueLoader.js"></script>
  14. <script src="https://unpkg.com/jquery@3.4.1/dist/jquery.js"></script>
  15. <script src="https://www.layuicdn.com/layer-v3.1.1/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.cardNo"></sa-item>
  26. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  27. <br/>
  28. </el-form>
  29. <!-- ------------- 快捷按钮 ------------- -->
  30. <sa-item type="fast-btn" show="reset"></sa-item>
  31. <!-- ------------- 数据列表 ------------- -->
  32. <el-table class="data-table" ref="data-table" :data="dataList">
  33. <sa-td type="selection"></sa-td>
  34. <!-- <sa-td name="主键" prop="id" type="num"></sa-td>-->
  35. <!-- <sa-td name="业务id" prop="businessId" ></sa-td>-->
  36. <!-- <sa-td name="客户id" prop="customerId" ></sa-td>-->
  37. <sa-td name="企业名称" prop="customerName"></sa-td>
  38. <sa-td name="车牌号码" prop="cardNo"></sa-td>
  39. <sa-td name="车牌国籍" prop="carCountryName"></sa-td>
  40. <sa-td name="入场时间" prop="inTime"></sa-td>
  41. <sa-td name="出场时间" prop="outTime"></sa-td>
  42. <sa-td name="状态" prop="status" type="enum" :jv="{1: '未入场', 2: '已入场', 3: '已出场'}"></sa-td>
  43. <sa-td name="停车时长(分钟)" prop="partTime"></sa-td>
  44. <!-- <sa-td name="更新时间" prop="updateTime" ></sa-td>-->
  45. <!-- <el-table-column label="操作" fixed="right" width="240px">-->
  46. <!-- <template slot-scope="s">-->
  47. <!-- <el-button class="c-btn" type="success" icon="el-icon-view" @click="get(s.row)">查看</el-button>-->
  48. <!-- </template>-->
  49. <!-- </el-table-column>-->
  50. </el-table>
  51. <!-- ------------- 分页 ------------- -->
  52. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()"></sa-item>
  53. </div>
  54. </div>
  55. <script>
  56. var app = new Vue({
  57. components: {
  58. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  59. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  60. },
  61. el: '.vue-box',
  62. data: {
  63. p: { // 查询参数
  64. id: '', // 主键
  65. businessId: '', // 业务id
  66. customerId: '', // 客户id
  67. customerName: '', // 客户名称
  68. cardNo: '', // 车牌号
  69. carCountryName: '', //车牌国籍
  70. status: '', // 状态(=未入场, 2=已入场, 3=已出场)
  71. inTime: '', // 进境时间
  72. outTime: '', // 离境时间
  73. updateTime: '', // 更新时间
  74. pageNo: 1, // 当前页
  75. pageSize: 10, // 页大小
  76. sortType: 9 // 排序方式
  77. },
  78. dataCount: 0,
  79. dataList: [], // 数据集合
  80. },
  81. methods: {
  82. // 刷新
  83. f5: function () {
  84. sa.ajax('/TbPassRecord/getList', sa.removeNull(this.p), function (res) {
  85. this.dataList = res.data; // 数据
  86. this.dataCount = res.dataCount; // 数据总数
  87. sa.f5TableHeight(); // 刷新表格高度
  88. }.bind(this));
  89. },
  90. // 查看
  91. get: function (data) {
  92. sa.showIframe('数据详情', 'tb-pass-record-info.html?id=' + data.id, '1050px', '90%');
  93. },
  94. // 查看 - 根据选中的
  95. getBySelect: function (data) {
  96. var selection = this.$refs['data-table'].selection;
  97. if (selection.length == 0) {
  98. return sa.msg('请选择一条数据')
  99. }
  100. this.get(selection[0]);
  101. },
  102. },
  103. created: function () {
  104. this.f5();
  105. sa.onInputEnter();
  106. }
  107. })
  108. </script>
  109. </body>
  110. </html>