{{
- dataInfo.numberOfBrowse || dataInfo.numberOfBrowse == 0
- ? dataInfo.numberOfBrowse
+ state.dataInfo.numberOfBrowse || state.dataInfo.numberOfBrowse == 0
+ ? state.dataInfo.numberOfBrowse
: "-"
}}
@@ -135,9 +139,9 @@
{{
- dataInfo?.voteStartTime
+ state.dataInfo?.voteStartTime
}} 至 {{
- dataInfo?.voteEndTime
+ state.dataInfo?.voteEndTime
}}
@@ -145,11 +149,11 @@
距离结束还有
{{
parseInt(
- dayjs(dataInfo?.voteEndTime).diff(dayjs(), "minute") / 60
+ dayjs(state.dataInfo?.voteEndTime).diff(dayjs(), "minute") / 60
)
}} 小时 {{
- dayjs(dataInfo?.voteEndTime).diff(dayjs(), "minute") % 60
+ dayjs(state.dataInfo?.voteEndTime).diff(dayjs(), "minute") % 60
}} 分钟
@@ -168,7 +172,7 @@
@@ -181,15 +185,16 @@
diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue
index 7a33414..412c360 100644
--- a/src/views/project/ProjectDetails.vue
+++ b/src/views/project/ProjectDetails.vue
@@ -526,6 +526,23 @@ function toFinish(d, sName, chapterOrStageId) {
stageOrChapterId: chapterOrStageId,
taskId: d.projectTaskId,
});
+ // 此处判断外链跳转详情界面
+ if(d.type==7){
+ router.push({
+ path: '/outerchain',
+ query: {
+ id: d.projectTaskId,
+ type: PROJECT,
+ infoId: data.value.projectId,
+ courseId: d.courseId,
+ pName: data.value.name,
+ sName,
+ chapterOrStageId,
+ exname: d.name, // 外链名称
+ },
+ });
+ return
+ }
}
if (typeof types.value.path[d.type] === "string") {
@@ -544,6 +561,7 @@ function toFinish(d, sName, chapterOrStageId) {
pName: data.value.name,
sName,
chapterOrStageId,
+ btype: 1
},
});
} else if (typeof types.value.path[d.type] === "function") {
diff --git a/src/views/roadmap/PathDetails.vue b/src/views/roadmap/PathDetails.vue
index 88ca468..1364cee 100644
--- a/src/views/roadmap/PathDetails.vue
+++ b/src/views/roadmap/PathDetails.vue
@@ -467,6 +467,24 @@ function toFinish(d) {
stageOrChapterId: data.value.currentStageId,
taskId: d.routerTaskId,
});
+
+ // 此处判断外链跳转详情界面
+ if(d.type==7){
+ router.push({
+ path: '/outerchain',
+ query: {
+ id: d.routerTaskId,
+ type: ROUTER,
+ infoId: routerId,
+ courseId: d.courseId,
+ pName: data.value.name,
+ sName: data.value.currentStageName,
+ chapterOrStageId: data.value.currentStageId,
+ exname: d.name, // 外链名称
+ },
+ });
+ return
+ }
}
if (typeof types.value.path[d.type] === "string") {
types.value.path[d.type] &&
@@ -483,7 +501,8 @@ function toFinish(d) {
courseId: d.courseId,
pName: data.value.name,
sName: data.value.currentStageName,
- chapterOrStageId: data.value.currentStageId
+ chapterOrStageId: data.value.currentStageId,
+ btype: 2
},
});
} else if (typeof types.value.path[d.type] === "function") {
diff --git a/src/views/testscore/OuterChain.vue b/src/views/testscore/OuterChain.vue
new file mode 100644
index 0000000..250a401
--- /dev/null
+++ b/src/views/testscore/OuterChain.vue
@@ -0,0 +1,598 @@
+
+
+
+
+
{{ pName }}
+
/
+
{{ sName }}
+
/
+
外链详情
+
+
+
+
返回
+
+
+
+
+
+
+
+
+
+
+
【外链】{{ exname }}
+
+
+

+
链接网址
+
+
+
+
+
+
+
+ {{ state.datainfo.linkAddress ? state.datainfo.linkAddress : "-" }}
+
+
+
+
+
+
+
+

+
链接说明
+
+
+
+
+
+ {{ state.datainfo.linkDescription ? state.datainfo.linkDescription : "暂无链接说明" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vite.config.js b/vite.config.js
index e374744..9a1f270 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -99,6 +99,9 @@ export default defineConfig(({ command, mode }) =>
},'/external/exam/queryExternalExam': {
target: loadEnv(mode, process.cwd()).VITE_PROXY_URL,
changeOrigin: true,
+ },'/link/getOne': {
+ target: loadEnv(mode, process.cwd()).VITE_PROXY_URL,
+ changeOrigin: true,
},
}
}
From 9d1c1221acb5054955fb45461cfd94c3c2310462 Mon Sep 17 00:00:00 2001
From: wyx
Date: Thu, 2 Feb 2023 15:41:10 +0800
Subject: [PATCH 7/8] =?UTF-8?q?style:=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E5=AD=A6=E4=B9=A0=E8=BF=9B=E5=BA=A6=E6=90=9C?=
=?UTF-8?q?=E7=B4=A2=EF=BC=8C=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE=E8=B5=B7?=
=?UTF-8?q?=E6=AD=A2=E6=97=B6=E9=97=B4=EF=BC=9B=E5=A2=9E=E5=8A=A0=E8=AE=A8?=
=?UTF-8?q?=E8=AE=BA=E6=A8=A1=E5=9D=97=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3?=
=?UTF-8?q?=E5=8F=8A=E6=A0=B7=E5=BC=8F=E6=8E=A5=E5=85=A5=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/api.js | 6 +-
src/views/discuss/DiscussPage.vue | 245 ++++++++++++++++++++--
src/views/discussdetail/DiscussDetail.vue | 7 +-
src/views/project/ProjectManage.vue | 78 +++++--
4 files changed, 299 insertions(+), 37 deletions(-)
diff --git a/src/api/api.js b/src/api/api.js
index 22567cb..4d3dc12 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -70,4 +70,8 @@ export const FACETEACH_SIGNUP = `/stu/project/stuFaceTeachSignUp`
export const EXTERNALEXAM = `/external/exam/queryExternalExam`
// 外链详情接口
-export const LINKGETONE = `/link/getOne`
\ No newline at end of file
+export const LINKGETONE = `/link/getOne`
+
+// 讨论模块
+// -- 根据讨论的Id查询讨论发表的帖子
+export const QueryDiscussSubmitDetailByDiscussId = '/discussSubmit/queryDiscussSubmitDetailByDiscussId post'
\ No newline at end of file
diff --git a/src/views/discuss/DiscussPage.vue b/src/views/discuss/DiscussPage.vue
index 2fc5763..6c173b8 100644
--- a/src/views/discuss/DiscussPage.vue
+++ b/src/views/discuss/DiscussPage.vue
@@ -36,48 +36,47 @@