面授修改

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

@@ -196,7 +196,7 @@
:data-source="tableData.list" :data-source="tableData.list"
:pagination="stuPagination" :pagination="stuPagination"
:loading="tableData.loading" :loading="tableData.loading"
:scroll="{ x: 'max-content' }" :scroll="{ x: 1350 }"
row-key="id" row-key="id"
:row-selection="stuRowSelection" :row-selection="stuRowSelection"
> >
@@ -467,7 +467,7 @@ const tablecolumns = ref([
title: "姓名", title: "姓名",
dataIndex: "studentName", dataIndex: "studentName",
key: "studentName", key: "studentName",
width: "160px", width: "80px",
align: "left", align: "left",
className: "h", className: "h",
ellipsis: true, ellipsis: true,
@@ -496,7 +496,7 @@ const tablecolumns = ref([
title: "工号", title: "工号",
dataIndex: "studentUserNo", dataIndex: "studentUserNo",
key: "studentUserNo", key: "studentUserNo",
width: "120px", width: "60px",
align: "center", align: "center",
className: "h", className: "h",
ellipsis: true, ellipsis: true,
@@ -505,7 +505,7 @@ const tablecolumns = ref([
title: "部门", title: "部门",
dataIndex: "studentDepartName", dataIndex: "studentDepartName",
key: "studentDepartName", key: "studentDepartName",
width: "200px", width: "120px",
align: "center", align: "center",
className: "h", className: "h",
customCell :() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}}, customCell :() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}},
@@ -525,9 +525,8 @@ const tablecolumns = ref([
title: "加入方式", title: "加入方式",
dataIndex: "source", dataIndex: "source",
key: "source", key: "source",
width: "120px", width: "60px",
align: "center", align: "center",
ellipsis: true,
customRender: ({ record: { source } }) => customRender: ({ record: { source } }) =>
// ({ 1: "快速添加", 2: "组织", 3: "受众", 4: "报名" }[source]), // ({ 1: "快速添加", 2: "组织", 3: "受众", 4: "报名" }[source]),
({ ({
@@ -545,7 +544,7 @@ const tablecolumns = ref([
title: "操作", title: "操作",
dataIndex: "operation", dataIndex: "operation",
key: "operation", key: "operation",
width: '260px', width: '120px',
fixed: "right", fixed: "right",
align: "center", align: "center",
slots: { customRender: "action" }, slots: { customRender: "action" },
@@ -561,7 +560,10 @@ function allDepartShow(a, b) {
: a; : a;
let depart = b == "" || b == null || b == undefined ? (b = "") : b; let depart = b == "" || b == null || b == undefined ? (b = "") : b;
let allname = org == "" && depart == "" ? "-" : org + depart; let allname = org == "" && depart == "" ? "-" : org + depart;
return allname; const parts = allname.split('/');
const reversedParts = parts.reverse();
const reversedStr = reversedParts.join('/');
return reversedStr;
} }
const tableParam = ref({ const tableParam = ref({

View File

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