修改bug
This commit is contained in:
parent
93b0a26f70
commit
b4a7b8f07e
|
@ -89,3 +89,33 @@ export function downloadByUrl({ url, target = '_blank', fileName }: { url: strin
|
|||
openWindow(url, { target });
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
export function openByUrl({ url, target = '_blank', fileName }: { url: string; target?: TargetContext; fileName?: string }): boolean {
|
||||
const isChrome = window.navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
|
||||
const isSafari = window.navigator.userAgent.toLowerCase().indexOf('safari') > -1;
|
||||
|
||||
if (/(iP)/g.test(window.navigator.userAgent)) {
|
||||
console.error('Your browser does not support download!');
|
||||
return false;
|
||||
}
|
||||
if (isChrome || isSafari) {
|
||||
const link = document.createElement('a');
|
||||
link.href = url;
|
||||
link.target = target;
|
||||
|
||||
if (link.download !== undefined) {
|
||||
link.download = fileName || url.substring(url.lastIndexOf('/') + 1, url.length);
|
||||
}
|
||||
|
||||
if (document.createEvent) {
|
||||
const e = document.createEvent('MouseEvents');
|
||||
e.initEvent('click', true, true);
|
||||
link.dispatchEvent(e);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
openWindow(url, { target });
|
||||
return true;
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
<a-sub-menu key="sub1">
|
||||
<template #title>教学内容</template>
|
||||
<a-menu-item key="1" @click="getGzt('kcjs')">课程简介</a-menu-item>
|
||||
<a-menu-item key="3" @click="gotoPageByName('jiaoXueDanYuanNeiRong')">教学单元内容</a-menu-item>
|
||||
<a-menu-item key="3" @click="gotoPageByName('jiaoXueDanYuanNeiRong')">教学单元</a-menu-item>
|
||||
</a-sub-menu>
|
||||
<a-menu-item key="sub2">
|
||||
<span @click="getGzt('dqzy')">课程作业</span>
|
||||
|
@ -75,7 +75,7 @@
|
|||
<span @click="getGzt('kcjs')">课程简介</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub2">
|
||||
<span @click="gotoPageByName('jiaoXueDanYuanNeiRong')">教学单元内容</span>
|
||||
<span @click="gotoPageByName('jiaoXueDanYuanNeiRong')">教学单元</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub3">
|
||||
<span @click="getGzt('dqzy')">课程作业</span>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<template #title>教学内容</template>
|
||||
<a-menu-item key="1" @click="getGzt('kcjs')">课程简介</a-menu-item>
|
||||
<a-menu-item key="2" @click="getGzt('gonggao')">通知公告</a-menu-item>
|
||||
<a-menu-item key="3" @click="getGzt('jxdynr')">教学单元内容</a-menu-item>
|
||||
<a-menu-item key="3" @click="getGzt('jxdynr')">教学单元</a-menu-item>
|
||||
</a-sub-menu>
|
||||
<a-sub-menu key="sub2">
|
||||
<template #title>作业/测验</template>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<div style="font-size: 18px; font-weight: bold">{{ item.title }}</div>
|
||||
</a-col>
|
||||
<a-col :span="24" class="zyCon">作业时间:{{ dayjs(item.startTime).format('YYYY.MM.DD HH:mm') }} ~ {{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</a-col>
|
||||
<a-col :span="24" class="zyCon">互评时间:<span v-if="item.xshpkg == '1'">{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }} ~ {{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</span><span v-else>未设置互评</span></a-col>
|
||||
<a-col :span="24" class="zyCon">互评时间:<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="24" class="zyCon">
|
||||
<span style="text-align: left;width:50%;display: block;float:left;">作业得分:{{ item.stuscore ? item.stuscore : '未评' }}分</span>
|
||||
<span style="text-align: right;width:50%;display: block;float:left;" class="wpopen" v-if="handleSfkshp(item)" @click="handleHpfs(item)">互评分数:{{ item.xshpfs ? item.xshpfs : '未评' }}分</span>
|
||||
|
|
|
@ -7,7 +7,7 @@ d<template>
|
|||
<div class="work-img">
|
||||
<img class="work-img-img" src="../../../assets/images/homework.png" />
|
||||
</div>
|
||||
<a-col :span="24" style="text-align: center; color: #494b56;">
|
||||
<a-col :span="24" style="text-align: center; color: #494b56">
|
||||
<div>老师您好,</div>
|
||||
<div>请根据课程目标及课程教学大纲的要求,</div>
|
||||
<div>设置学生修完本课程需要完成的作业次数及每次作业在期末成绩中所占的比例。</div>
|
||||
|
@ -21,8 +21,8 @@ d<template>
|
|||
<a-col :span="24" style="padding: 0 0 0 30px">
|
||||
<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" /><span style="margin-left:5px;">次</span>
|
||||
<span style="color: #777777">学生修完本课程需要完成的作业次数:</span>
|
||||
<a-input-number style="width: 30%" v-model:value="zycs" @change="handleZycs" :max="100" /><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 +52,7 @@ d<template>
|
|||
<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:import-outlined" />返回</a-button>
|
||||
<a-button class="buttonClass" @click="reloadZy"><Icon icon="ant-design:export-outlined" />返回</a-button>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -112,7 +112,7 @@ d<template>
|
|||
<a-col :span="24">
|
||||
<a-form-item label="作业要求" v-bind="validateInfos.content">
|
||||
<j-editor v-model:value="zyInfo.content" v-if="zyyqShow" @blur="handleZyyqShow(0)" />
|
||||
<div style="color: #777777;" v-html="zyInfo.content" v-if="!zyyqShow"></div>
|
||||
<div style="color: #777777" v-html="zyInfo.content" v-if="!zyyqShow"></div>
|
||||
<div @click="handleZyyqShow(1)"><span style="cursor: pointer; color: #18a689">温馨提示:点击可编辑作业要求</span></div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
@ -123,7 +123,12 @@ d<template>
|
|||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="评分标准" layout="inline">
|
||||
<a-form-item label="是否允许学生查看" :labelCol="labelCol2" :wrapperCol="wrapperCol2" style="margin-top:-1px; margin-left:-17px">
|
||||
<a-form-item
|
||||
label="是否允许学生查看"
|
||||
:labelCol="labelCol2"
|
||||
:wrapperCol="wrapperCol2"
|
||||
style="margin-top: -1px; margin-left: -17px"
|
||||
>
|
||||
<j-dict-select-tag type="radio" v-model:value="zyInfo.sturead" dictCode="yn" placeholder="请选择评分标准是否允许学生查看" />
|
||||
</a-form-item>
|
||||
<a-form-item label="" v-if="zyInfo.sturead == '1'">
|
||||
|
@ -160,7 +165,12 @@ d<template>
|
|||
<a-radio :value="'0'" style="width: 100%; margin-bottom: 5px">互评成绩作为教师评分的参考成绩</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item label="是否允许学生看到互评成绩" :labelCol="labelCol4" :wrapperCol="wrapperCol4" style="margin-top: 20px;margin-left:-10px">
|
||||
<a-form-item
|
||||
label="是否允许学生看到互评成绩"
|
||||
:labelCol="labelCol4"
|
||||
:wrapperCol="wrapperCol4"
|
||||
style="margin-top: 20px; margin-left: -10px"
|
||||
>
|
||||
<a-radio-group v-model:value="zyInfo.xssfck">
|
||||
<a-radio :value="'1'" style="margin-top: 5px">是(匿名)</a-radio>
|
||||
<a-radio :value="'0'" style="margin-top: 5px">否</a-radio>
|
||||
|
@ -209,13 +219,14 @@ d<template>
|
|||
style="width: 50%"
|
||||
:max="100"
|
||||
:min="0"
|
||||
:disabled="editDisabled">
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<template #addonAfter> % </template>
|
||||
</a-input-number>
|
||||
</a-form-item>
|
||||
<a-form-item label="比对库设置" :labelCol="labelCol3" :wrapperCol="wrapperCol3" style="margin-left: -10px">
|
||||
<div style="padding: 5px 0">维普</div>
|
||||
<div style="display: flex; flex-direction: column;">
|
||||
<div style="display: flex; flex-direction: column">
|
||||
<a-checkbox v-model:checked="zyInfo.wwcc" :disabled="editDisabled" style="margin-left: 8px">
|
||||
<span class="bled-countenance">维普资源库查重</span><br />
|
||||
<span class="bled-countenance2">中文科技期刊数据库、硕博学位论文库、高校特色论文库、互联网数据资源/互联网文档资源</span>
|
||||
|
@ -230,13 +241,15 @@ d<template>
|
|||
<div style="padding: 5px 0">AIGC</div>
|
||||
<div>
|
||||
<a-checkbox v-model:checked="zyInfo.aigccc" style="margin-left: 8px" :disabled="editDisabled">
|
||||
<span class="bled-countenance">AIGC查重</span><br /><span class="bled-countenance2">检测作业是否部分或全部由AI模型生成</span>
|
||||
<span class="bled-countenance">AIGC查重</span><br /><span class="bled-countenance2"
|
||||
>检测作业是否部分或全部由AI模型生成</span
|
||||
>
|
||||
</a-checkbox>
|
||||
</div>
|
||||
</a-form-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24" style="text-align: left;margin-top:10px; margin-bottom: 40px; margin-left:140px;">
|
||||
<a-col :span="24" style="text-align: left; margin-top: 10px; margin-bottom: 40px; margin-left: 140px">
|
||||
<a-button type="primary" @click="submitForm">保存</a-button>
|
||||
<a-button type="primary" @click="reloadZy" style="margin-left: 15px">返回</a-button>
|
||||
</a-col>
|
||||
|
@ -246,17 +259,23 @@ d<template>
|
|||
</a-row>
|
||||
</a-spin>
|
||||
</div>
|
||||
<div v-show="showType == 3">
|
||||
<div v-show="showType == 3" style="overflow-y: auto">
|
||||
<a-row>
|
||||
<a-col :span="24"><span class="title">作业详情页</span><a-divider /></a-col>
|
||||
<a-col :span="24">
|
||||
<a-col :span="24"
|
||||
><span class="title">作业详情页</span>
|
||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="reloadZy" style="float: right; margin-right: 8px"> 返回</a-button>
|
||||
<a-divider
|
||||
/></a-col>
|
||||
<a-col :span="24" style="overflow: hidden">
|
||||
<!--查询区域-->
|
||||
<div class="sear-distance">
|
||||
<div style="background:#fffbf2; padding:15px;">
|
||||
<div style="background: #fffbf2; padding: 15px">
|
||||
<span class="tishi">
|
||||
温馨提示:<br />
|
||||
1、非高峰期预计30分钟内返回检测结果,高峰期预计时间会更长,请您耐心等待! <br />
|
||||
2、点击互评分数,可查看同学间互评作业详情<br />
|
||||
2、点击互评分数,可查看同学间互评作业详情
|
||||
<span style="color:#18a689; cursor: pointer;" @click="handleHpsf">预览互评算法</span>
|
||||
<br />
|
||||
3、点击最高查重率,可分别查看学生“维普作业库查重”、“学校作业库查重”、“本次作业查重”、“AIGC查重”相似率<br />
|
||||
4、学生上传的课程作业全部存档<br />
|
||||
</span>
|
||||
|
@ -278,15 +297,15 @@ d<template>
|
|||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQueryZyxq">查询</a-button>
|
||||
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" style="margin-left: 8px"> 导出</a-button>
|
||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleFabu" style="margin-left: 8px">一键发布评分</a-button>
|
||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="reloadZy" style="margin-left: 8px"> 返回</a-button>
|
||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleFabu" style="margin-left: 8px"
|
||||
>一键发布评分</a-button
|
||||
>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
||||
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" />
|
||||
</template>
|
||||
|
@ -294,9 +313,9 @@ d<template>
|
|||
<div v-if="record.alltgl">
|
||||
<span v-if="record.filePath">
|
||||
<template v-if="record.zgccl && record.zgccl != '0'">
|
||||
<span v-if="record.zgccl <= record.alltgl" title="通过" style="color: #36b395" @click="handleViewInfo(record)">{{
|
||||
record.zgccl
|
||||
}}</span>
|
||||
<span v-if="record.zgccl <= record.alltgl" title="通过" style="color: #36b395; cursor: pointer" @click="handleViewInfo(record)">
|
||||
{{ record.zgccl }}
|
||||
</span>
|
||||
<span v-else title="未通过" style="color: red" @click="handleViewInfo(record)">{{ record.zgccl }}</span>
|
||||
</template>
|
||||
<template v-else>查重中</template>
|
||||
|
@ -307,6 +326,11 @@ d<template>
|
|||
<span>未设置查重</span>
|
||||
</div>
|
||||
</template>
|
||||
<template #xshpfsaction="{ record }">
|
||||
<span style="color: #36b395; cursor: pointer" @click="handleXshpfs(record)">
|
||||
{{ record.xshpfs }}
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<template #htmlSlot="{ text }">
|
||||
<div v-html="text"></div>
|
||||
|
@ -317,8 +341,11 @@ d<template>
|
|||
</div>
|
||||
<div v-if="showType == 4">
|
||||
<a-row>
|
||||
<a-col :span="24"><span class="title">查重相似度详情</span><a-divider /></a-col>
|
||||
<a-col><a-button type="primary" @click="handleShowType(3)">返回</a-button></a-col>
|
||||
<a-col :span="24"
|
||||
><span class="title">查重相似度详情</span>
|
||||
<a-button type="primary" @click="handleShowType(3)" style="float: right; margin-right: 8px"><Icon icon="ant-design:export-outlined" />返回</a-button>
|
||||
<a-divider
|
||||
/></a-col>
|
||||
<a-col :span="24">
|
||||
<a-table :columns="columnsCcjg" :data-source="tableCcjgData" :pagination="false">
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
@ -332,6 +359,18 @@ d<template>
|
|||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
<div v-if="showType == 5">
|
||||
<a-row>
|
||||
<a-col :span="24"
|
||||
><span class="title">学生互评详情</span>
|
||||
<a-button type="primary" @click="handleShowType(3)" style="float: right; margin-right: 8px"><Icon icon="ant-design:export-outlined" />返回</a-button>
|
||||
<a-divider
|
||||
/></a-col>
|
||||
<a-col :span="24">
|
||||
<a-table :columns="columnsXshp" :data-source="tableXshpData" :pagination="false"> </a-table>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
|
||||
<div v-if="showType == 999">
|
||||
<a-row>
|
||||
|
@ -342,32 +381,54 @@ d<template>
|
|||
<a @click="handleAddOne" class="ant-btn buttonClass mar-right20"><Icon icon="ant-design:file-add-outlined" />新增作业</a>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-row style="padding:10px;">
|
||||
<a-col :lg="12" v-for="(item, index) in tableData" style="padding:0 5px 5px 5px;" :key="index">
|
||||
<a-card :title="'第' + item.sort + '次作业(占比' + item.score + '%)'" v-if="!item.endTime" class="cardClass" bodyStyle="background: #fff;" >
|
||||
<template #extra><span style="color:#ff8710;font-weight: bold;"><Icon icon="ant-design:setting-outlined" /> 待设置</span> </template>
|
||||
<a-row style="padding: 10px">
|
||||
<a-col :lg="12" v-for="(item, index) in tableData" style="padding: 0 5px 5px 5px" :key="index">
|
||||
<a-card
|
||||
:title="'第' + item.sort + '次作业(占比' + item.score + '%)'"
|
||||
v-if="!item.endTime"
|
||||
class="cardClass"
|
||||
bodyStyle="background: #fff;"
|
||||
>
|
||||
<template #extra
|
||||
><span style="color: #ff8710; font-weight: bold"><Icon icon="ant-design:setting-outlined" /> 待设置</span>
|
||||
</template>
|
||||
<p class="sznrClass">尚未布置作业题目及具体要求</p>
|
||||
<div style="text-align: right;">
|
||||
<div style="text-align: right">
|
||||
<a @click="handleEdit(item, false)">设置作业内容及要求</a>
|
||||
<a-divider type="vertical" />
|
||||
<a @click="handleDelete(item)">删除</a>
|
||||
</div>
|
||||
</a-card>
|
||||
<a-card :title="'第' + item.sort + '次作业(占比' + item.score + '%)'" v-if="item.endTime && item.zyStatus == '1'" class="cardClass" bodyStyle="background: #fff;">
|
||||
<template #extra><span style="color:#02aa56;font-weight: bold;"><Icon icon="ant-design:check-outlined" />已发布</span> </template>
|
||||
<a-card
|
||||
:title="'第' + item.sort + '次作业(占比' + item.score + '%)'"
|
||||
v-if="item.endTime && item.zyStatus == '1'"
|
||||
class="cardClass"
|
||||
bodyStyle="background: #fff;"
|
||||
>
|
||||
<template #extra
|
||||
><span style="color: #02aa56; font-weight: bold"><Icon icon="ant-design:check-outlined" />已发布</span>
|
||||
</template>
|
||||
<div class="ellip-title">
|
||||
<span class="ellipsis elli-title" :title="item.title">作业名称:{{ item.title }}</span>
|
||||
<a class="button-zhta" @click="openXkrs(item)">{{ item.xkxs }}人选课</a>
|
||||
</div>
|
||||
<div style="width: 100%; ">
|
||||
<div style="width: 100%">
|
||||
<div class="ellip-word">作业发布时间:{{ item.startTime ? dayjs(item.startTime).format('YYYY.MM.DD HH:mm') : '未设置' }}</div>
|
||||
<div class="ellip-word">作业截止时间:{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</div>
|
||||
</div>
|
||||
<div style="width: 100%; display: flex">
|
||||
<div class="data-suggest zuanqu" @click="handleZyxx(item, '1')"><span>{{ item.wtjnum }}人</span><span>未提交</span></div>
|
||||
<div class="data-suggest zuanqu" @click="handleZyxx(item, '2')"><span>{{ item.ytjnum }}人</span><span>已提交</span></div>
|
||||
<div class="data-suggest zuanqu" @click="handleZyxx(item, '3')"><span>{{ item.wpynum }}人</span><span>未评阅</span></div>
|
||||
<div class="data-suggest zuanqu" @click="handleZyxx(item, '4')"><span>{{ item.ypynum }}人</span><span>已评阅</span></div>
|
||||
<div class="data-suggest zuanqu" @click="handleZyxx(item, '1')"
|
||||
><span>{{ item.wtjnum }}人</span><span>未提交</span></div
|
||||
>
|
||||
<div class="data-suggest zuanqu" @click="handleZyxx(item, '2')"
|
||||
><span>{{ item.ytjnum }}人</span><span>已提交</span></div
|
||||
>
|
||||
<div class="data-suggest zuanqu" @click="handleZyxx(item, '3')"
|
||||
><span>{{ item.wpynum }}人</span><span>未评阅</span></div
|
||||
>
|
||||
<div class="data-suggest zuanqu" @click="handleZyxx(item, '4')"
|
||||
><span>{{ item.ypynum }}人</span><span>已评阅</span></div
|
||||
>
|
||||
</div>
|
||||
|
||||
<div style="text-align: right; margin-top: 10px; margin-bottom: -10px; width: 100%">
|
||||
|
@ -378,18 +439,25 @@ d<template>
|
|||
<a @click="handleDelete(item)">删除</a>
|
||||
</div>
|
||||
</a-card>
|
||||
<a-card :title="'第' + item.sort + '次作业(占比' + item.score + '%)'" v-if="item.endTime && item.zyStatus == '0'" class="cardClass" bodyStyle="background: #fff;">
|
||||
<template #extra><span style="color:#ff8710;font-weight: bold;"><Icon icon="ant-design:send-outlined" />待发布</span> </template>
|
||||
<a-card
|
||||
:title="'第' + item.sort + '次作业(占比' + item.score + '%)'"
|
||||
v-if="item.endTime && item.zyStatus == '0'"
|
||||
class="cardClass"
|
||||
bodyStyle="background: #fff;"
|
||||
>
|
||||
<template #extra
|
||||
><span style="color: #ff8710; font-weight: bold"><Icon icon="ant-design:send-outlined" />待发布</span>
|
||||
</template>
|
||||
<div class="ellip-title">
|
||||
<span class="ellipsis elli-title" :title="item.title">作业名称:{{ item.title }}</span>
|
||||
<a class="button-zhta" @click="openXkrs(item)">{{ item.xkxs }}人选课</a>
|
||||
</div>
|
||||
<div style="width: 100%; ">
|
||||
<div style="width: 100%">
|
||||
<div class="ellip-word">作业发布时间:{{ item.startTime ? dayjs(item.startTime).format('YYYY.MM.DD HH:mm') : '未设置' }}</div>
|
||||
<div class="ellip-word">作业截止时间:{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</div>
|
||||
</div>
|
||||
<div style="height: 45px"> </div>
|
||||
<div style="text-align: right; margin-top: 30px;">
|
||||
<div style="text-align: right; margin-top: 30px">
|
||||
<a @click="handleEdit(item, false)">编辑作业</a>
|
||||
<a-divider type="vertical" />
|
||||
<a @click="handleFabu(item)">发布作业</a>
|
||||
|
@ -438,6 +506,7 @@ import { newlist, getExportUrl, batchFabu } from '/@/views/zy/zyInfoStudent/ZyIn
|
|||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||
import { useGlobSetting } from '/@/hooks/setting';
|
||||
import { openByUrl } from '/@/utils/file/download';
|
||||
|
||||
import SzybStudentModal from '/@/views/zy/zyInfoStudent/components/SzybStudentModal.vue';
|
||||
import ZyInfoStudentScoreModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentScoreModal.vue';
|
||||
|
@ -478,6 +547,7 @@ const queryType = ref<string>('');
|
|||
|
||||
const dataKhnr = ref<any>([]);
|
||||
const tableCcjgData = ref<any>([]);
|
||||
const tableXshpData = ref<any>([]);
|
||||
const rowSelectionKhnr = ref<any>([]);
|
||||
|
||||
const SzybStudentModalpage = ref();
|
||||
|
@ -489,7 +559,7 @@ const ZyInfoStudentModalPage = ref();
|
|||
const XxhbbksListModalPage = ref();
|
||||
const registerEditModal = ref();
|
||||
const registerDetialModal = ref();
|
||||
|
||||
const pdfUrl = ref('/downPath/ylhpsf.pdf');
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
|
@ -499,11 +569,11 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
|||
useSearchForm: false,
|
||||
pagination: {
|
||||
current: 1,
|
||||
pageSize: 1000,
|
||||
pageSize: 10,
|
||||
},
|
||||
actionColumn: {
|
||||
width: '300px',
|
||||
// fixed: 'right',
|
||||
fixed: 'right',
|
||||
},
|
||||
showTableSetting: true,
|
||||
defSort: {
|
||||
|
@ -535,6 +605,15 @@ function handleXshpkg(record) {
|
|||
console.log('👨👧👦', record);
|
||||
}
|
||||
|
||||
//预览互评算法
|
||||
function handleHpsf(){
|
||||
// openByUrl({url:'/downPath/ylhpsf.pdf',target: '_blank',fileName:'算法说明.pdf'})
|
||||
// window.open(pdfUrl.value, '_blank');
|
||||
// window.open(require('../../../downPath/ylhpsf.pdf'), '_blank');
|
||||
window.open(baseApiUrl+'/temp/ylhpsf.pdf');
|
||||
}
|
||||
|
||||
|
||||
//获取查重结果
|
||||
function handleViewInfo(record) {
|
||||
defHttp.get({ url: '/zyCcjg/zyCcjg/ccjglist', params: { zyStuId: record.id } }).then((res) => {
|
||||
|
@ -543,6 +622,17 @@ function handleViewInfo(record) {
|
|||
});
|
||||
handleShowType(4);
|
||||
}
|
||||
//学生互评详细
|
||||
function handleXshpfs(record) {
|
||||
defHttp.get({ url: '/zyInfoStudentHp/zyInfoStudentHp/list', params: { zyStuId: record.id, pageSize: -1 } }).then((res) => {
|
||||
console.log('🤦♀️', res);
|
||||
tableXshpData.value = res.records;
|
||||
console.log('😒', res.records);
|
||||
console.log('👨🦰', tableXshpData.value);
|
||||
});
|
||||
handleShowType(5);
|
||||
}
|
||||
|
||||
//产看论文报告
|
||||
function handleOpenLwxx(record) {
|
||||
window.open(record.paperviewurl, '_blank');
|
||||
|
@ -625,9 +715,20 @@ function yulanFile(record) {
|
|||
}
|
||||
//驳回
|
||||
function handleBohui(record: Recordable) {
|
||||
|
||||
|
||||
createConfirm({
|
||||
iconType: 'warning',
|
||||
title: '驳回',
|
||||
content: '您确定驳回此作业吗,驳回后需要学生重新提交?',
|
||||
okText: '确认',
|
||||
cancelText: '取消',
|
||||
onOk: () => {
|
||||
defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editBohui', params: { id: record.id } }).then((res) => {
|
||||
handleSuccess();
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
//填写评分
|
||||
function handleScore(record: Recordable) {
|
||||
|
@ -972,15 +1073,14 @@ async function submitForm() {
|
|||
}
|
||||
}
|
||||
|
||||
if(xshpkssj && startTime){
|
||||
if (xshpkssj && endTime) {
|
||||
var endTimestamp = Date.parse(xshpkssj);
|
||||
var startTimestamp = Date.parse(startTime);
|
||||
var startTimestamp = Date.parse(endTime);
|
||||
if (endTimestamp < startTimestamp) {
|
||||
createMessage.warning('互评开始间不能大于作业发布时间!');
|
||||
createMessage.warning('互评开始间不能小于作业截止时间!');
|
||||
confirmLoading.value = false;
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
await saveOrUpdate(model, isUpdate.value)
|
||||
|
@ -1064,6 +1164,39 @@ const columnsCcjg = [
|
|||
},
|
||||
];
|
||||
|
||||
const columnsXshp = [
|
||||
{
|
||||
title: '序号',
|
||||
dataIndex: 'no',
|
||||
key: 'no',
|
||||
customRender: (text) => {
|
||||
return text.index + 1;
|
||||
},
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: '学生姓名',
|
||||
dataIndex: 'stuName',
|
||||
key: 'stuName',
|
||||
},
|
||||
{
|
||||
title: '学生学号',
|
||||
dataIndex: 'stuId',
|
||||
key: 'stuId',
|
||||
},
|
||||
|
||||
{
|
||||
title: '互评时间',
|
||||
dataIndex: 'createTime',
|
||||
key: 'createTime',
|
||||
},
|
||||
{
|
||||
title: '互评分数',
|
||||
dataIndex: 'stuScore',
|
||||
key: 'stuScore',
|
||||
},
|
||||
];
|
||||
|
||||
const columnsKhnr = [
|
||||
{
|
||||
title: '序号',
|
||||
|
@ -1136,32 +1269,28 @@ function handleDetail(record: Recordable) {
|
|||
|
||||
//查看作业信息
|
||||
function handleZyxx(record, type) {
|
||||
|
||||
|
||||
if (type == '1') {
|
||||
if (!record.wtjnum || record.wtjnum == '0') {
|
||||
createMessage.error("当前人数为0,不能进行查询")
|
||||
createMessage.error('当前人数为0,不能进行查询');
|
||||
return;
|
||||
}
|
||||
} else if (type == '2') {
|
||||
if (!record.ytjnum || record.ytjnum == '0') {
|
||||
createMessage.error("当前人数为0,不能进行查询")
|
||||
createMessage.error('当前人数为0,不能进行查询');
|
||||
return;
|
||||
}
|
||||
} else if (type == '3') {
|
||||
if (!record.wpynum || record.wpynum == '0') {
|
||||
createMessage.error("当前人数为0,不能进行查询")
|
||||
createMessage.error('当前人数为0,不能进行查询');
|
||||
return;
|
||||
}
|
||||
} else if (type == '4') {
|
||||
if (!record.ypynum || record.ypynum == '0') {
|
||||
createMessage.error("当前人数为0,不能进行查询")
|
||||
createMessage.error('当前人数为0,不能进行查询');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
zyInfo.value = record;
|
||||
handleShowType(3);
|
||||
queryType.value = type;
|
||||
|
@ -1393,7 +1522,6 @@ onMounted(() => {
|
|||
justify-content: center;
|
||||
margin-top: 80px;
|
||||
margin-bottom: 30px;
|
||||
|
||||
}
|
||||
.work-img-img {
|
||||
width: 180px;
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<div v-html="formData.pfbz"></div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-col :span="24" v-if="formData.wwtgl">
|
||||
<a-form-item label="查重设置" layout="inline">
|
||||
<a-form-item label="检测通过率" :labelCol="labelCol3" :wrapperCol="wrapperCol3">
|
||||
<span style="padding: 7px 20px"></span>
|
||||
|
|
|
@ -91,6 +91,7 @@ export const newcolumns: BasicColumn[] = [
|
|||
align: "center",
|
||||
dataIndex: 'xshpfs',
|
||||
sorter: true,
|
||||
slots: { customRender: 'xshpfsaction' },
|
||||
},
|
||||
{
|
||||
title: '绩效分',
|
||||
|
|
|
@ -5,9 +5,19 @@
|
|||
<!-- <a-col :span="24">
|
||||
<span style="margin-left: 8%;line-height:60px;">预设作业分值:{{zyInfo.score?zyInfo.score+"分 评分不能高于预设分值":'未设置 评分不能高于100分'}}</span>
|
||||
</a-col> -->
|
||||
<a-col :span="24" style="margin-top: 40px;">
|
||||
<a-col :span="24">
|
||||
<a-form-item label="作业名称">
|
||||
{{zyInfo.title}}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学生姓名">
|
||||
{{formData.studentName}}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="评分" v-bind="validateInfos.score">
|
||||
<a-input-number v-model:value="formData.score" :max="100" :min="0" :disabled="disabled" style="width:100%;" @change="handleJyfz" ></a-input-number>
|
||||
<a-input-number v-model:value="formData.score" :min="0" :disabled="disabled" style="width:100%;" @change="handleJyfz" ></a-input-number>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -75,12 +85,12 @@
|
|||
|
||||
if(parseInt(record) > 100){
|
||||
createMessage.warning('评分不能超过100分!');
|
||||
formData.score = 100;
|
||||
formData.score = '';
|
||||
}
|
||||
|
||||
if(parseInt(record) < 0){
|
||||
createMessage.warning('评分不能低于0分!');
|
||||
formData.score = 0;
|
||||
formData.score = '';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
v-model:value="formData.stuScore"
|
||||
placeholder="请输入评分"
|
||||
:min="0"
|
||||
:max="100"
|
||||
style="width: 300px"
|
||||
:disabled="disabled"
|
||||
@change="handleScoreChange"
|
||||
|
|
Loading…
Reference in New Issue