刘龙龙
This commit is contained in:
parent
278643b965
commit
0597b4ad28
|
@ -13,6 +13,7 @@
|
||||||
"element-ui": "^2.15.14",
|
"element-ui": "^2.15.14",
|
||||||
"less": "^4.2.0",
|
"less": "^4.2.0",
|
||||||
"less-loader": "^11.1.3",
|
"less-loader": "^11.1.3",
|
||||||
|
"moment": "^2.29.4",
|
||||||
"postcss-pxtorem": "^6.0.0",
|
"postcss-pxtorem": "^6.0.0",
|
||||||
"prismjs": "^1.29.0",
|
"prismjs": "^1.29.0",
|
||||||
"sass-loader": "^13.3.2",
|
"sass-loader": "^13.3.2",
|
||||||
|
@ -7626,6 +7627,14 @@
|
||||||
"integrity": "sha512-23g5BFj4zdQL/b6tor7Ji+QY4pEfNH784BMslY9Qb0UnJWRAt+lQGLYmRaM0KDBwIG23ffEBELhZDP2rhi9f/Q==",
|
"integrity": "sha512-23g5BFj4zdQL/b6tor7Ji+QY4pEfNH784BMslY9Qb0UnJWRAt+lQGLYmRaM0KDBwIG23ffEBELhZDP2rhi9f/Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/moment": {
|
||||||
|
"version": "2.29.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
|
||||||
|
"integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
|
||||||
|
"engines": {
|
||||||
|
"node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/mrmime": {
|
"node_modules/mrmime": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmmirror.com/mrmime/-/mrmime-1.0.1.tgz",
|
"resolved": "https://registry.npmmirror.com/mrmime/-/mrmime-1.0.1.tgz",
|
||||||
|
@ -17241,6 +17250,11 @@
|
||||||
"integrity": "sha512-23g5BFj4zdQL/b6tor7Ji+QY4pEfNH784BMslY9Qb0UnJWRAt+lQGLYmRaM0KDBwIG23ffEBELhZDP2rhi9f/Q==",
|
"integrity": "sha512-23g5BFj4zdQL/b6tor7Ji+QY4pEfNH784BMslY9Qb0UnJWRAt+lQGLYmRaM0KDBwIG23ffEBELhZDP2rhi9f/Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"moment": {
|
||||||
|
"version": "2.29.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
|
||||||
|
"integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w=="
|
||||||
|
},
|
||||||
"mrmime": {
|
"mrmime": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmmirror.com/mrmime/-/mrmime-1.0.1.tgz",
|
"resolved": "https://registry.npmmirror.com/mrmime/-/mrmime-1.0.1.tgz",
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
"element-ui": "^2.15.14",
|
"element-ui": "^2.15.14",
|
||||||
"less": "^4.2.0",
|
"less": "^4.2.0",
|
||||||
"less-loader": "^11.1.3",
|
"less-loader": "^11.1.3",
|
||||||
|
"moment": "^2.29.4",
|
||||||
"postcss-pxtorem": "^6.0.0",
|
"postcss-pxtorem": "^6.0.0",
|
||||||
"prismjs": "^1.29.0",
|
"prismjs": "^1.29.0",
|
||||||
"sass-loader": "^13.3.2",
|
"sass-loader": "^13.3.2",
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-button @click="dialogVisible = true">网关维护</el-button>
|
<!-- <el-button @click="dialogVisible = true">网关维护</el-button> -->
|
||||||
<el-dialog title="网关维护" :visible.sync="dialogVisible">
|
<el-dialog
|
||||||
|
title="网关维护"
|
||||||
|
:visible.sync="dialogVisible"
|
||||||
|
:append-to-body="true"
|
||||||
|
>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<el-button @click="flag = true">新增参数</el-button>
|
<el-button @click="flag = true">新增参数</el-button>
|
||||||
|
@ -172,7 +176,7 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: true,
|
||||||
labelPosition: "left",
|
labelPosition: "left",
|
||||||
flag: false,
|
flag: false,
|
||||||
tableData: [
|
tableData: [
|
||||||
|
@ -225,6 +229,7 @@ export default {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
created() {},
|
||||||
methods: {
|
methods: {
|
||||||
handleSelectionChange() {},
|
handleSelectionChange() {},
|
||||||
cellStyle({ row, column }) {
|
cellStyle({ row, column }) {
|
||||||
|
|
|
@ -4,6 +4,15 @@ import ElementUI from "element-ui";
|
||||||
import router from "./router";
|
import router from "./router";
|
||||||
import "element-ui/lib/theme-chalk/index.css";
|
import "element-ui/lib/theme-chalk/index.css";
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
|
|
||||||
|
import moment from "moment";
|
||||||
|
//定义一个全局过滤器实现日期格式化
|
||||||
|
Vue.filter("datefmt", function (input, fmtstring) {
|
||||||
|
//当input为时间戳时,需转为Number类型
|
||||||
|
// 使用momentjs这个日期格式化类库实现日期的格式化功能
|
||||||
|
return moment(input).format(fmtstring);
|
||||||
|
});
|
||||||
|
Vue.prototype.$moment = moment;
|
||||||
Vue.use(ElementUI);
|
Vue.use(ElementUI);
|
||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
|
|
|
@ -158,6 +158,11 @@ export let mainshaftChart = {
|
||||||
};
|
};
|
||||||
//负载电流监控
|
//负载电流监控
|
||||||
export let loadChartChart = {
|
export let loadChartChart = {
|
||||||
|
tooltip: {
|
||||||
|
//悬浮框
|
||||||
|
show: true, // 是否显示
|
||||||
|
trigger: "item", //
|
||||||
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: "category",
|
type: "category",
|
||||||
data: ["08:00", "10:00", "12:00", "14:00", "16:00", "18:00"],
|
data: ["08:00", "10:00", "12:00", "14:00", "16:00", "18:00"],
|
||||||
|
@ -226,6 +231,11 @@ export let loadChartChart = {
|
||||||
};
|
};
|
||||||
//额定电流监控
|
//额定电流监控
|
||||||
export let ratedChart = {
|
export let ratedChart = {
|
||||||
|
tooltip: {
|
||||||
|
//悬浮框
|
||||||
|
show: true, // 是否显示
|
||||||
|
trigger: "item", //
|
||||||
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: "category",
|
type: "category",
|
||||||
data: ["08:00", "10:00", "12:00", "14:00", "16:00", "18:00"],
|
data: ["08:00", "10:00", "12:00", "14:00", "16:00", "18:00"],
|
||||||
|
@ -373,6 +383,11 @@ export let CuttingSpeedChart = {
|
||||||
};
|
};
|
||||||
//急停状态监控
|
//急停状态监控
|
||||||
export let stopChart = {
|
export let stopChart = {
|
||||||
|
tooltip: {
|
||||||
|
//悬浮框
|
||||||
|
show: true, // 是否显示
|
||||||
|
trigger: "item", //
|
||||||
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: "category",
|
type: "category",
|
||||||
data: [
|
data: [
|
||||||
|
|
|
@ -1,6 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="title">5G工厂机电智核数字孪生平台</div>
|
<div class="btns">
|
||||||
|
<div class="btnOne">提交</div>
|
||||||
|
<div class="btnTwo">网关配置</div>
|
||||||
|
<div class="btnThree">网关维护</div>
|
||||||
|
<div class="btnFour">网关监控</div>
|
||||||
|
</div>
|
||||||
|
<div class="title">
|
||||||
|
<img src="../assets/image/工业互联网驾驶舱文字_03.png" alt="" />
|
||||||
|
<span class="date">{{ data }}</span>
|
||||||
|
<span class="time">{{ time }}</span>
|
||||||
|
</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="topBox">
|
<div class="topBox">
|
||||||
<div>
|
<div>
|
||||||
|
@ -87,9 +97,13 @@ export default {
|
||||||
ratedChartOption: {},
|
ratedChartOption: {},
|
||||||
CuttingSpeedChartOption: {},
|
CuttingSpeedChartOption: {},
|
||||||
stopChartOption: {},
|
stopChartOption: {},
|
||||||
|
data: "",
|
||||||
|
time: "",
|
||||||
|
timer: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.time = this.$moment().format("HH:mm:ss");
|
||||||
this.productChartOption = productChart;
|
this.productChartOption = productChart;
|
||||||
this.mainshaftChartOption = mainshaftChart;
|
this.mainshaftChartOption = mainshaftChart;
|
||||||
this.loadChartChartOption = loadChartChart;
|
this.loadChartChartOption = loadChartChart;
|
||||||
|
@ -98,19 +112,24 @@ export default {
|
||||||
this.stopChartOption = stopChart;
|
this.stopChartOption = stopChart;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//根据屏幕自适应图表字体
|
||||||
|
fontSize(res) {
|
||||||
|
const clientWidth =
|
||||||
|
window.innerWidth ||
|
||||||
|
document.documentElement.clientWidth ||
|
||||||
|
document.body.clientWidth;
|
||||||
|
if (!clientWidth) return;
|
||||||
|
let fontSize = clientWidth / 1920;
|
||||||
|
return res * fontSize;
|
||||||
|
},
|
||||||
|
//加载图表的方法
|
||||||
getLoadEcharts(dom, option) {
|
getLoadEcharts(dom, option) {
|
||||||
var myChart = echarts.init(document.getElementById(dom), null, {
|
var myChart = echarts.init(document.getElementById(dom), null, {
|
||||||
devicePixelRatio: 10, // 设置为2或更高的值
|
devicePixelRatio: 10, // 设置为2或更高的值
|
||||||
});
|
});
|
||||||
// if (option) {
|
option.xAxis.axisLabel.textStyle.fontSize = this.fontSize(10);
|
||||||
// console.log(option.xAxis.axisLabel.textStyle);
|
option.yAxis.axisLabel.textStyle.fontSize = this.fontSize(10);
|
||||||
// option.xAxis.axisLabel.textStyle.fontSize =
|
|
||||||
// this.$fontSize.fontSize(0.1);
|
|
||||||
// option.yAxis.axisLabel.textStyle.fontSize =
|
|
||||||
// this.$fontSize.fontSize(0.1);
|
|
||||||
// }
|
|
||||||
myChart.setOption(option);
|
myChart.setOption(option);
|
||||||
|
|
||||||
window.addEventListener("resize", function () {
|
window.addEventListener("resize", function () {
|
||||||
myChart.resize();
|
myChart.resize();
|
||||||
});
|
});
|
||||||
|
@ -123,6 +142,15 @@ export default {
|
||||||
this.getLoadEcharts("ratedChart", this.ratedChartOption);
|
this.getLoadEcharts("ratedChart", this.ratedChartOption);
|
||||||
this.getLoadEcharts("one", this.CuttingSpeedChartOption);
|
this.getLoadEcharts("one", this.CuttingSpeedChartOption);
|
||||||
this.getLoadEcharts("two", this.stopChartOption);
|
this.getLoadEcharts("two", this.stopChartOption);
|
||||||
|
//实时更新日期数据
|
||||||
|
this.timer = setInterval(() => {
|
||||||
|
this.time = this.$moment().format("HH:mm:ss");
|
||||||
|
this.data = this.$moment().format("YYYY.MM.DD");
|
||||||
|
}, 100);
|
||||||
|
},
|
||||||
|
beforeDestory() {
|
||||||
|
// 清除定时器以防止内存泄漏
|
||||||
|
clearInterval(this.timer);
|
||||||
},
|
},
|
||||||
beforeDestoryed() {
|
beforeDestoryed() {
|
||||||
// 组件销毁前移除监听,防止内存泄露
|
// 组件销毁前移除监听,防止内存泄露
|
||||||
|
@ -138,13 +166,45 @@ export default {
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
font-family: "SourceHanSansSC-regular";
|
font-family: "SourceHanSansSC-regular";
|
||||||
|
position: relative;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
// background-image: url("../assets/image/图片 2 Copy@1x.png");
|
background-image: url("../assets/image/图片 2 Copy@1x.png");
|
||||||
background-size: cover; /* 图像大小适应容器 */
|
background-size: cover; /* 图像大小适应容器 */
|
||||||
background-repeat: no-repeat; /* 防止图像平铺 */
|
background-repeat: no-repeat; /* 防止图像平铺 */
|
||||||
background-position: center; /* 图像在容器中居中 */
|
background-position: center; /* 图像在容器中居中 */
|
||||||
|
.btns {
|
||||||
|
div {
|
||||||
|
width: 146px;
|
||||||
|
height: 39px;
|
||||||
|
position: absolute;
|
||||||
|
background-image: url("../assets/image/未选中-文字背景_06.png");
|
||||||
|
background-size: cover; /* 图像大小适应容器 */
|
||||||
|
background-repeat: no-repeat; /* 防止图像平铺 */
|
||||||
|
background-position: center; /* 图像在容器中居中 */
|
||||||
|
color: #fff;
|
||||||
|
font-size: 20px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 39px;
|
||||||
|
right: 10px;
|
||||||
|
font-family: "Microsoft Yahei";
|
||||||
|
}
|
||||||
|
.btnOne {
|
||||||
|
top: 80px;
|
||||||
|
}
|
||||||
|
.btnTwo {
|
||||||
|
top: 129px;
|
||||||
|
}
|
||||||
|
.btnThree {
|
||||||
|
top: 178px;
|
||||||
|
}
|
||||||
|
.btnFour {
|
||||||
|
top: 227px;
|
||||||
|
color: #6b92fd;
|
||||||
|
background-image: url("../assets/image/选中-文字背景_07.png");
|
||||||
|
}
|
||||||
|
}
|
||||||
.title {
|
.title {
|
||||||
height: 11%;
|
height: 11%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -153,11 +213,29 @@ export default {
|
||||||
font-size: 48px;
|
font-size: 48px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-family: "SourceHanSansSC-regular";
|
font-family: "SourceHanSansSC-regular";
|
||||||
// background-image: url("../assets/image/边框样式2@1x.png");
|
background-image: url("../assets/image/head.png");
|
||||||
// background-image: url("../assets/image/工业互联网驾驶舱文字_03.png");
|
|
||||||
background-size: cover; /* 图像大小适应容器 */
|
background-size: cover; /* 图像大小适应容器 */
|
||||||
background-repeat: no-repeat; /* 防止图像平铺 */
|
background-repeat: no-repeat; /* 防止图像平铺 */
|
||||||
background-position: center; /* 图像在容器中居中 */
|
background-position: center; /* 图像在容器中居中 */
|
||||||
|
img {
|
||||||
|
width: 20vw;
|
||||||
|
margin-top: -15px;
|
||||||
|
}
|
||||||
|
.date {
|
||||||
|
position: absolute;
|
||||||
|
font-size: 15px;
|
||||||
|
font-family: "myFont";
|
||||||
|
left: 10px;
|
||||||
|
top: 10px;
|
||||||
|
color: #5e7dd5;
|
||||||
|
}
|
||||||
|
.time {
|
||||||
|
position: absolute;
|
||||||
|
font-size: 24px;
|
||||||
|
font-family: "myFont";
|
||||||
|
left: 10px;
|
||||||
|
top: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.bottom {
|
.bottom {
|
||||||
height: calc(100vh - 11%);
|
height: calc(100vh - 11%);
|
||||||
|
|
|
@ -58,21 +58,21 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<!-- //串口及网络协议设置 -->
|
<!-- //串口及网络协议设置 -->
|
||||||
<netConfiguration />
|
<!-- <netConfiguration /> -->
|
||||||
<!-- 网口配置 -->
|
<!-- 网口配置 -->
|
||||||
<NetworkConfiguration />
|
<!-- <NetworkConfiguration /> -->
|
||||||
<!-- 无线配置 -->
|
<!-- 无线配置 -->
|
||||||
<Wireles />
|
<!-- <Wireles /> -->
|
||||||
<!-- 网络管理 -->
|
<!-- 网络管理 -->
|
||||||
<NetworkManagement />
|
<!-- <NetworkManagement /> -->
|
||||||
<!-- 对象管理 -->
|
<!-- 对象管理 -->
|
||||||
<ObjectManagement />
|
<!-- <ObjectManagement /> -->
|
||||||
<!-- 策略管理 -->
|
<!-- 策略管理 -->
|
||||||
<PolicyManagement />
|
<!-- <PolicyManagement /> -->
|
||||||
<!-- 网关配置 -->
|
<!-- 网关配置 -->
|
||||||
<GatewayConfiguration />
|
<!-- <GatewayConfiguration /> -->
|
||||||
<!-- 网关维护 -->
|
<!-- 网关维护 -->
|
||||||
<GatewayMaintenance />
|
<!-- <GatewayMaintenance /> -->
|
||||||
<div>
|
<div>
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div>网络优化-网关维护</div>
|
<div><GatewayMaintenance /></div>
|
||||||
</template>
|
</template>
|
||||||
|
<script>
|
||||||
|
import GatewayMaintenance from "../components/GatewayMaintenance.vue";
|
||||||
|
export default {
|
||||||
|
name: "ntmaintenance",
|
||||||
|
data() {},
|
||||||
|
components: {
|
||||||
|
GatewayMaintenance,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue