Ptyp.vue 2.56 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
        >
        </c-ptap>
    
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Drawee',
            grp: 'bodgrp',
            rol: 'dre',
        }"
        :disabled="true"
        >
        </c-ptap>
    </c-col>
    <c-col :span="11" :offset="1">
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Collecting Bank',
            grp: 'bodgrp',
            rol: 'col',
        }"
        :disabled="true"
        >
        </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>
huangxin committed
56

jxl committed
57 58 59
</template>
<script>
import Api from "~/service/Api"
wangren committed
60
import commonProcess from "~/mixin/commonProcess";
jxl committed
61 62 63 64 65 66 67 68 69
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Botame/Event"
import Utils from "~/utils"; 
import Ptap from "~/views/Public/Ptap";

export default {
    components: { "c-ptap": Ptap },
    inject: ['root'],
    props:["model","codes"],
wangren committed
70
    mixins: [commonProcess],
jxl committed
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 99 100 101 102 103
    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
104
        console.log(this.root);
jxl committed
105 106 107 108 109 110
    }
}
</script>
<style>

</style>