123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>航通基础信息字节码表-列表</title>
- <meta charset="utf-8">
- <meta name="viewport"
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <!-- 所有的 css & js 资源 -->
- <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
- <link rel="stylesheet" href="../../static/sa.css">
- <script src="../../static/kj/vue.min.js"></script>
- <script src="../../static/kj/element-ui/index.js"></script>
- <script src="../../static/kj/httpVueLoader.js"></script>
- <script src="../../static/kj/jquery.min.js"></script>
- <script src="../../static/kj/layer/layer.js"></script>
- <script src="../../static/sa.js"></script>
- </head>
- <body>
- <div class="vue-box" style="display: none;" :style="'display: block;'">
- <div class="c-panel">
- <!-- ------------- 检索参数 ------------- -->
- <div class="c-title">检索参数</div>
- <el-form ref="form" :model='p' @submit.native.prevent>
- <sa-item name="状态">
- <el-select v-model="p.finishStatus">
- <el-option label="全部" value=""></el-option>
- <el-option label="成功" :value="1"></el-option>
- <el-option label="失败" :value="2"></el-option>
- <el-option label="未处理" :value="0"></el-option>
- </el-select>
- </sa-item>
- <sa-item type="text" name="类型" v-model="p.dataType"></sa-item>
- <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
- <el-button size="mini" type="info" @click="sa.f5()">重置</el-button>
- </el-form>
- <!-- ------------- 数据列表 ------------- -->
- <el-table class="data-table" ref="data-table" :data="dataList">
- <sa-td name="序号" type="index"></sa-td>
- <sa-td name="类型" prop="dataType"></sa-td>
- <sa-td name="处理结果" prop="createTime">
- <template slot-scope="s">
- <div v-if="s.row.finishStatus==0">未处理</div>
- <div v-if="s.row.finishStatus==1">处理成功</div>
- <div v-if="s.row.finishStatus==2">处理失败</div>
- </template>
- </sa-td>
- <sa-td name="时间" prop="createTime"></sa-td>
- <el-table-column label="操作" fixed="right" width="120px">
- <template slot-scope="s">
- <el-button class="c-btn" type="success" icon="el-icon-view"
- @click="get(s.row)">查看</el-button>
- </template>
- </el-table-column>
- </el-table>
- <!-- ------------- 分页 ------------- -->
- <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount"
- @change="f5()"></sa-item>
- </div>
- </div>
- <script>
- var app = new Vue({
- components: {
- "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
- "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
- },
- el: '.vue-box',
- data: {
- p: { // 查询参数
- id: '', // 字节表主键
- messageId: '', // mq消息主键
- dataType: '', // * * 001=边民备案 * * 002=商铺备案 * * 003=边民互助组备案 * * 004=边民合作社备案 * * 005=车辆 * * 006=进境申报单 * * 007=进口申报单
- body: '', // 字节数据主体
- queueName: '', // mq队列名称
- finishStatus: '', // 完成对象转换状态
- createTime: '', // 创建时间
- pageNo: 1, // 当前页
- pageSize: 10, // 页大小
- sortType: 0 // 排序方式
- },
- dataCount: 0,
- dataList: [], // 数据集合
- },
- methods: {
- // 刷新
- f5: function() {
- sa.ajax('/async-server/HtByte/getList', sa.removeNull(this.p), function(res) {
- this.dataList = res.data; // 数据
- this.dataCount = res.dataCount; // 数据总数
- sa.f5TableHeight(); // 刷新表格高度
- }.bind(this));
- },
- // 查看
- get: function(data) {
- sa.showIframe('数据详情', 'ht-byte-info.html?id=' + data.id, '900px', '800px');
- },
-
- },
- created: function() {
- this.f5();
- sa.onInputEnter();
- }
- })
- </script>
- </body>
- </html>
|