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
f2c0687c
Commit
f2c0687c
authored
Dec 03, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
87014c48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
10 deletions
+29
-10
teachTable.vue
src/pages/teacher/components/teachTable.vue
+29
-10
No files found.
src/pages/teacher/components/teachTable.vue
View file @
f2c0687c
<
template
>
<
template
>
<div
style=
"padding: 20px 0"
>
<div
style=
"padding: 20px 0"
>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<q-table
:pagination=
"setMsg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
<q-table
:pagination=
"setMsg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
separator=
"none"
:data=
"tableData"
:columns=
"showCZ ? columns : columns2"
row-key=
"name"
>
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"tableData"
:columns=
"showCZ ? columns : columns2"
row-key=
"name"
>
<template
v-slot:body-cell-GuestList=
"props"
>
<template
v-slot:body-cell-GuestList=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-td
auto-width
:props=
"props"
>
<span
v-for=
"(item, index) in props.row.GuestList"
style=
"margin-right: 5px"
:key=
"index"
>
<span
v-for=
"(item, index) in props.row.GuestList"
style=
"margin-right: 5px"
:key=
"index"
>
...
@@ -26,12 +27,22 @@
...
@@ -26,12 +27,22 @@
<
template
v-slot:body-cell-TotalPlanNum=
"props"
>
<
template
v-slot:body-cell-TotalPlanNum=
"props"
>
<q-td>
{{
props
.
row
.
Ranks
}}
/
{{
props
.
row
.
TotalPlanNum
}}
</q-td>
<q-td>
{{
props
.
row
.
Ranks
}}
/
{{
props
.
row
.
TotalPlanNum
}}
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-IsCheckSign=
"props"
>
<q-td>
<template
v-if=
"props.row.IsCheckSign"
>
<font
style=
"color:green"
>
已签到
</font>
</
template
>
<
template
v-else
>
<font
style=
"color:red;"
>
未签到
</font>
</
template
>
</q-td>
</template>
<
template
v-slot:body-cell-optioned=
"props"
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td>
<q-td>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-view"
v-if=
"props.row.ClassType == 1||props.row.ClassType == 3"
color=
"accent"
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-view"
v-if=
"props.row.ClassType == 1||props.row.ClassType == 3"
style=
"font-weight: 400"
label=
"课程回顾"
@
click=
"goCourseRecord(props.row)"
/>
color=
"accent"
style=
"font-weight: 400"
label=
"课程回顾"
@
click=
"goCourseRecord(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-view"
v-if=
"props.row.ClassType == 1||props.row.ClassType == 3"
color=
"accent"
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-view"
v-if=
"props.row.ClassType == 1||props.row.ClassType == 3"
style=
"font-weight: 400"
label=
"课程反馈"
@
click=
"goFeedBack(props.row)"
/>
color=
"accent"
style=
"font-weight: 400"
label=
"课程反馈"
@
click=
"goFeedBack(props.row)"
/>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
...
@@ -62,9 +73,9 @@
...
@@ -62,9 +73,9 @@
Type
:
Boolean
,
Type
:
Boolean
,
default
:
true
,
default
:
true
,
},
},
loading
:{
loading
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
}
}
},
},
meta
:
{
meta
:
{
...
@@ -109,6 +120,12 @@
...
@@ -109,6 +120,12 @@
field
:
"TeacherName"
,
field
:
"TeacherName"
,
align
:
"left"
,
align
:
"left"
,
},
},
{
name
:
"IsCheckSign"
,
label
:
"是否签到"
,
field
:
"IsCheckSign"
,
align
:
"left"
,
},
{
{
name
:
"TotalPlanNum"
,
name
:
"TotalPlanNum"
,
label
:
"课程进度"
,
label
:
"课程进度"
,
...
@@ -199,7 +216,9 @@
...
@@ -199,7 +216,9 @@
},
},
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"sass"
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
</
style
>
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