|
|
@@ -178,10 +178,15 @@
|
|
|
</div>
|
|
|
|
|
|
<template #footer>
|
|
|
- <el-button @click="closeImportDialog">取消</el-button>
|
|
|
- <el-button type="primary" :loading="importSubmitting" @click="submitImportCommonThing">
|
|
|
- 导入
|
|
|
- </el-button>
|
|
|
+ <div class="flex items-center">
|
|
|
+ <span class="mr-auto text-[var(--el-text-color-secondary)]">
|
|
|
+ 已选 {{ selectedCommonThingRows.length }} 条
|
|
|
+ </span>
|
|
|
+ <el-button @click="closeImportDialog">取消</el-button>
|
|
|
+ <el-button type="primary" :loading="importSubmitting" @click="submitImportCommonThing">
|
|
|
+ 导入
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</Dialog>
|
|
|
</template>
|
|
|
@@ -275,7 +280,9 @@ const resetImportQuery = () => {
|
|
|
|
|
|
const handleImportSelectionChange = (selection: ThingModelData[]) => {
|
|
|
const currentPageIds = new Set(
|
|
|
- commonThingList.value.map((item) => item.id).filter((id): id is number => typeof id === 'number')
|
|
|
+ commonThingList.value
|
|
|
+ .map((item) => item.id)
|
|
|
+ .filter((id): id is number => typeof id === 'number')
|
|
|
)
|
|
|
|
|
|
currentPageIds.forEach((id) => {
|