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-item>
</a-menu> </a-menu>
</a-col> </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 style="margin-top: 20px;" :selectable="false">
<a-menu-item key="2" > <a-menu-item key="2" >
<a class="abox" @click="toDom('stujrkbDom')">今日课表</a> <a class="abox" @click="toDom('stujrkbDom')">今日课表</a>

View File

@ -59,9 +59,9 @@
</a-layout-content> </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> <studentWdkc v-if="getUserSf()=='S'"></studentWdkc>
<!-- 页尾 --> <!-- 页尾 -->

View File

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

View File

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