Commit cd30d313 authored by 刘殿昕's avatar 刘殿昕

发布智能制图获取参数+portal登出

parent 3e260a02
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
}, },
gotopage(n) { gotopage(n) {
if (n == "logout") { if (n == "logout") {
window.location.href = "/iam/api/logout"; window.location.href = "https://apaasgis.wodcloud.com/portal/sharing/rest/oauth2/signout?client_id=arcgisonline&redirect_uri=https://apaas3.wodcloud.com/iam/api/logout";
} else if (n == "login") { } else if (n == "login") {
let path = this.$route.path; let path = this.$route.path;
window.location.href = "/iam/login/#/login?ReturnUrl=" + path; window.location.href = "/iam/login/#/login?ReturnUrl=" + path;
......
...@@ -908,9 +908,21 @@ export default { ...@@ -908,9 +908,21 @@ export default {
}); });
}, },
judgeMap() { judgeMap() {
if (this.$route.query.map && this.$route.query.map != 0) { let self = this;
this.is_map = true; if (self.$route.query.map && self.$route.query.map != 0) {
this.jcxxtx = true; self.is_map = true;
self.jcxxtx = true;
if (self.$store.state.znztParams) {
let data = this.$store.state.znztParams;
console.log(data);
self.form.name = data.name;
self.form.desc = data.descript;
self.form.area = Number(data.sectors);
self.serviceUrl = data.url;
self.skfwQqt = Number(data.data_service_type2);
self.cover[0] = data.cover;
self.is_portal = true;
}
} }
}, },
goto(path) { goto(path) {
......
...@@ -3,6 +3,7 @@ import qs from 'qs'; // 根据需求是否导入qs模块 ...@@ -3,6 +3,7 @@ import qs from 'qs'; // 根据需求是否导入qs模块
const general = { const general = {
// general api // general api
// logout is not used
logout(params) { logout(params) {
return axios.get(`/iam/api/logout?ReturnUrl=${encodeURIComponent(params.returnUrl)}`); return axios.get(`/iam/api/logout?ReturnUrl=${encodeURIComponent(params.returnUrl)}`);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment