Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
629e738f
Commit
629e738f
authored
Apr 19, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
1a2c6609
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
eventsCalendar.vue
src/components/stuMan/eventsCalendar.vue
+16
-3
No files found.
src/components/stuMan/eventsCalendar.vue
View file @
629e738f
<
style
>
.eventsCalendar_Form
.el-calendar__body
.el-calendar-table
>
thead
>
th
{
border
:
1px
solid
#EBEEF5
;
border-bottom
:
0
;
}
.eventsCalendar_Form
{
padding
:
20px
0
;
background-color
:
#fff
;
...
...
@@ -176,7 +180,7 @@
}
.eventsCalendar_Form
.el-calendar__header
{
/* display: none; */
display
:
none
;
}
.eventsCalendar_Form
.on-left
{
...
...
@@ -238,8 +242,13 @@
<
template
>
<div>
<div
class=
"eventsCalendar_Form"
>
<div
style=
"text-align:right;margin:12px 20px 8px 0"
>
<el-date-picker
style=
"width:190px"
v-model=
"date"
type=
"month"
size=
"small"
value-format=
"yyyy-M-d"
@
change=
"getList()"
placeholder=
"选择日期"
>
</el-date-picker>
</div>
<template>
<el-calendar
v-model=
"
valu
e"
id=
"calendar"
style=
"margin-bottom:40px;"
>
<el-calendar
v-model=
"
dat
e"
id=
"calendar"
style=
"margin-bottom:40px;"
>
<template
slot=
"dateCell"
slot-scope=
"
{date, data}">
<div
class=
"calendar-day"
>
{{
data
.
day
.
split
(
'-'
).
slice
(
2
).
join
(
'-'
)
}}
</div>
<div
v-for=
"(item,index) in calendarData"
:key=
"index"
>
...
...
@@ -278,6 +287,7 @@ export default {
},
data
()
{
return
{
date
:
''
,
value
:
new
Date
(),
calendarData
:[],
msg
:{
...
...
@@ -290,7 +300,7 @@ export default {
},
watch
:
{
valu
e
:
{
dat
e
:
{
handler
(
val
)
{
if
(
val
)
{
var
d
=
new
Date
(
val
);
...
...
@@ -310,6 +320,7 @@ export default {
},
mounted
()
{
this
.
date
=
this
.
value
var
d
=
new
Date
();
var
currentY
=
d
.
getFullYear
();
var
currentM
=
d
.
getMonth
()
+
1
;
...
...
@@ -326,9 +337,11 @@ export default {
},
// 获取活动日历
getList
()
{
console
.
log
(
this
.
QMonth
,
'===='
)
this
.
apipostDS
(
"/api/Education/GetEduActivityCalendar"
,
this
.
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
calendarData
=
res
.
data
.
data
this
.
$forceUpdate
()
}
})
},
...
...
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