更新后端界面,用户管理界面

This commit is contained in:
2026-06-01 22:37:53 +08:00
parent cffc718284
commit 1f5f4d16e6
39 changed files with 1168 additions and 663 deletions
@@ -36,7 +36,7 @@
<script setup lang="ts">
import { reactive, ref } from "vue";
import { ElMessage, type FormInstance, type FormRules } from "element-plus";
import { editEmployee } from "@/api/erp";
import { changePassword } from "@/api/user";
const emit = defineEmits<{
(e: "submit"): void;
@@ -99,8 +99,8 @@ const handleSubmit = async () => {
submitLoading.value = true;
try {
await editEmployee(currentUser.value.id, {
password: form.password,
await changePassword(currentUser.value.id, {
newPassword: form.password,
});
ElMessage.success("密码修改成功");