修改bug

This commit is contained in:
yangjun 2024-06-12 11:27:09 +08:00
parent 2480327e3f
commit b703f6d087
4 changed files with 124 additions and 50 deletions

View File

@ -35,13 +35,14 @@
<div style="float: right;">
<span>本教室容量{{ktangInfo?.jiaoshirongliang?.jsrl || ' '}}座位</span>
<span style="margin-left:15px;">选课人数{{ ktangInfo.xkrs || ' ' }}</span>
<span style="margin-left:15px;">出勤人数: <a @click="handleZqrs(ktangInfo)">{{ ktangInfo?.kcDetectionDetailed?.num||'89' }}</a></span>
<span style="margin-left:15px;">AI识别出勤人数: <a @click="handleZqrs(ktangInfo)">{{ ktangInfo?.kcDetectionDetailed?.num||'-' }}</a></span>
<span style="margin-left:15px;">
<a-tooltip placement="topRight">
<template #title>
<span>抓取时间上课后10分课中50分钟下课前10分钟 </span>
<span>平台分别在三个时间节点上课10分钟课中50分钟课前10分钟抓取学生全景图片进行AI人流量识别当前显示的人数为最近一个时间的人数识别</span>
</template>
<Icon icon="ant-design:question-circle-outlined" />
<!-- <Icon icon="ant-design:question-circle-outlined" /> -->
<span class="helpClass">?</span>
</a-tooltip>
</span>
@ -420,18 +421,12 @@ function handleZqrs(record){
console.log(`🚀 ~ handleZqrs ~ record:`, record)
console.log(`🚀 ~ handleZqrs ~ zqrsList:`, record.zqrsList)
var a = record.detectionMain;
a.detectionDetailedList = record.zqrsList
handleZqrsDetail(a);
// if(record.zqrsList){
// a.detectionDetailedList = record.zqrsList
// handleZqrsDetail(a);
// }else{
// createMessage.warning("")
// // a.detectionDetailedList = [{}]
// // handleZqrsDetail(a);
// }
if(record.zqrsList){
a.detectionDetailedList = record.zqrsList
handleZqrsDetail(a);
}else{
createMessage.warning("暂无数据!")
}
}
function handleZqrsDetail(record: Recordable) {
@ -522,4 +517,15 @@ video::-webkit-media-controls-timeline {
.miniButtonRight {
float: right
}
.helpClass{
font-size: 16px;
font-weight: 700;
/* background: #1c84c6; */
color: #1c84c6;
border-radius: 5px;
padding: 1px 8px;
border: 1px #1c84c6 solid;
cursor: pointer;
}
</style>

View File

@ -39,6 +39,51 @@
<a-input placeholder="请输入授课教师" v-model:value="queryParam.stuNo"/>
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item label="提交状态">
<a-select v-model:value="queryParam.status" >
<template v-for="(item,index) in dictOptions2" :key="index">
<a-select-option :value="item.value">{{ item.label }}</a-select-option>
</template>
</a-select>
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item label="外网是否通过">
<a-select v-model:value="queryParam.wwsftg" >
<template v-for="(item,index) in dictOptions" :key="index">
<a-select-option :value="item.value">{{ item.label }}</a-select-option>
</template>
</a-select>
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item label="作业是否通过">
<a-select v-model:value="queryParam.nwsftg" >
<template v-for="(item,index) in dictOptions" :key="index">
<a-select-option :value="item.value">{{ item.label }}</a-select-option>
</template>
</a-select>
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item label="aigc是否通过">
<a-select v-model:value="queryParam.aigcsftg" >
<template v-for="(item,index) in dictOptions" :key="index">
<a-select-option :value="item.value">{{ item.label }}</a-select-option>
</template>
</a-select>
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item label="全校是否通过">
<a-select v-model:value="queryParam.xnsftg" >
<template v-for="(item,index) in dictOptions" :key="index">
<a-select-option :value="item.value">{{ item.label }}</a-select-option>
</template>
</a-select>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="6" :md="8" :sm="24">
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
<a-col :lg="6">
@ -81,7 +126,7 @@
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.wwpaperviewurl)">{{record.wwxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
<span v-else>-</span>
</span>
</span>
</template>
@ -92,7 +137,7 @@
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.zypaperviewurl)">{{record.nwxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
<span v-else>-</span>
</span>
</span>
</template>
@ -103,7 +148,7 @@
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.aigcpaperviewurl)">{{record.aigcxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
<span v-else>-</span>
</span>
</span>
</template>
@ -114,7 +159,7 @@
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.xxpaperviewurl)">{{record.xnxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
<span v-else>-</span>
</span>
</span>
</template>
@ -138,6 +183,8 @@
const baseApiUrl = globSetting.domainUrl;
const { createMessage } = useMessage();
const queryParam = ref<any>({});
const dictOptions2 = ref<any>([{value:'',label:'全部'},{value:'未提交',label:'未提交'},{value:'已提交',label:'已提交'},{value:'已评分',label:'已评分'}]);
const dictOptions = ref<any>([{value:'',label:'全部'},{value:'未通过',label:'未通过'},{value:'通过',label:'通过'},]);
const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref();
//table

