<!--
 * @Author: your name
 * @Date: 2022-04-11 14:11:04
 * @LastEditTime: 2026-05-07 10:07:18
 * @LastEditors: 纪泽龙 jizelong@qq.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/operationMonitor/xunjianxuncha/index.vue
-->
<template>
  <div class="app-container xjxc">
    <div class="shai">
      <el-select
        clearable
        v-model="danwei"
        placeholder="请选择单位"
        @change="selectcompanyId"
      >
        <el-option
          v-for="item in enterprises"
          :key="item.enterpriseId"
          :label="item.enterpriseName"
          :value="item.enterpriseId"
        ></el-option>
      </el-select>
    </div>
    <el-tabs v-model="activeName" style="width: 300px" @tab-click="handleClick">
      <el-tab-pane label="2026年度" name="2026"></el-tab-pane>
      <el-tab-pane label="2025年度" name="2025"></el-tab-pane>
      <el-tab-pane label="2024年度" name="2024"></el-tab-pane>
      <el-tab-pane label="2023年度" name="2023"></el-tab-pane>
    </el-tabs>
    <div class="wrapper-b-wrapper">
      <div class="wrapper-b flex-h">
        <div class="top flex">
          <div class="right">
            <Right :annual="activeName" :companyInfoId="companyInfoId" />
          </div>
          <div class="left">
            <Left :annual="activeName" :companyInfoId="companyInfoId" />
          </div>
          <!--<div class="middle">-->
          <!--<Middle />-->
          <!--</div>-->
        </div>
        <div class="middle"></div>
        <div class="bottom">
          <Middle :annual="activeName" :companyInfoId="companyInfoId" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Left from "./components/Left";
import Middle from "./components/Middle";
import Right from "./components/Right";
import { enterpriseLists } from "@/api/regulation/info";
export default {
  components: {
    Left,
    Middle,
    Right,
  },
  data() {
    return {
      danwei: null,
      enterprises: [],
      activeName: "2025",
      companyInfoId: "",
    };
  },
  created() {
    this.getEnterpriseLists();
  },
  methods: {
    selectcompanyId(e) {
      this.companyInfoId = e;
    },
    //所属单位
    getEnterpriseLists() {
      const param = {};
      enterpriseLists(param).then((response) => {
        this.enterprises = response.rows;
      });
    },
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
  mounted() {},
};
</script>

<style lang="scss" scoped>
.app-main {
}
.app-container {
  display: flex;
  flex-direction: column;
}
.xjxc {
  height: calc(100vh - 50px) !important;
  overflow: auto;
}

.flex {
  display: flex;
  justify-content: space-between;
}
.wrapper-b-wrapper {
  flex: 1;
  // border:1px solid red
  // background: red;
}

.wrapper-b {
  display: flex;
  // justify-content: space-around;
  flex-direction: column;
  min-height: 818px;
  min-width: 1400px;
  width: 100%;
  height: 100%;
  .top {
    height: 40%;


    .left {
      width: 70%;
      box-sizing: border-box;

      padding: 15px 24px 19px;
    }
    .middle {
      width: 35.3%;
      box-sizing: border-box;

      padding: 15px 80px 19px 71px;
    }
    .right {
      width: 30.2%;
      box-sizing: border-box;

      padding: 15px 10px;
    }
    > div {
      // box-shadow: 2px 0px 13px 1px rgba(0, 0, 0, 0.1);
      box-shadow: 2px 0px 10px 1px rgba(0, 0, 0, 0.1);
      border-radius: 3px;
    }
  }
  > .middle {
    margin: 5px 0;
    background: repeating-linear-gradient(
      135deg,
      transparent,
      transparent 3px,
      #d6d6d6 3px,
      #d6d6d6 8px
    );
    height: 2px;
  }
  .bottom {
    flex: 1;
  }
  > div {
    // height: 50%;
  }
}
.shai {
  position: fixed;
  right: 20px;
  width: 300px;
  height: 40px;
}
::v-deep .el-select {
  width: 300px;
}
</style>
