61850配置添加服务端管理和控制台
parent
0e26a4bc78
commit
e9833b47ec
@ -0,0 +1,180 @@
|
||||
<template>
|
||||
<div class="clientDownFileBox">
|
||||
<div class="equimentList">
|
||||
<div class="sideNav">
|
||||
<h3><i class="el-icon-s-tools"></i>客户端下载文件配置</h3>
|
||||
<ul class="navList">
|
||||
<li v-for="(item, index) in navlist" :key="index">
|
||||
<router-link :to="item.path">
|
||||
<span>{{ item.name }}</span
|
||||
><i class="el-icon-arrow-right"></i>
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="reportTable">
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {} from "@/utils/api/index";
|
||||
export default {
|
||||
name: "clientDownFile",
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
activeIndex: 0,
|
||||
navlist: [
|
||||
{
|
||||
name: "下载文件配置",
|
||||
path: "/clientDownFile/server",
|
||||
},
|
||||
|
||||
{
|
||||
name: "下载记录",
|
||||
path: "/clientDownFile/downrecord",
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
watch: {},
|
||||
computed: {},
|
||||
created() {},
|
||||
methods: {},
|
||||
};
|
||||
</script>
|
||||
<style lang="less">
|
||||
.clientDownFileBox {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
.equimentList {
|
||||
min-width: 240px;
|
||||
max-width: 240px;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
//border: 1px solid #fff;
|
||||
margin-right: 24px;
|
||||
background: rgba(8, 9, 36, 0.28);
|
||||
|
||||
box-shadow: inset 0 4px 44px 0 #106cde;
|
||||
//padding: 0px 12px;
|
||||
.sideNav {
|
||||
margin: 10px;
|
||||
|
||||
height: calc(100% - 20px);
|
||||
background-color: #fff;
|
||||
}
|
||||
h3 {
|
||||
font-weight: normal;
|
||||
display: block;
|
||||
height: 38px;
|
||||
line-height: 36px;
|
||||
margin: 0;
|
||||
padding: 0 16px 0 16px;
|
||||
-webkit-text-shadow: none !important;
|
||||
text-shadow: none !important;
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
color: #262626;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
i {
|
||||
margin-right: 6px;
|
||||
}
|
||||
.el-tag {
|
||||
margin-left: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.navList {
|
||||
box-shadow: inset 0 4px 4px -2px rgba(0, 0, 0, 0.15),
|
||||
inset 0 -4px 4px -2px rgba(0, 0, 0, 0.15);
|
||||
position: relative;
|
||||
background-color: #fbfbfb;
|
||||
li {
|
||||
padding: 0 16px 0 38px;
|
||||
color: #262626;
|
||||
height: 38px;
|
||||
line-height: 36px;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
left: 23px;
|
||||
top: 0;
|
||||
bottom: 19px;
|
||||
border-left: 1px solid #e2e2e2;
|
||||
}
|
||||
&:hover {
|
||||
a {
|
||||
cursor: pointer;
|
||||
color: #106cde;
|
||||
}
|
||||
}
|
||||
a {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
color: #262626;
|
||||
&::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
left: -18px;
|
||||
top: 16px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #e2e2e2;
|
||||
z-index: 2;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
.router-link-active {
|
||||
color: #106cde;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.reportTable {
|
||||
flex: 1;
|
||||
overflow-x: hidden;
|
||||
background: rgba(8, 9, 36, 0.28);
|
||||
// -webkit-backdrop-filter: blur(10px);
|
||||
// backdrop-filter: blur(10px);
|
||||
box-shadow: inset 0 4px 44px 0 #106cde;
|
||||
padding: 0px 12px;
|
||||
.reportHead {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
h3 {
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
font-weight: normal;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
.el-table .el-table__cell {
|
||||
text-align: center;
|
||||
}
|
||||
.editClass {
|
||||
.el-link.el-link--primary {
|
||||
margin-right: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,163 @@
|
||||
<template>
|
||||
<div class="ieddlServer">
|
||||
<div class="reportHead">
|
||||
<h3>客户端服务器</h3>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleAddClick"
|
||||
>新增</el-button
|
||||
>
|
||||
<div class="zsbTableBox">
|
||||
<el-table
|
||||
:data="serverData"
|
||||
style="width: 100%"
|
||||
height="calc(100% - 0px)"
|
||||
>
|
||||
<el-table-column label="ied名称" prop="name">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.ied.name }}</span>
|
||||
</template></el-table-column
|
||||
>
|
||||
<el-table-column label="传感器名称" prop="name">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.sensor.name }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="端口" prop="port">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.port }}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column label="路径" prop="path">
|
||||
<!-- <template slot-scope="scope">
|
||||
<p v-for="(item, index) in scope.row.pathList">
|
||||
{{ item }}
|
||||
</p>
|
||||
</template> -->
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" prop="active">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.active == 1 ? "启用" : "停用" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="下载文件后缀" prop="suffix">
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" class-name="editClass">
|
||||
<template slot-scope="scope">
|
||||
<el-link
|
||||
type="primary"
|
||||
@click="handleEditClick(scope.row)"
|
||||
size="small"
|
||||
icon="el-icon-document"
|
||||
>修改</el-link
|
||||
>
|
||||
<el-link
|
||||
type="danger"
|
||||
@click="handleDeleteClick(scope.row)"
|
||||
size="small"
|
||||
icon="el-icon-delete"
|
||||
>删除</el-link
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
<addserverDialog ref="serverAddRef" :title="title"></addserverDialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { ieddlServerApi, ieddlDelApi } from "@/utils/api/index";
|
||||
import addserverDialog from "./components/addserverDialog";
|
||||
export default {
|
||||
components: {
|
||||
addserverDialog,
|
||||
},
|
||||
name: "server",
|
||||
data() {
|
||||
return {
|
||||
filedLoading: false,
|
||||
serverData: [],
|
||||
title: "",
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getServerList();
|
||||
},
|
||||
mounted() {},
|
||||
watch: {},
|
||||
methods: {
|
||||
//获取字段映射
|
||||
getServerList() {
|
||||
this.filedLoading = true;
|
||||
ieddlServerApi()
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
this.serverData = res.data;
|
||||
|
||||
this.filedLoading = false;
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err); //代码错误、请求失败捕获
|
||||
});
|
||||
},
|
||||
//新增
|
||||
handleAddClick() {
|
||||
this.title = "新增客户端服务器";
|
||||
this.$refs.serverAddRef.display();
|
||||
},
|
||||
handleEditClick(data) {
|
||||
this.title = "修改";
|
||||
this.$refs.serverAddRef.display();
|
||||
this.$refs.serverAddRef.getdataform(data);
|
||||
},
|
||||
//删除数据
|
||||
handleDeleteClick(data) {
|
||||
console.log(data);
|
||||
this.$confirm(`确定要删除${data.ied.name}客户端服务器记录吗?`, "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
})
|
||||
.then(() => {
|
||||
ieddlDelApi({ id: data.id }).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message({
|
||||
duration: 1500,
|
||||
showClose: true,
|
||||
type: "success",
|
||||
message: "删除成功",
|
||||
});
|
||||
this.getServerList(); //刷新
|
||||
} else {
|
||||
this.$message({
|
||||
duration: 1500,
|
||||
showClose: true,
|
||||
type: "error",
|
||||
message: res.errorMsg,
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="less">
|
||||
.ieddlServer {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.page-body {
|
||||
width: calc(100% - 24px);
|
||||
height: calc(100% - 74px);
|
||||
padding: 12px;
|
||||
background: #eee;
|
||||
.zsbTableBox {
|
||||
margin-top: 8px;
|
||||
height: calc(100% - 38px);
|
||||
box-shadow: 1px 0 10px 1px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<div class="iceConfig">采集转换映射配置</div>
|
||||
</template>
|
||||
<script>
|
||||
import {} from "@/utils/api/index";
|
||||
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
mounted() {},
|
||||
methods: {},
|
||||
};
|
||||
</script>
|
||||
<style lang="less">
|
||||
.iceConfig {
|
||||
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%;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue