| | |
| | | } |
| | | // 添加 |
| | | 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, |
| | |
| | | }; |
| | | // 编辑 |
| | | 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', { |