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
2e121744
Commit
2e121744
authored
Oct 31, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'portal' of git.mes123.com:zhouyx/mes-ui into portal
parents
0099d2fb
65b2e67c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
309 additions
and
263 deletions
+309
-263
index.vue
pages/basicData/calendar/overtime/index.vue
+153
-134
add.vue
pages/basicData/calendar/work/add.vue
+2
-0
index.vue
pages/basicData/calendar/work/index.vue
+154
-129
No files found.
pages/basicData/calendar/overtime/index.vue
View file @
2e121744
...
...
@@ -154,17 +154,36 @@ export default {
]
}
},
created
()
{
this
.
getWeekTypeListFn
()
this
.
tableHeight
=
window
.
innerHeight
-
230
//获取公休日数组
getweekList
()
{
let
parmse
=
{
conditions
:
[],
isDesc
:
true
,
pageSize
:
10
}
Api
.
getWeekTypeList
(
parmse
).
then
((
res
)
=>
{
console
.
log
(
res
.
result
)
this
.
weekTypeList
=
res
.
result
})
},
mounted
()
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
window
.
screenHeight
=
window
.
innerHeight
this
.
tableHeight
=
window
.
screenHeight
-
230
})()
//设置公休日
radioChange
(
a
)
{
console
.
log
(
a
)
let
datArray
=
this
.
weekTypeList
datArray
.
map
(
u
=>
{
if
(
a
==
u
.
weekendTypeName
)
{
this
.
weekTypeid
=
u
.
id
}
})
let
id
=
this
.
weekTypeid
Api
.
setweek
({
id
:
id
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
weekFlag
=
true
}
else
{
this
.
weekFlag
=
false
console
.
log
(
'设置失败'
)
}
},
async
fetch
({
...
...
@@ -299,7 +318,7 @@ export default {
return
this
.
$t
(
vkey
)
||
key
}
}
}
}
</
script
>
<
style
lang=
"less"
>
...
...
pages/basicData/calendar/work/add.vue
View file @
2e121744
...
...
@@ -149,7 +149,9 @@ export default {
},
watch
:
{
v
()
{
console
.
log
(
v
)
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
);
this
.
selectAry
();
},
},
};
...
...
pages/basicData/calendar/work/index.vue
View file @
2e121744
This diff is collapsed.
Click to expand it.
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