<template>
  <baseDialog v-model="dialog" title="选择方案">
    <div class="div">
      <el-container>
        <el-header>Header</el-header>
        <el-container style="min-height: 30vh">
          <el-aside width="200px">
            <BaseMenuTree
              :menuData="attribute"
              :filterShow="true"
              :Allshow="false"
              :appendButton="false"
            ></BaseMenuTree>
          </el-aside>
          <el-main>
            <div>
              <BaseTableV1
                :tableColumn="tableColumn"
                :tableData="tableData"
                :slotrow="true"
                @radioChange="handleCurrentChange"
                ref="tableV1"
              ></BaseTableV1>
            </div>
          </el-main>
        </el-container>
      </el-container>
    </div>
  </baseDialog>
</template>

<script>
import BaseTableV1 from "./compoments/baseTable";
import BaseMenuTree from "./compoments/baseMenuTree";
import baseDialog from "@/components/base/BaseDialog";
export default {
  props: {},
  data() {
    return {
      // dialog显示与隐藏
      attribute: [
        {
          upid: null,
          children: [],
          service: "client",
          label: "客户",
          id: "1",
        },
        {
          upid: null,
          children: [],
          service: "supplier",
          label: "供应商",
          id: "2",
        },
      ],
      tableColumn: [
        {
          id: "test05",
          title: "合同编码",
        },
        {
          id: "test06",
          title: "合同编码",
        },
        {
          id: "test07",
          title: "合同编码",
        },
        {
          id: "test08",
          title: "日期",
        },
      ],
      tableData: [
        {
          test05: 9999,
          test06: "22389scs98212",
          test07: "sdsd88c22",
          test08: "2022-10-13",
        },
        {
          test05: 99992,
          test06: "2232dsd",
          test07: "224asdsf",
          test08: "2023-10-13",
        },
      ],
      dialog: true,
    };
  },
  components: {
    baseDialog,
    BaseMenuTree,
    BaseTableV1,
  },
  computed: {},
};
</script>

<style>
</style>