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
461b4d33
Commit
461b4d33
authored
Mar 25, 2022
by
张洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9c3895aa
Pipeline
#72691
passed with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
106 additions
and
106 deletions
+106
-106
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+106
-106
No files found.
src/pages/workbench/fwzc_fwcs.vue
View file @
461b4d33
...
...
@@ -1528,35 +1528,35 @@ export default {
(
this
.
activeBtn
==
4
&&
(
this
.
zhyyVal
==
22
||
this
.
zhyyVal
==
23
))
)
{
if
(
this
.
activeBtn
==
2
||
this
.
activeBtn
==
3
)
{
if
(
this
.
jkwds
.
length
==
0
)
{
this
.
$message
.
error
(
"
请上传接口文档
"
);
// if (this.jkwds.length == 0) {
// this.$message.error("请上传接口文档");
// } else {
if
(
this
.
activeBtn
==
2
||
(
this
.
activeBtn
==
4
&&
this
.
zhyyVal
==
22
)
)
{
this
.
request_fields
=
[];
this
.
response_fields
=
[];
this
.
jcxxtx
=
true
;
this
.
getOrganization
();
}
else
{
if
(
this
.
activeBtn
==
2
||
(
this
.
activeBtn
==
4
&&
this
.
zhyyVal
==
22
)
)
{
this
.
request_fields
=
[];
this
.
response_fields
=
[];
let
requestData
=
this
.
$refs
.
fwcs_sjfw_qqcs
.
getTableData
();
let
responseData
=
this
.
$refs
.
fwcs_sjfw_fhcs
.
getTableData
();
this
.
requestRules
=
0
;
this
.
responseRules
=
0
;
this
.
checkTable
(
requestData
,
0
);
this
.
checkTable
(
responseData
,
1
);
if
(
this
.
requestRules
==
0
&&
this
.
responseRules
==
0
)
{
this
.
request_fields
=
requestData
;
this
.
response_fields
=
responseData
;
this
.
jcxxtx
=
true
;
this
.
getOrganization
();
}
else
{
let
requestData
=
this
.
$refs
.
fwcs_sjfw_qqcs
.
getTableData
();
let
responseData
=
this
.
$refs
.
fwcs_sjfw_fhcs
.
getTableData
();
this
.
requestRules
=
0
;
this
.
responseRules
=
0
;
this
.
checkTable
(
requestData
,
0
);
this
.
checkTable
(
responseData
,
1
);
if
(
this
.
requestRules
==
0
&&
this
.
responseRules
==
0
)
{
this
.
request_fields
=
requestData
;
this
.
response_fields
=
responseData
;
this
.
jcxxtx
=
true
;
this
.
getOrganization
();
}
else
if
(
this
.
requestRules
!=
0
)
{
this
.
$message
.
error
(
"
请完善请求参数信息中的字段名称
"
);
}
else
if
(
this
.
responseRules
!=
0
)
{
this
.
$message
.
error
(
"
请完善返回参数信息中的字段名称
"
);
}
}
else
if
(
this
.
requestRules
!=
0
)
{
this
.
$message
.
error
(
"
请完善请求参数信息中的字段名称
"
);
}
else
if
(
this
.
responseRules
!=
0
)
{
this
.
$message
.
error
(
"
请完善返回参数信息中的字段名称
"
);
}
// }
}
}
else
{
let
requestData
=
this
.
$refs
.
fwcs_sjfw_qqcs
.
getTableData
();
...
...
@@ -1788,93 +1788,93 @@ export default {
registePt
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
(
this
.
activeBtn
==
0
&&
this
.
jkwds
.
length
==
0
)
||
(
this
.
activeBtn
==
2
&&
this
.
jkwds
.
length
==
0
)
||
(
this
.
activeBtn
==
3
&&
this
.
jkwds
.
length
==
0
)
)
{
this
.
$message
.
error
(
"
请上传接口文档
"
);
}
else
{
if
(
this
.
cover
.
length
!=
0
)
{
let
contentType
=
""
;
// if (
// (this.activeBtn == 0 && this.jkwds.length == 0) ||
// (this.activeBtn == 2 && this.jkwds.length == 0) ||
// (this.activeBtn == 3 && this.jkwds.length == 0)
// ) {
// this.$message.error("请上传接口文档");
// } else {
if
(
this
.
cover
.
length
!=
0
)
{
let
contentType
=
""
;
if
(
this
.
activeBtn
==
1
&&
!
this
.
is_portal
&&
window
.
serviceConfig
&&
window
.
serviceConfig
.
state
==
"
needLogin
"
)
{
this
.
addPortalItem
();
}
else
{
this
.
fwR
=
true
;
if
(
this
.
activeBtn
==
1
&&
!
this
.
is_portal
&&
window
.
serviceConfig
&&
window
.
serviceConfig
.
state
==
"
needLogin
"
this
.
activeBtn
==
0
||
this
.
activeBtn
==
2
||
this
.
activeBtn
==
3
)
{
this
.
addPortalItem
();
}
else
{
this
.
fwR
=
true
;
if
(
this
.
activeBtn
==
0
||
this
.
activeBtn
==
2
||
this
.
activeBtn
==
3
)
{
contentType
=
this
.
sjfwQqt
;
}
else
if
(
this
.
activeBtn
==
4
)
{
if
(
this
.
activeZh
==
"
1
"
)
{
contentType
=
this
.
zhfwQqt
;
}
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
,
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
?
this
.
jczcfwQqt
:
this
.
activeBtn
==
1
?
this
.
skfwQqt
:
this
.
activeBtn
==
4
?
this
.
zhyyVal
:
0
,
portal_id
:
this
.
portal_id
,
encode_method
:
this
.
form
.
code
,
doc_file
:
this
.
jkwds
.
length
!=
0
?
this
.
jkwds
[
0
]
:
""
,
urls
:
[
{
name
:
""
,
response_type
:
this
.
activeBtn
==
3
?
this
.
gz_fhsjgs
:
"
JSON
"
,
req_auth_mthod
:
this
.
sqfsVal
,
req_auth_token
:
this
.
sqfsVal
==
1
?
this
.
tokenVal
:
""
,
req_auth_token_name
:
this
.
sqfsVal
==
1
?
this
.
tokenName
:
""
,
method
:
this
.
select
,
url
:
this
.
serviceUrl
,
request_fields
:
this
.
dataType
==
"
body
"
?
this
.
request_fields
:
this
.
body_fields
,
request_query_fields
:
this
.
dataType
==
"
param
"
?
this
.
request_fields
:
this
.
param_fields
,
response_fields
:
this
.
response_fields
,
content_type
:
contentType
,
},
],
};
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
this
.
fwR
=
false
;
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
{
this
.
$message
.
error
(
"
请上传服务封面
"
);
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
?
this
.
jczcfwQqt
:
this
.
activeBtn
==
1
?
this
.
skfwQqt
:
this
.
activeBtn
==
4
?
this
.
zhyyVal
:
0
,
portal_id
:
this
.
portal_id
,
encode_method
:
this
.
form
.
code
,
doc_file
:
this
.
jkwds
.
length
!=
0
?
this
.
jkwds
[
0
]
:
""
,
urls
:
[
{
name
:
""
,
response_type
:
this
.
activeBtn
==
3
?
this
.
gz_fhsjgs
:
"
JSON
"
,
req_auth_mthod
:
this
.
sqfsVal
,
req_auth_token
:
this
.
sqfsVal
==
1
?
this
.
tokenVal
:
""
,
req_auth_token_name
:
this
.
sqfsVal
==
1
?
this
.
tokenName
:
""
,
method
:
this
.
select
,
url
:
this
.
serviceUrl
,
request_fields
:
this
.
dataType
==
"
body
"
?
this
.
request_fields
:
this
.
body_fields
,
request_query_fields
:
this
.
dataType
==
"
param
"
?
this
.
request_fields
:
this
.
param_fields
,
response_fields
:
this
.
response_fields
,
content_type
:
contentType
,
},
],
};
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
this
.
fwR
=
false
;
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
{
this
.
$message
.
error
(
"
请上传服务封面
"
);
}
// }
}
else
{
this
.
$message
.
error
(
"
请完善服务基本信息
"
);
}
...
...
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