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
6d60141e
Commit
6d60141e
authored
Apr 21, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交时新增校验
parent
aa88ea0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
14 deletions
+26
-14
Notify.vue
src/views/jira/Notify.vue
+26
-14
No files found.
src/views/jira/Notify.vue
View file @
6d60141e
...
@@ -113,6 +113,10 @@ export default {
...
@@ -113,6 +113,10 @@ export default {
},
},
// 新增
// 新增
addRobotProject
()
{
addRobotProject
()
{
this
.
$refs
.
addRobotFormRef
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
}
else
{
addProjectRobot
(
this
.
robotForm
).
then
((
resp
)
=>
{
addProjectRobot
(
this
.
robotForm
).
then
((
resp
)
=>
{
if
(
resp
.
data
.
data
===
true
)
{
if
(
resp
.
data
.
data
===
true
)
{
this
.
addDialogVisible
=
false
this
.
addDialogVisible
=
false
...
@@ -122,9 +126,15 @@ export default {
...
@@ -122,9 +126,15 @@ export default {
return
this
.
$message
.
error
(
resp
.
data
.
msg
)
return
this
.
$message
.
error
(
resp
.
data
.
msg
)
}
}
})
})
}
})
},
},
// 编辑
// 编辑
editRobotProject
()
{
editRobotProject
()
{
this
.
$refs
.
editRobotFormRef
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
}
else
{
modifyProjectRobot
(
this
.
editRobotForm
).
then
((
resp
)
=>
{
modifyProjectRobot
(
this
.
editRobotForm
).
then
((
resp
)
=>
{
if
(
resp
.
data
.
data
===
true
)
{
if
(
resp
.
data
.
data
===
true
)
{
this
.
editDialogVisible
=
false
this
.
editDialogVisible
=
false
...
@@ -134,6 +144,8 @@ export default {
...
@@ -134,6 +144,8 @@ export default {
return
this
.
$message
.
error
(
resp
.
data
.
msg
)
return
this
.
$message
.
error
(
resp
.
data
.
msg
)
}
}
})
})
}
})
},
},
// 删除
// 删除
delProjectRobot
(
robotId
)
{
delProjectRobot
(
robotId
)
{
...
...
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