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
55f9c44c
Commit
55f9c44c
authored
Dec 23, 2020
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改样式
parent
6fd0c2cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
record-form.vue
src/components/course/record-form.vue
+21
-21
No files found.
src/components/course/record-form.vue
View file @
55f9c44c
<
style
>
<
style
>
#timeleft
div
{
#timeleft
div
{
height
:
8
0
px
;
height
:
8
1
px
;
color
:
#333333
;
color
:
#333333
;
}
}
#timeleft
div
:last-child
{
height
:
71px
;
}
#timecenter
div
{
#timecenter
div
{
height
:
65px
;
height
:
65px
;
color
:
#333333
;
color
:
#333333
;
...
@@ -64,7 +66,15 @@
...
@@ -64,7 +66,15 @@
position
:
absolute
;
position
:
absolute
;
left
:
130px
;
left
:
130px
;
}
}
.record_List
{
margin-bottom
:
10px
;
}
.record_List
:last-child
{
margin-bottom
:
0
;
}
.TeacherNameList
{
position
:
relative
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-body"
>
...
@@ -77,26 +87,22 @@
...
@@ -77,26 +87,22 @@
</div>
</div>
</div>
</div>
<div>
<div>
<div
class=
"col-10"
style=
"margin
-top:30px
;display:flex;"
<div
class=
"col-10"
style=
"margin
:20px 0 60px 0
;display:flex;"
v-if=
"dataList.resultList&&dataList.resultList.length>0"
>
v-if=
"dataList.resultList&&dataList.resultList.length>0"
>
<div
class=
"col-4"
id=
"timeleft"
>
<div
class=
"col-4"
id=
"timeleft"
>
<div
v-for=
"item in dataList.resultList"
>
<div
v-for=
"item in dataList.resultList"
>
{{
item
.
YearStr
}}
-
{{
item
.
MonthStr
}}
-
{{
item
.
DayStr
}}
{{
item
.
YearStr
}}
-
{{
item
.
MonthStr
}}
-
{{
item
.
DayStr
}}
</div>
</div>
</div>
</div>
<div
class=
"col-4"
id=
"timecenter"
>
<div
class=
"col-4"
id=
"timeright"
style=
"padding-left:25px;margin-left:25px;width:80%;border-left: 1px solid #d1d1d1;"
>
<div
class=
"timecenter_Line"
:style=
"
{'height':getHeight(dataList.resultList)}">
<div
v-for=
"item in dataList.resultList"
class=
"record_List"
>
<ul>
<div
class=
"TeacherNameList"
>
<li
class=
"cicle1"
v-for=
"(item,index) in dataList.resultList"
:class=
"
{'reCordRed':item.ColorType==1,'reCordBlue':item.ColorType==2,
{{
item
.
TeacherName
}}
'reCordOrange':item.ColorType==3}" :style="{'top':getTop(index)}">
<li
class=
"cicle1"
:class=
"
{'reCordRed':item.ColorType==1,'reCordBlue':item.ColorType==2,
'reCordOrange':item.ColorType==3}" style="position:absolute;top:0;left:-41px;">
{{
getFirst
(
item
.
TeacherName
)
}}
{{
getFirst
(
item
.
TeacherName
)
}}
</li>
</li>
</ul>
</div>
</div>
</div>
<div
class=
"col-4"
id=
"timeright"
style=
"margin-left:50px;width:80%;"
>
<div
v-for=
"item in dataList.resultList"
style=
"margin-bottom:10px;"
>
<p>
{{
item
.
TeacherName
}}
</p>
<div
class=
"TeacherContent"
>
<div
class=
"TeacherContent"
>
签到数
{{
item
.
CheckNum
}}
,缺勤数
{{
item
.
NoCheckNum
}}
签到数
{{
item
.
CheckNum
}}
,缺勤数
{{
item
.
NoCheckNum
}}
</div>
</div>
...
@@ -173,12 +179,6 @@
...
@@ -173,12 +179,6 @@
return
val
.
substr
(
0
,
1
);
return
val
.
substr
(
0
,
1
);
}
}
},
},
getTop
(
index
)
{
return
index
*
77
+
'px'
;
},
getHeight
(
data
)
{
return
(
data
.
length
-
1
)
*
80
+
'px'
}
},
},
watch
:
{
watch
:
{
setingObj
:
function
(
val
,
oldval
)
{
setingObj
:
function
(
val
,
oldval
)
{
...
...
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