Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
ReactWeb5
CivManage
Commits
d8a0f2d2
Commit
d8a0f2d2
authored
Dec 21, 2022
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改节假日不能周末不能修改问题,对样式进行优化
parent
44d809be
Pipeline
#65697
waiting for manual action with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
6 deletions
+29
-6
HolidayConfig.jsx
...bsmanager/workOrder/holidays/components/HolidayConfig.jsx
+5
-4
holidays.jsx
src/pages/bsmanager/workOrder/holidays/holidays.jsx
+8
-2
holidays.less
src/pages/bsmanager/workOrder/holidays/holidays.less
+16
-0
No files found.
src/pages/bsmanager/workOrder/holidays/components/HolidayConfig.jsx
View file @
d8a0f2d2
...
...
@@ -13,7 +13,7 @@ const HolidayConfig = props => {
useEffect
(()
=>
{
if
(
visible
)
{
let
obj
=
msg
.
msg
;
console
.
log
(
msg
.
holidayOptions
);
console
.
log
(
msg
,
'afsdfasd'
);
let
list
=
[...
holidaysList
].
map
(
item
=>
({
value
:
item
,
label
:
item
}));
if
(
obj
.
nWeek
===
6
)
{
list
.
push
({
value
:
'周六'
,
label
:
'周六'
});
...
...
@@ -21,7 +21,7 @@ const HolidayConfig = props => {
if
(
obj
.
nWeek
===
7
)
{
list
.
push
({
value
:
'周日'
,
label
:
'周日'
});
}
console
.
log
(
list
,
'list'
);
//
console.log(list, 'list');
setOptions
(
list
);
if
(
!
msg
.
isRest
)
{
confirm
({
...
...
@@ -46,7 +46,7 @@ const HolidayConfig = props => {
}
}
>
{
obj
.
nWeek
===
6
||
obj
.
nWeek
===
7
?
(
<
Select
placeholder=
"请选择假日名称"
options=
{
msg
.
holidayOptions
}
/>
<
Select
placeholder=
"请选择假日名称"
options=
{
list
}
/>
)
:
(
<
AutoComplete
placeholder=
"请输入假日名称"
options=
{
msg
.
holidayOptions
}
/>
)
}
...
...
@@ -162,11 +162,12 @@ const HolidayConfig = props => {
setFlag
(
flag
+
1
);
}
};
return
(
<
div
>
<
Modal
title=
{
null
}
visible=
{
visible
&&
(
msg
.
msg
.
nWeek
===
6
||
msg
.
msg
.
nWeek
===
7
)
}
visible=
{
visible
&&
(
msg
.
msg
.
nWeek
===
6
||
msg
.
msg
.
nWeek
===
7
)
&&
msg
.
isRest
}
onOk=
{
onFinish
}
onCancel=
{
handleCancel
}
maskClosable=
{
false
}
...
...
src/pages/bsmanager/workOrder/holidays/holidays.jsx
View file @
d8a0f2d2
...
...
@@ -133,6 +133,9 @@ const Holidays = () => {
document
.
querySelectorAll
(
'.ant-popconfirm'
).
forEach
(
ele
=>
{
ele
.
style
.
zoom
=
'normal'
;
});
document
.
querySelectorAll
(
'.ant-select-dropdown'
).
forEach
(
ele
=>
{
ele
.
style
.
zoom
=
'normal'
;
});
};
},
[]);
const
resizeListener
=
()
=>
{
...
...
@@ -236,6 +239,7 @@ const Holidays = () => {
let
obj
=
calendar
.
solar2lunar
(
year
,
month
,
day
);
let
date
=
`
${
year
}
-
${
month
}
-
${
day
}
`
;
let
holidayMsg
=
calendarHoliday
.
current
?.
get
(
date
);
let
today
=
moment
(
new
Date
()).
format
(
'YYYY-MM-DD'
);
return
(
<
div
key=
{
date
}
...
...
@@ -245,6 +249,7 @@ const Holidays = () => {
[
styles
.
holidays
]:
holidayMsg
?.
DayType
===
3
,
[
styles
.
weekend
]:
week
===
0
||
week
===
6
,
[
styles
.
choose
]:
date
===
currentDate
,
[
styles
.
today
]:
date
===
today
,
})
}
onDoubleClick=
{
()
=>
onSelect
(
value
,
obj
)
}
onClick=
{
e
=>
{
...
...
@@ -314,10 +319,11 @@ const Holidays = () => {
}
}
/>
<
Select
style=
{
{
margin
:
'0 5px'
}
}
style=
{
{
margin
:
'0 5px'
,
width
:
'80px'
}
}
dropdownMatchSelectWidth=
{
false
}
className=
"my-year-select"
value=
{
year
}
defaultOpen
onChange=
{
newYear
=>
{
console
.
log
(
newYear
);
const
now
=
value
.
clone
().
year
(
newYear
);
...
...
@@ -349,7 +355,7 @@ const Holidays = () => {
}
}
/>
<
Select
style=
{
{
margin
:
'0 5px'
}
}
style=
{
{
margin
:
'0 5px'
,
width
:
'80px'
}
}
dropdownMatchSelectWidth=
{
false
}
value=
{
month
}
onChange=
{
newMonth
=>
{
...
...
src/pages/bsmanager/workOrder/holidays/holidays.less
View file @
d8a0f2d2
...
...
@@ -187,6 +187,22 @@
.choose {
border: 1px solid #6394FF;
}
.today {
.tiemBox {
p:nth-of-type(1) {
color: #3D78FF;
font-weight: 700;
}
p:nth-of-type(2) {
color: #3D78FF;
font-weight: 700;
}
}
}
}
.workTiemContainer {
...
...
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