编辑作业
发布作业
@@ -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
('');
const dataKhnr = ref([]);
const tableCcjgData = ref([]);
+const tableXshpData = ref([]);
const rowSelectionKhnr = ref([]);
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: {
@@ -497,13 +567,13 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
columns: newcolumns,
canResize: false,
useSearchForm: false,
- pagination: {
- current: 1,
- pageSize: 1000,
- },
+ pagination: {
+ current: 1,
+ 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) {
- defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editBohui', params: { id: record.id } }).then((res) => {
- handleSuccess();
- });
+
+
+ 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) {
@@ -807,8 +908,8 @@ function handleBatchAdd() {
if (sfjx == 1) {
return;
}
- if(cjbfb>100){
- createMessage.error('本次作业占期末总成绩的百分比不得超过100%,当前作业总百分比为:'+cjbfb+'%');
+ if (cjbfb > 100) {
+ createMessage.error('本次作业占期末总成绩的百分比不得超过100%,当前作业总百分比为:' + cjbfb + '%');
return;
}
@@ -955,8 +1056,8 @@ async function submitForm() {
var xshpjssjTimestamp = Date.parse(xshpjssj);
if (xshpkssjTimestamp > xshpjssjTimestamp) {
createMessage.warning('互评开始时间不能大于互评结束时间!');
- confirmLoading.value = false;
- return;
+ confirmLoading.value = false;
+ return;
}
}
@@ -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,不能进行查询")
+ if (type == '1') {
+ if (!record.wtjnum || record.wtjnum == '0') {
+ createMessage.error('当前人数为0,不能进行查询');
return;
}
- }else if(type == '2'){
- if(!record.ytjnum || record.ytjnum == '0'){
- createMessage.error("当前人数为0,不能进行查询")
+ } else if (type == '2') {
+ if (!record.ytjnum || record.ytjnum == '0') {
+ createMessage.error('当前人数为0,不能进行查询');
return;
}
- }else if(type == '3'){
- if(!record.wpynum || record.wpynum == '0'){
- createMessage.error("当前人数为0,不能进行查询")
+ } else if (type == '3') {
+ if (!record.wpynum || record.wpynum == '0') {
+ createMessage.error('当前人数为0,不能进行查询');
return;
}
- }else if(type == '4'){
- if(!record.ypynum || record.ypynum == '0'){
- createMessage.error("当前人数为0,不能进行查询")
+ } else if (type == '4') {
+ if (!record.ypynum || record.ypynum == '0') {
+ createMessage.error('当前人数为0,不能进行查询');
return;
}
}
-
-
zyInfo.value = record;
handleShowType(3);
queryType.value = type;
@@ -1353,15 +1482,15 @@ onMounted(() => {
white-space: nowrap; /* 确保文本在一行内显示 */
text-overflow: ellipsis; /* 超出部分显示省略号 */
}
-.ellip-title{
+.ellip-title {
display: flex;
justify-content: space-between;
}
-.elli-title{
+.elli-title {
font-size: 16px;
- font-weight: bold;
+ font-weight: bold;
}
-.ellip-word{
+.ellip-word {
font-size: 14px;
color: #666666;
}
@@ -1375,81 +1504,80 @@ onMounted(() => {
text-align: center;
width: 25%;
margin-right: 3px;
- padding:8px 3px;
+ padding: 8px 3px;
border-radius: 5px;
background: #f7f7f7;
margin-top: 10px;
}
-.data-suggest span:nth-child(1){
+.data-suggest span:nth-child(1) {
font-size: 16px;
font-weight: bold;
}
-.data-suggest span:nth-child(2){
+.data-suggest span:nth-child(2) {
font-size: 12px;
}
-.work-img{
+.work-img {
width: 100%;
display: flex;
justify-content: center;
- margin-top:80px;
+ margin-top: 80px;
margin-bottom: 30px;
-
}
-.work-img-img{
- width:180px;
- height:139px;
+.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 {
+.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;
}
-.sear-distance{
- padding:0 10px;
+.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;
+ 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-countenance {
+ color: #333333;
}
-.bled-countenance2{
- color:#999999;
+.bled-countenance2 {
+ color: #999999;
font-size: 12px;
}
-.region{
-margin:5px 10px;
-padding-bottom:20px;
-background:#fff;
-border-radius: 5px;
+.region {
+ margin: 5px 10px;
+ padding-bottom: 20px;
+ background: #fff;
+ border-radius: 5px;
}
-.region-title{
- font-size:16px;
- color: #029c88;
- padding:8px 20px;
+.region-title {
+ font-size: 16px;
+ color: #029c88;
+ padding: 8px 20px;
border-left: 5px solid #029c88;
margin-bottom: 20px;
}
diff --git a/src/views/zy/zyInfo/components/ZyInfoDetailForm.vue b/src/views/zy/zyInfo/components/ZyInfoDetailForm.vue
index a12974c..9452aae 100644
--- a/src/views/zy/zyInfo/components/ZyInfoDetailForm.vue
+++ b/src/views/zy/zyInfo/components/ZyInfoDetailForm.vue
@@ -41,7 +41,7 @@
-
+
diff --git a/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts b/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts
index 14e78a7..067833a 100644
--- a/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts
+++ b/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts
@@ -91,6 +91,7 @@ export const newcolumns: BasicColumn[] = [
align: "center",
dataIndex: 'xshpfs',
sorter: true,
+ slots: { customRender: 'xshpfsaction' },
},
{
title: '绩效分',
diff --git a/src/views/zy/zyInfoStudent/components/ZyInfoStudentScoreForm.vue b/src/views/zy/zyInfoStudent/components/ZyInfoStudentScoreForm.vue
index 1d7466a..88315e2 100644
--- a/src/views/zy/zyInfoStudent/components/ZyInfoStudentScoreForm.vue
+++ b/src/views/zy/zyInfoStudent/components/ZyInfoStudentScoreForm.vue
@@ -5,9 +5,19 @@
-
+
+
+ {{zyInfo.title}}
+
+
+
+
+ {{formData.studentName}}
+
+
+
-
+
@@ -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 = '';
}
}
diff --git a/src/views/zy/zyInfoStudentHp/components/ZyInfoStudentHpOneForm.vue b/src/views/zy/zyInfoStudentHp/components/ZyInfoStudentHpOneForm.vue
index 0fe1443..7aaac4e 100644
--- a/src/views/zy/zyInfoStudentHp/components/ZyInfoStudentHpOneForm.vue
+++ b/src/views/zy/zyInfoStudentHp/components/ZyInfoStudentHpOneForm.vue
@@ -14,7 +14,6 @@
v-model:value="formData.stuScore"
placeholder="请输入评分"
:min="0"
- :max="100"
style="width: 300px"
:disabled="disabled"
@change="handleScoreChange"