管理后台 存储和超级签权限修改

dependabot/npm_and_yarn/fir_admin/path-parse-1.0.7
youngS 3 years ago
parent aa83de23b5
commit cb3738f4de
  1. 4
      fir_admin/src/views/userinfos/list.vue
  2. 6
      fir_client/src/components/FirFooter.vue
  3. 2
      fir_ser/api/utils/serializer.py

@ -73,7 +73,7 @@
</template>
</el-table-column>
<el-table-column class-name="status-col" label="私有存储" width="80" align="center">
<el-table-column class-name="status-col" label="私有存储权限" width="80" align="center">
<template slot-scope="scope">
<router-link v-if="scope.row.storage_active" :to="{name: 'storage_info_list',params:{user_id:scope.row.id}}">
<el-link type="primary"> <el-tag :type="scope.row.storage_active | statusFilter">{{ scope.row.storage_active }}</el-tag></el-link>
@ -82,7 +82,7 @@
</template>
</el-table-column>
<el-table-column class-name="status-col" label="超级签" width="80" align="center">
<el-table-column class-name="status-col" label="超级签权限" width="80" align="center">
<template slot-scope="scope">
<router-link v-if="scope.row.supersign_active" :to="{name: 'devices_info_list',params:{user_id:scope.row.id}}">
<el-link type="primary"> <el-tag :type="scope.row.supersign_active | statusFilter">{{ scope.row.supersign_active }}</el-tag></el-link>

@ -34,14 +34,14 @@
data() {
return {
footer: {
copyright: 'Copyright © 2017-2021 东城飞阳 版权所有.',
copyright: 'Copyright © 2020-2022 东城飞阳 版权所有.',
ipcBeiAn: {
url: 'https://beian.miit.gov.cn',
text: '粤ICP备2021097895号',
},
gongAnBeiAn: {
url: 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=41142202000049',
text: '粤公网安备 41142202000049号',
url: 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=41142202000062',
text: '豫公网安备41142202000062号',
},
}
}

@ -90,7 +90,7 @@ class AdminUserInfoSerializer(UserInfoSerializer):
model = models.UserInfo
exclude = ["password", "api_token"]
read_only_fields = ["id", "head_img", "free_download_times", "last_login",
"is_superuser", "last_name", "is_staff", "uid", "storage_active", "supersign_active",
"is_superuser", "last_name", "is_staff", "uid",
"date_joined", "download_times", "all_download_times", "storage", "groups",
"user_permissions", "certification_id", " app_count"]

Loading…
Cancel
Save