From 6910315d476493777457200710967556f71c6cdc Mon Sep 17 00:00:00 2001
From: dongzeliang <2746733890@qq.com>
Date: Fri, 28 Feb 2025 09:37:09 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/monitor/online.js | 4 ++--
src/api/system/dept.js | 4 ++--
src/views/system/dept/index.vue | 4 ++--
src/views/system/logininfor/index.vue | 7 ++-----
4 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/src/api/monitor/online.js b/src/api/monitor/online.js
index 3a0fd47..f045a1d 100644
--- a/src/api/monitor/online.js
+++ b/src/api/monitor/online.js
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询在线用户列表
export function list(query) {
return request({
- url: '/monitor/online/list',
+ url: '/system/online/list',
method: 'POST',
data: query
})
@@ -12,7 +12,7 @@ export function list(query) {
// 强退用户
export function forceLogout(tokenId) {
return request({
- url: '/monitor/online/' + tokenId,
+ url: '/system/online/' + tokenId,
method: 'DELETE'
})
}
diff --git a/src/api/system/dept.js b/src/api/system/dept.js
index fe1a519..11a8b03 100644
--- a/src/api/system/dept.js
+++ b/src/api/system/dept.js
@@ -5,7 +5,7 @@ export function listDept(query) {
return request({
url: '/system/dept/list',
method: 'POST',
- data: query
+ data: query ? query : {}
})
}
@@ -37,7 +37,7 @@ export function addDept(data) {
// 修改部门
export function updateDept(data) {
return request({
- url: '/system/dept',
+ url: `/system/dept/${data.deptId}`,
method: 'PUT',
data: data
})
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index 29c5bd8..f6e91eb 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -220,7 +220,7 @@ function handleAdd(row) {
listDept().then(response => {
deptOptions.value = proxy.handleTree(response.data, "deptId");
});
- if (row != undefined) {
+ if (row !== undefined) {
form.value.parentId = row.deptId;
}
open.value = true;
@@ -253,7 +253,7 @@ function handleUpdate(row) {
function submitForm() {
proxy.$refs["deptRef"].validate(valid => {
if (valid) {
- if (form.value.deptId != undefined) {
+ if (form.value.deptId !== undefined) {
updateDept(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功");
open.value = false;
diff --git a/src/views/system/logininfor/index.vue b/src/views/system/logininfor/index.vue
index 1f0d974..c50e621 100644
--- a/src/views/system/logininfor/index.vue
+++ b/src/views/system/logininfor/index.vue
@@ -98,18 +98,15 @@
-
-
-
-
+
- {{ parseTime(scope.row.loginTime) }}
+ {{ parseTime(scope.row.accessTime) }}