Commit f2c0687c authored by 黄奎's avatar 黄奎

11

parent 87014c48
<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> </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