<template>
    <div class="eContainer">
        <c-page title="跨境担保履约信息">
            <el-form :model="model" label-position="left" label-width="120px" ref="modelForm" size="small">
                <c-tabs ref="elment" type="card" v-model="tabVal">
                    <el-tab-pane label="接口数据" name="selection">
                        <c-content>
                            <m-selection :codes="codes" :model="model"/>
                        </c-content>
                    </el-tab-pane>
                    <!--PD000039 -->
                    <el-tab-pane label="跨境担保履约信息" name="ads2123">
                        <c-content>
                            <m-ads2123 :codes="codes" :model="model"/>
                        </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 Tdq from "../../tdq/model";
    import CodeTable from "~/config/CodeTable";
    import Selection from "../../tdq/views/selection"
    import Ads2123 from "./ads2123";
    import event from "../event";
	import init from "../../../rmbsel/event";

    export default {
        components: {
            "m-selection": Selection,
            "m-ads2123": Ads2123
        },
        mixins: [event, init],
        provide() {
            return {
                root: this,
            };
        },
        computed: {},
        data() {
            return {
                tabVal: "selection",
                trnName: "tdqinf",
                model: new Tdq().data,
                codes: {
                    ...CodeTable
                }
            };
        },
        created() {
            const inr = this.$route.query.inr;
            this.init(this.trnName, inr);
        },
    };
</script>

<style scoped>
    /deep/ .el-form-item__label {
        padding-left: 10px;
        padding-right: 10px;
        line-height: 20px !important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }
</style>