校园-江西科技师范大学-前端
shuishen
2023-12-04 43af4903ffd20b241ea257bdbe45025790d4af2d
校区切换,左侧标签做处理
2 files modified
18 ■■■■■ changed files
src/components/leftNav/index.vue 15 ●●●●● patch | view | raw | blame | history
src/components/map/index.vue 3 ●●●●● patch | view | raw | blame | history
src/components/leftNav/index.vue
@@ -269,6 +269,21 @@
        initialize (campus) {
            var that = this
            this.leftNavData[0].flag = true
            this.leftNavData[0].img = this.leftNavData[0].checked
            this.leftNavData[5].flag = true
            this.leftNavData[5].img = this.leftNavData[5].checked
            this.leftNavBQ.setVisible(true)
            this.leftNavCR.setVisible(true)
            that.leftNavBQ.getSource().clear()
            that.leftNavDL.getSource().clear()
            that.leftNavSJ.getSource().clear()
            that.leftNavHD.getSource().clear()
            that.leftNavTC.getSource().clear()
            that.leftNavCR.getSource().clear()
            getTagList({ campus }).then((res) => {
                res.data.data.forEach((item, index) => {
                    let obj = {}
src/components/map/index.vue
@@ -160,6 +160,9 @@
                this.$nextTick(() => {
                    this.$refs.leftNav.initialize(newData)
                    this.$store.commit('SET_ARCNAVBARFLAG', false)
                    this.$store.commit('SET_SEARCHPOPUPFLAG', false)
                    this.$store.commit('SET_SEARCHPOPUPFLAG', false)
                })
            }
        }