From 322dccfbc14ca414bc6d009436c0a12737fa54bc Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Fri, 14 Jun 2024 17:20:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=9F=E6=88=B7=E7=9A=84=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/css/module.css | 134 ++++++++++++ src/views/index/moduleInfo.vue | 260 ++++++++++++++++++++++ src/views/index/tenantIndex.vue | 371 +------------------------------- 3 files changed, 398 insertions(+), 367 deletions(-) create mode 100644 src/views/index/css/module.css create mode 100644 src/views/index/moduleInfo.vue diff --git a/src/views/index/css/module.css b/src/views/index/css/module.css new file mode 100644 index 00000000..6b419f33 --- /dev/null +++ b/src/views/index/css/module.css @@ -0,0 +1,134 @@ +.cardClass { + width: 100%; + height: 100%; + border-radius: 10px; +} + +.spaceButton{ + margin-right: 3px +} + +.visual { + width: 80px; + height: 80px; + display: block; + float: left; + padding-top: 2px; + padding-left: -30px; + margin-bottom: 15px; + font-size: 100px; + line-height: 55px; + background-size: contain; + opacity: 0.2; /* 调整透明度以使其成为背景 */ +} + + + +.visual45G { + width: 80px; + height: 80px; + display: block; + float: left; + padding-top: 2px; + padding-left: -30px; + margin-bottom: 15px; + font-size: 100px; + line-height: 55px; + background-size: contain; + opacity: 0.01; /* 调整透明度以使其成为背景 */ +} + +/* 45G基站数,在线用户数 */ +.details { + position: absolute; + right: 15px; + padding-right: 15px; +} +/* +.details { + margin-left: 12px; + right: 15px; + padding-right: 15px; +} +*/ + +.number { + padding-top: 25px; + text-align: left; + font-size: 34px; + line-height: 36px; + letter-spacing: -1px; + margin-bottom: 0px; + font-weight: 300; +} + +.desc { + text-align: right; + font-size: 16px; + letter-spacing: 0px; + font-weight: 400; +} + + +/* .more { + clear: both; + display: block; + padding: 6px 10px 6px 10px; + position: relative; + text-transform: uppercase; + font-weight: 300; + font-size: 11px; + opacity: 0.7; + filter: alpha(opacity=70); + color: #e00909; + background-color: #e00909; +} + +.more:hover { + text-decoration: none; + opacity: 0.9; + filter: alpha(opacity=90); +} */ + +.flexibleSpan { + width: 100%; + position: relative; + line-height: 2rem; + white-space: nowrap; + text-align: start; + text-overflow: ellipsis; + overflow: hidden; +} + +.flexibleSpan::before { + content: ' '; + position: absolute; + top: 1px; + left: 0; + right: 0; + width: 100%; + bottom: 0; + z-index: 0; + height: 2px; + border-radius: 4px; +} + +.dataSpan::before{ + background-image:linear-gradient(135deg,#93f9b9,#1d976c); +} + +.gNodeBSpan::before { + background-image: linear-gradient(135deg, #3c8ce7, #00eaff); +} + +.eNodeBSpan::before { + background-image: linear-gradient(135deg, #3bb2b8, #42e695); +} + +.gUserSpan::before { + background-image: linear-gradient(135deg, #00eaff, #3c8ce7); +} + +.eUserSpan::before { + background-image: linear-gradient(135deg, #42e695, #3bb2b8); +} \ No newline at end of file diff --git a/src/views/index/moduleInfo.vue b/src/views/index/moduleInfo.vue new file mode 100644 index 00000000..6ca4488a --- /dev/null +++ b/src/views/index/moduleInfo.vue @@ -0,0 +1,260 @@ + + + + + diff --git a/src/views/index/tenantIndex.vue b/src/views/index/tenantIndex.vue index 8e93e10d..7e8803a0 100644 --- a/src/views/index/tenantIndex.vue +++ b/src/views/index/tenantIndex.vue @@ -1,373 +1,22 @@ @@ -378,16 +27,4 @@ onMounted(() => { width: 100%; border-radius: 10px; } - -.chart { - width: 100%; - height: 100%; - margin-top: 0.1rem; -} - -.chart-container { - /* 设置图表容器大小和位置 */ - width: 100%; - height: 100%; -}