Browse Source

背景、文字等颜色微调

develop
fuguobin 1 year ago
parent
commit
9ab1a2e570
  1. 4
      .env.production
  2. 88
      src/assets/iconfont/demo_index.html
  3. 22
      src/assets/iconfont/iconfont.css
  4. 2
      src/assets/iconfont/iconfont.js
  5. 28
      src/assets/iconfont/iconfont.json
  6. BIN
      src/assets/iconfont/iconfont.ttf
  7. BIN
      src/assets/iconfont/iconfont.woff
  8. BIN
      src/assets/iconfont/iconfont.woff2
  9. 4
      src/types/auto-imports.d.ts
  10. 2
      src/types/components.d.ts
  11. 16
      src/views/details/index.scss
  12. 20
      src/views/details/index.vue
  13. 12
      src/views/monitoring/components/header.vue
  14. 4
      src/views/monitoring/components/menu.vue
  15. 42
      src/views/monitoring/screen/index.scss

4
.env.production

@ -5,6 +5,6 @@ VITE_APP_PORT = 8089
#VITE_APP_WS_API = 'ws://board.heatiot.cn:8001/prod-api' ## websocket地址 #VITE_APP_WS_API = 'ws://board.heatiot.cn:8001/prod-api' ## websocket地址
#VITE_APP_BASE_API = 'http://board.heatiot.cn:8001/prod-api/' ## 线上接口 #VITE_APP_BASE_API = 'http://board.heatiot.cn:8001/prod-api/' ## 线上接口
#VITE_APP_WS_API = 'ws://${window.location.host}/ws' ## websocket地址 ws://10.10.10.56:9000/websocket/ #VITE_APP_WS_API = 'ws://${window.location.host}/ws' ## websocket地址 ws://10.10.10.56:9000/websocket/
VITE_APP_BASE_API = '/prod-api/' ## 正式环境 # VITE_APP_BASE_API = '/prod-api/' ## 正式环境
# VITE_APP_BASE_API = '/biprod-api/' ## 测试环境 VITE_APP_BASE_API = '/biprod-api/' ## 测试环境

88
src/assets/iconfont/demo_index.html

