diff --git a/src/router/routes/modules/stuzy/stuzy.ts b/src/router/routes/modules/stuzy/stuzy.ts index e838b54..131e745 100644 --- a/src/router/routes/modules/stuzy/stuzy.ts +++ b/src/router/routes/modules/stuzy/stuzy.ts @@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types'; // import { LAYOUT } from '/@/router/constant'; import { t } from '/@/hooks/web/useI18n'; - + const stuzy: AppRouteModule = { path: '/stuzy', name: 'stuzy', @@ -38,7 +38,22 @@ const stuzy: AppRouteModule = { }, component: () => import('/@/views/zy/zyInfo/SutdentZyInfoHistoryList.vue'), }, - + { + path: 'stuCeshiWenjuan', + name: 'stuCeshiWenjuan', + component: () => import('/@/views/kc/wjxCswj/WjxCswjStuList.vue'), + meta: { + title: '测试问卷', + }, + }, + { + path: 'stuDcwjWenjuan', + name: 'stuDcwjWenjuan', + component: () => import('/@/views/kc/wjxDcwj/WjxDcwjStuList.vue'), + meta: { + title: '调查问卷', + }, + }, ] } diff --git a/src/router/routes/modules/zy/zy.ts b/src/router/routes/modules/zy/zy.ts index 3533bf7..23704bd 100644 --- a/src/router/routes/modules/zy/zy.ts +++ b/src/router/routes/modules/zy/zy.ts @@ -62,17 +62,22 @@ const zuoye: AppRouteModule = { title: '公告', }, }, - { - path: 'dqkcWenjuan', - name: 'dqkcWenjuan', - component: () => import('/@/views/kc/wjxWjxx/WjxWjxxList.vue'), + path: 'ceshiWenjuan', + name: 'ceshiWenjuan', + component: () => import('/@/views/kc/wjxCswj/WjxCswjMainList.vue'), meta: { - title: '当前问卷', + title: '测试问卷', + }, + }, + { + path: 'dcwjWenjuan', + name: 'dcwjWenjuan', + component: () => import('/@/views/kc/wjxDcwj/WjxDcwjMainList.vue'), + meta: { + title: '调查问卷', }, }, - - ] } diff --git a/src/views/kc/wjxWjxx/WjxWjxxList.vue b/src/views/kc/wjxCswj/WjxCswjList.vue similarity index 75% rename from src/views/kc/wjxWjxx/WjxWjxxList.vue rename to src/views/kc/wjxCswj/WjxCswjList.vue index 3a27561..12ef182 100644 --- a/src/views/kc/wjxWjxx/WjxWjxxList.vue +++ b/src/views/kc/wjxCswj/WjxCswjList.vue @@ -12,6 +12,7 @@ + 全部 未发布 已发布 @@ -33,7 +34,7 @@ - {{item.qpublish =='0'? '待发布':'已发布'}} + {{item.qpublish =='0'? '待发布':'已发布'}} {{item.title}} @@ -51,7 +52,13 @@ {{item.xqxn}} - {{item.xkrs}}人选课 + {{item.xkrs}}人选课 + + + + + 未提交:{{item.wwcrs}}人 + 已提交:{{item.ywcrs}}人 @@ -61,12 +68,12 @@ 删除 详情 配置 - 结果 - - - 答卷 - 查看答卷 + + + + + @@ -83,8 +90,8 @@ - + @@ -92,18 +99,18 @@ import {ref, reactive, defineExpose, unref, onMounted} from 'vue'; import { defHttp } from '/@/utils/http/axios'; import { Input, Popover, Pagination, Empty } from 'ant-design-vue'; - import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './WjxWjxx.api'; - import WjxWjxxModal from './components/WjxWjxxModal.vue' + import { list ,deleteOne } from '/@/views/kc/wjxWjxx/WjxWjxx.api'; + import WjxWjxxModal from '/@/views/kc/wjxWjxx/components/WjxWjxxModal.vue' import WjxWjxxTmlbModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbModal.vue' import WjxWjxxTmlbDjModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjModal.vue' - import WjxWjxxTmlbDjjgModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgModal.vue' import WjxWjxxTmlbDjjgsModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsModal.vue' + import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue'; import {useRouter} from "vue-router"; //当前路由信息 const { currentRoute } = useRouter(); const { query } = unref(currentRoute); - const { rwbh,xqxn } = query;//获取传递参数 + const { rwbh,xqxn,typa } = query;//获取传递参数 const APagination = Pagination; const queryParam = ref({}); @@ -116,8 +123,9 @@ const registerModal = ref(); const WjxWjxxTmlbModalPage = ref(); const WjxWjxxTmlbDjModalPage = ref(); - const WjxWjxxTmlbDjjgModalPage = ref(); - const WjxWjxxTmlbDjjgsModalPage = ref(); + const WjxWjxxTmlbDjjgsModalPage = ref() + const WjxWjxxTmlbDjjgsDcModalPage = ref(); + const XxhbbksListModalPage = ref(); const labelCol = reactive({ xs: { span: 24 }, @@ -144,12 +152,21 @@ registerModal.value.edit(record); } + /** + * 获取选课人数 + */ + function openXkrs(record){ + // console.log(`🚀 ~ openXkrs ~ record:`, record) + XxhbbksListModalPage.value.disableSubmit = true; + XxhbbksListModalPage.value.init(record); + } + /** * 配置 */ function handlePeizhi(record: Recordable) { WjxWjxxTmlbModalPage.value.disableSubmit = false; - WjxWjxxTmlbModalPage.value.edit(record); + WjxWjxxTmlbModalPage.value.edit(record,"6"); } /** @@ -157,31 +174,31 @@ */ function handlePeizhiXq(record: Recordable) { WjxWjxxTmlbDjModalPage.value.disableSubmit = true; - WjxWjxxTmlbDjModalPage.value.edit(record,true); + WjxWjxxTmlbDjModalPage.value.edit(record,true,"6",'ls'); } - /** - * 答卷详情 - */ - function handleDj(record: Recordable) { - WjxWjxxTmlbDjModalPage.value.disableSubmit = false; - WjxWjxxTmlbDjModalPage.value.edit(record,false); - } + // /** + // * 答卷详情 + // */ + // function handleDj(record: Recordable) { + // WjxWjxxTmlbDjModalPage.value.disableSubmit = false; + // WjxWjxxTmlbDjModalPage.value.edit(record,false); + // } - /** - * 答卷详情 - */ - function handleDjjg(record: Recordable) { - WjxWjxxTmlbDjjgModalPage.value.disableSubmit = true; - WjxWjxxTmlbDjjgModalPage.value.edit(record,false); - } + // /** + // * 答卷详情 + // */ + // function handleDjjg(record: Recordable) { + // WjxWjxxTmlbDjjgModalPage.value.disableSubmit = true; + // WjxWjxxTmlbDjjgModalPage.value.edit(record,false); + // } /** * 学生答卷列表 */ - function handleDjjgs(record: Recordable) { + function handleDjjgs(record: Recordable,flag) { WjxWjxxTmlbDjjgsModalPage.value.disableSubmit = true; - WjxWjxxTmlbDjjgsModalPage.value.edit(record,false); + WjxWjxxTmlbDjjgsModalPage.value.edit(record,flag); } /** @@ -196,7 +213,7 @@ * 发布 */ function handleFabu(record: Recordable) { - defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id } }).then(res => { + defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "6" } }).then(res => { total.value = 1; pageNo.value = 0; reload(); @@ -259,6 +276,14 @@ searchQuery(); }); + function classFun(type){ + if(type == '0'){ + return "background: #a7a6a6"; + }else if(type == '1'){ + return "background: #18a689"; + } + } + diff --git a/src/views/kc/wjxCswj/WjxCswjStuList.vue b/src/views/kc/wjxCswj/WjxCswjStuList.vue new file mode 100644 index 0000000..96d6f37 --- /dev/null +++ b/src/views/kc/wjxCswj/WjxCswjStuList.vue @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + 全部 + 待提交 + 已提交 + 已完成 + + + + + + + 查询 + 重置 + + + + + + + + + + + {{getStatus(item.flag)}} + + + {{item.title}} + + + + 时间: + + + 从{{item.startTime}} + 至{{item.endTime}} + + + + + 答卷 + 正在批卷 + 查看答卷 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/kc/wjxCswj/WjxCswjTableList.vue b/src/views/kc/wjxCswj/WjxCswjTableList.vue new file mode 100644 index 0000000..677abd3 --- /dev/null +++ b/src/views/kc/wjxCswj/WjxCswjTableList.vue @@ -0,0 +1,313 @@ + + + + + + + + + + + + + + + 全部 + 未发布 + 已发布 + + + + + + + 查询 + 重置 + 新增 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/kc/wjxDcwj/WjxDcwjList.vue b/src/views/kc/wjxDcwj/WjxDcwjList.vue new file mode 100644 index 0000000..954b6a7 --- /dev/null +++ b/src/views/kc/wjxDcwj/WjxDcwjList.vue @@ -0,0 +1,335 @@ + + + + + + + + + + + + + + + 全部 + 未发布 + 已发布 + + + + + + + 查询 + 重置 + 新增 + + + + + + + + + + + {{item.qpublish =='0'? '待发布':'已发布'}} + + + {{item.title}} + + + + 时间: + + + 从{{item.startTime}} + 至{{item.endTime}} + + + + + + {{item.xqxn}} + {{item.xkrs}}人选课 + + + + + 未提交:{{item.wwcrs}}人 + 已提交:{{item.ywcrs}}人 + + + + 编辑 + 配置 + 发布 + 删除 + 详情 + 配置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/kc/wjxDcwj/WjxDcwjMainList.vue b/src/views/kc/wjxDcwj/WjxDcwjMainList.vue new file mode 100644 index 0000000..bcaf2cb --- /dev/null +++ b/src/views/kc/wjxDcwj/WjxDcwjMainList.vue @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + diff --git a/src/views/kc/wjxDcwj/WjxDcwjStuList.vue b/src/views/kc/wjxDcwj/WjxDcwjStuList.vue new file mode 100644 index 0000000..329dbbc --- /dev/null +++ b/src/views/kc/wjxDcwj/WjxDcwjStuList.vue @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + 全部 + 待提交 + 已提交 + 已完成 + + + + + + + 查询 + 重置 + + + + + + + + + + + {{getStatus(item.flag)}} + + + {{item.title}} + + + + 时间: + + + 从{{item.startTime}} + 至{{item.endTime}} + + + + + 答卷 + 正在批卷 + 查看答卷 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/kc/wjxDcwj/WjxDcwjTableList.vue b/src/views/kc/wjxDcwj/WjxDcwjTableList.vue new file mode 100644 index 0000000..d9f8591 --- /dev/null +++ b/src/views/kc/wjxDcwj/WjxDcwjTableList.vue @@ -0,0 +1,313 @@ + + + + + + + + + + + + + + + 全部 + 未发布 + 已发布 + + + + + + + 查询 + 重置 + 新增 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/kc/wjxWjxx/WjxWjxx.data.ts b/src/views/kc/wjxWjxx/WjxWjxx.data.ts index 02c4f5a..3c9aed2 100644 --- a/src/views/kc/wjxWjxx/WjxWjxx.data.ts +++ b/src/views/kc/wjxWjxx/WjxWjxx.data.ts @@ -4,46 +4,16 @@ import { rules} from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; //列表数据 export const columns: BasicColumn[] = [ - // { - // title: '创建人', - // align: "center", - // dataIndex: 'createBy' - // }, - // { - // title: '创建时间', - // align: "center", - // dataIndex: 'createTime', - // customRender:({text}) =>{ - // return !text?"":(text.length>10?text.substr(0,10):text); - // }, - // }, { - title: '学年学期', + title: '是否发布问卷', align: "center", - dataIndex: 'xnxq' - }, - { - title: '课程名称', - align: "center", - dataIndex: 'kcmc' + dataIndex: 'qpublish_dictText' }, { title: '问卷名称', align: "center", dataIndex: 'title' }, - { - title: '问卷类型', - align: "center", - dataIndex: 'atype', - customRender: ({ text }) => { - let dictMap = { - '1': '调查', - '6': '随堂练', - } - return dictMap[text??'']; - } - }, { title: '开始时间', align: "center", @@ -55,14 +25,24 @@ export const columns: BasicColumn[] = [ dataIndex: 'endTime' }, { - title: '问卷描述', + title: '学期学年', align: "center", - dataIndex: 'content' + dataIndex: 'xqxn' }, { - title: '是否发布问卷', + title: '选课人数', align: "center", - dataIndex: 'qpublish_dictText' + dataIndex: 'xkrs' + }, + { + title: '未提交', + align: "center", + dataIndex: 'wwcrs' + }, + { + title: '已提交', + align: "center", + dataIndex: 'ywcrs' }, ]; diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjForm.vue b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjForm.vue index 8ae993e..5283ee5 100644 --- a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjForm.vue +++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjForm.vue @@ -15,9 +15,9 @@ {{index+1}}、 - 题目分值: {{item.wjScore}} 分 + 题目分值: {{item.wjScore}} 分 - + @@ -34,9 +34,9 @@ {{index+1}}、 - 题目分值: {{item.wjScore}} 分 + 题目分值: {{item.wjScore}} 分 - + @@ -47,6 +47,23 @@ + + + 填空题 + + + {{index+1}}、 + + + 题目分值: {{item.wjScore}} 分 + + + + + + + + 无对应类型 @@ -69,6 +86,7 @@ import { } from '/@/views/kc/wjxWjxxTmlb/WjxWjxxTmlb.api'; const title = ref(''); const mainId = ref(''); +const isShow = ref(false); const disabled = ref(false); const confirmLoading = ref(false); const tiganData = ref([]); @@ -79,29 +97,38 @@ const { createMessage } = useMessage(); const emit = defineEmits(['ok', 'closeLoading']); //初始化 -function edit(record,isDisabled){ +function edit(record,isDisabled,type,flag){ openTime.value = getCurrentTimeFormat(); tiganData.value = []; disabled.value = isDisabled; + if(type == '6'){ + isShow.value = true; + }else if(type == '1'){ + isShow.value = false; + } title.value = record.title; mainId.value = record.id; - defHttp.get({url:'/wjxWjxxTmlb/wjxWjxxTmlb/queryByMainId',params:{id:record.id}}).then(res =>{ - // console.log(`🚀 ~ defHttp.get ~ res:`, res) - var list = res; - for(var i=0;i parseInt(str)); - list[i].itemSelected = numArray; + if(flag == 'ls'){ + defHttp.get({url:'/wjxWjxxTmlb/wjxWjxxTmlb/queryByMainId',params:{id:record.id}}).then(res =>{ + // console.log(`🚀 ~ defHttp.get ~ res:`, res) + let list = res; + for(let i=0;i parseInt(str)); + list[i].itemSelected = numArray; + } } - }else{ - par.itemSelected = null; } - } - tiganData.value = res; - }) + tiganData.value = res; + }) + }else{ + defHttp.get({url:'/wjxWjxxTmlb/wjxWjxxTmlb/queryDjByMainId',params:{id:record.id}}).then(res =>{ + tiganData.value = res; + }) + } } //提交数据 @@ -109,14 +136,22 @@ async function submitForm(){ const data = tiganData.value; // console.log(`🚀 ~ submitForm ~ data:`, data) const values = Object.assign([], data); - for(var i=0;i { - registerForm.value.edit(record,isDisabled); + registerForm.value.edit(record,isDisabled,type,flag); }); } diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgForm.vue b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgForm.vue index 11a9654..1454f96 100644 --- a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgForm.vue +++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgForm.vue @@ -54,6 +54,24 @@ + + + 填空题 + + + {{index+1}}、 + + + 题目分值: {{item.wjScore}} 分 + 所得分值: {{item.itemScore}} 分 + + + + + + + + 无对应类型 @@ -84,10 +102,10 @@ const { createMessage } = useMessage(); const emit = defineEmits(['register', 'success']); //初始化 -function edit(record){ +function edit(id){ tiganData.value = []; - mainId.value = record.id; - defHttp.get({url:'/wjxDjxx/queryByMainId',params:{id:record.id}}).then(res =>{ + mainId.value = id; + defHttp.get({url:'/wjxDjxx/queryByMainId',params:{id:id}}).then(res =>{ // console.log(`🚀 ~ defHttp.get ~ res:`, res) let djxx = res; let list = djxx.wjxDjxxTmxxList; diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgModal.vue b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgModal.vue index de78e19..f54211a 100644 --- a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgModal.vue +++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgModal.vue @@ -19,11 +19,11 @@ * 编辑 * @param record */ - function edit(record) { + function edit(id) { title.value = disableSubmit.value ? '答卷结果' : '编辑'; visible.value = true; nextTick(() => { - registerForm.value.edit(record); + registerForm.value.edit(id); }); } diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgs.data.ts b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgs.data.ts index bfb9a6c..72d5476 100644 --- a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgs.data.ts +++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgs.data.ts @@ -10,6 +10,12 @@ export const columns: BasicColumn[] = [ dataIndex: 'title', width: 200 }, + { + title: '学号', + align: "center", + dataIndex: 'userId', + width: 100 + }, { title: '学生', align: "center", @@ -78,6 +84,75 @@ export const columns: BasicColumn[] = [ }, ]; +export const dccolumns: BasicColumn[] = [ + { + title: '问卷名称', + align: "center", + dataIndex: 'title', + width: 200 + }, + { + title: '学号', + align: "center", + dataIndex: 'userId', + width: 100 + }, + { + title: '学生', + align: "center", + dataIndex: 'userName', + width: 100 + }, + { + title: '答卷时间', + align: "center", + dataIndex: 'openTime', + width: 150 + }, + { + title: '交卷时间', + align: "center", + dataIndex: 'commitTime', + width: 150 + }, + { + title: '答卷用时', + align: "center", + dataIndex: 'answerSfm', + width: 80 + }, + { + title: '学期学年', + align: "center", + dataIndex: 'xqxn', + width: 80 + }, + { + title: '课程名称', + align: "center", + dataIndex: 'kcmc', + width: 200 + }, + { + title: '开始时间', + align: "center", + dataIndex: 'startTime', + width: 150 + }, + { + title: '结束时间', + align: "center", + dataIndex: 'endTime', + width: 150 + }, + { + title: '问卷描述', + align: "center", + dataIndex: 'content', + width: 200 + }, +]; + //查询数据 export const searchFormSchema: FormSchema[] = [ ]; diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsDcList.vue b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsDcList.vue new file mode 100644 index 0000000..6007dd2 --- /dev/null +++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsDcList.vue @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsDcModal.vue b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsDcModal.vue new file mode 100644 index 0000000..531a213 --- /dev/null +++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsDcModal.vue @@ -0,0 +1,67 @@ + + + + + + + + + diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsList.vue b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsList.vue index 9b632ba..231d0ca 100644 --- a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsList.vue +++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsList.vue @@ -3,7 +3,7 @@ - + @@ -22,6 +22,7 @@ import {ref, reactive, defineExpose, unref} from 'vue'; import WjxWjxxTmlbDjjgModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgModal.vue' const queryParam = ref({}); + const isFinished = ref(''); const toggleSearchStatus = ref(false); const WjxWjxxTmlbDjjgModalPage = ref(); //注册table数据 @@ -57,7 +58,7 @@ import {ref, reactive, defineExpose, unref} from 'vue'; */ function handlePeizhiDjjg(record: Recordable) { WjxWjxxTmlbDjjgModalPage.value.disableSubmit = true; - WjxWjxxTmlbDjjgModalPage.value.edit(record,false); + WjxWjxxTmlbDjjgModalPage.value.edit(record.id,false); } /** @@ -72,8 +73,11 @@ import {ref, reactive, defineExpose, unref} from 'vue'; ] } - function init(record){ + function init(record,flag){ queryParam.value.id = record.id; + queryParam.value.rwbh = record.rwbh; + queryParam.value.isFinished = flag; + isFinished.value = flag; reload(); } diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsModal.vue b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsModal.vue index cccd64a..5f3db4b 100644 --- a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsModal.vue +++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsModal.vue @@ -19,11 +19,15 @@ * 编辑 * @param record */ - function edit(record) { - title.value = disableSubmit.value ? '学生答卷结果列表' : '编辑'; + function edit(record,flag) { + if(flag == '1'){ + title.value = '已完成答卷学生列表'; + }else{ + title.value = '已完成答卷学生列表'; + } visible.value = true; nextTick(() => { - registerForm.value.init(record); + registerForm.value.init(record,flag); }); } diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbForm.vue b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbForm.vue index bf961c8..facc6b8 100644 --- a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbForm.vue +++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbForm.vue @@ -6,6 +6,7 @@ 单选 多选 + 填空 @@ -17,10 +18,10 @@ - {{index+1}}、 + {{index+1}}、 - + 5 4 @@ -31,7 +32,12 @@ - + + + 注:选中即为正确答案 + + + @@ -45,10 +51,10 @@ - {{index+1}}、 + {{index+1}}、 - + 5 4 @@ -59,7 +65,12 @@ - + + + 注:选中即为正确答案 + + + @@ -70,6 +81,31 @@ + + + + + {{index+1}}、 + + + + + 5 + 4 + 3 + 2 + 1 + + + + + + + + + + + 无对应类型 @@ -87,6 +123,7 @@ import { defHttp } from '/@/utils/http/axios'; import { queryWjxWjxxTmxxListByMainId, queryDataById, saveOrUpdate } from '/@/views/kc/wjxWjxxTmlb/WjxWjxxTmlb.api'; const title = ref(''); const mainId = ref(''); +const isShow = ref(false); const confirmLoading = ref(false); const tiganData = ref([]); const tmxxPar = ref({}); @@ -97,30 +134,40 @@ const emit = defineEmits(['register', 'success']); function addTigan(type){ var list = tiganData.value; if(type==3){ - var params = { + let params = { wjType:parseInt(type), wjIndex:list.length+1, mainId:mainId, wjTitle:null, wjScore:null, - itemSelected:'1', + // itemSelected:'1', wjxWjxxTmxxList:[{itemTitle:null,itemIndex:'1'},{itemTitle:null,itemIndex:'2'}], } list.push(params); tiganData.value = [...list]; }else if(type==4){ - var params = { + let params = { wjType:parseInt(type), wjIndex:list.length+1, mainId:mainId, wjTitle:null, wjScore:null, - itemSelected:['1'], + // itemSelected:['1'], wjxWjxxTmxxList:[{itemTitle:null,itemIndex:'1'},{itemTitle:null,itemIndex:'2'}], } list.push(params); tiganData.value = [...list]; - + }else if(type==5){ + let params = { + wjType:parseInt(type), + wjIndex:list.length+1, + mainId:mainId, + wjTitle:null, + wjScore:null, + wjAnswer:null, + } + list.push(params); + tiganData.value = [...list]; } } //添加选项 @@ -148,10 +195,15 @@ function getType(value,type){ } } //初始化 -function edit(record){ +function edit(record,type){ tiganData.value = []; title.value = record.title; mainId.value = record.id; + if(type == '6'){ + isShow.value = true; + }else if(type == '1'){ + isShow.value = false; + } defHttp.get({url:'/wjxWjxxTmlb/wjxWjxxTmlb/queryByMainId',params:{id:record.id}}).then(res =>{ // console.log(`🚀 ~ defHttp.get ~ res:`, res) var list = res; @@ -172,15 +224,18 @@ async function submitForm(){ const data = tiganData.value; // console.log(`🚀 ~ submitForm ~ data:`, data) const values = Object.assign([], data); - for(var i=0;i0){ + for(let i=0;i import { ref, nextTick, defineExpose } from 'vue'; import WjxWjxxTmlbForm from './WjxWjxxTmlbForm.vue' - + const title = ref(''); const width = ref('100%'); const visible = ref(false); @@ -15,19 +15,19 @@ const registerForm = ref(); const emit = defineEmits(['register', 'success']); - + /** * 编辑 * @param record */ - function edit(record) { + function edit(record,type) { title.value = disableSubmit.value ? '详情' : '编辑'; visible.value = true; nextTick(() => { - registerForm.value.edit(record); + registerForm.value.edit(record,type); }); } - + /** * 确定按钮点击事件 */ diff --git a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue index 3c9d45c..d292ad7 100644 --- a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue +++ b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue @@ -20,7 +20,7 @@ 教学工具 - 问卷调查 + 问卷调查 到课率识别 @@ -65,12 +65,13 @@ function getGzt(zytype){ - console.log(`🚀 ~ getGzt ~ type:`, zytype) + var param = {rwbh,xqxn,type}; + // console.log(`🚀 ~ getGzt ~ type:`, zytype) var href = "/zy/dqkcDqzy"; if(zytype=='dqzy'){ href = "/zy/dqkcDqzy"; - }else if(zytype=='dqwj'){ - href = "/zy/dqkcWenjuan"; + }else if(zytype=='dcwj'){ + href = "/zy/dcwjWenjuan"; }else if(zytype=='lszy'){ href = "/zy/dqkcLszy"; }else if(zytype=='gonggao'){ @@ -78,11 +79,11 @@ }else if(zytype=='kcjs'){ href = "/zy/dqkcDetail"; }else if(zytype=='kcjc'){ - href = "/zy/dqkcWenjuan"; + href = "/zy/ceshiWenjuan"; }else if(zytype=='gongju'){ href = "/zy/dqkcGongju"; } - console.log('href---->',href); + router.push({path:href,query: {rwbh,xqxn,type}}); } diff --git a/src/views/site/studentWdkc/studentMenu.vue b/src/views/site/studentWdkc/studentMenu.vue index 1ed3e90..9faac68 100644 --- a/src/views/site/studentWdkc/studentMenu.vue +++ b/src/views/site/studentWdkc/studentMenu.vue @@ -16,15 +16,15 @@ 测验/作业 课程作业 - 课程测验 + 课程测验 - 问卷调查 + 问卷调查 - - + + --> @@ -42,7 +42,7 @@ import headerPage from '/@/views/site/common/header.vue'; import footerPage from '/@/views/site/common/footer.vue'; import dqxqkc from '/@/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue'; - + const maxClassName = ref({}); const selectedKeys = ref([]); //当前路由信息 @@ -50,8 +50,8 @@ const { query } = unref(currentRoute); const { rwbh,xqxn,type } = query;//获取传递参数 let router = useRouter(); - - + + function getGzt(zytype){ console.log(`🚀 ~ getGzt ~ type:`, zytype) var href = ""; @@ -61,6 +61,11 @@ // else if(zytype=='lszy'){ // href = "/stuzy/studentLszy"; // } + else if(zytype=='dcwj'){ + href = "/stuzy/stuDcwjWenjuan"; + }else if(zytype=='kcjc'){ + href = "/stuzy/stuCeshiWenjuan"; + } router.push({path:href,query: {rwbh,xqxn,type}}); } @@ -68,7 +73,7 @@ onMounted(() => { console.log('rwbh:',rwbh); }); - + \ No newline at end of file +
单选
多选
填空