| | |
| | | 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.showFlag = null; |
| | | } |
| | | } |
| | | |
| | | sessionStorage.setItem('changeSelectStyle', index) |
| | | this.changeSelectStyle = index; |
| | | }, |
| | | closeAllChildren() { |
| | |
| | | }, |
| | | setLiClick(res, index) { |
| | | setTimeout(() => { |
| | | // debu |
| | | this.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) |
| | | 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; |