@ -55,15 +55,27 @@
<ul class="icon_lists dib-box"> <ul class="icon_lists dib-box">
<li class="dib"> <li class="dib">
<span class="icon iconfont">&#xe621;</span> <span class="icon iconfont">&#xe6c5;</span>
<div class="name">编辑</div> <div class="name">换热站</div>
<div class="code-name">&amp;#xe621;</div> <div class="code-name">&amp;#xe6c5;</div>
</li>
<li class="dib">
<span class="icon iconfont">&#xe6be;</span>
<div class="name">list</div>
<div class="code-name">&amp;#xe6be;</div>
</li> </li>
<li class="dib"> <li class="dib">
<span class="icon iconfont">&#xe6e7;</span> <span class="icon iconfont">&#xe83d;</span>
<div class="name">箭头</div> <div class="name">more</div>
<div class="code-name">&amp;#xe6e7;</div> <div class="code-name">&amp;#xe83d;</div>
</li>
<li class="dib">
<span class="icon iconfont">&#xe621;</span>
<div class="name">编辑</div>
<div class="code-name">&amp;#xe621;</div>
</li> </li>
<li class="dib"> <li class="dib">
@ -408,9 +420,9 @@
<pre><code class="language-css" <pre><code class="language-css"
>@font-face { >@font-face {
font-family: 'iconfont'; font-family: 'iconfont';
src: url('iconfont.woff2?t=1694485516205') format('woff2'), src: url('iconfont.woff2?t=1699254830523') format('woff2'),
url('iconfont.woff?t=1694485516205') format('woff'), url('iconfont.woff?t=1699254830523') format('woff'),
url('iconfont.ttf?t=1694485516205') format('truetype'); url('iconfont.ttf?t=1699254830523') format('truetype');
} }
</code></pre> </code></pre>
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3> <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@ -437,20 +449,38 @@
<ul class="icon_lists dib-box"> <ul class="icon_lists dib-box">
<li class="dib"> <li class="dib">
<span class="icon iconfont icon-edit-icon"></span> <span class="icon iconfont icon-station"></span>
<div class="name"> <div class="name">
编辑 换热站
</div> </div>
<div class="code-name">.icon-edit-icon <div class="code-name">.icon-station
</div>
</li>
<li class="dib">
<span class="icon iconfont icon-list"></span>
<div class="name">
list
</div>
<div class="code-name">.icon-list
</div>
</li>
<li class="dib">
<span class="icon iconfont icon-more"></span>
<div class="name">
more
</div>
<div class="code-name">.icon-more
</div> </div>
</li> </li>
<li class="dib"> <li class="dib">
<span class="icon iconfont icon-jiantou"></span> <span class="icon iconfont icon-edit-icon"></span>
<div class="name"> <div class="name">
箭头 编辑
</div> </div>
<div class="code-name">.icon-jiantou <div class="code-name">.icon-edit-icon
</div> </div>
</li> </li>
@ -969,18 +999,34 @@
<li class="dib"> <li class="dib">
<svg class="icon svg-icon" aria-hidden="true"> <svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-edit-icon"></use> <use xlink:href="#icon-station"></use>
</svg> </svg>
<div class="name">编辑</div> <div class="name">换热站</div>
<div class="code-name">#icon-edit-icon</div> <div class="code-name">#icon-station</div>
</li> </li>
<li class="dib"> <li class="dib">
<svg class="icon svg-icon" aria-hidden="true"> <svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-jiantou"></use> <use xlink:href="#icon-list"></use>
</svg> </svg>
<div class="name">箭头</div> <div class="name">list</div>
<div class="code-name">#icon-jiantou</div> <div class="code-name">#icon-list</div>
</li>
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-more"></use>
</svg>
<div class="name">more</div>
<div class="code-name">#icon-more</div>
</li>
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-edit-icon"></use>
</svg>
<div class="name">编辑</div>
<div class="code-name">#icon-edit-icon</div>
</li> </li>
<li class="dib"> <li class="dib">

22
src/assets/iconfont/iconfont.css

