Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-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
smart-operation
so-manage-ui
Commits
29031758
Commit
29031758
authored
Apr 28, 2023
by
白舜
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(优化需求): 4.1.3 - 17
parent
ffe774ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
src/page/main/config/cloud-platform/index.vue
src/page/main/config/cloud-platform/index.vue
+5
-7
No files found.
src/page/main/config/cloud-platform/index.vue
View file @
29031758
...
@@ -151,9 +151,7 @@
...
@@ -151,9 +151,7 @@
>取消
</el-button
>取消
</el-button
>
>
<el-button
type=
"info"
@
click=
"testUrl"
>
<el-button
type=
"info"
@
click=
"testUrl"
>
<bg-icon
style=
"font-size: 12px; color: #fff; margin-right: 8px"
icon=
"#bg-ic-checklist"
></bg-icon>
<bg-icon
style=
"font-size: 12px; color: #fff; margin-right: 8px"
icon=
"#bg-ic-checklist"
></bg-icon>
测试连接
</el-button>
测试链接
</el-button>
<el-button
type=
"primary"
:disabled=
"!testSuccess"
@
click=
"postData"
>
保存
</el-button>
<el-button
type=
"primary"
:disabled=
"!testSuccess"
@
click=
"postData"
>
保存
</el-button>
</div>
</div>
</
template
>
</
template
>
...
@@ -306,7 +304,7 @@ const state = reactive({
...
@@ -306,7 +304,7 @@ const state = reactive({
nameWidth
:
144
,
nameWidth
:
144
,
},
},
],
],
testSuccess
:
false
,
// 测试
链
接结果
testSuccess
:
false
,
// 测试
连
接结果
});
});
const
getRoleRows
=
()
=>
{
const
getRoleRows
=
()
=>
{
let
params
=
{
...
state
.
filter
};
let
params
=
{
...
state
.
filter
};
...
@@ -400,15 +398,15 @@ const testUrl = () => {
...
@@ -400,15 +398,15 @@ const testUrl = () => {
};
};
axios
.
post
(
`/apaas/application/v5/platform/check`
,
params
).
then
((
res
)
=>
{
axios
.
post
(
`/apaas/application/v5/platform/check`
,
params
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
ElMessage
.
success
(
"
链接测试通过!
"
);
ElMessage
.
success
(
"
测试连接通过
"
);
state
.
testSuccess
=
true
;
state
.
testSuccess
=
true
;
}
else
{
}
else
{
ElMessage
.
error
(
res
.
data
.
data
);
ElMessage
.
error
(
"
测试连接失败
"
);
}
}
});
});
}
}
});
});
};
// 测试
链
接
};
// 测试
连
接
const
postData
=
()
=>
{
const
postData
=
()
=>
{
let
params
=
{
let
params
=
{
...
state
.
formData
,
...
state
.
formData
,
...
...
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