|
@@ -0,0 +1,129 @@
|
|
|
|
+import OHeader from '@/components/o-header'
|
|
|
|
+import { defineComponent, reactive } from 'vue'
|
|
|
|
+import styles from './report.module.less'
|
|
|
|
+import iconOrchestra from '@/views/mine-orchestra/images/icon-or.png'
|
|
|
|
+import { Grid, GridItem, Icon, Image, Popup } from 'vant'
|
|
|
|
+import trainWeek from './images/month/icon-train-month.png'
|
|
|
|
+import OrchestraNum from './modal/orchestra-num'
|
|
|
|
+import TrainClass from './modal/train-class'
|
|
|
|
+import StudentAttendance from './modal/student-attendance'
|
|
|
|
+import TeacherAttendance from './modal/teacher-attendance'
|
|
|
|
+import TrainProgress from './modal/train-progress'
|
|
|
|
+import iconPhoto from './images/icon-photo.png'
|
|
|
|
+import iconClass from './images/icon-class.png'
|
|
|
|
+import iconSaveImage from '@/school/orchestra/images/icon-save-image.png'
|
|
|
|
+import iconWechat from '@/school/orchestra/images/icon-wechat.png'
|
|
|
|
+import OQrcode from '@/components/o-qrcode'
|
|
|
|
+
|
|
|
|
+export default defineComponent({
|
|
|
|
+ name: 'train-report',
|
|
|
|
+ setup() {
|
|
|
|
+ const forms = reactive({
|
|
|
|
+ showQrcode: false,
|
|
|
|
+ url: 'http://'
|
|
|
|
+ })
|
|
|
|
+ return () => (
|
|
|
|
+ <div class={[styles.trainWeek, styles.trainMonth]}>
|
|
|
|
+ <div class={styles.trainContainer}></div>
|
|
|
|
+ <OHeader background="transparent" border={false} title=" ">
|
|
|
|
+ {{
|
|
|
|
+ right: () => <i class={styles.iconShare} onClick={() => (forms.showQrcode = true)}></i>
|
|
|
|
+ }}
|
|
|
|
+ </OHeader>
|
|
|
|
+ <div class={[styles.headerContant, styles.teacherHeaderContant]}>
|
|
|
|
+ <div class={styles.orchestra}>
|
|
|
|
+ <Image src={iconOrchestra} class={styles.iconOrchestra} />
|
|
|
|
+ <span>武汉市洪山区实验小学第一届乐团</span>
|
|
|
|
+ </div>
|
|
|
|
+ <Image src={trainWeek} class={styles.iconTrainWeek} />
|
|
|
|
+ <div class={styles.trainTimer}>2023/1/16-2023/1/22</div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <OrchestraNum type="month" />
|
|
|
|
+ <TrainClass type="month" />
|
|
|
|
+
|
|
|
|
+ <div class={[styles.trainPhoto, styles.teacherTrainPhoto]}>
|
|
|
|
+ <Image src={iconPhoto} class={styles.iconPhoto} />
|
|
|
|
+ <p>
|
|
|
|
+ 本月上传<span>17</span>张训练照片
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <StudentAttendance type="month" />
|
|
|
|
+ <TeacherAttendance type="month" />
|
|
|
|
+
|
|
|
|
+ <div class={[styles.trainPhoto, styles.teacherTrainClass, styles.trainClass]}>
|
|
|
|
+ <Image src={iconClass} class={styles.iconPhoto} />
|
|
|
|
+ <div>
|
|
|
|
+ <p>课件使用未达标班级</p>
|
|
|
|
+ <p class={styles.subjectNames}>长笛班 单簧管班 萨克斯班 小号班 大号</p>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <TrainProgress type="month" />
|
|
|
|
+
|
|
|
|
+ <Popup
|
|
|
|
+ v-model:show={forms.showQrcode}
|
|
|
|
+ position="bottom"
|
|
|
|
+ style={{ background: 'transparent' }}
|
|
|
|
+ >
|
|
|
|
+ <div class={styles.codeContainer}>
|
|
|
|
+ <div class={[styles.codeImg, styles.teacherCodeImg]} id="preview-container">
|
|
|
|
+ <div class={styles.codeContent}>
|
|
|
|
+ <div
|
|
|
|
+ class={[
|
|
|
|
+ styles.headerContant,
|
|
|
|
+ styles.teacherHeaderContant,
|
|
|
|
+ styles.headerContantPopup
|
|
|
|
+ ]}
|
|
|
|
+ >
|
|
|
|
+ <div class={styles.orchestra}>
|
|
|
|
+ <Image src={iconOrchestra} class={styles.iconOrchestra} />
|
|
|
|
+ <span>武汉市洪山区实验小学第一届乐团</span>
|
|
|
|
+ </div>
|
|
|
|
+ <Image src={trainWeek} class={styles.iconTrainWeek} />
|
|
|
|
+ <div class={styles.trainTimer}>2023/1/16-2023/1/22</div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class={styles.codeQr}>
|
|
|
|
+ <OQrcode text={forms.url} size={'100%'} logoSize="small" />
|
|
|
|
+ </div>
|
|
|
|
+ <div style={{ textAlign: 'center' }}>
|
|
|
|
+ <span class={styles.codeBtnText}>
|
|
|
|
+ 扫描上方二维码<span>查看训练月报</span>
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class={styles.codeBottom}>
|
|
|
|
+ <Icon
|
|
|
|
+ name="cross"
|
|
|
|
+ size={22}
|
|
|
|
+ class={styles.close}
|
|
|
|
+ color="#666"
|
|
|
|
+ onClick={() => (forms.showQrcode = false)}
|
|
|
|
+ />
|
|
|
|
+
|
|
|
|
+ <h3 class={styles.title}>
|
|
|
|
+ <i></i>分享方式
|
|
|
|
+ </h3>
|
|
|
|
+ <Grid columnNum={2} border={false}>
|
|
|
|
+ <GridItem>
|
|
|
|
+ {{
|
|
|
|
+ icon: () => <Image class={styles.shareImg} src={iconSaveImage} />,
|
|
|
|
+ text: () => <div class={styles.shareText}>保存图片</div>
|
|
|
|
+ }}
|
|
|
|
+ </GridItem>
|
|
|
|
+ <GridItem>
|
|
|
|
+ {{
|
|
|
|
+ icon: () => <Image class={styles.shareImg} src={iconWechat} />,
|
|
|
|
+ text: () => <div class={styles.shareText}>微信</div>
|
|
|
|
+ }}
|
|
|
|
+ </GridItem>
|
|
|
|
+ </Grid>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </Popup>
|
|
|
|
+ </div>
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+})
|