This commit is contained in:
wangjh12
2025-05-11 10:15:10 +08:00
parent cc88a0de81
commit bc33c9c4f1

View File

@@ -172,16 +172,19 @@
onChange: onSelectChange,
}"
>
<template #headerCell="{ column }">
<draggable
tag="span"
:item-key="column.dataIndex"
:list="columns"
handle=".handle"
>
<span class="handle">{{ column.title }}</span>
</draggable>
</template>
<!-- <template v-slot:header>-->
<!-- <draggable-->
<!-- v-model="columns"-->
<!-- item-key="key"-->
<!-- :list="columns"-->
<!-- :group="{ name: 'columns', pull: 'clone', put: false }"-->
<!-- >-->
<!-- <template #item="{ element }">-->
<!-- <a-table-column :title="element.title" :dataIndex="element.dataIndex" :key="element.key"></a-table-column>-->
<!-- </template>-->
<!-- </draggable>-->
<!-- </template>-->
</a-table>
<div class="tableBox">
@@ -1428,6 +1431,14 @@ export default {
align: "center",
fixed: "left",
},
{
title: "所属课程",
dataIndex: "offCourseName",
ellipsis: true,
key: "offCourseName",
width: 120,
align: "center",
},
{
title: "开课开始时间",
dataIndex: "startTime",
@@ -2180,7 +2191,4 @@ export default {
.ant-table-tbody > tr > td {
user-select: text !important;
}
.handle {
cursor: move;
}
</style>