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
acb8e040
Commit
acb8e040
authored
Nov 06, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tasktime edit
parent
4855c257
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
index.vue
pages/produce/execute/taskTime/index.vue
+13
-4
No files found.
pages/produce/execute/taskTime/index.vue
View file @
acb8e040
...
...
@@ -51,21 +51,25 @@
<p
class=
"gs_p"
>
<span
class=
"b_size"
>
100
</span>
秒
</p>
-->
<p
class=
"gs_footer"
v-if=
"topInfoShow.subWorkHourStatus
==0
"
>
<p
class=
"gs_footer"
v-if=
"topInfoShow.subWorkHourStatus
!=1
"
>
<a
class=
"gs_edit"
@
click=
"editItem(item, index)"
>
<Icon
type=
"md-create"
/>
编辑
{{
item
.
showInputWorkHour
?
'保存'
:
'编辑'
}}
</a>
<a
class=
"gs_del"
style=
"position: absolute; right: 0px; width: 50%"
@
click=
"delItem(item.id)"
>
<a
class=
"gs_del"
style=
"position: absolute; right: 0px; width: 50%"
@
click=
"cancelItem(item,index)"
v-if=
"item.showInputWorkHour"
>
<Icon
type=
"ios-undo"
/>
取消
</a>
<a
class=
"gs_del"
style=
"position: absolute; right: 0px; width: 50%"
@
click=
"delItem(item.id)"
v-else
>
<Icon
type=
"ios-trash-outline"
/>
删除
</a>
</p>
</Card>
<a
class=
"gs_card gs_add"
@
click=
"addItem"
v-show=
"this.waitHours != 0"
>
<Icon
type=
"ios-add"
style=
"vertical-align: middle"
/>
</a>
</div>
<div
style=
"text-align: center;height: 50px;width: 100%; position: absolute;bottom: 25px;"
v-if=
"topInfoShow.subWorkHourStatus
==0
"
>
<div
style=
"text-align: center;height: 50px;width: 100%; position: absolute;bottom: 25px;"
v-if=
"topInfoShow.subWorkHourStatus
!=1
"
>
<Button
type=
"primary"
v-noClick
@
click=
"submitWorkHour"
style=
"height: 50px; width: 100px"
>
提交
</Button>
...
...
@@ -256,6 +260,11 @@ export default {
item
.
showInputWorkHour
=
!
item
.
showInputWorkHour
;
this
.
$set
(
this
.
cardMan
,
index
,
item
);
},
cancelItem
(
item
,
index
)
{
// 取消
item
.
showInputWorkHour
=
false
;
this
.
$set
(
this
.
cardMan
,
index
,
item
);
},
// 删除工时
delItem
(
itmid
)
{
this
.
$Modal
.
confirm
({
...
...
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