index.vue 4.59 KB
Newer Older
1
<template>
潘际乾 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
  <div class="eContainer" style="display: flex;">
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
      label-width="200px"
      size="small"
			:validate-on-rule-change="false"
      style="width: 85%;"
    >
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
        <!--PD000002 -->
        <el-tab-pane label="Search Panel" name="infsea">
          <m-infsea :model="model" :codes="codes" />
        </el-tab-pane>
        <!-- </c-tabs> -->

        <!--PD000029 -->
        <el-tab-pane label="Address Association" name="ptap0">
          <m-ptap0 :model="model" :codes="codes" />
        </el-tab-pane>
        <!-- </c-tabs> -->

        <!--PD000685 -->
        <el-tab-pane label="Details" name="ptap1">
          <m-ptap1 :model="model" :codes="codes" />
        </el-tab-pane>
        <!-- </c-tabs> -->

        <!--PD000650 -->
        <el-tab-pane label="Authentication of Address" name="ptmpan">
          <m-ptmpan :model="model" :codes="codes" />
        </el-tab-pane>
        <!-- </c-tabs> -->

        <!--PD000700 -->
        <el-tab-pane label="Infotext" name="oitpan">
          <m-oitpan :model="model" :codes="codes" />
        </el-tab-pane>
      </c-tabs>
42
    </el-form>
潘际乾 committed
43 44 45 46 47 48 49 50
    <div style="width: 10%;height: 400px;margin-left: 2%;display: flex;flex-direction: column;justify-content: space-around;">
      <c-col :span="12">
        <c-button size="small" type="primary" @click="onInfbutSearow">
          Search
        </c-button>
      </c-col>

      <c-col :span="12">
潘际乾 committed
51
        <c-button v-show="tabVal === 'infsea'" size="small" type="primary" @click="onInfbutDsp" :disabled="model.infbut.selrow === 0">
潘际乾 committed
52 53
          Display
        </c-button>
潘际乾 committed
54 55 56 57 58 59 60 61 62 63
        <el-button-group v-show="tabVal !== 'infsea'" >
          <c-button type="primary" icon="el-icon-arrow-left" style="width: 50%;"
            @click="onInfbutDsp(--model.infbut.selrow)"
            :disabled="model.infbut.selrow <= 1">
          </c-button>
          <c-button type="primary" icon="el-icon-arrow-right" style="width: 50%;"
            @click="onInfbutDsp(++model.infbut.selrow)"
            :disabled="!model.infbut.dspstm.rows || model.infbut.dspstm.rows.length === 0 || model.infbut.selrow === model.infbut.dspstm.rows.length">
          </c-button>
        </el-button-group>
潘际乾 committed
64 65 66
      </c-col>

      <c-col :span="12">
潘际乾 committed
67
        <c-button size="small" type="primary" @click="onInfbutUserow" :disabled="model.infbut.selrow === 0">
潘际乾 committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
          Use
        </c-button>
      </c-col>

      <c-col :span="12">
        <c-button size="small" type="primary" @click="onInfbutClr">
          Clear
        </c-button>
      </c-col>

      <c-col :span="12">
        <c-button size="small" type="primary" @click="onInfbutButprt">
          导Excel
        </c-button>
      </c-col>

      <!-- <c-col :span="12">
        <el-form-item label="display stream" prop="infbut.dspstm">
          <c-input
            v-model="model.infbut.dspstm"
            placeholder="请输入display stream"
          ></c-input>
        </el-form-item>
      </c-col> -->

      <c-col :span="12">
        <c-button size="small" type="primary" @click="onInfbutExi">
          E&xit
        </c-button>
      </c-col>
    </div>
99 100 101
  </div>
</template>
<script>
潘际乾 committed
102 103 104
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Infpta from "~/model/Infpta";
wangren committed
105
import commonProcess from "~/mixin/commonProcess";
潘际乾 committed
106 107 108 109 110 111 112 113 114
import Check from "~/model/Infpta/Check";
import Default from "~/model/Infpta/Default";
import Pattern from "~/model/Infpta/Pattern";
import Infsea from "./Infsea";
import Ptap0 from "./Ptap0";
import Ptap1 from "./Ptap1";
import Ptmpan from "./Ptmpan";
import Oitpan from "./Oitpan";
import Event from "~/model/Infpta/Event";
115 116

export default {
潘际乾 committed
117
  name: 'Infpta',
潘际乾 committed
118 119 120 121 122 123 124 125 126 127 128 129
  components: {
    "m-infsea": Infsea,
    "m-ptap0": Ptap0,
    "m-ptap1": Ptap1,
    "m-ptmpan": Ptmpan,
    "m-oitpan": Oitpan,
  },
  provide() {
    return {
      root: this,
    };
  },
wangren committed
130
  mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
潘际乾 committed
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
  data() {
    return {
      tabVal: "infsea",
			trnName:"infpta",
      model: new Infpta().data,
      checkRules:Check,
      defaultRules:Default,
			pattern: Pattern,
      rules: null,
      codes: {},
    };
  },
  methods: {
      ...Event
  },
  created: async function() {
    console.log("进入infpta交易");
潘际乾 committed
148
    let rtnmsg = await this.init({})
潘际乾 committed
149 150 151 152 153
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      this.updateModel(rtnmsg.data);
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
154
    }
潘际乾 committed
155 156
  },
};
157
</script>
潘际乾 committed
158
<style></style>