ht-byte-list.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 name="状态">
  25. <el-select v-model="p.finishStatus">
  26. <el-option label="全部" value=""></el-option>
  27. <el-option label="成功" :value="1"></el-option>
  28. <el-option label="失败" :value="2"></el-option>
  29. <el-option label="未处理" :value="0"></el-option>
  30. </el-select>
  31. </sa-item>
  32. <sa-item type="text" name="类型" v-model="p.dataType"></sa-item>
  33. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  34. <el-button size="mini" type="info" @click="sa.f5()">重置</el-button>
  35. </el-form>
  36. <!-- ------------- 数据列表 ------------- -->
  37. <el-table class="data-table" ref="data-table" :data="dataList">
  38. <sa-td name="序号" type="index"></sa-td>
  39. <sa-td name="类型" prop="dataType"></sa-td>
  40. <sa-td name="处理结果" prop="createTime">
  41. <template slot-scope="s">
  42. <div v-if="s.row.finishStatus==0">未处理</div>
  43. <div v-if="s.row.finishStatus==1">处理成功</div>
  44. <div v-if="s.row.finishStatus==2">处理失败</div>
  45. </template>
  46. </sa-td>
  47. <sa-td name="时间" prop="createTime"></sa-td>
  48. <el-table-column label="操作" fixed="right" width="120px">
  49. <template slot-scope="s">
  50. <el-button class="c-btn" type="success" icon="el-icon-view"
  51. @click="get(s.row)">查看</el-button>
  52. </template>
  53. </el-table-column>
  54. </el-table>
  55. <!-- ------------- 分页 ------------- -->
  56. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount"
  57. @change="f5()"></sa-item>
  58. </div>
  59. </div>
  60. <script>
  61. var app = new Vue({
  62. components: {
  63. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  64. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  65. },
  66. el: '.vue-box',
  67. data: {
  68. p: { // 查询参数
  69. id: '', // 字节表主键
  70. messageId: '', // mq消息主键
  71. dataType: '', // * * 001=边民备案 * * 002=商铺备案 * * 003=边民互助组备案 * * 004=边民合作社备案 * * 005=车辆 * * 006=进境申报单 * * 007=进口申报单
  72. body: '', // 字节数据主体
  73. queueName: '', // mq队列名称
  74. finishStatus: '', // 完成对象转换状态
  75. createTime: '', // 创建时间
  76. pageNo: 1, // 当前页
  77. pageSize: 10, // 页大小
  78. sortType: 0 // 排序方式
  79. },
  80. dataCount: 0,
  81. dataList: [], // 数据集合
  82. },
  83. methods: {
  84. // 刷新
  85. f5: function() {
  86. sa.ajax('/async-server/HtByte/getList', sa.removeNull(this.p), function(res) {
  87. this.dataList = res.data; // 数据
  88. this.dataCount = res.dataCount; // 数据总数
  89. sa.f5TableHeight(); // 刷新表格高度
  90. }.bind(this));
  91. },
  92. // 查看
  93. get: function(data) {
  94. sa.showIframe('数据详情', 'ht-byte-info.html?id=' + data.id, '900px', '800px');
  95. },
  96. },
  97. created: function() {
  98. this.f5();
  99. sa.onInputEnter();
  100. }
  101. })
  102. </script>
  103. </body>
  104. </html>