|
@@ -136,7 +136,8 @@ const deviceWorkParamsRef = useTemplateRef('deviceWorkParams');
|
|
|
|
|
|
const currentDevId = ref<number>(0);
|
|
const currentDevId = ref<number>(0);
|
|
|
|
|
|
-const viewDevParam = (id: number) => {
|
|
|
|
|
|
+const viewDevParam = (id: number, e: MouseEvent) => {
|
|
|
|
+ e.stopPropagation();
|
|
currentDevId.value = id;
|
|
currentDevId.value = id;
|
|
deviceWorkParamsRef.value?.showView();
|
|
deviceWorkParamsRef.value?.showView();
|
|
};
|
|
};
|
|
@@ -211,7 +212,7 @@ const handleDevCardClick = (devId: number, e: Event) => {
|
|
<div class="device-cop-level">中</div>
|
|
<div class="device-cop-level">中</div>
|
|
</template>
|
|
</template>
|
|
<span class="device-card-header-time">{{ deviceRealTimeData[item.id]?.time }}</span>
|
|
<span class="device-card-header-time">{{ deviceRealTimeData[item.id]?.time }}</span>
|
|
- <SvgIcon class="device-card-header-button" name="adjustment" @click="viewDevParam(item.id)" />
|
|
|
|
|
|
+ <SvgIcon class="device-card-header-button" name="adjustment" @click="viewDevParam(item.id, $event)" />
|
|
</div>
|
|
</div>
|
|
<component
|
|
<component
|
|
:is="deviceCardData[activeDeviceType]?.component"
|
|
:is="deviceCardData[activeDeviceType]?.component"
|