|
@@ -71,8 +71,8 @@
|
|
|
class="main-right-item"
|
|
|
:class="{
|
|
|
'inout-right-item': inoutName.__name == 'inoutControl',
|
|
|
- 'soures': inoutName.__name == 'virtualRelation',
|
|
|
- 'relatio': inoutName.__name == 'relationShip',
|
|
|
+ soures: inoutName.__name == 'virtualRelation',
|
|
|
+ relatio: inoutName.__name == 'relationShip',
|
|
|
}"
|
|
|
>
|
|
|
<!-- isPhoto是输入输出控制块的, -->
|
|
@@ -121,6 +121,10 @@ const props = defineProps({
|
|
|
type: Object,
|
|
|
default: () => {},
|
|
|
},
|
|
|
+ scdView: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
});
|
|
|
const isOpen = ref(props.openBig);
|
|
|
const inoutNav = ref([
|
|
@@ -131,6 +135,12 @@ const inoutNav = ref([
|
|
|
{ name: "GOOSE接收", code: "GOOSEreceive" },
|
|
|
]);
|
|
|
watch(
|
|
|
+ () => props.scdView,
|
|
|
+ (newValue) => {
|
|
|
+
|
|
|
+ }
|
|
|
+);
|
|
|
+watch(
|
|
|
() => props.openBig,
|
|
|
(newValue) => {
|
|
|
isOpen.value = newValue;
|
|
@@ -140,7 +150,7 @@ const iedRelation = ref(null);
|
|
|
watch(
|
|
|
() => props.iedRelationData,
|
|
|
(newValue) => {
|
|
|
- console.log('iedRelation.value111111111',newValue)
|
|
|
+ console.log("iedRelation.value111111111", newValue);
|
|
|
iedRelation.value = newValue;
|
|
|
}
|
|
|
);
|
|
@@ -158,7 +168,7 @@ const searchInput = ref("");
|
|
|
//搜索ied编码或名称
|
|
|
const searchIedList = ref([]);
|
|
|
const searchClick = (value) => {
|
|
|
- if (value&&iedRelation.value) {
|
|
|
+ if (value && iedRelation.value) {
|
|
|
iedRelation.value = Object.values(iedRelation.value).filter((item) => {
|
|
|
const lowercaseValue = value.toLowerCase(); //不区分大小写
|
|
|
const iedNameLower = item.ied_name ? item.ied_name.toLowerCase() : null;
|
|
@@ -168,7 +178,7 @@ const searchClick = (value) => {
|
|
|
(descLower !== null && descLower.includes(value))
|
|
|
);
|
|
|
});
|
|
|
- } else {
|
|
|
+ } else if (!value) {
|
|
|
iedRelation.value = props.iedRelationData;
|
|
|
}
|
|
|
};
|
|
@@ -313,7 +323,9 @@ $height: 40px;
|
|
|
color: #255ce7;
|
|
|
border: 1px solid #255ce7;
|
|
|
}
|
|
|
-.inout-right-item,.soures,.relatio {
|
|
|
+.inout-right-item,
|
|
|
+.soures,
|
|
|
+.relatio {
|
|
|
margin-top: 27px;
|
|
|
margin-left: 16px;
|
|
|
height: 65vh;
|
|
@@ -321,7 +333,7 @@ $height: 40px;
|
|
|
.soures {
|
|
|
height: 72vh;
|
|
|
}
|
|
|
-.relatio{
|
|
|
+.relatio {
|
|
|
height: 65vh;
|
|
|
}
|
|
|
</style>
|