|
|
@@ -17,16 +17,25 @@
|
|
|
<div :style="{height:(this.extending?'650px':'350px'), transition: 'height 0.5s'}">我的课程
|
|
|
<img alt="err" src="@/assets/myCourse.png" style="width: 100%; height: 80%">
|
|
|
</div>
|
|
|
- <div id="portal-test-card-body" :style="{height:(this.extending?'650px':'350px'), transition: 'height 0.5s'}" style="cursor: pointer" @click="toTest">
|
|
|
+ <div id="portal-test-card-body" :style="{height:(this.extending?'650px':'350px'), transition: 'height 0.5s'}" style="cursor: pointer">
|
|
|
<div id="portal-test-card-title">
|
|
|
<div id="portal-test-card-title-1">智能测试</div>
|
|
|
<ElButton type="primary" plain @click="toCourse">查看全部测试</ElButton>
|
|
|
</div>
|
|
|
- <div id="portal-test-card-main">
|
|
|
- <div v-for="(index) in devTemp_1" :key="index" class="cItem">
|
|
|
- <CourseItem/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <el-card id="portal-test-card-main">
|
|
|
+ <el-tabs v-model="activeTestName" @tab-click="changeTestPane">
|
|
|
+ <el-tab-pane label="评测题" name="eval">
|
|
|
+ <el-row justify="space-around">
|
|
|
+ <el-col :span="7" v-for="i in devTemp_1" :key="i">
|
|
|
+ <EvalCard :examVO="evalExamVOList[0]"></EvalCard>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="代码题" name="coder">
|
|
|
+ coder测试
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </el-card>
|
|
|
</div>
|
|
|
<div :style="{height:(this.extending?'650px':'350px'), transition: 'height 0.5s'}">我的测试
|
|
|
<img alt="err" src="@/assets/myTest.png" style="width: 100%; height: 80%">
|
|
|
@@ -41,15 +50,27 @@ import CarouselCard from "@/views/PortalPage/components/CarouselCard";
|
|
|
import InfoCard from "@/views/PortalPage/components/InfoCard";
|
|
|
import CourseItem from "@/components/CourseItem";
|
|
|
import GlobalFooter from "@/components/GlobalFooter";
|
|
|
+import EvalCard from "@/views/PortalPage/components/EvalCard";
|
|
|
|
|
|
export default {
|
|
|
//属性
|
|
|
name: "PortalPage",
|
|
|
- components: { GlobalFooter, CourseItem, InfoCard, CarouselCard, GlobalHeader },
|
|
|
+ components: { GlobalFooter, CourseItem, InfoCard, CarouselCard, GlobalHeader, EvalCard },
|
|
|
data() {
|
|
|
return {
|
|
|
extending: false,
|
|
|
devTemp_1: 3,
|
|
|
+ activeTestName: "eval",
|
|
|
+ evalExamVOList: [{
|
|
|
+ id: 10,
|
|
|
+ name: "软件工程测试1软件工程测试1",
|
|
|
+ startTime: "2022-02-20 00:00:00",
|
|
|
+ endTime: "2022-02-28 23:59:59",
|
|
|
+ teacher: "刘钦",
|
|
|
+ invigilate: false,
|
|
|
+ finished: false,
|
|
|
+ comment: " 主要考察软件工程的基本概念,一些基本算法,以及对面向对象基本思想的理解,掌握类图、用例图的画法"
|
|
|
+ }]
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -79,8 +100,11 @@ export default {
|
|
|
this.devTemp_1 = 3;
|
|
|
}
|
|
|
},
|
|
|
+ changeTestPane(tab, event) {
|
|
|
+ console.log(tab, event);
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style scoped src="./PortalPage.css"/>
|
|
|
+<style scoped src="./PortalPage.css"/>
|