fix(系统设置): 插件补充悬浮提示

This commit is contained in:
xinxin.wu 2023-08-10 10:42:43 +08:00 committed by f2c-ci-robot[bot]
parent 266e898147
commit 1e92bc77b5
2 changed files with 21 additions and 17 deletions

View File

@ -13,7 +13,7 @@ export default {
'organization.service.description': '下载需要集成的第三方项目管理平台插件;也可以自行开发相关项目管理平台插件', 'organization.service.description': '下载需要集成的第三方项目管理平台插件;也可以自行开发相关项目管理平台插件',
'organization.service.configDescription': '已下载或已开发的插件需上传至插件管理,上传后,可在当前页进行配置', 'organization.service.configDescription': '已下载或已开发的插件需上传至插件管理,上传后,可在当前页进行配置',
'organization.service.jumpPlugin': '跳转至插件管理', 'organization.service.jumpPlugin': '跳转至插件管理',
'organization.service.testLink': '测试接', 'organization.service.testLink': '测试接',
'organization.service.unconfigured': '未配置', 'organization.service.unconfigured': '未配置',
'organization.service.configured': '已配置', 'organization.service.configured': '已配置',
'organization.service.methodOfAuthentication': '认证方式', 'organization.service.methodOfAuthentication': '认证方式',

View File

@ -56,23 +56,27 @@
record.scenario === 'API' ? t('system.plugin.secneApi') : t('system.plugin.secneProManger') record.scenario === 'API' ? t('system.plugin.secneApi') : t('system.plugin.secneProManger')
}}</template> }}</template>
</a-table-column> </a-table-column>
<a-table-column :title="t('system.user.tableColunmOrg')"> <a-table-column :title="t('system.user.tableColunmOrg')" :width="300">
<template #cell="{ record }"> <template #cell="{ record }">
<a-tag <a-tooltip :content="(record.organizations||[]).map((e: any) => e.name).join(',')">
v-for="org of record.organizations" <span>
:key="org.id" <a-tag
class="mr-[4px] border-[rgb(var(--primary-5))] bg-transparent !text-[rgb(var(--primary-5))]" v-for="org of (record.organizations || []).slice(0, 3)"
bordered :key="org.id"
> class="mr-[4px] border-[rgb(var(--primary-5))] bg-transparent !text-[rgb(var(--primary-5))]"
{{ org.name }} bordered
</a-tag> >
<a-tag {{ org.name }}
v-show="(record.organizations || []).length > 2" </a-tag>
class="mr-[4px] border-[rgb(var(--primary-5))] bg-transparent !text-[rgb(var(--primary-5))]" <a-tag
bordered v-if="(record.organizations || []).length > 3"
> class="mr-[4px] border-[rgb(var(--primary-5))] bg-transparent !text-[rgb(var(--primary-5))]"
+{{ (record.organizations || []).length - 2 }} bordered
</a-tag> >
+{{ (record.organizations || []).length - 3 }}
</a-tag>
</span>
</a-tooltip>
</template> </template>
</a-table-column> </a-table-column>
<a-table-column :title="t('system.plugin.tableColunmDescription')" data-index="fileName" /> <a-table-column :title="t('system.plugin.tableColunmDescription')" data-index="fileName" />