diff --git a/public/index.html b/public/index.html index 90bdf60..bbb0e73 100644 --- a/public/index.html +++ b/public/index.html @@ -141,7 +141,7 @@ top: 0; width: 51%; height: 100%; - background: #0094FF; + background: #8FC7FF; /* Old browsers */ z-index: 1000; -webkit-transform: translateX(0); @@ -230,11 +230,11 @@ border-radius:3px; } ::-webkit-scrollbar-thumb{ - background: linear-gradient(180deg, #0094FF 0%, #2EE4FD 100%); + background: #647C97; border-radius:3px; } ::-webkit-scrollbar-thumb:hover{ - background: linear-gradient(180deg, #0094FF 0%, #2EE4FD 100%); + background: #647C97; } ::-webkit-scrollbar-corner { background: transparent; diff --git a/src/assets/font/AlimamaShuHeiTi-Bold.ttf b/src/assets/font/AlimamaShuHeiTi-Bold.ttf new file mode 100644 index 0000000..4c9f3cc Binary files /dev/null and b/src/assets/font/AlimamaShuHeiTi-Bold.ttf differ diff --git a/src/assets/images/componentImg/header-dot.png b/src/assets/images/componentImg/header-dot.png index f9ad579..559ac96 100644 Binary files a/src/assets/images/componentImg/header-dot.png and b/src/assets/images/componentImg/header-dot.png differ diff --git a/src/assets/images/empty.png b/src/assets/images/empty.png index fb58e1f..014d7d1 100644 Binary files a/src/assets/images/empty.png and b/src/assets/images/empty.png differ diff --git a/src/assets/images/header/header-bg.png b/src/assets/images/header/header-bg.png index 71fcc4d..e89892a 100644 Binary files a/src/assets/images/header/header-bg.png and b/src/assets/images/header/header-bg.png differ diff --git a/src/assets/images/icon/add.png b/src/assets/images/icon/add.png index 187a6ff..e768f66 100644 Binary files a/src/assets/images/icon/add.png and b/src/assets/images/icon/add.png differ diff --git a/src/assets/images/icon/refresh.png b/src/assets/images/icon/refresh.png index a27e3b2..e821020 100644 Binary files a/src/assets/images/icon/refresh.png and b/src/assets/images/icon/refresh.png differ diff --git a/src/assets/images/icon/save.png b/src/assets/images/icon/save.png index 35148ab..064776c 100644 Binary files a/src/assets/images/icon/save.png and b/src/assets/images/icon/save.png differ diff --git a/src/assets/images/icon/search.png b/src/assets/images/icon/search.png index eec4799..9876b35 100644 Binary files a/src/assets/images/icon/search.png and b/src/assets/images/icon/search.png differ diff --git a/src/assets/images/menu/menu-act.png b/src/assets/images/menu/menu-act.png deleted file mode 100644 index f5b3975..0000000 Binary files a/src/assets/images/menu/menu-act.png and /dev/null differ diff --git a/src/assets/images/menu/menu.png b/src/assets/images/menu/menu.png deleted file mode 100644 index 72a9754..0000000 Binary files a/src/assets/images/menu/menu.png and /dev/null differ diff --git a/src/assets/images/menu/top-menu-act.png b/src/assets/images/menu/top-menu-act.png index f87ea21..217dcfd 100644 Binary files a/src/assets/images/menu/top-menu-act.png and b/src/assets/images/menu/top-menu-act.png differ diff --git a/src/assets/images/menu/top-menu.png b/src/assets/images/menu/top-menu.png index 0c72f20..c22ca6a 100644 Binary files a/src/assets/images/menu/top-menu.png and b/src/assets/images/menu/top-menu.png differ diff --git a/src/assets/images/systemOverview/equipmentManagement/controller.png b/src/assets/images/systemOverview/equipmentManagement/controller.png index 9991f80..5fa65d0 100644 Binary files a/src/assets/images/systemOverview/equipmentManagement/controller.png and b/src/assets/images/systemOverview/equipmentManagement/controller.png differ diff --git a/src/assets/images/systemOverview/equipmentManagement/device.png b/src/assets/images/systemOverview/equipmentManagement/device.png index 71ddf66..9818979 100644 Binary files a/src/assets/images/systemOverview/equipmentManagement/device.png and b/src/assets/images/systemOverview/equipmentManagement/device.png differ diff --git a/src/assets/images/systemOverview/equipmentManagement/terminal.png b/src/assets/images/systemOverview/equipmentManagement/terminal.png index 890c117..c1506dd 100644 Binary files a/src/assets/images/systemOverview/equipmentManagement/terminal.png and b/src/assets/images/systemOverview/equipmentManagement/terminal.png differ diff --git a/src/assets/images/systemOverview/equipmentManagement/wellhead.png b/src/assets/images/systemOverview/equipmentManagement/wellhead.png index 31186dc..f1f8143 100644 Binary files a/src/assets/images/systemOverview/equipmentManagement/wellhead.png and b/src/assets/images/systemOverview/equipmentManagement/wellhead.png differ diff --git a/src/assets/images/systemOverview/systemSettings/upload-avatar.png b/src/assets/images/systemOverview/systemSettings/upload-avatar.png index 920ca78..d0af16f 100644 Binary files a/src/assets/images/systemOverview/systemSettings/upload-avatar.png and b/src/assets/images/systemOverview/systemSettings/upload-avatar.png differ diff --git a/src/assets/images/systemOverview/wellheadDataMonitoring/all-alarms-btn.png b/src/assets/images/systemOverview/wellheadDataMonitoring/all-alarms-btn.png deleted file mode 100644 index 53c8288..0000000 Binary files a/src/assets/images/systemOverview/wellheadDataMonitoring/all-alarms-btn.png and /dev/null differ diff --git a/src/assets/images/systemOverview/wellheadDataMonitoring/oil-well-working-status.png b/src/assets/images/systemOverview/wellheadDataMonitoring/oil-well-working-status.png deleted file mode 100644 index 07765b4..0000000 Binary files a/src/assets/images/systemOverview/wellheadDataMonitoring/oil-well-working-status.png and /dev/null differ diff --git a/src/assets/images/systemOverview/wellheadDataMonitoring/pump-type-bg.png b/src/assets/images/systemOverview/wellheadDataMonitoring/pump-type-bg.png deleted file mode 100644 index 49f039d..0000000 Binary files a/src/assets/images/systemOverview/wellheadDataMonitoring/pump-type-bg.png and /dev/null differ diff --git a/src/assets/images/systemOverview/wellheadDataMonitoring/pump-type.png b/src/assets/images/systemOverview/wellheadDataMonitoring/pump-type.png new file mode 100644 index 0000000..4404189 Binary files /dev/null and b/src/assets/images/systemOverview/wellheadDataMonitoring/pump-type.png differ diff --git a/src/assets/less/common.less b/src/assets/less/common.less index 426eab3..05ff022 100644 --- a/src/assets/less/common.less +++ b/src/assets/less/common.less @@ -1,7 +1,9 @@ @import "./modifyLessVars.less"; -@custom-cyan: #2EE4FD; -@custom-red: #FF5353; - +// 阿里妈妈数黑体 +@font-face { + font-family: 'Alimama ShuHeiTi'; + src: url('~@assets/font/AlimamaShuHeiTi-Bold.ttf') format('truetype'); +} /*列表上方操作按钮区域*/ .ant-card-body .table-operator { //margin-bottom: 8px; @@ -87,16 +89,16 @@ } /* 表格样式begin */ -.ant-table .ant-table-header, -.ant-table .ant-table-thead { - background: @component-background linear-gradient(180deg, rgba(0, 148, 255, 0.1) 0%, rgba(0, 148, 255, 0.2) 100%) no-repeat; - background-size: 100% 40px; +.ant-table .ant-table-header tr > th, +.ant-table .ant-table-thead tr > th { + background: @background-black; } .ant-table.ant-table-fixed-header > .ant-table-content > .ant-table-scroll > .ant-table-body, .ant-table .ant-table-tbody { - background: @component-background linear-gradient(180deg, #001B36 0%, rgba(0,148,255,0.2) 100%); + background: #001125; } -.ant-table .ant-table-thead > tr > th, +.ant-table .ant-table-header, +.ant-table .ant-table-thead, .ant-table .ant-table-fixed-left table, .ant-table .ant-table-fixed-right table, .ant-table .ant-table-fixed .ant-table-thead { @@ -121,7 +123,7 @@ line-height: 20px; } .ant-table.ant-table-bordered.ant-table-fixed-header .ant-table-scroll .ant-table-header.ant-table-hide-scrollbar .ant-table-thead > tr:only-child > th:last-child { - border-right-color: @primary-color; + border-right-color: @border-color-base; border-radius: 0; } // 去圆角 @@ -156,12 +158,12 @@ div.ant-table table, } .ant-pagination-prev .ant-pagination-item-link, .ant-pagination-next .ant-pagination-item-link { - border-color: @primary-color; + border-color: @border-color-base; color: @gray; } .ant-pagination-jump-prev, .ant-pagination-jump-next { - border: @primary-color 1px solid; + border: @border-color-base 1px solid; min-width: 24px; margin-left: 4px; margin-right: 4px; @@ -183,14 +185,14 @@ div.ant-table table, } &:not(.ant-pagination-item-active) { - border-color: @primary-color; + border-color: @border-color-base; } } .ant-pagination-item-active { - background: linear-gradient( 180deg, rgba(0,148,255,0) 0%, rgba(0,148,255,0.8) 100%); + background: @primary-color; - & > a { - color: @text-color; + & > a, & > a:hover { + color: @text-black; } } .ant-select-arrow { @@ -213,6 +215,10 @@ div.ant-table table, /* 复选框end */ /* 搜索框begin */ +input.ant-input, +textarea.ant-input { + background-color: transparent; +} .input-search-suffix { font-size: 0; cursor: pointer; @@ -223,49 +229,24 @@ div.ant-table table, /* 输入框end */ /* 下拉框begin */ -.ant-select-selection--multiple .ant-select-selection__choice { - color: @text-color; - background-color: @primary-1; - border: 1px solid @border-color-base; - border-radius: 2px; -} -.ant-select-selection--multiple .ant-select-selection__choice__remove { - color: @text-color; -} -.ant-select-selection--multiple .ant-select-selection__choice__remove:hover { - color: @text-color !important; -} - .ant-select-dropdown-menu-item-selected, .ant-select-dropdown-menu-item-selected:hover { background-color: @primary-2; color: @text-color; } -// 箭头 -.ant-select-arrow { - display: none; - position: relative; -} -.ant-select-arrow::after { - top: 0; - left: 0; - width: 12px; - height: 12px; - content: ''; - display: block; - position: absolute; - background: url("~@/assets/images/componentImg/arrow.png") no-repeat center center; - background-size: 100%; - transform: rotate(0deg); - transition: transform .3s; -} -.ant-select-open .ant-select-arrow::after { - transform: rotate(180deg); -} // 删除 .ant-select-selection:hover .ant-select-selection__clear { color: @text-color-secondary; } +// 箭头颜色(配合插槽使用) +.ant-select .select-arrow { + color: @primary-color; + font-size: 14px; +} +.ant-select .ant-select-selection { + border-radius: 2px; + background-color: transparent; +} /* 下拉框end */ /* 表单禁用样式begin */ @@ -297,166 +278,71 @@ div.ant-table table, color: @text-color !important; } -// 组件背景 -.ant-input, -.ant-select-selection -{ - //background: url("~@assets/images/componentImg/input.png") no-repeat center center !important; - //background-size: 110% calc(100% + 4px) !important; - background: linear-gradient(to bottom, rgba(0, 89, 153, 0) 0%, rgba(0, 148, 255, 0.2) 100%) !important; -} // 按钮样式 -.custom-btns-box { - button.ant-btn { - .btn-icon { - margin-right: 3px; - margin-bottom: 3px; - width: 14px; - } - .btn-text { - font-family: PingFang SC, PingFang SC, sans-serif; - font-weight: 500; - font-size: 14px; - color: #FFFFFF; - line-height: 16px; - } +button.ant-btn { + font-family: Alibaba PuHuiTi, Alibaba PuHuiTi, sans-serif; + font-size: 14px; + line-height: 20px; + border-radius: 2px; - // 蓝色按钮 - &.btn-blue { - background: url("~@assets/images/componentImg/btn-blue.png") no-repeat center center; - width: 88px; - } - &.btn-blue-long { - background: url("~@assets/images/componentImg/btn-blue-long.png") no-repeat center center; - width: 128px; - } - // 青色按钮 - &.btn-cyan { - background: url("~@assets/images/componentImg/btn-cyan.png") no-repeat center center; - width: 88px; - } - &.btn-cyan-medium { - background: url("~@assets/images/componentImg/btn-cyan-medium.png") no-repeat center center; - width: 108px; - } + .btn-icon { + margin-right: 4px; + margin-bottom: 2px; + width: 14px; + height: 14px; + } + &.ant-btn-primary { + background: #8FC7FF; + color: @text-black; - // 按钮公共样式 - &.btn-blue, - &.btn-cyan, - &.btn-blue-long, - &.btn-cyan-medium { - border: none !important; - background-size: 100% @btn-height-base; + // 透明状态(ghost) + &.ant-btn-background-ghost { + color: @primary-color; + background: transparent; + border: 1px solid #8FC7FF; } } } -.ant-btn { - &.primary-btn, - &.primary-btn:hover, - &.primary-btn:focus { - width: 88px; - height: 32px; - background: linear-gradient( 180deg, rgba(0,148,255,0) 0%, rgba(0,148,255,0.6) 100%); - border-radius: 2px 2px 2px 2px; - border: 1px solid #0094FF; - color: @text-color; - } - &.danger-btn, - &.danger-btn:hover, - &.danger-btn:focus { - width: 88px; - height: 32px; - background: linear-gradient( 0deg, rgba(255,83,83,0.6) 00%, rgba(255,83,83,0) 100%); - border-radius: 2px 2px 2px 2px; - border: 1px solid #FF5353; - color: @text-color; - } - - &.ant-btn-primary, - &.ant-btn-primary:hover, - &.ant-btn-primary:focus { - background: linear-gradient( 180deg, rgba(0,148,255,0) 0%, rgba(0,148,255,0.6) 100%); - border: 1px solid #0094FF; - color: @text-color; - } - &.ant-btn-primary[disabled], - &.ant-btn-primary[disabled]:hover, - &.ant-btn-primary[disabled]:focus { - color: @text-color; - background: linear-gradient(180deg, rgba(0, 148, 255, 0) 0%, rgba(0, 148, 255, 0.6) 100%); - } - - &.ant-btn-danger, - &.ant-btn-danger:hover, - &.ant-btn-danger:focus { - background: linear-gradient( 0deg, rgba(255,83,83,0.6) 00%, rgba(255,83,83,0) 100%); - border: 1px solid #FF5353; - color: @text-color; - } -} +// 移动端rem .mobile-html { - .ant-btn { - font-size: 0.14rem; - line-height: 0.16rem; - height: 0.36rem; + button.ant-btn { + font-family: Alibaba PuHuiTi, Alibaba PuHuiTi, sans-serif; + font-size: 14px; + line-height: 20px; + border-radius: 2px; + + .btn-icon { + margin-right: 4px; + margin-bottom: 2px; + width: 14px; + height: 14px; + } + &.ant-btn-primary { + background: #8FC7FF; + color: @text-black; + + // 透明状态(ghost) + &.ant-btn-background-ghost { + color: @primary-color; + background: transparent; + border: 1px solid #8FC7FF; + } + } } .custom-btns-box { - .ant-btn { + button.ant-btn { .btn-icon { - margin-right: 0.03rem; - margin-bottom: 0.03rem; + margin-right: 0.04rem; + margin-bottom: 0.02rem; width: 0.14rem; - } - .btn-text { - font-size: 0.14rem; - line-height: 0.16rem; - } - // 蓝色按钮 - &.btn-blue { - width: 0.88rem; - } - &.btn-blue-long { - width: 1.28rem; - } - &.btn-blue-small { - width: 0.36rem; - } - // 青色按钮 - &.btn-cyan { - width: 0.88rem; - } - &.btn-cyan-medium { - width: 1.08rem; - } - &.btn-blue, - &.btn-cyan, - &.btn-blue-small, - &.btn-blue-long, - &.btn-cyan-medium { - background-size: 100% 0.36rem; + height: 0.14rem; } } - } - - .ant-btn.primary-btn, - .ant-btn.primary-btn:hover, - .ant-btn.primary-btn:focus, - .ant-btn.danger-btn, - .ant-btn.danger-btn:hover, - .ant-btn.danger-btn:focus { - width: 0.88rem; - height: 0.32rem; - border-radius: 0.02rem; - border-width: 0.01rem; - } - - .ant-btn.ant-btn-primary, - .ant-btn.ant-btn-primary:hover, - .ant-btn.ant-btn-primary:focus, - .ant-btn.ant-btn-danger, - .ant-btn.ant-btn-danger:hover, - .ant-btn.ant-btn-danger:focus { - border-width: 0.01rem; + button.ant-btn.ant-btn-primary { + border-radius: 0.02rem; + font-size: 0.14rem; + line-height: 0.2rem; + } } } /* 部分组件end */ @@ -496,12 +382,12 @@ div.ant-table table, .divider-vertical { width: 1px; margin: 0 20px; - background-color: rgba(108, 128, 151, 0.3); + background-color: @background-black; } .divider-horizontal { height: 1px; margin: 20px 0; - background-color: rgba(108, 128, 151, 0.3); + background-color: @background-black; } // 移动端下的样式 @@ -526,7 +412,7 @@ div.ant-table table, font-family: PingFang SC, PingFang SC, sans-serif; font-weight: 400; font-size: 14px; - color: @text-color-secondary; + color: #D0DEEE; line-height: 16px; } .info-row .info-label::after { @@ -605,7 +491,7 @@ div.ant-table table, line-height: 0.32rem; } -// 标题加渐变背景 +// 标题加渐变背景(按需给伪元素设置max-width,否则会超出宽度) .title-background { margin-bottom: 10px; font-family: DingTalk JinBuTi, DingTalk JinBuTi, sans-serif; @@ -620,15 +506,14 @@ div.ant-table table, content: ''; display: block; position: absolute; - top: 4px; - left: 0; + top: 6px; + left: -4px; width: calc(100% + 8px); height: 16px; - background: linear-gradient( 90deg, rgba(0,116,202,0.1) 0%, #0074CA 50%, rgba(0,116,202,0) 100%); + background: @background-black; } .title-background-text { - margin-left: 4px; position: relative; height: 22px; } @@ -772,14 +657,14 @@ div.ant-table table, // 表格中的tag对齐inline-block导致错位,父元素字体调整为0,解决tag对齐问题 .ant-table-middle > .ant-table-content > .ant-table-scroll > .ant-table-body > table > .ant-table-tbody > tr > td:has( > .tag-blue), -.ant-table-middle > .ant-table-content > .ant-table-scroll > .ant-table-body > table > .ant-table-tbody > tr > td:has( > .tag-cyan) +.ant-table-middle > .ant-table-content > .ant-table-scroll > .ant-table-body > table > .ant-table-tbody > tr > td:has( > .tag-green) { padding: 0 !important; font-size: 0; } .tag-blue { background: rgba(0,148,255,0.2); - color: rgba(0,148,255,1); + color: @primary-color; border-radius: 2px; display: inline-block; height: 24px; @@ -788,9 +673,9 @@ div.ant-table table, padding: 0 12px; } -.tag-cyan { - background: rgba(46,228,253,0.2); - color: rgba(46,228,253); +.tag-green { + background: rgba(162,255,138,0.2); + color: #A2FF8A; border-radius: 2px; display: inline-block; height: 24px; @@ -810,63 +695,13 @@ div.ant-table table, .custom-content-card { padding: 12px 16px; position: relative; - border: 1px solid; - background: linear-gradient( 90deg, rgba(0,148,255,0.4) 0%, rgba(0,148,255,0.05) 100%); - border-image: linear-gradient(85deg, rgba(71, 137, 233, 1), rgba(46, 228, 253, 1), rgba(54, 109, 200, 1)) 1 1; - border-left: none; - border-right: none; - - // 伪元素装饰 - &::before, - &::after { - pointer-events: none; - user-select: none; - content: ''; - display: block; - position: absolute; - } - - // 四个角 - &::before { - top: -2px; - left: -1px; - width: calc(100% + 2px); - height: calc(100% + 4px); - background-image: url("~@/assets/images/systemOverview/equipmentManagement/left-top.png"), - url("~@/assets/images/systemOverview/equipmentManagement/left-bottom.png"), - url("~@/assets/images/systemOverview/equipmentManagement/right-top.png"), - url("~@/assets/images/systemOverview/equipmentManagement/right-bottom.png"); - background-repeat: no-repeat; - background-position: left top, left bottom, right top, right bottom; - } - // 两侧的边框 - &::after { - left: 0; - top: 0; - width: 100%; - height: 100%; - border: 1px solid; - border-top: none; - border-bottom: none; - border-image: linear-gradient(0deg, rgba(46,228,253,0) 0%, #2EE4FD 50%, rgba(46,228,253,0) 100%) 1; - } + border: 1px solid #617C99; + background: rgba(143,199,255,0.1); } // 移动端-内容卡片 .mobile-html { .custom-content-card { padding: 0.1rem 0.08rem; border-width: 0.01rem; - - // 四个角 - &::before { - top: -0.02rem; - left: -0.01rem; - width: calc(100% + 0.02rem); - height: calc(100% + 0.04rem); - } - // 两侧的边框 - &::after { - border-width: 0.01rem; - } } } \ No newline at end of file diff --git a/src/assets/less/modifyLessVars.js b/src/assets/less/modifyLessVars.js index e758961..3772f7c 100644 --- a/src/assets/less/modifyLessVars.js +++ b/src/assets/less/modifyLessVars.js @@ -2,24 +2,24 @@ module.exports = { // 背景色 'component-background': '#001B36', 'background-color-base': 'rgba(0,27,54,0.67)', // 基础背景色 - 'background-color-light': 'rgba(0, 148, 255, 0.30)', // 基础高亮背景色 + 'background-color-light': 'rgba(143,199,255,0.1)', // 基础高亮背景色 // 边框色 - 'border-color-base': '#0094FF', - 'border-color-split': '#0094FF', + 'border-color-base': '#647C97', + 'border-color-split': '#647C97', // 字体颜色 'heading-color': 'rgba(255, 255, 255, 0.96)', 'text-color': 'rgba(255, 255, 255, 0.96)', - 'text-color-secondary': '#A5B8CE', + 'text-color-secondary': '#EFEFEF', // 主题色 - 'primary-1': 'rgba(0, 148, 255, 0.30)', - 'primary-2': 'rgba(0, 148, 255, 0.10)', + 'primary-1': 'rgba(143,199,255,0.2)', + 'primary-2': 'rgba(143,199,255,0.1)', // 表格相关 - 'table-selected-row-bg': 'rgba(0, 148, 255, 0.30)', // 勾选行背景色 - 'table-expanded-row-bg': 'rgba(0, 148, 255, 0.10)', // 扩展行背景色 + 'table-selected-row-bg': 'rgba(143,199,255,0.2)', // 勾选行背景色 + 'table-expanded-row-bg': 'rgba(143,199,255,0.1)', // 扩展行背景色 // 高度调整 'btn-height-base': '36px', @@ -31,6 +31,6 @@ module.exports = { // vant white: '#001B36', black: 'rgba(255, 255, 255, 0.96)', - red: '#0094FF', + red: '#8FC7FF', 'dialog-has-title-message-text-color': 'rgba(255, 255, 255, 0.96)' } diff --git a/src/assets/less/modifyLessVars.less b/src/assets/less/modifyLessVars.less index ecbd05c..4df4d90 100644 --- a/src/assets/less/modifyLessVars.less +++ b/src/assets/less/modifyLessVars.less @@ -1,29 +1,34 @@ -@primary-color: #0094FF; +@primary-color: #8FC7FF; /* 背景色 */ @component-background: #001B36; @background-color-base: #001B36AA; -@background-color-light: rgba(0, 148, 255, 0.30); +@background-color-light: rgba(143,199,255,0.1); /* 边框色 */ -@border-color-base: #0094FF; -@border-color-split: #0094FF; +@border-color-base: #647C97; +@border-color-split: #647C97; /* 字体颜色 */ @heading-color: rgba(255, 255, 255, 0.96); @text-color: rgba(255, 255, 255, 0.96); -@text-color-secondary: #A5B8CE; +@text-color-secondary: #EFEFEF; /* 主题色 */ -@primary-1: rgba(0, 148, 255, 0.30); -@primary-2: rgba(0, 148, 255, 0.10); +@primary-1: rgba(143,199,255,0.2); +@primary-2: rgba(143,199,255,0.1); /* 表格相关 */ -@table-selected-row-bg: rgba(0, 148, 255, 0.30); -@table-expanded-row-bg: rgba(0, 148, 255, 0.10); +@table-selected-row-bg: rgba(143,199,255,0.2); +@table-expanded-row-bg: rgba(143,199,255,0.1); /* 按钮 */ @btn-height-base: 36px; @input-height-base: 36px; /* 其他 */ -@red-6: #FF5353; \ No newline at end of file +@red-6: #FF5353; + +@custom-cyan: #2EE4FD; +@custom-red: #FF5353; +@text-black: #1D2632; +@background-black: #2A3644; \ No newline at end of file diff --git a/src/components/CommonCard.vue b/src/components/CommonCard.vue index a821551..64e3041 100644 --- a/src/components/CommonCard.vue +++ b/src/components/CommonCard.vue @@ -33,42 +33,19 @@ export default { diff --git a/src/components/vant/DictPicker.vue b/src/components/vant/DictPicker.vue index 8fc666e..4e075b1 100644 --- a/src/components/vant/DictPicker.vue +++ b/src/components/vant/DictPicker.vue @@ -6,6 +6,7 @@ :open="false" ref="dictSelect" :value="value" + @updateDictOptions="updateDictOptions" @click.capture.native="onOpen"> - + 查询
- + - +
@@ -147,14 +147,14 @@
- + 查询
- + - +
@@ -403,7 +403,7 @@ export default { name: legendData[1], type: 'line', stack: 'downStroke', - color: '#0094FF', + color: '#8FC7FF', symbol: 'none', smooth: true, areaStyle: { diff --git a/src/views/mobile/manage/Manage.vue b/src/views/mobile/manage/Manage.vue index a0acce9..78370cd 100644 --- a/src/views/mobile/manage/Manage.vue +++ b/src/views/mobile/manage/Manage.vue @@ -367,7 +367,13 @@ export default { }, // 切换展开折叠列表 toggleDeviceList () { + // 保留当前滚动高度 + const scrollTop = document.documentElement.scrollTop this.deviceData.showAll = !this.deviceData.showAll + // 数据更新后保持原来滚动高度 + this.$nextTick(() => { + document.documentElement.scrollTop = scrollTop + }) }, // 添加设备 handleAddDevice () { @@ -553,7 +559,7 @@ export default { margin: 0.12rem auto 0; font-family: Rubik, Rubik, sans-serif; font-size: 0.12rem; - color: #A5B8CE; + color: #EFEFEF; line-height: 0.14rem; .list-toggle-arrow { diff --git a/src/views/systemOverview/equipmentManagement/EquipmentManagement.vue b/src/views/systemOverview/equipmentManagement/EquipmentManagement.vue index 8ca5768..650a42e 100644 --- a/src/views/systemOverview/equipmentManagement/EquipmentManagement.vue +++ b/src/views/systemOverview/equipmentManagement/EquipmentManagement.vue @@ -25,7 +25,7 @@ @@ -41,23 +41,25 @@ ref="table" size="middle" bordered - rowKey="id" + :rowKey="(row, index) => row.id || index" :loading="deviceData.loading" :scroll="{x: true,y:206}" :columns="deviceData.columns" :dataSource="deviceData.dataSource" :pagination="deviceData.ipagination" @change="handleTableChange"> -