wujingjing
2024-12-04 3a8d7e9fc801088866eb95817c530a328c57f02d
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
57
58
59
60
61
<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';
import { accessSessionKey, handleNoAuth } from '/@/utils/request';
import { Local } from '/@/utils/storage';
import { userInfo } from '/@/stores/chatRoom';
const isShowInformation = defineModel({
    type: Boolean,
});
const userInformationInfo = ref({}) as any;
//关闭
const handleCloseInformation = () => {
    isShowInformation.value = false;
};
//#endregion
onMounted(async () => {
    if(!Local.get(accessSessionKey)){
        handleNoAuth()
        return;
    }
    userInformationInfo.value = userInfo.get();
});
</script>
<style scoped lang="scss"></style>