diff --git a/src/components/draw-app/properties/RelateRelayConfig.vue b/src/components/draw-app/properties/RelateRelayConfig.vue
index e9e4a67..80a654a 100644
--- a/src/components/draw-app/properties/RelateRelayConfig.vue
+++ b/src/components/draw-app/properties/RelateRelayConfig.vue
@@ -54,13 +54,21 @@
{{ item }}
-
+
+
+
+
@@ -271,6 +279,10 @@ function removeSelect(code: string) {
function clearAllSelect(index: number) {
relateRelayConfig.value.combinationtypes[index].refRelays = [];
relateRelayConfig.value.combinationtypes[index].refRelaysCode = [];
+ clearAllSelectAtCanvas();
+}
+
+function clearAllSelectAtCanvas() {
selectGraphic = [];
relayCabinetStore.getDrawApp().updateSelected();
}
@@ -284,6 +296,11 @@ function addCombinationtype() {
});
}
+function deleteCombinationtype(index: number) {
+ relateRelayConfig.value.combinationtypes.splice(index, 1);
+ clearAllSelectAtCanvas();
+}
+
function onReset() {
clickIndex = null;
handleState.value = '新建设备关联继电器';
@@ -294,8 +311,7 @@ function onReset() {
{ code: '组合类型', refRelays: [], refRelaysCode: [], expanded: false },
],
};
- selectGraphic = [];
- relayCabinetStore.getDrawApp().updateSelected();
+ clearAllSelectAtCanvas();
}
function goBack() {