<template>
  <div class="eibs-tab">
       <c-col :span="22" :offset="1">
           <c-istream-table :list="data" :columns="columns"></c-istream-table>
       </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event"

export default {
    inject: ['root'],
    mixins: [CommonProcess],
    props:["model","codes"],
    data(){
        return {
            columns: [
                "2 1 \"D/C\" 38 1 0",
                "6 2  \"Account Number\" 140",
                "3 3 \"Cur\" 60",
                "4 4 \"Amount\" 135 2 8:1 2 5",
                "5 5 \"Value Date\" 80",
                "7 6 \"Rate Type\" 90",
                "8 7 \"Rate\" 85 2 0 1 0",
                "9 8 \"Term\" 60",
                "0 9 \"PN\" 62 1 0"
            ],
            data: [
            ]
        }
    },
    watch: {
        //this.$refs.glepan.stmData.data = res.data.setmod_glemod_gleshwstm.rows;
        'model.setmod.glemod.gleshwstm': {
            handler(val, oldVal) {
                if (val.rows) {
                    this.data = val.rows
                }
            },
            immediate: true
        }
    },
    methods:{...Event},
    created:function(){

    }
}
</script>
<style>

</style>
