App.vue 1.47 KB
<template>
  <div id="app">
    <div class="loading" v-if="loading">
      <div>
        <div class="title">{{ title }}。。。</div>
        <el-progress :percentage="percentage" color="#1890ff"></el-progress>
      </div>
    </div>
    <router-view />
  </div>
</template>
<script>
import Vue from "vue";
export default {
  data() {
    return {
      fontStyle: null,
      api: process.env.VUE_APP_API_BASE_URL + "/",
      percentage: 0,
      loading: false,
      title: "报告生成中",
    };
  },
  beforeCreate() {
    Vue.prototype.$app = this;
  },
  created() {},

  methods: {},
};
</script>

<style lang="less" scoped>
#app {
  height: 100vh;
  .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 99999;
    .title {
      color: #fff;
      font-size: 12px;
      text-align: center;
    }
    .el-progress {
      width: 300px;
      /deep/ .el-progress__text {
        color: #fff;
      }
    }
  }
}
/deep/.el-menu--horizontal > .el-menu-item.is-active,
/deep/.el-tabs__item.is-active {
  border-bottom: 2px solid #409eff;
  color: #303133;
}
/deep/.el-tabs__item.is-active {
  border-bottom: 3px solid #409eff;
}
/deep/.el-tabs__item:hover {
  color: #303133;
}
/deep/.el-tabs__active-bar {
  color: unset;
  background-color: unset;
}
/deep/.el-tabs__item {
  width: 120px;
  color: #909399;
}
</style>