修改bug
This commit is contained in:
parent
0d80a4340d
commit
dac5956d81
|
@ -252,6 +252,15 @@ const site: AppRouteModule = {
|
|||
title: '课程测验',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'WjxCywjV2Dtjg',
|
||||
name: 'WjxCywjV2Dtjg',
|
||||
component: () => import('/@/views/kc/wjxCswj/WjxCywjV2Dtjg.vue'),
|
||||
meta: {
|
||||
// affix: true,
|
||||
title: '答题结果',
|
||||
},
|
||||
},
|
||||
|
||||
],
|
||||
};
|
||||
|
|
|
@ -30,6 +30,14 @@ const stuzy: AppRouteModule = {
|
|||
},
|
||||
component: () => import('/@/views/zy/zyInfo/StudentZyInfoMainList.vue'),
|
||||
},
|
||||
{
|
||||
path: 'studentQmks',
|
||||
name: 'studentQmks',
|
||||
meta: {
|
||||
title: '期末考试',
|
||||
},
|
||||
component: () => import('/@/views/zy/zyInfo/StudentZyInfoQmksMainList.vue'),
|
||||
},
|
||||
{
|
||||
path: 'studentLszy',
|
||||
name: 'studentLszy',
|
||||
|
|
|
@ -38,6 +38,14 @@ const zuoye: AppRouteModule = {
|
|||
title: '当前作业',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'dqkcQmzy',
|
||||
name: 'dqkcQmzy',
|
||||
component: () => import('/@/views/zy/zyInfo/ZyInfoQimoV2List.vue'),
|
||||
meta: {
|
||||
title: '期末考试',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'dqkcLszy',
|
||||
name: 'dqkcLszy',
|
||||
|
|
|
@ -0,0 +1,508 @@
|
|||
<template>
|
||||
><div id="siteMain">
|
||||
<div id="maxSite">
|
||||
<a-layout>
|
||||
<!-- 页头 -->
|
||||
<headerPage />
|
||||
<!-- 主体部分 -->
|
||||
<a-layout-content style="background-color: white; margin-top: 10px">
|
||||
<a-row>
|
||||
<a-col :span="24" style="text-align: center">
|
||||
<span class="title">{{ zyInfo.title }}</span>
|
||||
</a-col>
|
||||
<a-col :span="24" style="text-align: right">
|
||||
开始时间:{{ dayjs(zyInfo.startTime).format('MM.DD HH:mm') }} ~ 结束时间:{{ dayjs(zyInfo.endTime).format('MM.DD HH:mm') }}
|
||||
</a-col>
|
||||
<a-col :span="24" style="margin-top: 10px">
|
||||
<div style="display: flex">
|
||||
<div class="tjfx-line diva" @click="handleDjjgs(zyInfo, '')"
|
||||
><span class="tjfx-colt">{{ zyInfo.xkrs }}</span
|
||||
><span class="tjfx-colw"> 总人数</span></div
|
||||
>
|
||||
<div class="tjfx-line diva" @click="handleDjjgs(zyInfo, '1')"
|
||||
><span class="tjfx-colt">{{ zyInfo.ywcrs }}</span
|
||||
><span class="tjfx-colw"> 已完成人数</span></div
|
||||
>
|
||||
<div class="tjfx-line diva" @click="handleDjjgs(zyInfo, '0')"
|
||||
><span class="tjfx-colt">{{ zyInfo.wwcrs }}</span
|
||||
><span class="tjfx-colw"> 未完成人数</span></div
|
||||
>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24" style="margin-top: 10px; text-align: right">
|
||||
<a-switch checkedChildren="统计" unCheckedChildren="图表" v-model:checked="twoShowType" />
|
||||
</a-col>
|
||||
<a-col :span="24" style="margin-top: 10px" v-if="twoShowType">
|
||||
<a-collapse accordion expandIconPosition="right">
|
||||
<a-collapse-panel :key="index" v-for="(item, index) in zyInfo.tmlbList">
|
||||
<template #header>
|
||||
<a-row :span="24" style="width: 100%">
|
||||
<a-col :span="24" class="title2">{{ item.wjTitle }}</a-col>
|
||||
<a-col :span="8">已作答人数:{{ item.yzd }}</a-col>
|
||||
<a-col :span="8">答对人数:{{ item.ddrs }}</a-col>
|
||||
<a-col :span="8">答错人数:{{ item.dcrs }}</a-col>
|
||||
</a-row>
|
||||
</template>
|
||||
<div style="width: 98%; margin: 0 auto" v-if="item.wjType == 3">
|
||||
<a-card>
|
||||
<template #extra v-if="zyInfo.atype == 6">
|
||||
<span class="question-type" style="margin-left: 40px">单选题</span>
|
||||
<span style="margin-left: 40px"
|
||||
>题目分值:<span class="answer-word"> {{ item.wjScore }}</span> 分</span
|
||||
>
|
||||
</template>
|
||||
<a-radio-group v-model:value="item.itemSelected" style="width: 100%" size="default" disabled>
|
||||
<div style="width: 100%" v-for="(tmxx, index2) in item.wjxWjxxTmxxList" :key="index2">
|
||||
<a-radio :value="tmxx.itemIndex + ``" style="width: 100%; margin-bottom: 5px">
|
||||
<span v-html="tmxx.itemTitle" style="font-size: 16px; color: #000"></span>
|
||||
<span v-if="tmxx.itemSelected == 'true'" style="color: #9e9e9e; margin-left: 30px; font-size: 12px">(正确答案)</span>
|
||||
<span class="tjfx-xzrs">选择人数:{{ tmxx.num }}人</span>
|
||||
</a-radio>
|
||||
</div>
|
||||
</a-radio-group>
|
||||
</a-card>
|
||||
</div>
|
||||
<!-- 多选题 -->
|
||||
<div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 4">
|
||||
<a-card>
|
||||
<template #extra v-if="zyInfo.atype == 6">
|
||||
<span class="question-type" style="margin-left: 40px">多选题</span>
|
||||
<span style="margin-left: 40px"
|
||||
>题目分值: <span class="answer-word">{{ item.wjScore }}</span> 分</span
|
||||
>
|
||||
</template>
|
||||
<a-checkbox-group v-model:value="item.itemSelected" style="width: 100%" size="default" disabled>
|
||||
<a-row>
|
||||
<a-col :span="24" v-for="(tmxx, index2) in item.wjxWjxxTmxxList" :key="index2">
|
||||
<a-checkbox :value="tmxx.itemIndex" style="width: 100%; margin-bottom: 5px">
|
||||
<span v-html="tmxx.itemTitle" style="width: 80%; font-size: 16px; color: #000"></span>
|
||||
<span v-if="tmxx.itemSelected == 'true'" style="color: #9e9e9e; margin-left: 30px; font-size: 12px">(正确答案)</span>
|
||||
<span class="tjfx-xzrs">选择人数:{{ tmxx.num }}人</span>
|
||||
</a-checkbox>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-checkbox-group>
|
||||
</a-card>
|
||||
</div>
|
||||
<!-- 填空题 -->
|
||||
<div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 5">
|
||||
<a-card>
|
||||
<template #title>
|
||||
<span v-if="item.wjAnswer" style="color: #9e9e9e; margin-left: 30px; font-size: 12px">(正确答案:{{ item.wjAnswer }})</span>
|
||||
<span class="tjfx-xzrs1" style="color: #9e9e9e">正确人数:{{ item.num }}人</span>
|
||||
<span class="tjfx-xzrs1" style="color: #9e9e9e">错误人数:{{ item.num2 }}人</span>
|
||||
</template>
|
||||
<template #extra v-if="zyInfo.atype == 6">
|
||||
<span class="question-type" style="margin-left: 40px">填空题</span>
|
||||
<span style="margin-left: 40px"
|
||||
>题目分值:<span class="answer-word"> {{ item.wjScore }}</span> 分</span
|
||||
>
|
||||
</template>
|
||||
</a-card>
|
||||
</div>
|
||||
<div v-else> 无对应类型 </div>
|
||||
</a-collapse-panel>
|
||||
</a-collapse>
|
||||
</a-col>
|
||||
|
||||
<!-- 图表 -->
|
||||
|
||||
<a-col :span="24" v-if="!twoShowType">
|
||||
<a-collapse accordion expandIconPosition="right">
|
||||
<a-collapse-panel :key="index" v-for="(item, index) in zyInfo.tmlbList">
|
||||
<template #header>
|
||||
<a-row :span="24" style="width: 100%">
|
||||
<a-col :span="24" class="title2">{{ item.wjTitle }}</a-col>
|
||||
</a-row>
|
||||
</template>
|
||||
<!-- 单选题 -->
|
||||
<div style="width: 98%; margin: 0 auto">
|
||||
<a-row :span="24">
|
||||
<a-col :span="12">
|
||||
<pie :chartData="getPieData(item)" :option="pieOption" height="300px" style="width: 500px" />
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<BarMulti :chartData="getBarData(item)" :option="multiBarOption" height="300px" style="width: 500px"></BarMulti>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
<!-- 多选题 -->
|
||||
<!-- <div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 4">
|
||||
</div> -->
|
||||
<!-- 填空题 -->
|
||||
<!-- <div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 5">
|
||||
</div> -->
|
||||
<!-- <div v-else> 无对应类型 </div> -->
|
||||
</a-collapse-panel>
|
||||
</a-collapse>
|
||||
</a-col>
|
||||
<a-col style="height: 40px"> </a-col>
|
||||
</a-row>
|
||||
</a-layout-content>
|
||||
<!-- 页尾 -->
|
||||
<footerPage style="margin-top: 10px" />
|
||||
</a-layout>
|
||||
</div>
|
||||
<WjxWjxxTmlbDjjgsModal ref="WjxWjxxTmlbDjjgsModalPage"></WjxWjxxTmlbDjjgsModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="zyInfo-zyInfo" setup>
|
||||
import { ref, reactive, onMounted, unref, onBeforeUnmount } from 'vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { useRouter } from 'vue-router';
|
||||
import dayjs, { Dayjs } from 'dayjs';
|
||||
import { Form } from 'ant-design-vue';
|
||||
import { getValueType } from '/@/utils';
|
||||
import headerPage from '/@/views/site/common/header.vue';
|
||||
import footerPage from '/@/views/site/common/footer.vue';
|
||||
import Pie from '/@/components/chart/Pie.vue';
|
||||
import BarMulti from '/@/components/chart/BarMulti.vue';
|
||||
|
||||
import WjxWjxxTmlbDjjgsModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsModal.vue';
|
||||
|
||||
//当前路由信息
|
||||
const { currentRoute } = useRouter();
|
||||
const { query } = unref(currentRoute);
|
||||
const { rwbh, xqxn, type, teano, cyid } = query; //获取传递参数
|
||||
const { createConfirm, createMessage } = useMessage();
|
||||
const zyInfo = ref<any>({});
|
||||
const WjxWjxxTmlbDjjgsModalPage = ref();
|
||||
|
||||
const twoShowType = ref<boolean>(true);
|
||||
let intervalId: ReturnType<typeof setInterval> | null;
|
||||
const aaaaa = ref<number>(0);
|
||||
|
||||
const multiBarOption = {
|
||||
title: { text: '答题情况统计', left: 'center' },
|
||||
};
|
||||
|
||||
const pieOption = {
|
||||
title: { text: '正确率统计', left: 'center' },
|
||||
};
|
||||
|
||||
function getPieData(item) {
|
||||
console.log('👨🔧', item);
|
||||
|
||||
const pieData = [
|
||||
{ value: parseInt(item.ddrs), name: '答对人数' },
|
||||
{ value: parseInt(item.dcrs), name: '答错人数' },
|
||||
];
|
||||
return pieData;
|
||||
}
|
||||
|
||||
function getBarData(item) {
|
||||
const barMultiData = [
|
||||
{ value: parseInt(item.yzd), name: '作答人数' },
|
||||
{ value: parseInt(item.ddrs), name: '答对人数' },
|
||||
{ value: parseInt(item.dcrs), name: '答错人数' },
|
||||
];
|
||||
return barMultiData;
|
||||
}
|
||||
function reloadZy() {
|
||||
defHttp.get({ url: '/wjxWjxx/wjxWjxx/queryCyjgById', params: { id: cyid } }).then((res) => {
|
||||
console.log('🚶♂️', res);
|
||||
zyInfo.value = res;
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 学生答卷列表
|
||||
*/
|
||||
function handleDjjgs(record: Recordable, flag) {
|
||||
WjxWjxxTmlbDjjgsModalPage.value.disableSubmit = true;
|
||||
WjxWjxxTmlbDjjgsModalPage.value.edit(record, flag);
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
reloadZy();
|
||||
intervalId = setInterval(() => {
|
||||
// aaaaa.value++;
|
||||
console.log('🤯1111111111111111111', aaaaa.value);
|
||||
// 执行要重复执行的逻辑
|
||||
reloadZy();
|
||||
if (zyInfo.value.xkrs == zyInfo.value.ywcrs) {
|
||||
clear();
|
||||
}
|
||||
// if (aaaaa.value == 3) {
|
||||
// console.log('2222222222222222222', aaaaa.value);
|
||||
// clear();
|
||||
// }
|
||||
}, 5000);
|
||||
});
|
||||
|
||||
function clear() {
|
||||
intervalId && window.clearInterval(intervalId);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.title {
|
||||
line-height: 100px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.title2 {
|
||||
font-size: 18px;
|
||||
}
|
||||
.ant-divider-horizontal {
|
||||
display: flex;
|
||||
clear: both;
|
||||
width: 100%;
|
||||
min-width: 100%;
|
||||
margin: 3px 0 5px;
|
||||
}
|
||||
.tishi {
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
color: #fd8f02;
|
||||
margin-top: -4px;
|
||||
background: #fffbf2;
|
||||
text-align: center;
|
||||
padding: 6px 0;
|
||||
}
|
||||
.cardClass {
|
||||
min-height: 200px;
|
||||
}
|
||||
.sznrClass {
|
||||
line-height: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
.ant-card {
|
||||
box-sizing: border-box;
|
||||
margin: 2px 0;
|
||||
padding: 0;
|
||||
color: rgb(0 0 0);
|
||||
font-size: 14px;
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5715;
|
||||
list-style: none;
|
||||
font-feature-settings: tnum;
|
||||
position: relative;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #dadada;
|
||||
background: #fff;
|
||||
}
|
||||
.ant-card-head {
|
||||
min-height: 48px;
|
||||
margin-bottom: -1px;
|
||||
padding: 0 24px;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
background: transparent;
|
||||
border-bottom: 1px solid #dadada;
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
.ellipsis {
|
||||
overflow: hidden; /* 确保超出容器的内容被裁剪 */
|
||||
white-space: nowrap; /* 确保文本在一行内显示 */
|
||||
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
||||
}
|
||||
.ellip-title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.elli-title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.ellip-word {
|
||||
font-size: 14px;
|
||||
color: #666666;
|
||||
}
|
||||
.zuanqu:hover {
|
||||
cursor: pointer;
|
||||
color: #18a689;
|
||||
}
|
||||
.data-suggest {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
width: 25%;
|
||||
margin-right: 3px;
|
||||
padding: 8px 3px;
|
||||
border-radius: 5px;
|
||||
background: #f7f7f7;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.data-suggest span:nth-child(1) {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.data-suggest span:nth-child(2) {
|
||||
font-size: 12px;
|
||||
}
|
||||
.work-img {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 80px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.work-img-img {
|
||||
width: 180px;
|
||||
height: 139px;
|
||||
}
|
||||
.buttonClass {
|
||||
background: #1ab394;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
border-radius: 3px;
|
||||
border: none;
|
||||
}
|
||||
.mar-right20 {
|
||||
margin-right: 14px;
|
||||
}
|
||||
.button-zhta {
|
||||
color: #666666;
|
||||
cursor: pointer;
|
||||
}
|
||||
.button-zhta:hover {
|
||||
cursor: pointer;
|
||||
color: #18a689;
|
||||
}
|
||||
|
||||
.diva {
|
||||
cursor: pointer;
|
||||
color: #18a689;
|
||||
}
|
||||
.sear-distance {
|
||||
padding: 0 10px;
|
||||
}
|
||||
.ant-form-item {
|
||||
box-sizing: border-box;
|
||||
margin: 10px 0;
|
||||
padding: 0;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
font-size: 14px;
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5715;
|
||||
list-style: none;
|
||||
font-feature-settings: tnum;
|
||||
/* margin-bottom: 24px; */
|
||||
vertical-align: top;
|
||||
}
|
||||
.bled-countenance {
|
||||
color: #333333;
|
||||
}
|
||||
.bled-countenance2 {
|
||||
color: #999999;
|
||||
font-size: 12px;
|
||||
}
|
||||
.region {
|
||||
margin: 5px 10px;
|
||||
padding-bottom: 20px;
|
||||
background: #fff;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.region-title {
|
||||
font-size: 16px;
|
||||
color: #029c88;
|
||||
padding: 8px 20px;
|
||||
border-left: 5px solid #029c88;
|
||||
margin: 10px;
|
||||
border-radius: 5px;
|
||||
background: #fff;
|
||||
}
|
||||
.tjfx-col {
|
||||
font-size: 12px;
|
||||
padding: 8px 20px;
|
||||
line-height: 25px;
|
||||
}
|
||||
.tjfx-col-title {
|
||||
font-size: 16px;
|
||||
padding: 8px 20px;
|
||||
line-height: 25px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.tjfx-line {
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #f7f7f7;
|
||||
border-radius: 5px;
|
||||
margin: 0 15px;
|
||||
padding: 8px 0;
|
||||
}
|
||||
.tjfx-colt {
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
color: #1ab394;
|
||||
}
|
||||
.tjfx-colw {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
.tjfx-title {
|
||||
width: 90%;
|
||||
float: left;
|
||||
}
|
||||
.tjfx-type {
|
||||
width: 10%;
|
||||
float: left;
|
||||
}
|
||||
.tjfx-xzrs {
|
||||
margin-left: 30px;
|
||||
font-size: 12px;
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
}
|
||||
.tjfx-xzrs1 {
|
||||
margin-left: 30px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.tjfx-zql {
|
||||
text-align: right;
|
||||
width: 50%;
|
||||
font-size: 16px;
|
||||
padding: 20px;
|
||||
}
|
||||
.question-type {
|
||||
background: #eaf9f6;
|
||||
color: #1ab394;
|
||||
padding: 0 5px;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #1ab394;
|
||||
}
|
||||
.answer-word {
|
||||
color: #ff8710;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#siteMain {
|
||||
// font-size: ;
|
||||
// height: 100%;
|
||||
background: #f3f3f4;
|
||||
#maxSite {
|
||||
//最大宽度
|
||||
max-width: 1170px;
|
||||
//居中
|
||||
margin: 0 auto;
|
||||
.rowGutter {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.ant-layout-header {
|
||||
color: #fff;
|
||||
background: #1ab394;
|
||||
}
|
||||
.ant-layout-footer {
|
||||
line-height: 1.5;
|
||||
background: #fff;
|
||||
}
|
||||
.ant-layout-sider {
|
||||
color: #fff;
|
||||
background: #3ba0e9;
|
||||
}
|
||||
.ant-layout-content {
|
||||
color: #000;
|
||||
background: #f3f3f4;
|
||||
}
|
||||
.dictBox :deep(.ant-select) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -8,7 +8,7 @@
|
|||
</div>
|
||||
<a-col :span="24" style="text-align: center; color: #494b56">
|
||||
<div>老师您好,</div>
|
||||
<div>请根据课程目标及课程教学大纲的要求,设置学生修完本课程需要完成的课程测验次数。</div>
|
||||
<div>请根据课程教学大纲的要求,设置学生修完本课程需要完成的课程测验次数。</div>
|
||||
<div style="margin-top: 30px" class="ant-btn buttonClass"><a @click="handleShowType(1)">设置测验次数</a></div>
|
||||
<div class="tishi">温馨提示:设置完成后,您也可以在课程教学过程中,随时根据实际情况进行调整。</div>
|
||||
</a-col>
|
||||
|
@ -22,7 +22,10 @@
|
|||
<a-row>
|
||||
<a-col :span="18" style="margin-top: 5px">
|
||||
<span style="color: #777777">学生修完本课程需要完成的测验次数:</span>
|
||||
<a-input-number style="width: 30%" v-model:value="zycs" @change="handleZycs" :max="100" :disabled="zycsDisabled"/><span style="margin-left: 5px">次</span>
|
||||
<a-input-number style="width: 30%" v-model:value="zycs" @change="handleZycs" :max="100" :disabled="zycsDisabled" /><span
|
||||
style="margin-left: 5px"
|
||||
>次</span
|
||||
>
|
||||
</a-col>
|
||||
<a-col :span="6" style="text-align: right; padding: 5px 0 0 0">
|
||||
<a @click="handleAddZycs" class="ant-btn buttonClass mar-right20"><Icon icon="ant-design:file-add-outlined" />新增测验</a>
|
||||
|
@ -52,7 +55,7 @@
|
|||
<div style="text-align: center">
|
||||
<a-button class="buttonClass" @click="handleBatchAdd"><Icon icon="ant-design:save-outlined" />保存</a-button>
|
||||
<a-divider type="vertical" />
|
||||
<a-button class="buttonClass" @click="reloadZy"><Icon icon="ant-design:export-outlined" style="margin-right:10px" />返回</a-button>
|
||||
<a-button class="buttonClass" @click="reloadZy"><Icon icon="ant-design:export-outlined" style="margin-right: 10px" />返回</a-button>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -436,15 +439,26 @@
|
|||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-row>
|
||||
<div style="width:100%; height:130px; background:#fff;">
|
||||
<div style="display: flex; justify-content:space-between; padding-top:5px">
|
||||
<div style="width: 100%; height: 130px; background: #fff">
|
||||
<div style="display: flex; justify-content: space-between; padding-top: 5px">
|
||||
<span class="tjfx-col-title">{{ zyInfo.title }} </span>
|
||||
<span class="tjfx-col"> 测验时间:{{ dayjs(zyInfo.startTime).format('MM.DD HH:mm') }} ~ {{ dayjs(zyInfo.endTime).format('MM.DD HH:mm') }}</span>
|
||||
<span class="tjfx-col">
|
||||
测验时间:{{ dayjs(zyInfo.startTime).format('MM.DD HH:mm') }} ~ {{ dayjs(zyInfo.endTime).format('MM.DD HH:mm') }}</span
|
||||
>
|
||||
</div>
|
||||
<div style="display: flex; ">
|
||||
<div class="tjfx-line"><span class="tjfx-colt" >{{ zyInfo.xkrs }}</span><span class="tjfx-colw"> 总人数</span></div>
|
||||
<div class="tjfx-line"><span class="tjfx-colt">{{ zyInfo.ywcrs }}</span><span class="tjfx-colw"> 已完成人数</span></div>
|
||||
<div class="tjfx-line"><span class="tjfx-colt">{{ zyInfo.wwcrs }}</span><span class="tjfx-colw"> 未完成人数</span></div>
|
||||
<div style="display: flex">
|
||||
<div class="tjfx-line diva" @click="handleDjjgs(zyInfo, '')"
|
||||
><span class="tjfx-colt">{{ zyInfo.xkrs }}</span
|
||||
><span class="tjfx-colw"> 总人数</span></div
|
||||
>
|
||||
<div class="tjfx-line diva" @click="handleDjjgs(zyInfo, '1')"
|
||||
><span class="tjfx-colt">{{ zyInfo.ywcrs }}</span
|
||||
><span class="tjfx-colw"> 已完成人数</span></div
|
||||
>
|
||||
<div class="tjfx-line diva" @click="handleDjjgs(zyInfo, '0')"
|
||||
><span class="tjfx-colt">{{ zyInfo.wwcrs }}</span
|
||||
><span class="tjfx-colw"> 未完成人数</span></div
|
||||
>
|
||||
</div>
|
||||
<!-- <div class="tjfx-col"> 总人数:{{ zyInfo.xkrs }} </div>
|
||||
<div class="tjfx-col"> 已完成人数:{{ zyInfo.ywcrs }} </div>
|
||||
|
@ -456,7 +470,7 @@
|
|||
<a-col :span="24" v-for="(item, index) in tiganData" :key="index">
|
||||
<div style="width: 100%">
|
||||
<!-- 单选题 -->
|
||||
<div style="width:98%; margin:0 auto" v-if="item.wjType == 3">
|
||||
<div style="width: 98%; margin: 0 auto" v-if="item.wjType == 3">
|
||||
<!-- <span style="text-align: left;width: 50%;font-weight: bold;font-size: 18px;padding: 20px;">单选题</span> -->
|
||||
<!-- <span class="tjfx-zql">正确率:15%</span> -->
|
||||
<a-card>
|
||||
|
@ -464,22 +478,24 @@
|
|||
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word"></span>
|
||||
</template>
|
||||
<template #extra v-if="zyInfo.atype == 6">
|
||||
<span class="question-type" style="margin-left: 40px">单选题</span>
|
||||
<span style="margin-left: 40px">题目分值:<span class="answer-word"> {{ item.wjScore }}</span> 分</span>
|
||||
<span class="question-type" style="margin-left: 40px">单选题</span>
|
||||
<span style="margin-left: 40px"
|
||||
>题目分值:<span class="answer-word"> {{ item.wjScore }}</span> 分</span
|
||||
>
|
||||
</template>
|
||||
<a-radio-group v-model:value="item.itemSelected" style="width:100%;" size="default" disabled>
|
||||
<a-radio-group v-model:value="item.itemSelected" style="width: 100%" size="default" disabled>
|
||||
<div style="width: 100%" v-for="(tmxx, index2) in item.wjxWjxxTmxxList" :key="index2">
|
||||
<a-radio :value="tmxx.itemIndex + ``" style="width:100%; margin-bottom: 5px;">
|
||||
<span v-html="tmxx.itemTitle" style="font-size: 16px; color: #000"></span>
|
||||
<span v-if="tmxx.itemSelected == 'true'" style="color: #9e9e9e; margin-left: 30px; font-size: 12px">(正确答案)</span>
|
||||
<span class="tjfx-xzrs">选择人数:{{ tmxx.num }}人</span>
|
||||
<a-radio :value="tmxx.itemIndex + ``" style="width: 100%; margin-bottom: 5px">
|
||||
<span v-html="tmxx.itemTitle" style="font-size: 16px; color: #000"></span>
|
||||
<span v-if="tmxx.itemSelected == 'true'" style="color: #9e9e9e; margin-left: 30px; font-size: 12px">(正确答案)</span>
|
||||
<span class="tjfx-xzrs">选择人数:{{ tmxx.num }}人</span>
|
||||
</a-radio>
|
||||
</div>
|
||||
</a-radio-group>
|
||||
</a-card>
|
||||
</div>
|
||||
<!-- 多选题 -->
|
||||
<div style="width:98%; margin:0 auto" v-else-if="item.wjType == 4">
|
||||
<div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 4">
|
||||
<!-- <span style="text-align: left;width: 50%;font-weight: bold;font-size: 18px;padding: 20px;">多选题</span> -->
|
||||
<!-- <span class="tjfx-zql">正确率:15%</span> -->
|
||||
<a-card>
|
||||
|
@ -488,7 +504,9 @@
|
|||
</template>
|
||||
<template #extra v-if="zyInfo.atype == 6">
|
||||
<span class="question-type" style="margin-left: 40px">多选题</span>
|
||||
<span style="margin-left: 40px">题目分值: <span class="answer-word">{{ item.wjScore }}</span> 分</span>
|
||||
<span style="margin-left: 40px"
|
||||
>题目分值: <span class="answer-word">{{ item.wjScore }}</span> 分</span
|
||||
>
|
||||
</template>
|
||||
<a-checkbox-group v-model:value="item.itemSelected" style="width: 100%" size="default" disabled>
|
||||
<a-row>
|
||||
|
@ -504,7 +522,7 @@
|
|||
</a-card>
|
||||
</div>
|
||||
<!-- 填空题 -->
|
||||
<div style="width:98%; margin:0 auto" v-else-if="item.wjType == 5">
|
||||
<div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 5">
|
||||
<!-- <span style="text-align: left;width: 50%;font-weight: bold;font-size: 18px;padding: 20px;">填空题</span> -->
|
||||
<!-- <span class="tjfx-zql">正确率:15%</span> -->
|
||||
<a-card>
|
||||
|
@ -516,7 +534,9 @@
|
|||
</template>
|
||||
<template #extra v-if="zyInfo.atype == 6">
|
||||
<span class="question-type" style="margin-left: 40px">填空题</span>
|
||||
<span style="margin-left: 40px">题目分值:<span class="answer-word"> {{ item.wjScore }}</span> 分</span>
|
||||
<span style="margin-left: 40px"
|
||||
>题目分值:<span class="answer-word"> {{ item.wjScore }}</span> 分</span
|
||||
>
|
||||
</template>
|
||||
</a-card>
|
||||
</div>
|
||||
|
@ -542,16 +562,16 @@
|
|||
<!-- :title="'11第' + item.sort + '次测验(占比' + item.score + '%)'" -->
|
||||
<!-- class="cardClass" -->
|
||||
<a-card v-if="!item.endTime" bodyStyle="background: #fff;">
|
||||
<template #title>第{{item.sort}}次测验:暂未设置测验信息 </template>
|
||||
<template #title>第{{ item.sort }}次测验:暂未设置测验信息 </template>
|
||||
<template #extra
|
||||
><span style="color: #ff8710; font-weight: bold"><Icon icon="ant-design:setting-outlined" /> 待设置</span>
|
||||
</template>
|
||||
<!-- <p class="sznrClass">尚未布置测验题目及具体要求</p> -->
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-col :span="18">
|
||||
<span style="margin-left: 10px">
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click.prevent> <Icon icon="ant-design:setting-outlined" />设计测验 </a>
|
||||
<a class="ant-dropdown-link" @click.prevent> <Icon icon="ant-design:form-outlined" />设计测验 </a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
|
@ -561,7 +581,7 @@
|
|||
<a href="javascript:;" @click="handleEdit(item, false)">修改题目</a>
|
||||
</a-menu-item> -->
|
||||
<a-menu-item>
|
||||
<a href="javascript:;" disabled style="color: #9e9e9e" >测验详情</a>
|
||||
<a href="javascript:;" disabled style="color: #9e9e9e">测验详情</a>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
|
@ -579,9 +599,21 @@
|
|||
</template>
|
||||
</a-dropdown>
|
||||
</span>
|
||||
<!-- <span style="margin-left: 30px">
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />答题结果 </a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
<a href="javascript:;" disabled style="color: #9e9e9e">答题结果</a>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown>
|
||||
</span> -->
|
||||
<span style="margin-left: 30px">
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />测验结果 </a>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:line-chart-outlined" />测验结果 </a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
|
@ -595,7 +627,7 @@
|
|||
</a-dropdown>
|
||||
</span>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-col :span="6">
|
||||
<div style="text-align: right">
|
||||
<a @click="handleEdit(item, false)">设置测验内容及要求</a>
|
||||
<a-divider type="vertical" />
|
||||
|
@ -607,7 +639,7 @@
|
|||
|
||||
<a-card v-if="item.endTime && item.qpublish == '1'" bodyStyle="background: #fff;">
|
||||
<template #title>
|
||||
<span>第{{item.sort}}次测验:{{ item.title }}</span>
|
||||
<span>第{{ item.sort }}次测验:{{ item.title }}</span>
|
||||
</template>
|
||||
<template #extra>
|
||||
<span>ID:{{ item.id }}</span>
|
||||
|
@ -615,10 +647,10 @@
|
|||
<span style="margin-left: 10px">{{ dayjs(item.endTime).format('MM.DD HH:mm') }}</span>
|
||||
</template>
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-col :span="20">
|
||||
<span style="margin-left: 10px">
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click.prevent> <Icon icon="ant-design:setting-outlined" />设计测验 </a>
|
||||
<a class="ant-dropdown-link" @click.prevent> <Icon icon="ant-design:form-outlined" />设计测验 </a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
|
@ -636,11 +668,13 @@
|
|||
</span>
|
||||
<span style="margin-left: 30px">
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />发送问卷 </a>
|
||||
<a class="ant-dropdown-link" @click.prevent
|
||||
><Icon icon="ant-design:setting-outlined" @click="handleViewEwm(item)" /><span @click="handleViewEwm(item)">发送问卷</span>
|
||||
</a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
<a href="javascript:;">链接&二维码</a>
|
||||
<a href="javascript:;" @click="handleViewEwm(item)">链接&二维码</a>
|
||||
<!-- <QrCode :value="qrCodeUrl" class="enter-x flex justify-center xl:justify-start" :width="280" /> -->
|
||||
<QrCode :value="goewm(item)" class="enter-x flex justify-center xl:justify-start" :width="280" />
|
||||
<span
|
||||
|
@ -653,9 +687,21 @@
|
|||
</template>
|
||||
</a-dropdown>
|
||||
</span>
|
||||
<!-- <span style="margin-left: 30px">
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:audit-outlined" />答题结果 </a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
<a href="javascript:;" @click="handleTeaDtjg(item)">答题结果</a>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown>
|
||||
</span> -->
|
||||
<span style="margin-left: 30px">
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />测验结果 </a>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:line-chart-outlined" />测验结果 </a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
|
@ -669,7 +715,7 @@
|
|||
</a-dropdown>
|
||||
</span>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-col :span="4">
|
||||
<div style="text-align: right">
|
||||
<!-- <a @click="handleEdit(item, true)" v-if="item.ytjnum > 0">编辑测验</a>
|
||||
<a-divider type="vertical" /> -->
|
||||
|
@ -681,7 +727,7 @@
|
|||
|
||||
<a-card v-if="item.endTime && item.qpublish == '0'" bodyStyle="background: #fff;">
|
||||
<template #title>
|
||||
<span>第{{item.sort}}次测验:{{ item.title }}</span>
|
||||
<span>第{{ item.sort }}次测验:{{ item.title }}</span>
|
||||
</template>
|
||||
<template #extra>
|
||||
<span>ID:{{ item.id }}</span>
|
||||
|
@ -689,10 +735,10 @@
|
|||
<span style="margin-left: 10px">{{ dayjs(item.endTime).format('MM.DD HH:mm') }}</span>
|
||||
</template>
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-col :span="18">
|
||||
<span style="margin-left: 10px">
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />设计测验 </a>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:form-outlined" />设计测验 </a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
|
@ -720,9 +766,21 @@
|
|||
</template>
|
||||
</a-dropdown>
|
||||
</span>
|
||||
<!-- <span style="margin-left: 30px">
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />答题结果 </a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
<a href="javascript:;" disabled style="color: #9e9e9e">答题结果</a>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown>
|
||||
</span> -->
|
||||
<span style="margin-left: 30px">
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />测验结果 </a>
|
||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:line-chart-outlined" />测验结果 </a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
|
@ -736,7 +794,7 @@
|
|||
</a-dropdown>
|
||||
</span>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-col :span="6">
|
||||
<div style="text-align: right">
|
||||
<a @click="handleEdit(item, false)">编辑测验</a>
|
||||
<a-divider type="vertical" />
|
||||
|
@ -752,6 +810,15 @@
|
|||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
<a-modal v-model:visible="ewmvisible" title="链接&二维码" :width="360" okText="下载" @ok="downloadEwm" cancelText="关闭">
|
||||
<div style="text-align: center; padding: 20px">
|
||||
<QrCode id="qrcode" :value="goewm(ewmInfo)" class="enter-x flex justify-center xl:justify-start" :width="280" style="margin-left: 20px" />
|
||||
<span
|
||||
>链接:<a-input :value="goewm(ewmInfo)" disabled style="width: 200px"></a-input>
|
||||
<a-button @click="copyToClipboard(ewmInfo)">复制</a-button>
|
||||
</span>
|
||||
</div>
|
||||
</a-modal>
|
||||
|
||||
<KcTeachingUnitContentOneListModal ref="registerZcjcModal" @success="handleCheckZcjcSuccess"></KcTeachingUnitContentOneListModal>
|
||||
<WjxWjxxTmlbDjjgsModal ref="WjxWjxxTmlbDjjgsModalPage"></WjxWjxxTmlbDjjgsModal>
|
||||
|
@ -820,6 +887,8 @@ const isShow = ref<boolean>(false);
|
|||
const mainId = ref<string>('');
|
||||
const wjLeixing = ref<string>('6');
|
||||
const qrCodeUrl = ref<string>('');
|
||||
const ewmvisible = ref<boolean>(false);
|
||||
const ewmInfo = ref<any>({});
|
||||
|
||||
//设置测验删除功能
|
||||
const disabledDate = (current: Dayjs) => {
|
||||
|
@ -859,6 +928,30 @@ const labelCol4 = reactive({
|
|||
const wrapperCol4 = reactive({
|
||||
sm: { span: 12 },
|
||||
});
|
||||
//弹出二维码页面
|
||||
function handleViewEwm(record) {
|
||||
console.log('🙎', record);
|
||||
ewmvisible.value = true;
|
||||
ewmInfo.value = record;
|
||||
}
|
||||
|
||||
//答题结果
|
||||
function handleTeaDtjg(item) {
|
||||
console.log('🧳', item);
|
||||
|
||||
var url = '/site/WjxCywjV2Dtjg';
|
||||
url = url + '?rwbh=' + rwbh + '&xqxn=' + xqxn + '&teano=' + teano + '&cyid=' + item.id;
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
//下载二维码
|
||||
function downloadEwm() {
|
||||
let myCanvas = document.getElementById('qrcode').getElementsByTagName('canvas');
|
||||
console.log('🧵', myCanvas);
|
||||
let a = document.createElement('a');
|
||||
a.href = myCanvas[0].toDataURL('image/URL');
|
||||
a.download = '二维码';
|
||||
a.click();
|
||||
}
|
||||
|
||||
//统计分析
|
||||
function handleTjfx(record) {
|
||||
|
@ -1027,6 +1120,9 @@ function handleRemTmxx(record, index, list) {
|
|||
//删除题目
|
||||
function handleDelTigan(record, index) {
|
||||
tiganData.value.splice(index, 1);
|
||||
for (var i = 0; i < tiganData.value.length; i++) {
|
||||
tiganData.value[i].wjIndex = i + 1;
|
||||
}
|
||||
}
|
||||
|
||||
//计算输入框宽度
|
||||
|
@ -1138,13 +1234,13 @@ function cheGrp(a, b) {
|
|||
|
||||
//显示第几个类型模块
|
||||
function handleShowType(val) {
|
||||
zycs.value = tableData.value.length
|
||||
if(tableData.value.length>0){
|
||||
zycs.value = tableData.value.length;
|
||||
if (tableData.value.length > 0) {
|
||||
zycsDisabled.value = true;
|
||||
}else{
|
||||
} else {
|
||||
zycsDisabled.value = false;
|
||||
}
|
||||
console.log('👩👩👧👧', zycsDisabled)
|
||||
console.log('👩👩👧👧', zycsDisabled);
|
||||
|
||||
showType.value = val;
|
||||
}
|
||||
|
@ -1160,11 +1256,16 @@ function handleFabu(record: Recordable) {
|
|||
okText: '确认',
|
||||
cancelText: '取消',
|
||||
onOk: () => {
|
||||
//发布问卷
|
||||
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id, wjlx: wjLeixing.value } }).then((res) => {
|
||||
reloadZy();
|
||||
});
|
||||
},
|
||||
});
|
||||
//推送微信信息
|
||||
setTimeout(() => {
|
||||
defHttp.get({ url: '/wjxWjxx/wjxWjxx/sendWjWechat', params: { id: record.id, wjlx: wjLeixing.value } }).then((res) => {});
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
//动态添加测验次数
|
||||
|
@ -1344,68 +1445,65 @@ async function submitForm() {
|
|||
const data = tiganData.value;
|
||||
|
||||
const values = Object.assign([], data);
|
||||
if(values.length>0){
|
||||
var sfjx = "1";
|
||||
for(let i=0;i<values.length;i++){
|
||||
if (values.length > 0) {
|
||||
var sfjx = '1';
|
||||
for (let i = 0; i < values.length; i++) {
|
||||
let param = values[i];
|
||||
|
||||
values[i].itemSelected = param.itemSelected+"";
|
||||
values[i].itemSelected = param.itemSelected + '';
|
||||
|
||||
|
||||
if(!param.wjTitle){
|
||||
if (!param.wjTitle) {
|
||||
createMessage.error('请填写题目信息');
|
||||
sfjx = "0";
|
||||
sfjx = '0';
|
||||
confirmLoading.value = false;
|
||||
return;
|
||||
}
|
||||
if(isShow.value){
|
||||
if(!param.wjScore){
|
||||
if (isShow.value) {
|
||||
if (!param.wjScore) {
|
||||
createMessage.error('请填写题目分数');
|
||||
sfjx = "0";
|
||||
sfjx = '0';
|
||||
confirmLoading.value = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var wjType = param.wjType;
|
||||
if(wjType != 5){
|
||||
if (wjType != 5) {
|
||||
var itemlist = param.wjxWjxxTmxxList;
|
||||
for(let j=0;j < itemlist.length; j++){
|
||||
if(!itemlist[j].itemTitle){
|
||||
for (let j = 0; j < itemlist.length; j++) {
|
||||
if (!itemlist[j].itemTitle) {
|
||||
createMessage.error('请填写选项信息');
|
||||
sfjx = "0";
|
||||
sfjx = '0';
|
||||
confirmLoading.value = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(isShow.value){
|
||||
if (isShow.value) {
|
||||
var zqda = values[i].itemSelected;
|
||||
if(!zqda||zqda=='NaN'||zqda=='undefined'){
|
||||
createMessage.error('请选择正确答案');
|
||||
sfjx = "0";
|
||||
confirmLoading.value = false;
|
||||
return;
|
||||
if (!zqda || zqda == 'NaN' || zqda == 'undefined') {
|
||||
createMessage.error('请选择正确答案');
|
||||
sfjx = '0';
|
||||
confirmLoading.value = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
if(isShow.value){
|
||||
} else {
|
||||
if (isShow.value) {
|
||||
var wjAnswer = values[i].wjAnswer;
|
||||
if(!wjAnswer||wjAnswer=='NaN'||wjAnswer=='undefined'){
|
||||
createMessage.error('请选择正确答案');
|
||||
sfjx = "0";
|
||||
confirmLoading.value = false;
|
||||
return;
|
||||
if (!wjAnswer || wjAnswer == 'NaN' || wjAnswer == 'undefined') {
|
||||
createMessage.error('请选择正确答案');
|
||||
sfjx = '0';
|
||||
confirmLoading.value = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(sfjx=='0'){
|
||||
if (sfjx == '0') {
|
||||
return;
|
||||
}
|
||||
}else{
|
||||
} else {
|
||||
createMessage.error('至少创建一个试题');
|
||||
confirmLoading.value = false;
|
||||
return;
|
||||
|
@ -1695,6 +1793,11 @@ onMounted(() => {
|
|||
cursor: pointer;
|
||||
color: #18a689;
|
||||
}
|
||||
|
||||
.diva {
|
||||
cursor: pointer;
|
||||
color: #18a689;
|
||||
}
|
||||
.sear-distance {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
@ -1730,7 +1833,7 @@ onMounted(() => {
|
|||
padding: 8px 20px;
|
||||
border-left: 5px solid #029c88;
|
||||
margin: 10px;
|
||||
border-radius:5px;
|
||||
border-radius: 5px;
|
||||
background: #fff;
|
||||
}
|
||||
.tjfx-col {
|
||||
|
@ -1744,25 +1847,25 @@ onMounted(() => {
|
|||
line-height: 25px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.tjfx-line{
|
||||
.tjfx-line {
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #f7f7f7;
|
||||
border-radius: 5px;
|
||||
margin:0 15px;
|
||||
margin: 0 15px;
|
||||
padding: 8px 0;
|
||||
}
|
||||
.tjfx-colt{
|
||||
font-size:22px;
|
||||
.tjfx-colt {
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
color: #1ab394;
|
||||
}
|
||||
.tjfx-colw{
|
||||
.tjfx-colw {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
.tjfx-title {
|
||||
width: 90%;
|
||||
float: left;
|
||||
|
@ -1775,7 +1878,7 @@ onMounted(() => {
|
|||
margin-left: 30px;
|
||||
font-size: 12px;
|
||||
position: absolute;
|
||||
right:15px;
|
||||
right: 15px;
|
||||
}
|
||||
.tjfx-xzrs1 {
|
||||
margin-left: 30px;
|
||||
|
@ -1787,14 +1890,14 @@ onMounted(() => {
|
|||
font-size: 16px;
|
||||
padding: 20px;
|
||||
}
|
||||
.question-type{
|
||||
.question-type {
|
||||
background: #eaf9f6;
|
||||
color: #1ab394;
|
||||
padding:0 5px;
|
||||
padding: 0 5px;
|
||||
border-radius: 3px;
|
||||
border:1px solid #1ab394;
|
||||
border: 1px solid #1ab394;
|
||||
}
|
||||
.answer-word{
|
||||
.answer-word {
|
||||
color: #ff8710;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
@ -7,20 +7,23 @@
|
|||
<!-- 主体部分 -->
|
||||
<a-layout-content>
|
||||
<a-spin :spinning="confirmLoading" v-if="showType == 1">
|
||||
<a-row style="min-height: calc(80vh);background:#fcfcfc;">
|
||||
<a-col :span="24" style="overflow-y: scroll; " >
|
||||
<a-row style="min-height: calc(80vh); background: #fcfcfc">
|
||||
<a-col :span="24" style="overflow-y: scroll">
|
||||
<div style="text-align: center; width: 100%; font-weight: bold; font-size: 20px"> {{ title }}</div>
|
||||
<div style="text-align: center; width: 100%; font-weight: bold; font-size: 20px;color:red;" v-if="sfsxs"> 您不是此测验的学生,不能进行提交</div>
|
||||
<!-- 题干信息 -->
|
||||
<div style="width:100%; padding:0 40px; margin:0 auto;" v-for="(item, index) in tiganData" :key="index">
|
||||
<div style="width: 100%; padding: 0 40px; margin: 0 auto" v-for="(item, index) in tiganData" :key="index">
|
||||
<!-- 单选题 -->
|
||||
<div style="width: 100%" v-if="item.wjType == 3">
|
||||
<div style="text-align: left; width: 100%; font-weight: bold; line-height:80px; font-size: 18px">单选题</div>
|
||||
<div style="text-align: left; width: 100%; font-weight: bold; line-height: 80px; font-size: 18px">单选题</div>
|
||||
<a-card>
|
||||
<template #title>
|
||||
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word"></span>
|
||||
</template>
|
||||
<template #extra>
|
||||
<span style="margin-left: 40px" v-if="isShow">题目分值: <span class="answer-word">{{ item.wjScore }}</span> 分</span>
|
||||
<span style="margin-left: 40px" v-if="isShow"
|
||||
>题目分值: <span class="answer-word">{{ item.wjScore }}</span> 分</span
|
||||
>
|
||||
</template>
|
||||
<a-radio-group v-model:value="item.itemSelected" style="width: 100%" size="default" :disabled="disabled">
|
||||
<div style="width: 100%" v-for="(tmxx, index) in item.wjxWjxxTmxxList" :key="index">
|
||||
|
@ -33,13 +36,15 @@
|
|||
</div>
|
||||
<!-- 多选题 -->
|
||||
<div style="width: 100%" v-else-if="item.wjType == 4">
|
||||
<div style="text-align: left; width: 100%; font-weight: bold; line-height:80px; font-size: 18px">多选题</div>
|
||||
<div style="text-align: left; width: 100%; font-weight: bold; line-height: 80px; font-size: 18px">多选题</div>
|
||||
<a-card>
|
||||
<template #title>
|
||||
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word" />
|
||||
</template>
|
||||
<template #extra>
|
||||
<span style="margin-left: 40px" v-if="isShow">题目分值:<span class="answer-word"> {{ item.wjScore }}</span> 分</span>
|
||||
<span style="margin-left: 40px" v-if="isShow"
|
||||
>题目分值:<span class="answer-word"> {{ item.wjScore }}</span> 分</span
|
||||
>
|
||||
</template>
|
||||
<a-checkbox-group v-model:value="item.itemSelected" style="width: 100%" size="default" :disabled="disabled">
|
||||
<a-row>
|
||||
|
@ -54,13 +59,16 @@
|
|||
</div>
|
||||
<!-- 多选题 -->
|
||||
<div style="width: 100%" v-else-if="item.wjType == 5">
|
||||
<div style="text-align: left; width: 100%; font-weight: bold; line-height:80px; font-size: 18px">填空题</div>
|
||||
<div style="text-align: left; width: 100%; font-weight: bold; line-height: 80px; font-size: 18px">填空题</div>
|
||||
<a-card>
|
||||
<template #title>
|
||||
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style=" font-weight: bold;white-space: pre-wrap; word-wrap: break-word" />
|
||||
<span>{{ index + 1 }}、</span
|
||||
><span v-html="item.wjTitle" style="font-weight: bold; white-space: pre-wrap; word-wrap: break-word" />
|
||||
</template>
|
||||
<template #extra>
|
||||
<span style="margin-left: 40px" v-if="isShow">题目分值: <span class="answer-word">{{ item.wjScore }}</span> 分</span>
|
||||
<span style="margin-left: 40px" v-if="isShow"
|
||||
>题目分值: <span class="answer-word">{{ item.wjScore }}</span> 分</span
|
||||
>
|
||||
</template>
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
|
@ -78,15 +86,16 @@
|
|||
<div v-else> 无对应类型 </div>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24" style="text-align: center">
|
||||
<a-col :span="24" style="text-align: center" v-if="!sfsxs">
|
||||
|
||||
<a-button type="primary" @click="submitForm">提交</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-spin>
|
||||
<div v-if="showType == 2" style="width: 100%; background:#fff; text-align: center;min-height: 500px;">
|
||||
<div style="padding-top: 200px;"
|
||||
> <img class="work-img-img" src="../../../../assets/images/homework.png" />
|
||||
<span style="color:#666">您已提交了测验,请勿重复提交!</span><br><a-button
|
||||
<div v-if="showType == 2" style="width: 100%; background: #fff; text-align: center; min-height: 500px">
|
||||
<div style="padding-top: 200px">
|
||||
<img class="work-img-img" src="../../../../assets/images/homework.png" /> <span style="color: #666">您已提交了测验,请勿重复提交!</span
|
||||
><br /><a-button
|
||||
type="primary"
|
||||
@click="
|
||||
() => {
|
||||
|
@ -97,10 +106,10 @@
|
|||
>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="showType == 3" style="width: 100%; text-align: center;min-height: 500px;">
|
||||
<div style="padding-top: 200px;">
|
||||
<div v-if="showType == 3" style="width: 100%; text-align: center; min-height: 500px">
|
||||
<div style="padding-top: 200px">
|
||||
<img class="work-img-img" src="../../../../assets/images/homework.png" />
|
||||
<span style="color:#666">提交成功,请返回首页!</span><br><a-button
|
||||
<span style="color: #666">提交成功,请返回首页!</span><br /><a-button
|
||||
type="primary"
|
||||
@click="
|
||||
() => {
|
||||
|
@ -160,6 +169,8 @@ const { currentRoute } = useRouter();
|
|||
const router = useRouter();
|
||||
const { query } = unref(currentRoute);
|
||||
const { rwbh, xqxn, type, teano, cytitle, cyid, cyatype, sfzd, sfbs } = query; //获取传递参数
|
||||
|
||||
const sfsxs = ref<boolean>(false);
|
||||
//初始化
|
||||
function edit(record, isDisabled, type, flag) {
|
||||
console.log('👨👨👦', record, isDisabled, type, flag);
|
||||
|
@ -249,14 +260,24 @@ onMounted(() => {
|
|||
console.log('🎅', res);
|
||||
var num = res.num;
|
||||
console.log('🧛', num);
|
||||
if(num && parseInt(num)>0){
|
||||
if (num && parseInt(num) > 0) {
|
||||
showType.value = 2;
|
||||
}else{
|
||||
} else {
|
||||
showType.value = 1;
|
||||
edit({ id: cyid, title: cytitle }, false, cyatype, sfbs);
|
||||
}
|
||||
});
|
||||
|
||||
defHttp.get({ url: '/wjxWjxx/wjxWjxx/getSfxs', params: { id: cyid } }).then((res) => {
|
||||
console.log('🙂', res);
|
||||
var num = res.num;
|
||||
if(num=='1'){
|
||||
sfsxs.value = false;
|
||||
}else{
|
||||
sfsxs.value = true;
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
defineExpose({
|
||||
|
@ -330,7 +351,7 @@ defineExpose({
|
|||
}
|
||||
}
|
||||
}
|
||||
.answer-word{
|
||||
.answer-word {
|
||||
color: #ff8710;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {BasicColumn} from '/@/components/Table';
|
||||
import {FormSchema} from '/@/components/Table';
|
||||
import { rules} from '/@/utils/helper/validator';
|
||||
import { BasicColumn } from '/@/components/Table';
|
||||
import { FormSchema } from '/@/components/Table';
|
||||
import { rules } from '/@/utils/helper/validator';
|
||||
import { render } from '/@/utils/common/renderUtils';
|
||||
//列表数据
|
||||
export const columns: BasicColumn[] = [
|
||||
|
@ -26,13 +26,20 @@ export const columns: BasicColumn[] = [
|
|||
title: '得分',
|
||||
align: "center",
|
||||
dataIndex: 'score',
|
||||
width: 80
|
||||
width: 80,
|
||||
customRender: ({ text }) => {
|
||||
console.log('🥴', text)
|
||||
return parseFloat(text).toFixed(1);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '总分',
|
||||
align: "center",
|
||||
dataIndex: 'totalScore',
|
||||
width: 80
|
||||
width: 80,
|
||||
customRender: ({ text }) => {
|
||||
return parseFloat(text).toFixed(1);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '答卷时间',
|
||||
|
@ -159,7 +166,7 @@ export const searchFormSchema: FormSchema[] = [
|
|||
|
||||
//表单数据
|
||||
export const formSchema: FormSchema[] = [
|
||||
// TODO 主键隐藏字段,目前写死为ID
|
||||
// TODO 主键隐藏字段,目前写死为ID
|
||||
{
|
||||
label: '',
|
||||
field: 'id',
|
||||
|
|
|
@ -30,6 +30,12 @@
|
|||
</template>
|
||||
<span @click="getGzt('dqzy')">课程作业</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub3">
|
||||
<template #icon>
|
||||
<AppstoreOutlined />
|
||||
</template>
|
||||
<span @click="getGzt('qmzy')">期末考试</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub21">
|
||||
<template #icon>
|
||||
<AppstoreAddOutlined />
|
||||
|
@ -73,19 +79,22 @@
|
|||
<a-menu-item key="sub1">
|
||||
<span @click="getGzt('kcjs')">课程简介</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub2">
|
||||
<!-- <a-menu-item key="sub2">
|
||||
<span @click="gotoPageByName('jiaoXueDanYuanNeiRong')">教学单元</span>
|
||||
</a-menu-item>
|
||||
</a-menu-item> -->
|
||||
<a-menu-item key="sub3">
|
||||
<span @click="getGzt('dqzy')">课程作业</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub31">
|
||||
<span @click="getGzt('qmzy')">期末考试</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub4">
|
||||
<span @click="getGzt('kcjc')">课程测验</span>
|
||||
<span @click="getGzt('kcjc')">课堂测验</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub5">
|
||||
<!-- <a-menu-item key="sub5">
|
||||
<span @click="getGzt('dcwj')">问卷调查</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub6">
|
||||
</a-menu-item> -->
|
||||
<!-- <a-menu-item key="sub6">
|
||||
<span @click="getGzt('gongju')">到课识别率</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub7">
|
||||
|
@ -96,7 +105,7 @@
|
|||
</a-menu-item>
|
||||
<a-menu-item key="sub9">
|
||||
<span @click="getGzt('tlq')">讨论区</span>
|
||||
</a-menu-item>
|
||||
</a-menu-item> -->
|
||||
</a-sub-menu>
|
||||
</a-menu>
|
||||
</a-col>
|
||||
|
@ -152,6 +161,8 @@ function getGzt(zytype) {
|
|||
href = '/zy/dqkcTlq';
|
||||
} else if (zytype == 'zycd') {
|
||||
href = '/zy/dqkcCdxx';
|
||||
} else if (zytype == 'qmzy') {
|
||||
href = '/zy/dqkcQmzy';
|
||||
}
|
||||
|
||||
router.push({ path: href, query: { rwbh, xqxn, type, teano } });
|
||||
|
|
|
@ -128,6 +128,8 @@ function openKecheng(record){
|
|||
url = "/stuzy/stuTlq";
|
||||
}else if(record.type=='9'){//通知公告
|
||||
url = "/stuzy/StudentGonggaoList";
|
||||
}else if(record.type=='10'){//通知公告
|
||||
url = "/stuzy/studentQmks";
|
||||
}
|
||||
url = url +"?rwbh="+record.rwbh+"&xqxn="+getSysConfig().flag1+"&teano="+record.fbr;
|
||||
window.open(url,'_blank')
|
||||
|
|
|
@ -35,6 +35,12 @@
|
|||
</template>
|
||||
<span @click="getGzt('dqzy')">课程作业</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub5">
|
||||
<template #icon>
|
||||
<AppstoreOutlined />
|
||||
</template>
|
||||
<span @click="getGzt('qmks')">期末考试</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub7">
|
||||
<template #icon>
|
||||
<AppstoreAddOutlined />
|
||||
|
@ -79,6 +85,9 @@
|
|||
<a-menu-item key="min4">
|
||||
<span @click="getGzt('dqzy')">课程作业</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="min6">
|
||||
<span @click="getGzt('qmks')">期末考试</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="min5">
|
||||
<span @click="getGzt('kcjc')">课程测验</span>
|
||||
</a-menu-item>
|
||||
|
@ -140,6 +149,8 @@ import { MailOutlined, AppstoreOutlined, SettingOutlined, MenuUnfoldOutlined,Pie
|
|||
}else if(zytype == 'stuJiaoXueDanYuanNeiRong'){//教学单元内容
|
||||
router.push({ name: 'stuJiaoXueDanYuanNeiRong', query: { rwbh,xqxn,type,teano } });
|
||||
return;
|
||||
}else if(zytype=='qmks'){//期末考试
|
||||
href = "/stuzy/studentQmks";
|
||||
}
|
||||
|
||||
router.push({path:href,query: {rwbh,xqxn,type,teano}});
|
||||
|
|
|
@ -107,7 +107,7 @@ const { createMessage } = useMessage();
|
|||
const globSetting = useGlobSetting();
|
||||
const baseApiUrl = globSetting.domainUrl;
|
||||
|
||||
const queryParam = ref<any>({ rwbh, xqxn, teano, zyStatus: '1,2,3,4' });
|
||||
const queryParam = ref<any>({ rwbh, xqxn, teano, zyStatus: '1,2,3,4',zyLeixing:'0' });
|
||||
const mainId = ref<string>('');
|
||||
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
|
|
|
@ -381,6 +381,7 @@ function reload() {
|
|||
queryParam.value.xqxn = xqxn;
|
||||
queryParam.value.teano = teano;
|
||||
queryParam.value.zyStatus = '1,2,3,4';
|
||||
queryParam.value.zyLeixing = '0';
|
||||
// queryParam.value.column = 'sort';
|
||||
// queryParam.value.order = 'desc';
|
||||
defHttp.get({ url: '/zyInfo/zyInfo/stuList', params: queryParam.value }).then((res) => {
|
||||
|
|
|
@ -0,0 +1,435 @@
|
|||
<template>
|
||||
<div style="margin-top: 20px">
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<!-- <a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="作业名称">
|
||||
<j-input placeholder="请输入作业名称" v-model:value="queryParam.title"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
||||
<a-col :lg="6">
|
||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||
</a-col>
|
||||
</span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form> -->
|
||||
</div>
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" style="margin-top: -20px">
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" />
|
||||
</template>
|
||||
<!--字段回显插槽-->
|
||||
<template #htmlSlot="{ text }">
|
||||
<div v-html="text"></div>
|
||||
</template>
|
||||
<!--省市区字段回显插槽-->
|
||||
<template #zzdfaction="{ text, record }">
|
||||
<a-popover title="得分情况">
|
||||
<template #content>
|
||||
<p>作业得分:{{ record.stuscore&&record.scoreFabu=='1' ? record.stuscore : '未评' }}分</p>
|
||||
<p v-if="record.jxfs">互评奖励:{{ record.jxfs&&record.scoreFabu=='1' ? record.jxfs : '未评' }}分</p>
|
||||
</template>
|
||||
<div class="Score-List-row">
|
||||
<span class="List-row-number">{{ record.zzdf&&record.scoreFabu=='1' ? record.zzdf : '未评' }}分</span>
|
||||
</div>
|
||||
</a-popover>
|
||||
</template>
|
||||
|
||||
<template #zgcclgaction="{ text, record }">
|
||||
<a-popover title="查重情况">
|
||||
<template #content>
|
||||
<a-row style="width:350px;">
|
||||
<a-col :span="12">
|
||||
<span class="zyCon-word" style="cursor: pointer" @click="handleOpenCcjg(record, '0')">维普资源库查重:</span>{{ getCctype(record, '1') }}
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<span class="zyCon-word" style="cursor: pointer" @click="handleOpenCcjg(record, '1')">本次作业查重:</span>{{ getCctype(record, '2') }}
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<span class="zyCon-word" style="cursor: pointer" @click="handleOpenCcjg(record, '3')">学校作业库查重:</span>{{ getCctype(record, '4') }}
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<span class="zyCon-word" style="cursor: pointer" @click="handleOpenCcjg(record, '2')">Aigc查重:</span>{{ getCctype(record, '3') }}
|
||||
</a-col>
|
||||
</a-row>
|
||||
</template>
|
||||
<div class="Score-List-row">
|
||||
<span class="List-row-number">{{ record.zgccl&&record.zgccl!='0'?record.zgccl:'-' }}</span>
|
||||
</div>
|
||||
</a-popover>
|
||||
</template>
|
||||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<ZyInfoDetailModal ref="registerModal" @success="handleSuccess"></ZyInfoDetailModal>
|
||||
<ZyInfoStudentListModal ref="ZyInfoStudentListModalPage"></ZyInfoStudentListModal>
|
||||
<ZyInfoStudentModal ref="ZyInfoStudentModalPage" @success="handleSuccess"></ZyInfoStudentModal>
|
||||
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="zyInfoStudent-zyInfoStudent" setup>
|
||||
import { ref, reactive, defineExpose, unref } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columnsStu } from '/@/views/zy/zyInfoStudent/ZyInfoStudent.data';
|
||||
import { stuList, deleteOne, batchDelete, getImportUrl, getExportUrl, batchFabu } from '/@/views/zy/zyInfoStudent/ZyInfoStudent.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||
|
||||
// import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue'
|
||||
// import SzybStudentModal from '/@/views/zy/zyInfoStudent/components/SzybStudentModal.vue';
|
||||
// import ZyInfoStudentScoreModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentScoreModal.vue'
|
||||
|
||||
import ZyInfoDetailModal from './components/ZyInfoDetailModal.vue';
|
||||
import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue';
|
||||
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue';
|
||||
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||
import { useGlobSetting } from '/@/hooks/setting';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { JInput } from '/@/components/Form';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const { currentRoute } = useRouter();
|
||||
const { query } = unref(currentRoute);
|
||||
const { rwbh, xqxn, type, teano } = query; //获取传递参数
|
||||
|
||||
const { createMessage } = useMessage();
|
||||
|
||||
const globSetting = useGlobSetting();
|
||||
const baseApiUrl = globSetting.domainUrl;
|
||||
|
||||
const queryParam = ref<any>({ rwbh, xqxn, teano, zyStatus: '1,2,3,4',zyLeixing:'1' });
|
||||
const mainId = ref<string>('');
|
||||
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
// const registerModal = ref();
|
||||
// const registerScoreModal = ref();
|
||||
// const SzybStudentModalpage = ref();
|
||||
|
||||
const registerModal = ref();
|
||||
const ZyInfoStudentListModalPage = ref();
|
||||
const ZyInfoStudentModalPage = ref();
|
||||
const XxhbbksListModalPage = ref();
|
||||
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
api: stuList,
|
||||
columns: columnsStu,
|
||||
canResize: false,
|
||||
useSearchForm: false,
|
||||
actionColumn: {
|
||||
width: '150px',
|
||||
fixed: 'right',
|
||||
},
|
||||
showTableSetting: true,
|
||||
defSort: {
|
||||
field: 'name',
|
||||
order: 'ascend',
|
||||
},
|
||||
beforeFetch: (params) => {
|
||||
(params.column = 'createTime'), (params.order = 'desc'); //新生成的默认不带排序
|
||||
return Object.assign(params, queryParam.value);
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name: '学生作业信息',
|
||||
url: getExportUrl,
|
||||
params: () => {
|
||||
return Object.assign({}, queryParam.value);
|
||||
},
|
||||
},
|
||||
importConfig: {
|
||||
url: getImportUrl,
|
||||
success: handleSuccess,
|
||||
},
|
||||
});
|
||||
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] =
|
||||
tableContext;
|
||||
const labelCol = reactive({
|
||||
xs: { span: 24 },
|
||||
sm: { span: 7 },
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: { span: 24 },
|
||||
sm: { span: 16 },
|
||||
});
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
|
||||
function handleOpenCcjg(record, type) {
|
||||
console.log('🤷', record);
|
||||
var text = '0';
|
||||
if (type == '0') {
|
||||
if (record.wwcc == 'true') {
|
||||
text = '1';
|
||||
} else {
|
||||
text = '0';
|
||||
}
|
||||
} else if (type == '1') {
|
||||
if (record.nwcc == 'true') {
|
||||
text = '1';
|
||||
} else {
|
||||
text = '0';
|
||||
}
|
||||
} else if (type == '2') {
|
||||
if (record.aigccc == 'true') {
|
||||
text = '1';
|
||||
} else {
|
||||
text = '0';
|
||||
}
|
||||
} else if (type == '3') {
|
||||
if (record.xncc == 'true') {
|
||||
text = '1';
|
||||
} else {
|
||||
text = '0';
|
||||
}
|
||||
}
|
||||
if (text == '0') {
|
||||
createMessage.error('此项不查重,请更换查询');
|
||||
return;
|
||||
}
|
||||
defHttp.get({ url: '/zyCcjg/zyCcjg/getCcjg', params: { zyStuId: record.stuId, ccType: type } }).then((res) => {
|
||||
console.log('🧙♂️', res);
|
||||
if(res){
|
||||
var url = res.paperviewurl;
|
||||
if (url) {
|
||||
window.open(url, '_blank');
|
||||
} else {
|
||||
createMessage.error('当前暂无结果');
|
||||
}
|
||||
|
||||
}else{
|
||||
createMessage.error('当前暂无结果');
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
function getCctype(record, type) {
|
||||
var text = '-';
|
||||
if (type == '1') {
|
||||
if (record.wwcc == 'true') {
|
||||
if (record.wwxsl) {
|
||||
text = record.wwxsl + '%';
|
||||
} else if (record.wwsftg && record.wwsftg.indexOf('失败') != -1) {
|
||||
text = '失败';
|
||||
} else if (record.stuFilePath) {
|
||||
text = '检测中';
|
||||
} else {
|
||||
text = '待提交';
|
||||
}
|
||||
} else {
|
||||
text = '不查重';
|
||||
}
|
||||
} else if (type == '2') {
|
||||
if (record.nwcc == 'true') {
|
||||
if (record.nwxsl) {
|
||||
text = record.nwxsl + '%';
|
||||
} else if (record.nwsftg && record.nwsftg.indexOf('失败') != -1) {
|
||||
text = '失败';
|
||||
} else if (record.stuFilePath) {
|
||||
text = '检测中';
|
||||
} else {
|
||||
text = '待提交';
|
||||
}
|
||||
} else {
|
||||
text = '不查重';
|
||||
}
|
||||
} else if (type == '3') {
|
||||
if (record.aigccc == 'true') {
|
||||
if (record.aigcxsl) {
|
||||
text = record.aigcxsl + '%';
|
||||
} else if (record.aigcsftg && record.aigcsftg.indexOf('失败') != -1) {
|
||||
text = '失败';
|
||||
} else if (record.stuFilePath) {
|
||||
text = '检测中';
|
||||
} else {
|
||||
text = '待提交';
|
||||
}
|
||||
} else {
|
||||
text = '不查重';
|
||||
}
|
||||
} else if (type == '4') {
|
||||
if (record.xncc == 'true') {
|
||||
if (record.xnxsl) {
|
||||
text = record.xnxsl + '%';
|
||||
} else if (record.xnsftg && record.xnsftg.indexOf('失败') != -1) {
|
||||
text = '失败';
|
||||
} else if (record.stuFilePath) {
|
||||
text = '检测中';
|
||||
} else {
|
||||
text = '待提交';
|
||||
}
|
||||
} else {
|
||||
text = '不查重';
|
||||
}
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
//上传作业附件
|
||||
function handleShangchuan(record) {
|
||||
let timestamp = new Date().getTime();
|
||||
let startTimestamp = Date.parse(record.startTime);
|
||||
if (timestamp < startTimestamp) {
|
||||
createMessage.error('还未到提交作业时间!');
|
||||
return;
|
||||
}
|
||||
let endTimestamp = Date.parse(record.endTime + ' 23:59:59');
|
||||
if (timestamp > endTimestamp) {
|
||||
createMessage.error('提交作业时间已过!');
|
||||
return;
|
||||
}
|
||||
|
||||
ZyInfoStudentModalPage.value.disableSubmit = false;
|
||||
var param = { id: record.stuId, zyfj: record.filePath };
|
||||
ZyInfoStudentModalPage.value.edit(param);
|
||||
// createConfirm({
|
||||
// iconType: 'warning',
|
||||
// title: '确认上传',
|
||||
// content: '作业上传后,不可修改,请仔细检查后提交',
|
||||
// okText: '确认',
|
||||
// cancelText: '取消',
|
||||
// onOk: () => {
|
||||
// ZyInfoStudentModalPage.value.disableSubmit = false;
|
||||
// var param = {id:record.stuId,zyfj:record.filePath}
|
||||
// ZyInfoStudentModalPage.value.edit(param);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
//预览
|
||||
function handlePreview(record) {
|
||||
var url2 = getFileAccessHttpUrl(record.stuPdfPath);
|
||||
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
function handleDownload(record) {
|
||||
downloadFile(record.stuFilePath);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
selectedRowKeys.value = [];
|
||||
reload();
|
||||
}
|
||||
|
||||
function handleDown(text) {
|
||||
downloadFile(text);
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
console.log('👎', record);
|
||||
|
||||
// <a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;background:rgb(28, 132, 198);">详情</a-button>
|
||||
// <a-button type="primary" @click="handleShangchuan(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="!item.stuFilePath">上传</a-button>
|
||||
// <a-button type="primary" @click="handleDownload(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.stuFilePath">下载</a-button>
|
||||
// <a-button type="primary" @click="handlePreview(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.stuFilePath">预览</a-button>
|
||||
|
||||
if (record.stuFilePath) {
|
||||
var list = [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
},
|
||||
{
|
||||
label: '下载',
|
||||
onClick: handleDownload.bind(null, record),
|
||||
},
|
||||
{
|
||||
label: '预览',
|
||||
onClick: handlePreview.bind(null, record),
|
||||
},
|
||||
];
|
||||
return list;
|
||||
} else {
|
||||
var list = [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
},
|
||||
{
|
||||
label: '上传',
|
||||
onClick: handleShangchuan.bind(null, record),
|
||||
},
|
||||
];
|
||||
return list;
|
||||
}
|
||||
}
|
||||
function handleYulan(text) {
|
||||
window.open(text, '_blank');
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
selectedRowKeys.value = [];
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
queryParam.value = {};
|
||||
selectedRowKeys.value = [];
|
||||
queryParam.value.mainId = mainId;
|
||||
//刷新数据
|
||||
reload();
|
||||
}
|
||||
|
||||
function init(record) {
|
||||
selectedRowKeys.value = [];
|
||||
queryParam.value = {};
|
||||
queryParam.value.mainId = record.id;
|
||||
queryParam.value.queryType = record.queryType;
|
||||
mainId.value = record.id;
|
||||
reload();
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
init,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.query-group-cust {
|
||||
width: calc(50% - 15px);
|
||||
min-width: 100px !important;
|
||||
}
|
||||
.query-group-split-cust {
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,504 @@
|
|||
<template>
|
||||
<div style="background: #fff; overflow-y: auto; overflow-x: hidden; margin: 10px 5px;height: calc(100% - 10px);">
|
||||
<a-row>
|
||||
<a-col :span="24" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px; border-radius: 10px; overflow: hidden;">
|
||||
<div style="width: 100%; height:40px;border-radius: 10px 10px 0 0; background-color: #f7f7f7">
|
||||
<!-- <a-col :span="24" style="height:40px; line-height:40px; padding-left:15px; color:#333; overflow: hidden;" > -->
|
||||
<div style="font-size: 18px; font-weight: bold">第{{ item.sort }}次考试(本次考试在期末成绩中的占比:{{item.zyzb}}%)</div>
|
||||
<!-- </a-col> -->
|
||||
</div>
|
||||
<a-card style="height: 240px; border: 1px solid #eeeeee">
|
||||
<div class="rotate" :style="classFun(item)">{{ callText(item) }}</div>
|
||||
<a-row style="top: -60px; position: relative">
|
||||
<a-col :span="24" class="zytitle" :title="item.title" @click="handleDetail(item)"
|
||||
><span class="zytitle-back">{{ item.title }}</span></a-col
|
||||
>
|
||||
<a-col :span="12" class="zyCon"
|
||||
><span class="zyCon-word">考试时间:</span>{{ dayjs(item.startTime).format('YYYY.MM.DD HH:mm') }} ~
|
||||
{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</a-col
|
||||
>
|
||||
<a-col :span="12" class="zyCon"
|
||||
><span class="zyCon-word">互评时间:</span
|
||||
><span v-if="item.xshpkg == '1'"
|
||||
>{{ dayjs(item.xshpkssj).format('YYYY.MM.DD HH:mm') }} ~ {{ dayjs(item.xshpjssj).format('YYYY.MM.DD HH:mm') }}</span
|
||||
><span v-else>未设置互评</span></a-col
|
||||
>
|
||||
<a-col :span="12" class="zyCon Score-List">
|
||||
<a-popover title="得分情况">
|
||||
<template #content>
|
||||
<p>考试得分:{{ item.stuscore && item.scoreFabu == '1' ? item.stuscore : '未评' }}分</p>
|
||||
<p v-if="item.jxfs">互评奖励:{{ item.jxfs && item.scoreFabu == '1' ? item.jxfs : '未评' }}分</p>
|
||||
</template>
|
||||
<div class="Score-List-row">
|
||||
<span class="List-row-number">{{ item.zzdf && item.scoreFabu == '1' ? item.zzdf : '未评' }}分</span>
|
||||
<span class="List-row-word">总分</span>
|
||||
</div>
|
||||
</a-popover>
|
||||
<a-popover title="查重情况">
|
||||
<template #content>
|
||||
<a-row style="width: 400px">
|
||||
<a-col :span="12">
|
||||
<span class="zyCon-word">维普资源库查重:</span
|
||||
>{{ getCctype(item, '1') }}<span @click="handleOpenCcjg(item, '0')" style="color:#1ab394;cursor: pointer;" v-if="item.wwxsl">报告</span>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<span class="zyCon-word">本次考试查重:</span
|
||||
>{{ getCctype(item, '2') }}<span @click="handleOpenCcjg(item, '1')" style="color:#1ab394;cursor: pointer;" v-if="item.nwxsl">报告</span>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<span class="zyCon-word">学校考试库查重:</span
|
||||
>{{ getCctype(item, '4') }}<span @click="handleOpenCcjg(item, '3')" style="color:#1ab394;cursor: pointer;" v-if="item.xnxsl">报告</span>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<span class="zyCon-word">Aigc查重:</span>{{ getCctype(item, '3') }}
|
||||
<span @click="handleOpenCcjg(item, '2')" style="color:#1ab394;cursor: pointer;" v-if="item.aigcxsl">报告</span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</template>
|
||||
<div class="Score-List-row">
|
||||
<span class="List-row-number">{{ item.zgccl && item.zgccl != '0' ? item.zgccl : '-' }}</span>
|
||||
<span class="List-row-word">查重率</span>
|
||||
</div>
|
||||
</a-popover>
|
||||
</a-col>
|
||||
<a-col :span="24" style="text-align: left; border-top: 1px solid #f6f6f6; padding-top: 10px">
|
||||
<a-button class="zyCon-button" type="primary" @click="handleDetail(item)"> 详情 </a-button>
|
||||
<a-button class="zyCon-button" type="primary" @click="handleShangchuan(item)" v-if="!item.stuFilePath"> 上传 </a-button>
|
||||
<a-button class="zyCon-button" type="primary" @click="handleDownload(item)" v-if="item.stuFilePath"> 下载 </a-button>
|
||||
<a-button class="zyCon-button" type="primary" @click="handlePreview(item)" v-if="item.stuFilePath"> 预览 </a-button>
|
||||
<a-button
|
||||
class="zyCon-button"
|
||||
type="primary"
|
||||
@click="handleHuping(item)"
|
||||
v-if="handleSfkshp(item) == 1 || handleSfkshp(item) == 2"
|
||||
:disabled="handleSfkshp(item) != 1"
|
||||
:title="handleSfkshp(item) == 1 ? '' : '未到互评时间或已过互评时间'"
|
||||
>
|
||||
互评
|
||||
</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-card>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<div v-show="tableData.length > 0">
|
||||
<a-pagination
|
||||
v-model="current"
|
||||
:total="total"
|
||||
@change="handlePageChange"
|
||||
:pageSize="pageSize"
|
||||
style="text-align: right; margin-top: 5px; margin-bottom: 10px"
|
||||
/>
|
||||
</div>
|
||||
<div v-show="tableData.length == 0">
|
||||
<a-empty />
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<ZyInfoDetailModal ref="registerModal" @success="handleSuccess"></ZyInfoDetailModal>
|
||||
<ZyInfoStudentListModal ref="ZyInfoStudentListModalPage"></ZyInfoStudentListModal>
|
||||
<ZyInfoStudentModal ref="ZyInfoStudentModalPage" @success="handleSuccess"></ZyInfoStudentModal>
|
||||
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="zyInfo-zyInfo" setup>
|
||||
import { ref, reactive, onMounted, unref } from 'vue';
|
||||
import { list, deleteOne } from './ZyInfo.api';
|
||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||
import { Input, Popover, Pagination, Empty } from 'ant-design-vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||
import { useGlobSetting } from '/@/hooks/setting';
|
||||
import dayjs from 'dayjs';
|
||||
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
||||
import ZyInfoDetailModal from './components/ZyInfoDetailModal.vue';
|
||||
import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue';
|
||||
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue';
|
||||
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||
import { def } from '@vue/shared';
|
||||
|
||||
//当前路由信息
|
||||
const { currentRoute } = useRouter();
|
||||
const { query } = unref(currentRoute);
|
||||
const { rwbh, xqxn, type, teano } = query; //获取传递参数
|
||||
const APagination = Pagination;
|
||||
const { createConfirm, createMessage } = useMessage();
|
||||
const queryParam = ref<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const ZyInfoStudentListModalPage = ref();
|
||||
const ZyInfoStudentModalPage = ref();
|
||||
const XxhbbksListModalPage = ref();
|
||||
const current = ref<number>(0);
|
||||
const total = ref<number>(0);
|
||||
const pageNo = ref<number>(0);
|
||||
const pageSize = ref<number>(6);
|
||||
const tableData = ref<any>([]);
|
||||
const globSetting = useGlobSetting();
|
||||
const baseApiUrl = globSetting.domainUrl;
|
||||
let router = useRouter();
|
||||
|
||||
const labelCol = reactive({
|
||||
xs: { span: 24 },
|
||||
sm: { span: 7 },
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: { span: 24 },
|
||||
sm: { span: 16 },
|
||||
});
|
||||
|
||||
function handleHpfs(record) {
|
||||
var href = '/stuzy/zyhpDetail';
|
||||
router.push({ path: href, query: { rwbh, xqxn, type, teano, zyStuId: record.stuId, mainId: record.id } });
|
||||
}
|
||||
|
||||
function handleOpenCcjg(record, type) {
|
||||
console.log('🤷', record);
|
||||
var text = '0';
|
||||
if (type == '0') {
|
||||
if (record.wwcc == 'true') {
|
||||
text = '1';
|
||||
} else {
|
||||
text = '0';
|
||||
}
|
||||
} else if (type == '1') {
|
||||
if (record.nwcc == 'true') {
|
||||
text = '1';
|
||||
} else {
|
||||
text = '0';
|
||||
}
|
||||
} else if (type == '2') {
|
||||
if (record.aigccc == 'true') {
|
||||
text = '1';
|
||||
} else {
|
||||
text = '0';
|
||||
}
|
||||
} else if (type == '3') {
|
||||
if (record.xncc == 'true') {
|
||||
text = '1';
|
||||
} else {
|
||||
text = '0';
|
||||
}
|
||||
}
|
||||
if (text == '0') {
|
||||
createMessage.error('此项不查重,请更换查询');
|
||||
return;
|
||||
}
|
||||
defHttp.get({ url: '/zyCcjg/zyCcjg/getCcjg', params: { zyStuId: record.stuId, ccType: type } }).then((res) => {
|
||||
console.log('🧙♂️', res);
|
||||
if(res){
|
||||
var url = res.paperviewurl;
|
||||
if (url) {
|
||||
window.open(url, '_blank');
|
||||
} else {
|
||||
createMessage.error('当前暂无结果');
|
||||
}
|
||||
}else{
|
||||
createMessage.error('当前暂无结果');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function handleSfkshp(record) {
|
||||
var sfkshp = record.xshpkg;
|
||||
var xshpkssj = new Date(record.xshpkssj);
|
||||
var xshpjssj = new Date(record.xshpjssj);
|
||||
var nowTime = new Date();
|
||||
if (record.stuFilePath && sfkshp == '1' && nowTime.getTime() >= xshpkssj.getTime() && nowTime.getTime() <= xshpjssj.getTime()) {
|
||||
return 1;
|
||||
} else if (record.stuFilePath && sfkshp == '1') {
|
||||
return 2;
|
||||
} else {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
function handleHuping(record) {
|
||||
console.log('🧒', record);
|
||||
var href = '/stuzy/zyhp';
|
||||
router.push({ path: href, query: { rwbh, xqxn, type, teano, zyStuId: record.stuId, mainId: record.id } });
|
||||
}
|
||||
|
||||
function getCctype(record, type) {
|
||||
var text = '-';
|
||||
if (type == '1') {
|
||||
if (record.wwcc == 'true') {
|
||||
if (record.wwxsl) {
|
||||
text = record.wwxsl + '%';
|
||||
} else if (record.wwsftg && record.wwsftg.indexOf('失败') != -1) {
|
||||
text = '失败';
|
||||
} else if (record.stuFilePath) {
|
||||
text = '检测中';
|
||||
} else {
|
||||
text = '待提交';
|
||||
}
|
||||
} else {
|
||||
text = '不查重';
|
||||
}
|
||||
} else if (type == '2') {
|
||||
if (record.nwcc == 'true') {
|
||||
if (record.nwxsl) {
|
||||
text = record.nwxsl + '%';
|
||||
} else if (record.nwsftg && record.nwsftg.indexOf('失败') != -1) {
|
||||
text = '失败';
|
||||
} else if (record.stuFilePath) {
|
||||
text = '检测中';
|
||||
} else {
|
||||
text = '待提交';
|
||||
}
|
||||
} else {
|
||||
text = '不查重';
|
||||
}
|
||||
} else if (type == '3') {
|
||||
if (record.aigccc == 'true') {
|
||||
if (record.aigcxsl) {
|
||||
text = record.aigcxsl + '%';
|
||||
} else if (record.aigcsftg && record.aigcsftg.indexOf('失败') != -1) {
|
||||
text = '失败';
|
||||
} else if (record.stuFilePath) {
|
||||
text = '检测中';
|
||||
} else {
|
||||
text = '待提交';
|
||||
}
|
||||
} else {
|
||||
text = '不查重';
|
||||
}
|
||||
} else if (type == '4') {
|
||||
if (record.xncc == 'true') {
|
||||
if (record.xnxsl) {
|
||||
text = record.xnxsl + '%';
|
||||
} else if (record.xnsftg && record.xnsftg.indexOf('失败') != -1) {
|
||||
text = '失败';
|
||||
} else if (record.stuFilePath) {
|
||||
text = '检测中';
|
||||
} else {
|
||||
text = '待提交';
|
||||
}
|
||||
} else {
|
||||
text = '不查重';
|
||||
}
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
function classFun(record) {
|
||||
if (record.stuscore) {
|
||||
return 'background: linear-gradient(180deg, #fb8c7f, #f56670);';
|
||||
} else if (record.stuFilePath) {
|
||||
return 'background: linear-gradient(180deg, #fea317, #ff7d28);';
|
||||
} else {
|
||||
return 'background: linear-gradient(180deg, #61c4e3, #23a6d4)';
|
||||
}
|
||||
}
|
||||
function callText(record) {
|
||||
if (record.stuscore) {
|
||||
return '已完成';
|
||||
} else if (record.stuFilePath) {
|
||||
return '待评分';
|
||||
} else {
|
||||
return '待提交';
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
//上传考试附件
|
||||
function handleShangchuan(record) {
|
||||
let timestamp = new Date().getTime();
|
||||
let startTimestamp = Date.parse(record.startTime);
|
||||
if (timestamp < startTimestamp) {
|
||||
createMessage.error('还未到提交考试时间!');
|
||||
return;
|
||||
}
|
||||
let endTimestamp = Date.parse(record.endTime);
|
||||
if (timestamp > endTimestamp) {
|
||||
createMessage.error('提交考试时间已过!');
|
||||
return;
|
||||
}
|
||||
|
||||
ZyInfoStudentModalPage.value.disableSubmit = false;
|
||||
var param = { id: record.stuId, zyfj: record.filePath };
|
||||
ZyInfoStudentModalPage.value.edit(param);
|
||||
}
|
||||
|
||||
//预览
|
||||
function handlePreview(record) {
|
||||
var url2 = getFileAccessHttpUrl(record.stuPdfPath);
|
||||
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
function handleDownload(record) {
|
||||
downloadFile(record.stuFilePath);
|
||||
}
|
||||
|
||||
//获取选课人数
|
||||
function openXkrs(record) {
|
||||
console.log(`🚀 ~ openXkrs ~ record:`, record);
|
||||
XxhbbksListModalPage.value.disableSubmit = false;
|
||||
XxhbbksListModalPage.value.init(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调,用于增加、修改、发布和撤回
|
||||
*/
|
||||
function handleSuccess() {
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
total.value = 1;
|
||||
handlePageChange(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
queryParam.value = {};
|
||||
//刷新数据
|
||||
total.value = 1;
|
||||
handlePageChange(1);
|
||||
}
|
||||
|
||||
function reload() {
|
||||
queryParam.value.pageNo = current.value;
|
||||
queryParam.value.pageSize = pageSize.value;
|
||||
queryParam.value.rwbh = rwbh;
|
||||
queryParam.value.xqxn = xqxn;
|
||||
queryParam.value.teano = teano;
|
||||
queryParam.value.zyStatus = '1,2,3,4';
|
||||
queryParam.value.zyLeixing = '1';
|
||||
// queryParam.value.column = 'sort';
|
||||
// queryParam.value.order = 'desc';
|
||||
defHttp.get({ url: '/zyInfo/zyInfo/stuList', params: queryParam.value }).then((res) => {
|
||||
// console.log(`🚀 ~ defHttp.get ~ res:`, res)
|
||||
total.value = res.total;
|
||||
pageNo.value = res.pages;
|
||||
current.value = res.current;
|
||||
tableData.value = res.records;
|
||||
});
|
||||
}
|
||||
|
||||
function handlePageChange(record) {
|
||||
current.value = record;
|
||||
reload();
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
searchQuery();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
padding: 0;
|
||||
width: 99%;
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.query-group-cust {
|
||||
width: calc(50% - 15px);
|
||||
min-width: 100px !important;
|
||||
}
|
||||
.query-group-split-cust {
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.jeecg-basic-table-form-container .ant-form {
|
||||
padding: 12px 10px 0px 10px;
|
||||
margin-bottom: 0px;
|
||||
background-color: #fff;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.ellipsis {
|
||||
overflow: hidden; /* 确保超出容器的内容被裁剪 */
|
||||
white-space: nowrap; /* 确保文本在一行内显示 */
|
||||
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
||||
}
|
||||
.zyCon {
|
||||
line-height: 30px;
|
||||
color: #999;
|
||||
}
|
||||
.rotate {
|
||||
transform: rotate(45deg);
|
||||
background: linear-gradient(90deg, #93d861, #8ddc53, #35c495);
|
||||
color: #fff;
|
||||
padding: 10px 0px 5px 0px;
|
||||
position: relative;
|
||||
top: -65px;
|
||||
right: -400px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
.wpopen:hover {
|
||||
cursor: pointer;
|
||||
color: #18a689;
|
||||
}
|
||||
.zyCon-word {
|
||||
color: #333;
|
||||
}
|
||||
.Score-List {
|
||||
display: flex;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.Score-List-row {
|
||||
display: flex;
|
||||
width: 50%;
|
||||
flex-direction: column;
|
||||
margin-right: 10px;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
background: #f7f7f7;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.List-row-number {
|
||||
font-weight: bold;
|
||||
font-size: 18px;
|
||||
color: #ffa200;
|
||||
}
|
||||
.Score-List-row :hover {
|
||||
color: #1ab394;
|
||||
cursor: pointer;
|
||||
}
|
||||
.List-row-word {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
}
|
||||
.zyCon-button {
|
||||
margin-right: 10px;
|
||||
}
|
||||
.zytitle {
|
||||
overflow: hidden; /* 确保超出容器的内容被裁剪 */
|
||||
white-space: nowrap; /* 确保文本在一行内显示 */
|
||||
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
||||
margin-left: -24px;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.zytitle-back {
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
text-indent: 20px;
|
||||
padding: 5px 15px;
|
||||
border-radius: 0 30px 30px 0;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,27 @@
|
|||
<template>
|
||||
<div style="background: #fff;height: 97%;margin: 10px 0;">
|
||||
<div style="text-align:right;width:100%;">
|
||||
<a-switch v-model:checked="checked1" checkedChildren="卡片" unCheckedChildren="列表" @change="onChange1"/>
|
||||
</div>
|
||||
<div v-if="checked1">
|
||||
<StudentZyInfoList/>
|
||||
</div>
|
||||
<div v-if="!checked1">
|
||||
<StudentZyInfoLiebiaoList/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="zyInfo-zyInfo" setup>
|
||||
import { ref, reactive, onMounted,unref } from 'vue';
|
||||
import StudentZyInfoLiebiaoList from '/@/views/zy/zyInfo/StudentZyInfoQmksLiebiaoList.vue'
|
||||
import StudentZyInfoList from '/@/views/zy/zyInfo/StudentZyInfoQmksList.vue'
|
||||
|
||||
const checked1 = ref(true);
|
||||
|
||||
function onChange1(record){
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
</style>
|
File diff suppressed because it is too large
Load Diff
|
@ -9,15 +9,20 @@
|
|||
</div>
|
||||
<a-col :span="24" style="text-align: center; color: #494b56">
|
||||
<div>老师您好,</div>
|
||||
<div>请根据课程目标及课程教学大纲的要求,</div>
|
||||
<div>设置学生修完本课程需要完成的作业次数及每次作业在期末成绩中所占的比例。</div>
|
||||
<div style="margin-top: 30px" class="ant-btn buttonClass"><a @click="handleShowType(1)">设置作业次数</a></div>
|
||||
<div>请根据课程教学大纲的要求,</div>
|
||||
<div>设置学生修完本课程需要完成的作业次数及每次作业在期末总成绩中所占的比例。</div>
|
||||
<div style="margin-top: 30px" class="ant-btn buttonClass"><a @click="handleSzzycs(1)">设置作业次数</a></div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
<div v-if="showType == 1">
|
||||
<a-row>
|
||||
<a-col :span="24"><span class="title">课程作业次数设置</span><a-divider /></a-col>
|
||||
<a-col :span="24" style="margin-top: 10px">
|
||||
<div class="title">
|
||||
<span>期末考试占比:</span><span>{{ otherKszb }}%</span>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24" style="padding: 0 0 0 30px">
|
||||
<a-row>
|
||||
<a-col :span="18" style="margin-top: 5px">
|
||||
|
@ -190,7 +195,7 @@
|
|||
<template #addonAfter>人</template>
|
||||
</a-input-number>
|
||||
</a-form-item> -->
|
||||
<a-form-item label="互评成绩" :labelCol="labelCol3" :wrapperCol="wrapperCol3" style="margin-top: 20px; margin-left: -30px">
|
||||
<a-form-item label="互评结果使用" :labelCol="labelCol3" :wrapperCol="wrapperCol3" style="margin-top: 20px; margin-left: -30px">
|
||||
<a-radio-group v-model:value="zyInfo.sfzzcj" style="width: 100%" size="default" :disabled="editDisabled">
|
||||
<a-radio :value="'1'" style="width: 100%; margin-bottom: 5px">互评成绩为最终成绩</a-radio>
|
||||
<a-radio :value="'0'" style="width: 100%; margin-bottom: 5px">互评成绩作为教师评分的参考成绩</a-radio>
|
||||
|
@ -429,7 +434,7 @@
|
|||
<a-row>
|
||||
<a-col :span="24"><span class="title">布置作业</span><a-divider /></a-col>
|
||||
<a-col :span="24" style="text-align: right; margin-top: 5px">
|
||||
<a @click="handleShowType(1)" class="ant-btn buttonClass"><Icon icon="ant-design:edit-outlined" />修改课程作业次数</a>
|
||||
<a @click="handleSzzycs(1)" class="ant-btn buttonClass"><Icon icon="ant-design:edit-outlined" />修改课程作业次数</a>
|
||||
<a-divider type="vertical" />
|
||||
<a @click="handleAddOne" class="ant-btn buttonClass mar-right20"><Icon icon="ant-design:file-add-outlined" />新增作业</a>
|
||||
</a-col>
|
||||
|
@ -593,6 +598,7 @@ const pageSize = ref<number>(100);
|
|||
const tableData = ref<any>([]);
|
||||
const showType = ref<number>(0);
|
||||
const zycs = ref<number>(0);
|
||||
const otherKszb = ref<number>(0);
|
||||
const zycsDisabled = ref<boolean>(false);
|
||||
const zyInfo = ref<any>({});
|
||||
const formRef = ref();
|
||||
|
@ -958,7 +964,7 @@ function handleSzzynr(record) {
|
|||
function handleBatchAdd() {
|
||||
var list = tableData.value;
|
||||
var sfjx = 0; //是否继续
|
||||
var cjbfb = 0; //成绩百分比
|
||||
var cjbfb = otherKszb.value; //成绩百分比
|
||||
if (list.length == 0) {
|
||||
createMessage.error('作业次数不能为空!');
|
||||
return;
|
||||
|
@ -1002,6 +1008,14 @@ function handleBatchAdd() {
|
|||
},
|
||||
});
|
||||
}
|
||||
|
||||
function handleSzzycs(val){
|
||||
defHttp.get({ url: '/zyInfo/zyInfo/zyzb', params:{rwbh,xqxn,teano,zyLeixing:'1'}}).then((res) => {
|
||||
otherKszb.value = res?.score?res.score:0;
|
||||
});
|
||||
handleShowType(1)
|
||||
}
|
||||
|
||||
//显示第几个类型模块
|
||||
function handleShowType(val) {
|
||||
|
||||
|
@ -1490,6 +1504,8 @@ function handleZySuccess(zyid) {
|
|||
}, 1500);
|
||||
var url = '/zyInfo/zyInfo/editStudent';
|
||||
defHttp.get({ url: url, params: { id: zyid } }).then((res) => {});
|
||||
|
||||
defHttp.get({ url: '/zyInfo/zyInfo/sendZyWechat', params: { id: zyid } }).then((res) => {});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1516,6 +1532,7 @@ function reloadZy() {
|
|||
queryParamZy.value.rwbh = rwbh;
|
||||
queryParamZy.value.xnxq = xqxn;
|
||||
queryParamZy.value.teano = teano;
|
||||
queryParamZy.value.zyLeixing = '0';
|
||||
// queryParamZy.value.column = 'a.sort';
|
||||
// queryParamZy.value.order = 'asc';
|
||||
defHttp.get({ url: '/zyInfo/zyInfo/list', params: queryParamZy.value }).then((res) => {
|
||||
|
|
Loading…
Reference in New Issue