修改样式

This commit is contained in:
yangjun 2024-05-10 20:01:34 +08:00
parent fa1da78267
commit f3f6d5ad58
11 changed files with 232 additions and 80 deletions

View File

@ -22,6 +22,22 @@ const stuzy: AppRouteModule = {
},
component: () => import('/@/views/site/renKeJiaoCheng/checkKecheng/dqxqkcDetail.vue'),
},
{
path: 'studentDqzy',
name: 'studentDqzy',
meta: {
title: '当前作业',
},
component: () => import('/@/views/zy/zyInfo/StudentZyInfoList.vue'),
},
{
path: 'studentLszy',
name: 'studentLszy',
meta: {
title: '历史作业',
},
component: () => import('/@/views/zy/zyInfo/SutdentZyInfoHistoryList.vue'),
},
]
}

View File

@ -46,14 +46,6 @@ const zuoye: AppRouteModule = {
title: '历史作业',
},
},
{
path: 'studentMain',
name: 'studentMain_',
component: () => import('/@/views/site/studentWdkc/studentMain.vue'),
meta: {
title: '我的课程',
},
},
{
path: 'dqkcGongju',
name: 'dqkcGongju',
@ -62,6 +54,14 @@ const zuoye: AppRouteModule = {
title: '课程工具',
},
},
{
path: 'tuGonggao',
name: 'tuGonggao',
component: () => import('/@/views/zy/zyGonggao/ZyGonggaoList.vue'),
meta: {
title: '公告',
},
},
{
path: 'dqkcWenjuan',

View File

@ -4,6 +4,9 @@
<a-layout style="height: calc(100vh - 30px)">
<headerPage/>
<a-row>
<a-col :span="24">
<div style="width:100%;background: #fff;font-size: 18px;font-weight: bold;margin-top:10px;padding: 10px;">课程名称{{kcxxInfo.kcmc}}</div>
</a-col>
<a-col :span="5">
<dqxqkcMenu/>
</a-col>
@ -35,13 +38,18 @@
//
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
const { rwbh } = query;//
const { rwbh,xqxn } = query;//
let router = useRouter();
const kcxxInfo = ref<string>('');
//
onMounted(() => {
console.log('rwbh:',rwbh);
defHttp.get({ url: '/ktgl/kcKechengbiao/getKcxxByRwbhXqxn', params: { rwbh: rwbh,xqxn:xqxn } }).then((res) => {
console.log(`🚀 ~ 1111 defHttp.get ~ res:`, res)
kcxxInfo.value = res;
});
});
</script>

View File

@ -10,19 +10,22 @@
<a-sub-menu key="sub1">
<template #title>教学内容</template>
<a-menu-item key="1">课程介绍</a-menu-item>
<a-menu-item key="2">公告</a-menu-item>
<a-menu-item key="2" @click="getGzt('gonggao')">公告</a-menu-item>
<a-menu-item key="3">教学单元内容</a-menu-item>
</a-sub-menu>
<a-sub-menu key="sub2">
<template #title>测验/作业</template>
<a-menu-item key="4" @click="getGzt('dqzy')">当前作业</a-menu-item>
<a-menu-item key="5" @click="getGzt('lszy')">历史作业</a-menu-item>
<a-menu-item key="4" @click="getGzt('dqzy')">课程作业</a-menu-item>
<a-menu-item key="5">课程测验</a-menu-item>
</a-sub-menu>
<a-sub-menu key="sub3">
<a-menu-item key="sub3">
<span @click="getGzt('dqwj')">问卷调查</span>
</a-menu-item>
<!-- <a-sub-menu key="sub3">
<template #title>问卷管理</template>
<a-menu-item key="6" @click="getGzt('dqwj')">当前问卷</a-menu-item>
<a-menu-item key="7">历史问卷</a-menu-item>
</a-sub-menu>
</a-sub-menu> -->
<a-menu-item key="sub4">
<span>资源库</span>
</a-menu-item>
@ -65,7 +68,10 @@
href = "/zy/dqkcWenjuan";
}else if(zytype=='lszy'){
href = "/zy/dqkcLszy";
}else if(zytype=='gonggao'){
href = "/zy/tuGonggao";
}
router.push({path:href,query: {rwbh,xqxn,type}});
}

