123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <!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="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
- <link rel="stylesheet" href="../../static/sa.css">
- <script src="https://unpkg.com/vue@2.6.10/dist/vue.js"></script>
- <script src="https://unpkg.com/element-ui@2.13.0/lib/index.js"></script>
- <script src="https://unpkg.com/http-vue-loader@1.4.2/src/httpVueLoader.js"></script>
- <script src="https://unpkg.com/jquery@3.4.1/dist/jquery.js"></script>
- <script src="https://www.layuicdn.com/layer-v3.1.1/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 type="text" name="企业名称" v-model="p.customerName"></sa-item>
- <sa-item type="text" name="车牌号码" v-model="p.cardNo"></sa-item>
- <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
- <br />
- </el-form>
- <!-- ------------- 快捷按钮 ------------- -->
- <sa-item type="fast-btn" show="reset"></sa-item>
- <!-- ------------- 数据列表 ------------- -->
- <el-table class="data-table" ref="data-table" :data="dataList" >
- <sa-td type="selection"></sa-td>
- <!-- <sa-td name="主键" prop="id" type="num"></sa-td>-->
- <!-- <sa-td name="业务id" prop="businessId" ></sa-td>-->
- <!-- <sa-td name="客户id" prop="customerId" ></sa-td>-->
- <sa-td name="企业名称" prop="customerName" ></sa-td>
- <sa-td name="车牌号码" prop="cardNo" ></sa-td>
- <sa-td name="车牌国籍" prop="carCountryName" ></sa-td>
- <sa-td name="入场时间" prop="inTime" ></sa-td>
- <sa-td name="出场时间" prop="outTime" ></sa-td>
- <sa-td name="状态" prop="status" type="enum" :jv="{1: '未入场', 2: '已入场', 3: '已出场'}"></sa-td>
- <sa-td name="更新时间" prop="updateTime" ></sa-td>
- <!-- <el-table-column label="操作" fixed="right" width="240px">-->
- <!-- <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: '', // 主键
- businessId: '', // 业务id
- customerId: '', // 客户id
- customerName: '', // 客户名称
- cardNo: '', // 车牌号
- carCountryName: '', //车牌国籍
- status: '', // 状态(=未入场, 2=已入场, 3=已出场)
- inTime: '', // 进境时间
- outTime: '', // 离境时间
- updateTime: '', // 更新时间
- pageNo: 1, // 当前页
- pageSize: 10, // 页大小
- sortType: 9 // 排序方式
- },
- dataCount: 0,
- dataList: [], // 数据集合
- },
- methods: {
- // 刷新
- f5: function() {
- sa.ajax('/TbPassRecord/getList', sa.removeNull(this.p), function(res) {
- this.dataList = res.data; // 数据
- this.dataCount = res.dataCount; // 数据总数
- sa.f5TableHeight(); // 刷新表格高度
- }.bind(this));
- },
- // 查看
- get: function(data) {
- sa.showIframe('数据详情', 'tb-pass-record-info.html?id=' + data.id, '1050px', '90%');
- },
- // 查看 - 根据选中的
- getBySelect: function(data) {
- var selection = this.$refs['data-table'].selection;
- if(selection.length == 0) {
- return sa.msg('请选择一条数据')
- }
- this.get(selection[0]);
- },
- },
- created: function() {
- this.f5();
- sa.onInputEnter();
- }
- })
- </script>
- </body>
- </html>
|