<template>
  <div class="eibs-tab">
    <!-- <el-col :span="11">
      <el-form-item label="File Receiver">
        <c-input
          v-model="model.trnmod.trndoc.filrecv"
          placeholder="请输入File Receiver"
        ></c-input>
      </el-form-item>
    </el-col>

    <el-col :span="11" :offset="1">
      <el-form-item label="Document tree">
        <c-input
          v-model="model.trnmod.trndoc.doctrestm"
          placeholder="请输入Document tree"
        ></c-input>
      </el-form-item>
    </el-col> -->

    <el-col :span="24">
      <el-form-item
        label="Outgoing Correspondence,Attachments and other Documents"
        label-width="400px"
      >
      </el-form-item>
    </el-col>

    <el-col :span="24">
      <!-- ========================左====================== -->
      <el-col :span="14">
        <el-col :span="24">
          <div style="height: 300px; width: 100%;border:1px #ebeef5 solid">
            <el-tree
              :data="data"
              :props="defaultProps"
              @node-click="handleNodeClick"
            ></el-tree>
          </div>
        </el-col>

        <el-col :span="24" style="margin-top:10px">
          <el-col :span="4">
            <el-form-item label="Connected Ducuments" v-show="isShow1 || isShow2"></el-form-item>
            <el-form-item label="" v-show="!(isShow1 || isShow2)"></el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="">
              <c-checkbox v-model="isShow1">Show Incoming Messages</c-checkbox>
            </el-form-item>
            <!-- <c-checkbox v-model="isShow1">Show Incoming Messages</c-checkbox> -->
          </el-col>
          <el-col :span="8" :offset="2">
            <el-form-item label="">
              <c-checkbox v-model="isShow2">Show Outgoing Messages</c-checkbox>
            </el-form-item>
            <!-- <c-checkbox v-model="isShow2">Show Outgoing Messages</c-checkbox> -->
          </el-col>
        </el-col>
        <el-col :span="22" :offset="1">
          <c-table
            :border="true"
            :list="data1"
            style="width:80%,text-align:center"
            v-show="isShow1 || isShow2"
          >
            <el-table-column label="Type" width="auto"></el-table-column>
            <el-table-column label="Document" width="auto"></el-table-column>
            <el-table-column label="Cre.TRN" width="auto"></el-table-column>
            <el-table-column label="Date" width="auto"></el-table-column>
            <el-table-column label="" width="auto"></el-table-column>
            <el-table-column label="" width="auto"></el-table-column>
          </c-table>
        </el-col>
      </el-col>

      <!-- ==============右============= -->
      <el-col :span="6" :offset="1">
        <el-col :span="24">
          <c-button size="small" type="primary" @click="onTrndocButshw">
            Show
          </c-button>
        </el-col>

        <el-col :span="24" style="margin-top: 15px">
          <c-button size="small" type="primary" @click="onTrndocButadd">
            Details
          </c-button>
        </el-col>

        <el-col :span="24" style="margin-top: 40px">
          <c-button size="small" type="primary" @click="onTrndocButnew">
            Add New
          </c-button>
        </el-col>

        <el-col :span="24" style="margin-top: 15px">
          <c-button size="small" type="primary" @click="onTrndocButattto">
            Attach to
          </c-button>
        </el-col>

        <el-col :span="24" style="margin-top: 15px">
          <c-button size="small" icon="el-icon-delete" @click="onTrndocButdel">
            Delete
          </c-button>
        </el-col>
        <el-col :span="24" style="margin-top: 80px">
          <c-button size="small" type="primary" @click="onTrndocButatt">
            Attach
          </c-button>
        </el-col>
        <el-col :span="24" style="margin-top: 150px">
          <c-button size="small" type="primary" @click="onTrndocButatt">
            i
          </c-button>
        </el-col>
      </el-col>
    </el-col>
    <!-- <el-col :span="12">
      <span
        v-text="model.trnmod.trndoc.doclbl"
        data-path=".trnmod.trndoc.doclbl"
      >
      </span>
    </el-col> -->

    <!-- <el-col :span="11" style="margin-top: 20px">
      <el-form-item label="Connected Documents">
        <c-input
          v-model="model.trnmod.trndoc.condocstm"
          placeholder="请输入Connected Documents"
        ></c-input>
      </el-form-item>
    </el-col> -->

    <!-- <el-col :span="11" :offset="1" style="margin-top: 20px">
      <el-form-item label="">
        <c-input
          v-model="model.trnmod.trndoc.rcvatt.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </el-col> -->
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event";

export default {
  inject: ['root'],
  props: ["model", "codes"],
  data() {
    return {
      data1:[],
      isShow1: false,
      isShow2: false,
      data: [
        {
          label: "Internal",
          children: [{ label: "'Free Message' via Letter" }],
        },
      ],
    };
  },
  methods: { ...Event,
  handleNodeClick(){} ,
  defaultProps(){}
  },
  created: function () {},
};
</script>
<style>
</style>
