<template>
  <div id="app" v-cloak>
    <router-view v-if="isRouterAlive" />
  </div>
</template>

<script>
import Vue from "vue";

export default {
  name: "App",
  provide() {
    return {
      reloads: this.reloads,
    };
  },
  data() {
    return {
      isRouterAlive: true,
    };
  },
  created() {},
  methods: {
    reloads() {
      this.isRouterAlive = false;
      this.$nextTick(function () {
        this.isRouterAlive = true;
      });
    },
  },
};
</script>
<style >
* {
  margin: 0;
  padding: 0;
  touch-action: none !important;
}
[v-cloak] {
  display: none !important;
}
body {
  background-color: #eef4f9 !important;
}
/* 出去多选框中的关闭按钮 */
.el-select__tags .el-tag__close.el-icon-close {
  display: none;
}
.el-checkbox__input.is-focus {
  visibility: hidden;
}
.el-checkbox__inner:hover {
  background-color: rgb(19, 129, 122);
}
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: #14928a;
  border-color: #14928a;
}
.el-select__tags .el-tag__close.el-icon-close {
  display: inline-block;
}
.el-checkbox__input.is-checked + .el-checkbox__label {
  color: #606266;
}
</style>
<style lang="scss">
$--color-primary: teal;
.el-table {
  width: 99% !important;
  border-left: 1px solid #ebeef5;
  border-right: 1px solid #ebeef5;
}
.el-tabs__content {
  overflow: auto;
}

.el-tabs__item:focus.is-active.is-focus:not(:active) {
  box-shadow: none;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type="number"] {
  -moz-appearance: textfield;
}
.el-input__inner {
  line-height: 1px !important;
}
.el-dialog {
  margin-bottom: 10vh;
  .el-dialog__header {
    background: #363d55;
    padding: 15px 20px 15px;
    .el-dialog__title {
      color: #fff;
    }
    .el-dialog__headerbtn .el-dialog__close {
      color: #fff;
    }
  }
}
.el-tabs__item.is-active {
  color: #14928a !important;
  // font-size: 14px;
  font-weight: 600;
}
.el-tabs__item:hover {
  color: #14928a !important;
  // font-size: 14px;
  font-weight: 600;
}
// 选择框组件
.el-form-item__content {
  font-size: 14px !important;
}
.el-select {
  width: 180px !important;
}
.multiple.el-select {
  width: 180px !important;
}
.searchBtn {
  width: 100px;
  height: 36px;
  line-height: 36px;
  background-color: #f85043;
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-radius: 4px;
  position: relative;
  top: 3px;
  cursor: pointer;
}
.newBand {
  min-width: 100px;
  max-width: 150px;
  padding: 0 10px;
  height: 36px;
  line-height: 36px;
  margin-bottom: 20px;
  background-color: #14928a;
  border: 1px solid #14928a;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-radius: 4px;
  position: relative;
  top: 3px;
}
.btn-primary {
  background-color: #14928a;
  border-color: #14928a;
  color: #fff;
  margin-bottom: 20px;
  min-width: 100px;
  &:focus,
  &:hover {
    background-color: #0e726c;
    border-color: #0e726c;
    color: #fff;
  }
}
// 公用的搜索组件
.searchWrap {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(119, 119, 119, 1);
  height: 30px;
  margin-bottom: 30px;
  p {
    font-size: 14px;
    padding-left: 4px;
  }
  .searchItem {
    margin-left: 20px;
    position: relative;
    box-sizing: border-box;
    min-width: 116px;
    padding: 0 25px;
    height: 30px;
    line-height: 30px;
    background: rgba(246, 246, 246, 1);
    border-radius: 15px;
    color: #777;
    font-size: 14px;
    .el-icon-close {
      position: absolute;
      right: 5px;
      top: 8px;
    }
  }
}
.headWrap {
  padding: 40px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  .left {
    width: 1100px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    .headItem {
      width: 320px;
      height: 30px;
      color: #444;
      border-right: 1px solid #979797;
      p {
        font-size: 14px;
        line-height: 30px;
        span {
          font-size: 22px;
          line-height: 30px;
        }
      }
      &:nth-child(1) {
        width: 256px;
      }
      &:nth-child(2n) {
        text-align: center;
      }
      &:nth-child(3n) {
        border-right: 1px solid #fff;
        text-align: center;
      }
      &:nth-child(4n) {
        text-align: left !important;
        width: 256px;
      }
      &:nth-child(5n) {
        text-align: center;
      }
    }
  }
}
// 公用编剧模板
.m-container {
  box-sizing: border-box;
  background-color: #fff;
  padding: 18px 30px 40px;
  // height: calc(100vh- 80px) !important;
  // height: calc(100vh - 70px);
  width: 100%;
  // min-width: 1440px;
  // overflow: auto;
  .m-core {
    margin-top: 10px;
    background-color: #fff;
    position: relative;
  }
  // & > h2 {
  //   display: none !important;
  // }
  h2 {
    height: 48px;
    line-height: 48px;
    position: relative;
    // padding-left: 20px;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    .term {
      height: 32px;
      line-height: 32px;
      border-radius: 24px;
      width: 100px;
      color: #14928a;
      border: 1px solid rgba(20, 146, 138, 1);
      font-size: 14px;
      text-align: center;
      margin-right: 12px;
      &:nth-child(1) {
        margin-left: 47px;
      }
    }
    .term.active {
      color: #fff;
      background-color: #14928a;
    }
    .squrt {
      // margin-right: 15px;
      // height: 34px;
      // width: 8px;
      // background-color: #14928a;
    }
  }
}
.btnWrap {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  div {
    line-height: 40px;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    margin-right: 20px;
    cursor: pointer;
  }
  .nextBtn {
    width: 120px;
    height: 40px;
    background-color: #13817a;
  }
  .okBtn {
    width: 120px;
    height: 40px;
    background-color: #f97215;
  }
  .closeBtn {
    width: 120px;
    height: 40px;
    background-color: #777;
  }
}
::-webkit-scrollbar {
  width: 8px; /* 纵向滚动条*/
  height: 8px; /* 横向滚动条 */
  background-color: #fff;
}

/*定义滚动条轨道 内阴影*/
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0);
  background-color: #fff;
}

/*定义滑块 内阴影*/
::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0);
  background-color: #d5d5d5;
}
.el-input.is-disabled .el-input__inner {
  color: #333;
  opacity: 1;
}

.horizontal-scrollbar {
  .el-scrollbar__wrap {
    overflow-x: hidden;
    margin-bottom: -8px !important;
    margin-right: -8px !important;
    .el-scrollbar__view {
      white-space: nowrap;
    }
  }
}
</style>
<style lang="less">
.main-dot {
  position: relative;
  &::after {
    content: "";
    display: block;
    position: absolute;
    height: 8px;
    width: 8px;
    background-color: #f56c6c;
    border-radius: 50%;
    right: 5px;
    top: 5px;
  }
}
.el-select__tags {
  overflow: hidden;
  flex-wrap: nowrap;
}
.el-select__tags {
  .el-tag.el-tag--info.el-tag--small.el-tag--light {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    .el-select__tags-text {
        flex-wrap: nowrap;
      max-width: 60px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: inline-block;
    }
  }
}
</style>
