| | |
| | | } |
| | | }, |
| | | setLiClick(res, index) { |
| | | |
| | | setTimeout(() => { |
| | | this.changeliSelect = res.cnName; |
| | | if (res.url.indexOf('http') != -1) { |
| | | if (this.$store.reporturl == null) { |
| | | if (location.href.indexOf('/WareInspection') == -1) { |
| | | this.$store.reporturl = res.url; |
| | | this.$router.push('/WareInspection'); |
| | | } else { |
| | |
| | | |
| | | that.setMenuTree(menuLists); |
| | | } else { |
| | | this.$message({ |
| | | message: '暂无菜单栏数据', |
| | | type: 'warning' |
| | | }); |
| | | this.$message({ |
| | | message: '暂无菜单栏数据', |
| | | type: 'warning' |
| | | }); |
| | | } |
| | | } |
| | | }, |
| | |
| | | return father.pid == 1; // 返回一级菜单 |
| | | }); |
| | | } else { |
| | | this.$message({ |
| | | message: '暂无菜单栏数据', |
| | | type: 'warning' |
| | | }); |
| | | this.$message({ |
| | | message: '暂无菜单栏数据', |
| | | type: 'warning' |
| | | }); |
| | | } |
| | | }, |
| | | logOut() { |