ht-byte-list.html 4.7 KB

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