修改小组提交不好使的问题

This commit is contained in:
yangjun 2025-04-03 09:56:55 +08:00
parent 5b211dbe23
commit c7c7f462d6
1 changed files with 10 additions and 2 deletions

View File

@ -148,6 +148,8 @@ const tableData = ref<any>([]);
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('您不是组长,无法提交作业!')