Ptyp.vue 2.67 KB
Newer Older
jxl committed
1 2 3 4 5 6 7 8 9 10 11
<template>
  <c-row>
    <c-col :span="11">
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Drawer',
            grp: 'bodgrp',
            rol: 'drr',
        }"
        :disabled="true"
huangxin committed
12 13
        :disabledRef="true"
        :disabledExtkey="true"
jxl committed
14 15 16 17 18 19 20 21 22 23 24
        >
        </c-ptap>
    
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Drawee',
            grp: 'bodgrp',
            rol: 'dre',
        }"
        :disabled="true"
huangxin committed
25 26
        :disabledRef="true"
        :disabledExtkey="true"
jxl committed
27 28 29 30 31 32 33 34 35 36 37 38
        >
        </c-ptap>
    </c-col>
    <c-col :span="11" :offset="1">
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Collecting Bank',
            grp: 'bodgrp',
            rol: 'col',
        }"
        :disabled="true"
huangxin committed
39 40
        :disabledRef="true"
        :disabledExtkey="true"
jxl committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
        >
        </c-ptap>
    </c-col>
 
    <c-col :span="24">
        <c-edit-table :model="model" v-bind="ptsaddg">
        <el-table-column label="操作" align="center">
            <template slot-scope="scope">
            <el-button
                size="mini"
                @click="handleEdit(scope.$index, scope.row)"
                type="primary"
                >详情</el-button
            >
            </template>
        </el-table-column>
        </c-edit-table>
    </c-col> 
  </c-row>
</template>
<script>
import Api from "~/service/Api"
wangren committed
63
import commonProcess from "~/mixin/commonProcess";
jxl committed
64 65 66 67 68 69 70 71 72
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Botset/Event"
import Utils from "~/utils"; 
import Ptap from "~/views/Public/Ptap";

export default {
    components: { "c-ptap": Ptap },
    inject: ['root'],
    props:["model","codes"],
wangren committed
73
    mixins: [commonProcess],
jxl committed
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 99 100 101 102 103 104 105 106
    data(){
        return {
           ptsaddg: {
                columns: [
                {
                    title: "角色",
                    width: "120px",
                    dataIndex: "rol",
                    show: "select",
                },
                {
                    title: "机构实体",
                    width: "180px",
                    dataIndex: "ptyextkey",
                    show: "input",
                },
                {
                    title: "名称",
                    width: "300px",
                    dataIndex: "nam",
                },
                {
                    title: "参考地址",
                    width: "300px",
                    dataIndex: "ref",
                },
                ],
                urls: "botp.ptsaddp.ptsaddg",
            },
        }
    },
    methods:{...Event},
    created:function(){
huangxin committed
107
        console.log(this.root);
jxl committed
108 109 110 111 112 113
    }
}
</script>
<style>

</style>