<template> <div class="eContainer-search"> <!-- <c-bus-button :$pntvm="this"></c-bus-button> --> <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left" size="small" :validate-on-rule-change="false" > <c-content> <m-infsea :model="model" :codes="codes" /> </c-content> </el-form> </div> </template> <script> import Api from "~/service/Api"; import CodeTable from "~/config/CodeTable"; import Infltd from "~/model/Infltd"; import commonProcess from "~/mixin/commonProcess"; import Check from "~/model/Infltd/Check"; import Default from "~/model/Infltd/Default"; import Pattern from "~/model/Infltd/Pattern"; import Infsea from "./Infsea"; export default { name: "Infltd", components: { "m-infsea": Infsea, }, provide() { return { root: this, }; }, mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 data() { return { tabVal: "infsea", trnName: "infltd", model: new Infltd().data, checkRules: Check, defaultRules: Default, pattern: Pattern, rules: null, codes: { ...CodeTable }, }; }, methods: { tabClick() {}, }, created: async function () { console.log("进入infltd交易"); let rtnmsg = await this.init({}); if (rtnmsg.respCode == SUCCESS) { //更新数据 this.updateModel(rtnmsg.data); // Utils.copyValueFromVO(this.model, rtnmsg.data); if (this.isInDisplay) { this.restoreDisplay(); } } else { this.$notify.error({ title: "错误", message: "服务请求失败!" }); } }, }; </script> <style> </style>