From 61c5d5c0d8d75fdd35d134e3e5276b7b1c36cbf1 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期四, 05 六月 2025 09:51:49 +0800
Subject: [PATCH] 付款登记功能修改

---
 src/views/login.vue |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/views/login.vue b/src/views/login.vue
index cc98f6b..26391bb 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -10,7 +10,7 @@
           size="large"
           auto-complete="off"
           placeholder="璐﹀彿"
-          @input="deptListSearch"
+          @input="getUserLoginFacotryList"
         >
           <template #prefix><el-icon><User /></el-icon></template>
         </el-input>
@@ -77,7 +77,7 @@
 import Cookies from "js-cookie"
 import { encrypt, decrypt } from "@/utils/jsencrypt"
 import useUserStore from '@/store/modules/user'
-import {userDeptList} from "@/api/system/user.js"
+import {userLoginFacotryList} from "@/api/system/user.js"
 
 const title = import.meta.env.VITE_APP_TITLE
 const userStore = useUserStore()
@@ -169,21 +169,20 @@
   }
 }
 
-function deptListSearch() {
+function getUserLoginFacotryList() {
   if(loginForm.value.username){
-    userDeptList({userName:loginForm.value.username}).then(res => {
+    userLoginFacotryList({userName:loginForm.value.username}).then(res => {
       console.log('res', res)
       factoryList.value = res.data
     })
   }else {
     factoryList.value = []
   }
-
 }
 
 getCode()
 getCookie()
-deptListSearch()
+getUserLoginFacotryList()
 </script>
 
 <style lang='scss' scoped>

--
Gitblit v1.9.3