<template>
  <c-row>
    <c-col :span="11">
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Drawer',
            grp: 'bodgrp',
            rol: 'drr',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onBenpDet"
        >
        </c-ptap>
    
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Drawee',
            grp: 'bodgrp',
            rol: 'dre',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onBenpDet"
        >
        </c-ptap>
    </c-col>
    <c-col :span="11" :offset="1">
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Collecting Bank',
            grp: 'bodgrp',
            rol: 'col',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onBenpDet"
        >
        </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"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Botdcr/Event"
import Utils from "~/utils"; 
import Ptap from "~/views/Public/Ptap";

export default {
    components: { "c-ptap": Ptap },
    inject: ['root'],
    props:["model","codes"],
    mixins: [CommonProcess],
    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(){
        onsole.log(this.root);
    }
}
</script>
<style>

</style>

