index.vue 1.07 KB
Newer Older
fukai committed
1
<template>
zenghuan committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
    <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-mainp :model="model" :codes="codes" ref="mainp"/>
        </c-content>
      </el-form>
    </div>
  </template>
  <script>
  
  import CodeTable from "~/config/CodeTable";
  import Cpysel from "../model";
  import event from "../event"
  import Mainp from "./Mainp.vue"
  
  
  export default {
fukai committed
27 28
    name: "Cpysel",
    components:{
zenghuan committed
29 30
      "m-mainp" : Mainp,
  
fukai committed
31 32
    },
    provide() {
zenghuan committed
33 34 35
      return {
        root: this
      }
fukai committed
36
    },
zenghuan committed
37
    mixins: [event],    // 里面包含了Default、Check等的公共处理
fukai committed
38
    data(){
zenghuan committed
39 40 41 42 43 44 45
      return {
        tabVal: "mainp",
        trnName: "cpysel",
        model: new Cpysel().data,
        rules: null,
        codes:{...CodeTable},
      };
fukai committed
46
    },
zenghuan committed
47 48 49 50 51 52 53 54
    methods:{},
    created:async function() {},
  };
  </script>
  <style scoped>
  
  </style>