Commit f2c0687c authored by 黄奎's avatar 黄奎

11

parent 87014c48
<template>
<div style="padding: 20px 0">
<div class="page-content">
<q-table :pagination="setMsg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table sticky-right-column-table"
separator="none" :data="tableData" :columns="showCZ ? columns : columns2" row-key="name">
<q-table :pagination="setMsg" :loading="loading" no-data-label="暂无相关数据" flat
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">
<q-td auto-width :props="props">
<span v-for="(item, index) in props.row.GuestList" style="margin-right: 5px" :key="index">
......@@ -26,12 +27,22 @@
<template v-slot:body-cell-TotalPlanNum="props">
<q-td> {{ props.row.Ranks }}/{{ props.row.TotalPlanNum }} </q-td>
</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">
<q-td>
<q-btn flat size="xs" icon="iconfont icon-view" v-if="props.row.ClassType == 1||props.row.ClassType == 3" 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"
style="font-weight: 400" label="课程反馈" @click="goFeedBack(props.row)" />
<q-btn flat size="xs" icon="iconfont icon-view" v-if="props.row.ClassType == 1||props.row.ClassType == 3"
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" style="font-weight: 400" label="课程反馈" @click="goFeedBack(props.row)" />
</q-td>
</template>
<template v-slot:bottom>
......@@ -62,9 +73,9 @@
Type: Boolean,
default: true,
},
loading:{
type:Boolean,
default:false,
loading: {
type: Boolean,
default: false,
}
},
meta: {
......@@ -109,6 +120,12 @@
field: "TeacherName",
align: "left",
},
{
name: "IsCheckSign",
label: "是否签到",
field: "IsCheckSign",
align: "left",
},
{
name: "TotalPlanNum",
label: "课程进度",
......@@ -199,7 +216,9 @@
},
},
};
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment