修改bug
This commit is contained in:
parent
9b8915a803
commit
90a0f9581b
|
@ -61,10 +61,10 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" style="text-align:center;margin-top:8px;">
|
<a-col :span="24" style="text-align:center;margin-top:8px;">
|
||||||
<a-button type="primary" @click="handleEdit(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">设置试卷</a-button>
|
<a-button type="primary" @click="handleEdit(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">设置试卷</a-button>
|
||||||
<a-button type="primary" @click="handlePeizhi(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">编辑题目</a-button>
|
|
||||||
<a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">预览题目</a-button>
|
|
||||||
<a-button type="primary" @click="handleFabu(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">发布试卷</a-button>
|
<a-button type="primary" @click="handleFabu(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">发布试卷</a-button>
|
||||||
<a-button type="primary" @click="handleDelete(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">删除试卷</a-button>
|
<a-button type="primary" @click="handleDelete(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">删除试卷</a-button>
|
||||||
|
<a-button type="primary" @click="handlePeizhi(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">编辑题目</a-button>
|
||||||
|
<a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==0">预览题目</a-button>
|
||||||
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">试卷详情</a-button>
|
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">试卷详情</a-button>
|
||||||
<a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">预览题目</a-button>
|
<a-button type="primary" @click="handlePeizhiXq(item)" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">预览题目</a-button>
|
||||||
<a-button type="primary" @click="handleDjjgs(item,'')" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">测验结果</a-button>
|
<a-button type="primary" @click="handleDjjgs(item,'')" style="margin-left:5px;margin-bottom:5px;padding: 0px 4px;background:rgb(28, 132, 198);" v-if="item.qpublish==1||item.qpublish==2">测验结果</a-button>
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
<WjxWjxxTmlbDjjgModal ref="WjxWjxxTmlbDjjgModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgModal>
|
<WjxWjxxTmlbDjjgModal ref="WjxWjxxTmlbDjjgModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgModal>
|
||||||
<WjxWjxxTmlbDjjgsDcModal ref="WjxWjxxTmlbDjjgsDcModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgsDcModal>
|
<WjxWjxxTmlbDjjgsDcModal ref="WjxWjxxTmlbDjjgsDcModalPage" @success="handleSuccess"></WjxWjxxTmlbDjjgsDcModal>
|
||||||
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
||||||
<TikuListModal ref="TikuListModalPage"></TikuListModal>
|
<WjdcTikuListModal ref="TikuListModalPage"></WjdcTikuListModal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
import {useRouter} from "vue-router";
|
import {useRouter} from "vue-router";
|
||||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||||
import {useMessage} from "/@/hooks/web/useMessage";
|
import {useMessage} from "/@/hooks/web/useMessage";
|
||||||
import TikuListModal from '/@/views/kc/wjxWjxxTmlb/TikuListModal.vue';
|
import WjdcTikuListModal from '/@/views/kc/wjxWjxxTmlb/WjdcTikuListModal.vue';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
//当前路由信息
|
//当前路由信息
|
||||||
|
|
|
@ -37,6 +37,34 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'wjSytype_dictText'
|
dataIndex: 'wjSytype_dictText'
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
export const wjdccolumns: BasicColumn[] = [
|
||||||
|
{
|
||||||
|
title: '题目类型',
|
||||||
|
align:"center",
|
||||||
|
dataIndex: 'wjType',
|
||||||
|
customRender:({text}) =>{
|
||||||
|
var rt = "";
|
||||||
|
if(text == '3'){
|
||||||
|
rt = "单选";
|
||||||
|
}else if(text == '4'){
|
||||||
|
rt = "多选";
|
||||||
|
}else if(text == '5'){
|
||||||
|
rt = "填空";
|
||||||
|
}
|
||||||
|
return rt;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '问题标题',
|
||||||
|
align:"center",
|
||||||
|
dataIndex: 'wjTitle'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '是否公有',
|
||||||
|
align:"center",
|
||||||
|
dataIndex: 'wjSytype_dictText'
|
||||||
|
},
|
||||||
|
];
|
||||||
export const columnsYytk: BasicColumn[] = [
|
export const columnsYytk: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
title: '题目类型',
|
title: '题目类型',
|
||||||
|
|
|
@ -73,11 +73,9 @@
|
||||||
wjTitle: '',
|
wjTitle: '',
|
||||||
wjScore: '',
|
wjScore: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`🚀 ~ setup ~ formData.wjLeixing:`, formData.wjLeixing)
|
|
||||||
const wjxWjxxTmxxTable = reactive<Record<string, any>>({
|
const wjxWjxxTmxxTable = reactive<Record<string, any>>({
|
||||||
loading: false,
|
loading: false,
|
||||||
columns: formData.wjLeixing=='1'?wjxWjdcColumns:wjxWjxxTmxxColumns,
|
columns: wjxWjxxTmxxColumns,
|
||||||
dataSource: []
|
dataSource: []
|
||||||
});
|
});
|
||||||
//表单验证
|
//表单验证
|
||||||
|
|
|
@ -22,9 +22,12 @@
|
||||||
</div> -->
|
</div> -->
|
||||||
<!--引用表格-->
|
<!--引用表格-->
|
||||||
<BasicTable @register="registerTable" style="margin-top: 20px;">
|
<BasicTable @register="registerTable" style="margin-top: 20px;">
|
||||||
|
<template #tableTitle>
|
||||||
|
<span>检测时间提醒: 非高峰期预计30分钟内返回检测结果,高峰期预计时间会更长,请您耐心等待!</span>
|
||||||
|
</template>
|
||||||
<!--操作栏-->
|
<!--操作栏-->
|
||||||
<template #action="{ record }">
|
<template #action="{ record }">
|
||||||
<TableAction :actions="getTableAction(record)" />
|
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>
|
||||||
</template>
|
</template>
|
||||||
<!--字段回显插槽-->
|
<!--字段回显插槽-->
|
||||||
<template #htmlSlot="{text}">
|
<template #htmlSlot="{text}">
|
||||||
|
@ -240,10 +243,10 @@
|
||||||
if(record.filePath){
|
if(record.filePath){
|
||||||
if(record.scoreFabu=='1'){
|
if(record.scoreFabu=='1'){
|
||||||
var list = [
|
var list = [
|
||||||
{
|
// {
|
||||||
label: '详情',
|
// label: '详情',
|
||||||
onClick: handleDetail.bind(null, record),
|
// onClick: handleDetail.bind(null, record),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
label: '设置样本',
|
label: '设置样本',
|
||||||
onClick: handleSzyb.bind(null, record),
|
onClick: handleSzyb.bind(null, record),
|
||||||
|
@ -272,10 +275,10 @@
|
||||||
label: '发布评分',
|
label: '发布评分',
|
||||||
onClick: handleScoreFabu.bind(null, record),
|
onClick: handleScoreFabu.bind(null, record),
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: '详情',
|
// label: '详情',
|
||||||
onClick: handleDetail.bind(null, record),
|
// onClick: handleDetail.bind(null, record),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
label: '下载',
|
label: '下载',
|
||||||
onClick: handleDown.bind(null, record),
|
onClick: handleDown.bind(null, record),
|
||||||
|
@ -288,11 +291,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
var list = [
|
// var list = [
|
||||||
{
|
// {
|
||||||
label: '详情',
|
// label: '详情',
|
||||||
onClick: handleDetail.bind(null, record),
|
// onClick: handleDetail.bind(null, record),
|
||||||
},];
|
// },];
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,15 +307,29 @@
|
||||||
function getDropDownAction(record) {
|
function getDropDownAction(record) {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
label: '详情',
|
label: '外网结果下载',
|
||||||
onClick: handleDetail.bind(null, record),
|
onClick: handleDetail.bind(null, record),
|
||||||
}, {
|
},
|
||||||
label: '删除',
|
{
|
||||||
popConfirm: {
|
label: '外网结果预览',
|
||||||
title: '是否确认删除',
|
onClick: handleDetail.bind(null, record),
|
||||||
confirm: handleDelete.bind(null, record),
|
},
|
||||||
}
|
{
|
||||||
}
|
label: '内网结果下载',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '内网结果预览',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'aigc结果下载',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'aigc结果预览',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,13 +99,13 @@ const { createConfirm } = useMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
createConfirm({
|
// createConfirm({
|
||||||
iconType: 'warning',
|
// iconType: 'warning',
|
||||||
title: '确认提交',
|
// title: '确认提交',
|
||||||
content: '作业上传后,不可修改,请仔细检查后提交',
|
// content: '作业上传后,不可修改,请仔细检查后提交',
|
||||||
okText: '确认',
|
// okText: '确认',
|
||||||
cancelText: '取消',
|
// cancelText: '取消',
|
||||||
onOk: () => {
|
// onOk: () => {
|
||||||
editCdlx(model, isUpdate.value)
|
editCdlx(model, isUpdate.value)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
@ -118,8 +118,8 @@ const { createConfirm } = useMessage();
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
confirmLoading.value = false;
|
confirmLoading.value = false;
|
||||||
});
|
});
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ ZyJxdgList<template>
|
||||||
* @param record
|
* @param record
|
||||||
*/
|
*/
|
||||||
function init(record) {
|
function init(record) {
|
||||||
title.value = '课程简介引用';
|
title.value = '课程简介引用(说明:可引用以往学年学期的课程简介)';
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
registerForm.value.init(record);
|
registerForm.value.init(record);
|
||||||
|
|
Loading…
Reference in New Issue