From c7c7f462d6311f0e3b984e2c654c63c9403c9591 Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Thu, 3 Apr 2025 09:56:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B0=8F=E7=BB=84=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=B8=8D=E5=A5=BD=E4=BD=BF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/zy/zyInfo/StudentZyInfoList.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/zy/zyInfo/StudentZyInfoList.vue b/src/views/zy/zyInfo/StudentZyInfoList.vue index 7554c4f..aa64777 100644 --- a/src/views/zy/zyInfo/StudentZyInfoList.vue +++ b/src/views/zy/zyInfo/StudentZyInfoList.vue @@ -148,6 +148,8 @@ const tableData = ref([]); const globSetting = useGlobSetting(); const baseApiUrl = globSetting.domainUrl; let router = useRouter(); + import { useUserStore } from '/@/store/modules/user'; +const userStore = useUserStore(); const labelCol = reactive({ xs: { span: 24 }, @@ -331,11 +333,17 @@ function handleDetail(record: Recordable) { //上传作业附件 async function handleShangchuan(record) { + console.log('record', record); //小组形式提交作业时 只有组长才能提交作业 let stuZyIds = [] if(record.xzxstjzy == 'Y'){ - stuZyIds = await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/getZyStuId', data: { zyinfoId: record.id, xh: record.stuId } }) - const own = stuZyIds.filter(stu => stu.id == record.stuId) + var xh = userStore.getUserInfo.username; + console.log('xh--->',xh); + + stuZyIds = await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/getZyStuId', data: { zyinfoId: record.id, xh: xh } }) + + console.log('stuZyIds--->',stuZyIds); + const own = stuZyIds.filter(stu => stu.id == xh) console.log('own--->',own); if(own[0].sfzz == 'N'){ createMessage.error('您不是组长,无法提交作业!')