<template>
    <div class="eContainer">
        <el-form
            :model="model"
            :rules="rules"
            ref="modelForm"
            label-width="150px"
            size="small"
        >
            <!--PD000058 -->
            <c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick">
                <el-tab-pane label="菜单" name="sel">
                    <m-sel :model="model" :codes="codes" />
                </el-tab-pane>
            </c-tabs>
        </el-form>
    </div>
</template>
<script>
import Utils from '~/utils/index'
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Ditsel from "~/model/Ditsel";
import CommonProcess from "~/mixin/CommonProcess";
import Pattern from "~/model/Ditsel/Pattern";
import Sel from "./Sel";

export default {
    components: {
        "m-sel": Sel,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
    data() {
        return {
            tabVal: "sel",
            model: new Ditsel().data,
            // defaultRule:Default,
            // rules:this.mergeRules(Pattern,Check),
            rules: Pattern,
            codes: {},
            // init: {
            //     uri: "/ditsel/init",
            //     fileName: "ditsel.json",
            //     method: "post",
            //     basePath: "{{basePath}}",
            //     scheme: "{{schemes}}",
            //     host: "{{host}}",
            //     consume: "0",
            //     produce: "0",
            // },
            // checkAll: {
            //     uri: "/ditsel/checkAll",
            //     fileName: "ditsel.json",
            //     method: "post",
            //     basePath: "{{basePath}}",
            //     scheme: "{{schemes}}",
            //     host: "{{host}}",
            //     consume: "0",
            //     produce: "0",
            // },
            // saveData: {
            //     uri: "/ditsel/saveData",
            //     fileName: "ditsel.json",
            //     method: "post",
            //     basePath: "{{basePath}}",
            //     scheme: "{{schemes}}",
            //     host: "{{host}}",
            //     consume: "0",
            //     produce: "0",
            // },
            pending: {
                uri: "/ditsel/pending",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            getElcsRef: {
                uri: "/ditsel/getElcsRef",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            registerDocument: {
                uri: "/ditsel/registerDocument",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            imgecm: {
                uri: "/ditsel/imgecm",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            recpanSearch: {
                uri: "/ditsel/recpanSearch",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            recpanShow: {
                uri: "/ditsel/recpanShow",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            recpanResend: {
                uri: "/ditsel/recpanResend",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            showMessage: {
                uri: "/ditsel/showMessage",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            imgmodRefresh: {
                uri: "/ditsel/imgmodRefresh",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            imgmodDelete: {
                uri: "/ditsel/imgmodDelete",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_sptpentrbp: {
                uri: "/ditsel/default/sptpentrbp",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub1: {
                uri: "/ditsel/default/cfgfil.hotsub1",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_bitmap: {
                uri: "/ditsel/default/cfgfil.bitmap",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub9: {
                uri: "/ditsel/default/cfgfil.hotsub9",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub8: {
                uri: "/ditsel/default/cfgfil.hotsub8",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub7: {
                uri: "/ditsel/default/cfgfil.hotsub7",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub6: {
                uri: "/ditsel/default/cfgfil.hotsub6",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub5: {
                uri: "/ditsel/default/cfgfil.hotsub5",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub4: {
                uri: "/ditsel/default/cfgfil.hotsub4",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub3: {
                uri: "/ditsel/default/cfgfil.hotsub3",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub2: {
                uri: "/ditsel/default/cfgfil.hotsub2",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_selbut_dspadvnbr: {
                uri: "/ditsel/default/selbut.dspadvnbr",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_didgrp_avbnam: {
                uri: "/ditsel/default/didgrp.avbnam",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_didgrp_rec_expplc: {
                uri: "/ditsel/default/didgrp.rec.expplc",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_matp_mattxtlab: {
                uri: "/ditsel/default/matp.mattxtlab",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_dsptrdclsdat: {
                uri: "/ditsel/default/dsptrdclsdat",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_selbut_dsputlnbr: {
                uri: "/ditsel/default/selbut.dsputlnbr",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_didgrp_adv_pts_nam: {
                uri: "/ditsel/default/didgrp.adv.pts.nam",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_selbut_trnpenlab_descr: {
                uri: "/ditsel/default/selbut.trnpenlab_descr",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_selbut_trnpenlab: {
                uri: "/ditsel/default/selbut.trnpenlab",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_selbut_sptpenlab: {
                uri: "/ditsel/default/selbut.sptpenlab",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_selbut_dsprevnbr: {
                uri: "/ditsel/default/selbut.dsprevnbr",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_sptpentrbp_descr: {
                uri: "/ditsel/default/sptpentrbp_descr",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_zcdat: {
                uri: "/ditsel/default/zcdat",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_trnpentrbp_descr: {
                uri: "/ditsel/default/trnpentrbp_descr",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_trpnttyp: {
                uri: "/ditsel/default/trpnttyp",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_dspbrdclsdat: {
                uri: "/ditsel/default/dspbrdclsdat",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_subtxt1: {
                uri: "/ditsel/default/cfgfil.subtxt1",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_selbut_dspamenbr: {
                uri: "/ditsel/default/selbut.dspamenbr",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_bddgrp_rec_matdat: {
                uri: "/ditsel/default/bddgrp.rec.matdat",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_selbut_dsppndram: {
                uri: "/ditsel/default/selbut.dsppndram",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_selbut_sptpenlab_descr: {
                uri: "/ditsel/default/selbut.sptpenlab_descr",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_selbut_dspclsdat: {
                uri: "/ditsel/default/selbut.dspclsdat",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_trnpentrbp: {
                uri: "/ditsel/default/trnpentrbp",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub10: {
                uri: "/ditsel/default/cfgfil.hotsub10",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
            default_cfgfil_hotsub11: {
                uri: "/ditsel/default/cfgfil.hotsub11",
                fileName: "ditsel.json",
                method: "post",
                basePath: "{{basePath}}",
                scheme: "{{schemes}}",
                host: "{{host}}",
                consume: "0",
                produce: "0",
            },
        };
    },
    methods: {
    },
    created: async function () {
        console.log("进入ditsel交易");
        let rtnmsg = await Api.post("ditsel/init", { params: {} });
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
            Utils.copyValueFromVO(this.model,rtnmsg.data)
        } else {
            this.$notify.error({ title: "错误", message: "服务请求失败！" });
        }
    },
};
</script>
<style>
</style>
