Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
周远喜
mes-ui
Commits
ea1b0bdb
Commit
ea1b0bdb
authored
Oct 28, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op task
parent
43dd63ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
opration.vue
components/page/opration.vue
+12
-11
index.vue
pages/project/task/index.vue
+4
-0
No files found.
components/page/opration.vue
View file @
ea1b0bdb
...
...
@@ -81,17 +81,18 @@ export default {
},
methods
:
{
handler
()
{
if
(
this
.
oprate
==
"delete"
||
this
.
oprate
==
"remove"
)
{
this
.
$Modal
.
confirm
({
title
:
this
.
title
,
content
:
"<p>"
+
this
.
msg
+
"</p>"
,
onOk
:
()
=>
{
this
.
$emit
(
"click"
,
event
);
}
});
}
else
{
this
.
$emit
(
"click"
,
event
);
if
(
this
.
disable
==
0
)
{
if
(
this
.
oprate
==
"delete"
||
this
.
oprate
==
"remove"
)
{
this
.
$Modal
.
confirm
({
title
:
this
.
title
,
content
:
"<p>"
+
this
.
msg
+
"</p>"
,
onOk
:
()
=>
{
this
.
$emit
(
"click"
,
event
);
}
});
}
else
{
this
.
$emit
(
"click"
,
event
);
}
}
}
},
...
...
pages/project/task/index.vue
View file @
ea1b0bdb
...
...
@@ -275,6 +275,7 @@ export default {
type
:
"icon"
,
oprate
:
"edit"
,
title
:
params
.
row
.
status
==
0
?
"开始"
:
params
.
row
.
status
==
2
?
"继续"
:
''
,
disable
:
params
.
row
.
status
//disable: (params.row.status == 0 || params.row.status == 2) ? false : true
},
on
:
{
...
...
@@ -310,6 +311,7 @@ export default {
type
:
"icon"
,
oprate
:
"add"
,
title
:
"新增记录"
,
disable
:
params
.
row
.
status
==
1
?
0
:
1
// disable: (params.row.status != 3 && params.row.status != 4) ? false : true
},
on
:
{
...
...
@@ -322,6 +324,7 @@ export default {
type
:
"icon"
,
oprate
:
"edit"
,
title
:
"修改"
,
disable
:
params
.
row
.
status
//disable: (params.row.status == 0 || params.row.status == 2) ? false : true
},
on
:
{
...
...
@@ -334,6 +337,7 @@ export default {
type
:
"icon"
,
title
:
"删除"
,
oprate
:
'delete'
,
disable
:
params
.
row
.
status
// disable: (params.row.status == 0 || params.row.status == 3) ? false : true
},
on
:
{
...
...
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