课程考核材料调整

This commit is contained in:
曹磊 2024-09-06 21:11:46 +08:00
parent d2beb7ad3d
commit bb6d639038
2 changed files with 182 additions and 58 deletions

View File

@ -53,53 +53,178 @@ export const columns: BasicColumn[] = [
{ {
title: '平时成绩1', title: '平时成绩1',
align: "center", align: "center",
dataIndex: 'cj1' dataIndex: 'cj1',
children: [
{
title: '成绩类型',
dataIndex: 'cj1mc',
width: 100,
customRender:({text}) =>{
text = !text ? "" : (text.length > 0 ? text.substr(0,text.indexOf("[")) : "");
return text;
},
},
{
title: '分数',
dataIndex: 'cj1',
width: 100,
},
{
title: '占比',
dataIndex: 'cj1mc',
width: 100,
customRender:({text}) =>{
text = !text ? "" : (text.length > 0 ? text.substr(text.indexOf("["),text.indexOf("]")) : "");
return text;
}
},
],
}, },
{ {
title: '平时成绩2', title: '平时成绩2',
align: "center", align: "center",
dataIndex: 'cj2' dataIndex: 'cj2',
children: [
{
title: '成绩类型',
dataIndex: 'cj2mc',
width: 100,
customRender:({text}) =>{
text = !text ? "" : (text.length > 0 ? text.substr(0,text.indexOf("[")) : "");
return text;
},
},
{
title: '分数',
dataIndex: 'cj2',
width: 100,
},
{
title: '占比',
dataIndex: 'cj2mc',
width: 100,
customRender:({text}) =>{
text = !text ? "" : (text.length > 0 ? text.substr(text.indexOf("["),text.indexOf("]")) : "");
return text;
}
},
],
}, },
{ {
title: '平时成绩3', title: '平时成绩3',
align: "center", align: "center",
dataIndex: 'cj3' dataIndex: 'cj3',
children: [
{
title: '成绩类型',
dataIndex: 'cj3mc',
width: 100,
customRender:({text}) =>{
text = !text ? "" : (text.length > 0 ? text.substr(0,text.indexOf("[")) : "");
return text;
},
},
{
title: '分数',
dataIndex: 'cj3',
width: 100,
},
{
title: '占比',
dataIndex: 'cj3mc',
width: 100,
customRender:({text}) =>{
text = !text ? "" : (text.length > 0 ? text.substr(text.indexOf("["),text.indexOf("]")) : "");
return text;
}
},
],
}, },
{ {
title: '期中成绩', title: '期中成绩',
align: "center", align: "center",
dataIndex: 'cj4' dataIndex: 'cj4',
children: [
{
title: '成绩类型',
dataIndex: 'cj5mc',
width: 100,
customRender:({text}) =>{
text = !text ? "" : (text.length > 0 ? text.substr(0,text.indexOf("[")) : "");
return text;
},
},
{
title: '分数',
dataIndex: 'cj4',
width: 100,
},
{
title: '占比',
dataIndex: 'cj4mc',
width: 100,
customRender:({text}) =>{
text = !text ? "" : (text.length > 0 ? text.substr(text.indexOf("["),text.indexOf("]")) : "");
return text;
}
},
],
}, },
{ {
title: '期末成绩', title: '期末成绩',
align: "center", align: "center",
dataIndex: 'cj5' dataIndex: 'cj5',
}, children: [
{ {
title: '平时成绩1', title: '成绩类型',
align: "center", dataIndex: 'cj5mc',
dataIndex: 'cj1mc' width: 100,
}, customRender:({text}) =>{
{ text = !text ? "" : (text.length > 0 ? text.substr(0,text.indexOf("[")) : "");
title: '平时成绩2', return text;
align: "center", },
dataIndex: 'cj2mc' },
}, {
{ title: '分数',
title: '平时成绩3', dataIndex: 'cj5',
align: "center", width: 100,
dataIndex: 'cj3mc' },
}, {
{ title: '占比',
title: '期中成绩', dataIndex: 'cj4mc',
align: "center", width: 100,
dataIndex: 'cj4mc' customRender:({text}) =>{
}, text = !text ? "" : (text.length > 0 ? text.substr(text.indexOf("["),text.indexOf("]")) : "");
{ return text;
title: '期末成绩', }
align: "center", },
dataIndex: 'cj5mc' ],
}, },
// {
// title: '平时成绩1',
// align: "center",
// dataIndex: 'cj1mc'
// },
// {
// title: '平时成绩2',
// align: "center",
// dataIndex: 'cj2mc'
// },
// {
// title: '平时成绩3',
// align: "center",
// dataIndex: 'cj3mc'
// },
// {
// title: '期中成绩',
// align: "center",
// dataIndex: 'cj4mc'
// },
// {
// title: '期末成绩',
// align: "center",
// dataIndex: 'cj5mc'
// },
{ {
title: '总成绩', title: '总成绩',
align: "center", align: "center",

View File

@ -18,31 +18,30 @@
<div v-if="jxrwInfo.value"> <div v-if="jxrwInfo.value">
<div>概要信息</div> <div>概要信息</div>
<a-row> <a-row>
<a-col :span="6"> <a-col :span="5">
<span style="margin-left: 15px;">开课单位</span> <span>{{jxrwInfo?.value.kkyxmc}}</span> <span style="margin-left: 15px;">开课单位</span> <span>{{jxrwInfo?.value.kkyxmc}}</span>
</a-col> </a-col>
<a-col :span="6"> <a-col :span="5">
<span style="margin-left: 15px;">课程类别</span> <span>{{jxrwInfo?.value.kclb}}</span> <span style="margin-left: 15px;">课程类别</span> <span>{{jxrwInfo?.value.kclb}}</span>
</a-col> </a-col>
<a-col :span="6"> <a-col :span="5">
<span style="margin-left: 15px;">课程名称</span> <span>{{jxrwInfo?.value.kcmc}}</span> <span style="margin-left: 15px;">课程名称</span> <span>{{jxrwInfo?.value.kcmc}}</span>
</a-col> </a-col>
<a-col :span="6"> <a-col :span="5">
<span style="margin-left: 15px;">课程负责人</span> <span>{{jxrwInfo?.value.teaxm}}</span> <span style="margin-left: 15px;">课程负责人</span> <span>{{jxrwInfo?.value.teaxm}}</span>
</a-col> </a-col>
<a-col :span="4">
<a-col :span="6">
<span style="margin-left: 15px;">成绩方式</span> <span></span>
</a-col>
<a-col :span="6">
<span style="margin-left: 15px;">修读方式</span> <span></span>
</a-col>
<a-col :span="6">
<span style="margin-left: 15px;">考试性质</span> <span>{{jxrwInfo?.value.khfsmc}}</span> <span style="margin-left: 15px;">考试性质</span> <span>{{jxrwInfo?.value.khfsmc}}</span>
</a-col> </a-col>
<a-col :span="6"> <!-- <a-col :span="6">-->
<span style="margin-left: 15px;">任课教师职称</span> <span>{{jxrwInfo?.value.teaxm.substring(jxrwInfo?.value.teaxm.indexOf("[")+1,jxrwInfo?.value.teaxm.indexOf("]"))}}</span> <!-- <span style="margin-left: 15px;">成绩方式</span> <span></span>-->
</a-col> <!-- </a-col>-->
<!-- <a-col :span="6">-->
<!-- <span style="margin-left: 15px;">修读方式</span> <span></span>-->
<!-- </a-col>-->
<!-- <a-col :span="6">-->
<!-- <span style="margin-left: 15px;">任课教师职称</span> <span>{{jxrwInfo?.value.teaxm.substring(jxrwInfo?.value.teaxm.indexOf("[")+1,jxrwInfo?.value.teaxm.indexOf("]"))}}</span>-->
<!-- </a-col>-->
</a-row> </a-row>
</div> </div>
</div> </div>
@ -81,7 +80,7 @@
const registerModal = ref(); const registerModal = ref();
const userStore = useUserStore(); const userStore = useUserStore();
const spinning = ref<boolean>(false); const spinning = ref<boolean>(false);
const jxrwInfo = reactive<any>({}); const jxrwInfo = reactive<any>({});
//table //table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
@ -122,17 +121,17 @@
}); });
function textDown(){ function textDown(){
var a = document.createElement("a"); //<a></a> var a = document.createElement("a"); //<a></a>
a.href = "/download/a.docx"; a.href = "/download/a.docx";
//ahref . //ahref .
a.download ="a.docx"; a.download ="a.docx";
//.xlsxpdf.fpd //.xlsxpdf.fpd
a.style.display = "none"; // a a.style.display = "none"; // a
document.body.appendChild(a); document.body.appendChild(a);
// a // a
a.click(); //aahref a.click(); //aahref
a.remove(); a.remove();
// a // a
} }
/** /**
@ -142,15 +141,15 @@ function textDown(){
registerModal.value.disableSubmit = false; registerModal.value.disableSubmit = false;
registerModal.value.edit(record); registerModal.value.edit(record);
} }
/** /**
* 成功回调 * 成功回调
*/ */
function handleSuccess() { function handleSuccess() {
(selectedRowKeys.value = []) && reload(); (selectedRowKeys.value = []) && reload();
} }
/** /**
* 操作栏 * 操作栏
*/ */
@ -175,7 +174,7 @@ function textDown(){
},]; },];
} }
} }
/** /**
* 查询 * 查询
@ -183,7 +182,7 @@ function textDown(){
function searchQuery() { function searchQuery() {
reload(); reload();
} }
/** /**
* 重置 * 重置
*/ */
@ -193,7 +192,7 @@ function textDown(){
// //
reload(); reload();
} }
function init(record) { function init(record) {
console.log('🧞', record); console.log('🧞', record);
queryParam.kcrwdm = record.kcrwdm; queryParam.kcrwdm = record.kcrwdm;