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

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

parent 3e260a02
......@@ -146,7 +146,7 @@ export default {
},
gotopage(n) {
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") {
let path = this.$route.path;
window.location.href = "/iam/login/#/login?ReturnUrl=" + path;
......
......@@ -908,9 +908,21 @@ export default {
});
},
judgeMap() {
if (this.$route.query.map && this.$route.query.map != 0) {
this.is_map = true;
this.jcxxtx = true;
let self = this;
if (self.$route.query.map && self.$route.query.map != 0) {
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) {
......
......@@ -3,6 +3,7 @@ import qs from 'qs'; // 根据需求是否导入qs模块
const general = {
// general api
// logout is not used
logout(params) {
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