Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
b942b9af
Commit
b942b9af
authored
Aug 05, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
fcc72532
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+6
-6
No files found.
src/pages/workbench/fwzc_fwcs.vue
View file @
b942b9af
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment