fix: In the permission settings, the knowledge base list does not distinguish between knowledge base types, and all are marked with the icon of the general knowledge base.
--bug=1054142 --user=王孝刚 【团队成员】权限设置中,知识库列表没有区分知识库类型,都用通用知识库的图标标识 https://www.tapd.cn/57709429/s/1681104
This commit is contained in:
parent
9c36d8f30a
commit
add9d1bab8
@ -8,7 +8,8 @@ FROM
|
|||||||
"id",
|
"id",
|
||||||
"name",
|
"name",
|
||||||
'DATASET' AS "type",
|
'DATASET' AS "type",
|
||||||
user_id
|
user_id,
|
||||||
|
"type" AS "icon"
|
||||||
FROM
|
FROM
|
||||||
dataset
|
dataset
|
||||||
WHERE
|
WHERE
|
||||||
@ -17,7 +18,8 @@ FROM
|
|||||||
"id",
|
"id",
|
||||||
"name",
|
"name",
|
||||||
'APPLICATION' AS "type",
|
'APPLICATION' AS "type",
|
||||||
user_id
|
user_id,
|
||||||
|
"icon" AS "icon"
|
||||||
FROM
|
FROM
|
||||||
application
|
application
|
||||||
WHERE
|
WHERE
|
||||||
|
|||||||
@ -19,14 +19,41 @@
|
|||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div class="flex align-center">
|
<div class="flex align-center">
|
||||||
<AppAvatar
|
<AppAvatar
|
||||||
v-if="isApplication"
|
v-if="isApplication && isAppIcon(row?.icon)"
|
||||||
:name="row.name"
|
style="background: none"
|
||||||
pinyinColor
|
|
||||||
class="mr-12"
|
class="mr-12"
|
||||||
shape="square"
|
shape="square"
|
||||||
:size="24"
|
:size="24"
|
||||||
|
>
|
||||||
|
<img :src="row?.icon" alt="" />
|
||||||
|
</AppAvatar>
|
||||||
|
|
||||||
|
<AppAvatar
|
||||||
|
v-else-if="row?.name && isApplication"
|
||||||
|
:name="row?.name"
|
||||||
|
pinyinColor
|
||||||
|
shape="square"
|
||||||
|
:size="24"
|
||||||
|
class="mr-12"
|
||||||
/>
|
/>
|
||||||
<AppAvatar v-else-if="isDataset" class="mr-12 avatar-blue" shape="square" :size="24">
|
<AppAvatar
|
||||||
|
v-if="row.icon === '1' && isDataset"
|
||||||
|
class="mr-8 avatar-purple"
|
||||||
|
shape="square"
|
||||||
|
:size="24"
|
||||||
|
>
|
||||||
|
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
|
||||||
|
</AppAvatar>
|
||||||
|
<AppAvatar
|
||||||
|
v-else-if="row.icon === '2' && isDataset"
|
||||||
|
class="mr-8 avatar-purple"
|
||||||
|
shape="square"
|
||||||
|
:size="24"
|
||||||
|
style="background: none"
|
||||||
|
>
|
||||||
|
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
|
||||||
|
</AppAvatar>
|
||||||
|
<AppAvatar v-else-if="isDataset" class="mr-8 avatar-blue" shape="square" :size="24">
|
||||||
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
|
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
|
||||||
</AppAvatar>
|
</AppAvatar>
|
||||||
<auto-tooltip :content="row?.name">
|
<auto-tooltip :content="row?.name">
|
||||||
@ -85,6 +112,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, watch, computed } from 'vue'
|
import { ref, onMounted, watch, computed } from 'vue'
|
||||||
import { TeamEnum } from '@/enums/team'
|
import { TeamEnum } from '@/enums/team'
|
||||||
|
import { isAppIcon } from '@/utils/application'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user