Commit 9bff0f4d by 潘际乾

infpta交易的查询

parent d3c19cc7
<template>
<div class="eContainer-table-block">
<el-table :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
<el-table ref="table" :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
style="width: 100%"
class="eContainer-table"
@selection-change="handleSelectionChange"
:row-key="getRowKey"
:header-cell-style="{background: 'eef1f6', color: '#606266'}"
:highlight-current-row="true"
@row-click="rowClick"
:border="true">
<el-table-column type="selection" width="55" v-if="showSelection" :reserve-selection="true"></el-table-column>
<el-table-column
......@@ -150,6 +152,10 @@ export default {
}
}
return indexArr
},
// 行点击,设置高亮
rowClick(row, column, event) {
this.$refs.table.setCurrentRow(row);
}
}
};
......
import Api from "~/service/Api"
export default {
async onInfbutSearow() {
let rtnmsg = await this.executeRule("infbut_searow")
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfbutDsp() {
let rtnmsg = await this.executeRule("infbut_dsp")
let rtnmsg = await this.executeRule("infbut.dsp")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -21,7 +21,7 @@ export default {
}
},
async onInfbutUserow() {
let rtnmsg = await this.executeRule("infbut_userow")
let rtnmsg = await this.executeRule("infbut.userow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -31,7 +31,7 @@ export default {
}
},
async onInfbutClr() {
let rtnmsg = await this.executeRule("infbut_clr")
let rtnmsg = await this.executeRule("infbut.clr")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -41,7 +41,7 @@ export default {
}
},
async onInfbutButprt() {
let rtnmsg = await this.executeRule("infbut_butprt")
let rtnmsg = await this.executeRule("infbut.butprt")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -51,7 +51,7 @@ export default {
}
},
async onInfbutExi() {
let rtnmsg = await this.executeRule("infbut_exi")
let rtnmsg = await this.executeRule("infbut.exi")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -61,7 +61,7 @@ export default {
}
},
async onRecpanLnkinfptm() {
let rtnmsg = await this.executeRule("recpan_lnkinfptm")
let rtnmsg = await this.executeRule("recpan.lnkinfptm")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......
......@@ -16,7 +16,7 @@ export default class Infpta{
seatypa:"", // Own Address .seatypa
seatypo:"", // Other .seatypo
infbut:{
dspstm:"", // display stream .infbut.dspstm
dspstm:{}, // display stream .infbut.dspstm
},
seatyph:"", // 海关 .seatyph
recpan:{
......
......@@ -88,9 +88,8 @@ export default {
},
async onRelrow() {
const that = this
that.model.trncorco.selinr = {
"rows": that.multipleSelection.map(idx => that.model.trncorco.trnstm.rows[idx])
}
that.model.trncorco.selinr.empty = false
that.model.trncorco.selinr.rows = that.multipleSelection.map(idx => that.model.trncorco.trnstm.rows[idx])
let rtnmsg = await this.executeRule("relrow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......
......@@ -28,7 +28,15 @@ export default class Utils {
else if (obj[key] instanceof Date)
target[nkey] = obj[key];
else if (typeof obj[key] == "object")
if (nkey === "trncorco_trnstm" || nkey === "trncorco_selinr") {
/**
* IStream类型
* {
* empty: true
* keepsort: false
* rows: []
* }
*/
if (Object.keys(obj[key]).length === 3 && obj[key].hasOwnProperty("empty") && obj[key].hasOwnProperty("keepsort") && obj[key].hasOwnProperty("rows")) {
target[nkey] = obj[key];
} else {
Utils.flatObject(obj[key], target, nkey); //递归赋值
......
......@@ -9,6 +9,7 @@ import Trnrel from "./Trnrel"
import Tstopn from "./Tstopn"
import Bdtudp from "./Bdtudp"
import Trndtl from "./Trnrel/Trndtl"
import Infpta from "./Infpta"
const BusRouter = [
......@@ -23,6 +24,7 @@ const BusRouter = [
{path:'trnrel',component:Trnrel},
{path:'trndtl',query:'inr',component:Trndtl},
{path:'tstopn',component:Tstopn},
{path:'infpta',component:Infpta},
]
export default BusRouter
\ No newline at end of file
......@@ -329,6 +329,7 @@ import Event from "~/model/Trnrel/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [CommonProcess],
components: {},
data() {
return {
......
<template>
<div class="eibs-tab">
<c-col :span="22" :offset="1">
<c-istream-table :list="data" :columns="columns">
</c-istream-table>
<c-istream-table :list="data" :columns="columns"></c-istream-table>
</c-col>
</div>
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment