Commit e99ebdf3 by jianglong

Merge branch 'develop' of http://114.115.138.98:8900/isc-v3.1/isc-web-vue into develop

parents 05169beb 0fb3ad77
import Api from "~/service/Api"; import Api from "~/service/Api";
import moment from "moment"; import Oftdtl from "../model"
export default { export default {
methods: { methods: {
async handleSearch() {
},
async handleReset() {
this.model = new Oftdtl().data;
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
handleSelectionChange(val) {
this.multipleSelection = val;
}
}, },
}; };
<template> <template>
<div class="eContainer"> <div class="eContainer-search">
<c-page title="报文详情展示"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
:validate-on-rule-change="false"> <c-content>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <m-oftdtl :model="model" :codes="codes" />
<!--fmsp PD000000 展示 --> </c-content>
<el-tab-pane :label="$t('fmsp.展示')" name="oftdtl"> </el-form>
<m-oftdtl :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div> </div>
</template> </template>
<script> <script>
...@@ -37,7 +32,6 @@ export default { ...@@ -37,7 +32,6 @@ export default {
mixins: [operationFunc, commonDepend, event, buildFn], mixins: [operationFunc, commonDepend, event, buildFn],
data() { data() {
return { return {
tabVal: "oftdtl",
trnName: "oftdtl", trnName: "oftdtl",
model: new Oftdtl().data, model: new Oftdtl().data,
rules: Check, rules: Check,
...@@ -50,9 +44,7 @@ export default { ...@@ -50,9 +44,7 @@ export default {
} }
}, },
methods: { methods: {
myTabClick(tab) {
this.tabClick(tab)
}
}, },
created: async function () { created: async function () {
console.log("进入oftdtl交易"); console.log("进入oftdtl交易");
......
...@@ -151,29 +151,25 @@ ...@@ -151,29 +151,25 @@
<el-col :span="24" style="margin-top: 10px"> <el-col :span="24" style="margin-top: 10px">
<div style="height: 90%"> <div>
<c-col :span="24"> <c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs"> <el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
<el-tab-pane label="发报查询" name="sb"> @selection-change="handleSelectionChange"
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%" @row-dblclick="dbClickRow"
@selection-change="handleSelectionChange" size="small" :border="true" height="calc(100vh - 320px)" :highlight-current-row="true">
@row-dblclick="dbClickRow" <el-table-column type="selection" width="55">
size="small" :border="true" height="calc(100vh - 420px)" :highlight-current-row="true"> </el-table-column>
<el-table-column type="selection" width="55"> <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" :min-width="item.width">
</el-table-column> <template slot-scope="scope">
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" :min-width="item.width"> <c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label>
<template slot-scope="scope"> <span v-else>{{ scope.row[item.prop] }}</span>
<c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label> </template>
<span v-else>{{ scope.row[item.prop] }}</span> </el-table-column>
</template> </el-table>
</el-table-column> <el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
</el-table> :page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
<el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total" @current-change="handleCurrentChange">
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange" </el-pagination>
@current-change="handleCurrentChange">
</el-pagination>
</el-tab-pane>
</el-tabs>
</c-col> </c-col>
</div> </div>
</el-col> </el-col>
...@@ -188,7 +184,6 @@ export default { ...@@ -188,7 +184,6 @@ export default {
mixins: [event], mixins: [event],
data() { data() {
return { return {
activeTab: 'sb',
load: false, load: false,
subtypCodes: [], subtypCodes: [],
// isFoldDisable: true, // isFoldDisable: true,
......
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