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

export default {
cyy committed
29
     name: 'Infbed',
cyy committed
30 31 32 33 34 35 36 37
    components:{
        "m-infsea" : Infsea,
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
38
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
cyy committed
39 40 41 42 43 44 45 46 47
    data(){
        return {
            tabVal: "infsea",
            trnName: "infbed",
            model: new Infbed().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
cyy committed
48
            codes: {...CodeTable
cyy committed
49
            },
cyy committed
50
          //   showflg: true,
cyy committed
51 52 53
        }
    },
    methods:{
cyy committed
54
        tabClick(){ 
cyy committed
55 56 57 58 59 60 61 62
        }
    },
    created:async function(){
        console.log("进入infbed交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
cyy committed
63
           this.updateModel(rtnmsg.data)
cyy committed
64 65 66 67 68 69 70 71 72

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
huangxin committed
73
<style scoped>
cyy committed
74 75

</style>