<!--
@name: 审批信息表格
@author: 张泽贤
@time: 2022-08-29
@doc:
-->
<template>
  <a-row :gutter="16">
    <a-col :span="12">
      <a-divider orientation="left">审批节点</a-divider>
      <t-table
        ref="auditNodeTable"
        dragle
        bordered
        row-key="id"
        :scroll="{ x: true }"
        :vScrollX="{enabled:false}"
        :vScrollY="{enabled:true,rows:4}"
        :columns="auditNode_columns"
        :data-source.sync="auditNode_dataSource"
        :remote-url="auditNode_listRemoteUrl"
        :remoteData="auditNode_listParams"
        :rowSelectType="false"
        :autoLoad="false"
      >
      </t-table>
    </a-col>
    <a-col :span="12">
      <a-divider orientation="left">审核历史</a-divider>
      <t-table
        ref="auditNodeTable"
        dragle
        bordered
        row-key="id"
        :scroll="{ x: true }"
        :vScrollX="{enabled:false}"
        :vScrollY="{enabled:true,rows:4}"
        :columns="auditHistory_columns"
        :data-source.sync="auditHistory_dataSource"
        :remote-url="auditHistory_listRemoteUrl"
        :remoteData="auditHistory_listParams"
        :rowSelectType="false"
        :autoLoad="false"
      >
      </t-table>
    </a-col>
  </a-row>
</template>

<script>
import { setAuditNodeColumns, setAuditHistoryColumns } from '../js/tableConfig.js'

export default {
  data() {
    return {
      auditNode_columns: setAuditNodeColumns(this),
      auditNode_dataSource: [],
      auditNode_listRemoteUrl: '',
      auditNode_listParams: {},

      auditHistory_columns: setAuditHistoryColumns(this),
      auditHistory_dataSource: [],
      auditHistory_listRemoteUrl: '',
      auditHistory_listParams: {},
    }
  },
}
</script>