Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-platform-ui
Commits
2afc3f2d
Commit
2afc3f2d
authored
May 25, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送进度表单新增必填判断
parent
0aee6d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
Notify.vue
src/views/jira/Notify.vue
+17
-7
No files found.
src/views/jira/Notify.vue
View file @
2afc3f2d
...
...
@@ -151,7 +151,11 @@ export default {
},
sendFormRules
:
{
progress
:
[
{
required
:
true
,
message
:
'
请输入测试进度百分比,不需要%
'
,
trigger
:
'
blur
'
}
{
required
:
true
,
message
:
'
请输入测试进度百分比,不需要%
'
,
trigger
:
'
blur
'
}
]
}
}
...
...
@@ -237,12 +241,18 @@ export default {
this
.
sendScheduleData
.
progress
=
this
.
sendScheduleForm
.
progress
+
'
%
'
this
.
sendScheduleData
.
risk
=
this
.
sendScheduleForm
.
risk
this
.
sendScheduleData
.
webhook
=
this
.
sendProjectRobot
.
dingUrl
sendScheduleReport
(
this
.
sendScheduleData
).
then
((
resp
)
=>
{
if
(
resp
.
data
.
data
===
true
)
{
this
.
sendScheduleDialogVisible
=
false
return
this
.
$message
.
success
(
'
发送成功!
'
)
}
else
if
(
resp
.
data
.
data
===
false
)
{
return
this
.
$message
.
error
(
'
发送失败!
'
)
this
.
$refs
.
sendFormRef
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
}
else
{
sendScheduleReport
(
this
.
sendScheduleData
).
then
((
resp
)
=>
{
if
(
resp
.
data
.
data
===
true
)
{
this
.
sendScheduleDialogVisible
=
false
return
this
.
$message
.
success
(
'
发送成功!
'
)
}
else
if
(
resp
.
data
.
data
===
false
)
{
return
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