吉安感知网项目-前端
张含笑
2026-01-08 569f93021d4b6ea6b776f3918ae6c4c335ca2145
feat:资料
2 files modified
1 files added
54 ■■■■■ changed files
uniapps/work-app/src/pages/user/index.vue 2 ●●● patch | view | raw | blame | history
uniapps/work-app/src/static/images/user/department.svg 10 ●●●●● patch | view | raw | blame | history
uniapps/work-app/src/subPackages/userDetail/infos/index.vue 42 ●●●● patch | view | raw | blame | history
uniapps/work-app/src/pages/user/index.vue
@@ -10,7 +10,7 @@
          <view class="userName">{{user.nickName }}</view>
          <view class="departs">
            <image
              src="https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ztzf_app_assets/images/user/mobile.svg"
              src="@/static/images/user/department.svg"
              alt=""
            />
            <span>{{ user?.sysDept?.deptName }}</span>
uniapps/work-app/src/static/images/user/department.svg
New file
@@ -0,0 +1,10 @@
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Frame" clip-path="url(#clip0_121_1431)">
<path id="Vector" d="M1.24417 9.08086H2.29417V7.07383C2.29417 6.88789 2.44456 6.7375 2.63049 6.7375V6.72657H6.6637V4.86582H5.39358C5.17893 4.86582 5.00393 4.69082 5.00393 4.47617V1.70625C5.00393 1.4916 5.17893 1.3166 5.39358 1.3166H8.62561C8.84026 1.3166 9.01526 1.4916 9.01526 1.70625V4.47754C9.01526 4.69219 8.84026 4.86719 8.62561 4.86719H7.35549V6.7293H11.3887V6.74024C11.5746 6.74024 11.725 6.89063 11.725 7.07657V9.08223H12.775C12.9897 9.08223 13.1647 9.25723 13.1647 9.47188V12.2432C13.1647 12.4578 12.9897 12.6328 12.775 12.6328H10.0037C9.78909 12.6328 9.61409 12.4578 9.61409 12.2432V9.47051C9.61409 9.25586 9.78909 9.08086 10.0037 9.08086H11.0537V7.4211H7.34456V9.08086H8.39456C8.6092 9.08086 8.7842 9.25586 8.7842 9.47051V12.2418C8.7842 12.4564 8.6092 12.6314 8.39456 12.6314H5.62327C5.40862 12.6314 5.23362 12.4564 5.23362 12.2418V9.47051C5.23362 9.25586 5.40862 9.08086 5.62327 9.08086H6.67327V7.4211H2.96409V9.08086H4.01409C4.22873 9.08086 4.40374 9.25586 4.40374 9.47051V12.2418C4.40374 12.4564 4.22873 12.6314 4.01409 12.6314H1.24417C1.02952 12.6314 0.854517 12.4564 0.854517 12.2418V9.47051C0.854517 9.2545 1.02815 9.08086 1.24417 9.08086ZM8.23596 2.0959H5.78186V4.08789H8.23596V2.0959ZM10.3934 11.8508H12.3854V9.86016H10.3934V11.8508ZM6.01292 11.8508H8.00491V9.86016H6.01292V11.8508ZM1.63381 11.8508H3.62444V9.86016H1.63245V11.8508H1.63381Z" fill="#353637"/>
</g>
<defs>
<clipPath id="clip0_121_1431">
<rect width="14" height="14" fill="white" transform="matrix(-1 0 0 1 14 0)"/>
</clipPath>
</defs>
</svg>
uniapps/work-app/src/subPackages/userDetail/infos/index.vue
@@ -7,7 +7,9 @@
            <div class="detailCon">
                <div class="orderRow">
                    <div class="rowTitle">姓名</div>
                    <div>{{userInfo.realName}}</div>
                    <div>{{userInfo.nickName}}</div>
                <!--     <u-input input-align="right" v-model="userInfo.phone" type="number" placeholder="请输入手机号"
                        class="input-item" /> -->
                </div>
                <div class="orderRow">
                    <div class="rowTitle">所属单位</div>
@@ -15,14 +17,16 @@
                </div>
                <div class="orderRow">
                    <div class="rowTitle">手机号</div>
                    <u-input input-align="right" v-model="userInfo.phone" type="number" placeholder="请输入手机号"
                        class="input-item" />
                    <div>{{userInfo.phone}}</div>
                    <!-- <u-input input-align="right" v-model="userInfo.phone" type="number" placeholder="请输入手机号"
                        class="input-item" /> -->
                </div>
                <div class="orderRow">
                    <div class="rowTitle">邮箱</div>
                    <u-input input-align="right" v-model="userInfo.email" type="email" placeholder="请输入邮箱"
                        class="input-item" />
                    <div>{{userInfo.email}}</div>
                    <!-- <u-input input-align="right" v-model="userInfo.email" type="email" placeholder="请输入邮箱"
                        class="input-item" /> -->
                </div>
            </div>
        </view>
@@ -47,10 +51,9 @@
        useUserStore
    } from "@/store/index.js";
    const userInfo = ref({
        id: '',
        userId: '',
        avatar: '',
        realName: '',
        name: '',
        nickName: '',
        phone: '',
        email: '',
        deptName: '',
@@ -89,14 +92,14 @@
    const getUserInfoData = () => {
        getUserInfo().then(res => {
            const user = res.data.data;
            console.log('用户信息',user)
            userInfo.value = {
                id: user.id,
                userId: user.userId,
                avatar: user.avatar,
                name: user.name,
                realName: user.realName,
                phone: user.phone,
                email: user.email,
                deptName: user.deptName,
                nickName: user.nickName,
                phone: user.sysDept.phone,
                email: user.sysDept.email,
                deptName: user.sysDept.deptName,
            };
        });
@@ -161,7 +164,7 @@
                    const pathWithoutProtocol = filePath.replace(/^file:\/\//, '');
                    fileName = pathWithoutProtocol.split('/').pop() || 'unknown.png';
                }
                // 显示加载中
                uni.showLoading({
                    title: '上传中...'
@@ -169,9 +172,9 @@
                // 上传文件
                uploadUtil({
                    filePath: filePath,
                    filePath: filePath,
                    formData: {
                        fileName: fileName,
                        fileName: fileName,
                        sn: 'avatar_upload'
                    },
                    url: '/blade-resource/oss/endpoint/put-file'
@@ -201,7 +204,6 @@
    }
    const submit = () => {
        if (!validatePhone() || !validateEmail()) return
        userInfo.value.name = userInfo.value.realName;
        updateInfo(userInfo.value).then(res => {
            if (res.data.code === 200) {
                uni.showToast({
@@ -221,7 +223,7 @@
            }
        });
    };
    onShow(async () => {
        getUserInfoData()
@@ -304,4 +306,4 @@
        width: 276rpx !important;
        height: 76rpx !important;
    }
</style>
</style>