|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { defineOptions, ref } from 'vue';
|
|
|
|
|
import { defineOptions, onMounted, ref, onBeforeUnmount } from 'vue';
|
|
|
|
|
import { useRouter } from 'vue-router';
|
|
|
|
|
|
|
|
|
|
defineOptions({ name: 'ShortcutModal' })
|
|
|
|
@ -36,16 +36,27 @@ function cancel() {
|
|
|
|
|
closeModal()
|
|
|
|
|
emit('cancel', true)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const time = ref();
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
time.value = setInterval(() => {
|
|
|
|
|
// console.log("00000000-----------");
|
|
|
|
|
show.value && refresh();
|
|
|
|
|
}, 5000);
|
|
|
|
|
});
|
|
|
|
|
onBeforeUnmount(() => {
|
|
|
|
|
clearInterval(time.value);
|
|
|
|
|
time.value = null;
|
|
|
|
|
});
|
|
|
|
|
defineExpose({
|
|
|
|
|
showModal,
|
|
|
|
|
closeModal
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<template>
|
|
|
|
|
<div class="removeMask">
|
|
|
|
|
<n-modal v-model:show="show" :show-mask="false" :mask-closable="false" transform-origin="center" style="position: fixed;right: 0;bottom: 0;">
|
|
|
|
|
<!-- <n-modal v-model:show="show" :show-mask="false" :mask-closable="false" transform-origin="center" style="position: fixed;right: 0;bottom: 0;"> -->
|
|
|
|
|
<div v-if="show" style="position: fixed;right: 0;bottom: 0; float: left; z-index: 999;" >
|
|
|
|
|
<n-card :style="cardStyle" :bordered="false" size="huge" role="dialog" aria-modal="true" style="padding: 8px 8px 0 8px;">
|
|
|
|
|
<div class="wrapper">
|
|
|
|
|
<div class="title">查重进度</div>
|
|
|
|
@ -63,7 +74,8 @@ defineExpose({
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</n-card>
|
|
|
|
|
</n-modal>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- </n-modal> -->
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|