index.vue 1.69 KB
Newer Older
fukai committed
1 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
<template>
  <div class="eContainer">
    <c-page title="addsig">
      <el-form :model="model" :rules="rawRules" ref="modelForm" tokenKey="modelForm" :validate-on-rule-change="false" label-width="120px" size="small">
        <c-content>
          <m-addsig :model="model" :codes="codes" ref="addsig" />
        </c-content>
      </el-form>
      <div style="text-align: center">
        <c-button type="primary" style="margin-right: 10px" @click="commitAdd">提 交</c-button>
        <c-button type="primary" @click="goBack">返 回</c-button>
      </div>
    </c-page>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Auasig from "../model";
import event from "../event";
import commonProcess from "~/mixin/commonProcess";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import Check from "../model/check";
import Default from "../model/default";
import buildFn from "../event/buildCommons.js";

import Addsig from "./addsig";
import Rule from "./rule";
import Countpty from "./countpty";

export default {
  name: "Auasig",
  components: {
    "m-addsig": Addsig,
    "m-rule": Rule,
    "m-countpty": Countpty
  },
  provide() {
    return {
      root: this
    };
  },
  mixins: [commonProcess, Default, operationFunc, event, commonDepend, buildFn],
  data() {
    return {
      tabVal: "info",
      trnName: "Auasig",
      trnType: "",
      model: new Auasig().data,
      codes: {
        ...CodeTable
      },
      rules: {}
    };
  },
  computed: {
    rawRules() {
      return {...Check.apply(this), ...this.rules};
    }
  },
  methods: {},
  created() {
  }
};
</script>
<style>
</style>