|
@@ -1,8 +1,10 @@
|
|
import { defineComponent, reactive, ref } from 'vue'
|
|
import { defineComponent, reactive, ref } from 'vue'
|
|
import styles from './approval-item.module.less'
|
|
import styles from './approval-item.module.less'
|
|
import clockIcon from '@/school/attendance/images/clock-icon.png'
|
|
import clockIcon from '@/school/attendance/images/clock-icon.png'
|
|
-
|
|
|
|
|
|
+import passIcon from '../images/pass-icon.png'
|
|
|
|
+import unpassIcon from '../images/unpass-icon.png'
|
|
import defaultIcon from '@/school/images/default-icon.jpg'
|
|
import defaultIcon from '@/school/images/default-icon.jpg'
|
|
|
|
+import msgIcon from '@/school/images/msg-icon.png'
|
|
import { Icon, ActionSheet } from 'vant'
|
|
import { Icon, ActionSheet } from 'vant'
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
@@ -23,23 +25,44 @@ export default defineComponent({
|
|
<img src={clockIcon} alt="" />
|
|
<img src={clockIcon} alt="" />
|
|
</div>
|
|
</div>
|
|
<p class={styles.leftTimer}>
|
|
<p class={styles.leftTimer}>
|
|
- {dayjs(props.item.startTime).format('YYYY-MM-DD hh:mm')}
|
|
|
|
- {'-'}
|
|
|
|
- {dayjs(props.item.endTime).format('hh:mm')}
|
|
|
|
|
|
+ {dayjs(props.item.createTime).format('YYYY-MM-DD hh:mm')}
|
|
</p>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
- <div class={styles.itemWrapTopRight}>
|
|
|
|
- <Icon name="arrow"></Icon>
|
|
|
|
- </div>
|
|
|
|
|
|
+ {props.type == 'end' && props.item.status == 'PASS' ? (
|
|
|
|
+ <div class={styles.itemWrapTopRight}>
|
|
|
|
+ <Icon class={styles.passIcon} name={passIcon}></Icon>
|
|
|
|
+ <p class={styles.passLabel}>通过</p>
|
|
|
|
+ </div>
|
|
|
|
+ ) : null}
|
|
|
|
+ {props.type == 'end' && props.item.status == 'UNPASS' ? (
|
|
|
|
+ <div class={styles.itemWrapTopRight}>
|
|
|
|
+ <Icon class={styles.passIcon} name={unpassIcon}></Icon>
|
|
|
|
+ <p class={styles.unpassLabel}>拒绝</p>
|
|
|
|
+ </div>
|
|
|
|
+ ) : null}
|
|
|
|
+ {props.type == 'doing' && props.item.status == 'DOING' ? (
|
|
|
|
+ <div class={styles.itemWrapTopRight}>
|
|
|
|
+ <Icon class={styles.msgIcon} name={msgIcon}></Icon>
|
|
|
|
+ </div>
|
|
|
|
+ ) : null}
|
|
</div>
|
|
</div>
|
|
<div class={styles.itemWrapBottom}>
|
|
<div class={styles.itemWrapBottom}>
|
|
<div class={styles.courseInfo}>
|
|
<div class={styles.courseInfo}>
|
|
- <img class={styles.headImgs} src={defaultIcon} alt="" />
|
|
|
|
- <div class={styles.infoMsg}>
|
|
|
|
- <p class={styles.infoMsgMain}>
|
|
|
|
- {props.item.classGroupName}-{props.item.teacherName}
|
|
|
|
- </p>
|
|
|
|
- <p class={styles.infoMsgSub}>{props.item.orchestraName}</p>
|
|
|
|
|
|
+ <div class={styles.courseInfoLeft}>
|
|
|
|
+ <img class={styles.headImgs} src={defaultIcon} alt="" />
|
|
|
|
+ <div class={styles.infoMsg}>
|
|
|
|
+ <p class={styles.infoMsgMain}>{props.item.nickName}</p>
|
|
|
|
+ {props.item.clientType == 'STUDENT' ? (
|
|
|
|
+ <p class={[styles.infoMsgSub, styles.student]}>学生</p>
|
|
|
|
+ ) : (
|
|
|
|
+ <p class={[styles.infoMsgSub, styles.teacher]}>老师</p>
|
|
|
|
+ )}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class={styles.courseInfoRight}>
|
|
|
|
+ {props.item.leaveCategoryId == 1 ? <p class={styles.approvalType}>请假</p> : null}
|
|
|
|
+ {props.item.leaveCategoryId == 2 ? <p class={styles.approvalType}>退团</p> : null}
|
|
|
|
+ {props.type != 'doing' ? <Icon class={styles.icons} name="arrow"></Icon> : null}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|