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

测试

parent e0f1e3cc
...@@ -357,7 +357,7 @@ ...@@ -357,7 +357,7 @@
<div> <div>
<iframe <iframe
id="listener" id="listener"
src="https://apaasgis.wodcloud.com/portal/apaasplat/viewer/autologin.html" src="https://apaasgis.wodcloud.com/portal/apaasplat/viewer/addPortalItem.html"
style="width: 1000px;height: 600px" style="width: 1000px;height: 600px"
></iframe> ></iframe>
</div> </div>
...@@ -540,7 +540,6 @@ export default { ...@@ -540,7 +540,6 @@ export default {
is_map: false, is_map: false,
param_fields: [], param_fields: [],
body_fields: [], body_fields: [],
portalUser: {},
dataTree_apaas_config: { dataTree_apaas_config: {
"18": "Map Service", "18": "Map Service",
"19": "Feature Service", "19": "Feature Service",
...@@ -753,15 +752,10 @@ export default { ...@@ -753,15 +752,10 @@ export default {
this.$message.error("请完善返回参数信息中的字段名称"); this.$message.error("请完善返回参数信息中的字段名称");
} }
} else if (this.activeBtn == 1) { } else if (this.activeBtn == 1) {
console.log(this.portalUser); let value = helper.getQueryString("id", this.serviceUrl);
if (this.portalUser.username && this.portalUser.username != "") { console.log(value);
let value = helper.getQueryString("id", this.serviceUrl); if (value && value != "") {
console.log(value); this.getItemInfo(value);
if (value && value != "") {
this.getItemInfo(value);
} else {
this.addPortalItem();
}
} }
this.request_fields = []; this.request_fields = [];
this.response_fields = []; this.response_fields = [];
...@@ -820,6 +814,11 @@ export default { ...@@ -820,6 +814,11 @@ export default {
let contentType = ""; let contentType = "";
if (this.activeBtn == 0) { if (this.activeBtn == 0) {
contentType = this.sjfwQqt; contentType = this.sjfwQqt;
} else if (this.activeBtn == 1) {
let value = helper.getQueryString("id", this.serviceUrl);
if (value == "") {
this.addPortalItem();
}
} else if (this.activeBtn == 4) { } else if (this.activeBtn == 4) {
if (this.activeZh == 1) { if (this.activeZh == 1) {
contentType = this.zhfwQqt; contentType = this.zhfwQqt;
...@@ -946,7 +945,6 @@ export default { ...@@ -946,7 +945,6 @@ export default {
title: self.form.name, title: self.form.name,
url: self.serviceUrl, url: self.serviceUrl,
type: self.dataTree_apaas_config["19"], type: self.dataTree_apaas_config["19"],
token: self.portalUser.token,
}, },
}, },
"*" "*"
...@@ -967,10 +965,7 @@ export default { ...@@ -967,10 +965,7 @@ export default {
let self = this; let self = this;
window.addEventListener("message", function (event) { window.addEventListener("message", function (event) {
if (event.origin == "https://apaasgis.wodcloud.com" && event.data) { if (event.origin == "https://apaasgis.wodcloud.com" && event.data) {
if (event.data.cmd == "getPortalUser") { if (event.data.cmd == "getPortalItemInfo") {
self.portalUser = event.data.params;
console.log(self.portalUser);
} else if (event.data.cmd == "getPortalItemInfo") {
console.log(event.data.params); console.log(event.data.params);
} else if (event.data.cmd == "getPortalItemInfoError") { } else if (event.data.cmd == "getPortalItemInfoError") {
console.log(event.data.params); console.log(event.data.params);
......
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