Shannon_mu 3 gadi atpakaļ
vecāks
revīzija
a447d387c3
1 mainītis faili ar 2 papildinājumiem un 29 dzēšanām
  1. 2 29
      login/src/views/NewNav/index.vue

+ 2 - 29
login/src/views/NewNav/index.vue

@@ -102,19 +102,8 @@ export default {
                         this.$message.error(msg);
                     }
                 });
-            } else if (appId == 1009 || appId == 1010 || appId == 1011) {
-                this.$http
-                    .post('/third/party/login/getLoginUrl', {
-                        menuId: id,
-                        systemType: 'YYSF'
-                    })
-                    .then(({ status, data, msg }) => {
-                        if (0 === status) {
-                            window.open(`${data}`);
-                        } else {
-                            this.$message.error(msg);
-                        }
-                    });
+            } else if (Number(appId) < 0) {
+                window.open(url);
             } else {
                 window.open(url);
             }
@@ -128,20 +117,6 @@ export default {
                     } else {
                         this.navList = data;
                     }
-                    // let xx=data.find(item=>{
-                    //     if(item.name=='客户服务'){
-                    //         item.name="新物联网";
-                    //         item.appId=1010
-                    //         return item.linkPath="http://localhost:8081/"
-                    //     }
-                    // })
-                    // if(this.navList[4].name)
-                    // {
-                    //   this.navList[4].name="新物联网"
-                    //   this.navList[4].linkPath="http://localhost:8081/"
-                    //    this.navList[4].appId=1010
-                    // }
-                    // console.dir(this.navList);
                 }
             });
         },
@@ -161,7 +136,6 @@ export default {
         },
         getlogin() {
             this.isSelectTenant = false;
-            // let { phone, tenantId } = this.$route.query;
             this.selectDta = JSON.parse(window.sessionStorage.getItem('loginJson'));
             let { phone, tenantId } = JSON.parse(window.sessionStorage.getItem('loginJsonActive'));
             this.selectDta.map((item, index) => {
@@ -174,7 +148,6 @@ export default {
             this.$http
                 .postForm('/user/login', { mobile: phone, tenatId: tenantId, token: localStorage.getItem('SC_token') })
                 .then(({ status, data, msg }) => {
-                    // localStorage.setItem('UMIS_token', data.token);
                     localStorage.setItem('customerID', data.customerId);
                     if (data.enableState === '0') {
                         if (this.tenantName.length > 1) {