feat: 新媒体数据看板字段对接

This commit is contained in:
rd
2025-07-04 18:12:23 +08:00
parent 11bc19907c
commit 6404924e29
11 changed files with 627 additions and 100 deletions

View File

@ -33,7 +33,11 @@
ref="tableRef"
:data="dataSource"
row-key="id"
:row-selection="rowSelection"
:row-selection="{
type: 'checkbox',
showCheckedAll: true,
width: 48,
}"
:selected-keys="selectedItems"
:pagination="false"
:scroll="{ x: '100%' }"
@ -173,11 +177,6 @@ const indeterminate = computed(
() => selectedItems.value.length > 0 && selectedItems.value.length < props.dataSource.length,
);
const rowSelection = computed(() => ({
type: 'checkbox',
showCheckedAll: true,
}));
const handleSelectAll = (checked) => {
if (checked) {
selectedItems.value = props.dataSource.map((item) => item.id);

View File

@ -33,7 +33,11 @@
ref="tableRef"
:data="dataSource"
row-key="id"
:row-selection="rowSelection"
:row-selection="{
type: 'checkbox',
showCheckedAll: true,
width: 48,
}"
:selected-keys="selectedItems"
:pagination="false"
:scroll="{ x: '100%' }"
@ -173,11 +177,6 @@ const indeterminate = computed(
() => selectedItems.value.length > 0 && selectedItems.value.length < props.dataSource.length,
);
const rowSelection = computed(() => ({
type: 'checkbox',
showCheckedAll: true,
}));
const handleSelectAll = (checked) => {
if (checked) {
selectedItems.value = props.dataSource.map((item) => item.id);