<template>
  <div>
    <!-- <add v-if="tool.checkAuth($route.name,'agent_update') && !detail" class="normal-margin" @onSuccess="onSuccess"></add> -->
    <tableLayout :layout="tablecols" :data="list" :custom="true" height="calc(100vh - 495px)">
      <template v-slot:customcol="scope">
        <p>{{scope.column.data[scope.column.columnname]}}</p>
      </template>
    </tableLayout>
  </div>
</template>

<script>

export default {
  props:['data'],
  data () {
    return {
      list:[]
    }
  },
  inject: ['sys_enterpriseid'],
  components:{
  },
  props:['detail'],
  methods:{
    async query_areascope () {
      const res = await this.$api.requested({
        "id": "20221009160003",
        "version":1,
        "content": {
            "sys_enterpriseid":this.sys_enterpriseid()
        }
      })
      this.list = res.data
    },
  },
  mounted () {
  },
  created () {
    this.query_areascope()
    // 获取角色表结构
    this.tablecols = this.tool.tabelCol(this.$route.name)['accountMoneyTable'].tablecols
  }
}

</script>
<style>
</style>