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
bee8ea55
Commit
bee8ea55
authored
Jun 24, 2020
by
张俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev
parents
86d02430
b3774c40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
17 deletions
+37
-17
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+37
-17
No files found.
src/pages/workbench/fwzc_fwcs.vue
View file @
bee8ea55
...
...
@@ -36,7 +36,15 @@
v-model=
"serviceUrl"
class=
"input-with-select"
>
<el-select
v-model=
"select"
slot=
"prepend"
placeholder=
"请选择"
>
<el-select
v-if=
"activeBtn == 1"
v-model=
"select"
slot=
"prepend"
placeholder=
"请选择"
>
<el-option
v-for=
"item in optionType1"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
<el-select
v-else
v-model=
"select"
slot=
"prepend"
placeholder=
"请选择"
>
<el-option
v-for=
"item in optionType"
:key=
"item.value"
...
...
@@ -113,10 +121,10 @@
<div
class=
"skfw_fwlx_radios"
>
<el-radio
v-for=
"item in skfwRadios"
:key=
"item"
v-model=
"s
j
fwQqt"
:label=
"item"
>
{{
item
}}
</el-radio>
:key=
"item
.name
"
v-model=
"s
k
fwQqt"
:label=
"item
.id
"
>
{{
item
.
name
}}
</el-radio>
<el-button
v-if=
"activeBtn == 1"
@
click=
"clickFwcs()"
class=
"fwcs_btn_fwcs"
>
服务测试
</el-button>
</div>
</div>
...
...
@@ -363,6 +371,7 @@ export default {
{
label
:
"
PUT
"
,
value
:
"
PUT
"
},
{
label
:
"
DELETE
"
,
value
:
"
DELETE
"
}
],
optionType1
:
[{
label
:
"
GET
"
,
value
:
"
GET
"
}],
activeName
:
0
,
activeZh
:
0
,
sjfwQqcs
:
[
...
...
@@ -459,15 +468,8 @@ export default {
tokenVal
:
""
,
sjfwQqt
:
"
JSON
"
,
zhfwQqt
:
"
JSON
"
,
skfwRadios
:
[
"
ArcGIS Server Web
"
,
"
文档
"
,
"
KML
"
,
"
OGC(WMS)
"
,
"
OGS(WMTS)
"
,
"
OGS(WFS)
"
,
"
OGS(WCS)
"
],
skfwQqt
:
"
ArcGIS Server Web
"
,
skfwRadios
:
[],
optionsZhyy
:
[
{
label
:
"
模型算法类
"
,
value
:
0
},
{
label
:
"
查询验证类
"
,
value
:
1
},
...
...
@@ -636,7 +638,14 @@ export default {
headers
:
headers
,
params
:
requestData
,
body
:
bodys
,
content_type
:
contentType
content_type
:
contentType
,
data_service_type1
:
this
.
btnList
[
this
.
activeBtn
].
id
,
data_service_type2
:
this
.
activeBtn
==
1
?
this
.
skfwQqt
:
this
.
activeBtn
==
4
?
this
.
zhyyVal
:
0
};
this
.
$api
.
workbench
.
fwzcFwcs
(
query
).
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
...
...
@@ -721,6 +730,15 @@ export default {
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
cover
.
length
!=
0
)
{
let
contentType
=
""
;
if
(
this
.
activeBtn
==
0
)
{
bodys
=
this
.
$refs
.
jsonCodes
.
getCodesVal
();
contentType
=
this
.
sjfwQqt
;
}
else
if
(
this
.
activeBtn
==
4
)
{
if
(
this
.
activeZh
==
1
)
{
contentType
=
this
.
zhfwQqt
;
}
}
let
query
=
{
name
:
this
.
form
.
name
,
sectors
:
this
.
form
.
area
,
...
...
@@ -731,7 +749,7 @@ export default {
data_service_type1
:
this
.
btnList
[
this
.
activeBtn
].
id
,
data_service_type2
:
this
.
activeBtn
==
1
?
this
.
skfw
Radios
?
this
.
skfw
Qqt
:
this
.
activeBtn
==
4
?
this
.
zhyyVal
:
0
,
...
...
@@ -739,7 +757,8 @@ export default {
method
:
this
.
select
,
url
:
this
.
serviceUrl
,
request_fields
:
this
.
request_fields
,
response_fields
:
this
.
response_fields
response_fields
:
this
.
response_fields
,
content_type
:
contentType
};
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
...
...
@@ -807,6 +826,7 @@ export default {
this
.
$api
.
workbench
.
getServiceTypeList
().
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
btnList
=
response
.
data
.
data
;
this
.
skfwRadios
=
this
.
btnList
[
1
].
childDomains
;
this
.
activeBtn
=
0
;
}
else
{
console
.
log
(
response
.
data
.
errMsg
);
...
...
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