+
+
+
+ {{ value.name }}
+
+
+
+
+ {{ value.name }}
+
+
+
+ 必修
+
+
+ 选修
+
+
+ {{ types.typeName[value.type] || "" }}
+
@@ -75,36 +63,35 @@
+ {
+ 0: 'rgba(238, 112, 108, 1)',
+ 1: 'rgba(255, 151, 38, 1)',
+ 2: 'rgba(39, 122, 255, 1)',
+ 3: 'rgba(59, 94, 251, 1)',
+ 4: 'rgba(57, 219, 183, 1)',
+ 5: 'rgba(57, 219, 183, 1)',
+ }[parseInt(value.currentRatio / 20)]
+" />
-
+
{{ value.currentRatio }}%
- {{ value.currentRatio === 100 ? "已完成" : types.path[value.type] ? types.toName[value.type] : "未开放" }}
+ background: `${types.path[value.type] ? '#2478ff' : '#999'}`,
+}" @click="toFinish(value)">
+ {{ value.status === 1 ? "已完成" : types.path[value.type] ? types.toName[value.type] : "未开放" }}
@@ -203,26 +190,26 @@
+ {
+ 0: 'rgba(238, 112, 108, 1)',
+ 1: 'rgba(255, 151, 38, 1)',
+ 2: 'rgba(39, 122, 255, 1)',
+ 3: 'rgba(59, 94, 251, 1)',
+ 4: 'rgba(57, 219, 183, 1)',
+ 5: 'rgba(57, 219, 183, 1)',
+ }[(parseInt(data.currentChapterCnt / data.totalChapterCnt) * 100) / 20]
+" />
+ color: {
+ 0: 'rgba(238, 112, 108, 1)',
+ 1: 'rgba(255, 151, 38, 1)',
+ 2: 'rgba(39, 122, 255, 1)',
+ 3: 'rgba(59, 94, 251, 1)',
+ 4: 'rgba(57, 219, 183, 1)',
+ 5: 'rgba(57, 219, 183, 1)',
+ }[parseInt((data.currentChapterCnt / data.totalChapterCnt * 100) / 20)],
+}">
{{ parseInt(data.currentChapterCnt / data.totalChapterCnt * 100) }}%
@@ -235,15 +222,15 @@
+ {
+ 0: 'rgba(238, 112, 108, 1)',
+ 1: 'rgba(255, 151, 38, 1)',
+ 2: 'rgba(39, 122, 255, 1)',
+ 3: 'rgba(59, 94, 251, 1)',
+ 4: 'rgba(57, 219, 183, 1)',
+ 5: 'rgba(57, 219, 183, 1)',
+ }[parseInt((data.currentReqCnt / data.totalReqCnt * 100) / 20)]
+" />
+ color: {
+ 0: 'rgba(238, 112, 108, 1)',
+ 1: 'rgba(255, 151, 38, 1)',
+ 2: 'rgba(39, 122, 255, 1)',
+ 3: 'rgba(59, 94, 251, 1)',
+ 4: 'rgba(57, 219, 183, 1)',
+ 5: 'rgba(57, 219, 183, 1)',
+ }[parseInt((data.currentReqCnt / data.totalReqCnt * 100) / 20)],
+}">
{{ parseInt(data.currentReqCnt / data.totalReqCnt * 100) }}%
@@ -356,7 +343,7 @@ const types = ref({
6: "/livebroadcast",
7: ({ courseId }) =>
request(LINK_DETAILS(courseId), {}).then(({ data: { linkAddress } }) =>
- window.open(linkAddress)
+ window.open(linkAddress, '_top')
), //外联
8: "/discusspage",
9: "/moreactive",
@@ -365,7 +352,7 @@ const types = ref({
(evaType == 0
? import.meta.env.VITE_BOE_TEST_DETAIL_URL
: import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL) + targetId
- ), //测评
+ ,'_top'), //测评
11: "/surveydetail",
12: "/ballotpage",
13: "/projectdetails",
@@ -385,7 +372,7 @@ function toFinish(d) {
if (date1 < date2) {
dialogVisibleTip.value = '当前作业已结束';
dialogVisible.value = true;
-
+
return
}
}
@@ -446,7 +433,7 @@ function toFinish(d) {
}
}
if (d.type === 3 || d.type === 7) {
- d.status || request(STUDY_RECORD, {
+ d.status || request(STUDY_RECORD, {
studentId: userInfo.value.id,
targetId: data.value.routerId,
logo: 1,
@@ -457,17 +444,15 @@ function toFinish(d) {
if (typeof types.value.path[d.type] === "string") {
types.value.path[d.type] &&
types.value.path[d.type].startsWith("http") &&
- window.open(types.value.path[d.type] + d.targetId);
+ window.open(types.value.path[d.type] + d.targetId,'_top');
types.value.path[d.type] &&
types.value.path[d.type].startsWith("/") &&
router.push({
path: types.value.path[d.type],
query: {
id: d.routerTaskId,
- // id: routerId,
type: 1,
- taskId: routerId,
- taskIds: routerId,
+ infoId: routerId,
courseId: d.courseId,
pName: data.value.name,
sName: data.value.currentStageName,
@@ -508,6 +493,7 @@ function whiteTypes(type) {
margin-top: 24px;
display: flex;
z-index: 2;
+
.detailL {
flex: 1;
margin-right: 20px;
diff --git a/src/views/survey/SurveyDetail.vue b/src/views/survey/SurveyDetail.vue
index 0c17b58..b038ec4 100644
--- a/src/views/survey/SurveyDetail.vue
+++ b/src/views/survey/SurveyDetail.vue
@@ -46,8 +46,8 @@