<template>
  <div>
    <el-button size="mini" type="text" @click="editBtn">详 情</el-button>
    <el-dialog title="新 增" :visible.sync="dialogFormVisible" width="80%">
      <div slot="title" style="font-size: 15px">
        资金流水账
      </div>
      <basicLayout 
        ref="basicLayout" 
        formPath="" 
        tableName="accountMoneyDetailTable" 
        idName="sa_accountclassid" 
        :apiId="{query:20221022161304,del:''}" 
        :options="options"
        @listCreate="list">
        <div slot="custom"></div>
        <template v-slot:tbList="scope">
          <div v-if="scope.data.column.columnname === 'isorder'">
            <span v-if="scope.data.column.data[scope.data.column.columnname] === 1">是</span>
            <span v-else>否</span>
          </div>
          <div v-else>
            {{scope.data.column.data[[scope.data.column.columnname]]}}
          </div>
        </template>
        <template v-slot:tbOpreation="scope">
        </template>
      </basicLayout>
    </el-dialog>
    
  </div>
</template>

<script>
import { log } from '@antv/g2plot/lib/utils'
export default {
  props:['rowData'],
  components:{},
  name: "index",
  data() {
    return {
      options:[],
      dialogFormVisible:false
    }
  },
  methods: {
    editBtn () {
      this.dialogFormVisible = true
    },
    list (param) {
      console.log(this.rowData);
      
      param.content.sa_accountclassid = this.rowData.sa_accountclassid
      param.content.sys_enterpriseid = this.rowData.sys_enterpriseid
      param.content.minAmount = 20
      param.content.maxAmount = 0
    }
  }
}
</script>

<style scoped>

</style>