docs: 个人中心优化

pull/99/head
李强 2023-06-05 09:30:58 +08:00
parent 3f872cd973
commit 21f53f0b18
5 changed files with 16 additions and 9 deletions

View File

@ -106,7 +106,7 @@ github[https://github.com/liqianglog/django-vue-admin](https://github.com/liq
| [dvadmin-tenants 多租户管理](https://bbs.django-vue-admin.com/plugMarket/124.html) | Released | Saas mode for multi-tenancy management |
| [dvadmin-third 第三方用户管理](https://bbs.django-vue-admin.com/plugMarket/122.html) | Released | Plugin for managing third-party users |
| [dvadmin-ak-sk 加密密钥管理](https://bbs.django-vue-admin.com/plugMarket/120.html) | Released | Manages encryption keys for verifying authentication strings |
| [dvadmin-pay 支付插件]() | Released | Payment plugin for dvadmin, supports WeChat Pay and Alipay |
| [dvadmin-pay 支付插件](https://bbs.django-vue-admin.com/plugMarket/131.html) | Released | Payment plugin for dvadmin, supports WeChat Pay and Alipay |
| [dvadmin-uniapp](https://bbs.django-vue-admin.com/plugMarket/130.html) | Released | Uniapp plugin for dvadmin |
| dvadmin-cloud-storage 云存储插件 | Development | Plugin for storing files using various cloud storage providers |
| dvadmin-es 搜索插件 | Development | Search plugin for Elasticsearch |
@ -221,7 +221,7 @@ docker-compose up -d --build
![image-12](https://foruda.gitee.com/images/1681118517168485285/f34152ba_5074988.png)
# Commercial License
## Commercial License
![image-13](https://foruda.gitee.com/images/1681118527820910716/43a7c660_5074988.png)

View File

@ -105,7 +105,7 @@ github地址[https://github.com/liqianglog/django-vue-admin](https://github.c
| [dvadmin-tenants 多租户管理](https://bbs.django-vue-admin.com/plugMarket/124.html) | 已发布 | 多租户的saas模式 |
| [dvadmin-third 第三方用户管理](https://bbs.django-vue-admin.com/plugMarket/122.html) | 已发布 | 第三方用户管理插件 |
| [dvadmin-ak-sk 加密密钥管理](https://bbs.django-vue-admin.com/plugMarket/120.html) | 已发布 | 用于加密认证字符串来验证认证字符串的密钥 |
| [dvadmin-pay 支付插件]() | 已发布 | 适用于dvadmin的支付插件支持微信支持、支付宝支付 |
| [dvadmin-pay 支付插件](https://bbs.django-vue-admin.com/plugMarket/131.html) | 已发布 | 适用于dvadmin的支付插件支持微信支持、支付宝支付 |
| [dvadmin-uniapp](https://bbs.django-vue-admin.com/plugMarket/130.html) | 已发布 | 适用于dvadmin的uniapp插件 |
| dvadmin-cloud-storage 云存储插件 | 开发中 | 适用各种云存储进行存储插件 |
| dvadmin-es 搜索插件 | 开发中 | 适用于es的搜索插件 |
@ -231,7 +231,7 @@ docker-compose up -d --build
![image-12](https://foruda.gitee.com/images/1681118517168485285/f34152ba_5074988.png)
#商业授权
## 商业授权
![image-13](https://foruda.gitee.com/images/1681118527820910716/43a7c660_5074988.png)

View File

@ -69,8 +69,12 @@ class DataVViewSet(GenericViewSet):
:return:
"""
count = FileList.objects.all().count()
if count != 0:
data = FileList.objects.aggregate(sum_size=Sum('size'))
return DetailResponse(data={"count": count, "occupy_space": format_bytes(data.get('sum_size') or 0)}, msg="获取成功")
else:
data = {"sum_size": 0}
return DetailResponse(data={"count": count, "occupy_space": format_bytes(data.get('sum_size') or 0)},
msg="获取成功")
@action(methods=["GET"], detail=False, permission_classes=[IsAuthenticated])
def database_total(self, request):

View File

@ -175,7 +175,7 @@ class UserInfoUpdateSerializer(CustomModelSerializer):
class Meta:
model = Users
fields = ['email', 'mobile', 'avatar', 'name', 'gender']
fields = ['email', 'avatar', 'name', 'gender']
extra_kwargs = {
"post": {"required": False, "read_only": True},
}

View File

@ -16,11 +16,14 @@
<el-form-item prop="avatar" label="头像">
<d2p-cropper-uploader :value="userInfo.avatar || '/image/avatar.png'" @input="handleAvatarSuccess"/>
</el-form-item>
<el-form-item prop="username" label="账号">
<el-input v-model="userInfo.username" disabled></el-input>
</el-form-item>
<el-form-item prop="name" required label="昵称">
<el-input v-model="userInfo.name" clearable></el-input>
</el-form-item>
<el-form-item label="电话号码" required prop="mobile">
<el-input v-model="userInfo.mobile" clearable></el-input>
<el-input v-model="userInfo.mobile" clearable disabled></el-input>
</el-form-item>
<el-form-item label="邮箱" prop="email">
<el-input v-model="userInfo.email" clearable></el-input>
@ -39,7 +42,7 @@
<el-input :value="userInfo.dept_info && userInfo.dept_info.dept_name" clearable disabled></el-input>
</el-form-item>
<el-form-item label="当前角色" prop="role">
<el-select :value="userInfo.role" multiple placeholder="请选择" disabled style="width: 100%;">
<el-select :value="userInfo.role" multiple placeholder="请选择" disabled size="mini" style="width: 100%;">
<el-option
v-for="item in userInfo.role_info"
:key="item.id"