| | |
| | | } |
| | | // 添加 |
| | | 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', { |
| | |
| | | <el-dialog v-model="add" top="23vh" width="37%" :title="$t('productStock.addusers')"> |
| | | <div style="margin-left: -50px;margin-top: 10px;margin-bottom: 10px;"> |
| | | <el-form label-width="150px"> |
| | | <el-form label-width="100px" label-position="right"> |
| | | <el-form label-width="105px" label-position="right"> |
| | | <el-row style="margin-top: -15px;margin-bottom: -2px;"> |
| | | <el-col :span="6"> |
| | | <div id="dt" style="font-size: 15px;"> |
| | |
| | | <el-dialog v-model="adda" top="23vh" width="37%" :title="$t('productStock.reusername')" > |
| | | <div style="margin-left: -50px;margin-top: 10px;margin-bottom: 10px;"> |
| | | <el-form ref="formRef" label-width="150px"> |
| | | <el-form label-width="100px" label-position="right"> |
| | | <el-form label-width="105px" label-position="right"> |
| | | <el-row style="margin-top: -15px;margin-bottom: -2px;"> |
| | | <el-col :span="6"> |
| | | <div id="dt" style="font-size: 15px;"> |