-
-
-
- IEC服务器状态
-
-
-
端口:{{ port }}
-
filename:{{ filename }}
-
-
选择文件:
-
-
+
+
+
+ IEC服务器状态
+
+
+
端口:{{ port }}
+
filename:{{ filename }}
+
+
选择文件:
+
-
-
+
+
+
+
+
+ 服务器状态:
+ 开启
+ 关闭
+
+
+
-
- 服务器状态:
- 开启
- 关闭
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 订阅转发
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -54,7 +99,10 @@ import {
serverstartApi,
serverstatusApi,
serverstopApi,
- icdFileApi,
+ ieclistFileApi,
+ listIedConfigApi,
+ startCollectApi,
+ stopCollectApi,
} from "@/utils/api/index";
export default {
@@ -68,11 +116,14 @@ export default {
fileNameVal: "",
icdFileOptions: [],
serveLoading: false,
+ ledList: [],
+ ledLoading: false,
};
},
mounted() {
this.geticeStatus(); //获取iedName列表
this.getIcdListFile();
+ this.getLedList(); //获取LedList列表
},
methods: {
//获取ice服务器状态
@@ -154,7 +205,7 @@ export default {
}
},
getIcdListFile() {
- icdFileApi()
+ ieclistFileApi()
.then((res) => {
if (res.success) {
console.log(res);
@@ -175,6 +226,73 @@ export default {
console.log(err); //代码错误、请求失败捕获
});
},
+
+ //获取ledList列表
+ getLedList() {
+ listIedConfigApi()
+ .then((res) => {
+ console.log(res);
+ this.ledList = res.data;
+ })
+ .catch((err) => {
+ console.log(err); //代码错误、请求失败捕获
+ });
+ },
+ changeIedStatus(val) {
+ this.ledLoading = true;
+ if (val.start) {
+ startCollectApi({
+ iedId: val.id,
+ })
+ .then((res) => {
+ if (res.success) {
+ console.log(res);
+ this.$message({
+ duration: 1500,
+ showClose: true,
+ message: "服务器开始成功",
+ type: "success",
+ });
+ this.getLedList();
+ this.ledLoading = false;
+ } else {
+ this.$message({
+ duration: 1500,
+ showClose: true,
+ message: res.errorMsg,
+ type: "error",
+ });
+ this.getLedList();
+ this.ledLoading = false;
+ }
+ })
+ .catch((err) => {
+ console.log(err); //代码错误、请求失败捕获
+ });
+ } else {
+ stopCollectApi({
+ iedId: val.id,
+ })
+ .then((res) => {
+ if (res.success) {
+ console.log(res);
+ this.ledLoading = false;
+ this.getLedList();
+ } else {
+ this.ledLoading = false;
+ this.$message({
+ duration: 1500,
+ showClose: true,
+ message: res.errorMsg,
+ type: "error",
+ });
+ }
+ })
+ .catch((err) => {
+ console.log(err); //代码错误、请求失败捕获
+ });
+ }
+ },
},
};
@@ -183,13 +301,23 @@ export default {
width: calc(100% - 24px);
overflow-x: hidden;
background: rgba(8, 9, 36, 0.28);
-
box-shadow: inset 0 4px 44px 0 #106cde;
padding: 0px 12px;
height: 100%;
+ display: flex;
+ .left {
+ width: 50%;
+ }
+ .right {
+ width: 50%;
+ }
+ .el-divider--vertical {
+ height: 100%;
+ }
.cardBox {
width: 360px;
margin-top: 20px;
+ height: 240px;
.el-card__header {
padding: 12px;
}
@@ -218,5 +346,17 @@ export default {
}
}
}
+ .cardBox2 {
+ width: 480px;
+ margin-top: 20px;
+ margin-left: 12px;
+ //height: 472px;
+ .el-card__header {
+ padding: 12px;
+ }
+ .el-card__body {
+ padding: 12px;
+ }
+ }
}
diff --git a/src/views/mappingConfig/index.vue b/src/views/mappingConfig/index.vue
new file mode 100644
index 00000000..4ebd4ccb
--- /dev/null
+++ b/src/views/mappingConfig/index.vue
@@ -0,0 +1,26 @@
+
+ 采集转换映射配置
+
+
+
diff --git a/src/views/serverIcd/index.vue b/src/views/serverIcd/index.vue
new file mode 100644
index 00000000..deb9539d
--- /dev/null
+++ b/src/views/serverIcd/index.vue
@@ -0,0 +1,263 @@
+
+
+
+
+
文件上传:
+
+ 选取文件
+
+
+
上传到服务器
+
+
+
+
+
+
+
+
+ 启用
+ 未启用
+
+
+
+
+
+
+
+
+
+
+
+