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

测试portal

parent 9efd7f9f
...@@ -355,7 +355,10 @@ ...@@ -355,7 +355,10 @@
</block-radius> </block-radius>
</div> </div>
<div> <div>
<iframe src="https://apaasgis.wodcloud.com/portal/apaasplat/viewer/autologin.html" style="width: 1000px;height: 600px"></iframe> <iframe
src="https://apaasgis.wodcloud.com/portal/apaasplat/viewer/autologin.html"
style="width: 1000px;height: 600px"
></iframe>
</div> </div>
</div> </div>
</template> </template>
...@@ -749,8 +752,10 @@ export default { ...@@ -749,8 +752,10 @@ export default {
this.$message.error("请完善返回参数信息中的字段名称"); this.$message.error("请完善返回参数信息中的字段名称");
} }
} else if (this.activeBtn == 1) { } else if (this.activeBtn == 1) {
console.log(this.portalUser);
if (this.portalUser.username && this.portalUser.username != "") { if (this.portalUser.username && this.portalUser.username != "") {
let value = helper.getQueryString("id", this.serviceUrl); let value = helper.getQueryString("id", this.serviceUrl);
console.log(value);
if (value && value != "") { if (value && value != "") {
this.getItemInfo(value); this.getItemInfo(value);
} else { } else {
...@@ -948,7 +953,7 @@ export default { ...@@ -948,7 +953,7 @@ export default {
token: self.portalUser.token, token: self.portalUser.token,
}; };
self.$http self.$http
.post(url, data, {emulateJSON: true}) .post(url, data, { emulateJSON: true })
.then((response) => { .then((response) => {
if (response.data.success == 1) { if (response.data.success == 1) {
self.shareItem(response.data.id); self.shareItem(response.data.id);
...@@ -982,7 +987,7 @@ export default { ...@@ -982,7 +987,7 @@ export default {
groups: null, groups: null,
}; };
self.$http self.$http
.post(searchUrl, data, {emulateJSON: true}) .post(searchUrl, data, { emulateJSON: true })
.then((response) => { .then((response) => {
console.log(response); console.log(response);
}) })
...@@ -993,7 +998,7 @@ export default { ...@@ -993,7 +998,7 @@ export default {
getItemInfo(itemid) { getItemInfo(itemid) {
console.log(`获取portal参数${itemid}`); console.log(`获取portal参数${itemid}`);
let self = this; let self = this;
console.log(self.portalUser) console.log(self.portalUser);
let searchUrl = let searchUrl =
"https://apaasgis.wodcloud.com/portal//portal/sharing/rest/content/users/" + "https://apaasgis.wodcloud.com/portal//portal/sharing/rest/content/users/" +
self.portalUser.username + self.portalUser.username +
...@@ -1004,7 +1009,7 @@ export default { ...@@ -1004,7 +1009,7 @@ export default {
f: "json", f: "json",
}; };
self.$http self.$http
.post(searchUrl, data, {emulateJSON: true}) .post(searchUrl, data, { emulateJSON: true })
.then((response) => { .then((response) => {
console.log(response); console.log(response);
if (response.data.success == 1) { if (response.data.success == 1) {
...@@ -1032,9 +1037,8 @@ export default { ...@@ -1032,9 +1037,8 @@ export default {
self.portalUser.token; self.portalUser.token;
self.iportal_id = data.item.id; self.iportal_id = data.item.id;
self.serviceUrl = data.item.url; self.serviceUrl = data.item.url;
self.portal_data_service_type_2 = self.dataTree_apaas_config[ self.portal_data_service_type_2 =
data.item.type self.dataTree_apaas_config[data.item.type];
];
} }
}) })
.catch((error) => { .catch((error) => {
......
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