From 02d86de0c23347b388d10d0bf647546440201e64 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Fri, 22 Mar 2024 10:26:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E5=BC=BA=E5=88=B6=E7=BD=AE?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/investigat/InvestigatPage.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/investigat/InvestigatPage.vue b/src/views/investigat/InvestigatPage.vue index bbb61a8..99c3a97 100644 --- a/src/views/investigat/InvestigatPage.vue +++ b/src/views/investigat/InvestigatPage.vue @@ -2,10 +2,10 @@
-
-
项目名称:{{ data?.projectInfoList.length ==0 ? '' : data?.projectInfoList[0].projectName }}
-
开课名称:{{ data.projectInfoList[0].courseName }}
-
培训讲师:{{ data.projectInfoList.map(item => item.teacherName).join(',') }}
+
+
项目名称:{{ data?.projectInfoList[0]?.projectName || '' }}
+
开课名称:{{ data.projectInfoList[0]?.courseName || '' }}
+
培训讲师:{{ data?.projectInfoList.map(item => item?.teacherName).join(',') }}
@@ -300,6 +300,14 @@ const { data } = useRequest( chapterOrStageId, targetId: infoId ? infoId : 0, },(res)=>{ + if(res.data.projectInfoList.length == 0){ + res.data.projectInfoList=[ + {teacherName: '', courseName: '', projectName: ''} + ] + res.data.falseS = false + }else{ + res.data.falseS = true + } if (res.code === 6) { router.push({ path: "/NotProject2", @@ -412,6 +420,7 @@ onMounted(() => { open(); } }) + console.log(data,'data') }); const centerDialogVisible = ref(false); const open = () => {