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

测试

parent fcc72532
...@@ -940,7 +940,7 @@ export default { ...@@ -940,7 +940,7 @@ export default {
let self = this; let self = this;
//添加服务到portal //添加服务到portal
let url = let url =
"https://apaasgis.wodcloud.com/portal//portal/sharing/rest/content/users/" + "https://apaasgis.wodcloud.com/portal/sharing/rest/content/users/" +
self.portalUser.username + self.portalUser.username +
"/addItem"; "/addItem";
let data = { let data = {
...@@ -953,7 +953,7 @@ export default { ...@@ -953,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)
.then((response) => { .then((response) => {
if (response.data.success == 1) { if (response.data.success == 1) {
self.shareItem(response.data.id); self.shareItem(response.data.id);
...@@ -976,7 +976,7 @@ export default { ...@@ -976,7 +976,7 @@ export default {
console.log(`共享portal${itemid}`); console.log(`共享portal${itemid}`);
let self = this; let self = this;
let searchUrl = let searchUrl =
"https://apaasgis.wodcloud.com/portal//portal/sharing/rest/content/users/" + "https://apaasgis.wodcloud.com/portal/sharing/rest/content/users/" +
self.portalUser.username + self.portalUser.username +
"/shareItems"; "/shareItems";
let data = { let data = {
...@@ -987,7 +987,7 @@ export default { ...@@ -987,7 +987,7 @@ export default {
groups: null, groups: null,
}; };
self.$http self.$http
.post(searchUrl, data, { emulateJSON: true }) .post(searchUrl, data)
.then((response) => { .then((response) => {
console.log(response); console.log(response);
}) })
...@@ -1000,7 +1000,7 @@ export default { ...@@ -1000,7 +1000,7 @@ export default {
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/sharing/rest/content/users/" +
self.portalUser.username + self.portalUser.username +
"/items/" + "/items/" +
itemid; itemid;
...@@ -1009,7 +1009,7 @@ export default { ...@@ -1009,7 +1009,7 @@ export default {
f: "json", f: "json",
}; };
self.$http self.$http
.post(searchUrl, data, { emulateJSON: true }) .post(searchUrl, data)
.then((response) => { .then((response) => {
console.log(response); console.log(response);
if (response.data.success == 1) { if (response.data.success == 1) {
......
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