| | |
| | | @click.stop |
| | | > |
| | | <div class="topBox"> |
| | | <div class="topTitle"></div> |
| | | <div class="topTitle"> |
| | | SmartEarth三维地理信息系统平台V7.0 |
| | | </div> |
| | | <div class="topMenu"> |
| | | <div class="menuContent"> |
| | | <div |
| | | class="contentDiv" |
| | | @click="setMenuMove(index, item)" |
| | | v-for="(item, index) in listMenu" |
| | | :key="index" |
| | | > |
| | | <div style="display: flex;align-items: center"> |
| | | <div class="ImgMenu"> |
| | |
| | | <div |
| | | class="secondMenuDiv subpage_Div" |
| | | v-show="index == showFlag ? true :false" |
| | | v-if="item.children && item.children.length>0" |
| | | > |
| | | <div |
| | | v-for="res in item.children" |
| | | v-for="(res,i) in item.children" |
| | | :key="i" |
| | | @click="setLiClick(res,index)" |
| | | :class="{ changeLiStyle: changeliSelect == res.cnName }" |
| | | > |
| | |
| | | </div> |
| | | <div class="topUser"> |
| | | <div class="userLanguage"> |
| | | <div |
| | | <!-- <div |
| | | class="userImage theme" |
| | | @click="themeChange" |
| | | ></div> |
| | | ></div> --> |
| | | <div |
| | | class="userImage user2" |
| | | @click="switchLang" |
| | |
| | | }, |
| | | created() { }, |
| | | mounted() { |
| | | this.$store.state.themeflag = false; |
| | | $("#app").removeClass("Black_theme"); |
| | | this.$store.state.themeflag = true; |
| | | |
| | | $("#app").addClass("Black_theme"); |
| | | this.getMenuTree(); |
| | | if (sessionStorage.getItem('changeliSelect')) { |
| | | this.$set(this, 'changeliSelect', sessionStorage.getItem('changeliSelect')) |
| | |
| | | this.changeliSelect = '%%'; |
| | | this.showFlag = null; |
| | | } |
| | | if (item.url == "Thematic") { |
| | | this.signInsertOpLog("综合展示", item.cnName) |
| | | if (item.url == "/projectController") { |
| | | this.signInsertOpLog("项目管理", item.cnName) |
| | | } |
| | | |
| | | this.changeSelectStyle = index; |
| | | sessionStorage.setItem('changeSelectStyle', index) |
| | | } else { |
| | | |
| | | |
| | | if (this.showFlag != index) { |
| | | this.showFlag = index; |
| | | |
| | | if (item.url == '/bankController') { |
| | | this.setLiClick(item, index) |
| | | } else { |
| | | this.showFlag = index; |
| | | if (item.url && item.children && item.children.length == 0) { |
| | | window.open(item.url) |
| | | } |
| | | } |
| | | |
| | | this.changeSelectStyle = index; |
| | | |
| | | |
| | | |
| | | } else { |
| | | this.showFlag = null; |
| | | } |
| | |
| | | } |
| | | }, |
| | | async setMenuTree(res) { |
| | | |
| | | for (var i in res) { |
| | | res[i].checkClass = res[i].css + '1'; |
| | | res[i].show = false; //控制显隐 |
| | |
| | | return value.isShow == 1; |
| | | }) |
| | | .filter((value) => { |
| | | if (value.pid == res[i].id) { |
| | | // console.log(JSON.stringify(value)) |
| | | } |
| | | return value.pid == res[i].id; |
| | | }); |
| | | |