1. 工作人员账号添加
2. 优化打包
3. 日志
4. 用户头像列表
This commit is contained in:
Zy
2026-10-17 08:50:42 +08:00
parent 87cd3d2519
commit 5584ef1954
41 changed files with 1670 additions and 724 deletions

View File

@@ -88,6 +88,7 @@ init()
async function handleSave() {
console.log(formRef.value);
if (!formRef.value) return
formRef.value.validate(async (valid) => {
console.log('校验结果:', valid)
@@ -152,7 +153,7 @@ function resetForm() {
<section class="commonCard">
<card-nav subTitle="手机号为账号唯一标识不可修改;个人资料与账号状态可维护" title="用户资料"></card-nav>
<div class="formbox">
<el-form :model="editForm" :rules="rules" label-position="top">
<el-form ref="formRef" :model="editForm" :rules="rules" label-position="top">
<el-row :gutter="24">
<el-col :span="12">
<FormItemTip

View File

@@ -86,7 +86,17 @@
style="width: 100%"
>
<el-table-column align="center" type="selection"></el-table-column>
<el-table-column :show-overflow-tooltip="true" align="center" label="用户昵称" prop="nickName"/>
<el-table-column :show-overflow-tooltip="true" align="center" label="用户昵称" min-width="150px"
prop="nickName">
<template #default="scope">
<div class="userInfoBox ">
<el-image v-if="scope.row.avatarUrl" :preview-src-list="[scope.row.avatarUrl ]" :src="scope.row.avatarUrl"
class="userImage"
fit="cover" preview-teleported></el-image>
<span>{{ scope.row.nickName }}</span>
</div>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" align="center" label="手机号" prop="phonenumber">
<template #default="scope">
<span>{{ hiddenPhone(scope.row.phonenumber) }}</span>
@@ -171,6 +181,7 @@ import modal from "@/plugins/modal";
import {download as requestDownload} from '@/utils/request';
import {useTableSelection} from "@/hooks/table/useTableSelection";
import {PostVO} from "@/api/system/post/types";
import defaultImag from '@/assets/images/avatar.png';
const router = useRouter();
@@ -310,4 +321,18 @@ onMounted(() => {
//@use '@/assets/styles/components/page-shell' as pageShell;
//
//@include pageShell.table-crud-page;
.userInfoBox {
display: flex;
align-items: center;
justify-content: center;
.userImage {
width: 32px;
height: 32px;
border-radius: 16px;
background-color: rgba(241, 245, 249, 1);
margin-right: 8px;
}
}
</style>

View File

@@ -91,7 +91,8 @@ init();
<!-- 用户信息-->
<section class="customerInfoBox commonCard flex justify-between flex-items-center">
<div class="flex infoBox">
<el-image :src="form.avatarUrl || defaultImag" class="customer-Img"></el-image>
<el-image :preview-src-list="[form.avatarUrl || defaultImag]" :src="form.avatarUrl || defaultImag"
class="customer-Img"></el-image>
<div class="flex flex-col justify-between">
<div>
<span class="userName">{{ form.nickName }}</span>
@@ -163,7 +164,8 @@ init();
<cardNav line-color="#14b8a6" title="个人资料"></cardNav>
<div class="userInfoInfoBox">
<div class="userInfoImageBox">
<el-image :src="form.avatarUrl || defaultImag" class="userImage"></el-image>
<el-image :preview-src-list="[form.avatarUrl || defaultImag]" :src="form.avatarUrl || defaultImag"
class="userImage"></el-image>
<div class="description">APP端头像</div>
</div>
<ul>