|
@@ -15,9 +15,13 @@ import goClass from './images/goClass.png';
|
|
|
import boxIcon from './images/boxIcon.png';
|
|
|
import TeachList from './components/teachList';
|
|
|
import ChioseModal from './modals/chioseModal';
|
|
|
+import blueArrow from './images/blueArrow.png';
|
|
|
+import soureIcon from './images/soureIcon.png';
|
|
|
+import { useRouter } from 'vue-router';
|
|
|
export default defineComponent({
|
|
|
name: 'home-page',
|
|
|
setup() {
|
|
|
+ const router = useRouter();
|
|
|
const state = reactive({
|
|
|
loading: false,
|
|
|
pagination: {
|
|
@@ -117,11 +121,17 @@ export default defineComponent({
|
|
|
},
|
|
|
{
|
|
|
title: '提交率',
|
|
|
- key: 'submitRate'
|
|
|
+ key: 'submitRate',
|
|
|
+ render(row: any) {
|
|
|
+ return <span>{row.submitRate}%</span>;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '合格率',
|
|
|
- key: 'quantityRate'
|
|
|
+ key: 'quantityRate',
|
|
|
+ render(row: any) {
|
|
|
+ return <span>{row.quantityRate}%</span>;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|
|
@@ -217,27 +227,39 @@ export default defineComponent({
|
|
|
src={goClass}></NImage>
|
|
|
<p>开始上课</p>
|
|
|
</div>
|
|
|
+
|
|
|
<div class={styles.quickItem}>
|
|
|
<NImage
|
|
|
previewDisabled
|
|
|
class={styles.quickItemImg}
|
|
|
- src={cloundIcon}></NImage>
|
|
|
- <p>我的资源</p>
|
|
|
+ src={soureIcon}></NImage>
|
|
|
+ <p>布置作业</p>
|
|
|
</div>
|
|
|
- <div class={styles.quickItem}>
|
|
|
+ <div
|
|
|
+ class={styles.quickItem}
|
|
|
+ onClick={() => router.push('/natural-resources')}>
|
|
|
<NImage
|
|
|
previewDisabled
|
|
|
class={styles.quickItemImg}
|
|
|
- src={boxIcon}></NImage>
|
|
|
- <p>工具箱</p>
|
|
|
+ src={cloundIcon}></NImage>
|
|
|
+ <p>我的资源</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class={styles.rightTeachingWrap}>
|
|
|
- <h3 class={styles.rightTitle}>
|
|
|
- <div class={styles.titleDot}></div>教学进度
|
|
|
- </h3>
|
|
|
+ <div class={styles.rightTeachingWrapTitle}>
|
|
|
+ <h3 class={styles.rightTitle}>
|
|
|
+ <div class={styles.titleDot}></div>教学进度
|
|
|
+ </h3>
|
|
|
+ <div class={styles.lookMore}>
|
|
|
+ 查看全部{' '}
|
|
|
+ <NImage
|
|
|
+ src={blueArrow}
|
|
|
+ class={styles.lookMoreArrow}
|
|
|
+ previewDisabled></NImage>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<TeachList></TeachList>
|
|
|
</div>
|
|
|
</div>
|