wangziqian 4 年之前
父節點
當前提交
23f16f5e46
共有 3 個文件被更改,包括 12 次插入7 次删除
  1. 3 3
      src/styles/PublicStyle/index.scss
  2. 2 2
      src/views/business/bizIdSelect.vue
  3. 7 2
      src/views/home/index.vue

+ 3 - 3
src/styles/PublicStyle/index.scss

@@ -441,8 +441,8 @@
   margin: 0px;
 }
 .tips {
-      margin:0 0 4px 20px;
-      color: #E6A23C;
-      font-size: 12px;
+  margin:0 0 4px 20px;
+  color: #E6A23C;
+  font-size: 12px;
 }
 // 排期锁定截止

+ 2 - 2
src/views/business/bizIdSelect.vue

@@ -20,7 +20,7 @@
         @current-change="handleCurrentChange"
       />
     </div>
-    <div class="tips">
+    <div class="business-tips">
       <div class="title">业务线不存在?请联系系统管理员添加</div>
       <div class="contacts ">叶宏钢(yehonggang) 廖子君(amyliaozijun)</div>
     </div>
@@ -142,7 +142,7 @@ export default {
   display: flex;
   justify-content: flex-end;
 }
-.tips {
+.business-tips {
   display: flex;
   flex-direction: column;
   align-items: center;

+ 7 - 2
src/views/home/index.vue

@@ -251,6 +251,7 @@ img.img-arrow {
 </style>
 
 <script>
+import { mapGetters } from 'vuex'
 import FloatMenu from './floatMenu'
 import { logoutUrl } from '@/apiConfig/requestIP.js'
 
@@ -270,7 +271,10 @@ export default {
   computed: {
     username() {
       return localStorage.getItem('realname')
-    }
+    },
+    ...mapGetters([
+      'bizId'
+    ])
   },
   mounted() {
     window.addEventListener('scroll', this.handleScroll, true)
@@ -297,7 +301,8 @@ export default {
           this.$router.push({ name: 'jar包管理' })
           break
         case '4' :
-          this.$router.push({ name: '业务线选择' })
+          if (this.bizId === -1) this.$router.push({ name: '业务线选择' })
+          this.$router.push({ name: '项目' })
           break
         case '6':
           this.$router.push({ name: '单车' })