From 538ca1d9cb5e2fe5ac6bd4b5a7dc03eb43ebe986 Mon Sep 17 00:00:00 2001 From: Wangxin Date: Thu, 21 Aug 2025 15:19:02 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90web=E3=80=91=20=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=A1=A3=E6=A1=88=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ALOps_sys_fe/alops-ui/.env.development | 2 +- ALOps_sys_fe/alops-ui/.env.production | 2 +- ALOps_sys_fe/alops-ui/.env.staging | 2 +- ALOps_sys_fe/alops-ui/package.json | 2 +- ALOps_sys_fe/alops-ui/src/api/device/files.js | 118 ++-------- .../alops-ui/src/layout/components/Navbar.vue | 12 - .../alops-ui/src/views/device/files/index.vue | 215 +++++++++--------- .../views/inMonitoring/earlyWarning/index.vue | 26 +-- ALOps_sys_fe/alops-ui/src/views/index.vue | 8 +- ALOps_sys_fe/alops-ui/vue.config.js | 2 +- 10 files changed, 141 insertions(+), 248 deletions(-) diff --git a/ALOps_sys_fe/alops-ui/.env.development b/ALOps_sys_fe/alops-ui/.env.development index b0e45d4b..fb5fbac8 100644 --- a/ALOps_sys_fe/alops-ui/.env.development +++ b/ALOps_sys_fe/alops-ui/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 智能运维系统 +VUE_APP_TITLE = 中国烟草 # 开发环境配置 ENV = 'development' diff --git a/ALOps_sys_fe/alops-ui/.env.production b/ALOps_sys_fe/alops-ui/.env.production index 56677e2f..d23f04e4 100644 --- a/ALOps_sys_fe/alops-ui/.env.production +++ b/ALOps_sys_fe/alops-ui/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 智能运维管理系统 +VUE_APP_TITLE = 中国烟草 # 生产环境配置 ENV = 'production' diff --git a/ALOps_sys_fe/alops-ui/.env.staging b/ALOps_sys_fe/alops-ui/.env.staging index db7c620f..f38170fe 100644 --- a/ALOps_sys_fe/alops-ui/.env.staging +++ b/ALOps_sys_fe/alops-ui/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 智能运维系统 +VUE_APP_TITLE = 中国烟草 BABEL_ENV = production diff --git a/ALOps_sys_fe/alops-ui/package.json b/ALOps_sys_fe/alops-ui/package.json index 56ba358e..7a122d05 100644 --- a/ALOps_sys_fe/alops-ui/package.json +++ b/ALOps_sys_fe/alops-ui/package.json @@ -1,7 +1,7 @@ { "name": "ruoyi", "version": "3.9.0", - "description": "智能运维系统", + "description": "中国烟草", "author": "若依", "license": "MIT", "scripts": { diff --git a/ALOps_sys_fe/alops-ui/src/api/device/files.js b/ALOps_sys_fe/alops-ui/src/api/device/files.js index 16227644..2d1afa91 100644 --- a/ALOps_sys_fe/alops-ui/src/api/device/files.js +++ b/ALOps_sys_fe/alops-ui/src/api/device/files.js @@ -1,130 +1,58 @@ import request from '@/utils/request' import { parseStrEmpty } from "@/utils/ruoyi"; +const api = '/equipment/' -// 查询用户列表 -export function listUser(query) { +// 查询详细 +export function getDict() { return request({ - url: '/system/user/list', - method: 'get', - params: query - }) -} - -// 查询用户详细 -export function getUser(userId) { - return request({ - url: '/system/user/' + parseStrEmpty(userId), + url: '/sys_dict', method: 'get' }) } -// 新增用户 -export function addUser(data) { - return request({ - url: '/system/user', - method: 'post', - data: data - }) -} - -// 修改用户 -export function updateUser(data) { - return request({ - url: '/system/user', - method: 'put', - data: data - }) -} - -// 删除用户 -export function delUser(userId) { - return request({ - url: '/system/user/' + userId, - method: 'delete' - }) -} - -// 用户密码重置 -export function resetUserPwd(userId, password) { - const data = { - userId, - password - } +// 查询列表 +export function list(query) { return request({ - url: '/system/user/resetPwd', - method: 'put', - data: data - }) -} - -// 用户状态修改 -export function changeUserStatus(userId, status) { - const data = { - userId, - status - } - return request({ - url: '/system/user/changeStatus', - method: 'put', - data: data + url: api + 'queryByVO', + method: 'get', + params: query }) } -// 查询用户个人信息 -export function getUserProfile() { +// 查询详细 +export function getInfo(id) { return request({ - url: '/system/user/profile', + url: api + '/queryById/' + parseStrEmpty(id), method: 'get' }) } -// 修改用户个人信息 -export function updateUserProfile(data) { +// 新增 +export function add(data) { return request({ - url: '/system/user/profile', - method: 'put', + url: api + 'add', + method: 'post', data: data }) } -// 用户密码重置 -export function updateUserPwd(oldPassword, newPassword) { - const data = { - oldPassword, - newPassword - } +// 修改 +export function update(data) { return request({ - url: '/system/user/profile/updatePwd', + url: api + 'modify', method: 'put', data: data }) } -// 用户头像上传 -export function uploadAvatar(data) { +// 删除 +export function del(id) { return request({ - url: '/system/user/profile/avatar', - method: 'post', - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - data: data + url: api + 'delete' + id, + method: 'delete' }) } -// 查询授权角色 -export function getAuthRole(userId) { - return request({ - url: '/system/user/authRole/' + userId, - method: 'get' - }) -} -// 保存授权角色 -export function updateAuthRole(data) { - return request({ - url: '/system/user/authRole', - method: 'put', - params: data - }) -} diff --git a/ALOps_sys_fe/alops-ui/src/layout/components/Navbar.vue b/ALOps_sys_fe/alops-ui/src/layout/components/Navbar.vue index 5c31196d..cbe7284d 100644 --- a/ALOps_sys_fe/alops-ui/src/layout/components/Navbar.vue +++ b/ALOps_sys_fe/alops-ui/src/layout/components/Navbar.vue @@ -9,20 +9,8 @@ diff --git a/ALOps_sys_fe/alops-ui/src/views/device/files/index.vue b/ALOps_sys_fe/alops-ui/src/views/device/files/index.vue index 12e56917..36adeed7 100644 --- a/ALOps_sys_fe/alops-ui/src/views/device/files/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/device/files/index.vue @@ -2,14 +2,12 @@
- - - - + + @@ -46,54 +44,50 @@ 导入 - - 导出 - - - + - - - - - - + + + + + + - + - - - + + + - - - - - - - - - + + + + + + + + + - - + + -