From 266ca8c80300d479351eed50fee5a30751a22fda Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期四, 09 十月 2025 11:46:11 +0800
Subject: [PATCH] 1、中空领取任务界面查询慢解决 2、卧理新增日志记录

---
 UI-Project/src/views/User/userlist.vue |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/UI-Project/src/views/User/userlist.vue b/UI-Project/src/views/User/userlist.vue
index 5887777..8395779 100644
--- a/UI-Project/src/views/User/userlist.vue
+++ b/UI-Project/src/views/User/userlist.vue
@@ -111,6 +111,18 @@
 }
 // 娣诲姞 
 const getTableRow = async () => {
+   if (!userName.value) {
+    ElMessage.error(t('productStock.inusername'))
+    return
+  }
+   if (!selectedProjectNoa.value) {
+    ElMessage.error(t('productStock.inrole'))
+    return
+  }
+   if (!password.value) {
+    ElMessage.error(t('productStock.inpassword'))
+    return
+  }
   try {
     const response = await request.post('/loadGlass/sys/user/saveUser', {
       userName: userName.value,
@@ -134,6 +146,18 @@
 };
 // 缂栬緫
 const getTableRowa = async () => {
+   if (!userName.value) {
+    ElMessage.error(t('productStock.inusername'))
+    return
+  }
+   if (!selectedProjectNoa.value) {
+    ElMessage.error(t('productStock.inrole'))
+    return
+  }
+   if (!password.value) {
+    ElMessage.error(t('productStock.inpassword'))
+    return
+  }
   let id = window.localStorage.getItem('id')
   try {
     const response = await request.post('/loadGlass/sys/user/updateUser', {

--
Gitblit v1.8.0