index.vue 1.79 KB
Newer Older
潘际乾 committed
1
<template>
2 3 4 5 6 7 8 9
    <div class="eContainer-search">
        <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
            :validate-on-rule-change="false">
            <c-content>
                <m-infsea :model="model" :codes="codes" ref="infsea" />
            </c-content>
        </el-form>
    </div>
潘际乾 committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infgcd from "~/model/Infgcd"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Infgcd/Check"
import Default from "~/model/Infgcd/Default"
import Pattern from "~/model/Infgcd/Pattern"
import Infsea from "./Infsea"


export default {
    name: "Infgcd",
24 25
    components: {
        "m-infsea": Infsea,
潘际乾 committed
26 27 28 29 30 31 32
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
33
    data() {
潘际乾 committed
34 35 36 37 38 39 40 41 42 43 44 45 46
        return {
            tabVal: "",
            trnName: "infgcd",
            model: new Infgcd().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
                ...CodeTable
            },
        }
    },
47 48
    methods: {
        myTabClick(tab) {
潘际乾 committed
49 50 51 52 53 54
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
55
    created: async function () {
潘际乾 committed
56 57
        console.log("进入infgcd交易");
        let rtnmsg = await this.init({})
58 59 60
        if (rtnmsg.respCode == SUCCESS) {
            this.updateModel(rtnmsg.data)
            //TODO 处理数据逻辑
潘际乾 committed
61 62

        }
63 64
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
潘际乾 committed
65 66 67 68 69 70 71
        }
    }
}
</script>
<style>

</style>