index.vue 2.16 KB
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
<template>
    <div class="eContainer">
        <c-page title="2180金融衍生品交易信息详情">
            <el-form :model="model" :rules="rules" label-position="right" label-width="120px" ref="modelForm"
                     size="small">
                <c-tabs ref="elment" type="card" v-model="tabVal">
                    <el-tab-pane label="接口数据" name="selection">
                        <m-selection :model="model" :codes="codes"/>
                    </el-tab-pane>
                    <!--PD000039 -->
                    <el-tab-pane label="2180金融衍生品交易信息详情" name="ads2180">
                        <c-content>
                            <m-ads2180 :codes="codes" :model="model" ref="ads2180"/>
                        </c-content>
                    </el-tab-pane>

                </c-tabs>
            </el-form>
            <div style="text-align: center">                
                <c-button @click="exit" style="margin-right: 10px" type="primary">退出</c-button>
            </div>
        </c-page>
    </div>
</template>

<script>
    import Tga from "../../tga/model";
    import CodeTable from "~/config/CodeTable";
    import Ads2180 from "./ads2180";
    import Selection from "../../tga/views/selection"
    import event from "../event";
    import check from "../model/check";
    import init from "../../../rmbsel/event";
    import {getDectyp} from "../../../../../../service/business/rmb";

    export default {
        name: "Rmbinf2180",
        components: {
            "m-ads2180": Ads2180,
            "m-selection": Selection,
        },
        mixins: [event, init],
        provide() {
        return {
            root: this,
        };
        },
        data() {
            return {
                tabVal: "selection",
                trnName: "tgainf",
                model: new Tga().data,
                codes: {
                    ...CodeTable
                }
            };
        },     
        created() {
            this.model.pblmod.dectyp = getDectyp(this.trnName);
            const inr = this.$route.query.inr;
            this.init(this.trnName, inr);
        },
    };
</script>

<style></style>