From 1ead73eef6749a1d3138b547221097a02f37c2e1 Mon Sep 17 00:00:00 2001 From: Wangxin Date: Thu, 21 Aug 2025 15:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90web=E3=80=91=20=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alops-ui/src/api/device/deviceType.js | 118 +++-------------- .../src/views/device/deviceType/index.vue | 119 ++++++------------ 2 files changed, 57 insertions(+), 180 deletions(-) diff --git a/ALOps_sys_fe/alops-ui/src/api/device/deviceType.js b/ALOps_sys_fe/alops-ui/src/api/device/deviceType.js index 16227644..26a36a5c 100644 --- a/ALOps_sys_fe/alops-ui/src/api/device/deviceType.js +++ b/ALOps_sys_fe/alops-ui/src/api/device/deviceType.js @@ -1,130 +1,50 @@ import request from '@/utils/request' import { parseStrEmpty } from "@/utils/ruoyi"; +const api = '/equManufacture/' -// 查询用户列表 -export function listUser(query) { +// 查询详细 +export function getDict() { return request({ - url: '/system/user/list', - method: 'get', - params: query + url: '/sys_dict', + method: 'get' }) } -// 查询用户详细 -export function getUser(userId) { +// 查询列表 +export function list(query) { return request({ - url: '/system/user/' + parseStrEmpty(userId), - method: 'get' + url: api + 'queryByVO', + method: 'get', + params: query }) } -// 新增用户 -export function addUser(data) { +// 新增 +export function add(data) { return request({ - url: '/system/user', + url: api + 'add', method: 'post', data: data }) } -// 修改用户 -export function updateUser(data) { +// 修改 +export function update(data) { return request({ - url: '/system/user', + url: api + 'modify', method: 'put', data: data }) } -// 删除用户 -export function delUser(userId) { +// 删除 +export function del(id) { return request({ - url: '/system/user/' + userId, + url: api + 'delete' + id, method: 'delete' }) } -// 用户密码重置 -export function resetUserPwd(userId, password) { - const data = { - userId, - password - } - 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 - }) -} - -// 查询用户个人信息 -export function getUserProfile() { - return request({ - url: '/system/user/profile', - method: 'get' - }) -} - -// 修改用户个人信息 -export function updateUserProfile(data) { - return request({ - url: '/system/user/profile', - method: 'put', - data: data - }) -} - -// 用户密码重置 -export function updateUserPwd(oldPassword, newPassword) { - const data = { - oldPassword, - newPassword - } - return request({ - url: '/system/user/profile/updatePwd', - method: 'put', - data: data - }) -} - -// 用户头像上传 -export function uploadAvatar(data) { - return request({ - url: '/system/user/profile/avatar', - method: 'post', - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - data: data - }) -} - -// 查询授权角色 -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/views/device/deviceType/index.vue b/ALOps_sys_fe/alops-ui/src/views/device/deviceType/index.vue index e2bb1e80..fe6f4136 100644 --- a/ALOps_sys_fe/alops-ui/src/views/device/deviceType/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/device/deviceType/index.vue @@ -8,14 +8,14 @@ - - + + - + @@ -43,23 +43,22 @@ - - - - - - + + -