|
@@ -1,4 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
|
|
+
|
|
|
|
|
+ <PhotoChange></PhotoChange>
|
|
|
<div id="portal-body">
|
|
<div id="portal-body">
|
|
|
|
|
|
|
|
<CarouselCard style="grid-column-start: 1; grid-column-end: 3;"/>
|
|
<CarouselCard style="grid-column-start: 1; grid-column-end: 3;"/>
|
|
@@ -171,6 +173,7 @@ import MyCourseCard from "@/views/PortalPage/components/MyCourseCard";
|
|
|
import MyTestCard from "@/views/PortalPage/components/MyTestCard";
|
|
import MyTestCard from "@/views/PortalPage/components/MyTestCard";
|
|
|
import { FolderOpened, Lock, SetUp, ShoppingCart } from "@element-plus/icons-vue";
|
|
import { FolderOpened, Lock, SetUp, ShoppingCart } from "@element-plus/icons-vue";
|
|
|
import TestCard from "@/components/TestCard";
|
|
import TestCard from "@/components/TestCard";
|
|
|
|
|
+import PhotoChange from "@/views/PortalPage/components/PhotoChange";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
//数据
|
|
//数据
|
|
@@ -184,7 +187,8 @@ export default {
|
|
|
MyTestCard,
|
|
MyTestCard,
|
|
|
CourseCard,
|
|
CourseCard,
|
|
|
CarouselCard,
|
|
CarouselCard,
|
|
|
- MyCourseCard
|
|
|
|
|
|
|
+ MyCourseCard,
|
|
|
|
|
+ PhotoChange
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -211,6 +215,9 @@ export default {
|
|
|
isStudent() {
|
|
isStudent() {
|
|
|
return this.$store.getters.isStudent;
|
|
return this.$store.getters.isStudent;
|
|
|
},
|
|
},
|
|
|
|
|
+ isAdmin(){
|
|
|
|
|
+ return this.$store.state.user.role==="ADMIN";
|
|
|
|
|
+ },
|
|
|
myTestList() {
|
|
myTestList() {
|
|
|
return []
|
|
return []
|
|
|
.concat(this.myEvalExamList)
|
|
.concat(this.myEvalExamList)
|