添加简答题及判断题
This commit is contained in:
parent
2f806eac97
commit
d0bfba96ae
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div >
|
||||||
<div class="jeecg-basic-table-form-container">
|
<div class="jeecg-basic-table-form-container">
|
||||||
<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">
|
||||||
|
@ -37,6 +37,7 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
|
<a-spin :spinning="loadingCeshi">
|
||||||
<!--引用表格-->
|
<!--引用表格-->
|
||||||
<BasicTable @register="registerTable">
|
<BasicTable @register="registerTable">
|
||||||
<!--操作栏-->
|
<!--操作栏-->
|
||||||
|
@ -44,6 +45,7 @@
|
||||||
<TableAction :actions="getTableAction(record)" />
|
<TableAction :actions="getTableAction(record)" />
|
||||||
</template>
|
</template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
|
</a-spin>
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<WjxWjxxTmlbDjjgModal ref="WjxWjxxTmlbDjjgModalPage" @success="reload"></WjxWjxxTmlbDjjgModal>
|
<WjxWjxxTmlbDjjgModal ref="WjxWjxxTmlbDjjgModalPage" @success="reload"></WjxWjxxTmlbDjjgModal>
|
||||||
<ZgtpfModal ref="ZgtpfModalPage" @success="reload"></ZgtpfModal>
|
<ZgtpfModal ref="ZgtpfModalPage" @success="reload"></ZgtpfModal>
|
||||||
|
@ -66,6 +68,7 @@ const toggleSearchStatus = ref<boolean>(false);
|
||||||
const WjxWjxxTmlbDjjgModalPage = ref();
|
const WjxWjxxTmlbDjjgModalPage = ref();
|
||||||
const ZgtpfModalPage = ref();
|
const ZgtpfModalPage = ref();
|
||||||
const sjxxInfo = ref<any>({});
|
const sjxxInfo = ref<any>({});
|
||||||
|
const loadingCeshi = ref<boolean>(false);
|
||||||
//注册table数据
|
//注册table数据
|
||||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
tableProps: {
|
tableProps: {
|
||||||
|
@ -124,12 +127,15 @@ function handleZgtpf() {
|
||||||
|
|
||||||
function handleHqjg(record){
|
function handleHqjg(record){
|
||||||
console.log(record);
|
console.log(record);
|
||||||
defHttp.post({url:'/wjxDjxx/updateDjjg',params:record}).then(res=>{
|
// defHttp.post({url:'/wjxDjxx/updateDjjg',params:record}).then(res=>{
|
||||||
console.log('-->',res)
|
|
||||||
})
|
|
||||||
// defHttp.post({url:'/wjxDjxx/getDjjg',params:record}).then(res=>{
|
|
||||||
// console.log('-->',res)
|
// console.log('-->',res)
|
||||||
// })
|
// })
|
||||||
|
loadingCeshi.value = true;
|
||||||
|
defHttp.post({url:'/wjxDjxx/getDjjg',params:record}).then(res=>{
|
||||||
|
console.log('-->',res)
|
||||||
|
loadingCeshi.value = false;
|
||||||
|
reload();
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -142,10 +148,11 @@ function getTableAction(record) {
|
||||||
label: '答卷结果',
|
label: '答卷结果',
|
||||||
onClick: handlePeizhiDjjg.bind(null, record),
|
onClick: handlePeizhiDjjg.bind(null, record),
|
||||||
},
|
},
|
||||||
//{
|
{
|
||||||
// label: '获取结果',
|
label: '获取结果',
|
||||||
// onClick: handleHqjg.bind(null, record),
|
onClick: handleHqjg.bind(null, record),
|
||||||
//},
|
ifShow: record.answerSeconds == 0,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '主观题评分',
|
label: '主观题评分',
|
||||||
onClick: handleZgypf.bind(null, record),
|
onClick: handleZgypf.bind(null, record),
|
||||||
|
|
|
@ -309,19 +309,26 @@ function edit(record, isDisabled, type, flag) {
|
||||||
async function submitForm() {
|
async function submitForm() {
|
||||||
const data = tiganData.value;
|
const data = tiganData.value;
|
||||||
const values = Object.assign([], data);
|
const values = Object.assign([], data);
|
||||||
|
console.log("🚀 ~ submitForm ~ values:", values)
|
||||||
for (let i = 0; i < values.length; i++) {
|
for (let i = 0; i < values.length; i++) {
|
||||||
let param = values[i];
|
let param = values[i];
|
||||||
if (param.wjType == 3 || param.wjType == 4) {
|
if (param.wjType == 3 || param.wjType == 4) {
|
||||||
if (param.itemSelected == null) {
|
if (param.itemSelected == null) {
|
||||||
emit('closeLoading');
|
emit('closeLoading');
|
||||||
createMessage.warning('有题目没有作答,请检查试卷,完成所有作答!');
|
createMessage.warning('第'+(i+1)+'题没有作答,请检查试卷,完成所有作答!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
values[i].itemSelected = param.itemSelected + '';
|
values[i].itemSelected = param.itemSelected + '';
|
||||||
} else if (param.wjType == 5) {
|
} else if (param.wjType == 5) {
|
||||||
if (param.wjAnswer == null || param.wjAnswer == '') {
|
if (param.wjAnswer == null || param.wjAnswer == '') {
|
||||||
emit('closeLoading');
|
emit('closeLoading');
|
||||||
createMessage.warning('有题目没有作答,请检查试卷,完成所有作答!');
|
createMessage.warning('第'+(i+1)+'题没有作答,请检查试卷,完成所有作答!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else if (param.wjType == 8) {
|
||||||
|
if (param.wjAnswer == null || param.wjAnswer == '') {
|
||||||
|
emit('closeLoading');
|
||||||
|
createMessage.warning('第'+(i+1)+'题没有作答,请检查试卷,完成所有作答!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,32 +220,28 @@ async function submitForm() {
|
||||||
var list = tiganData.value;
|
var list = tiganData.value;
|
||||||
console.log('👩🎤', list);
|
console.log('👩🎤', list);
|
||||||
for (var i = 0; i < list.length; i++) {
|
for (var i = 0; i < list.length; i++) {
|
||||||
if (!(list[i].itemScore+"")) {
|
if (!(list[i].itemScore+"")||(list[i].itemScore+"")=='null'||(list[i].itemScore+"")==null) {
|
||||||
console.log("🚀 ~ submitForm ~ list[i].itemScore:", list[i].itemScore+"")
|
|
||||||
createMessage.warning('第【'+(i+1)+'】题您未填写评分,请填写评分!');
|
createMessage.warning('第【'+(i+1)+'】题您未填写评分,请填写评分!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// console.log(list);
|
|
||||||
console.log("🚀 ~ submitForm ~ list:", list)
|
console.log("🚀 ~ submitForm ~ list:", list)
|
||||||
defHttp.post({ url: '/wjxDjxx/editSdpf', params: list }).then((res) => {
|
defHttp.post({ url: '/wjxDjxx/editSdpf', params: list }).then((res) => {
|
||||||
console.log('😕', res);
|
console.log('😕', res);
|
||||||
// createMessage.success('保存成功');
|
|
||||||
emit('ok');
|
emit('ok');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
async function submitNextForm() {
|
async function submitNextForm() {
|
||||||
var list = tiganData.value;
|
var list = tiganData.value;
|
||||||
console.log('👩🎤', list);
|
console.log("🚀 ~ submitNextForm ~ list:", list)
|
||||||
for (var i = 0; i < list.length; i++) {
|
for (var i = 0; i < list.length; i++) {
|
||||||
if (!(list[i].itemScore+"")) {
|
if (!(list[i].itemScore+"")||(list[i].itemScore+"")=='null'||(list[i].itemScore+"")==null) {
|
||||||
createMessage.warning('第【'+(i+1)+'】题您未填写评分,请填写评分!');
|
createMessage.warning('第【'+(i+1)+'】题您未填写评分,请填写评分!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
defHttp.post({ url: '/wjxDjxx/editSdpf', params: list }).then((res) => {
|
defHttp.post({ url: '/wjxDjxx/editSdpf', params: list }).then((res) => {
|
||||||
console.log('😕', res);
|
console.log('😕', res);
|
||||||
// createMessage.success('保存成功');
|
|
||||||
edit({ vid: infoData.value.vid });
|
edit({ vid: infoData.value.vid });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
<span style="margin-left:15px;">
|
<span style="margin-left:15px;">
|
||||||
<a-tooltip placement="topRight">
|
<a-tooltip placement="topRight">
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>平台分别在三个时间节点(上课后10分钟,课中50分钟,下课前10分钟)抓取学生全景图片进行AI人流量识别,当前显示的人数为最近一个时间的人数识别</span>
|
<span>平台分别在三个时间节点(上课后10分钟,课中50分钟,下课前10分钟)抓取学生全景图片进行AI人流量识别,当前显示的人数为最近一个时间的人数识别,目前部分教室摄像头拍摄画面广角待更新,AI识别出勤人数仅供参考</span>
|
||||||
</template>
|
</template>
|
||||||
<!-- <Icon icon="ant-design:question-circle-outlined" /> -->
|
<!-- <Icon icon="ant-design:question-circle-outlined" /> -->
|
||||||
<span class="helpClass">?</span>
|
<span class="helpClass">?</span>
|
||||||
|
|
|
@ -49,10 +49,10 @@
|
||||||
<BlockOutlined />
|
<BlockOutlined />
|
||||||
<span>课程资源</span>
|
<span>课程资源</span>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="sub7" @click="getGzt('khcl')">
|
<!-- <a-menu-item key="sub7" @click="getGzt('khcl')">
|
||||||
<BlockOutlined />
|
<BlockOutlined />
|
||||||
<span>上传考核材料</span>
|
<span>上传考核材料</span>
|
||||||
</a-menu-item>
|
</a-menu-item> -->
|
||||||
<!-- <a-menu-item key="sub6">
|
<!-- <a-menu-item key="sub6">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<BlockOutlined />
|
<BlockOutlined />
|
||||||
|
|
Loading…
Reference in New Issue