mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-06 17:36:44 +08:00
表格排序
This commit is contained in:
@@ -285,7 +285,7 @@ export default {
|
||||
title: "创建人",
|
||||
dataIndex: "sysCreateBy",
|
||||
key: "sysCreateBy",
|
||||
width: 180,
|
||||
width: 150,
|
||||
align: "center"
|
||||
},
|
||||
{
|
||||
@@ -299,7 +299,7 @@ export default {
|
||||
title: "更新人",
|
||||
dataIndex: "sysUpdateBy",
|
||||
key: "sysUpdateBy",
|
||||
width: 180,
|
||||
width: 150,
|
||||
align: "center"
|
||||
},
|
||||
{
|
||||
@@ -323,14 +323,14 @@ export default {
|
||||
title: "关联课程名称",
|
||||
dataIndex: "courseName",
|
||||
key: "courseName",
|
||||
width: 200,
|
||||
width: 180,
|
||||
align: "center"
|
||||
},
|
||||
{
|
||||
title: "关联课程ID",
|
||||
dataIndex: "courseId",
|
||||
key: "courseId",
|
||||
width: 120,
|
||||
width: 80,
|
||||
align: "center"
|
||||
},
|
||||
{
|
||||
@@ -437,7 +437,7 @@ export default {
|
||||
};
|
||||
|
||||
const handleRelTableChange = (pagination, filters, sorter) => {
|
||||
if (sorter.field === 'useCount') {
|
||||
if (sorter.field === 'sysCreateTime') {
|
||||
// 处理排序逻辑
|
||||
console.log('REL排序字段:', sorter.field, '排序方式:', sorter.order);
|
||||
if (sorter.order === 'ascend') {
|
||||
@@ -501,6 +501,7 @@ export default {
|
||||
state.courseDialogVisible = true;
|
||||
state.courseSearchParam.id = tagId;
|
||||
state.courseSearchParam.pageNo = 1;
|
||||
state.courseSearchParam.pageSize = 5;
|
||||
await getCourseListByTag();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user