fix: bug#12259

This commit is contained in:
xieyonghong 2023-05-17 16:51:51 +08:00
parent 5a0d709154
commit 83d95bd9c9
2 changed files with 10 additions and 9 deletions

View File

@ -1,6 +1,6 @@
<template>
<pro-search
class="device-search"
class="device-running-search"
type="simple"
:columns="columns"
target="device-instance-running-events"
@ -112,8 +112,10 @@ const detail = (_info: any) => {
</script>
<style lang="less">
.device-search {
.device-running-search {
margin: 0 0 24px 0;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.device-running-event-modal {

View File

@ -109,18 +109,17 @@ const check = async (): Promise<boolean> => {
return true
}
watch(() => data.value.trigger, async (v) => {
console.log('device-checkItem',v?.device)
if (v?.device) {
const checkInit = async () => {
if (data.value.trigger?.device) {
const checkStatus = await check()
if (!checkStatus) {
formTouchOff()
}
}
}, {
deep: true,
immediate: true
})
}
checkInit()
</script>
<style scoped>