diff --git a/public/index.html b/public/index.html index fbfb925..90bdf60 100644 --- a/public/index.html +++ b/public/index.html @@ -141,7 +141,7 @@ top: 0; width: 51%; height: 100%; - background: #49a9ee; + background: #0094FF; /* Old browsers */ z-index: 1000; -webkit-transform: translateX(0); diff --git a/src/api/systemOverview.js b/src/api/systemOverview.js index 9355678..bf1d056 100644 --- a/src/api/systemOverview.js +++ b/src/api/systemOverview.js @@ -28,7 +28,10 @@ const getOilWellRealTimeData = (params) => getAction('/khOilRealtimeData/realtim const getUserPage = (params) => getAction('/sys/user/page', params) // 添加用户 const addUserInfo = (params) => postAction('/sys/user/add', params) - +// 删除用户 +const delUserInfo = (params) => postAction('/sys/user/delete', params) +// 编辑用户 +const editUserInfo = (params) => postAction('/sys/user/edit', params) export { getDevicePage, addDevice, @@ -41,5 +44,7 @@ export { saveSysSetting, getOilWellRealTimeData, getUserPage, - addUserInfo + addUserInfo, + delUserInfo, + editUserInfo } diff --git a/src/assets/less/common.less b/src/assets/less/common.less index 29e3c1e..34f108e 100644 --- a/src/assets/less/common.less +++ b/src/assets/less/common.less @@ -126,6 +126,77 @@ } /* 表格样式end */ +/* 分页器样式begin */ +.ant-pagination.ant-table-pagination.mini { + @gray: #D0DEEE; + + // 总条数 + .ant-pagination-total-text { + font-family: PingFang SC, PingFang SC, sans-serif; + font-weight: 400; + font-size: 14px; + color: @gray; + line-height: 22px; + margin-right: 16px; + } + .ant-pagination-prev { + margin-right: 4px; + } + .ant-pagination-next { + margin-left: 4px; + margin-right: 16px; + } + .ant-pagination-prev .ant-pagination-item-link, + .ant-pagination-next .ant-pagination-item-link { + border-color: @primary-color; + color: @gray; + } + .ant-pagination-jump-prev, + .ant-pagination-jump-next { + border: @primary-color 1px solid; + min-width: 24px; + margin-left: 4px; + margin-right: 4px; + + .ant-pagination-item-ellipsis { + color: @gray; + font-size: 8px; + } + } + .ant-pagination-item { + margin-left: 4px; + margin-right: 4px; + + & > a { + color: @gray; + } + & > a:hover { + color: @text-color; + } + + &:not(.ant-pagination-item-active) { + border-color: @primary-color; + } + } + .ant-pagination-item-active { + background: linear-gradient( 180deg, rgba(0,148,255,0) 0%, rgba(0,148,255,0.8) 100%); + + & > a { + color: @text-color; + } + } + .ant-select-arrow { + display: inline-block; + color: @gray; + } + .ant-select-arrow::after { + display: none; + content: none; + } +} +/* 分页器样式end */ + + /* 复选框begin */ .ant-checkbox-inner, .ant-tree-checkbox-inner{ @@ -286,6 +357,22 @@ border: 1px solid #FF5353; color: @text-color; } + +.ant-btn.ant-btn-primary, +.ant-btn.ant-btn-primary:hover, +.ant-btn.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.ant-btn-danger, +.ant-btn.ant-btn-danger:hover, +.ant-btn.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; +} /* 部分组件end */ .ml-8 { @@ -432,7 +519,7 @@ margin-bottom: 4px; } .ant-form-item { - margin-bottom: 0px; + margin-bottom: 16px; } .ant-form-item-label > label::after { display: none; @@ -452,4 +539,33 @@ display: flex; flex-direction: column; justify-content: space-between; +} + +.tag-blue { + background: rgba(0,148,255,0.2); + color: rgba(0,148,255,1); + border-radius: 2px; + display: inline-block; + height: 24px; + font-size: 13px; + line-height: 24px; + padding: 0 12px; + +} +.tag-cyan { + background: rgba(46,228,253,0.2); + color: rgba(46,228,253); + border-radius: 2px; + display: inline-block; + height: 24px; + font-size: 13px; + line-height: 24px; + padding: 0 12px; +} +/*表格中换行文本的样式*/ +.table-text { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; } \ No newline at end of file diff --git a/src/assets/less/modifyLessVars.js b/src/assets/less/modifyLessVars.js index d884464..dfd64d6 100644 --- a/src/assets/less/modifyLessVars.js +++ b/src/assets/less/modifyLessVars.js @@ -1,7 +1,7 @@ module.exports = { // 背景色 'component-background': '#001B36', - 'background-color-base': 'rgba(0,27,54,0.67)', // 基础背景色 + 'background-color-base': '#001B3688', // 基础背景色 'background-color-light': 'rgba(0, 148, 255, 0.30)', // 基础高亮背景色 // 边框色 diff --git a/src/assets/less/modifyLessVars.less b/src/assets/less/modifyLessVars.less index ecbd05c..4403292 100644 --- a/src/assets/less/modifyLessVars.less +++ b/src/assets/less/modifyLessVars.less @@ -1,7 +1,7 @@ @primary-color: #0094FF; /* 背景色 */ @component-background: #001B36; -@background-color-base: #001B36AA; +@background-color-base: #001B3688; @background-color-light: rgba(0, 148, 255, 0.30); /* 边框色 */ diff --git a/src/components/CommonCardInfo.vue b/src/components/CommonCardInfo.vue index 290d39c..6a86f94 100644 --- a/src/components/CommonCardInfo.vue +++ b/src/components/CommonCardInfo.vue @@ -4,7 +4,7 @@
{{ item.label }}
-
{{ data[item.valueField] }}
+
{{ data[item.valueField] }}
{{ item.value }}
@@ -13,7 +13,7 @@
{{ item.label }}
-
{{ data[item.valueField] }}
+
{{ data[item.valueField] }}
{{ item.value }}
@@ -37,7 +37,7 @@ export default { }, // 数据 data: { - type: Array, + type: Object, required: false, default: () => ({}) } @@ -46,5 +46,7 @@ export default { diff --git a/src/components/menu/FirstLevelMenu.vue b/src/components/menu/FirstLevelMenu.vue index cb05a95..b42065f 100644 --- a/src/components/menu/FirstLevelMenu.vue +++ b/src/components/menu/FirstLevelMenu.vue @@ -74,6 +74,14 @@ export default { methods: { // 选择菜单 selectMenu (menu) { + console.log(menu) + if (menu.path !== '/systemOverview') { + this.$warning({ + title: '系统建设中', + onOk: () => {} + }) + return + } this.selectPath = menu.path if (menu.children && menu.children.length > 0) { this.$router.push({ path: menu.children[0].path }) @@ -128,7 +136,7 @@ export default { } } } - }, + } } } @@ -154,7 +162,11 @@ export default { box-sizing: border-box; margin: 0 20px; max-width: 68px; - + // 1366下调整 + @media screen and (max-width: 1367px) { + transform: scale(0.9); + margin: 10px 4px 0; + } .menu-item { position: relative; width: 68px; diff --git a/src/components/page/GlobalLayout.vue b/src/components/page/GlobalLayout.vue index 060906b..55f8e9a 100644 --- a/src/components/page/GlobalLayout.vue +++ b/src/components/page/GlobalLayout.vue @@ -297,7 +297,7 @@ export default { .user-wrapper { float: right; - height: 100%; + //height: 100%; .small-action { cursor: pointer; padding: 0 5px; diff --git a/src/components/tools/UserMenu.vue b/src/components/tools/UserMenu.vue index 6f68479..bf5d330 100644 --- a/src/components/tools/UserMenu.vue +++ b/src/components/tools/UserMenu.vue @@ -1,7 +1,7 @@ + - 编辑 - 删除 + 编辑 + 删除 @@ -133,7 +143,7 @@ size="middle" bordered rowKey="id" - :scroll="{x: true,y:200}" + :scroll="{x: true,y:360}" :columns="communicationLog.columns" :dataSource="communicationLog.dataSource" :pagination="communicationLog.ipagination" @@ -152,20 +162,24 @@ + +