index.vue 2.41 KB
Newer Older
jianglong committed
1 2
<template>
  <div class="eContainer">
3
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
jianglong committed
4
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
5 6

              <!--PD000042 -->
nanrui committed
7
               <el-tab-pane label="菜单" name="menu">
8 9 10 11 12
                    <c-content>
                     <m-menu :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>

nanrui committed
13
           <el-tab-pane label="工作流程" name="ordpwfm">
14 15
                <m-ordpwfm :model="model" :codes="codes"/>
           </el-tab-pane>
16
 
jianglong committed
17 18
       </c-tabs>
    </el-form>
19 20 21 22 23 24 25 26 27 28

            <c-grid-ety-prompt-dialog
              ref="doxpDialog"
              :isPty="false"
              :promptData="promptData"
              @select-ety="selectMsg"
            >
            </c-grid-ety-prompt-dialog>


jianglong committed
29 30 31 32 33 34 35 36 37 38
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Sptneg from "~/model/Sptneg"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Sptneg/Check"
import Default from "~/model/Sptneg/Default"
import Pattern from "~/model/Sptneg/Pattern"
nanrui committed
39

jianglong committed
40
import Menu from "./Menu"
41
import Ordpwfm from "./Ordpwfm"
jianglong committed
42 43 44 45 46 47


export default {
    name: "Sptneg",
    components:{
        "m-menu" : Menu,
48
        "m-ordpwfm" : Ordpwfm,
jianglong committed
49 50 51 52 53 54 55 56 57
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
zhujiazhan committed
58
            tabVal: "menu",
jianglong committed
59 60 61 62 63 64 65
            trnName: "sptneg",
            model: new Sptneg().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
66
                ...CodeTable
jianglong committed
67 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
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入sptneg交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>