| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { addUser, updateUser } from "@/api/system/user"; |
| | | import { |
| | | toamendtag, |
| | | addapitag, |
| | |
| | | this.multiple = !selection.length; |
| | | }, |
| | | |
| | | /** 更新/修改提交按钮 */ |
| | | submitForm: function () { |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | if (this.form.userId != undefined) { |
| | | updateUser(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addUser(this.form).then((response) => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | console.log(row, "删除弹窗"); |