| | |
| | | listMenu: [], |
| | | showFlag: null, |
| | | language: true, |
| | | |
| | | nowPage: [ |
| | | { |
| | | name: '/Archive', |
| | | index: 3 |
| | | }, |
| | | { |
| | | name: '/dataApplication', |
| | | index: 3 |
| | | }, |
| | | { |
| | | name: '/ExportMap', |
| | | index: 3 |
| | | }, |
| | | { |
| | | name: '/Synthesis', |
| | | index: 3 |
| | | }, |
| | | { |
| | | name: '/dataController', |
| | | index: 4 |
| | | }, |
| | | { |
| | | name: '/mochaitmo', |
| | | index: 5 |
| | | } |
| | | ] |
| | | }; |
| | | }, |
| | | created() { }, |
| | |
| | | this.$store.state.themeflag = false; |
| | | $("#app").removeClass("Black_theme"); |
| | | this.getMenuTree(); |
| | | if (sessionStorage.getItem('changeliSelect')) { |
| | | this.$set(this, 'changeliSelect', sessionStorage.getItem('changeliSelect')) |
| | | // this.changeliSelect = sessionStorage.getItem('changeliSelect') |
| | | } |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | |
| | | |
| | | //鼠标移入菜单事件 |
| | | setMenuMove(index, item) { |
| | | |
| | | if (item.perms != null) { |
| | | this.$router.push(item.url); |
| | | if (this.showFlag != null) { |
| | |
| | | this.showFlag = null; |
| | | } |
| | | } |
| | | |
| | | // debugger |
| | | if (index === 4 || index === 5 || index === 6) { |
| | | sessionStorage.removeItem('changeliSelect') |
| | | this.$set(this, 'changeliSelect', null) |
| | | } |
| | | sessionStorage.setItem('changeSelectStyle', index) |
| | | this.changeSelectStyle = index; |
| | | }, |
| | | closeAllChildren() { |
| | |
| | | }, |
| | | setLiClick(res, index) { |
| | | setTimeout(() => { |
| | | |
| | | this.changeliSelect = res.cnName; |
| | | sessionStorage.setItem('changeliSelect', res.cnName) |
| | | if (res.url.indexOf('http') != -1) { |
| | | this.$store.reporturl = res.url; |
| | | this.$store.reporturl = res.url; |
| | | sessionStorage.setItem('iframehttpurl', this.$store.reporturl) |
| | | this.$router.push('/QualityInspection'); |
| | | // if (location.href.indexOf('/WareInspection') == -1) { |
| | | // this.$store.reporturl = res.url; |
| | |
| | | // } |
| | | } else { |
| | | this.$store.reporturl = null; |
| | | sessionStorage.setItem('iframehttpurl', null) |
| | | // sessionStorage.setItem('changeliSelect', null) |
| | | this.$router.push(res.url); |
| | | this.$store.commit('currentPerms', res.perms); |
| | | } |
| | |
| | | |
| | | } |
| | | this.listMenu.push(res[i]); |
| | | this.changeSelectStyle = this.listMenu.length - 1; |
| | | // this.changeSelectStyle = this.listMenu.length - 1; |
| | | // this.changeSelectStyle = 0 |
| | | // const nowPage = this.nowPage |
| | | // if (sessionStorage.getItem('routerName')) { |
| | | // for (let index = 0; index < nowPage.length; index++) { |
| | | // if (this.$route.path === nowPage[index].name) { |
| | | // this.$set(this, 'changeSelectStyle', nowPage[index].index) |
| | | // } |
| | | // } |
| | | // } else { |
| | | // this.changeSelectStyle = this.listMenu.length - 1; |
| | | // } |
| | | this.changeSelectStyle = sessionStorage.getItem('changeSelectStyle') |
| | | // var strartMneu = res[i].children[0]; |
| | | // this.$store.commit('currentPerms', strartMneu.perms); |
| | | // this.changeliSelect = strartMneu.cnName; |