diff --git a/.env.localhost b/.env.localhost new file mode 100644 index 000000000..9c8490046 --- /dev/null +++ b/.env.localhost @@ -0,0 +1,19 @@ +NODE_ENV=development + +# VUE_APP_API_SERVER = https://epmet-preview.elinkservice.cn/api +# VUE_APP_API_SERVER = http://192.168.1.60:8080/api +VUE_APP_API_SERVER = http://localhost:8080/api +# VUE_APP_API_SERVER = http://219.146.91.110:30801/api219.146.91.110:30801 +# VUE_APP_API_SERVER = https://epmet-yantai.elinkservice.cn/api +# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api +# VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api +# VUE_APP_API_SERVER = https://epdc-shibei.elinkservice.cn/api +# VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn:41080/api +# VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api + +VUE_APP_BIPASS_API_SERVER = /linkdata/linkdata-gateway/route + +# VUE_APP_NODE_ENV=dev_sdtdt +VUE_APP_NODE_ENV=dev +#项目根路径 +VUE_APP_PUBLIC_PATH=epmet-oper diff --git a/package.json b/package.json index 75c94e25c..56c0a3130 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.0", "private": true, "scripts": { + "localhost": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve --mode localhost", "dev": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve", "serve": "vue-cli-service serve", "build": "vue-cli-service build", diff --git a/src/router/index.js b/src/router/index.js index 2702594d8..597bc3b38 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -942,9 +942,21 @@ const router = new Router({ }), routes: pageRoutes.concat(moduleRoutes, moduleShujuRoutes, dataBoardRoutes), }); + router.beforeEach((to, from, next) => { // 添加动态(菜单)路由 // 已添加或者当前路由为页面路由, 可直接访问 + let toUrl = to.meta.iframeURL + console.log("=====", toUrl) + if (toUrl && toUrl.indexOf("ticket=") != -1) { + // 此处请求后端,获取一个ticket票据 + http.get("/auth/sso/getTicket") + .then(({data: res}) => { + let ticket = res.data + window.open(toUrl + ticket) + }) + return null; + } if (to.name === "caiji") { return next(); } @@ -982,7 +994,7 @@ router.beforeEach((to, from, next) => { }); return next({ name: "login", - query: { redirect: to.fullPath } + query: { redirect: to.fullPath } }); } window.SITE_CONFIG["menuShujuList"] = res.data; @@ -996,7 +1008,7 @@ router.beforeEach((to, from, next) => { console.log(err); next({ name: "login", - query: { redirect: to.fullPath } + query: { redirect: to.fullPath } }); }); http @@ -1013,7 +1025,7 @@ router.beforeEach((to, from, next) => { }); return next({ name: "login", - query: { redirect: to.fullPath } + query: { redirect: to.fullPath } }); } window.SITE_CONFIG["menuList"] = res.data @@ -1031,7 +1043,7 @@ router.beforeEach((to, from, next) => { console.log(err); next({ name: "login", - query: { redirect: to.fullPath } + query: { redirect: to.fullPath } }); }); }); diff --git a/src/views/modules/volunteer/LifeCircleManagement/add.vue b/src/views/modules/volunteer/LifeCircleManagement/add.vue index b021f4be5..9cf0b9ec3 100644 --- a/src/views/modules/volunteer/LifeCircleManagement/add.vue +++ b/src/views/modules/volunteer/LifeCircleManagement/add.vue @@ -336,7 +336,13 @@ "label": "文化体育" }, { - "children": [], + "children": [ + { + "pv":"5", + "value": "51", + "label": "其他" + }, + ], "value": "5", "label": "其它" } diff --git a/src/views/modules/volunteer/VoluntaryOrganization/add.vue b/src/views/modules/volunteer/VoluntaryOrganization/add.vue index 02ce1d507..2e1c8f4b2 100644 --- a/src/views/modules/volunteer/VoluntaryOrganization/add.vue +++ b/src/views/modules/volunteer/VoluntaryOrganization/add.vue @@ -13,13 +13,13 @@ - - + @@ -28,7 +28,7 @@ - + diff --git a/src/views/modules/volunteer/VolunteerProjects/add.vue b/src/views/modules/volunteer/VolunteerProjects/add.vue index acbf8068d..4e759d7e8 100644 --- a/src/views/modules/volunteer/VolunteerProjects/add.vue +++ b/src/views/modules/volunteer/VolunteerProjects/add.vue @@ -299,20 +299,6 @@ }, async activityType() { - const url = "/actual/base/activityType/page" - let params = { - // agencyId: this.agencyId - pageSize: 20, - pageNo: 1, - typeName: "", - enabled: 1 - } - const { data, code, msg } = await requestPost(url, params) - if (code === 0) { - this.typeList = data.list - } else { - this.$message.error(msg) - } this.$nextTick(() => { if (!map) { this.initMap(this.formData.latitude, this.formData.longitude);