修改bug
This commit is contained in:
parent
a7b4413a13
commit
7c5b7c0540
|
@ -3,7 +3,7 @@
|
||||||
<a-upload
|
<a-upload
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
:multiple="multiple"
|
:multiple="multiple"
|
||||||
:action="uploadFn"
|
:action="uploadUrl"
|
||||||
:fileList="fileList"
|
:fileList="fileList"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-bind="bindProps"
|
v-bind="bindProps"
|
||||||
|
@ -38,7 +38,6 @@
|
||||||
import { UploadTypeEnum } from './upload.data';
|
import { UploadTypeEnum } from './upload.data';
|
||||||
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||||
import UploadItemActions from './components/UploadItemActions.vue';
|
import UploadItemActions from './components/UploadItemActions.vue';
|
||||||
import { defHttp } from '/@/utils/http/axios';
|
|
||||||
|
|
||||||
const { createMessage, createConfirm } = useMessage();
|
const { createMessage, createConfirm } = useMessage();
|
||||||
const { prefixCls } = useDesign('j-upload');
|
const { prefixCls } = useDesign('j-upload');
|
||||||
|
@ -373,21 +372,6 @@
|
||||||
return path.substring(path.lastIndexOf('/') + 1);
|
return path.substring(path.lastIndexOf('/') + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function uploadFn(file){
|
|
||||||
let form = new FormData();
|
|
||||||
form.append('biz', props.bizPath);
|
|
||||||
form.append('file', file);
|
|
||||||
|
|
||||||
console.log(`🚀 -------------------------------------🚀`);
|
|
||||||
console.log(`🚀 ~ uploadFn ~ uploadUrl:`, uploadUrl);
|
|
||||||
console.log(`🚀 -------------------------------------🚀`);
|
|
||||||
|
|
||||||
// 分钟 * 秒 * 毫秒 60分钟
|
|
||||||
defHttp.post({ url: '/sys/common/upload', formData: form }, { timeout: 60 * 60 * 1000, joinPrefix: false, apiUrl: 'http://localhost:8090/jeecg-boot'});//http://localhost:8090/jeecg-boot/sys/common/upload
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
addActionsListener,
|
addActionsListener,
|
||||||
});
|
});
|
||||||
|
|
|
@ -18,7 +18,7 @@ const zuoyehistory: AppRouteModule = {
|
||||||
path: 'hismain',
|
path: 'hismain',
|
||||||
name: 'zuoyeHistoryMain',
|
name: 'zuoyeHistoryMain',
|
||||||
meta: {
|
meta: {
|
||||||
title: '课程介绍',
|
title: '课程简介',
|
||||||
},
|
},
|
||||||
component: () => import('/@/views/site/renKeJiaoCheng/checkKecheng/history/kcHistoryDetail.vue'),
|
component: () => import('/@/views/site/renKeJiaoCheng/checkKecheng/history/kcHistoryDetail.vue'),
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷名称">
|
<a-form-item label="测验名称">
|
||||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
<a-input placeholder="请输入测验名称" v-model:value="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷类型">
|
<a-form-item label="测验类型">
|
||||||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="0">未发布</a-select-option>
|
<a-select-option value="0">未发布</a-select-option>
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷名称">
|
<a-form-item label="测验名称">
|
||||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
<a-input placeholder="请输入测验名称" v-model:value="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷类型">
|
<a-form-item label="测验类型">
|
||||||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="0">未发布</a-select-option>
|
<a-select-option value="0">未发布</a-select-option>
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷名称">
|
<a-form-item label="测验名称">
|
||||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
<a-input placeholder="请输入测验名称" v-model:value="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷类型">
|
<a-form-item label="测验类型">
|
||||||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="0">未发布</a-select-option>
|
<a-select-option value="0">待发布</a-select-option>
|
||||||
<a-select-option value="1">已发布</a-select-option>
|
<a-select-option value="1">已发布</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
@ -62,13 +62,13 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" style="text-align:center;margin-top:20px;">
|
<a-col :span="24" style="text-align:center;margin-top:20px;">
|
||||||
<a-button type="primary" @click="handleEdit(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">编辑</a-button>
|
<a-button type="primary" @click="handleEdit(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">设置试卷</a-button>
|
||||||
<a-button type="primary" @click="handlePeizhi(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">配置</a-button>
|
<a-button type="primary" @click="handlePeizhi(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">编辑题目</a-button>
|
||||||
<a-button type="primary" @click="handleFabu(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">发布</a-button>
|
<a-button type="primary" @click="handleFabu(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">发布试卷</a-button>
|
||||||
<a-button type="primary" @click="handleDelete(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">删除</a-button>
|
<a-button type="primary" @click="handleDelete(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">删除试卷</a-button>
|
||||||
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">详情</a-button>
|
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">试卷详情</a-button>
|
||||||
<a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">配置</a-button>
|
<a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">编辑题目</a-button>
|
||||||
<a-button type="primary" @click="handleDjjgs(item,'')" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">结果</a-button>
|
<a-button type="primary" @click="handleDjjgs(item,'')" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">测验结果</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- <a-col :span="24" style="text-align:center;margin-top:20px;">-->
|
<!-- <a-col :span="24" style="text-align:center;margin-top:20px;">-->
|
||||||
<!-- <a-button type="primary" @click="handleDj(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">答卷</a-button>-->
|
<!-- <a-button type="primary" @click="handleDj(item)" style="margin-left:5px;padding: 0px 8px;background:rgb(28, 132, 198);" v-if="item.qpublish==1">答卷</a-button>-->
|
||||||
|
|
|
@ -5,16 +5,16 @@
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷名称">
|
<a-form-item label="测验名称">
|
||||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
<a-input placeholder="请输入测验名称" v-model:value="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷类型">
|
<a-form-item label="测验类型">
|
||||||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.flag">
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.flag">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="-1">待提交</a-select-option>
|
<a-select-option value="-1">待答卷</a-select-option>
|
||||||
<a-select-option value="0">已提交</a-select-option>
|
<a-select-option value="0">待批卷</a-select-option>
|
||||||
<a-select-option value="1">已完成</a-select-option>
|
<a-select-option value="1">已完成</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷名称">
|
<a-form-item label="测验名称">
|
||||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
<a-input placeholder="请输入测验名称" v-model:value="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷类型">
|
<a-form-item label="测验类型">
|
||||||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="0">未发布</a-select-option>
|
<a-select-option value="0">待发布</a-select-option>
|
||||||
<a-select-option value="1">已发布</a-select-option>
|
<a-select-option value="1">已发布</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷名称">
|
<a-form-item label="测验名称">
|
||||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
<a-input placeholder="请输入测验名称" v-model:value="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷类型">
|
<a-form-item label="测验类型">
|
||||||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="0">未发布</a-select-option>
|
<a-select-option value="0">未发布</a-select-option>
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷名称">
|
<a-form-item label="测验名称">
|
||||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
<a-input placeholder="请输入测验名称" v-model:value="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷类型">
|
<a-form-item label="测验类型">
|
||||||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="0">未发布</a-select-option>
|
<a-select-option value="0">未发布</a-select-option>
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷名称">
|
<a-form-item label="问卷名称">
|
||||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
<j-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></j-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷类型">
|
<a-form-item label="问卷类型">
|
||||||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
<a-select placeholder="请选择问卷类型" ref="select" v-model:value="queryParam.qpublish">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="0">未发布</a-select-option>
|
<a-select-option value="0">未发布</a-select-option>
|
||||||
<a-select-option value="1">已发布</a-select-option>
|
<a-select-option value="1">已发布</a-select-option>
|
||||||
|
@ -108,6 +108,7 @@
|
||||||
import WjxWjxxTmlbDjjgsDcModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsDcModal.vue'
|
import WjxWjxxTmlbDjjgsDcModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsDcModal.vue'
|
||||||
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||||
import {useRouter} from "vue-router";
|
import {useRouter} from "vue-router";
|
||||||
|
import { JInput } from '/@/components/Form';
|
||||||
|
|
||||||
//当前路由信息
|
//当前路由信息
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷名称">
|
<a-form-item label="测验名称">
|
||||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
<a-input placeholder="请输入测验名称" v-model:value="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷类型">
|
<a-form-item label="测验类型">
|
||||||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.flag">
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.flag">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="-1">待提交</a-select-option>
|
<a-select-option value="-1">待提交</a-select-option>
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷名称">
|
<a-form-item label="测验名称">
|
||||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
<a-input placeholder="请输入测验名称" v-model:value="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="7">
|
<a-col :lg="7">
|
||||||
<a-form-item label="问卷类型">
|
<a-form-item label="测验类型">
|
||||||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.qpublish">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="0">未发布</a-select-option>
|
<a-select-option value="0">未发布</a-select-option>
|
||||||
|
|
|
@ -10,7 +10,7 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'qpublish_dictText'
|
dataIndex: 'qpublish_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '问卷名称',
|
title: '测验名称',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'title'
|
dataIndex: 'title'
|
||||||
},
|
},
|
||||||
|
@ -49,7 +49,7 @@ export const columns: BasicColumn[] = [
|
||||||
//查询数据
|
//查询数据
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
{
|
{
|
||||||
label: "问卷名称",
|
label: "测验名称",
|
||||||
field: 'title',
|
field: 'title',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
colProps: {span: 6},
|
colProps: {span: 6},
|
||||||
|
@ -59,12 +59,12 @@ export const searchFormSchema: FormSchema[] = [
|
||||||
//表单数据
|
//表单数据
|
||||||
export const formSchema: FormSchema[] = [
|
export const formSchema: FormSchema[] = [
|
||||||
{
|
{
|
||||||
label: '问卷名称',
|
label: '测验名称',
|
||||||
field: 'title',
|
field: 'title',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
dynamicRules: ({model,schema}) => {
|
dynamicRules: ({model,schema}) => {
|
||||||
return [
|
return [
|
||||||
{ required: true, message: '请输入问卷名称!'},
|
{ required: true, message: '请输入测验名称!'},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,23 +3,28 @@
|
||||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item label="问卷名称" v-bind="validateInfos.title">
|
<a-form-item label="课程名称">
|
||||||
<a-input v-model:value="formData.title" placeholder="请输入问卷名称" :disabled="disabled"></a-input>
|
<a-input v-model:value="formData.kcmc" disabled></a-input>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item label="名称" v-bind="validateInfos.title">
|
||||||
|
<a-input v-model:value="formData.title" placeholder="请输入名称" :disabled="disabled"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item label="开始时间" v-bind="validateInfos.startTime">
|
<a-form-item label="开始时间" v-bind="validateInfos.startTime">
|
||||||
<a-date-picker placeholder="请选择开始时间" v-model:value="formData.startTime" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
|
<a-date-picker placeholder="请选择开始时间" v-model:value="formData.startTime" :disabled-date="disabledDate" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item label="结束时间" v-bind="validateInfos.endTime">
|
<a-form-item label="结束时间" v-bind="validateInfos.endTime">
|
||||||
<a-date-picker placeholder="请选择结束时间" v-model:value="formData.endTime" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
|
<a-date-picker placeholder="请选择结束时间" v-model:value="formData.endTime" :disabled-date="disabledDate" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item label="问卷描述" v-bind="validateInfos.content">
|
<a-form-item label="描述" v-bind="validateInfos.content">
|
||||||
<a-textarea v-model:value="formData.content" rows="4" placeholder="请输入问卷描述" :disabled="disabled"/>
|
<a-textarea v-model:value="formData.content" rows="4" placeholder="请输入描述" :disabled="disabled"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" hidden>
|
<a-col :span="24" hidden>
|
||||||
|
@ -27,11 +32,6 @@
|
||||||
<a-input v-model:value="formData.xqxn" disabled></a-input>
|
<a-input v-model:value="formData.xqxn" disabled></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-item label="课程名称">
|
|
||||||
<a-input v-model:value="formData.kcmc" disabled></a-input>
|
|
||||||
</a-form-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24" hidden>
|
<a-col :span="24" hidden>
|
||||||
<a-form-item label="选课人数">
|
<a-form-item label="选课人数">
|
||||||
<a-input v-model:value="formData.xkrs" disabled></a-input>
|
<a-input v-model:value="formData.xkrs" disabled></a-input>
|
||||||
|
@ -52,6 +52,7 @@ import {ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted,
|
||||||
import { saveOrUpdate } from '../WjxWjxx.api';
|
import { saveOrUpdate } from '../WjxWjxx.api';
|
||||||
import { Form } from 'ant-design-vue';
|
import { Form } from 'ant-design-vue';
|
||||||
import {useRouter} from "vue-router";
|
import {useRouter} from "vue-router";
|
||||||
|
import dayjs, { Dayjs } from 'dayjs';
|
||||||
|
|
||||||
//当前路由信息
|
//当前路由信息
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
|
@ -82,10 +83,13 @@ import {ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted,
|
||||||
const confirmLoading = ref<boolean>(false);
|
const confirmLoading = ref<boolean>(false);
|
||||||
//表单验证
|
//表单验证
|
||||||
const validatorRules = {
|
const validatorRules = {
|
||||||
title: [{ required: true, message: '请输入问卷名称!'},],
|
title: [{ required: true, message: '请输入测验名称!'},],
|
||||||
startTime: [{ required: true, message: '请选择开始时间!'},],
|
startTime: [{ required: true, message: '请选择开始时间!'},],
|
||||||
endTime: [{ required: true, message: '请选择结束时间!'},]
|
endTime: [{ required: true, message: '请选择结束时间!'},]
|
||||||
};
|
};
|
||||||
|
const disabledDate = (current: Dayjs) => {
|
||||||
|
return current && current < dayjs().subtract(1,'days').endOf('day');
|
||||||
|
};
|
||||||
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });
|
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });
|
||||||
|
|
||||||
// 表单禁用
|
// 表单禁用
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { render } from '/@/utils/common/renderUtils';
|
||||||
//列表数据
|
//列表数据
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
title: '问卷名称',
|
title: '测验名称',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'title',
|
dataIndex: 'title',
|
||||||
width: 200
|
width: 200
|
||||||
|
@ -29,7 +29,7 @@ export const columns: BasicColumn[] = [
|
||||||
width: 80
|
width: 80
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '总分数',
|
title: '总分',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'totalScore',
|
dataIndex: 'totalScore',
|
||||||
width: 80
|
width: 80
|
||||||
|
@ -86,7 +86,7 @@ export const columns: BasicColumn[] = [
|
||||||
|
|
||||||
export const dccolumns: BasicColumn[] = [
|
export const dccolumns: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
title: '问卷名称',
|
title: '测验名称',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'title',
|
dataIndex: 'title',
|
||||||
width: 200
|
width: 200
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<a-card>
|
<a-card>
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="3" style="font-size: 18px;font-weight: bold;">课程介绍:</a-col>
|
<a-col :span="3" style="font-size: 18px;font-weight: bold;">课程简介:</a-col>
|
||||||
<a-col :span="15"><a-textarea style="width: 100%;" v-model:value="jxdgInfo.kcjs"></a-textarea></a-col>
|
<a-col :span="15"><a-textarea style="width: 100%;" v-model:value="jxdgInfo.kcjs"></a-textarea></a-col>
|
||||||
<a-col :span="6" style="text-align:right;"><a-button type="primary" @click="addKcjsHandle(1)">提交</a-button><a-button type="primary" style="margin-left:10px;" @click="handleYinyong">引用</a-button></a-col>
|
<a-col :span="6" style="text-align:right;"><a-button type="primary" @click="addKcjsHandle(1)">提交</a-button><a-button type="primary" style="margin-left:10px;" @click="handleYinyong">引用</a-button></a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -178,7 +178,7 @@ const baseApiUrl = globSetting.domainUrl;
|
||||||
console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource)
|
console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//获取课程介绍和教学大纲内容
|
//获取课程简介和教学大纲内容
|
||||||
function getKcjsJxdg(){
|
function getKcjsJxdg(){
|
||||||
defHttp.get({ url: '/zyJxdg/zyJxdg/getKcjsJxdg', params: { rwbh:rwbh} }).then((res) => {
|
defHttp.get({ url: '/zyJxdg/zyJxdg/getKcjsJxdg', params: { rwbh:rwbh} }).then((res) => {
|
||||||
if(res){
|
if(res){
|
||||||
|
|
|
@ -3,13 +3,14 @@
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-menu
|
<a-menu
|
||||||
|
v-model:openKeys="openKeys"
|
||||||
v-model:selectedKeys="selectedKeys"
|
v-model:selectedKeys="selectedKeys"
|
||||||
style="width: 98%;min-height: calc(100vh - 142px);margin: 10px 0;"
|
style="width: 98%;min-height: calc(100vh - 142px);margin: 10px 0;"
|
||||||
mode="inline"
|
mode="inline"
|
||||||
>
|
>
|
||||||
<a-sub-menu key="sub1">
|
<a-sub-menu key="sub1">
|
||||||
<template #title>教学内容</template>
|
<template #title>教学内容</template>
|
||||||
<a-menu-item key="1" @click="getGzt('kcjs')">课程介绍</a-menu-item>
|
<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="2" @click="getGzt('gonggao')">通知公告</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-sub-menu>
|
||||||
|
@ -62,7 +63,8 @@
|
||||||
import dqxqkc from '/@/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue';
|
import dqxqkc from '/@/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue';
|
||||||
|
|
||||||
const maxClassName = ref<any>({});
|
const maxClassName = ref<any>({});
|
||||||
const selectedKeys = ref<string[]>([]);
|
const selectedKeys = ref<string[]>(['1']);
|
||||||
|
const openKeys = ref<string[]>(['sub1']);
|
||||||
//当前路由信息
|
//当前路由信息
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
const { query } = unref(currentRoute);
|
const { query } = unref(currentRoute);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<a-card>
|
<a-card>
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="3" style="font-size: 18px;font-weight: bold;">课程介绍:</a-col>
|
<a-col :span="3" style="font-size: 18px;font-weight: bold;">课程简介:</a-col>
|
||||||
<a-col :span="20">{{jxdgInfo.kcjs}}</a-col>
|
<a-col :span="20">{{jxdgInfo.kcjs}}</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
|
@ -156,7 +156,7 @@ const baseApiUrl = globSetting.domainUrl;
|
||||||
console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource)
|
console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//获取课程介绍和教学大纲内容
|
//获取课程简介和教学大纲内容
|
||||||
function getKcjsJxdg(){
|
function getKcjsJxdg(){
|
||||||
defHttp.get({ url: '/zyJxdg/zyJxdg/getKcjsJxdg', params: { rwbh:rwbh} }).then((res) => {
|
defHttp.get({ url: '/zyJxdg/zyJxdg/getKcjsJxdg', params: { rwbh:rwbh} }).then((res) => {
|
||||||
console.log(`🚀 1111111111111~ getKcjsJxdg ~ res:`, res)
|
console.log(`🚀 1111111111111~ getKcjsJxdg ~ res:`, res)
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
>
|
>
|
||||||
<a-sub-menu key="sub1">
|
<a-sub-menu key="sub1">
|
||||||
<template #title>教学内容</template>
|
<template #title>教学内容</template>
|
||||||
<a-menu-item key="1" @click="getGzt('kcjs')">课程介绍</a-menu-item>
|
<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="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>
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
function getGzt(zytype){
|
function getGzt(zytype){
|
||||||
var param = {rwbh,xqxn,type};
|
var param = {rwbh,xqxn,type};
|
||||||
var href = "";
|
var href = "";
|
||||||
if(zytype=='kcjs'){//课程介绍
|
if(zytype=='kcjs'){//课程简介
|
||||||
href = "/history/hismain";
|
href = "/history/hismain";
|
||||||
}else if(zytype=='gonggao'){//通知公告
|
}else if(zytype=='gonggao'){//通知公告
|
||||||
href = "/history/hisTzgg";
|
href = "/history/hisTzgg";
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
mode="inline"
|
mode="inline"
|
||||||
>
|
>
|
||||||
<a-sub-menu key="sub1">
|
<a-sub-menu key="sub1">
|
||||||
<template #title>课程介绍</template>
|
<template #title>课程简介</template>
|
||||||
<a-menu-item key="1" @click="getGzt('kcjs')">课程介绍</a-menu-item>
|
<a-menu-item key="1" @click="getGzt('kcjs')">课程简介</a-menu-item>
|
||||||
<a-menu-item key="2" @click="getGzt('tzgg')">通知公告</a-menu-item>
|
<a-menu-item key="2" @click="getGzt('tzgg')">通知公告</a-menu-item>
|
||||||
<a-menu-item key="3" @click="getGzt('stuJiaoXueDanYuanNeiRong')">教学单元</a-menu-item>
|
<a-menu-item key="3" @click="getGzt('stuJiaoXueDanYuanNeiRong')">教学单元</a-menu-item>
|
||||||
</a-sub-menu>
|
</a-sub-menu>
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
href = "/stuzy/stuDcwjWenjuan";
|
href = "/stuzy/stuDcwjWenjuan";
|
||||||
}else if(zytype=='kcjc'){//课程检测
|
}else if(zytype=='kcjc'){//课程检测
|
||||||
href = "/stuzy/stuCeshiWenjuan";
|
href = "/stuzy/stuCeshiWenjuan";
|
||||||
}else if(zytype=='kcjs'){//课程介绍
|
}else if(zytype=='kcjs'){//课程简介
|
||||||
href = "/stuzy/studentMain";
|
href = "/stuzy/studentMain";
|
||||||
}else if(zytype=='tzgg'){//通知公告
|
}else if(zytype=='tzgg'){//通知公告
|
||||||
href = "/stuzy/StudentGonggaoList";
|
href = "/stuzy/StudentGonggaoList";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<a-card>
|
<a-card>
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="3" style="font-size: 18px;font-weight: bold;">课程介绍:</a-col>
|
<a-col :span="3" style="font-size: 18px;font-weight: bold;">课程简介:</a-col>
|
||||||
<a-col :span="20">{{jxdgInfo.kcjs}}</a-col>
|
<a-col :span="20">{{jxdgInfo.kcjs}}</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
|
@ -174,7 +174,7 @@ function openJxrlPdf(record){
|
||||||
console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource)
|
console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//获取课程介绍和教学大纲内容
|
//获取课程简介和教学大纲内容
|
||||||
function getKcjsJxdg(){
|
function getKcjsJxdg(){
|
||||||
defHttp.get({ url: '/zyJxdg/zyJxdg/getKcjsJxdg', params: { rwbh:rwbh} }).then((res) => {
|
defHttp.get({ url: '/zyJxdg/zyJxdg/getKcjsJxdg', params: { rwbh:rwbh} }).then((res) => {
|
||||||
console.log(`🚀 1111111111111~ getKcjsJxdg ~ res:`, res)
|
console.log(`🚀 1111111111111~ getKcjsJxdg ~ res:`, res)
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
<div class="max">
|
<div class="max">
|
||||||
|
|
||||||
<!-- <a-affix :offset-top="0" :target="() => doctomen"> -->
|
<!-- <a-affix :offset-top="0" :target="() => doctomen"> -->
|
||||||
|
<div style="background: #fff">
|
||||||
|
<div style="font-size: 14px;color: #858588;margin-top: 10px;width:100%;padding: 10px 0 0 10px;">提示:每一个小的章节,都可以上传章节相关的教学资源</div>
|
||||||
<div class="topButton">
|
<div class="topButton">
|
||||||
<a-space v-if="!isPreview">
|
<a-space v-if="!isPreview">
|
||||||
<a-button type="primary" @click="save" :loading="saveLoading" title="保存"><Icon icon="ant-design:save-outlined"/>保存</a-button>
|
<a-button type="primary" @click="save" :loading="saveLoading" title="保存"><Icon icon="ant-design:save-outlined"/>保存</a-button>
|
||||||
|
@ -16,6 +18,7 @@
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<!-- </a-affix> -->
|
<!-- </a-affix> -->
|
||||||
<stuIndex v-show="isPreview" :hiddenBtn="true"/>
|
<stuIndex v-show="isPreview" :hiddenBtn="true"/>
|
||||||
<div v-show="!isPreview" class="maxDiv">
|
<div v-show="!isPreview" class="maxDiv">
|
||||||
|
@ -475,7 +478,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.topButton {
|
.topButton {
|
||||||
padding-top: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ainput {
|
.ainput {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="8">
|
<a-col :lg="8">
|
||||||
<a-form-item label="作业名称">
|
<a-form-item label="作业名称">
|
||||||
<a-input placeholder="请输入作业名称" v-model:value="queryParam.title"></a-input>
|
<j-input placeholder="请输入作业名称" v-model:value="queryParam.title"></j-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- <a-col :lg="8">
|
<!-- <a-col :lg="8">
|
||||||
|
@ -41,7 +41,13 @@
|
||||||
<div style="font-size: 18px;font-weight: bold;">{{item.title}}</div>
|
<div style="font-size: 18px;font-weight: bold;">{{item.title}}</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" class="zyCon">时间:{{item.startTime}} - {{item.endTime}}</a-col>
|
<a-col :span="24" class="zyCon">时间:{{item.startTime}} - {{item.endTime}}</a-col>
|
||||||
<a-col :span="24" class="zyCon"><div style="float:left" v-if="item.score">{{item.score}}分</div><div style="float:right;" @click="openXkrs(item)"><a>{{item.xkxs}}人选课</a></div></a-col>
|
<a-col :span="24" class="zyCon">
|
||||||
|
<div style="float:left" v-if="item.score">{{item.score}}分</div>
|
||||||
|
<div style="float:right;">
|
||||||
|
|
||||||
|
<!-- <a>{{item.xkxs}}人选课</a> -->
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
<a-col :span="24" style="text-align:center;margin-top:20px;">
|
<a-col :span="24" style="text-align:center;margin-top:20px;">
|
||||||
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;background:rgb(28, 132, 198);">详情</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="handleShangchuan(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="!item.stuFilePath" >上传</a-button>
|
<a-button type="primary" @click="handleShangchuan(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="!item.stuFilePath" >上传</a-button>
|
||||||
|
@ -74,6 +80,7 @@
|
||||||
import { defHttp } from '/@/utils/http/axios';
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
import { useMessage } from "/@/hooks/web/useMessage";
|
import { useMessage } from "/@/hooks/web/useMessage";
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
||||||
import ZyInfoModal from './components/ZyInfoModal.vue';
|
import ZyInfoModal from './components/ZyInfoModal.vue';
|
||||||
import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue';
|
import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue';
|
||||||
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue';
|
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue';
|
||||||
|
@ -116,7 +123,7 @@
|
||||||
}else if(record.stuFilePath){
|
}else if(record.stuFilePath){
|
||||||
return "background: #18a689";
|
return "background: #18a689";
|
||||||
}else{
|
}else{
|
||||||
return "background: #a7a6a6";
|
return "background: #ff0000";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function callText(record){
|
function callText(record){
|
||||||
|
@ -139,6 +146,19 @@
|
||||||
//上传作业附件
|
//上传作业附件
|
||||||
function handleShangchuan(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;
|
ZyInfoStudentModalPage.value.disableSubmit = false;
|
||||||
var param = {id:record.stuId,zyfj:record.filePath}
|
var param = {id:record.stuId,zyfj:record.filePath}
|
||||||
ZyInfoStudentModalPage.value.edit(param);
|
ZyInfoStudentModalPage.value.edit(param);
|
||||||
|
|
|
@ -52,8 +52,9 @@
|
||||||
<a-col :span="24" style="text-align:center;margin-top:20px;">
|
<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="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="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="handleDelete(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==0">删除</a-button>
|
||||||
<a-button type="primary" @click="handleZyxx(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==1||item.zyStatus==2||item.zyStatus==3">作业</a-button>
|
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==1||item.zyStatus==2||item.zyStatus==3">作业详情</a-button>
|
||||||
|
<a-button type="primary" @click="handleZyxx(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==1||item.zyStatus==2||item.zyStatus==3">查看作业</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-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-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -219,6 +220,7 @@
|
||||||
* 查询
|
* 查询
|
||||||
*/
|
*/
|
||||||
function searchQuery() {
|
function searchQuery() {
|
||||||
|
queryParam.value.pageNo = 1;
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,6 +229,7 @@
|
||||||
*/
|
*/
|
||||||
function searchReset() {
|
function searchReset() {
|
||||||
queryParam.value = {};
|
queryParam.value = {};
|
||||||
|
queryParam.value.pageNo = 1;
|
||||||
//刷新数据
|
//刷新数据
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="开始时间" v-bind="validateInfos.startTime">
|
<a-form-item label="开始时间" v-bind="validateInfos.startTime">
|
||||||
<a-date-picker placeholder="请选择开始时间" v-model:value="formData.startTime" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
|
<a-date-picker placeholder="请选择开始时间" v-model:value="formData.startTime" :disabled-date="disabledDate" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="结束时间" v-bind="validateInfos.endTime">
|
<a-form-item label="结束时间" v-bind="validateInfos.endTime">
|
||||||
<a-date-picker placeholder="请选择结束时间" v-model:value="formData.endTime" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
|
<a-date-picker placeholder="请选择结束时间" v-model:value="formData.endTime" :disabled-date="disabledDate" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
|
@ -92,6 +92,7 @@
|
||||||
import { saveOrUpdate } from '../ZyInfo.api';
|
import { saveOrUpdate } from '../ZyInfo.api';
|
||||||
import { Form } from 'ant-design-vue';
|
import { Form } from 'ant-design-vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
import dayjs, { Dayjs } from 'dayjs';
|
||||||
import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
|
import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
|
||||||
|
|
||||||
//当前路由信息
|
//当前路由信息
|
||||||
|
@ -142,7 +143,9 @@
|
||||||
aigctgl: [{ required: false}, { pattern: /^-?\d+\.?\d*$/, message: '请输入数字!'},],
|
aigctgl: [{ required: false}, { pattern: /^-?\d+\.?\d*$/, message: '请输入数字!'},],
|
||||||
};
|
};
|
||||||
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
|
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
|
||||||
|
const disabledDate = (current: Dayjs) => {
|
||||||
|
return current && current < dayjs().subtract(1,'days').endOf('day');
|
||||||
|
};
|
||||||
// 表单禁用
|
// 表单禁用
|
||||||
const disabled = computed(()=>{
|
const disabled = computed(()=>{
|
||||||
if(props.formBpm === true){
|
if(props.formBpm === true){
|
||||||
|
|
|
@ -36,35 +36,38 @@ export const columns: BasicColumn[] = [
|
||||||
// dataIndex: 'filePath',
|
// dataIndex: 'filePath',
|
||||||
// slots: { customRender: 'fileZxSlot' },
|
// slots: { customRender: 'fileZxSlot' },
|
||||||
// },
|
// },
|
||||||
|
// {
|
||||||
|
// title: '外网相似率',
|
||||||
|
// align: "center",
|
||||||
|
// dataIndex: 'wwxsl'
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
title: '外网相似率',
|
title: '外网检测是否通过',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'wwxsl'
|
dataIndex: 'wwsftg',
|
||||||
|
slots: { customRender: 'wwsftgaction' },
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// title: '内网相似率',
|
||||||
|
// align: "center",
|
||||||
|
// dataIndex: 'nwxsl'
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
title: '外网是否通过',
|
title: '内网检测是否通过',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'wwsftg'
|
dataIndex: 'nwsftg',
|
||||||
|
slots: { customRender: 'nwsftgaction' },
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// title: 'aigc相似率',
|
||||||
|
// align: "center",
|
||||||
|
// dataIndex: 'aigcxsl'
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
title: '内网相似率',
|
title: 'aigc检测是否通过',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'nwxsl'
|
dataIndex: 'aigcsftg',
|
||||||
},
|
slots: { customRender: 'aigcsftgaction' },
|
||||||
{
|
|
||||||
title: '内网是否通过',
|
|
||||||
align: "center",
|
|
||||||
dataIndex: 'nwsftg'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'aigc相似率',
|
|
||||||
align: "center",
|
|
||||||
dataIndex: 'aigcxsl'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'aigc是否通过',
|
|
||||||
align: "center",
|
|
||||||
dataIndex: 'aigcsftg'
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,13 @@
|
||||||
</a-form>
|
</a-form>
|
||||||
</div> -->
|
</div> -->
|
||||||
<!--引用表格-->
|
<!--引用表格-->
|
||||||
<BasicTable @register="registerTable">
|
<BasicTable @register="registerTable" style="margin-top: 20px;">
|
||||||
<!--插槽:table标题-->
|
<!--插槽:table标题-->
|
||||||
<template #tableTitle>
|
<template #tableTitle>
|
||||||
|
<div style="padding: 10px;">
|
||||||
|
<span style="background: green;color:#fff;padding: 5px 15px;margin-left:20px;">通过</span>
|
||||||
|
<span style="background: red;color:#fff;padding: 5px 15px;margin-left:20px;">未通过</span>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<!--操作栏-->
|
<!--操作栏-->
|
||||||
<template #action="{ record }">
|
<template #action="{ record }">
|
||||||
|
@ -34,6 +38,40 @@
|
||||||
<div v-html="text"></div>
|
<div v-html="text"></div>
|
||||||
</template>
|
</template>
|
||||||
<!--省市区字段回显插槽-->
|
<!--省市区字段回显插槽-->
|
||||||
|
|
||||||
|
<template #wwsftgaction="{text,record}">
|
||||||
|
<span v-if="record.wwcc=='0'">-</span>
|
||||||
|
<span v-else>
|
||||||
|
<span v-if="text=='通过'" style="background: green;color:#fff;padding: 5px 15px;" title="通过">{{record.wwxsl}}%</span>
|
||||||
|
<span v-else-if="text=='未通过'" style="background: red;color:#fff;padding: 5px 15px;" title="未通过">{{record.wwxsl}}%</span>
|
||||||
|
<span v-else>
|
||||||
|
<span v-if="record.filePath">检测中</span>
|
||||||
|
<span v-else>未提交</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
<template #nwsftgaction="{text,record}">
|
||||||
|
<span v-if="record.nwcc=='0'">-</span>
|
||||||
|
<span v-else>
|
||||||
|
<span v-if="text=='通过'" style="background: green;color:#fff;padding: 5px 15px;" title="通过">{{record.nwxsl}}%</span>
|
||||||
|
<span v-else-if="text=='未通过'" style="background: red;color:#fff;padding: 5px 15px;" title="未通过">{{record.nwxsl}}%</span>
|
||||||
|
<span v-else>
|
||||||
|
<span v-if="record.filePath">检测中</span>
|
||||||
|
<span v-else>未提交</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
<template #aigcsftgaction="{text,record}">
|
||||||
|
<span v-if="record.aigccc=='0'">-</span>
|
||||||
|
<span v-else>
|
||||||
|
<span v-if="text=='通过'" style="background: green;color:#fff;padding: 5px 15px;" title="通过">{{record.aigcxsl}}%</span>
|
||||||
|
<span v-else-if="text=='未通过'" style="background: red;color:#fff;padding: 5px 15px;" title="未通过">{{record.aigcxsl}}%</span>
|
||||||
|
<span v-else>
|
||||||
|
<span v-if="record.filePath">检测中</span>
|
||||||
|
<span v-else>未提交</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
<!--<template #pcaSlot="{text}">
|
<!--<template #pcaSlot="{text}">
|
||||||
{{ getAreaTextByCode(text) }}
|
{{ getAreaTextByCode(text) }}
|
||||||
</template>-->
|
</template>-->
|
||||||
|
@ -85,7 +123,7 @@ const baseApiUrl = globSetting.domainUrl;
|
||||||
useSearchForm: false,
|
useSearchForm: false,
|
||||||
actionColumn: {
|
actionColumn: {
|
||||||
width: 220,
|
width: 220,
|
||||||
fixed: 'right',
|
// fixed: 'right',
|
||||||
},
|
},
|
||||||
beforeFetch: (params) => {
|
beforeFetch: (params) => {
|
||||||
params.column = '',params.order = '';//新生成的默认不带排序
|
params.column = '',params.order = '';//新生成的默认不带排序
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.antd-modal-form {
|
.antd-modal-form {
|
||||||
min-height: 500px !important;
|
min-height: 300px !important;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 24px 24px 24px 24px;
|
padding: 24px 24px 24px 24px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'xqxn'
|
dataIndex: 'xqxn'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '课程介绍',
|
title: '课程简介',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'kcjs'
|
dataIndex: 'kcjs'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue