This commit is contained in:
zk
2024-05-17 16:10:51 +08:00
parent ce2b8f5837
commit 7444e6ff75
18 changed files with 125 additions and 76 deletions
+2 -1
View File
@@ -43,6 +43,7 @@
setTimeout(() => {
setSpin(false);
}, 1000);
getList();
}
onMounted(() => {
@@ -54,7 +55,7 @@
async function getList() {
setSpin(true);
try {
const { code, result } = (await getDetail({ dataType: props.setting.dataType })) || {};
const { code, result } = (await getDetail({ dataType: props.setting.dataType, condition: selectIndex.value })) || {};
setSpin(!spinning.value);
if (code != 200) {
return;
-12
View File
@@ -51,20 +51,8 @@
}
onMounted(() => {
document.addEventListener('visibilitychange', checkTabState);
init();
});
onUnmounted(() => {
document.removeEventListener('visibilitychange', checkTabState);
});
const tabState = ref('');
function checkTabState() {
console.log('checkTabState', document.hidden);
tabState.value = document.hidden ? 'inactive' : 'active';
if (!document.hidden) {
}
}
function init() {
getDepartOption();
-1
View File
@@ -137,7 +137,6 @@
}
onMounted(() => {
console.log('reload');
Map.initMap({ el: 'mapContainer' }).then(() => {
getMapData(tabList[0].type);
Map.map && Map.map.on('zoomend', setLevel);
@@ -19,7 +19,7 @@
</a-table>
</template>
<script setup lang="ts">
import { nextTick, onMounted, ref, watch } from 'vue';
import { nextTick, ref, watch } from 'vue';
import { isFunction } from '/@/utils/is.ts';
const props = defineProps({
@@ -81,6 +81,7 @@
dataSource.value = result?.records;
}
paginationProp.value = { ...paginationProp.value, ...result };
paginationProp.value.pageSize = result.size;
}
} finally {
tableLoading.value = false;