fix: bug#12259
This commit is contained in:
parent
5a0d709154
commit
83d95bd9c9
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue