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

测试portal

parent 85877838
......@@ -354,13 +354,18 @@
</div>
</block-radius>
</div>
<div>
<div style="display: none">
<iframe
id="listener"
src="https://apaasgis.wodcloud.com/portal/apaasplat/viewer/addPortalItem.html"
style="width: 1000px;height: 600px"
></iframe>
</div>
<apass-dialog
ref="alertChange"
:title="dialogInfo.title"
:msg="dialogInfo.msg"
:submit="dialogInfo.submit"
></apass-dialog>
</div>
</template>
......@@ -370,10 +375,12 @@ import CesTable from "@/components/table/table-um";
import Codes from "@/components/general/codes";
import uploadFile from "@/components/general/upload_file";
import helper from "@/services/helper";
import apassDialog from "@/components/apass-dialog";
export default {
components: {
BlockRadius,
CesTable,
apassDialog,
"v-apaas-code": Codes,
uploadFile,
},
......@@ -540,6 +547,12 @@ export default {
is_map: false,
param_fields: [],
body_fields: [],
dialogInfo: {
title: "时空服务参数已修改",
msg: "",
submit: "",
},
is_portal: false
};
},
computed: {},
......@@ -778,13 +791,11 @@ export default {
if (valid) {
if (this.cover.length != 0) {
let contentType = "";
if (this.activeBtn == 1 && !this.is_portal) {
this.addPortalItem();
} else {
if (this.activeBtn == 0) {
contentType = this.sjfwQqt;
} else if (this.activeBtn == 1) {
let value = helper.getQueryString("id", this.serviceUrl);
if (value == "") {
this.addPortalItem();
}
} else if (this.activeBtn == 4) {
if (this.activeZh == 1) {
contentType = this.zhfwQqt;
......@@ -825,6 +836,7 @@ export default {
this.$message.error(response.data.errMsg);
}
});
}
} else {
this.$message.error("请上传服务封面");
}
......@@ -938,14 +950,30 @@ export default {
self.form.desc = data.descript;
self.form.area = data.sectors;
self.serviceUrl = data.url;
self.skfwQqt = data.data_service_type2;
self.skfwQqt = Number(data.data_service_type2);
self.cover[0] = data.cover;
this.dialogInfo.msg = `您的时空服务地址已更新为${
self.serviceUrl
},服务类型更新为${
self.skfwRadios.find((item) => {
return item.id == self.skfwQqt;
}).name
}`;
this.dialogInfo.submit = () => {
this.$refs.alertChange.hide();
};
this.$refs.alertChange.show();
this.is_portal = true;
} else if (event.data.cmd == "getPortalItemInfoError") {
console.log(event.data.params);
this.is_portal = false;
} else if (event.data.cmd == "addPortalItem") {
console.log(event.data.params);
this.is_portal = true;
this.registe();
} else if (event.data.cmd == "addPortalItemError") {
console.log(event.data.params);
this.is_portal = false;
}
}
});
......
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