index.vue 2.62 KB
Newer Older
zhengxiaokui committed
1
<template>
Eivi committed
2
  <div class="eContainer">
zhengxiaokui committed
3 4 5 6 7 8 9 10 11
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
      label-width="150px"
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
Eivi committed
12 13 14
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
        <!--letsel PD000035 Menu -->
        <el-tab-pane label="Menu" name="sel">
zhengxiaokui committed
15 16 17 18
          <c-content>
            <m-sel :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
Eivi committed
19 20 21 22 23 24 25 26 27 28 29
        <!-- <el-tab-pane :label="$t('letsel.PD000035')" name="sel">
                <m-sel :model="model" :codes="codes"/>
           </el-tab-pane> -->
        <!--cfgfil PD000002  -->
        <!-- <el-tab-pane :label="$t('cfgfil.PD000002')" name="regp">
                <m-regp :model="model" :codes="codes"/>
           </el-tab-pane> -->
        <!--syswrn PD000005 Warnings -->
        <!-- <el-tab-pane :label="$t('syswrn.PD000005')" name="syswrndisplay">
                <m-syswrndisplay :model="model" :codes="codes"/>
           </el-tab-pane> -->
zhengxiaokui committed
30 31 32
      </c-tabs>
    </el-form>
    <c-grid-ety-prompt-dialog
Eivi committed
33 34 35 36 37 38
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
  </div>
zhengxiaokui committed
39 40
</template>
<script>
zhengxiaokui committed
41 42 43
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Letsel from "~/model/Letsel";
wangren committed
44
import commonProcess from "~/mixin/commonProcess";
zhengxiaokui committed
45 46 47 48
import Check from "~/model/Letsel/Check";
import Default from "~/model/Letsel/Default";
import Pattern from "~/model/Letsel/Pattern";
import Sel from "./Sel";
Eivi committed
49 50
import Regp from "./Regp";
import Syswrndisplay from "./Syswrndisplay";
zhengxiaokui committed
51 52

export default {
zhengxiaokui committed
53 54 55
  name: "Letsel",
  components: {
    "m-sel": Sel,
Eivi committed
56 57
    "m-regp": Regp,
    "m-syswrndisplay": Syswrndisplay,
zhengxiaokui committed
58 59 60 61 62 63
  },
  provide() {
    return {
      root: this,
    };
  },
Eivi committed
64
  mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
zhengxiaokui committed
65 66 67 68
  data() {
    return {
      tabVal: "sel",
      trnName: "letsel",
Eivi committed
69
      trnType: "",
zhengxiaokui committed
70 71 72 73 74 75 76 77 78
      model: new Letsel().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {},
    };
  },
  methods: {
Eivi committed
79 80 81 82 83 84
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
    },
zhengxiaokui committed
85 86 87 88 89
  },
  created: async function () {
    console.log("进入letsel交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
Eivi committed
90
      this.updateModel(rtnmsg.data);
zhengxiaokui committed
91 92 93
      //TODO 处理数据逻辑
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
zhengxiaokui committed
94
    }
zhengxiaokui committed
95 96
  },
};
zhengxiaokui committed
97 98 99
</script>
<style>
</style>