|
@@ -54,7 +54,8 @@ import type { OrganizationType } from '@/request/organization'
|
|
|
import {
|
|
|
getOrgListFetch,
|
|
|
getMsgAuthCode,
|
|
|
- UserType
|
|
|
+ UserType,
|
|
|
+ ChangePasswordParam
|
|
|
} from "@/request";
|
|
|
|
|
|
import { ref, reactive, unref, onMounted, watchEffect } from "vue";
|
|
@@ -91,7 +92,7 @@ const rules = reactive<FormRules>({
|
|
|
|
|
|
const props = defineProps<{
|
|
|
user: UserType,
|
|
|
- submit: (data: UserType) => Promise<any>;
|
|
|
+ submit: (data: ChangePasswordParam) => Promise<any>;
|
|
|
}>();
|
|
|
const data = ref<UserType>({
|
|
|
nickName: "",
|
|
@@ -112,7 +113,7 @@ const data = ref<UserType>({
|
|
|
userId: 0,
|
|
|
roleNames: ""
|
|
|
});
|
|
|
-const isDisableMsg = ref(false)
|
|
|
+
|
|
|
|
|
|
let checkCodeBtn = reactive<any>({
|
|
|
text: '获取验证码',
|
|
@@ -135,6 +136,7 @@ onMounted(async () => {
|
|
|
|
|
|
})
|
|
|
|
|
|
+
|
|
|
// const setParentId = () => {
|
|
|
// if (user.value) {
|
|
|
// const isSuper = user.value.roles.filter(item => item.roleKey === "super_admin").length > 0;
|