<template>
  <div id="app">
    <transition name="el-fade-in">
        <router-view />
    </transition>
  </div>
</template>
<script>
export default {
  watch: {
    $route(to) {
      this.$store.commit("setPages", to.path);
      this.$store.commit("setDefaultActive", unescape(to.fullPath));
    },
  },
};
</script>
<style lang="scss">
@import "assets/style";
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Helvetica Neue, Helvetica, Arial, PingFang SC, Hiragino Sans GB,
    WenQuanYi Micro Hei, Microsoft Yahei, sans-serif !important;
}

html,
body,
#app,
.page {
  width: 100%;
  min-width: 1000px;
  height: 100%;
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  background: rgb(229, 235, 242);
  position: relative;
  z-index: 0;
  background-repeat: repeat-y;
}
.el-header {
  padding: 0 !important;
}
// .page:after {
// 	content: '.';
// 	color: rgba(0, 0, 0, 0);
// 	position: absolute;
// 	left: 0;
// 	top: 0;
// 	z-index: 1;
// 	width: 100%;
// 	height: 308px;
// 	background: linear-gradient(to right, #107CFF, #1025FF);
// }

.router-page {
  height: 100%;
  flex-grow: 1;
}

.query-card {
  .el-form--inline {
    margin-top: -17px;
    padding-left: 20px;
    padding-right: 20px;

    .el-form-item {
      padding-top: 17px;
      padding-bottom: 0px;
      margin-bottom: 0;
      margin-right: 40px;
    }
  }
}

.el-menu {
  border: none;

  .el-menu-item,
  .el-submenu__title {
    height: 47px;
    line-height: 47px;
    font-family: PingFangSC-Regular;
    font-size: 14px;
    color: #666666;
    letter-spacing: 0;
  }

  .is-active {
    color: #107cff;
  }
}

.el-button--primary {
  background-color: #107cff;
}

.table-card {
  margin-top: 9px;
}

.p-table-header-row {
  background-color: rgba(16, 124, 255, 0.05) !important;
}

.p-table-header-cell {
  background-color: rgba(16, 124, 255, 0.05) !important;
  font-family: PingFangSC-Medium;
  font-size: 14px;
  color: #333333;
  text-align: center !important;
}

.p-table-cell {
  font-family: PingFangSC-Regular;
  font-size: 14px;
  color: #666666;
  text-align: center !important;
}

.router-page {
  display: flex;
  flex-direction: column;

  .query-card {
    flex-grow: 0;
    flex-shrink: 0;
  }

  .table-card {
    flex-grow: 1;
    flex-shrink: 1;
    height: 100%;
    overflow-y: auto;
  }
}
.el-image-viewer__close {
  color: #fff;
}

.el-menu-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
</style>
