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 @@
-
+
帮助
@@ -84,7 +84,7 @@ import { mixinDevice } from '@/utils/mixin.js'
import { getFileAccessHttpUrl, getAction } from '@/api/manage'
import Vue from 'vue'
import { UI_CACHE_DB_DICT_DATA } from '@/store/mutation-types'
-import { UserOutlined } from '@ant-design/icons-vue';
+import { UserOutlined } from '@ant-design/icons-vue'
export default {
name: 'UserMenu',
mixins: [mixinDevice],
@@ -238,8 +238,14 @@ export default {
this.$message.warn('刷新缓存失败!')
console.log('刷新失败', e)
})
- }
+ },
/* update_end author:liushaoqian date:20200507 for: 刷新缓存 */
+ handleHelp () {
+ this.$warning({
+ title: '系统建设中',
+ onOk: () => {}
+ })
+ }
}
}
diff --git a/src/enums/commonEnums.js b/src/enums/commonEnums.js
index c057653..913fea3 100644
--- a/src/enums/commonEnums.js
+++ b/src/enums/commonEnums.js
@@ -21,3 +21,9 @@ export const wellheadType = {
oil: { label: '油井', value: '1' },
water: { label: '水井', value: '2' }
}
+
+// 用户类别
+export const userType = {
+ admin: { label: '管理员', value: 'admin' },
+ common: { label: '普通用户', value: 'common' }
+}
diff --git a/src/views/system/modules/PermissionModal.vue b/src/views/system/modules/PermissionModal.vue
index 013d260..594b312 100644
--- a/src/views/system/modules/PermissionModal.vue
+++ b/src/views/system/modules/PermissionModal.vue
@@ -6,7 +6,7 @@
:visible="visible"
:confirmLoading="confirmLoading">
-
+
diff --git a/src/views/systemOverview/equipmentManagement/EquipmentManagement.vue b/src/views/systemOverview/equipmentManagement/EquipmentManagement.vue
index 427700d..09abd68 100644
--- a/src/views/systemOverview/equipmentManagement/EquipmentManagement.vue
+++ b/src/views/systemOverview/equipmentManagement/EquipmentManagement.vue
@@ -34,13 +34,14 @@
-
+
-
+
-
+
@@ -276,7 +277,7 @@ export default {
pageSize: 10,
pageSizeOptions: ['10', '20', '30'],
showTotal: (total, range) => {
- return range[0] + '-' + range[1] + ' 共' + total + '条'
+ return '共' + total + '条'
},
showQuickJumper: true,
showSizeChanger: true,
@@ -310,41 +311,49 @@ export default {
],
dataSource: [
{
+ id: '1',
triggerTime: '2024-3-15 13:55:26',
messageType: '用户登录',
messageContent: '张三登录系统'
},
{
+ id: '2',
triggerTime: '2024-3-15 13:55:26',
messageType: '设备上线',
messageContent: '树101-1RTU控制器上线'
},
{
+ id: '3',
triggerTime: '2024-3-15 13:55:26',
messageType: '设备下线',
messageContent: '树101-1RTU控制器上线'
},
{
+ id: '4',
triggerTime: '2024-3-15 13:55:26',
messageType: '设备上线',
messageContent: '树101-1RTU控制器上线'
},
{
+ id: '5',
triggerTime: '2024-3-15 13:55:26',
messageType: '设备上线',
messageContent: '树101-1RTU控制器上线'
},
{
+ id: '6',
triggerTime: '2024-3-15 13:55:26',
messageType: '设备上线',
messageContent: '树101-1RTU控制器上线'
},
{
+ id: '7',
triggerTime: '2024-3-15 13:55:26',
messageType: '设备下线',
messageContent: '树101-1RTU控制器下线'
},
{
+ id: '8',
triggerTime: '2024-3-15 13:55:26',
messageType: '用户退出',
messageContent: '张三退出系统'
@@ -377,7 +386,7 @@ export default {
// 分页、排序、筛选变化时触发
handleTableChange (pagination, filters, sorter) {
this.deviceData.ipagination = pagination
- // this.loadData()
+ this.loadDeviceList()
},
// 设备状态改变
handleChangeStatus (record) {
diff --git a/src/views/systemOverview/systemSettings/SystemSettings.vue b/src/views/systemOverview/systemSettings/SystemSettings.vue
index 0484497..c468525 100644
--- a/src/views/systemOverview/systemSettings/SystemSettings.vue
+++ b/src/views/systemOverview/systemSettings/SystemSettings.vue
@@ -50,7 +50,7 @@
size="middle"
bordered
rowKey="id"
- :scroll="{x: true,y:200}"
+ :scroll="{x: true,y:280}"
:columns="userInfo.columns"
:dataSource="userInfo.dataSource"
:pagination="userInfo.ipagination"
@@ -61,9 +61,19 @@
{{ text || text === 0 ? text : global.emptyLine }}
+
+
+ {{ text || text === 0 ? text : global.emptyLine }}
+ {{ text || text === 0 ? text : global.emptyLine }}
+
+
- 编辑
- 删除
+ 编辑
+ 删除
@@ -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 @@
+
+