修改小组提交不好使的问题
This commit is contained in:
parent
5b211dbe23
commit
c7c7f462d6
|
@ -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('您不是组长,无法提交作业!')
|
||||
|
|
Loading…
Reference in New Issue