Prechádzať zdrojové kódy

暂时取消自动登录弹出数据看板的效果

liubei@c-top.com.cn 3 rokov pred
rodič
commit
bc5d078dae

+ 27 - 27
src/permission.js

@@ -56,19 +56,19 @@ router.beforeEach((to, from, next) => {
               next({ ...to, replace: true })
             } else {
               // 跳转到目的路由
-              if( to.path === '/dashboard/analysis' && from.path == '/'){
-                if (store.getters.userInfo.id == '4aba62011120ac565c7f2b9f8f4aa96b' || store.getters.userInfo.id == 'e9ca23d68d884d4ebb19d07889727dae') {
-                  const a = document.createElement('a');
-                                      document.body.appendChild(a);
-                                      a.style.display = 'none';
-                                      a.href = 'http://192.168.0.195:9001/boss-data-kanban';
-                                      a.target = '_blank'
-                                      a.click();
-                                      document.body.removeChild(a);
-                  // let tempPage = window.open('', '_blank');
-                  // tempPage.location="/boss-data-kanban";
-                }
-              }
+              // if( to.path === '/dashboard/analysis' && from.path == '/'){
+              //   if (store.getters.userInfo.id == '4aba62011120ac565c7f2b9f8f4aa96b' || store.getters.userInfo.id == 'e9ca23d68d884d4ebb19d07889727dae') {
+              //     const a = document.createElement('a');
+              //                         document.body.appendChild(a);
+              //                         a.style.display = 'none';
+              //                         a.href = 'http://192.168.0.195:9001/boss-data-kanban';
+              //                         a.target = '_blank'
+              //                         a.click();
+              //                         document.body.removeChild(a);
+              //     // let tempPage = window.open('', '_blank');
+              //     // tempPage.location="/boss-data-kanban";
+              //   }
+              // }
               next({ path: redirect })
             }
           })
@@ -87,20 +87,20 @@ router.beforeEach((to, from, next) => {
         warterMark.set(store.getters.userInfo.realname)
         next()
       }
-      if( to.path === '/dashboard/analysis' && from.path == '/'){
-        if (store.getters.userInfo.id == '4aba62011120ac565c7f2b9f8f4aa96b' || store.getters.userInfo.id == 'e9ca23d68d884d4ebb19d07889727dae') {
-          const a = document.createElement('a');
-                              document.body.appendChild(a);
-                              a.style.display = 'none';
-                              a.href = 'http://192.168.0.195:9001/boss-data-kanban';
-                              a.target = '_blank'
-                              a.click();
-                              document.body.removeChild(a);
-          // let tempPage = window.open('', '_blank');
-          // tempPage.location="/boss-data-kanban";
-          return
-        }
-      }
+      // if( to.path === '/dashboard/analysis' && from.path == '/'){
+      //   if (store.getters.userInfo.id == '4aba62011120ac565c7f2b9f8f4aa96b' || store.getters.userInfo.id == 'e9ca23d68d884d4ebb19d07889727dae') {
+      //     const a = document.createElement('a');
+      //                         document.body.appendChild(a);
+      //                         a.style.display = 'none';
+      //                         a.href = 'http://192.168.0.195:9001/boss-data-kanban';
+      //                         a.target = '_blank'
+      //                         a.click();
+      //                         document.body.removeChild(a);
+      //     // let tempPage = window.open('', '_blank');
+      //     // tempPage.location="/boss-data-kanban";
+      //     return
+      //   }
+      // }
     }
   } else {
     if (whiteList.indexOf(to.path) !== -1) {

+ 0 - 1
src/views/modules/stockWatch/modules/new-keepManage/account-newkeepManage.vue

@@ -369,7 +369,6 @@
                     key: 'operator',
                     align: 'center',
                     scopedSlots: { customRender: 'operator' },
-                    fixed:'right',
                     width:150
                     },
                 ],

+ 1 - 0
src/views/modules/stockWatch/modules/new-keepManage/acountProjectData.js

@@ -1277,6 +1277,7 @@ export const KScustomFields= [
                 dataIndex: 'operator',         
                 tip: '当日消耗/当日回传表单数',
                 align: 'center',
+                width:150,
                 scopedSlots: { customRender: 'operator' },
               },
 

+ 1 - 2
src/views/modules/stockWatch/modules/new-keepManage/new-keepManage.vue

@@ -27,12 +27,11 @@
         methods: {
             ...mapGetters(['userInfo']),
         getRoleData(){
-            if (this.userInfo().roleName.indexOf('运营经理') != -1) {
+            if (this.userInfo().roleName.indexOf('运营经理') != -1 || this.userInfo().roleName.indexOf('管理员') != -1) {
                 this.disabledMange = true
             }else{
                 this.disabledMange = false
             }
-            // console.log(this.userInfo());
         },
         },
     }