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

zhoutian committed
29

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

35 36 37 38 39 40
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
41
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
42 43
    data(){
        return {
44
            tabVal: "",
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
            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 处理数据逻辑
64
            this.updateModel(rtnmsg.data)
65 66 67 68 69 70 71 72
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
73
<style scoped>
74 75

</style>