You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
580 B
33 lines
580 B
<script lang="ts" setup>
|
|
import { craftstatus } from '@/apis/crafts'
|
|
import { ref } from 'vue'
|
|
|
|
const statusVisible = ref(false)
|
|
const intervalTimes = ref()
|
|
|
|
const queryCraftStatus = () => {
|
|
intervalTimes.value = setInterval(() => {
|
|
craftstatus().then((res) => {
|
|
console.log('res====', res)
|
|
})
|
|
}, 1000)
|
|
}
|
|
|
|
const showDialog = () => {
|
|
statusVisible.value = true
|
|
queryCraftStatus()
|
|
}
|
|
|
|
defineExpose({
|
|
showDialog,
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<el-dialog v-model="statusVisible">
|
|
<div>
|
|
<div></div>
|
|
<div></div>
|
|
</div>
|
|
</el-dialog>
|
|
</template>
|