|
@ -154,7 +154,7 @@ |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import { ref, watchEffect } from 'vue' |
|
|
import { ref, watchEffect } from 'vue' |
|
|
|
|
|
|
|
|
|
|
|
import { uniqBy } from 'lodash'; |
|
|
import { HistoryWarn } from './components/index' |
|
|
import { HistoryWarn } from './components/index' |
|
|
import { |
|
|
import { |
|
|
getHistoryInfo, |
|
|
getHistoryInfo, |
|
@ -302,14 +302,15 @@ const showActionConfirm = (actionType: string) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const onRefresh = () => { |
|
|
|
|
|
currentPage.value = 1 |
|
|
|
|
|
|
|
|
const onRefresh = async () => { |
|
|
|
|
|
tableData.value = [] |
|
|
|
|
|
currentPage.value = 0 |
|
|
pageSize.value = 25 |
|
|
pageSize.value = 25 |
|
|
total.value = 0 |
|
|
total.value = 0 |
|
|
totalPage.value = 0 |
|
|
totalPage.value = 0 |
|
|
tableData.value = [] |
|
|
|
|
|
disabled.value = false |
|
|
disabled.value = false |
|
|
load() |
|
|
|
|
|
|
|
|
// console.log(111) |
|
|
|
|
|
await load() |
|
|
systemStore.clearReactionRecordList() |
|
|
systemStore.clearReactionRecordList() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -323,7 +324,7 @@ const total = ref(0) |
|
|
const totalPage = ref(0) |
|
|
const totalPage = ref(0) |
|
|
|
|
|
|
|
|
const disabled = ref(false) |
|
|
const disabled = ref(false) |
|
|
const load = () => { |
|
|
|
|
|
|
|
|
const load = async () => { |
|
|
if (disabled.value) return; |
|
|
if (disabled.value) return; |
|
|
loading.value = true |
|
|
loading.value = true |
|
|
|
|
|
|
|
@ -334,7 +335,7 @@ const load = () => { |
|
|
currentPage.value++; |
|
|
currentPage.value++; |
|
|
total.value = res.data.total |
|
|
total.value = res.data.total |
|
|
totalPage.value = res.data.totalPage |
|
|
totalPage.value = res.data.totalPage |
|
|
tableData.value = tableData.value.concat(res.data.list) |
|
|
|
|
|
|
|
|
tableData.value = uniqBy(tableData.value.concat(res.data.list), 'id') |
|
|
if (currentPage.value > totalPage.value) { |
|
|
if (currentPage.value > totalPage.value) { |
|
|
disabled.value = true |
|
|
disabled.value = true |
|
|
} |
|
|
} |
|
|