<template>
  <el-container>
    <el-header style="width: 100%">
      <VxeForm :data="formData.data" :items="formData.items" />
    </el-header>
    <el-container style="padding-top: 10px">
      <el-container>
        <el-main>
          <VxeGrid ref="bFangRef" v-bind="gridOptions" />
        </el-main>
      </el-container>
    </el-container>
  </el-container>
</template>

<script>
import init from "@/views/cxtj/index";

export default {
  name:'CXTJ',
  data(){
    return{
      formData:{
        data:{},
        items:[]
      },
      gridOptions:{},
    }
  },
  created(){
    const {formData,formItems,options,columns}=init(this.$route.path)
    this.formData.data=formData
    this.formData.items=formItems
    this.gridOptions=options
    this.gridOptions.columns=columns
  },
}
</script>

<style lang="scss" scoped>
.el-header {
  margin: 0;
  padding: 5px 0;
  height: auto;
}
.el-container {
  padding: 0;
  margin: 0;
}
.el-main {
  padding: 0;
}
.el-col {
  padding: 0;
}
.el-aside {
  background: #fff;
  padding: 0;
}
.el-container {
  padding: 0;
}
.el-row {
  margin-bottom: 5px;
}
.el-row:last-child {
  margin-bottom: 0;
}
.tableStyles {
  background: #0a76a4;
}
.my-dropdown {
  width: 450px;
  height: 250px;
  background-color: #fff;
  border: 1px solid #dcdfe6;
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
  font-size: 12px;
}
::v-deep .mytable .vxe-input {
  display: flex !important;
}
::v-deep .el-form-item{
  margin-bottom: 0px !important;
}
</style>
