|
|
@@ -16,7 +16,7 @@
|
|
|
<div>
|
|
|
<div style="font-weight: 600;">功能导航</div>
|
|
|
<div class="cardBox">
|
|
|
- <div v-for="item in cardArray" :key="item.title" @click="goToPage(item.to)" class="cardItem">
|
|
|
+ <div v-for="item in cardData(cardArray)" :key="item.title" @click="goToPage(item.to)" class="cardItem">
|
|
|
<img :src="item.icon" alt="" />
|
|
|
<div>{{ item.title }}</div>
|
|
|
</div>
|
|
|
@@ -308,14 +308,12 @@ export default {
|
|
|
type: 1,
|
|
|
to: "/sassPlatform",
|
|
|
sassPlatFormTypeId: "eefb7195-8ee7-11f0-9c7b-005056924926",
|
|
|
- tType: this.$route.query.tType
|
|
|
},
|
|
|
{
|
|
|
title: "学生画像",
|
|
|
icon: require("../../../assets/icon/liyuan/jiaoshihuaxiang.svg"),
|
|
|
type: 0,
|
|
|
to: "/testReview",
|
|
|
- tType: this.$route.query.tType
|
|
|
}
|
|
|
]
|
|
|
};
|
|
|
@@ -324,8 +322,8 @@ export default {
|
|
|
goToPage(to) {
|
|
|
if (to == '/testReview') return this.$message.info('该功能尚未上线,敬请期待')
|
|
|
try {
|
|
|
- window.topU.gotype = this.$route.path
|
|
|
- console.log('top',this.$route.path);
|
|
|
+ window.topU.gotype = 'bjspersonTop'
|
|
|
+ // console.log('top',this.$route.path);
|
|
|
} catch (error) {
|
|
|
console.log(error);
|
|
|
}
|
|
|
@@ -333,8 +331,8 @@ export default {
|
|
|
userid: this.userid,
|
|
|
oid: this.userInfo.organizeid,
|
|
|
org: this.userInfo.org,
|
|
|
- role: this.role,
|
|
|
- tType: this.$route.query.type,
|
|
|
+ role: this.userInfo.role,
|
|
|
+ tType: this.userInfo.type,
|
|
|
sassPlatFormTypeId:'ce4f1224-37a5-11f1-bcd9-005056924926'
|
|
|
};
|
|
|
this.$router.push({
|
|
|
@@ -342,82 +340,19 @@ export default {
|
|
|
query: params
|
|
|
});
|
|
|
},
|
|
|
- getPageBase(type = 1) {
|
|
|
- let params = {
|
|
|
- typ: type,
|
|
|
- org: this.org,
|
|
|
- oid: this.oid
|
|
|
- };
|
|
|
- this.ajax
|
|
|
- .get(this.$store.state.api + "selectTestExamineBase", params)
|
|
|
- .then(res => {
|
|
|
- this.ExamineBase = res.data[0];
|
|
|
- if (type == 1 && !res.data[0].length) {
|
|
|
- this.getPageBase(2);
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(error => {
|
|
|
- console.log(error);
|
|
|
- });
|
|
|
- },
|
|
|
+
|
|
|
isDeadlinePassed(deadline) {
|
|
|
let _line = new Date(deadline);
|
|
|
const currentDate = new Date();
|
|
|
return currentDate > _line;
|
|
|
},
|
|
|
- checkType(type) {
|
|
|
- this.type = type;
|
|
|
- this.getWorks();
|
|
|
- },
|
|
|
- selectTestType(type) {
|
|
|
- let params = {
|
|
|
- oid: this.oid
|
|
|
- };
|
|
|
- this.ajax
|
|
|
- .get(this.$store.state.api + "selectTestType", params)
|
|
|
- .then(res => {
|
|
|
- this.typeArray = res.data[0];
|
|
|
- if (type == 1) {
|
|
|
- this.type = "";
|
|
|
- }
|
|
|
- this.getWorks();
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err);
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
|
|
|
- returnA() {
|
|
|
- this.$router.push(
|
|
|
- "/testStudent?userid=" +
|
|
|
- this.userid +
|
|
|
- "&oid=" +
|
|
|
- this.oid +
|
|
|
- "&org=" +
|
|
|
- this.org +
|
|
|
- "&role=" +
|
|
|
- this.role
|
|
|
- );
|
|
|
- },
|
|
|
- checkTest(cid, tid) {
|
|
|
- this.$router.push(
|
|
|
- "/checkTest?cid=" +
|
|
|
- cid +
|
|
|
- "&tid=" +
|
|
|
- tid +
|
|
|
- "&userid=" +
|
|
|
- this.userid +
|
|
|
- "&oid=" +
|
|
|
- this.oid +
|
|
|
- "&org=" +
|
|
|
- this.org +
|
|
|
- "&type=3" +
|
|
|
- "&role=" +
|
|
|
- this.role
|
|
|
- );
|
|
|
- },
|
|
|
doTest(cid, tid) {
|
|
|
+ try {
|
|
|
+ window.topU.gotype = 'bjspersonTop'
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ }
|
|
|
this.$router.push(
|
|
|
"/doTest?cid=" +
|
|
|
cid +
|
|
|
@@ -435,6 +370,11 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
doTest2(cid) {
|
|
|
+ try {
|
|
|
+ window.topU.gotype = 'bjspersonTop'
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ }
|
|
|
this.$router.push(
|
|
|
"/doTest?cid=" +
|
|
|
cid +
|
|
|
@@ -450,6 +390,11 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
doTest3(item, course) {
|
|
|
+ try {
|
|
|
+ window.topU.gotype = 'bjspersonTop'
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ }
|
|
|
if (course.array.length) {
|
|
|
this.$router.push(
|
|
|
"/doTest?cid=" +
|
|
|
@@ -770,25 +715,7 @@ export default {
|
|
|
}
|
|
|
return courseJson;
|
|
|
},
|
|
|
- goTo(path, cid) {
|
|
|
- // console.log('cid',cid);
|
|
|
- try {
|
|
|
- window.topU.gotype = this.$route.path;
|
|
|
- console.log("top", this.$route.path);
|
|
|
- } catch (error) {
|
|
|
- console.log(error);
|
|
|
- }
|
|
|
- // console.log('path',path);
|
|
|
- let query = {
|
|
|
- cid: cid,
|
|
|
- userid: this.userid,
|
|
|
- oid: this.userInfo.organizeid,
|
|
|
- org: this.userInfo.org,
|
|
|
- role: this.userInfo.role,
|
|
|
- type: 3
|
|
|
- };
|
|
|
- this.$router.push({ path: path, query: query });
|
|
|
- },
|
|
|
+
|
|
|
openWork(index) {
|
|
|
if (
|
|
|
this.worksArray[index].array.length === 0 &&
|