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
87996160
Commit
87996160
authored
Jun 27, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排班小图标渲染速度慢,刷新一下10+秒
parent
a2708fea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
calholiday.js
src/api/mes/cal/calholiday.js
+8
-0
index.vue
src/views/mes/cal/holiday/index.vue
+10
-5
No files found.
src/api/mes/cal/calholiday.js
View file @
87996160
...
...
@@ -8,6 +8,14 @@ export function listCalholiday(query) {
params
:
query
});
}
// 查询工作日设置列表
export
function
daylistCalholiday
(
query
)
{
return
request
({
url
:
"/mes/cal/calendar/daylist"
,
method
:
"get"
,
params
:
query
});
}
// 查询工作日设置列表
export
function
getCalWorkunits
(
query
)
{
...
...
src/views/mes/cal/holiday/index.vue
View file @
87996160
<
template
>
<div
class=
"app-container"
>
<el-calendar
v-model=
"date"
>
<template
slot=
"dateCell"
slot-scope=
"
{date, data }">
<div
@
contextmenu
.
prevent=
"onRightClick(data)"
>
<el-row>
<template
slot=
"dateCell"
slot-scope=
"
{date, data }"
>
<div
@
contextmenu
.
prevent=
"onRightClick(data)"
@
click
.
stop
.
prevent=
"clickcancel"
style=
"height: 100%; margin: -8px; padding: 8px"
>
<el-row
style=
"height: 100%;"
>
<!--
<el-col
:span=
"16"
>
<div
class=
"solar"
>
{{
data
.
day
.
split
(
'-'
)[
2
]
}}
...
...
@@ -63,7 +63,7 @@
</template>
<
script
>
import
{
listCalholiday
,
getCalholiday
,
delCalholiday
,
addCalholiday
,
updateCalholiday
}
from
"@/api/mes/cal/calholiday"
;
import
{
day
listCalholiday
,
getCalholiday
,
delCalholiday
,
addCalholiday
,
updateCalholiday
}
from
"@/api/mes/cal/calholiday"
;
import
ItemIndex
from
"./itemIndex"
;
import
calendar
from
'@/utils/calendar'
;
export
default
{
...
...
@@ -106,14 +106,19 @@ export default {
created
()
{
this
.
getList
();
},
mounted
(){
},
methods
:{
clickcancel
()
{
console
.
log
(
'sadasd'
)
},
/** 查询节假日设置列表 */
getList
()
{
this
.
loading
=
true
;
this
.
holidayList
=
[];
this
.
workdayList
=
[];
let
that
=
this
;
listCalholiday
(
this
.
queryParams
).
then
(
response
=>
{
day
listCalholiday
(
this
.
queryParams
).
then
(
response
=>
{
if
(
response
.
data
!=
null
){
response
.
data
.
forEach
(
theDay
=>
{
if
(
theDay
.
holidayType
==
'HOLIDAY'
){
...
...
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