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
a5e9e924
Commit
a5e9e924
authored
Aug 05, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试portal
parent
85877838
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
48 deletions
+76
-48
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+76
-48
No files found.
src/pages/workbench/fwzc_fwcs.vue
View file @
a5e9e924
...
@@ -354,13 +354,18 @@
...
@@ -354,13 +354,18 @@
</div>
</div>
</block-radius>
</block-radius>
</div>
</div>
<div>
<div
style=
"display: none"
>
<iframe
<iframe
id=
"listener"
id=
"listener"
src=
"https://apaasgis.wodcloud.com/portal/apaasplat/viewer/addPortalItem.html"
src=
"https://apaasgis.wodcloud.com/portal/apaasplat/viewer/addPortalItem.html"
style=
"width: 1000px;height: 600px"
></iframe>
></iframe>
</div>
</div>
<apass-dialog
ref=
"alertChange"
:title=
"dialogInfo.title"
:msg=
"dialogInfo.msg"
:submit=
"dialogInfo.submit"
></apass-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -370,10 +375,12 @@ import CesTable from "@/components/table/table-um";
...
@@ -370,10 +375,12 @@ import CesTable from "@/components/table/table-um";
import
Codes
from
"
@/components/general/codes
"
;
import
Codes
from
"
@/components/general/codes
"
;
import
uploadFile
from
"
@/components/general/upload_file
"
;
import
uploadFile
from
"
@/components/general/upload_file
"
;
import
helper
from
"
@/services/helper
"
;
import
helper
from
"
@/services/helper
"
;
import
apassDialog
from
"
@/components/apass-dialog
"
;
export
default
{
export
default
{
components
:
{
components
:
{
BlockRadius
,
BlockRadius
,
CesTable
,
CesTable
,
apassDialog
,
"
v-apaas-code
"
:
Codes
,
"
v-apaas-code
"
:
Codes
,
uploadFile
,
uploadFile
,
},
},
...
@@ -540,6 +547,12 @@ export default {
...
@@ -540,6 +547,12 @@ export default {
is_map
:
false
,
is_map
:
false
,
param_fields
:
[],
param_fields
:
[],
body_fields
:
[],
body_fields
:
[],
dialogInfo
:
{
title
:
"
时空服务参数已修改
"
,
msg
:
""
,
submit
:
""
,
},
is_portal
:
false
};
};
},
},
computed
:
{},
computed
:
{},
...
@@ -778,53 +791,52 @@ export default {
...
@@ -778,53 +791,52 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
cover
.
length
!=
0
)
{
if
(
this
.
cover
.
length
!=
0
)
{
let
contentType
=
""
;
let
contentType
=
""
;
if
(
this
.
activeBtn
==
0
)
{
if
(
this
.
activeBtn
==
1
&&
!
this
.
is_portal
)
{
contentType
=
this
.
sjfwQqt
;
this
.
addPortalItem
();
}
else
if
(
this
.
activeBtn
==
1
)
{
}
else
{
let
value
=
helper
.
getQueryString
(
"
id
"
,
this
.
serviceUrl
);
if
(
this
.
activeBtn
==
0
)
{
if
(
value
==
""
)
{
contentType
=
this
.
sjfwQqt
;
this
.
addPortalItem
();
}
else
if
(
this
.
activeBtn
==
4
)
{
}
if
(
this
.
activeZh
==
1
)
{
}
else
if
(
this
.
activeBtn
==
4
)
{
contentType
=
this
.
zhfwQqt
;
if
(
this
.
activeZh
==
1
)
{
}
contentType
=
this
.
zhfwQqt
;
}
}
let
query
=
{
name
:
this
.
form
.
name
,
sectors
:
this
.
form
.
area
,
organization
:
this
.
form
.
origin
,
cover
:
this
.
cover
[
0
],
openness
:
this
.
form
.
resource
,
descript
:
this
.
form
.
desc
,
data_service_type1
:
this
.
btnList
[
this
.
activeBtn
].
id
,
data_service_type2
:
this
.
activeBtn
==
0
?
12
:
this
.
activeBtn
==
1
?
this
.
skfwQqt
:
this
.
activeBtn
==
4
?
this
.
zhyyVal
:
0
,
encode_method
:
this
.
form
.
code
,
method
:
this
.
select
,
url
:
this
.
serviceUrl
,
request_fields
:
this
.
body_fields
.
length
==
0
?
[]
:
this
.
request_fields
,
request_query_fields
:
this
.
param_fields
.
length
==
0
?
[]
:
this
.
request_fields
,
response_fields
:
this
.
response_fields
,
content_type
:
contentType
,
};
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
.
success
(
"
服务注册成功
"
);
this
.
$router
.
push
(
"
/fwgl/
"
+
this
.
$store
.
getters
.
level
);
}
else
{
console
.
log
(
response
.
data
.
errMsg
);
this
.
$message
.
error
(
response
.
data
.
errMsg
);
}
});
}
}
let
query
=
{
name
:
this
.
form
.
name
,
sectors
:
this
.
form
.
area
,
organization
:
this
.
form
.
origin
,
cover
:
this
.
cover
[
0
],
openness
:
this
.
form
.
resource
,
descript
:
this
.
form
.
desc
,
data_service_type1
:
this
.
btnList
[
this
.
activeBtn
].
id
,
data_service_type2
:
this
.
activeBtn
==
0
?
12
:
this
.
activeBtn
==
1
?
this
.
skfwQqt
:
this
.
activeBtn
==
4
?
this
.
zhyyVal
:
0
,
encode_method
:
this
.
form
.
code
,
method
:
this
.
select
,
url
:
this
.
serviceUrl
,
request_fields
:
this
.
body_fields
.
length
==
0
?
[]
:
this
.
request_fields
,
request_query_fields
:
this
.
param_fields
.
length
==
0
?
[]
:
this
.
request_fields
,
response_fields
:
this
.
response_fields
,
content_type
:
contentType
,
};
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
.
success
(
"
服务注册成功
"
);
this
.
$router
.
push
(
"
/fwgl/
"
+
this
.
$store
.
getters
.
level
);
}
else
{
console
.
log
(
response
.
data
.
errMsg
);
this
.
$message
.
error
(
response
.
data
.
errMsg
);
}
});
}
else
{
}
else
{
this
.
$message
.
error
(
"
请上传服务封面
"
);
this
.
$message
.
error
(
"
请上传服务封面
"
);
}
}
...
@@ -938,14 +950,30 @@ export default {
...
@@ -938,14 +950,30 @@ export default {
self
.
form
.
desc
=
data
.
descript
;
self
.
form
.
desc
=
data
.
descript
;
self
.
form
.
area
=
data
.
sectors
;
self
.
form
.
area
=
data
.
sectors
;
self
.
serviceUrl
=
data
.
url
;
self
.
serviceUrl
=
data
.
url
;
self
.
skfwQqt
=
data
.
data_service_type2
;
self
.
skfwQqt
=
Number
(
data
.
data_service_type2
)
;
self
.
cover
[
0
]
=
data
.
cover
;
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") {
} else if (event.data.cmd == "getPortalItemInfoError") {
console.log(event.data.params);
console.log(event.data.params);
this.is_portal = false;
} else if (event.data.cmd == "addPortalItem") {
} else if (event.data.cmd == "addPortalItem") {
console.log(event.data.params);
console.log(event.data.params);
this.is_portal = true;
this.registe();
} else if (event.data.cmd == "addPortalItemError") {
} else if (event.data.cmd == "addPortalItemError") {
console.log(event.data.params);
console.log(event.data.params);
this.is_portal = false;
}
}
}
}
});
});
...
...
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