|  | @@ -5,9 +5,7 @@
 | 
	
		
			
				|  |  |            <router-link to="/home">
 | 
	
		
			
				|  |  |          <div class="logo">
 | 
	
		
			
				|  |  |          <el-image :src="logo" fit="cover" /> </div>
 | 
	
		
			
				|  |  | -        <!-- <span class="title">CADWEB</span> -->
 | 
	
		
			
				|  |  |          </router-link> 
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |        <div
 | 
	
		
			
				|  |  |          v-if="
 | 
	
		
			
				|  |  |            $route.path !== '/login' &&
 | 
	
	
		
			
				|  | @@ -41,7 +39,7 @@
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |      
 | 
	
		
			
				|  |  |            <el-menu-item index="/index/optics" >
 | 
	
		
			
				|  |  | -            <router-link to="/index/optics" ><span>首页</span></router-link>
 | 
	
		
			
				|  |  | +            <router-link to="/index/optics" ><span class="text_color">首页</span></router-link>
 | 
	
		
			
				|  |  |            </el-menu-item>
 | 
	
		
			
				|  |  |      
 | 
	
		
			
				|  |  |            <el-menu-item      background-color="background-color: rgba($color: #0158a8, $alpha: 0.1);"
 | 
	
	
		
			
				|  | @@ -71,7 +69,7 @@
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    <section class="app-main">
 | 
	
		
			
				|  |  | +    <section class="app-main  lbg_color2">
 | 
	
		
			
				|  |  |        <transition name="fade-transform" mode="out-in">
 | 
	
		
			
				|  |  |          <router-view :key="key" />
 | 
	
		
			
				|  |  |        </transition>
 | 
	
	
		
			
				|  | @@ -178,29 +176,19 @@ export default {
 | 
	
		
			
				|  |  |      $route: {
 | 
	
		
			
				|  |  |        handler: function (route) {
 | 
	
		
			
				|  |  |          this.redirect = route.query && route.query.redirect
 | 
	
		
			
				|  |  | -        this.getCount() // 获取统计信息
 | 
	
		
			
				|  |  | -         //判断是否是前沿的logo;
 | 
	
		
			
				|  |  | -     
 | 
	
		
			
				|  |  | -        if(route.path=="/indexLayout/workbench"||route.path=="/indexLayout/home"||route.path=="/indexLayout/guanyuwe"){
 | 
	
		
			
				|  |  | -          this.flag=false;
 | 
	
		
			
				|  |  | -          this.yingyong=true;
 | 
	
		
			
				|  |  | -        }  else{
 | 
	
		
			
				|  |  | -          this.flag=true;
 | 
	
		
			
				|  |  | -          this.yingyong=true;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        immediate: true,
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    mounted(){
 | 
	
		
			
				|  |  | -       if(localStorage.getItem("num")==1){
 | 
	
		
			
				|  |  | -       document.getElementById('theme').href="/static/white.css"
 | 
	
		
			
				|  |  | -    }else{
 | 
	
		
			
				|  |  | -      console.log(localStorage.getItem("num"))
 | 
	
		
			
				|  |  | -               document.getElementById('theme').href="/static/black.css"
 | 
	
		
			
				|  |  | -  
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  | + setTimeout(function(){
 | 
	
		
			
				|  |  | +if(localStorage.getItem("num")==0){
 | 
	
		
			
				|  |  | +        document.getElementById('theme').href="/static/black.css"
 | 
	
		
			
				|  |  | +      }else{
 | 
	
		
			
				|  |  | +         document.getElementById('theme').href="/static/white.css"
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | + },100)
 | 
	
		
			
				|  |  | +},
 | 
	
		
			
				|  |  |    created() {
 | 
	
		
			
				|  |  |     
 | 
	
		
			
				|  |  |    },
 | 
	
	
		
			
				|  | @@ -208,7 +196,6 @@ export default {
 | 
	
		
			
				|  |  |    provide() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        toLogin: this.toLogin,
 | 
	
		
			
				|  |  | -      getCount: this.getCount,
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    computed: {
 | 
	
	
		
			
				|  | @@ -254,7 +241,7 @@ export default {
 | 
	
		
			
				|  |  |            let pretreatment= sessionStorage.getItem("pretreatment",pretreatment);
 | 
	
		
			
				|  |  |            let solver=  sessionStorage.getItem("pretreatment",solver);
 | 
	
		
			
				|  |  |               this.$router.replace({
 | 
	
		
			
				|  |  | -                path: '/indexLayout/workbench',
 | 
	
		
			
				|  |  | +                path: '/indexLayout/index',
 | 
	
		
			
				|  |  |                query: {id, pretreatment, solver },
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  |        //  if(path=="/indexLayout/design"){
 | 
	
	
		
			
				|  | @@ -321,7 +308,7 @@ export default {
 | 
	
		
			
				|  |  |        this.$message.success('退出成功!')
 | 
	
		
			
				|  |  |        setTimeout(() => {
 | 
	
		
			
				|  |  |          // this.$router.replace(`/login?redirect=${this.$route.fullPath}`)
 | 
	
		
			
				|  |  | -        this.$router.replace(`/indexLayout/workbench`)
 | 
	
		
			
				|  |  | +        this.$router.replace(`/indexLayout/index`)
 | 
	
		
			
				|  |  |        }, 1000)
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      logout() {
 | 
	
	
		
			
				|  | @@ -344,24 +331,11 @@ export default {
 | 
	
		
			
				|  |  |            this.$message.info('已取消')
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    getCount() {
 | 
	
		
			
				|  |  | -      this.runProject = 0
 | 
	
		
			
				|  |  | -      this.totalProject = 0
 | 
	
		
			
				|  |  | -      this.user = 0
 | 
	
		
			
				|  |  | -      this.activeUser = 0
 | 
	
		
			
				|  |  | -      request({ transCode: 'C00005' })
 | 
	
		
			
				|  |  | -        .then((res) => {
 | 
	
		
			
				|  |  | -          this.runProject = parseInt(res.runProject)
 | 
	
		
			
				|  |  | -          this.totalProject = parseInt(res.totalProject)
 | 
	
		
			
				|  |  | -          this.user = parseInt(res.user)
 | 
	
		
			
				|  |  | -          this.activeUser = parseInt(res.activeUser)
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        .catch((err) => {})
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | +  
 | 
	
		
			
				|  |  |         //  主题替换
 | 
	
		
			
				|  |  |    clicksel(index){
 | 
	
		
			
				|  |  |        if(index==0){
 | 
	
		
			
				|  |  | -        this.num=0;
 | 
	
		
			
				|  |  | +        this.num=index;
 | 
	
		
			
				|  |  |        localStorage.setItem("num",this.num);
 | 
	
		
			
				|  |  |          document.getElementById('theme').href="/static/black.css"
 | 
	
		
			
				|  |  |        }else if(index==1){
 | 
	
	
		
			
				|  | @@ -481,7 +455,7 @@ export default {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  .app-main {
 | 
	
		
			
				|  |  |      width: 100%;
 | 
	
		
			
				|  |  | -    height: calc(100vh - 85px);
 | 
	
		
			
				|  |  | +    height: calc(100vh - 75px);
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  .footer {
 | 
	
		
			
				|  |  |    @include w_h(100%, 35px);
 |