View File

@ -1,7 +1,7 @@
<template>
<a-card class="rowGutter" id="rkjcDom">
<template #title>
<span style="font-size: 24px;font-weight: bold;" @click="initData">任教课程</span>
<span style="font-size: 24px;font-weight: bold;" @click="openKecheng(null)">任教课程</span>
<span style="margin-left: 10px;"><a href="javascript:void(0);" @click="openChangeKcPage">修改课程提醒</a></span>
</template>
<!-- <template #extra></template> -->
@ -20,7 +20,7 @@
<div class="kcmcDiv">{{ item.kcmc }}</div>
<div><a-rate v-model:value="item.stars" disabled/></div>
<div class="skddDiv">{{ item.skdd }}</div>
<div class="xkrsDiv">{{ item.xkrs }}人选课&nbsp;&nbsp;&nbsp;<a-button @click="openKecheng(item)" class="buttonClass">进入课程</a-button></div>
<div class="xkrsDiv">{{ item.xkrs }}人选课&nbsp;&nbsp;&nbsp;<a-button @click="openDetailKecheng(item)" class="buttonClass">进入课程</a-button></div>
</div>
</div>
</a-col>
@ -43,6 +43,7 @@ import { defHttp } from '/@/utils/http/axios';
import { addTingKeLog, getUserId } from '/@/views/site/utils';
import { onMounted } from 'vue';
import { useRouter } from 'vue-router'
import { getUserSf,getSysConfig } from '/@/views/site/utils/index';
onMounted(() => {
initData();
@ -110,6 +111,11 @@ function openKecheng(item){
window.open('/site/checkKecheng', '_blank');
}
function openDetailKecheng(item){
console.log(`🚀 ~ openDetailKecheng ~ item:`, item)
window.open('/zy/dqkcDetail?rwbh='+item.rwbh+'&xqxn='+getSysConfig().flag1+"&type=1","_blank");
}
async function getTeacherzzsk() {
let params = {
userid: getUserId(),

View File

@ -59,11 +59,11 @@
function getGzt(zytype){
console.log(`🚀 ~ getGzt ~ type:`, zytype)
var href = "/zy/dqkcDqzy";
var href = "/stuzy/dqkcDqzy";
if(zytype=='dqzy'){
href = "/zy/dqkcDqzy";
href = "/stuzy/studentDqzy";
}else if(zytype=='lszy'){
href = "/zy/dqkcLszy";
href = "/stuzy/studentLszy";
}
router.push({path:href,query: {rwbh,xqxn,type}});
}

View File

@ -19,16 +19,17 @@
<j-dict-select-tag placeholder="请选择状态" v-model:value="queryParam.zyStatus" dictCode="zy_status"/>
</a-form-item>
</a-col>
<a-col :lg="8">
<!-- <a-col :lg="8">
<a-form-item label="学年学期">
<a-input placeholder="请输入学年学期" v-model:value="queryParam.xnxq"></a-input>
</a-form-item>
</a-col>
</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-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
<a-button type="primary" preIcon="ant-design:plus-outlined" @click="handleAdd" style="margin-left: 8px"> 新增</a-button>
</a-col>
</span>
</a-col>
@ -36,18 +37,23 @@
</a-form>
</div>
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 10px 5px ;">
<a-card >
<a-row>
<a-col :span="24" style="font-size: 18px;font-weight: bold;margin-bottom: 20px;" class="ellipsis" :title="item.title">{{item.title}}</a-col>
<a-col :span="24" class="zyCon">类型:{{item.zyType_dictText}}</a-col>
<a-col :span="24" class="zyCon">开始时间:{{item.startTime}}</a-col>
<a-col :span="24" class="zyCon">结束时间:{{item.endTime}}</a-col>
<a-col :span="24" class="zyCon">状态:{{item.zyStatus_dictText}}</a-col>
<a-col :span="24" class="zyCon">学年学期:{{item.xnxq}}</a-col>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 210px;border: 1px solid rgb(28, 132, 198);">
<div class="rotate" >{{item.zyStatus_dictText}}</div>
<a-row style="top: -48px;position: relative;">
<a-col :span="24" style="margin-bottom: 10px;height:53px;overflow:hidden;" :title="item.title">
<!-- <div style="font-size: 18px;font-weight: bold;" class="ellipsis">{{item.title}}</div> -->
<div style="font-size: 18px;font-weight: bold;">{{item.zyType_dictText}}{{item.title}}</div>
</a-col>
<a-col :span="24" class="zyCon">时间{{item.startTime}} - {{item.endTime}}</a-col>
<a-col :span="24" class="zyCon"><div style="float:left">{{item.xnxq}}</div><div style="float:right;" @click="openXkrs(item)"><a>{{item.xkxs}}人选课</a></div></a-col>
<a-col :span="24" style="text-align:center;margin-top:20px;">
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;">详情</a-button>
<a-button type="primary" @click="handleZyxx(item)" style="margin-left:5px;">作业信息</a-button>
<!-- <a-button type="primary" @click="handleEdit(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==0">编辑</a-button>
<a-button type="primary" @click="handleFabu(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==0">发布</a-button> -->
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;background:rgb(28, 132, 198);">详情</a-button>
<a-button type="primary" @click="handleZyxx(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.zyStatus==1||item.zyStatus==2||item.zyStatus==3">上传</a-button> -->
</a-col>
</a-row>
</a-card>
@ -65,6 +71,7 @@
<ZyInfoModal ref="registerModal" @success="handleSuccess"></ZyInfoModal>
<ZyInfoStudentListModal ref="ZyInfoStudentListModalPage"></ZyInfoStudentListModal>
<ZyInfoStudentModal ref="ZyInfoStudentModalPage"></ZyInfoStudentModal>
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
</div>
</template>
@ -76,9 +83,10 @@
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
import { useRouter } from 'vue-router';
import ZyInfoModal from './components/ZyInfoModal.vue'
import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue'
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue'
import ZyInfoModal from './components/ZyInfoModal.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';
@ -93,6 +101,7 @@
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);
@ -132,14 +141,49 @@
registerModal.value.disableSubmit = true;
registerModal.value.edit(record);
}
/**
* 作业信息
*/
//
function openXkrs(record){
console.log(`🚀 ~ openXkrs ~ record:`, record)
ZyInfoStudentModalPage.value.disableSubmit = true;
XxhbbksListModalPage.value.init(record);
}
function handleZyxx(record){
ZyInfoStudentListModalPage.value.disableSubmit = true;
ZyInfoStudentListModalPage.value.init(record);
}
function handleShangchuan(record){
ZyInfoStudentModalPage.value.disableSubmit = false;
var param = {mainId:record.id,zyfj:record.filePath}
ZyInfoStudentModalPage.value.edit(param);
}
/**
* 删除事件
*/
async function handleDelete(record) {
await deleteOne({ id: record.id }, handleSuccess);
}
async function handleFabu(record){
createConfirm({
iconType: 'warning',
title: '确认发布',
content: '是否发布作业数据',
okText: '确认',
cancelText: '取消',
onOk: () => {
var url = "/zyInfo/zyInfo/edit";
var params = {id:record.id,zyStatus:'1'};
defHttp.post({ url: url, params }).then((res) => {
handleSuccess();
});
}
});
}
/**
@ -172,6 +216,8 @@
queryParam.value.rwbh = rwbh;
queryParam.value.xqxn = xqxn;
queryParam.value.sflssj = '1';
queryParam.value.column="startTime";
queryParam.value.order="desc";
defHttp.get({ url: '/zyInfo/zyInfo/list', params: queryParam.value }).then(res => {
console.log(`🚀 ~ defHttp.get ~ res:`, res)
total.value = res.total;
@ -195,6 +241,7 @@
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;
@ -210,7 +257,13 @@
text-align: center
}
}
.ellipsis {
.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; /* 超出部分显示省略号 */
@ -218,4 +271,15 @@
.zyCon{
line-height: 30px;
}
.rotate {
transform: rotate(45deg);
background: rgb(28, 132, 198);
color: #fff;
padding: 19px 10px 3px 10px;
position: relative;
top: -54px;
right: -131px;
text-align: center;
font-size: 11px;
}
</style>

View File

@ -9,21 +9,21 @@
<a-input placeholder="请输入作业名称" v-model:value="queryParam.title"></a-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<!-- <a-col :lg="8">
<a-form-item label="类型">
<j-dict-select-tag placeholder="请选择类型" v-model:value="queryParam.zyType" dictCode="zy_type"/>
</a-form-item>
</a-col>
</a-col> -->
<a-col :lg="8">
<a-form-item label="状态">
<j-dict-select-tag placeholder="请选择状态" v-model:value="queryParam.zyStatus" dictCode="zy_status"/>
</a-form-item>
</a-col>
<a-col :lg="8">
<!-- <a-col :lg="8">
<a-form-item label="学年学期">
<a-input placeholder="请输入学年学期" v-model:value="queryParam.xnxq"></a-input>
</a-form-item>
</a-col>
</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">
@ -39,15 +39,14 @@
<a-row>
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 210px;">
<div class="rotate" >{{item.zyStatus_dictText}}</div>
<a-card style="height: 210px;border: 1px solid rgb(28, 132, 198);">
<div class="rotate" :style="classFun(item.zyStatus)">{{item.zyStatus_dictText}}</div>
<a-row style="top: -48px;position: relative;">
<a-col :span="24" style="margin-bottom: 10px;height:53px;overflow:hidden;" :title="item.title">
<!-- <div style="font-size: 18px;font-weight: bold;" class="ellipsis">{{item.title}}</div> -->
<div style="font-size: 18px;font-weight: bold;">{{item.zyType_dictText}}{{item.title}}</div>
<div style="font-size: 18px;font-weight: bold;">{{item.title}}</div>
</a-col>
<a-col :span="24" class="zyCon">时间{{item.startTime}} - {{item.endTime}}</a-col>
<a-col :span="24" class="zyCon">{{item.xnxq}}-{{item.xkxs}}人选课</a-col>
<a-col :span="24" class="zyCon"><div style="float:left">{{item.xnxq}}</div><div style="float:right;" @click="openXkrs(item)"><a>{{item.xkxs}}人选课</a></div></a-col>
<a-col :span="24" style="text-align:center;margin-top:20px;">
<a-button type="primary" @click="handleEdit(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==0">编辑</a-button>
<a-button type="primary" @click="handleFabu(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==0">发布</a-button>
@ -71,6 +70,7 @@
<ZyInfoModal ref="registerModal" @success="handleSuccess"></ZyInfoModal>
<ZyInfoStudentListModal ref="ZyInfoStudentListModalPage"></ZyInfoStudentListModal>
<ZyInfoStudentModal ref="ZyInfoStudentModalPage"></ZyInfoStudentModal>
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
</div>
</template>
@ -82,9 +82,10 @@
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
import { useRouter } from 'vue-router';
import ZyInfoModal from './components/ZyInfoModal.vue'
import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue'
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue'
import ZyInfoModal from './components/ZyInfoModal.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';
@ -99,6 +100,7 @@
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);
@ -115,6 +117,14 @@
sm: { span: 16 },
});
function classFun(type){
if(type == '0'){
return "background: #a7a6a6";
}else if(type == '1'){
return "background: #18a689";
}
}
/**
* 新增事件
*/
@ -139,18 +149,27 @@
registerModal.value.edit(record);
}
//
function handleZyxx(record){
ZyInfoStudentListModalPage.value.disableSubmit = true;
ZyInfoStudentListModalPage.value.init(record);
}
//
function handleShangchuan(record){
ZyInfoStudentModalPage.value.disableSubmit = false;
var param = {mainId:record.id,zyfj:record.filePath}
ZyInfoStudentModalPage.value.edit(param);
}
//
function openXkrs(record){
console.log(`🚀 ~ openXkrs ~ record:`, record)
ZyInfoStudentModalPage.value.disableSubmit = true;
XxhbbksListModalPage.value.init(record);
}
/**
* 删除事件
*/
@ -158,6 +177,7 @@
await deleteOne({ id: record.id }, handleSuccess);
}
//
async function handleFabu(record){
createConfirm({
iconType: 'warning',
@ -205,7 +225,7 @@
queryParam.value.pageSize = pageSize;
queryParam.value.rwbh = rwbh;
queryParam.value.xqxn = xqxn;
queryParam.value.sflssj = '0';
// queryParam.value.sflssj = '0';
queryParam.value.column="startTime";
queryParam.value.order="asc";
defHttp.get({ url: '/zyInfo/zyInfo/list', params: queryParam.value }).then(res => {
@ -263,7 +283,7 @@
}
.rotate {
transform: rotate(45deg);
background: rgb(28, 132, 198);
// background: rgb(28, 132, 198);
color: #fff;
padding: 19px 10px 3px 10px;
position: relative;

View File

@ -2,16 +2,16 @@
<a-spin :spinning="confirmLoading">
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-row>
<a-col :span="12">
<a-form-item label="作业名称" v-bind="validateInfos.title">
<a-col :span="24">
<a-form-item label="作业名称" v-bind="validateInfos.title" :labelCol="labelCol2" :wrapperCol="wrapperCol2">
<a-input v-model:value="formData.title" placeholder="请输入作业名称" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<!-- <a-col :span="12">
<a-form-item label="类型" v-bind="validateInfos.zyType">
<j-dict-select-tag type='radio' v-model:value="formData.zyType" dictCode="zy_type" placeholder="请选择类型" :disabled="disabled"/>
</a-form-item>
</a-col>
</a-col> -->
<a-col :span="24">
<a-form-item label="描述" v-bind="validateInfos.content" :labelCol="labelCol2" :wrapperCol="wrapperCol2">
<a-textarea v-model:value="formData.content" placeholder="请输入描述" :disabled="disabled"></a-textarea>
@ -33,33 +33,37 @@
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="外网是否查重" v-bind="validateInfos.wwcc">
<j-dict-select-tag type='radio' v-model:value="formData.wwcc" dictCode="yn" placeholder="请选择外网是否查重" :disabled="disabled"/>
<a-form-item label="是否网络查重" v-bind="validateInfos.wwcc">
<j-dict-select-tag type='radio' v-model:value="formData.wwcc" dictCode="yn" placeholder="请选择是否网络查重" :disabled="disabled"/>
</a-form-item>
<span class="spanSm">说明是否在外部网络资源内进行查重</span>
</a-col>
<a-col :span="12">
<a-form-item label="网络通过率" v-bind="validateInfos.wwtgl">
<a-input-number v-model:value="formData.wwtgl" placeholder="请输入网络通过率" style="width: 100%" :disabled="disabled"/>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="是否课程内查重" v-bind="validateInfos.nwcc">
<j-dict-select-tag type='radio' v-model:value="formData.nwcc" dictCode="yn" placeholder="请选择是否课程内查重" :disabled="disabled"/>
</a-form-item>
<span class="spanSm">说明是否在本课程所有提交的作业资源内进行查重</span>
</a-col>
<a-col :span="12">
<a-form-item label="课程内通过率" v-bind="validateInfos.nwtgl">
<a-input-number v-model:value="formData.nwtgl" placeholder="请输入课程内通过率" style="width: 100%" :disabled="disabled"/>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="外网通过率" v-bind="validateInfos.wwtgl">
<a-input-number v-model:value="formData.wwtgl" placeholder="请输入外网通过率" style="width: 100%" :disabled="disabled"/>
<a-form-item label="Aigc是否查重" v-bind="validateInfos.aigccc">
<j-dict-select-tag type='radio' v-model:value="formData.aigccc" dictCode="yn" placeholder="请选择Aigc查重" :disabled="disabled"/>
</a-form-item>
<span class="spanSm">说明是否对AI撰写相似度进行查重</span>
</a-col>
<a-col :span="12">
<a-form-item label="内网是否查重" v-bind="validateInfos.nwcc">
<j-dict-select-tag type='radio' v-model:value="formData.nwcc" dictCode="yn" placeholder="请选择内网查重" :disabled="disabled"/>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="内网通过率" v-bind="validateInfos.nwtgl">
<a-input-number v-model:value="formData.nwtgl" placeholder="请输入内网通过率" style="width: 100%" :disabled="disabled"/>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="aigc是否查重" v-bind="validateInfos.aigccc">
<j-dict-select-tag type='radio' v-model:value="formData.aigccc" dictCode="yn" placeholder="请选择aigc查重" :disabled="disabled"/>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="aigc通过率" v-bind="validateInfos.aigctgl">
<a-input-number v-model:value="formData.aigctgl" placeholder="请输入aigc通过率" style="width: 100%" :disabled="disabled"/>
<a-form-item label="Aigc通过率" v-bind="validateInfos.aigctgl">
<a-input-number v-model:value="formData.aigctgl" placeholder="请输入Aigc通过率" style="width: 100%" :disabled="disabled"/>
</a-form-item>
</a-col>
</a-row>
@ -115,7 +119,7 @@
//
const validatorRules = {
title: [{ required: true, message: '请输入作业名称!'},],
zyType: [{ required: true, message: '请输入类型!'},],
// zyType: [{ required: true, message: '!'},],
startTime: [{ required: true, message: '请输入开始时间!'},],
endTime: [{ required: true, message: '请输入结束时间!'},],
wwcc: [{ required: true, message: '请输入外网是否查重!'},],
@ -233,4 +237,10 @@
overflow-y: auto;
padding: 24px 24px 24px 24px;
}
.spanSm{
top: -22px;
position: inherit;
padding: 0 0 0 164px;
color: #a9a9a9;
}
</style>

View File

@ -14,12 +14,23 @@ export const columns: BasicColumn[] = [
align: "center",
dataIndex: 'createBy'
},
{
title: '提交时间',
align: "center",
dataIndex: 'createTime'
},
{
title: '作业附件',
align: "center",
dataIndex: 'filePath',
slots: { customRender: 'fileSlot' },
},
{
title: '在线预览',
align: "center",
dataIndex: 'filePath',
slots: { customRender: 'fileZxSlot' },
},
{
title: '外网相似律',
align: "center",

View File

@ -41,6 +41,10 @@
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button>
</template>
<template #fileZxSlot="{text}">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="yulanFile(text)">预览</a-button>
</template>
</BasicTable>
<!-- 表单区域 -->
<ZyInfoStudentModal ref="registerModal" @success="handleSuccess"></ZyInfoStudentModal>
@ -56,6 +60,7 @@
import { downloadFile } from '/@/utils/common/renderUtils';
import ZyInfoStudentModal from './components/ZyInfoStudentModal.vue'
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
const queryParam = ref<any>({});
const mainId = ref<string>('');
@ -98,6 +103,12 @@
sm: { span: 16 },
});
function yulanFile(text){
// let url = "https://view.officeapps.live.com/op/view.aspx?src="+encodeURIComponent(getFileAccessHttpUrl(text));
// let url = "https://view.officeapps.live.com/op/view.aspx?src="+encodeURIComponent(getFileAccessHttpUrl(text));
let url = "https://view.xdocin.com/view?src="+encodeURIComponent('https://view.xdocin.com/demo/view.docx');
window.open(url,"_blank")
}
/**
* 新增事件
*/