<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import moment from 'moment'
export default {
  name: 'app',
  components: {
  },
  data() {
    return {
    }
  },
  computed:{
  },
  created() {
  },
  mounted() {
    //判断是否在系统更新期间
    var time = new Date(this.$c.updateTime).getTime()
    var time2 = new Date().getTime()
    if(time2 < time && !localStorage.canShow){
        this.$router.push({path: '/'})
        return false
    }
    //特殊日期设置主题
    var today = moment().format('MM-DD')
    var index = this.$c.specialDays.indexOf(today)
    if(index!=-1){
      document.body.style.filter = 'grayscale(100%)'
    }

    //切换主题
    var theme = localStorage.getItem('theme')
    if (theme) {
      var dom = document.getElementsByTagName('html')[0]
      dom.setAttribute('theme-type',theme)
    }
  },
  methods: {
    
  },

}
</script>

<style lang="scss">
//driver.js
.driver-fix-stacking .header {
  position:relative;
}

.height_100{
  height: 100%;
}

</style>
<style lang="less">
.cursor_pointer{
  cursor:pointer
}

html, body, #app {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: #f4f4f4;
}
.margin-left_0 {
  margin-left: 0 !important;
}
.margin-top_10 {
  margin-top: 10px !important;
}
.margin-left_10 {
  margin-left: 10px !important;
}
.padding-left_10 {
  padding-left: 10px;
}
.padding-right_10 {
  padding-right: 10px;
}
.margin-left_20 {
  margin-left: 20px;
}
.container-white-no-padding {
  background: #fff !important;
  padding: 0 !important;
}
.container-common-main {
  background: #fff;
  padding: 5px 20px !important;
  margin-top: 20px !important;
}
.footer-common {
  height: 70px !important;
  text-align: right;
}
.margin-right_20 {
  margin-right: 20px !important;
}
.width_100 {
  width: 100% !important;
}
.margin-bottom_10 {
  margin-bottom: 10px;
}
.float_right {
  float: right
}
.float_left {
  float: left;
}
.color-red {
  color: red !important;
}
.color-black {
  color: black;
}
.padding_0_5 {
  padding: 0 5px;
}
.color-primary {
  color: #409eff;
}
.margin-right_10 {
  margin-right: 10px !important;
}
.text-align_center {
  text-align: center !important;
}
.position_relative {
  position: relative;
}
.no-body-padding-dialog {
  .el-dialog__body {
    padding: 0 !important;
  }
}
.custom-table-header > th {
  word-break: break-word;
  background: var(--bg) !important;
  color: var(--color);
  height: 40px;
  font-size: 13px;
}
.el-header {
  padding: 13px 0 !important;
  .el-form {
    .el-form-item {
      margin-bottom: 0 !important
    }
  }
}
.custom-drawer-form {
  .el-drawer__header {
    padding: 0 20px !important;
    margin: 15px 0 !important;
    span {
      font-size: 18px;
      color: #303133;
    }
  }
  .el-drawer__body {
    border-top: 1px solid #e6e6e6;
  }
}
.upload-file {
  width: 100% !important;
  .el-upload, .el-upload-dragger {
    width: 100% !important;
  }
  .el-upload-dragger .el-icon-refresh {
    font-size: 67px;
    color: #C0C4CC;
    margin: 40px 0 16px;
    line-height: 50px;
  }
}
.scrollable {-webkit-overflow-scrolling: touch;}
::-webkit-scrollbar {width: 5px;height: 5px;}
::-webkit-scrollbar-thumb {background-color: rgba(50, 50, 50, 0.3);}
::-webkit-scrollbar-thumb:hover {background-color: rgba(50, 50, 50, 0.6);}
::-webkit-scrollbar-track {background-color: rgba(50, 50, 50, 0.1);}
::-webkit-scrollbar-track:hover {background-color: rgba(50, 50, 50, 0.2);}
.el-aside {border-right: 1px solid #e6e6e6;background: #fff;}
.el-header {background: #fff;border-bottom: 1px solid #e6e6e6;padding:13px 15px;display: flex;justify-content: space-between;align-items: center;}
.el-header .left-panel {display: flex;align-items: center;}
.el-header .right-panel {display: flex;align-items: center;}
.el-header .right-panel > * + * {margin-left:10px;}
.el-footer {background: #fff;border-top: 1px solid #e6e6e6;padding:5px 15px !important;}
.el-main {padding:15px !important;}
.el-main.nopadding {padding:0 !important;background: #fff;}
// .el-main {flex-basis: 0}
.el-container {height: 100%;}
</style>

