|
@@ -4,6 +4,8 @@ import iconArrow1 from '../images/icon-arrow1.png'
|
|
|
import iconArrow11 from '../images/icon-arrow1-1.png'
|
|
|
import icon1 from '../images/icon-1.png'
|
|
|
import icon2 from '../images/icon-2.png'
|
|
|
+import ArrowUp from '../images/arrow-up.png'
|
|
|
+import ArrowUpActive from '../images/arrow-up-active.png'
|
|
|
import iconDownload from '../images/icon-download.png'
|
|
|
import { Button, DatetimePicker, Icon, Popup, Toast } from 'vant'
|
|
|
import Echats from './echats'
|
|
@@ -57,20 +59,28 @@ export default defineComponent({
|
|
|
sessionStorage.removeItem(catchKey)
|
|
|
|
|
|
const searchStatus = ref(false)
|
|
|
- const currentType = ref<TIME_TYPE>(catchSearch.currentType !== undefined ? catchSearch.currentType : 'MONTH')
|
|
|
+ const currentType = ref<TIME_TYPE>(
|
|
|
+ catchSearch.currentType !== undefined ? catchSearch.currentType : 'HALF_YEAR'
|
|
|
+ )
|
|
|
|
|
|
const searchObj = reactive({
|
|
|
- tempSubjectId: catchSearch.subjectId || '' as any,
|
|
|
- type: catchSearch.currentType !== undefined ? catchSearch.currentType : 'MONTH' as TIME_TYPE
|
|
|
+ tempSubjectId: catchSearch.subjectId || ('' as any),
|
|
|
+ type:
|
|
|
+ catchSearch.currentType !== undefined
|
|
|
+ ? catchSearch.currentType
|
|
|
+ : ('MONTH' as TIME_TYPE)
|
|
|
})
|
|
|
- const timeRange = catchSearch.startTime && catchSearch.endTime ? {
|
|
|
- startTime: catchSearch.startTime,
|
|
|
- endTime: catchSearch.endTime
|
|
|
- } : getTimeRange(currentType.value)
|
|
|
+ const timeRange =
|
|
|
+ catchSearch.startTime && catchSearch.endTime
|
|
|
+ ? {
|
|
|
+ startTime: catchSearch.startTime,
|
|
|
+ endTime: catchSearch.endTime
|
|
|
+ }
|
|
|
+ : getTimeRange(currentType.value)
|
|
|
const forms = reactive({
|
|
|
loading: false,
|
|
|
dataShow: true,
|
|
|
- subjectId: catchSearch.subjectId || '' as any, // 选择的声部
|
|
|
+ subjectId: catchSearch.subjectId || ('' as any), // 选择的声部
|
|
|
subjectList: [] as any,
|
|
|
startTimeStatus: false,
|
|
|
startTimeClosedStatus: false,
|
|
@@ -333,16 +343,19 @@ export default defineComponent({
|
|
|
|
|
|
/** 跳转详情 */
|
|
|
const toDetail = (item: any) => {
|
|
|
- sessionStorage.setItem(catchKey, JSON.stringify({
|
|
|
- startTime: forms.startTimeStr,
|
|
|
- endTime: forms.endTimeStr,
|
|
|
- currentType: currentType.value,
|
|
|
- subjectId: forms.subjectId
|
|
|
- }))
|
|
|
+ sessionStorage.setItem(
|
|
|
+ catchKey,
|
|
|
+ JSON.stringify({
|
|
|
+ startTime: forms.startTimeStr,
|
|
|
+ endTime: forms.endTimeStr,
|
|
|
+ currentType: currentType.value,
|
|
|
+ subjectId: forms.subjectId
|
|
|
+ })
|
|
|
+ )
|
|
|
router.push({
|
|
|
path: '/exercise-detail',
|
|
|
query: {
|
|
|
- studentId: item.userId || '',
|
|
|
+ studentId: item.userId || ''
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -477,38 +490,32 @@ export default defineComponent({
|
|
|
>
|
|
|
练习时长
|
|
|
<div class={styles.filters}>
|
|
|
- <i class={['iconfont iconfont-down', styles.upArrow]} style={{ color: forms.sortField === 'totalPracticeTime' &&
|
|
|
+ {/* <i class={['iconfont iconfont-down', styles.upArrow]} style={{ color: forms.sortField === 'totalPracticeTime' &&
|
|
|
forms.sortType === 'ASC'
|
|
|
? 'rgba(223, 128, 16, 1)'
|
|
|
: 'rgba(0, 0, 0, 0.20)' }}></i>
|
|
|
<i class={['iconfont iconfont-down', styles.downArrow]} style={{ color: forms.sortField === 'totalPracticeTime' &&
|
|
|
forms.sortType === 'DESC'
|
|
|
? 'rgba(223, 128, 16, 1)'
|
|
|
- : 'rgba(0, 0, 0, 0.20)' }}></i>
|
|
|
- {/* <Icon
|
|
|
- classPrefix="iconfont"
|
|
|
- name="down"
|
|
|
- class={styles.upArrow}
|
|
|
- size={12}
|
|
|
- color={
|
|
|
+ : 'rgba(0, 0, 0, 0.20)' }}></i> */}
|
|
|
+ <img
|
|
|
+ src={
|
|
|
forms.sortField === 'totalPracticeTime' &&
|
|
|
forms.sortType === 'ASC'
|
|
|
- ? 'rgba(223, 128, 16, 1)'
|
|
|
- : 'rgba(0, 0, 0, 0.20)'
|
|
|
+ ? ArrowUpActive
|
|
|
+ : ArrowUp
|
|
|
}
|
|
|
+ class={styles.upArrow}
|
|
|
/>
|
|
|
- <Icon
|
|
|
- classPrefix="iconfont"
|
|
|
- name="down"
|
|
|
- class={styles.downArrow}
|
|
|
- size={12}
|
|
|
- color={
|
|
|
+ <img
|
|
|
+ src={
|
|
|
forms.sortField === 'totalPracticeTime' &&
|
|
|
forms.sortType === 'DESC'
|
|
|
- ? 'rgba(223, 128, 16, 1)'
|
|
|
- : 'rgba(0, 0, 0, 0.20)'
|
|
|
+ ? ArrowUpActive
|
|
|
+ : ArrowUp
|
|
|
}
|
|
|
- /> */}
|
|
|
+ class={styles.downArrow}
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
</th>
|
|
@@ -520,14 +527,34 @@ export default defineComponent({
|
|
|
>
|
|
|
平均练习时长
|
|
|
<div class={styles.filters}>
|
|
|
- <i class={['iconfont iconfont-down', styles.upArrow]} style={{ color: forms.sortField === 'averagePracticeTime' &&
|
|
|
+ {/* <i class={['iconfont iconfont-down', styles.upArrow]} style={{ color: forms.sortField === 'averagePracticeTime' &&
|
|
|
forms.sortType === 'ASC'
|
|
|
? 'rgba(223, 128, 16, 1)'
|
|
|
: 'rgba(0, 0, 0, 0.20)' }}></i>
|
|
|
<i class={['iconfont iconfont-down', styles.downArrow]} style={{ color: forms.sortField === 'averagePracticeTime' &&
|
|
|
forms.sortType === 'DESC'
|
|
|
? 'rgba(223, 128, 16, 1)'
|
|
|
- : 'rgba(0, 0, 0, 0.20)' }}></i>
|
|
|
+ : 'rgba(0, 0, 0, 0.20)' }}></i> */}
|
|
|
+
|
|
|
+ <img
|
|
|
+ src={
|
|
|
+ forms.sortField === 'averagePracticeTime' &&
|
|
|
+ forms.sortType === 'ASC'
|
|
|
+ ? ArrowUpActive
|
|
|
+ : ArrowUp
|
|
|
+ }
|
|
|
+ class={styles.upArrow}
|
|
|
+ />
|
|
|
+ <img
|
|
|
+ src={
|
|
|
+ forms.sortField === 'averagePracticeTime' &&
|
|
|
+ forms.sortType === 'DESC'
|
|
|
+ ? ArrowUpActive
|
|
|
+ : ArrowUp
|
|
|
+ }
|
|
|
+ class={styles.downArrow}
|
|
|
+ />
|
|
|
+ <img />
|
|
|
</div>
|
|
|
</div>
|
|
|
</th>
|
|
@@ -560,7 +587,7 @@ export default defineComponent({
|
|
|
<ColResult
|
|
|
classImgSize="SMALL"
|
|
|
btnStatus={false}
|
|
|
- tips="暂无数据~"
|
|
|
+ tips="暂无数据"
|
|
|
/>
|
|
|
)}
|
|
|
</div>
|