diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index c5aba1bc57f5a7c7a9ef5eff74c030f204bf15b6..9f30f6262730aebdc83da362763d5cd0debe2638 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -355,7 +355,10 @@
- +
@@ -749,8 +752,10 @@ export default { this.$message.error("请完善返回参数信息中的字段名称"); } } else if (this.activeBtn == 1) { + console.log(this.portalUser); if (this.portalUser.username && this.portalUser.username != "") { let value = helper.getQueryString("id", this.serviceUrl); + console.log(value); if (value && value != "") { this.getItemInfo(value); } else { @@ -948,7 +953,7 @@ export default { token: self.portalUser.token, }; self.$http - .post(url, data, {emulateJSON: true}) + .post(url, data, { emulateJSON: true }) .then((response) => { if (response.data.success == 1) { self.shareItem(response.data.id); @@ -982,7 +987,7 @@ export default { groups: null, }; self.$http - .post(searchUrl, data, {emulateJSON: true}) + .post(searchUrl, data, { emulateJSON: true }) .then((response) => { console.log(response); }) @@ -993,7 +998,7 @@ export default { getItemInfo(itemid) { console.log(`获取portal参数${itemid}`); let self = this; - console.log(self.portalUser) + console.log(self.portalUser); let searchUrl = "https://apaasgis.wodcloud.com/portal//portal/sharing/rest/content/users/" + self.portalUser.username + @@ -1004,7 +1009,7 @@ export default { f: "json", }; self.$http - .post(searchUrl, data, {emulateJSON: true}) + .post(searchUrl, data, { emulateJSON: true }) .then((response) => { console.log(response); if (response.data.success == 1) { @@ -1032,9 +1037,8 @@ export default { self.portalUser.token; self.iportal_id = data.item.id; self.serviceUrl = data.item.url; - self.portal_data_service_type_2 = self.dataTree_apaas_config[ - data.item.type - ]; + self.portal_data_service_type_2 = + self.dataTree_apaas_config[data.item.type]; } }) .catch((error) => {