View File

@ -59,45 +59,65 @@
<template #wwsftgaction="{text,record}">
<span v-if="record.wwcc=='0'">-</span>
<span v-else>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过" @click="handleYulan(record.wwpaperviewurl)">{{record.wwxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.wwpaperviewurl)">{{record.wwxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
</span>
<template v-if="record.wwfilestateid=='3'">
<span :title="record.wwmessage?record.wwmessage:'暂无原因,请联系管理员'" style="color:red;">检测失败</span>
</template>
<template v-else>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过" @click="handleYulan(record.wwpaperviewurl)">{{record.wwxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.wwpaperviewurl)">{{record.wwxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
</span>
</template>
</span>
</template>
<template #nwsftgaction="{text,record}">
<span v-if="record.nwcc=='0'">-</span>
<span v-else>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过" @click="handleYulan(record.zypaperviewurl)">{{record.nwxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.zypaperviewurl)">{{record.nwxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
</span>
<template v-if="record.zyfilestateid=='3'">
<span :title="record.zymessage?record.zymessage:'暂无原因,请联系管理员'" style="color:red;">检测失败</span>
</template>
<template v-else>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过" @click="handleYulan(record.zypaperviewurl)">{{record.nwxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.zypaperviewurl)">{{record.nwxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
</span>
</template>
</span>
</template>
<template #aigcsftgaction="{text,record}">
<span v-if="record.aigccc=='0'">-</span>
<span v-else>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过" @click="handleYulan(record.aigcpaperviewurl)">{{record.aigcxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.aigcpaperviewurl)">{{record.aigcxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
</span>
<template v-if="record.aigcfilestateid=='3'">
<span :title="record.aigcmessage?record.aigcmessage:'暂无原因,请联系管理员'" style="color:red;">检测失败</span>
</template>
<template v-else>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过" @click="handleYulan(record.aigcpaperviewurl)">{{record.aigcxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.aigcpaperviewurl)">{{record.aigcxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
</span>
</template>
</span>
</template>
<template #xnsftgaction="{text,record}">
<span v-if="record.aigccc=='0'">-</span>
<span v-if="record.xncc=='0'">-</span>
<span v-else>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过" @click="handleYulan(record.xxpaperviewurl)">{{record.xnxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.xxpaperviewurl)">{{record.xnxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
</span>
<template v-if="record.xxfilestateid=='3'">
<span :title="record.xxmessage?record.xxmessage:'暂无原因,请联系管理员'" style="color:red;">检测失败</span>
</template>
<template v-else>
<span v-if="text=='通过'" style="color: green;padding: 5px 15px;" title="通过" @click="handleYulan(record.xxpaperviewurl)">{{record.xnxsl}}%</span>
<span v-else-if="text=='未通过'" style="color: red;padding: 5px 15px;" title="未通过" @click="handleYulan(record.xxpaperviewurl)">{{record.xnxsl}}%</span>
<span v-else>
<span v-if="record.filePath">检测中</span>
<span v-else>未提交</span>
</span>
</template>
</span>
</template>
<!--<template #pcaSlot="{text}">

View File

@ -135,13 +135,14 @@
onOk: () => {
zyscStu(model, isUpdate.value)
.then((res) => {
emit('ok');
console.log(`🚀 ~ .then ~ res:`, res)
if (res.success) {
createMessage.success(res.message);
emit('ok');
} else {
createMessage.warning(res.message);
}
emit('closeLoading');
// if (res.success) {
// createMessage.success(res.message);
// } else {
// createMessage.warning(res.message);
// }
})
.finally(() => {
confirmLoading.value = false;