|
@@ -154,7 +154,7 @@
|
|
|
stripe
|
|
|
style="width: 100%"
|
|
|
:cell-style="{ color: '#000' }"
|
|
|
- @row-click="svSendRowClick3"
|
|
|
+ @row-click="svSendRowClick4"
|
|
|
:highlight-current-row="true"
|
|
|
ref="myTable4"
|
|
|
>
|
|
@@ -173,13 +173,13 @@
|
|
|
<el-table-column prop="out_gse_ctrl_address.APPID" label="APPID" />
|
|
|
</el-table>
|
|
|
<div class="title">
|
|
|
- GOOSE端子列表详情(共<span v-if="svReceiveTableCtrl">{{
|
|
|
- svReceiveTableCtrl.length
|
|
|
+ GOOSE端子列表详情(共<span v-if="gooseReList">{{
|
|
|
+ gooseReList.length
|
|
|
}}</span
|
|
|
>条)
|
|
|
</div>
|
|
|
<el-table
|
|
|
- :data="gooseList"
|
|
|
+ :data="gooseReList"
|
|
|
style="width: 100%"
|
|
|
stripe
|
|
|
:cell-style="{ color: '#000' }"
|
|
@@ -188,9 +188,7 @@
|
|
|
<el-table-column prop="do_desc" label="内部端子描述" width="180" />
|
|
|
<el-table-column label="内部端子地址">
|
|
|
<template #default="scope">
|
|
|
- {{
|
|
|
- `${scope.row.ld_inst}/${scope.row.prefix}${scope.row.ld_inst}${scope.row.ln_class}${scope.row.ln_inst}.${scope.row.do_name}`
|
|
|
- }}
|
|
|
+ {{ scope.row.int_addr }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="外部IED名称">
|
|
@@ -312,6 +310,12 @@ const getGooseReList = async () => {
|
|
|
scd_id: scdIdValue,
|
|
|
ied_name: props.checkData.ied_name,
|
|
|
});
|
|
|
+ if (gooseRes.data.length > 0) {
|
|
|
+ gooseRes.data.forEach((item) => {
|
|
|
+ item.children = [];
|
|
|
+ });
|
|
|
+ }
|
|
|
+ //上面表格的数据
|
|
|
gooseRes.data.forEach((item) => {
|
|
|
const alreadyExists = gooseReCtrl.value.some((arrItem) => {
|
|
|
return (
|
|
@@ -325,17 +329,26 @@ const getGooseReList = async () => {
|
|
|
gooseReCtrl.value.push(item);
|
|
|
}
|
|
|
});
|
|
|
- gooseReList.value = gooseRes.data.map((item) => {
|
|
|
- if (gooseRes.data.length > 0) {
|
|
|
- return (
|
|
|
- item.out_dataset_name == gooseRes.data[0].out_dataset_name &&
|
|
|
- item.out_gse_ctrl_name == gooseRes.data[0].out_gse_ctrl_name &&
|
|
|
- item.out_ied_desc == gooseRes.data[0].out_ied_desc &&
|
|
|
- item.out_ied_name == gooseRes.data[0].out_ied_name
|
|
|
- );
|
|
|
+ //子列表的数据
|
|
|
+ gooseReCtrl.value.forEach((item) => {
|
|
|
+ if (gooseReCtrl.value.length > 0&& gooseRes.data.length>0) {
|
|
|
+ gooseRes.data.forEach((key) => {
|
|
|
+ if (
|
|
|
+ item.out_dataset_name == key.out_dataset_name &&
|
|
|
+ item.out_gse_ctrl_name == key.out_gse_ctrl_name &&
|
|
|
+ item.out_ied_desc == key.out_ied_desc &&
|
|
|
+ item.out_ied_name == key.out_ied_name
|
|
|
+ ) {
|
|
|
+ item.children.push(key);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
- console.log("gooseReList.value", gooseReList.value);
|
|
|
+ gooseReList.value = gooseReCtrl.value.length>0 ? gooseReCtrl.value[0].children : null;
|
|
|
+};
|
|
|
+const svSendRowClick4 = (row, column) => {
|
|
|
+ ctrlId.value = row.node_id;
|
|
|
+ gooseReList.value = row.children;
|
|
|
};
|
|
|
watch(
|
|
|
() => props.svInfo,
|
|
@@ -348,7 +361,7 @@ watch(
|
|
|
svReceiveTableCtrl.value = [];
|
|
|
svTableFcd.value = [];
|
|
|
gooseList.value = [];
|
|
|
- gooseReList.value = [];
|
|
|
+ gooseReList.value = null;
|
|
|
getSvSendCtrl();
|
|
|
smvCtrlblockRe();
|
|
|
getGooseReList();
|