回退的喝不过来,手动合并

This commit is contained in:
nisen
2024-09-08 14:20:39 +08:00
parent 4401cef26b
commit 766ff177c1
3 changed files with 25 additions and 21 deletions

View File

@@ -374,7 +374,9 @@ export function usePage(_url, params, init = true,listing = false) {
state.totalPage = r.data.total/10 || 1;
state.total = r.data.total;
state.loading = false;
});
}).catch(err => {
state.loading = false;
})
}
init && fetch();

View File

@@ -488,16 +488,17 @@ const columns = ref([
width: "20%",
align: "center",
customRender: ({ record }) => {
const teachers = record.offteachers;
return teachers.map((teacher, index) => {
// 如果需要显示为列表形式
return (
<div key={index}>
{teacher.teacherName}
{index !== teachers.length - 1 && ', '}
</div>
);
});
// const teachers = record.offteachers;
// return teachers.map((teacher, index) => {
// // 如果需要显示为列表形式
// return (
// <div key={index}>
// {teacher.teacherName}
// {index !== teachers.length - 1 && ', '}
// </div>
// );
// });
return record.offteachers.map(item=>item.teacherName).join(',')
},
},

View File

@@ -1993,16 +1993,17 @@ const columns6 = [
align: "center",
ellipsis: true,
customRender: ({ record }) => {
const teachers = record.offteachers;
return teachers.map((teacher, index) => {
// 如果需要显示为列表形式
return (
<div key={index}>
{teacher.teacherName}
{index !== teachers.length - 1 && ', '}
</div>
);
});
// const teachers = record.offteachers;
// return teachers.map((teacher, index) => {
// // 如果需要显示为列表形式
// return (
// <div key={index}>
// {teacher.teacherName}
// {index !== teachers.length - 1 && ', '}
// </div>
// );
// });
return record.offteachers.map(item=>item.teacherName).join(',')
}
},