| | |
| | | <img class="close deblurring" :src="publicPath + 'img/navicon/close.png'" alt @click="closeModel" /> |
| | | </template> |
| | | <template slot="public-box-content"> |
| | | <div class="tab" v-show="false"> |
| | | <!-- <div class="tab"> |
| | | <ul> |
| | | <li :class="{ on: item.flag }" v-for="(item, index) in titleList" :key="index" |
| | | @click="topNavClick(item, index)">{{ item.title }}</li> |
| | | </ul> |
| | | </div> |
| | | </div> --> |
| | | <ul> |
| | | <li v-for="(item, index) in itemNavList" :key="index" @click="mapPopup(item)"> |
| | | <img :src="item.icon" alt /> |
| | |
| | | import { Icon, Style, Fill, Text, Stroke } from 'ol/style.js' |
| | | |
| | | let currentOrgLayer = null |
| | | let time |
| | | |
| | | export default { |
| | | name: 'ArcNavBar', |
| | |
| | | titleList: [] |
| | | } |
| | | }, |
| | | |
| | | inject: ["layoutElement"], |
| | | |
| | | props: {}, |
| | | |
| | | computed: { |
| | | ...mapGetters([ |
| | | 'popupBgUrl', |
| | |
| | | 'twoOrThree' |
| | | ]) |
| | | }, |
| | | |
| | | created () { |
| | | }, |
| | | |
| | | mounted () { |
| | | this.$nextTick(() => { |
| | | currentOrgLayer = new VectorLayer({ |
| | |
| | | this.map2D.addLayer(currentOrgLayer) |
| | | }) |
| | | }, |
| | | |
| | | watch: { |
| | | arcNavBarCode: { |
| | | immediate: true, |
| | | handler (newCode, oldCode) { |
| | | this.titleList = [] |
| | | getList().then((res) => { |
| | | res.data.data.forEach((item) => { |
| | | this.titleList.push({ |
| | | title: item.dictValue, |
| | | flag: false, |
| | | key: item.dictKey |
| | | }) |
| | | }) |
| | | // this.titleList = [] |
| | | // getList().then((res) => { |
| | | // res.data.data.forEach((item) => { |
| | | // this.titleList.push({ |
| | | // title: item.dictValue, |
| | | // flag: false, |
| | | // key: item.dictKey |
| | | // }) |
| | | // }) |
| | | |
| | | this.titleList[0].flag = true |
| | | // this.titleList[0].flag = true |
| | | |
| | | this.getChilsNavs(this.titleList[0].key) |
| | | }) |
| | | |
| | | // }) |
| | | |
| | | time = setInterval(() => { |
| | | if (this.layoutElement.campusValue) { |
| | | this.getChilsNavs(this.layoutElement.campusValue) |
| | | clearInterval(time) |
| | | } |
| | | }, 100) |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | coordinate (item) { |
| | |
| | | |
| | | this.itemNavList = [] |
| | | |
| | | currentOrgLayer.getSource().clear() |
| | | if (currentOrgLayer) { |
| | | currentOrgLayer.getSource().clear() |
| | | } else { |
| | | currentOrgLayer = new VectorLayer({ |
| | | // 图标图层 |
| | | zIndex: 9, |
| | | source: new VectorSource(), |
| | | }) |
| | | this.map2D.addLayer(currentOrgLayer) |
| | | } |
| | | |
| | | getChildNavList({ campus: campus, type: this.arcNavBarCode }).then( |
| | | (res) => { |
| | |
| | | }) |
| | | }, |
| | | |
| | | inject: ["layoutElement"], |
| | | watch: { |
| | | calenderShow: { |
| | | handler (newData, oldData) { |
| | |
| | | } |
| | | }, |
| | | immediate: true |
| | | }, |
| | | |
| | | 'layoutElement.campusValue': { |
| | | handler (newData) { |
| | | console.log(newData, 99911) |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | } |
| | | }, |
| | | |
| | | initialize () { |
| | | initialize (campus) { |
| | | var that = this |
| | | |
| | | getTagList().then((res) => { |
| | | getTagList({ campus }).then((res) => { |
| | | res.data.data.forEach((item, index) => { |
| | | let obj = {} |
| | | if (item.x && item.x != '') { |
| | |
| | | }) |
| | | }) |
| | | |
| | | getWayList().then((res) => { |
| | | getWayList({ campus }).then((res) => { |
| | | res.data.data.forEach((item) => { |
| | | let obj = {} |
| | | if (item.x && item.x != '') { |
| | |
| | | // }) |
| | | // }) |
| | | |
| | | getSceneList().then((res) => { |
| | | getSceneList({ campus }).then((res) => { |
| | | res.data.data.records.forEach((item) => { |
| | | let obj = {} |
| | | if (item.x && item.x != '') { |
| | |
| | | }) |
| | | }) |
| | | |
| | | getLifeList({ lifetype: 11 }).then((res) => { |
| | | getLifeList({ lifetype: 11, campus }).then((res) => { |
| | | res.data.data.forEach((item) => { |
| | | let obj = {} |
| | | if (item.x && item.x != '') { |
| | |
| | | }) |
| | | }) |
| | | |
| | | getLifeList({ lifetype: 12 }).then((res) => { |
| | | getLifeList({ lifetype: 12, campus }).then((res) => { |
| | | res.data.data.forEach((item) => { |
| | | let obj = {} |
| | | if (item.x && item.x != '') { |
| | |
| | | 'layoutElement.campusValue': { |
| | | handler (newData) { |
| | | this.campusCut(newData) |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.leftNav.initialize(newData) |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | |
| | | <img class="close deblurring" :src="publicPath + 'img/navicon/close.png'" alt @click="closeModel" /> |
| | | </template> |
| | | <template slot="public-box-content"> |
| | | <div class="tab" v-show="false"> |
| | | <!-- <div class="tab" v-show="false"> |
| | | <ul> |
| | | <li :class="{ on: item.flag }" v-for="(item, index) in titleList" :key="index" |
| | | @click="topNavClick(item, index)">{{ item.title }}</li> |
| | | </ul> |
| | | </div> |
| | | </div> --> |
| | | <ul> |
| | | <li v-for="(item, index) in itemNavList" :key="index" @click="mapPopup(item.details)"> |
| | | <img :src="item.icon" alt /> |
| | |
| | | itemNavList: [] |
| | | } |
| | | }, |
| | | |
| | | inject: ["layoutElement"], |
| | | |
| | | props: { |
| | | title: { |
| | | type: String |
| | |
| | | ]) |
| | | }, |
| | | created () { |
| | | this.titleList = [] |
| | | // this.titleList = [] |
| | | // 三江社区//"土木楼"//"科学园"//"黄河路"//"红旗社区" |
| | | getList().then((res) => { |
| | | res.data.data.forEach((item) => { |
| | | // console.log(item, "see"); |
| | | this.titleList.push({ |
| | | title: item.dictValue, |
| | | flag: false, |
| | | key: item.dictKey |
| | | }) |
| | | }) |
| | | // getList().then((res) => { |
| | | // res.data.data.forEach((item) => { |
| | | // // console.log(item, "see"); |
| | | // this.titleList.push({ |
| | | // title: item.dictValue, |
| | | // flag: false, |
| | | // key: item.dictKey |
| | | // }) |
| | | // }) |
| | | |
| | | this.titleList[0].flag = true |
| | | // this.titleList[0].flag = true |
| | | |
| | | this.getChilsNavs(this.titleList[0].key) |
| | | }) |
| | | // }) |
| | | }, |
| | | watch: { |
| | | twoOrThree: { |
| | |
| | | immediate: true |
| | | } |
| | | }, |
| | | mounted () { }, |
| | | mounted () { |
| | | |
| | | this.getChilsNavs(this.layoutElement.campusValue) |
| | | |
| | | }, |
| | | methods: { |
| | | coordinate (item) { |
| | | const arr = item.split(',') |
| | |
| | | <!-- |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-11-22 10:26:22 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-12-04 15:32:25 |
| | | * @FilePath: \sd-jg-school-web-ksd\src\pcviews\orgnav\directly.vue |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2023 by shuishen, All Rights Reserved. |
| | | --> |
| | | <template> |
| | | <div></div> |
| | | </template> |
| | |
| | | list: [] |
| | | } |
| | | }, |
| | | |
| | | inject: ["layoutElement"], |
| | | |
| | | computed: { |
| | | ...mapGetters([ |
| | | // 校园内导航的显示关闭 |
| | |
| | | |
| | | this.$store.commit('SET_ORGNAVBARFLAG', true) |
| | | |
| | | getList({ type: 3 }).then((res) => { |
| | | getList({ type: 3, campus: this.layoutElement.campusValue }).then((res) => { |
| | | res.data.data.records.forEach((item) => { |
| | | this.list.push({ |
| | | navTitle: item.mechanismname, |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-29 09:04:54 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2022-09-09 15:39:12 |
| | | * @FilePath: \smart-campus\src\pcviews\orgnav\masses.vue |
| | | * @LastEditTime: 2023-12-04 15:33:04 |
| | | * @FilePath: \sd-jg-school-web-ksd\src\pcviews\orgnav\masses.vue |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. |
| | |
| | | list: [] |
| | | } |
| | | }, |
| | | |
| | | inject: ["layoutElement"], |
| | | |
| | | computed: { |
| | | ...mapGetters([ |
| | | // 校园内导航的显示关闭 |
| | |
| | | |
| | | this.$store.commit('SET_ORGNAVBARFLAG', true) |
| | | |
| | | getList({ type: 1 }).then((res) => { |
| | | getList({ type: 1, campus: this.layoutElement.campusValue }).then((res) => { |
| | | res.data.data.records.forEach((item) => { |
| | | this.list.push({ |
| | | navTitle: item.mechanismname, |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-29 09:04:54 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2022-08-30 14:21:58 |
| | | * @FilePath: \smart-campus\src\pcviews\orgnav\ofc.vue |
| | | * @LastEditTime: 2023-12-04 15:33:30 |
| | | * @FilePath: \sd-jg-school-web-ksd\src\pcviews\orgnav\ofc.vue |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. |
| | |
| | | list: [] |
| | | } |
| | | }, |
| | | |
| | | inject: ["layoutElement"], |
| | | |
| | | computed: { |
| | | ...mapGetters([ |
| | | // 校园内导航的显示关闭 |
| | |
| | | |
| | | this.$store.commit('SET_ORGNAVBARFLAG', true) |
| | | |
| | | getList({ type: 2 }).then((res) => { |
| | | getList({ type: 2, campus: this.layoutElement.campusValue }).then((res) => { |
| | | res.data.data.records.forEach((item) => { |
| | | this.list.push({ |
| | | navTitle: item.mechanismname, |
| | |
| | | list: [] |
| | | } |
| | | }, |
| | | |
| | | inject: ["layoutElement"], |
| | | |
| | | computed: { |
| | | ...mapGetters([ |
| | | // 校园内导航的显示关闭 |
| | |
| | | |
| | | this.$store.commit('SET_ORGNAVBARFLAG', true) |
| | | |
| | | getList({ type: 5 }).then((res) => { |
| | | getList({ type: 5, campus: this.layoutElement.campusValue }).then((res) => { |
| | | res.data.data.records.forEach((item) => { |
| | | this.list.push({ |
| | | navTitle: item.mechanismname, |
| | |
| | | list: [] |
| | | } |
| | | }, |
| | | |
| | | inject: ["layoutElement"], |
| | | |
| | | computed: { |
| | | ...mapGetters([ |
| | | // 校园内导航的显示关闭 |
| | |
| | | |
| | | this.$store.commit('SET_ORGNAVBARFLAG', true) |
| | | |
| | | getList({ type: 4 }).then((res) => { |
| | | getList({ type: 4, campus: this.layoutElement.campusValue }).then((res) => { |
| | | res.data.data.records.forEach((item) => { |
| | | this.list.push({ |
| | | navTitle: item.mechanismname, |