yanghao пре 1 недеља
родитељ
комит
bd619f2857
1 измењених фајлова са 12 додато и 5 уклоњено
  1. 12 5
      src/views/iot/thingmodel/index.vue

+ 12 - 5
src/views/iot/thingmodel/index.vue

@@ -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) => {