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

zhoutian committed
31

32
export default {
33
    name: 'Inflid',
34 35
    components:{
        "m-infsea" : Infsea,
zhoutian committed
36

37 38 39 40 41 42
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
43
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
44 45
    data(){
        return {
46
            tabVal: "",
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
            trnName: "inflid",
            model: new Inflid().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
             codes:{...CodeTable},
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入inflid交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
66
            this.updateModel(rtnmsg.data)
67 68 69 70 71 72 73 74
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
75
<style scoped>
76 77

</style>