Browse Source

完善界面

master
lucky 4 years ago
parent
commit
3bc901816e
  1. 96
      src/components/dashboardOne.vue
  2. 103
      src/components/dashboardTow.vue
  3. 96
      src/components/memorabilia.vue
  4. 6
      src/views/jht.vue
  5. 2
      src/views/repo-five.vue
  6. 10
      src/views/style.css
  7. 2
      src/views/xh.vue
  8. 2
      src/views/yj.vue

96
src/components/dashboardOne.vue

@ -1,6 +1,6 @@
<template>
<div>
<div :style="{ width: '96%', height: '96%',margin: '50% auto'}" id="saturate1"></div>
<div class="clock">
<div :style="{ width: '96%', height: '96%',margin: '40% auto'}" id="saturate1"></div>
</div>
</template>
@ -96,42 +96,61 @@ export default defineComponent({
this.myCharts.setOption({
series: [
{
name: '停车位',
type: 'gauge',
type: "gauge",
progress: {
show: true,
},
axisLine: {
lineStyle: {
}
},
axisTick: {
show: false
},
splitLine: {
distance: 2,
length: 3,
lineStyle: {
show: true,
width: -15,
},
axisLine: {
lineStyle: {
width: -15,
},
},
axisTick: {
show: false,
},
splitLine: {
length: 20,
lineStyle: {
width: 1,
color: '#999'
}
},
axisLabel: {
distance: 15,
color: '#3AC7D7',
fontSize: 7
},
detail: {
fontSize: 10,
color: '#7C7C1C',
offsetCenter: [0, '70%']
},
data: [{
value: 70
}]
color: "#999",
},
},
axisLabel: {
distance: -10,
color: "#999",
fontSize: 12,
},
anchor: {
show: true,
showAbove: true,
size: 15,
itemStyle: {
borderWidth: 10,
},
},
title: {
fontSize: 12,
color: "#fff",
},
detail: {
valueAnimation: true,
fontSize: 18,
color: "#fff",
},
data: [
{
value: 62.89,
name: "停车位",
title: {
offsetCenter: ["0%", "70%"],
},
detail: {
offsetCenter: ["0%", "100%"],
},
},
],
},
],
})
},
@ -140,9 +159,14 @@ export default defineComponent({
</script>
<style scoped>
@import '../views/style.css';
/* @import '../views/style.css'; */
.saturate1 {
width: 1440rem;
height: 1110rem;
}
.clock{
margin-left: 10%;
width: 200rem;
height: 200rem;
}
</style>

103
src/components/dashboardTow.vue

@ -1,6 +1,6 @@
<template>
<div>
<div :style="{ width: '96%', height: '96%',margin: '50% auto'}" id="saturate2"></div>
<div class="clock">
<div :style="{ width: '96%', height: '96%',margin: '40% auto'}" id="saturate2"></div>
</div>
</template>
@ -96,42 +96,67 @@ export default defineComponent({
this.myCharts.setOption({
series: [
{
name: '饱和度',
type: 'gauge',
progress: {
show: true,
},
axisLine: {
lineStyle: {
}
},
axisTick: {
show: false
},
splitLine: {
distance: 2,
length: 3,
lineStyle: {
width: 1,
color: '#999'
}
},
axisLabel: {
distance: 15,
color: '#3AC7D7',
fontSize: 7
},
detail: {
fontSize: 10,
color: '#7C7C1C',
offsetCenter: [0, '70%']
},
data: [{
value: 70
}]
type: "gauge",
axisLine: {
lineStyle: {
width: 15,
color: [
[0.3, "#67e0e3"],
[0.7, "#37a2da"],
[1, "#fd666d"],
],
},
},
pointer: {
itemStyle: {
color: "auto",
},
},
axisTick: {
distance: -30,
length: 8,
lineStyle: {
color: "#fff",
width: 2,
},
},
splitLine: {
distance: -30,
length: 30,
lineStyle: {
color: "#fff",
width: 4,
},
},
axisLabel: {
color: "auto",
distance: 20,
fontSize: 12,
},
title: {
fontSize: 12,
color: "#fff",
},
detail: {
valueAnimation: true,
formatter: "{value} %",
color: "#fff",
fontSize: 18,
offsetCenter: [0, "90%"],
},
data: [
{
value: 73,
name: "使用面积",
title: {
offsetCenter: ["0%", "70%"],
},
detail: {
offsetCenter: ["0%", "100%"],
},
},
],
},
],
})
},
@ -145,4 +170,8 @@ export default defineComponent({
width: 1440rem;
height: 1110rem;
}
.clock{
width: 200rem;
height: 200rem;
}
</style>

96
src/components/memorabilia.vue

@ -3,34 +3,27 @@
<div class="title-value">
<div class="word">大事记</div>
</div>
<div :style="{ width: '92%', height: '92%',margin: '8% 5% auto 3%' }" id="memorabilia">
<div class="content">
<div class="firewall">
<div class="firewall1">防火墙</div>
<div class="firewall2">2021-04-08</div>
</div>
<div class="firewall3">
<p>有助于提高计算机的安全性Windows防火墙能够限制从其他计算机送到用户计算机上的信息...</p>
</div>
<div :style="{ width: '92%', height: '78%',margin: '8% 5% auto 3%' }" style="overflow:hidden">
<div class="matter" id="memorabilia">
<div :key="index" class="content" v-for="(detail,index) in details">
<div class="firewall">
<div class="firewall1">{{detail.title}}</div>
<div class="firewall2">{{detail.time}}</div>
</div>
<div class="firewall3">
<p>{{detail.describe}}</p>
</div>
</div>
<div class="content">
<div class="firewall">
<div class="firewall1">防火墙</div>
<div class="firewall2">2021-04-08</div>
</div>
<div class="firewall3">
<p>有助于提高计算机的安全性Windows防火墙能够限制从其他计算机送到用户计算机上的信息...</p>
</div>
</div>
<div class="content">
<div class="firewall">
<div class="firewall1">防火墙</div>
<div class="firewall2">2021-04-08</div>
</div>
<div class="firewall3">
<p>有助于提高计算机的安全性Windows防火墙能够限制从其他计算机送到用户计算机上的信息...</p>
</div>
<div :key="index" class="content" v-for="(detail,index) in details">
<div class="firewall">
<div class="firewall1">{{detail.title}}</div>
<div class="firewall2">{{detail.time}}</div>
</div>
<div class="firewall3">
<p>{{detail.describe}}</p>
</div>
</div>
</div>
</div>
<!-- <div :style="{ width: '92%', height: '92%',margin: 'auto 3% auto 5%' }" id="temperature"></div> -->
</div>
@ -38,18 +31,47 @@
<script lang="ts">
import { defineComponent } from 'vue'
import * as echarts from 'echarts'
import { getTeamAndHumidity } from 'api/api'
export default defineComponent({
name: 'memorabilia',
data() {
return {
myCharts: {},
temps: [],
details: [
{
title: '防火墙',
time: '2021-04-08',
describe:
'有助于提高计算机的安全性。Windows防火墙能够限制从其他计算机送到用户计算机上的信息,这使得用户可以更好的控制',
},
{
title: '代理服务器',
time: '2021-04-08',
describe:
'代理服务器代表内部客户端与外部的服务器通信,代理服务器这个术语通常是指一个应用级的网关,虽然电路级网关也可作为代理服务器的一种',
},
{
title: '包过滤',
time: '2021-04-08',
describe:
'包过滤是处理网络上基于packet-by-packet流量的设备,包过滤设备允许或阻止包,典型的实施方法是通过标准的路由器,包过滤是几种不同防火墙的类型之一.',
},
{
title: '电路级网关',
time: '2021-04-08',
describe:
'电路级网关用来监控受信任的客户或服务器与不受信任的主机间的TCP握手信息,这样来决定这个会话是否悠哉游哉,电路级网关是在OSI模型中会话层上来过滤数据包',
},
{
title: '代理服务器',
time: '2021-04-08',
describe:
'代理服务器代表内部客户端与外部的服务器通信,代理服务器这个术语通常是指一个应用级的网关,虽然电路级网关也可作为代理服务器的一种.',
},
],
}
},
methods: {},
})
</script>
@ -59,4 +81,18 @@ export default defineComponent({
width: 1440rem;
height: 1110rem;
}
.matter {
animation: myMove 20s linear infinite;
animation-fill-mode: forwards;
overflow: hidden;
}
/*文字无缝滚动*/
@keyframes myMove {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-392rem);
}
}
</style>

6
src/views/jht.vue

@ -7,13 +7,13 @@
<div class="flex flex-col flex-1 con">
<div class="flex justify-between floor1">
<!-- 大事记 -->
<Memorabilia />
<Memorabilia />
<!-- 饱和量 -->
<Saturate />
</div>
<div class="flex-1 iframe-wrap">
<!-- <iframe src="https://www.tall.wiki/wl/0"></iframe> -->
<iframe src="https://www.tall.wiki/wl/1"></iframe>
</div>
<div class="flex justify-between floor3">
@ -85,7 +85,7 @@ export default defineComponent({
Heat,
Curve,
Memorabilia,
Throughput
Throughput,
},
data() {

2
src/views/repo-five.vue

@ -13,7 +13,7 @@
</div>
<div class="flex-1 iframe-wrap">
<!-- <iframe src="https://www.tall.wiki/wl/0"></iframe> -->
<iframe src="https://www.tall.wiki/wl/4"></iframe>
</div>
<div class="flex justify-between floor3">

10
src/views/style.css

@ -177,14 +177,22 @@ iframe {
justify-content:space-between;
}
.firewall1{
font-size:18rem;
font-size:16rem;
}
.firewall2{
font-size:12rem;
}
.firewall3{
color: #19A2CC;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.dashboardFather{
display: flex;
}
.matter{
overflow:auto;
/* overflow: hidden; */
}

2
src/views/xh.vue

@ -13,7 +13,7 @@
</div>
<div class="flex-1 iframe-wrap">
<!-- <iframe src="https://www.tall.wiki/wl/0"></iframe> -->
<iframe src="https://www.tall.wiki/wl/2"></iframe>
</div>
<div class="flex justify-between floor3">

2
src/views/yj.vue

@ -13,7 +13,7 @@
</div>
<div class="flex-1 iframe-wrap">
<!-- <iframe src="https://www.tall.wiki/wl/0"></iframe> -->
<iframe src="https://www.tall.wiki/wl/3"></iframe>
</div>
<div class="flex justify-between floor3">

Loading…
Cancel
Save