wujingjing
2024-12-03 45c2b1944d48f036a17029fd8d9fba649656cf8e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
    <div class="flex flex-col">
        <el-dialog v-model="isShowInformation" title="我的信息" width="500" :before-close="handleCloseInformation">
            <el-form :model="userInformationInfo" ref="autoDialogFormRef" label-width="85">
                <el-row :gutter="20" class="form_Class">
                    <el-col :span="12" class="note">
                        <el-form-item label="用户ID" prop="name"> <el-input v-model="userInformationInfo.note" readonly></el-input> </el-form-item
                    ></el-col>
                    <el-col :span="12" class="mb20">
                        <el-form-item label="姓名" prop="real_name">
                            <el-input v-model="userInformationInfo.real_name" readonly></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12" class="mb20">
                        <el-form-item label="手机号" prop="phone">
                            <el-input v-model="userInformationInfo.phone" readonly></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12" class="mb20"
                        ><el-form-item label="性别" prop="sex"> <el-input v-model="userInformationInfo.sex" readonly></el-input> </el-form-item
                    ></el-col>
                    <el-col :span="24" class="mb20">
                        <el-form-item label="部门" prop="part"> <el-input v-model="userInformationInfo.part" readonly></el-input> </el-form-item
                    ></el-col>
 
                    <el-col :span="24" class="mb20">
                        <el-form-item label="邮箱" prop="email">
                            <el-input v-model="userInformationInfo.email" readonly />
                        </el-form-item>
                    </el-col>
                </el-row>
            </el-form>
        </el-dialog>
    </div>
</template>
 
<script setup lang="ts">
//#region ====================== 我的信息 ======================
import { onMounted, ref } from 'vue';
import { useUserInfo } from '/@/stores/userInfo';
const isShowInformation = defineModel({
    type: Boolean,
});
const userInformationInfo = ref({}) as any;
//关闭
const handleCloseInformation = () => {
    isShowInformation.value = false;
};
//#endregion
onMounted(async () => {
    const stores = useUserInfo();
    let userInfo = (await stores.getUserInfo()) as any;
    userInformationInfo.value = userInfo;
});
</script>
<style scoped lang="scss"></style>