Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
Project
Project
Details
Activity
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
pda
pda-ui
Commits
2ba9ee80
Commit
2ba9ee80
authored
Jun 27, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分页页数选择和排班班次
parent
a35212e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
shift.vue
src/views/mes/cal/plan/shift.vue
+15
-5
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+1
-0
No files found.
src/views/mes/cal/plan/shift.vue
View file @
2ba9ee80
...
...
@@ -218,12 +218,15 @@ export default {
return
this
.
$message
.
warning
(
'最少需要一个休息时段'
)
}
this
.
breakTimeList
.
splice
(
index
,
1
)
this
.
$nextTick
(()
=>
{
this
.
breakTimeList
[
0
][
'orderNum'
]
=
this
.
breakTimeList
.
length
})
},
addlist
(){
if
(
this
.
breakTimeList
.
length
>=
2
)
{
return
this
.
$message
.
warning
(
'最多只能增加两个休息时段'
)
}
this
.
breakTimeList
.
push
({
breakStartTime
:
null
,
breakEndTime
:
null
})
this
.
breakTimeList
.
push
({
breakStartTime
:
null
,
breakEndTime
:
null
,
orderNum
:
this
.
breakTimeList
.
length
+
1
})
},
/** 查询计划班次列表 */
getList
()
{
...
...
@@ -268,9 +271,10 @@ export default {
this
.
currentIndex
=
index
this
.
currentRow
=
row
this
.
form
=
Object
.
assign
({},
row
);
// this.breakTimeList = row.breakTimeList
this
.
breakTimeList
=
[]
this
.
breakTimeList
.
push
({
breakStartTime
:
row
.
breakStartTime
,
breakEndTime
:
row
.
breakEndTime
})
this
.
breakTimeList
=
row
.
breakTimeList
if
(
this
.
breakTimeList
.
length
===
0
){
this
.
breakTimeList
.
push
({
breakStartTime
:
null
,
breakEndTime
:
null
,
orderNum
:
this
.
breakTimeList
.
length
+
1
})
}
this
.
open
=
true
;
this
.
title
=
"修改计划班次"
;
},
...
...
@@ -285,7 +289,13 @@ export default {
this
.
currentRow
.
breakEndTime
=
this
.
form
.
breakEndTime
this
.
currentRow
.
breakStartTime
=
this
.
form
.
breakStartTime
this
.
currentRow
.
remark
=
this
.
form
.
remark
this
.
currentRow
.
breakTimeList
=
this
.
breakTimeList
const
list
=
[]
this
.
breakTimeList
.
forEach
(
i
=>
{
if
(
i
.
breakStartTime
&&
i
.
breakEndTime
)
{
list
.
push
({
breakStartTime
:
i
.
breakStartTime
,
breakEndTime
:
i
.
breakEndTime
,
orderNum
:
i
.
orderNum
})
}
})
this
.
currentRow
.
breakTimeList
=
list
this
.
open
=
false
;
// this.$set(this.shiftList, this.currentIndex, this.form)
}
...
...
src/views/mes/pro/workorder/indexApply.vue
View file @
2ba9ee80
...
...
@@ -559,6 +559,7 @@
<
pagination
v
-
show
=
"total > 0"
:
total
=
"total"
:
page
-
sizes
=
"[50, 100, 500, 1000, 2000, 3000, 4000]"
:
page
.
sync
=
"queryParams.pageNum"
:
limit
.
sync
=
"queryParams.pageSize"
@
pagination
=
"getList"
...
...
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