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 }">
@ -38,12 +38,12 @@
<div v-html="text"></div> <div v-html="text"></div>
</template> </template>
<!--省市区字段回显插槽--> <!--省市区字段回显插槽-->
<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>
@ -87,7 +87,7 @@
<!-- 表单区域 --> <!-- 表单区域 -->
<ZyInfoStudentModal ref="registerModal" @success="handleSuccess"></ZyInfoStudentModal> <ZyInfoStudentModal ref="registerModal" @success="handleSuccess"></ZyInfoStudentModal>
<ZyInfoStudentScoreModal ref="registerScoreModal" @success="handleSuccess"></ZyInfoStudentScoreModal> <ZyInfoStudentScoreModal ref="registerScoreModal" @success="handleSuccess"></ZyInfoStudentScoreModal>
</div> </div>
</template> </template>
@ -100,17 +100,20 @@
import { downloadFile } from '/@/utils/common/renderUtils'; import { downloadFile } from '/@/utils/common/renderUtils';
import ZyInfoStudentModal from './components/ZyInfoStudentModal.vue' import ZyInfoStudentModal from './components/ZyInfoStudentModal.vue'
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.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 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;
const queryParam = ref<any>({}); const queryParam = ref<any>({});
const mainId = ref<string>(''); const mainId = ref<string>('');
const toggleSearchStatus = ref<boolean>(false); const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref(); const registerModal = ref();
const registerScoreModal = ref(); const registerScoreModal = ref();
@ -155,7 +158,7 @@ const baseApiUrl = globSetting.domainUrl;
// let url = "https://view.officeapps.live.com/op/view.aspx?src="+encodeURIComponent(getFileAccessHttpUrl(text)); // let url = "https://view.officeapps.live.com/op/view.aspx?src="+encodeURIComponent(getFileAccessHttpUrl(text));
// let url = "https://view.xdocin.com/view?src="+encodeURIComponent('https://view.xdocin.com/demo/view.docx'); // let url = "https://view.xdocin.com/view?src="+encodeURIComponent('https://view.xdocin.com/demo/view.docx');
// window.open(url,"_blank") // window.open(url,"_blank")
var url2 = getFileAccessHttpUrl(record.pdfPath) var url2 = getFileAccessHttpUrl(record.pdfPath)
console.log(`🚀 ~ openPdf ~ url2:`, url2) console.log(`🚀 ~ openPdf ~ url2:`, url2)
let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2); let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2);
@ -168,7 +171,7 @@ const baseApiUrl = globSetting.domainUrl;
registerModal.value.disableSubmit = false; registerModal.value.disableSubmit = false;
registerModal.value.add(); registerModal.value.add();
} }
/** /**
* 编辑事件 * 编辑事件
*/ */
@ -187,11 +190,16 @@ 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()
}) })
} }
/** /**
* 详情 * 详情
*/ */
@ -199,21 +207,21 @@ const baseApiUrl = globSetting.domainUrl;
registerModal.value.disableSubmit = true; registerModal.value.disableSubmit = true;
registerModal.value.edit(record); registerModal.value.edit(record);
} }
/** /**
* 删除事件 * 删除事件
*/ */
async function handleDelete(record) { async function handleDelete(record) {
await deleteOne({ id: record.id }, handleSuccess); await deleteOne({ id: record.id }, handleSuccess);
} }
/** /**
* 批量删除事件 * 批量删除事件
*/ */
async function batchHandleDelete() { async function batchHandleDelete() {
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess); await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
} }
/** /**
* 成功回调 * 成功回调
*/ */
@ -224,7 +232,7 @@ const baseApiUrl = globSetting.domainUrl;
function handleDown(record){ function handleDown(record){
downloadFile(record.filePath); downloadFile(record.filePath);
} }
/** /**
* 操作栏 * 操作栏
*/ */
@ -273,7 +281,7 @@ const baseApiUrl = globSetting.domainUrl;
}]; }];
return list; return list;
} }
}else{ }else{
var list = [ var list = [
{ {
@ -282,9 +290,9 @@ const baseApiUrl = globSetting.domainUrl;
},]; },];
return list; return list;
} }
} }
/** /**
* 下拉操作栏 * 下拉操作栏
*/ */
@ -309,7 +317,7 @@ const baseApiUrl = globSetting.domainUrl;
function searchQuery() { function searchQuery() {
reload(); reload();
} }
/** /**
* 重置 * 重置
*/ */
@ -320,13 +328,13 @@ const baseApiUrl = globSetting.domainUrl;
// //
reload(); reload();
} }
function init(record){ function init(record){
queryParam.value.mainId = record.id; queryParam.value.mainId = record.id;
mainId.value = record.id; mainId.value = record.id;
reload(); reload();
} }
defineExpose({ defineExpose({
init, init,