@ -1,8 +1,8 @@
@font-face { @font-face {
font-family: "iconfont"; /* Project id 3987011 */ font-family: "iconfont"; /* Project id 3987011 */
src: url('iconfont.woff2?t=1694485516205') format('woff2'), src: url('iconfont.woff2?t=1699254830523') format('woff2'),
url('iconfont.woff?t=1694485516205') format('woff'), url('iconfont.woff?t=1699254830523') format('woff'),
url('iconfont.ttf?t=1694485516205') format('truetype'); url('iconfont.ttf?t=1699254830523') format('truetype');
} }
.iconfont { .iconfont {
@ -13,12 +13,20 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-edit-icon:before { .icon-station:before {
content: "\e621"; content: "\e6c5";
}
.icon-list:before {
content: "\e6be";
} }
.icon-jiantou:before { .icon-more:before {
content: "\e6e7"; content: "\e83d";
}
.icon-edit-icon:before {
content: "\e621";
} }
.icon-arrow-up:before { .icon-arrow-up:before {

2
src/assets/iconfont/iconfont.js

File diff suppressed because one or more lines are too long

28
src/assets/iconfont/iconfont.json

@ -5,6 +5,27 @@
"css_prefix_text": "icon-", "css_prefix_text": "icon-",
"description": "", "description": "",
"glyphs": [ "glyphs": [
{
"icon_id": "18911700",
"name": "换热站",
"font_class": "station",
"unicode": "e6c5",
"unicode_decimal": 59077
},
{
"icon_id": "8474293",
"name": "list",
"font_class": "list",
"unicode": "e6be",
"unicode_decimal": 59070
},
{
"icon_id": "34453016",
"name": "more",
"font_class": "more",
"unicode": "e83d",
"unicode_decimal": 59453
},
{ {
"icon_id": "33987167", "icon_id": "33987167",
"name": "编辑", "name": "编辑",
@ -12,13 +33,6 @@
"unicode": "e621", "unicode": "e621",
"unicode_decimal": 58913 "unicode_decimal": 58913
}, },
{
"icon_id": "9371505",
"name": "箭头",
"font_class": "jiantou",
"unicode": "e6e7",
"unicode_decimal": 59111
},
{ {
"icon_id": "34453072", "icon_id": "34453072",
"name": "up", "name": "up",

BIN
src/assets/iconfont/iconfont.ttf

Binary file not shown.

BIN
src/assets/iconfont/iconfont.woff

Binary file not shown.

BIN
src/assets/iconfont/iconfont.woff2

Binary file not shown.

4
src/types/auto-imports.d.ts

@ -4,6 +4,8 @@ declare global {
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const ElMessage: typeof import('element-plus/es')['ElMessage'] const ElMessage: typeof import('element-plus/es')['ElMessage']
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
const ElNotification: typeof import('element-plus/es')['ElNotification']
const NEllipsis: typeof import('naive-ui')['NEllipsis']
const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
const autoResetRef: typeof import('@vueuse/core')['autoResetRef'] const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
const computed: typeof import('vue')['computed'] const computed: typeof import('vue')['computed']
@ -272,6 +274,8 @@ declare module 'vue' {
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']> readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']> readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']> readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
readonly ElNotification: UnwrapRef<typeof import('element-plus/es')['ElNotification']>
readonly NEllipsis: UnwrapRef<typeof import('naive-ui')['NEllipsis']>
readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']> readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>
readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']> readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>
readonly computed: UnwrapRef<typeof import('vue')['computed']> readonly computed: UnwrapRef<typeof import('vue')['computed']>

2
src/types/components.d.ts

@ -22,9 +22,11 @@ declare module '@vue/runtime-core' {
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
ElForm: typeof import('element-plus/es')['ElForm'] ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput'] ElInput: typeof import('element-plus/es')['ElInput']
ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElMenuItemGroup: typeof import('element-plus/es')['ElMenuItemGroup']
ElOption: typeof import('element-plus/es')['ElOption'] ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination'] ElPagination: typeof import('element-plus/es')['ElPagination']
ElRow: typeof import('element-plus/es')['ElRow'] ElRow: typeof import('element-plus/es')['ElRow']

16
src/views/details/index.scss

@ -29,7 +29,22 @@
} }
} }
.echart { .echart {
:deep(.el-card__body) {
display: flex;
.sidebar {
width: 220px;
border: 1px solid #e8eaec;
margin-right: 1.5rem;
.deviceMenu {
border-right: none;
.el-menu-item {
height: 45px;
line-height: 45px;
}
}
}
.comparisonInfo { .comparisonInfo {
flex: 1;
.stackedLine { .stackedLine {
width: 100%; width: 100%;
height: 66vh; height: 66vh;
@ -40,6 +55,7 @@
} }
} }
} }
}
.copyright { .copyright {
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;

20
src/views/details/index.vue

@ -98,6 +98,19 @@
</el-form> </el-form>
</el-card> </el-card>
<el-card class="echart" shadow="always"> <el-card class="echart" shadow="always">
<!-- <div class="sidebar">
<h3>换热站</h3>
<el-menu default-active="1" class="deviceMenu" @select="handleSelect" @open="handleOpen">
<el-menu-item index="1">
<el-icon><icon-menu /></el-icon>
<span>Navigator one</span>
</el-menu-item>
<el-menu-item index="2">
<el-icon><icon-menu /></el-icon>
<span>Navigator Two</span>
</el-menu-item>
</el-menu>
</div> -->
<div class="comparisonInfo"> <div class="comparisonInfo">
<div ref="stackedRef" class="stackedLine">暂无数据</div> <div ref="stackedRef" class="stackedLine">暂无数据</div>
</div> </div>
@ -1120,6 +1133,13 @@ onMounted(() => {
// chart.setOption(options2); // chart.setOption(options2);
}); });
const handleSelect = (key: string, keyPath: string[], item: object) => {
console.log(key, keyPath, item);
};
const handleOpen = (key: string, keyPath: string[]) => {
console.log(key, keyPath);
};
function lineClick() { function lineClick() {
// //
router.go(-1); router.go(-1);

12
src/views/monitoring/components/header.vue

@ -342,14 +342,15 @@ function warClose() {
.title { .title {
width: 80%; width: 80%;
height: 70px;
line-height: 70px;
// background: url(@/assets/images/title-bg.png); // background: url(@/assets/images/title-bg.png);
// background-size: 100%; // background-size: 100%;
text-align: center; text-align: center;
padding-bottom: 38px; // padding-bottom: 22px;
margin: 0 auto; margin: 0 auto;
h3 { h3 {
height: 57px;
font-size: 4.2rem; font-size: 4.2rem;
font-family: 'YouSheBiaoTiHei'; font-family: 'YouSheBiaoTiHei';
font-weight: 400; font-weight: 400;
@ -365,10 +366,9 @@ function warClose() {
.weather { .weather {
position: absolute; position: absolute;
top: 2.5rem; top: 10px;
left: 7rem; left: 7rem;
font-size: 1.8rem; font-size: 1.6rem;
line-height: 2.2rem;
font-family: 'AlibabaPuHuiTiRegular'; font-family: 'AlibabaPuHuiTiRegular';
.timeTips { .timeTips {
display: flex; display: flex;
@ -402,7 +402,7 @@ function warClose() {
.seeting { .seeting {
position: absolute; position: absolute;
top: 2.5rem; top: 20px;
right: 7rem; right: 7rem;
.warningbadge { .warningbadge {

4
src/views/monitoring/components/menu.vue

@ -226,7 +226,7 @@ function menuUpdateValue(key: string, item: MenuOption) {
} }
.n-menu-item-content--selected::before { .n-menu-item-content--selected::before {
background: -webkit-linear-gradient(left, #c9eaff 0%, #f2f3f5 100%); background: -webkit-linear-gradient(left, #91d3fd 0%, #dedede 100%);
left: 0; left: 0;
right: 0; right: 0;
} }
@ -237,7 +237,7 @@ function menuUpdateValue(key: string, item: MenuOption) {
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 2px; height: 2px;
background: -webkit-linear-gradient(left, #409eff 0%, #f2f3f5 100%); background: -webkit-linear-gradient(left, #409eff 0%, #dedede 100%);
} }
} }

42
src/views/monitoring/screen/index.scss

@ -4,7 +4,7 @@
position: relative; position: relative;
width: 100%; width: 100%;
height: 100vh; height: 100vh;
background-color: #f2f3f5; background-color: #dedede;
// background: url(@/assets/images/screen.png) no-repeat; // background: url(@/assets/images/screen.png) no-repeat;
// background-color: var(--tableBg); // background-color: var(--tableBg);
// background-size: 100% 100%; // background-size: 100% 100%;
@ -19,7 +19,7 @@
position: absolute; position: absolute;
top: 118px; top: 118px;
left: 0; left: 0;
color: #b1e3ff; color: #1169c0;
text-align: center; text-align: center;
// border: 1px solid #0d55b0; // border: 1px solid #0d55b0;
// background-color: #02072e; // background-color: #02072e;
@ -49,8 +49,9 @@
left: 0; left: 0;
right: 0; right: 0;
width: 70%; width: 70%;
height: 45px;
text-align: center; text-align: center;
color: #a2ceff; color: #1169c0;
// background: url(@/assets/images/panelBtn_bg.png) no-repeat center; // background: url(@/assets/images/panelBtn_bg.png) no-repeat center;
// background-size: 100% 100%; // background-size: 100% 100%;
transition: width 0.28s; transition: width 0.28s;
@ -75,10 +76,10 @@
} }
.copyright { .copyright {
width: 100%; width: 100%;
height: 25px; // height: 25px;
line-height: 25px; // line-height: 25px;
text-align: center; text-align: center;
color: #9ca3af; color: #acaeb1;
font-family: Arial; font-family: Arial;
font-size: 12px; font-size: 12px;
letter-spacing: 1px; letter-spacing: 1px;
@ -172,9 +173,9 @@
.sidebar { .sidebar {
width: 12%; width: 12%;
height: calc(100vh - 95px - 50px); //屏幕高度-头部header高度-底部高度 height: calc(100vh - 70px - 45px); //屏幕高度-头部header高度-底部高度
flex-shrink: 0; flex-shrink: 0;
border: 1px solid var(--vxe-table-border-color); border: 1px solid #b7babf;
padding: 10px 0; padding: 10px 0;
// box-shadow: inset 0px 0px 10px 0px rgb(36, 90, 12); // box-shadow: inset 0px 0px 10px 0px rgb(36, 90, 12);
margin-right: 1vw; margin-right: 1vw;
@ -321,7 +322,8 @@
.mainTable { .mainTable {
// height: calc(100vh - 8rem - 202px); // height: calc(100vh - 8rem - 202px);
// height: calc(100% - 162px); // height: calc(100% - 162px);
background-color: #f2f3f5; border: 1px solid #b7babf;
background-color: #dedede;
transition: height 0.28s; transition: height 0.28s;
overflow: hidden; overflow: hidden;
@ -331,15 +333,15 @@
// --vxe-table-footer-background-color: none; // --vxe-table-footer-background-color: none;
// --vxe-table-border-color: rgba(12, 80, 166, 0.2); // --vxe-table-border-color: rgba(12, 80, 166, 0.2);
// --vxe-table-border-color: none; // --vxe-table-border-color: none;
// --vxe-font-color: #5beff9; --vxe-font-color: #000;
// --vxe-table-header-font-color: #ffffffb3; // --vxe-table-header-font-color: #ffffffb3;
// border: 1px solid var(--vxe-font-color); // border: 1px solid #b7babf;
// box-shadow: inset 0px 0px 10px 0px rgb(36, 90, 124); // box-shadow: inset 0px 0px 10px 0px rgb(36, 90, 124);
:deep(.vxe-table) { :deep(.vxe-table) {
// height: calc(100vh - 5.7rem - 60px) !important; // height: calc(100vh - 5.7rem - 60px) !important;
.vxe-table--body-wrapper { .vxe-table--body-wrapper {
background-color: #f2f3f5; background-color: #dedede;
// height: calc(100vh - 5.7rem - 182px) !important; // height: calc(100vh - 5.7rem - 182px) !important;
} }
@ -371,10 +373,10 @@
font-size: 18px; font-size: 18px;
font-weight: 500; font-weight: 500;
.tableCellClass { .tableCellClass {
background-color: #f2f3f5; background-color: #dedede;
// border-bottom: 1px solid var(--vxe-font-color) !important; border-bottom: 1px solid #b7babf !important;
// border-right: 1px solid var(--vxe-font-color) !important; border-right: 1px solid #b7babf !important;
// border-right-color: var(--vxe-font-color) !important; border-right-color: #b7babf !important;
.vxe-cell { .vxe-cell {
font-family: 'AlibabaPuHuiTiRegular'; font-family: 'AlibabaPuHuiTiRegular';
// color: #b1e3ff; // color: #b1e3ff;
@ -473,7 +475,7 @@
} }
} }
.tablePage { .tablePage {
background-color: #f2f3f5; background-color: #dedede;
// --vxe-pager-background-color: none; // --vxe-pager-background-color: none;
padding: 0 2rem; padding: 0 2rem;
// color: #b1e3ff; // color: #b1e3ff;
@ -554,7 +556,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
height: -webkit-fill-available; height: -webkit-fill-available;
border: 2px solid var(--vxe-table-border-color); border: 2px solid #b7babf;
border-radius: 5px; border-radius: 5px;
color: #000; color: #000;
// padding: 15px; // padding: 15px;
@ -571,7 +573,7 @@
.numValue { .numValue {
flex: 1; flex: 1;
text-align: center; text-align: center;
color: #606266; color: #000;
span { span {
font-size: 5rem; font-size: 5rem;
@ -595,7 +597,7 @@
span { span {
font-size: 1.4rem; font-size: 1.4rem;
line-height: 30px; line-height: 30px;
color: #606266; color: #000;
margin-right: 3px; margin-right: 3px;
} }
span:nth-child(1) { span:nth-child(1) {

Loading…
Cancel
Save