预告警单工作流基础版本

This commit is contained in:
2024-05-22 16:05:51 +08:00
parent 346aeb1179
commit 54f6fb6e02
8 changed files with 401 additions and 73 deletions

View File

@@ -35,11 +35,11 @@
</template>
<script setup lang='ts'>
import { onMounted, ref } from 'vue'
defineOptions({ name: 'QuitRunningDeviceDetail' })
import { useRoute } from 'vue-router'
import { propTypes } from '@/utils/propTypes'
import { getRunningDeviceById } from '@/api/supervision-boot/device/quitRunningDev'
defineOptions({ name: 'QuitRunningDeviceDetail' })
const { query } = useRoute() // 查询参数
const props = defineProps({
@@ -90,7 +90,7 @@ const getDeviceStatusType = (status: number) => {
const getInfo = async () => {
detailLoading.value = true
try {
// detailData.value = await LeaveApi.getLeave()
await getRunningDeviceById(props.id || queryId).then(res => {
detailData.value = res.data
})