课程考核材料调整

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',
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',
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',
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: '期中成绩',
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: '期末成绩',
align: "center",
dataIndex: 'cj5'
},
{
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'
dataIndex: 'cj5',
children: [
{
title: '成绩类型',
dataIndex: 'cj5mc',
width: 100,
customRender:({text}) =>{
text = !text ? "" : (text.length > 0 ? text.substr(0,text.indexOf("[")) : "");
return text;
},
},
{
title: '分数',
dataIndex: 'cj5',
width: 100,
},
{
title: '占比',
dataIndex: 'cj4mc',
width: 100,
customRender:({text}) =>{
text = !text ? "" : (text.length > 0 ? text.substr(text.indexOf("["),text.indexOf("]")) : "");
return text;
}
},
],
},
// {
// 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: '总成绩',
align: "center",

View File

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