wangfei
2025-10-21 dbcc700e995d8c1ce2a3bea4c23c9b0d23c1e65d
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', {