|
@@ -9,7 +9,7 @@
|
|
|
</div>
|
|
|
<div class="flex-1 p-base">
|
|
|
<div class="radius-base p-l-base p-r-base p-t-mini fill-blank p-b-mini">
|
|
|
- <base-table border stripe size="small" :columns="columns" :data="tableData">
|
|
|
+ <base-table :key="tableKey" border stripe size="small" :columns="columns" :data="tableData">
|
|
|
<template #column-leader="{ row }">
|
|
|
<div style="text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis">
|
|
|
<span
|
|
@@ -46,7 +46,7 @@
|
|
|
|
|
|
<script setup lang="tsx" name="AnalysisGroupMonitoring">
|
|
|
/** 小组监控 */
|
|
|
-import { computed, ref } from 'vue'
|
|
|
+import { computed, ref, watch } from 'vue'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { ElButton, ElPagination } from 'element-plus'
|
|
|
import BaseForm from '@/components/element/BaseForm.vue'
|
|
@@ -125,6 +125,10 @@ const currentPage = ref(1)
|
|
|
const tableData = computed(() => {
|
|
|
return (result.value || []).slice((currentPage.value - 1) * 10, (currentPage.value - 1) * 10 + 10)
|
|
|
})
|
|
|
+const tableKey = ref(Math.random() + '')
|
|
|
+watch(tableData, () => {
|
|
|
+ tableKey.value = Math.random() + ''
|
|
|
+})
|
|
|
/** 刷新按钮 */
|
|
|
function onSearch() {
|
|
|
let markingGroupNumbers: any = formModel.value.markingGroupNumbers
|