index.vue 1.09 KB
Newer Older
1 2
<template>
  <div class="eibs">
李少勇 committed
3 4 5
    <c-col :span="24" style="">
      <c-istream-table :list="data" :columns="columns"></c-istream-table>
    </c-col>
6 7 8
  </div>
</template>
<script>
李少勇 committed
9 10 11
import Api from '~/service/Api';
import commonProcess from '~/mixin/commonProcess';
import CodeTable from '~/config/CodeTable';
12 13

export default {
李少勇 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
  inject: ['root'],
  mixins: [commonProcess],
  props: ['model', 'codes'],
  data() {
    return {
      columns: [
        '2 1 "借/贷" 80 1 0',
        '6 2  "账号" 200',
        '3 3 "币种" 70',
        '4 4 "金额" 150 2 8:1 2 5',
        '5 5 "起息日" 150',
        '7 6 "牌价类型" 100',
        '8 7 "牌价" 100 2 0 1 0',
        '9 8 "会计科目" 100',
        '0 9 "分录序号" 100 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;
39
        }
李少勇 committed
40 41
      },
      immediate: true,
42
    },
李少勇 committed
43 44 45 46
  },
  methods: {},
  created: function () {},
};
47
</script>
李少勇 committed
48
<style></style>