From ab3a41ae6652a527d85211d47642c9761a1339ee Mon Sep 17 00:00:00 2001 From: Luck-Xiaomi <1569717859@qq.com> Date: Tue, 6 Sep 2022 11:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E5=BB=BA=E5=9B=9B=E5=B1=80(=E6=8C=87?= =?UTF-8?q?=E6=8C=A5=E4=B8=AD=E5=BF=83):=20=E4=BF=AE=E5=A4=8D=E5=B7=B2?= =?UTF-8?q?=E7=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../images/command-center/icon-noise.png | Bin 0 -> 507 bytes .../images/command-center/icon-pm10.png | Bin 0 -> 740 bytes .../images/command-center/icon-pm25.png | Bin 0 -> 789 bytes .../zjsj/command/LeftThree/Steps.vue | 19 +++- .../projectAdmin/zjsj/command/center.vue | 1 + .../projectAdmin/zjsj/command/leftFour.vue | 103 +++++++----------- .../projectAdmin/zjsj/command/leftOne.vue | 17 ++- .../projectAdmin/zjsj/command/rightFour.vue | 19 +++- .../projectAdmin/zjsj/command/rightOne.vue | 23 +++- .../projectAdmin/zjsj/command/rightThree.vue | 32 ++++-- .../projectAdmin/zjsj/command/rightTwo.vue | 88 ++++++++++----- 11 files changed, 194 insertions(+), 108 deletions(-) create mode 100644 src/views/projectAdmin/zjsj/assets/images/command-center/icon-noise.png create mode 100644 src/views/projectAdmin/zjsj/assets/images/command-center/icon-pm10.png create mode 100644 src/views/projectAdmin/zjsj/assets/images/command-center/icon-pm25.png diff --git a/src/views/projectAdmin/zjsj/assets/images/command-center/icon-noise.png b/src/views/projectAdmin/zjsj/assets/images/command-center/icon-noise.png new file mode 100644 index 0000000000000000000000000000000000000000..85eeff0e7316014d434736e5564809d0210717b7 GIT binary patch literal 507 zcmVVK~#7F?N%*Q z!$1(-FcpoYGDrpt#St4BWG(y!ko*RI0wA&2NNjNwMmD7*B18Y8wa< z4xXy{4;xY29KA8FWPEGeu(4!EjD!&~PSkvzx7I|kT_FlB^R0>IjEw#!bjG+_hp5S* zuHOX_a&#@@b4F}#aMcmQ88hA)g;I7zRpL`cPJ!iL1e;OGQ->3*Bl#~bqJLR$#X7tW zWQ?1PMFr{&p%*S9T`xG8$QWgTp34~{szT3PM7Wi@+aDPdrHbgcftMP$>H6>07>b4h z5+^8Jv{2|$1Y5{67gexhwH^s3_1-2$sqzjb$kkXmfdkagPqJ-9uT$43AF literal 0 HcmV?d00001 diff --git a/src/views/projectAdmin/zjsj/assets/images/command-center/icon-pm10.png b/src/views/projectAdmin/zjsj/assets/images/command-center/icon-pm10.png new file mode 100644 index 0000000000000000000000000000000000000000..359e05acf36ae530b98491b0bc3d9b9a08c8f832 GIT binary patch literal 740 zcmVz1z8>1-#7Nt` za8;8qrIPji%@S_ClTW0oL$py!B#;$vKFxeYFn5U{tNs78Vl&MK43Elq-mJy3oU@_}v&L!AFD2TNbneda1CLc?P02nB)})+eB8pj5ORlpf;|`fI zVxP^u4+DO;P^^*ArGa15S5j!C7?W5vEz=B$Fsf++YK911J2^q*R>>ry{H~Gg z&e00009?Nq^w#HUtAG`_3W3=-YaX(q;*$&tEIes#+su zABncy4nzrsMP?epOfLBPf&X1V&NpnR6ZHZfvBEMvz1TG!4G^g|w>g247QtqITx^q< zpOEOilPYcU3^H33HPcuB4&;Ov^nIeHNB7o9x%|--J({J5s}nMBJ_)1wE`IrAHJde&>01%i*^iU zM)?+$T~a2tD;4M-jD5`3GgPnXK-QWu0sHdFHKms zCWT3UdN}+?XktYckggZr+8GP@6BGE*O^Rq=`dkY|w` zXkA9jok7_tHhNhNBs@Zd-L%YV<&i7SWTK!(frO$ao2$VoLC#RaiWwahd|Uy&d<&{( zv{Dy7n>`~@m3oY~fWH>&=IVcZB* z@=P;kn4TUeTK#2v9>w!^H>#76$59XKMiXULD?DDZyQYLv)t69M2d THOVzc00000NkvXXu0mjf<+onA literal 0 HcmV?d00001 diff --git a/src/views/projectAdmin/zjsj/command/LeftThree/Steps.vue b/src/views/projectAdmin/zjsj/command/LeftThree/Steps.vue index 44ec6760..94340f41 100644 --- a/src/views/projectAdmin/zjsj/command/LeftThree/Steps.vue +++ b/src/views/projectAdmin/zjsj/command/LeftThree/Steps.vue @@ -51,11 +51,11 @@ // 当前状态 .active { - background: #6dc6d8; + // background: #6dc6d8; } .activeText { - color: #0EAEE9; + // color: #0EAEE9; } } @@ -95,6 +95,21 @@ } } + .steps-item:last-child { + .steps-item-num { + left: 100%; + } + + .steps-item-text { + align-items: flex-end; + transform: translateX(5px); + } + + .steps-item-line { + background-color: #fff; + } + } + } diff --git a/src/views/projectAdmin/zjsj/command/center.vue b/src/views/projectAdmin/zjsj/command/center.vue index 5f069731..37313fc7 100644 --- a/src/views/projectAdmin/zjsj/command/center.vue +++ b/src/views/projectAdmin/zjsj/command/center.vue @@ -74,6 +74,7 @@ export default { width: 50px; height: 50px; + cursor: pointer; } // 信息窗体 diff --git a/src/views/projectAdmin/zjsj/command/leftFour.vue b/src/views/projectAdmin/zjsj/command/leftFour.vue index e5f66338..1a3a8ae7 100644 --- a/src/views/projectAdmin/zjsj/command/leftFour.vue +++ b/src/views/projectAdmin/zjsj/command/leftFour.vue @@ -4,18 +4,6 @@
-
-
塔吊设备数
- -
-
-
升降机设备数
- -
-
-
视频设备数
- -
@@ -31,28 +19,53 @@ export default { return {} }, mounted() { - this.initChart('firstChart') - this.initChart('secondChart') - this.initChart('thirdChart') + this.initChart('firstChart', 7, '塔吊设备数', require('../assets/images/command-center/icon-tower.png')) + this.initChart('secondChart', 4, '升降机设备数', require('../assets/images/command-center/icon-lifter.png')) + this.initChart('thirdChart', 5, '视频设备数', require('../assets/images/command-center/icon-video.png')) }, methods: { - initChart(ref) { + initChart(ref, value, title = '默认标题', image) { const myChart = echarts.init(this.$refs[ref]) - let angle = 0 //角度,用来做简单的动画效果的 - let value = 7 + let angle = 0 // 角度,用来做简单的动画效果的 + const option = { // backgroundColor: '#061740', title: { - text: value, + text: '{a|'+ value +'}\n{b|'+ title +'}', + // text: '10\n' + title, x: 'center', y: 'center', top: '35%', textStyle: { - fontSize: 20, - color: '#e5e442' + rich: { + a: { + fontSize: 20, + color: '#e5e442' + }, + b: { + fontSize: 13, + color: '#ffffff', + padding: [5, 0] + } + } } }, + graphic: { + elements: [ + { + type: 'image', + style: { + image, + width: 20, + height: 20 + }, + left: '46%', + top: '59%', + z: 100 + } + ] + }, series: [ { name: 'ring5', @@ -329,63 +342,25 @@ export default { width: 100%; height: 100%; white-space: nowrap; - transform: translateY(-20px); - + transform: translateY(-15px); .item { display: inline-block; width: calc(100% / 2); - height: 100%; + height: 110%; color: transparent; &:nth-child(1) { - transform: translateX(-22%); + transform: translate(-22%, -6%); } &:nth-child(2) { - transform: translateX(-48%); + transform: translate(-48%, -6%); } &:nth-child(3) { - transform: translateX(-75%); + transform: translate(-75%, -6%); } } - - .box { - position: absolute; - color: #fff; - text-align: center; - font-size: 12px; - - .box-title { - margin-bottom: 3px; - } - - .image { - width: 20px; - height: 20px; - } - } - - .first-box { - bottom: 30%; - left: 7%; - } - - .first-box { - bottom: 30%; - left: 6.5%; - } - - .second-box { - bottom: 30%; - left: 42.5%; - } - - .third-box { - bottom: 30%; - left: 80.5%; - } } - diff --git a/src/views/projectAdmin/zjsj/command/leftOne.vue b/src/views/projectAdmin/zjsj/command/leftOne.vue index ea6b3eb1..aa2c5e09 100644 --- a/src/views/projectAdmin/zjsj/command/leftOne.vue +++ b/src/views/projectAdmin/zjsj/command/leftOne.vue @@ -21,7 +21,7 @@ export default { { name: '用地面积', content: '112768.21㎡' }, { name: '建设单位', content: '中建四局发展(广州天河)有限公司' }, { name: '设计单位', content: '中国建筑第四工程局有限公司' }, - { name: '勘察单位', content: '贵州中间建筑科研设计院有限公司' }, + { name: '勘察单位', content: '贵州中建建筑科研设计院有限公司' }, { name: '监理单位', content: '广州宏元建设工程咨询有限公司' }, ] }) @@ -40,11 +40,11 @@ export default { height: 100%; display: flex; flex-direction: column; - justify-content: space-between; color: #fff; overflow-y: scroll; .list-item { + position: relative; display: flex; box-sizing: border-box; border-left: 4px solid #66d3d8; @@ -60,6 +60,19 @@ export default { &:hover { padding: 20px 0; + &::before { + content: ''; + position: absolute; + top: 50%; + left: 8px; + display: inline-block; + transform: translate(0, -50%); + width: 8px; + height: 14px; + background-image: url('../assets/images/command-center/triangle.png'); + background-size: 100% 100%; + transition: all .3s; + } } &:hover .value { diff --git a/src/views/projectAdmin/zjsj/command/rightFour.vue b/src/views/projectAdmin/zjsj/command/rightFour.vue index ac21e411..c6bc0800 100644 --- a/src/views/projectAdmin/zjsj/command/rightFour.vue +++ b/src/views/projectAdmin/zjsj/command/rightFour.vue @@ -34,6 +34,10 @@ export default { { name: '中国建筑第四工程局有限公司', content: '' }, { name: '中国建筑第四工程局有限公司', content: '' }, { name: '中国建筑第四工程局有限公司', content: '' }, + { name: '中国建筑第四工程局有限公司', content: '' }, + { name: '中国建筑第四工程局有限公司', content: '' }, + { name: '中国建筑第四工程局有限公司', content: '' }, + { name: '中国建筑第四工程局有限公司', content: '' }, ] } }, @@ -84,11 +88,11 @@ export default { display: flex; flex-direction: column; - justify-content: space-between; color: #fff; overflow-y: scroll; .list-item { + position: relative; display: flex; box-sizing: border-box; border-left: 4px solid #66d3d8; @@ -104,6 +108,19 @@ export default { &:hover { padding: 20px 0; + &::before { + content: ''; + position: absolute; + top: 50%; + left: 8px; + display: inline-block; + transform: translate(0, -50%); + width: 6.6px; + height: 11.6px; + background-image: url('../assets/images/command-center/triangle.png'); + background-size: 100% 100%; + transition: all .3s; + } } &:hover .value { diff --git a/src/views/projectAdmin/zjsj/command/rightOne.vue b/src/views/projectAdmin/zjsj/command/rightOne.vue index 63157f8e..95446cfb 100644 --- a/src/views/projectAdmin/zjsj/command/rightOne.vue +++ b/src/views/projectAdmin/zjsj/command/rightOne.vue @@ -4,7 +4,7 @@
- +
45 % @@ -61,6 +61,9 @@ export default { height: 100%; .left { + box-sizing: border-box; + padding: 10px 0; + display: flex; flex-direction: column; justify-content: space-around; @@ -71,24 +74,36 @@ export default { .top { display: flex; + align-items: center; justify-content: center; + + width: 100%; + height: 140px; + .image { display: grid; place-items: center; position: relative; - width: 140px; - height: 140px; + width: 100%; + height: 100%; + img { + height: 140px; + } .value { position: absolute; top: 50%; left: 50%; - transform: translate(-50%, -16%); + transform: translate(-50%, -50%); font-size: 23px; } } } .bottom { + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; font-size: 13px; } diff --git a/src/views/projectAdmin/zjsj/command/rightThree.vue b/src/views/projectAdmin/zjsj/command/rightThree.vue index 0d649cab..7a8ec834 100644 --- a/src/views/projectAdmin/zjsj/command/rightThree.vue +++ b/src/views/projectAdmin/zjsj/command/rightThree.vue @@ -3,10 +3,9 @@
-
{{ item.label }}
+
+ +
{{ item.value }}
{{ item.unit }} @@ -47,9 +46,9 @@ export default { return { // 左边的列表 leftList: { - 'PM2.5': { label: 'PM2.5', value: 68, unit: 'μg/m³', labelColor: '#434337', color: '#ffc300' }, - PM10: { label: 'PM10', value: 36, unit: 'μg/m³', labelColor: '#3f353d', color: '#f46927' }, - 噪音: { label: '噪音', value: 13, unit: '%dB', labelColor: '#434c5d', color: '#c6c9ce' } + 'PM2.5': { label: 'PM2.5', value: 68, unit: 'μg/m³', image: require('../assets/images/command-center/icon-pm25.png'), }, + PM10: { label: 'PM10', value: 36, unit: 'μg/m³', image: require('../assets/images/command-center/icon-pm10.png') }, + 噪音: { label: '噪音', value: 13, unit: '%dB', image: require('../assets/images/command-center/icon-noise.png') } }, // 右边的列表 rightList: { @@ -63,8 +62,18 @@ export default { color: '#f66629', valueBackgroundImage: require('../assets/images/command-center/block3.png') }, - windDirection: { label: '风向', value: '东南', unit: '风', image: require('../assets/images/command-center/icon-windDirection.png') }, - barometricPressure: { label: '大气压', value: 101, unit: 'KPa', image: require('../assets/images/command-center/icon-barometricPressure.png') } + windDirection: { + label: '风向', + value: '东南', + unit: '风', + image: require('../assets/images/command-center/icon-windDirection.png') + }, + barometricPressure: { + label: '大气压', + value: 101, + unit: 'KPa', + image: require('../assets/images/command-center/icon-barometricPressure.png') + } } } }, @@ -99,6 +108,11 @@ export default { height: calc(100% / 3.5); + .image { + width: 18px; + margin-right: 20px; + } + .label { box-sizing: border-box; diff --git a/src/views/projectAdmin/zjsj/command/rightTwo.vue b/src/views/projectAdmin/zjsj/command/rightTwo.vue index 730b698b..1c55778f 100644 --- a/src/views/projectAdmin/zjsj/command/rightTwo.vue +++ b/src/views/projectAdmin/zjsj/command/rightTwo.vue @@ -1,7 +1,7 @@