2024年5月23日 修复问题

This commit is contained in:
bai 2024-05-23 21:06:35 +08:00
parent b340db4e4a
commit 671a75dbe4
4 changed files with 42 additions and 34 deletions

View File

@ -50,7 +50,7 @@
</a-menu-item>
</a-menu>
</a-col>
<a-col :xs="{ span: 0 }" :sm="{ span: 24 }" :lg="{ span: 24 }" v-if="getUserSf()=='S'">
<a-col :xs="{ span: 0 }" :sm="{ span: 24 }" :lg="{ span: 24 }" v-if="getUserSf()=='S-'">
<a-menu style="margin-top: 20px;" :selectable="false">
<a-menu-item key="2" >
<a class="abox" @click="toDom('stujrkbDom')">今日课表</a>

View File

@ -59,9 +59,9 @@
</a-layout-content>
<!-- 学生部分今日课表 -->
<StudentJrkbPage v-if="getUserSf()=='S'"></StudentJrkbPage>
<StudentJrkbPage v-if="getUserSf()=='S-'"></StudentJrkbPage>
<!-- 学生部分近六日课表 -->
<StudentJlrkbPage v-if="getUserSf()=='S'"></StudentJlrkbPage>
<StudentJlrkbPage v-if="getUserSf()=='S-'"></StudentJlrkbPage>
<!-- 我的课程 -->
<studentWdkc v-if="getUserSf()=='S'"></studentWdkc>
<!-- 页尾 -->

View File

@ -43,7 +43,7 @@ export const columns: BasicColumn[] = [
// dataIndex: 'wwxsl'
// },
{
title: '外网检测是否通过',
title: '外网检测',
align: "center",
dataIndex: 'wwsftg',
slots: { customRender: 'wwsftgaction' },
@ -54,7 +54,7 @@ export const columns: BasicColumn[] = [
// dataIndex: 'nwxsl'
// },
{
title: '内网检测是否通过',
title: '内网检测',
align: "center",
dataIndex: 'nwsftg',
slots: { customRender: 'nwsftgaction' },
@ -65,7 +65,7 @@ export const columns: BasicColumn[] = [
// dataIndex: 'aigcxsl'
// },
{
title: 'aigc检测是否通过',
title: 'aigc检测',
align: "center",
dataIndex: 'aigcsftg',
slots: { customRender: 'aigcsftgaction' },

View File

@ -24,10 +24,10 @@
<BasicTable @register="registerTable" style="margin-top: 20px;">
<!--插槽:table标题-->
<template #tableTitle>
<div style="padding: 10px;">
<span style="background: green;color:#fff;padding: 5px 15px;margin-left:20px;">通过</span>
<span style="background: red;color:#fff;padding: 5px 15px;margin-left:20px;">未通过</span>
</div>
<!-- <div style="padding: 10px;">
<span style="background: green;color:#fff;padding: 5px 15px;margin-left:20px;">通过</span>
<span style="background: red;color:#fff;padding: 5px 15px;margin-left:20px;">未通过</span>
</div> -->
</template>
<!--操作栏-->
<template #action="{ record }">
@ -42,8 +42,8 @@
<template #wwsftgaction="{text,record}">
<span v-if="record.wwcc=='0'">-</span>
<span v-else>
<span v-if="text=='通过'" style="background: green;color:#fff;padding: 5px 15px;" title="通过">{{record.wwxsl}}%</span>
<span v-else-if="text=='未通过'" style="background: red;color:#fff;padding: 5px 15px;" title="未通过">{{record.wwxsl}}%</span>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过">{{record.wwxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过">{{record.wwxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
@ -53,8 +53,8 @@
<template #nwsftgaction="{text,record}">
<span v-if="record.nwcc=='0'">-</span>
<span v-else>
<span v-if="text=='通过'" style="background: green;color:#fff;padding: 5px 15px;" title="通过">{{record.nwxsl}}%</span>
<span v-else-if="text=='未通过'" style="background: red;color:#fff;padding: 5px 15px;" title="未通过">{{record.nwxsl}}%</span>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过">{{record.nwxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过">{{record.nwxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
@ -64,8 +64,8 @@
<template #aigcsftgaction="{text,record}">
<span v-if="record.aigccc=='0'">-</span>
<span v-else>
<span v-if="text=='通过'" style="background: green;color:#fff;padding: 5px 15px;" title="通过">{{record.aigcxsl}}%</span>
<span v-else-if="text=='未通过'" style="background: red;color:#fff;padding: 5px 15px;" title="未通过">{{record.aigcxsl}}%</span>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过">{{record.aigcxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过">{{record.aigcxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
@ -100,13 +100,16 @@
import { downloadFile } from '/@/utils/common/renderUtils';
import ZyInfoStudentModal from './components/ZyInfoStudentModal.vue'
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
import ZyInfoStudentScoreModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentScoreModal.vue'
import { useGlobSetting } from '/@/hooks/setting';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
const { createMessage } = useMessage();
const globSetting = useGlobSetting();
const baseApiUrl = globSetting.domainUrl;
const baseApiUrl = globSetting.domainUrl;
const queryParam = ref<any>({});
const mainId = ref<string>('');
@ -187,6 +190,11 @@ const baseApiUrl = globSetting.domainUrl;
})
}
function handleScoreFabu(record: Recordable){
//
if(!record.score){
createMessage.warn('请填写评分!');
return;
}
defHttp.post({url:'/zyInfoStudent/zyInfoStudent/editFabu',params:{id:record.id,scoreFabu:'1'}}).then(res =>{
handleSuccess()
})