Эх сурвалжийг харах

华耘看板,,登录调整增加路由跳转

xiaost 2 сар өмнө
parent
commit
d4dfb4150d

+ 6 - 4
src/views/login.vue

@@ -63,8 +63,8 @@
                 workshopoptions:[
                     {label: 'SMT', value: 'SMT'},
                     {label: '焊接', value: '焊接'},
-                    {label: '组装', value: '组装'},
-                    {label: '总看板', value: '所有'},
+                    {label: '组装车间', value: '组装'},
+                    {label: '各车间总看板', value: '所有'},
                 ]
 
             }
@@ -140,10 +140,12 @@
                                     this.setCookieData();
                                     if(this.loginForm.workshop =='SMT'){
                                         this.$router.push({path: this.redirect || '/smt'});
-                                    }else if(this.loginForm.workshop =='包装'){
-                                        this.$router.push({path: this.redirect || '/package'});
+                                    }else if(this.loginForm.workshop =='焊接'){
+                                        this.$router.push({path: this.redirect || '/hj'});
                                     }else if(this.loginForm.workshop =='组装'){
                                         this.$router.push({path: this.redirect || '/assembly'});
+                                    }else if(this.loginForm.workshop =='所有'){
+                                      this.$router.push({path: this.redirect || '/total'});
                                     }
                                 }else{
                                     this.$message.error(res.reason);

+ 1 - 1
src/views/smt/index.vue

@@ -49,7 +49,7 @@
                 </span>
                   <el-dropdown-menu slot="dropdown">
                     <el-dropdown-item ><router-link to="assembly"> 组装车间 </router-link></el-dropdown-item>
-                    <el-dropdown-item ><router-link to="hj">焊接</router-link></el-dropdown-item>
+                    <el-dropdown-item ><router-link to="hj">焊接车间</router-link></el-dropdown-item>
                     <el-dropdown-item class="dropdownitem"><router-link to="total"> 各车间总看板</router-link></el-dropdown-item>
                   </el-dropdown-menu>
             </el-dropdown>

+ 1 - 1
src/views/total/centerLeft1ALL.vue

@@ -6,7 +6,7 @@
           <icon name="chart-line" class="text-icon"></icon>
         </span>
         <div class="d-flex">
-          <span class="fs-xl text mx-2">各车间工单达成率</span>
+          <span class="fs-xxl text mx-2">各车间工单达成率</span>
         </div>
       </div>
       <div class="d-flex jc-center body-box">

+ 1 - 2
src/views/total/index.vue

@@ -49,9 +49,8 @@
                 </span>
                   <el-dropdown-menu slot="dropdown">
                     <el-dropdown-item ><router-link to="hj"> 焊接车间 </router-link></el-dropdown-item>
-                    <el-dropdown-item ><router-link to="total"> 各车间总看板</router-link></el-dropdown-item>
                     <el-dropdown-item ><router-link to="smt">SMT车间</router-link></el-dropdown-item>
-                    <el-dropdown-item class="dropdownitem"><router-link to="package"> 组装车间 </router-link></el-dropdown-item>
+                    <el-dropdown-item ><router-link to="assembly"> 组装车间 </router-link></el-dropdown-item>
                   </el-dropdown-menu>
             </el-dropdown>
               <el-select v-model="linecode" class="dropdown" @change ="handleBlur" style="width: 150px">