From 57b36feeb74111aa477c8aac86feab7452a009c8 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 04 Dec 2023 18:08:39 +0800
Subject: [PATCH] 移动端部分接口加campus参数
---
src/router/page/index.js | 965 ++++++++++++++++++++++++-----------------------
src/api/pc/label.js | 60 +-
src/api/pc/orgnav/index.js | 16
src/api/mobile/ip/index.js | 20
src/components/mobilePopupOurAfter/index.vue | 13
src/api/mobile/buildsClock/buildsClock.js | 2
src/api/mobile/outIn/index.js | 17
src/api/mobile/orgnav/index.js | 19
src/components/mobilePopupOur/index.vue | 74 --
src/pcviews/orgnav/masses.vue | 2
src/api/mobile/hd/hd.js | 4
11 files changed, 588 insertions(+), 604 deletions(-)
diff --git a/src/api/mobile/buildsClock/buildsClock.js b/src/api/mobile/buildsClock/buildsClock.js
index a81e77d..5b9096d 100644
--- a/src/api/mobile/buildsClock/buildsClock.js
+++ b/src/api/mobile/buildsClock/buildsClock.js
@@ -4,7 +4,7 @@
* @Last Modified by: mikey.zhaopeng
* @Last Modified time: 2022-02-08 15:20:47
*/
-// 党群机构
+// 党政机构
import request from "@/router/axios";
export const getBuildClock = (params) => {
diff --git a/src/api/mobile/hd/hd.js b/src/api/mobile/hd/hd.js
index f2f03bd..26b8589 100644
--- a/src/api/mobile/hd/hd.js
+++ b/src/api/mobile/hd/hd.js
@@ -4,7 +4,7 @@
* @Last Modified by: liu
* @Last Modified time: 2022-01-14 17:35:21
*/
-// 党群机构
+// 党政机构
import request from "@/router/axios";
export const getActivity = (params) => {
@@ -19,4 +19,4 @@
url: `blade-hd/hd/detail?id=` + id,
method: "get",
});
-};
\ No newline at end of file
+};
diff --git a/src/api/mobile/ip/index.js b/src/api/mobile/ip/index.js
index 93f5a6e..c367e38 100644
--- a/src/api/mobile/ip/index.js
+++ b/src/api/mobile/ip/index.js
@@ -4,15 +4,15 @@
* @Last Modified by: liu
* @Last Modified time: 2021-12-15 16:43:48
*/
-// 党群机构
-import request from '@/router/axios'
+// 党政机构
+import request from "@/router/axios";
export const getIp = (params) => {
- return request({
- // url: 'https://apis.map.qq.com/ws/location/v1/ip',
- // let url = `https://apis.map.qq.com/ws/location/v1/ip?ip=${data.ip}&key=${data.key}`;
- url: `http://192.168.31.179:9898/ws/location/v1/ip?ip=${params.ip}&key=${params.key}`,
- method: 'get',
- // params: params
- })
-}
+ return request({
+ // url: 'https://apis.map.qq.com/ws/location/v1/ip',
+ // let url = `https://apis.map.qq.com/ws/location/v1/ip?ip=${data.ip}&key=${data.key}`;
+ url: `http://192.168.31.179:9898/ws/location/v1/ip?ip=${params.ip}&key=${params.key}`,
+ method: "get",
+ // params: params
+ });
+};
diff --git a/src/api/mobile/orgnav/index.js b/src/api/mobile/orgnav/index.js
index 1a86161..2c71999 100644
--- a/src/api/mobile/orgnav/index.js
+++ b/src/api/mobile/orgnav/index.js
@@ -4,13 +4,14 @@
* @Last Modified by: liu
* @Last Modified time: 2021-12-20 11:57:07
*/
-// 党群机构
-import request from '@/router/axios'
+// 党政机构
+import request from "@/router/axios";
-export const getList = (params) => { //获取党群机构
- return request({
- url: 'blade-mechanism/mechanism/list',
- method: 'get',
- params: params
- })
-}
+export const getList = (params) => {
+ //获取党政机构
+ return request({
+ url: "blade-mechanism/mechanism/list",
+ method: "get",
+ params: params,
+ });
+};
diff --git a/src/api/mobile/outIn/index.js b/src/api/mobile/outIn/index.js
index 96de938..b8c9005 100644
--- a/src/api/mobile/outIn/index.js
+++ b/src/api/mobile/outIn/index.js
@@ -5,12 +5,13 @@
* @Last Modified time: 2021-12-22 09:59:35
*/
// 出入口
-import request from '@/router/axios'
+import request from "@/router/axios";
-export const getListdoor = (params) => { //获取党群机构
- return request({
- url: 'blade-door/door/list',
- method: 'get',
- params: params
- })
-}
+export const getListdoor = (params) => {
+ //获取党政机构
+ return request({
+ url: "blade-door/door/list",
+ method: "get",
+ params: params,
+ });
+};
diff --git a/src/api/pc/label.js b/src/api/pc/label.js
index 2eb26bd..2107a15 100644
--- a/src/api/pc/label.js
+++ b/src/api/pc/label.js
@@ -4,41 +4,41 @@
* @Last Modified by: Morpheus
* @Last Modified time: 2022-04-29 16:53:53
*/
-// 党群机构
-import request from '@/router/axios'
+// 党政机构
+import request from "@/router/axios";
export const setlabel = (data) => {
- return request({
- url: 'tagging/tagging/save',
- method: 'post',
- data: data
- })
-}
+ return request({
+ url: "tagging/tagging/save",
+ method: "post",
+ data: data,
+ });
+};
export const uploadImg = (data) => {
- return request({
- url: 'blade-resource/oss/endpoint/put-files-talk',
- method: 'post',
- data: data,
- headers: {
- 'Content-Type': 'multipart/form-data'
- }
- })
-}
+ return request({
+ url: "blade-resource/oss/endpoint/put-files-talk",
+ method: "post",
+ data: data,
+ headers: {
+ "Content-Type": "multipart/form-data",
+ },
+ });
+};
export const getlabel = () => {
- return request({
- url: 'tagging/tagging/list',
- method: 'get'
- })
-}
+ return request({
+ url: "tagging/tagging/list",
+ method: "get",
+ });
+};
export const deletelabel = (id) => {
- return request({
- url: 'tagging/tagging/remove',
- method: 'post',
- params: {
- ids: id
- }
- })
-}
+ return request({
+ url: "tagging/tagging/remove",
+ method: "post",
+ params: {
+ ids: id,
+ },
+ });
+};
diff --git a/src/api/pc/orgnav/index.js b/src/api/pc/orgnav/index.js
index 0b8271c..dfa2c01 100644
--- a/src/api/pc/orgnav/index.js
+++ b/src/api/pc/orgnav/index.js
@@ -4,13 +4,13 @@
* @Last Modified by: Morpheus
* @Last Modified time: 2021-12-14 08:58:30
*/
-// 党群机构
-import request from '@/router/axios'
+// 党政机构
+import request from "@/router/axios";
export const getList = (params) => {
- return request({
- url: 'blade-mechanism/mechanism/list',
- method: 'get',
- params: params
- })
-}
+ return request({
+ url: "blade-mechanism/mechanism/list",
+ method: "get",
+ params: params,
+ });
+};
diff --git a/src/components/mobilePopupOur/index.vue b/src/components/mobilePopupOur/index.vue
index 600fd12..9ef552d 100644
--- a/src/components/mobilePopupOur/index.vue
+++ b/src/components/mobilePopupOur/index.vue
@@ -22,7 +22,7 @@
</div>
</div>
<div class="m_p_center">
- <div class="m_p_c_tableIn" style="padding-top: 10px" v-if="tabTable.length <= 0">
+ <div class="m_p_c_tableIn" style="padding-top: 10px">
<el-empty v-show="onlyData.length == 0" description="暂无数据"></el-empty>
<mobilePopupOurOnce v-for="(citem, cindex) in onlyData" :key="citem.name + cindex"
:ends="onlyData.length - 1 == cindex" :onceData="citem"></mobilePopupOurOnce>
@@ -32,21 +32,6 @@
</el-divider>
</div>
</div>
- <el-tabs v-model="activeName" @tab-click="handleClick" v-else>
- <el-tab-pane v-for="(item, index) in tabTable" :key="index" :label="item.title" :name="item.key">
- <div class="m_p_c_tableIn">
- <el-empty v-show="item.child.length == 0" description="暂无数据"></el-empty>
- <mobilePopupOurOnce v-for="(citem, cindex) in item.child" :key="citem.icons"
- :ends="item.child.length - 1 == cindex" :onceData="citem"></mobilePopupOurOnce>
- <!-- {{ citem.icon }} -->
- <div v-show="item.child.length != 0">
- <el-divider content-position="left">
- <i class="el-icon-s-promotion"></i> 暂无更多
- </el-divider>
- </div>
- </div>
- </el-tab-pane>
- </el-tabs>
</div>
</div>
</template>
@@ -60,7 +45,11 @@
computed: {
...mapGetters(['mBigPopup', 'popupOurOpenData'])
},
+
+ inject: ["mobileMapElement"],
+
name: 'mobilePopupOur',
+
data () {
return {
searchLabel: '',
@@ -68,9 +57,7 @@
choiceKey: '',
choiceMethod: '',
choiceData: [],
- tabTable: [],
fullscreenLoading: false,
- activeName: '1',
choiceMain: '',
onlyData: []
}
@@ -95,7 +82,7 @@
this.$store.commit('MSET_BIGPOPUPAFTER', false) // 关闭前一个弹窗
// console.log("请求对应街道接口", this.popupOurOpenData);
- this.getDataHeardDown()
+ this.getOutList(this.choiceKey)
},
watch: {
fullscreenLoading () {
@@ -105,11 +92,6 @@
}
},
methods: {
- handleClick (tab, event) {
- // 头下部标签
- this.fullscreenLoading = true
- this.getOutList(this.activeName, this.choiceKey)
- },
choiceIt (command) {
// 头部下拉菜单
this.fullscreenLoading = true
@@ -117,38 +99,15 @@
this.choiceKey = command.type
this.choiceMethod = command.method // 更改请求
// console.log("请求对应头部下拉菜单接口", command);
- this.getOutList(this.activeName, this.choiceKey)
+ this.getOutList(this.choiceKey)
},
+
closeBigPopup () {
this.$store.commit('MSET_BIGPOPUP', false)
},
- getDataHeardDown () {
- if (this.choiceMain == '活动') {
- // 不请求头部标签页数据
- this.getOutList(this.choiceKey)
- return
- }
- if (this.choiceMain == '机构单位') {
- this.getOutList('', this.choiceKey)
- return
- }
- // 获取头下部标签页
- getListarc().then((res) => {
- const title = []
- res.data.data.forEach((item) => {
- title.push({
- title: item.dictValue,
- flag: false,
- key: item.dictKey,
- child: []
- })
- })
- this.tabTable = title
- this.getOutList(this.activeName, this.choiceKey)
- })
- },
+
// 请求
- getOutList (campus, type) {
+ getOutList (type) {
// console.log(this.choiceMain, campus, type, "see");
const that = this
let d
@@ -164,16 +123,17 @@
) {
// 改变传入属性
d = {
- campus: campus,
lifetype: type
}
} else {
d = {
- campus: campus,
type: type
}
}
- this.choiceMethod(d).then((res) => {
+ this.choiceMethod({
+ ...d,
+ campus: this.mobileMapElement.campusValue
+ }).then((res) => {
const data = res.data.data
const outList = []
if (
@@ -270,12 +230,8 @@
})
}
+ that.onlyData = outList
that.fullscreenLoading = false
- if (this.choiceMain == '机构单位' || this.choiceMain == '活动') {
- that.onlyData = outList
- return
- }
- that.tabTable[+campus - 1].child = outList
})
},
// 搜索请求
diff --git a/src/components/mobilePopupOurAfter/index.vue b/src/components/mobilePopupOurAfter/index.vue
index 9f5df8a..496063f 100644
--- a/src/components/mobilePopupOurAfter/index.vue
+++ b/src/components/mobilePopupOurAfter/index.vue
@@ -74,9 +74,13 @@
import { getActivity } from '@/api/mobile/hd/hd' // 活动
export default {
name: 'mobilePopupOurAfter',
+
+ inject: ["mobileMapElement"],
+
computed: {
...mapGetters(['mBigPopupAfter'])
},
+
data () {
return {
choiceValue: '',
@@ -130,7 +134,7 @@
],
// 全部调用数据
openData1: [
- { name: '党群机构', type: 1, method: getList },
+ { name: '党政机构', type: 1, method: getList },
{ name: '职能部处', type: 2, method: getList },
{ name: '直属及附属单位', type: 3, method: getList },
{ name: '教学与科研机构', type: 4, method: getList },
@@ -140,10 +144,10 @@
{ name: '行政办公', type: 1, method: getChildNavList },
{ name: '教学科研', type: 2, method: getChildNavList },
{ name: '校园场馆', type: 3, method: getChildNavList },
- { name: '宿舍公寓', type: 4, method: getChildNavList },
+ { name: '校园宿舍', type: 4, method: getChildNavList },
{ name: '文化风景', type: 5, method: getChildNavList },
- { name: '家属住宅', type: 6, method: getChildNavList },
- { name: '其他楼宇', type: 7, method: getChildNavList }
+ // { name: '家属住宅', type: 6, method: getChildNavList },
+ // { name: '其他楼宇', type: 7, method: getChildNavList }
],
// openData3: [
// { name: "食堂餐厅", type: 1, method: getListlivingFacilitiesr },
@@ -192,7 +196,6 @@
methods: {
// 活动点击事件
openHDPopup (val) {
- console.log(val)
// 开启底部弹窗 关闭本弹窗
const d = {
state: true,
diff --git a/src/pcviews/orgnav/masses.vue b/src/pcviews/orgnav/masses.vue
index 8bb37d6..e7230e7 100644
--- a/src/pcviews/orgnav/masses.vue
+++ b/src/pcviews/orgnav/masses.vue
@@ -40,7 +40,7 @@
this.$store.commit('SET_ARCNAVBARFLAG', false)
}
- // 师大是党群机构-----经管是党政机构
+ // 师大是党政机构-----经管是党政机构
this.$store.commit('SET_ORGNAVBARTITLE', '党政机构')
this.$store.commit('SET_ORGNAVBARLIST', [])
diff --git a/src/router/page/index.js b/src/router/page/index.js
index 35db2a0..a48079e 100644
--- a/src/router/page/index.js
+++ b/src/router/page/index.js
@@ -5,496 +5,519 @@
* @Last Modified time: 2022-04-28 11:55:30
*/
-import Vue from 'vue'
-import VueRouter from 'vue-router'
-Vue.use(VueRouter)
+import Vue from "vue";
+import VueRouter from "vue-router";
+Vue.use(VueRouter);
-const large = () => import('../../pcviews/large/index.vue')
+const large = () => import("../../pcviews/large/index.vue");
-const pcLayout = () => import('../../pcLayout/index.vue')
-const pcHome = () => import('../../pcviews/home/index.vue')
-const pcMapnav = () => import('../../pcviews/mapnav/index.vue')
-const pcOrgnav = () => import('../../pcviews/orgnav/index.vue')
-const pcOrgnavMasses = () => import('../../pcviews/orgnav/masses.vue')
-const pcOrgnavOfc = () => import('../../pcviews/orgnav/ofc.vue')
-const pcOrgnavDirectly = () => import('../../pcviews/orgnav/directly.vue')
-const pcOrgnavTeaching = () => import('../../pcviews/orgnav/teaching.vue')
-const pcOrgnavRest = () => import('../../pcviews/orgnav/rest.vue')
-const pcArc = () => import('../../pcviews/arc/index.vue')
-const pcArcEdifact = () => import('../../pcviews/arc/edifact.vue')
-const pcArcTeaching = () => import('../../pcviews/arc/teaching.vue')
-const pcArcVenue = () => import('../../pcviews/arc/venue.vue')
-const pcArcDorm = () => import('../../pcviews/arc/dorm.vue')
-const pcArcCulture = () => import('../../pcviews/arc/culture.vue')
-const pcArcFamily = () => import('../../pcviews/arc/family.vue')
-const pcArcRest = () => import('../../pcviews/arc/rest.vue')
-const pcService = () => import('../../pcviews/service/index.vue')
-const pcServiceCanteen = () => import('../../pcviews/service/canteen.vue')
-const pcServiceSupermarket = () => import('../../pcviews/service/supermarket.vue')
-const pcServiceMedical = () => import('../../pcviews/service/medical.vue')
-const pcServiceExpress = () => import('../../pcviews/service/express.vue')
-const pcServiceShowers = () => import('../../pcviews/service/showers.vue')
-const pcServiceTransfer = () => import('../../pcviews/service/transfer.vue')
-const pcServiceCopy = () => import('../../pcviews/service/copy.vue')
-const pcServiceBank = () => import('../../pcviews/service/bank.vue')
-const pcServiceAed = () => import('../../pcviews/service/aed.vue')
-const pcServiceService = () => import('../../pcviews/service/service.vue')
-const pcServicePark = () => import('../../pcviews/service/park.vue')
-const pcServiceAlleyway = () => import('../../pcviews/service/alleyway.vue')
-const pcAllquery = () => import('../../pcviews/allquery/index.vue')
-const pcCampusnav = () => import('../../pcviews/campusnav/index.vue')
-const pcCampusnavi = () => import('../../pcviews/campusnavi/index.vue')
+const pcLayout = () => import("../../pcLayout/index.vue");
+const pcHome = () => import("../../pcviews/home/index.vue");
+const pcMapnav = () => import("../../pcviews/mapnav/index.vue");
+const pcOrgnav = () => import("../../pcviews/orgnav/index.vue");
+const pcOrgnavMasses = () => import("../../pcviews/orgnav/masses.vue");
+const pcOrgnavOfc = () => import("../../pcviews/orgnav/ofc.vue");
+const pcOrgnavDirectly = () => import("../../pcviews/orgnav/directly.vue");
+const pcOrgnavTeaching = () => import("../../pcviews/orgnav/teaching.vue");
+const pcOrgnavRest = () => import("../../pcviews/orgnav/rest.vue");
+const pcArc = () => import("../../pcviews/arc/index.vue");
+const pcArcEdifact = () => import("../../pcviews/arc/edifact.vue");
+const pcArcTeaching = () => import("../../pcviews/arc/teaching.vue");
+const pcArcVenue = () => import("../../pcviews/arc/venue.vue");
+const pcArcDorm = () => import("../../pcviews/arc/dorm.vue");
+const pcArcCulture = () => import("../../pcviews/arc/culture.vue");
+const pcArcFamily = () => import("../../pcviews/arc/family.vue");
+const pcArcRest = () => import("../../pcviews/arc/rest.vue");
+const pcService = () => import("../../pcviews/service/index.vue");
+const pcServiceCanteen = () => import("../../pcviews/service/canteen.vue");
+const pcServiceSupermarket = () =>
+ import("../../pcviews/service/supermarket.vue");
+const pcServiceMedical = () => import("../../pcviews/service/medical.vue");
+const pcServiceExpress = () => import("../../pcviews/service/express.vue");
+const pcServiceShowers = () => import("../../pcviews/service/showers.vue");
+const pcServiceTransfer = () => import("../../pcviews/service/transfer.vue");
+const pcServiceCopy = () => import("../../pcviews/service/copy.vue");
+const pcServiceBank = () => import("../../pcviews/service/bank.vue");
+const pcServiceAed = () => import("../../pcviews/service/aed.vue");
+const pcServiceService = () => import("../../pcviews/service/service.vue");
+const pcServicePark = () => import("../../pcviews/service/park.vue");
+const pcServiceAlleyway = () => import("../../pcviews/service/alleyway.vue");
+const pcAllquery = () => import("../../pcviews/allquery/index.vue");
+const pcCampusnav = () => import("../../pcviews/campusnav/index.vue");
+const pcCampusnavi = () => import("../../pcviews/campusnavi/index.vue");
-const pcSpecialmap = () => import('../../pcviews/specialmap/index.vue')
-const pcSpecialmapCelebrate = () => import('../../pcviews/specialmap/celebrate.vue')
-const pcSpecialmapWelcome = () => import('../../pcviews/specialmap/welcome.vue')
+const pcSpecialmap = () => import("../../pcviews/specialmap/index.vue");
+const pcSpecialmapCelebrate = () =>
+ import("../../pcviews/specialmap/celebrate.vue");
+const pcSpecialmapWelcome = () =>
+ import("../../pcviews/specialmap/welcome.vue");
-const pcTool = () => import('../../pcviews/tool/index.vue')
-const pcToolDownload = () => import('../../pcviews/tool/download.vue')
-const pcToolSign = () => import('../../pcviews/tool/sign.vue')
-const pcToolRanging = () => import('../../pcviews/tool/ranging.vue')
-const pcToolArea = () => import('../../pcviews/tool/area.vue')
-const pcToolLayerManage = () => import('../../pcviews/tool/layer-manage.vue')
+const pcTool = () => import("../../pcviews/tool/index.vue");
+const pcToolDownload = () => import("../../pcviews/tool/download.vue");
+const pcToolSign = () => import("../../pcviews/tool/sign.vue");
+const pcToolRanging = () => import("../../pcviews/tool/ranging.vue");
+const pcToolArea = () => import("../../pcviews/tool/area.vue");
+const pcToolLayerManage = () => import("../../pcviews/tool/layer-manage.vue");
-const pcTechnique = () => import('../../pcviews/technique/index.vue')
-const pcTechniqueMapData = () => import('../../pcviews/technique/map.vue')
-const pcTechniqueVideo = () => import('../../pcviews/technique/video.vue')
-const pcTechniqueData = () => import('../../pcviews/technique/data.vue')
-const pcTechniqueTurf = () => import('../../pcviews/technique/turf.vue')
-const pcTechniqueSpace = () => import('../../pcviews/technique/space.vue')
-const pcTechniqueGraph = () => import('../../pcviews/technique/graph.vue')
-const pcTechniquePath = () => import('../../pcviews/technique/path.vue')
-const pcHomepage = () => import('../../pcviews/homepage/index.vue')
-const pcLogin = () => import('../../pcviews/Login/index.vue')
+const pcTechnique = () => import("../../pcviews/technique/index.vue");
+const pcTechniqueMapData = () => import("../../pcviews/technique/map.vue");
+const pcTechniqueVideo = () => import("../../pcviews/technique/video.vue");
+const pcTechniqueData = () => import("../../pcviews/technique/data.vue");
+const pcTechniqueTurf = () => import("../../pcviews/technique/turf.vue");
+const pcTechniqueSpace = () => import("../../pcviews/technique/space.vue");
+const pcTechniqueGraph = () => import("../../pcviews/technique/graph.vue");
+const pcTechniquePath = () => import("../../pcviews/technique/path.vue");
+const pcHomepage = () => import("../../pcviews/homepage/index.vue");
+const pcLogin = () => import("../../pcviews/Login/index.vue");
const routes = [
- // 大屏页面
- // {
- // path: '/large',
- // meta: {
- // title: '大屏页面'
- // },
- // component: large
- // },
- {
- path: '/homepage',
- meta: {
- title: '大屏页面'
- },
- component: pcHomepage
+ // 大屏页面
+ // {
+ // path: '/large',
+ // meta: {
+ // title: '大屏页面'
+ // },
+ // component: large
+ // },
+ {
+ path: "/homepage",
+ meta: {
+ title: "大屏页面",
},
- {
- path: '/login',
- name: 'login',
- component: pcLogin,
- meta: {
- title: '登录页',
- isAuth: false
- }
+ component: pcHomepage,
+ },
+ {
+ path: "/login",
+ name: "login",
+ component: pcLogin,
+ meta: {
+ title: "登录页",
+ isAuth: false,
},
- // pc端
- {
- path: '/pcLayout',
- redirect: '/pcLayout/default',
+ },
+ // pc端
+ {
+ path: "/pcLayout",
+ redirect: "/pcLayout/default",
+ meta: {
+ title: "导航菜单",
+ },
+ component: pcLayout,
+ children: [
+ {
+ path: "default",
+ component: pcHome,
meta: {
- title: '导航菜单'
+ title: "系统首页",
},
- component: pcLayout,
- children: [{
- path: 'default',
- component: pcHome,
+ children: [
+ {
+ path: "mapnav",
+ component: pcMapnav,
meta: {
- title: '系统首页'
+ title: "地图导览",
},
- children: [{
- path: 'mapnav',
- component: pcMapnav,
- meta: {
- title: '地图导览'
- }
- },
- {
- path: 'orgnav',
- component: pcOrgnav,
- meta: {
- title: '校园内机构导览'
- },
- children: [{
- path: 'masses',
- component: pcOrgnavMasses,
- meta: {
- title: '党群机构'
- }
- },
- {
- path: 'ofc',
- component: pcOrgnavOfc,
- meta: {
- title: '职能部处'
- }
- }, {
- path: 'directly',
- component: pcOrgnavDirectly,
- meta: {
- title: '直属及附属单位'
- }
- },
- {
- path: 'teaching',
- component: pcOrgnavTeaching,
- meta: {
- title: '教学与科研机构'
- }
- }, {
- path: 'rest',
- component: pcOrgnavRest,
- meta: {
- title: '其他机构'
- }
- }
- ]
- },
- {
- path: 'arc',
- component: pcArc,
- meta: {
- title: '校园内建筑'
- },
- children: [{
- path: 'edifact',
- component: pcArcEdifact,
- meta: {
- title: '行政办公'
- }
- },
- {
- path: 'teaching',
- component: pcArcTeaching,
- meta: {
- title: '教学科研'
- }
- }, {
- path: 'venue',
- component: pcArcVenue,
- meta: {
- title: '校园场馆'
- }
- },
- {
- path: 'dorm',
- component: pcArcDorm,
- meta: {
- title: '校园宿舍'
- }
- }, {
- path: 'culture',
- component: pcArcCulture,
- meta: {
- title: '文化风景'
- }
- },
- {
- path: 'family',
- component: pcArcFamily,
- meta: {
- title: '家属住宅'
- }
- }, {
- path: 'rest',
- component: pcArcRest,
- meta: {
- title: '主要楼宇'
- }
- }
- ]
- },
- {
- path: 'service',
- component: pcService,
- meta: {
- title: '生活服务设施'
- },
- children: [{
- path: 'canteen',
- component: pcServiceCanteen,
- meta: {
- title: '食堂餐厅'
- }
- },
- {
- path: 'supermarket',
- component: pcServiceSupermarket,
- meta: {
- title: '购物超市'
- }
- }, {
- path: 'medical',
- component: pcServiceMedical,
- meta: {
- title: '校园内医疗'
- }
- },
- {
- path: 'express',
- component: pcServiceExpress,
- meta: {
- title: '邮寄快递'
- }
- }, {
- path: 'showers',
- component: pcServiceShowers,
- meta: {
- title: '校园浴室'
- }
- },
- {
- path: 'transfer',
- component: pcServiceTransfer,
- meta: {
- title: '圈存机'
- }
- },
- {
- path: 'copy',
- component: pcServiceCopy,
- meta: {
- title: '打字复印'
- }
- },
- {
- path: 'bank',
- component: pcServiceBank,
- meta: {
- title: '银行网点'
- }
- }, {
- path: 'aed',
- component: pcServiceAed,
- meta: {
- title: 'AED'
- }
- },
- {
- path: 'service',
- component: pcServiceService,
- meta: {
- title: '通信营业厅'
- }
- }, {
- path: 'park',
- component: pcServicePark,
- meta: {
- title: '停车场'
- }
- },
- {
- path: 'alleyway',
- component: pcServiceAlleyway,
- meta: {
- title: '出入口'
- }
- }
- ]
- },
- {
- path: 'allquery',
- component: pcAllquery,
- meta: {
- title: '综合查询'
- }
- },
- {
- path: 'campusnav',
- component: pcCampusnav,
- meta: {
- title: '校园导览'
- }
- },
- {
- path: 'campusnavi',
- component: pcCampusnavi,
- meta: {
- title: '校园导航'
- }
- },
- {
- path: 'specialmap',
- component: pcSpecialmap,
- meta: {
- title: '专题地图'
- },
- children: [{
- path: 'celebrate',
- component: pcSpecialmapCelebrate,
- meta: {
- title: '校园庆'
- }
- },
- {
- path: 'welcome',
- component: pcSpecialmapWelcome,
- meta: {
- title: '校园迎新'
- }
- }
- ]
- },
- {
- path: 'tool',
- component: pcTool,
- meta: {
- title: '工具'
- },
- children: [{
- path: 'download',
- component: pcToolDownload,
- meta: {
- title: '地图下载'
- }
- }, {
- path: 'sign',
- component: pcToolSign,
- meta: {
- title: '地图标记'
- }
- },
- {
- path: 'ranging',
- component: pcToolRanging,
- meta: {
- title: '地图测距'
- }
- },
- {
- path: 'area',
- component: pcToolArea,
- meta: {
- title: '地图测面'
- }
- },
- {
- path: 'layer-manage',
- component: pcToolLayerManage,
- meta: {
- title: '图层管理'
- }
- }
- ]
- },
- {
- path: 'technique',
- component: pcTechnique,
- meta: {
- title: '创新'
- },
- children: [{
- path: 'map',
- component: pcTechniqueMapData,
- meta: {
- title: '地图数据加载'
- }
- }, {
- path: 'video',
- component: pcTechniqueVideo,
- meta: {
- title: '视频融合'
- }
- },
- {
- path: 'data',
- component: pcTechniqueData,
- meta: {
- title: '数据动画和特效'
- }
- },
- {
- path: 'turf',
- component: pcTechniqueTurf,
- meta: {
- title: 'turf计算'
- }
- },
- {
- path: 'space',
- component: pcTechniqueSpace,
- meta: {
- title: '三维空间分析'
- }
- },
- {
- path: 'graph',
- component: pcTechniqueGraph,
- meta: {
- title: '第三方图形库的集成'
- }
- },
- {
- path: 'path',
- component: pcTechniquePath,
- meta: {
- title: '路径漫游和定点巡航'
- }
- }
- ]
- }
-
- ]
- }]
- },
- // 手机端
- {
- path: '/mobileLayout',
- redirect: '/mobileLayout/default',
- meta: {
- title: '导航菜单'
- },
- component: resolve => require(['../../mobileLayout/index.vue'], resolve),
- children: [{
- path: 'default',
- component: resolve => require(['../../mobileviews/home/index.vue'], resolve),
+ },
+ {
+ path: "orgnav",
+ component: pcOrgnav,
meta: {
- title: '系统首页'
- }
- }]
+ title: "校园内机构导览",
+ },
+ children: [
+ {
+ path: "masses",
+ component: pcOrgnavMasses,
+ meta: {
+ title: "党政机构",
+ },
+ },
+ {
+ path: "ofc",
+ component: pcOrgnavOfc,
+ meta: {
+ title: "职能部处",
+ },
+ },
+ {
+ path: "directly",
+ component: pcOrgnavDirectly,
+ meta: {
+ title: "直属及附属单位",
+ },
+ },
+ {
+ path: "teaching",
+ component: pcOrgnavTeaching,
+ meta: {
+ title: "教学与科研机构",
+ },
+ },
+ {
+ path: "rest",
+ component: pcOrgnavRest,
+ meta: {
+ title: "其他机构",
+ },
+ },
+ ],
+ },
+ {
+ path: "arc",
+ component: pcArc,
+ meta: {
+ title: "校园内建筑",
+ },
+ children: [
+ {
+ path: "edifact",
+ component: pcArcEdifact,
+ meta: {
+ title: "行政办公",
+ },
+ },
+ {
+ path: "teaching",
+ component: pcArcTeaching,
+ meta: {
+ title: "教学科研",
+ },
+ },
+ {
+ path: "venue",
+ component: pcArcVenue,
+ meta: {
+ title: "校园场馆",
+ },
+ },
+ {
+ path: "dorm",
+ component: pcArcDorm,
+ meta: {
+ title: "校园宿舍",
+ },
+ },
+ {
+ path: "culture",
+ component: pcArcCulture,
+ meta: {
+ title: "文化风景",
+ },
+ },
+ {
+ path: "family",
+ component: pcArcFamily,
+ meta: {
+ title: "家属住宅",
+ },
+ },
+ {
+ path: "rest",
+ component: pcArcRest,
+ meta: {
+ title: "主要楼宇",
+ },
+ },
+ ],
+ },
+ {
+ path: "service",
+ component: pcService,
+ meta: {
+ title: "生活服务设施",
+ },
+ children: [
+ {
+ path: "canteen",
+ component: pcServiceCanteen,
+ meta: {
+ title: "食堂餐厅",
+ },
+ },
+ {
+ path: "supermarket",
+ component: pcServiceSupermarket,
+ meta: {
+ title: "购物超市",
+ },
+ },
+ {
+ path: "medical",
+ component: pcServiceMedical,
+ meta: {
+ title: "校园内医疗",
+ },
+ },
+ {
+ path: "express",
+ component: pcServiceExpress,
+ meta: {
+ title: "邮寄快递",
+ },
+ },
+ {
+ path: "showers",
+ component: pcServiceShowers,
+ meta: {
+ title: "校园浴室",
+ },
+ },
+ {
+ path: "transfer",
+ component: pcServiceTransfer,
+ meta: {
+ title: "圈存机",
+ },
+ },
+ {
+ path: "copy",
+ component: pcServiceCopy,
+ meta: {
+ title: "打字复印",
+ },
+ },
+ {
+ path: "bank",
+ component: pcServiceBank,
+ meta: {
+ title: "银行网点",
+ },
+ },
+ {
+ path: "aed",
+ component: pcServiceAed,
+ meta: {
+ title: "AED",
+ },
+ },
+ {
+ path: "service",
+ component: pcServiceService,
+ meta: {
+ title: "通信营业厅",
+ },
+ },
+ {
+ path: "park",
+ component: pcServicePark,
+ meta: {
+ title: "停车场",
+ },
+ },
+ {
+ path: "alleyway",
+ component: pcServiceAlleyway,
+ meta: {
+ title: "出入口",
+ },
+ },
+ ],
+ },
+ {
+ path: "allquery",
+ component: pcAllquery,
+ meta: {
+ title: "综合查询",
+ },
+ },
+ {
+ path: "campusnav",
+ component: pcCampusnav,
+ meta: {
+ title: "校园导览",
+ },
+ },
+ {
+ path: "campusnavi",
+ component: pcCampusnavi,
+ meta: {
+ title: "校园导航",
+ },
+ },
+ {
+ path: "specialmap",
+ component: pcSpecialmap,
+ meta: {
+ title: "专题地图",
+ },
+ children: [
+ {
+ path: "celebrate",
+ component: pcSpecialmapCelebrate,
+ meta: {
+ title: "校园庆",
+ },
+ },
+ {
+ path: "welcome",
+ component: pcSpecialmapWelcome,
+ meta: {
+ title: "校园迎新",
+ },
+ },
+ ],
+ },
+ {
+ path: "tool",
+ component: pcTool,
+ meta: {
+ title: "工具",
+ },
+ children: [
+ {
+ path: "download",
+ component: pcToolDownload,
+ meta: {
+ title: "地图下载",
+ },
+ },
+ {
+ path: "sign",
+ component: pcToolSign,
+ meta: {
+ title: "地图标记",
+ },
+ },
+ {
+ path: "ranging",
+ component: pcToolRanging,
+ meta: {
+ title: "地图测距",
+ },
+ },
+ {
+ path: "area",
+ component: pcToolArea,
+ meta: {
+ title: "地图测面",
+ },
+ },
+ {
+ path: "layer-manage",
+ component: pcToolLayerManage,
+ meta: {
+ title: "图层管理",
+ },
+ },
+ ],
+ },
+ {
+ path: "technique",
+ component: pcTechnique,
+ meta: {
+ title: "创新",
+ },
+ children: [
+ {
+ path: "map",
+ component: pcTechniqueMapData,
+ meta: {
+ title: "地图数据加载",
+ },
+ },
+ {
+ path: "video",
+ component: pcTechniqueVideo,
+ meta: {
+ title: "视频融合",
+ },
+ },
+ {
+ path: "data",
+ component: pcTechniqueData,
+ meta: {
+ title: "数据动画和特效",
+ },
+ },
+ {
+ path: "turf",
+ component: pcTechniqueTurf,
+ meta: {
+ title: "turf计算",
+ },
+ },
+ {
+ path: "space",
+ component: pcTechniqueSpace,
+ meta: {
+ title: "三维空间分析",
+ },
+ },
+ {
+ path: "graph",
+ component: pcTechniqueGraph,
+ meta: {
+ title: "第三方图形库的集成",
+ },
+ },
+ {
+ path: "path",
+ component: pcTechniquePath,
+ meta: {
+ title: "路径漫游和定点巡航",
+ },
+ },
+ ],
+ },
+ ],
+ },
+ ],
+ },
+ // 手机端
+ {
+ path: "/mobileLayout",
+ redirect: "/mobileLayout/default",
+ meta: {
+ title: "导航菜单",
},
- {
- path: '/403',
- component: () =>
- import(/* webpackChunkName: "page" */ '@/components/error-page/403'),
- name: '403',
+ component: (resolve) => require(["../../mobileLayout/index.vue"], resolve),
+ children: [
+ {
+ path: "default",
+ component: (resolve) =>
+ require(["../../mobileviews/home/index.vue"], resolve),
meta: {
- title: '403页面'
- }
+ title: "系统首页",
+ },
+ },
+ ],
+ },
+ {
+ path: "/403",
+ component: () =>
+ import(/* webpackChunkName: "page" */ "@/components/error-page/403"),
+ name: "403",
+ meta: {
+ title: "403页面",
},
- {
- path: '/404',
- component: () =>
- import(/* webpackChunkName: "page" */ '@/components/error-page/404'),
- name: '404',
- meta: {
- title: '404页面'
- }
-
+ },
+ {
+ path: "/404",
+ component: () =>
+ import(/* webpackChunkName: "page" */ "@/components/error-page/404"),
+ name: "404",
+ meta: {
+ title: "404页面",
},
- {
- path: '/500',
- component: () =>
- import(/* webpackChunkName: "page" */ '@/components/error-page/500'),
- name: '500',
- meta: {
- title: '500页面'
- }
+ },
+ {
+ path: "/500",
+ component: () =>
+ import(/* webpackChunkName: "page" */ "@/components/error-page/500"),
+ name: "500",
+ meta: {
+ title: "500页面",
},
- {
- path: '*',
- redirect: '/404'
- }
-
-]
+ },
+ {
+ path: "*",
+ redirect: "/404",
+ },
+];
const router = new VueRouter({
- base: process.env.BASE_URL,
- routes
-})
+ base: process.env.BASE_URL,
+ routes,
+});
-export default router
+export default router;
--
Gitblit v1.9.3