面授修改

This commit is contained in:
zhangsir
2024-10-10 12:18:56 +08:00
parent 731aac86f7
commit c9990113d5
2 changed files with 70 additions and 60 deletions

View File

@@ -879,7 +879,7 @@
<div class="fb" style="margin-left: -20px">
<div class="jc">
更多
<DownOutlined />
<DownOutlined style="color: #000"/>
</div>
</div>
</a-dropdown>
@@ -3672,7 +3672,21 @@ function onFocusEnd(){
offcourseId: state.offcourseId,
};
console.log("获取开obj", obj, state.selectTime);
let res = await planList(obj);
let res = null
await planList(obj).then(rs=>{
res = rs
}).catch(err=>{
message.error(err.message=='timeout of 15000ms exceeded'?'系统超时,请稍后再试':err.message)
state.tableCoursePlanLoading = false
res ={
data:{data:{
"pageNo": "1",
"pageSize": "10",
"total": "0",
"pages": "0",
"rows": []
}}}
})
state.tableLoading = false;
console.log("开课res", res);
const { rows, total, pageNo } = res.data.data;
@@ -4049,7 +4063,7 @@ function onFocusEnd(){
message.error('请填写结业时间')
return
}
if(state.checked4 && !state.assessmentId){
if(state.checked4 && (!state.assessmentId || state.assessmentId == '0')){
return message.error('请选择评估');
}
console.log(postData,'传输的数据')
@@ -4140,48 +4154,47 @@ function onFocusEnd(){
console.log("itm", itm);
//新加
state.stuColumns = [
{
title: "岗位",
width: "160px",
dataIndex: "studentJobName",
key: "7",
align: "center",
customRender: (text) => {
return (
<div class="racona">
<span>
{text && text.record.studentJobName
? text.record.studentJobName
: "-"}
</span>
</div>
);
},
},
{
title: "Band",
width: "120px",
dataIndex: "studentBandDesc",
key: "7",
align: "center",
ellipsis: true,
customRender: (text) => {
return (
<div class="racona">
<span>
{text.record.studentBandDesc ? text.record.studentBandDesc : "-"}
</span>
</div>
);
},
},
// {
// title: "岗位",
// width: "100px",
// dataIndex: "studentJobName",
// key: "7",
// align: "center",
// customRender: (text) => {
// return (
// <div class="racona">
// <span>
// {text && text.record.studentJobName
// ? text.record.studentJobName
// : "-"}
// </span>
// </div>
// );
// },
// },
// {
// title: "Band",
// width: "80px",
// dataIndex: "studentBandDesc",
// key: "7",
// align: "center",
// ellipsis: true,
// customRender: (text) => {
// return (
// <div class="racona">
// <span>
// {text.record.studentBandDesc ? text.record.studentBandDesc : "-"}
// </span>
// </div>
// );
// },
// },
{
title: "报名状态",
width: "120px",
width: "60px",
dataIndex: "status",
key: "5",
align: "center",
ellipsis: true,
customRender: ({ record }) => {
switch (String(record.status)) {
case "0":
@@ -4196,27 +4209,25 @@ function onFocusEnd(){
{
title: "签到状态",
width: "120px",
width: "60px",
dataIndex: "signstatus",
key: "7",
align: "center",
ellipsis: true,
customRender: ({ record }) =>
record.signStatus ? "已签到" : "未签到",
},
{
title: "评估状态",
width: "120px",
width: "60px",
dataIndex: "evastatus",
key: "8",
align: "center",
ellipsis: true,
customRender: ({ record }) =>
state.isAssessmentId&&state.isAssessmentId!='0' ? record.assessmentStatus?"已评估" : "未评估":'-',
},
{
title: "评分",
width: "120px",
width: "60px",
dataIndex: "studentScore",
key: "8",
align: "center",
@@ -4284,11 +4295,10 @@ function onFocusEnd(){
// },
{
title: "作业状态",
width: "120px",
width: "60px",
dataIndex: "workStatus",
key: "5",
align: "center",
ellipsis: true,
customRender: ({ record }) => {
// switch (String(record.workStatus)) {
// case "null":
@@ -4310,19 +4320,17 @@ function onFocusEnd(){
},
{
title: "考试成绩",
width: "120px",
width: "60px",
dataIndex: "examinationScore",
key: "8",
align: "center",
ellipsis: true,
},
{
title: "结业状态",
width: "120px",
width: "60px",
dataIndex: "completionStatus",
key: "8",
align: "center",
ellipsis: true,
customRender: ({ record }) => {
return (
<div>
@@ -7613,7 +7621,7 @@ function onFocusEnd(){
.stmm_i5 {
// display: flex;
// justify-content: space-between;
margin-right: 20px;
// margin-right: 6px;
}
.stmm_i6 {