<template>
  <div class="mainboxheader">
    <div
      class="el-icon-arrow-left"
      style="
        height: 20px;
        position: absolute;
        font-size: 12px;
        line-height: 20px;
        color: #6b84a5ff;
      "
      @click="getback()"
    >
      配电网一体化运行管理平台
    </div>
    <div style="display: flex; flex: 1; padding-left: 26px">
      <div class="mainboxheaderitem el-icon-bell" style="padding-top: 2px">
        智能待办 [5]
      </div>
      <div
        class="mainboxheaderitem"
        @click="getfullcalendarComp"
        style="padding-left: 20px"
      >
        任务日历
      </div>
      <div class="mainboxheaderitem">资源与分布</div>
      <div class="mainboxheaderitem" style="padding-right: 20px">
        指标与考核
      </div>
    </div>
    <div style="width: 300px; height: 40px" @click="getindex"></div>
    <div style="display: flex; flex: 1; padding-right: 22px">
      <div class="mainboxheaderitem" style="padding-left: 20px">巡视知识库</div>
      <div class="mainboxheaderitem" @click="gettupu">设备知识图谱</div>
      <div class="mainboxheaderitem" style="padding-right: 40px">巡视设置</div>
      <div class="mainboxheaderitem">
        &nbsp&nbsp&nbsp&nbsp
        <span style="padding-top: 5px" class="el-icon-tickets"
          >巡视工单 [7]</span
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "headers",
  props: {
    name: {
      type: String,
      default: "index",
    },
  },
  methods: {
    getfullcalendarComp() {
      this.$router.push({ path: "/fullcalendarComp" });
    },
    getindex() {
      this.$router.push({ name: "inspectionindex" });
    },
    gettupu() {
      this.$router.push({ name: "KnowledgeMap" });
    },
    getback() {
      let that = this;
      this.$router.push({ name: that.name });
    },
  },
};
</script>

<style scoped>
.mainboxheader {
  height: 60px;
  background: red;
  background: url(../assets/header-bg.png) no-repeat;
  background-size: 100% 100%;
  display: flex;
  justify-content: space-between;
}
.mainboxheaderitem {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3464cc;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
}
</style>
