fix(系统设置): license过期-禁用的资源池-hover未有提示
--bug=1042916 --user=吕梦园 【系统设置】资源池-license过期-禁用的资源池-hover未有提示 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001042916
This commit is contained in:
parent
9aef86626c
commit
e4864184f8
|
@ -24,4 +24,6 @@ export default {
|
|||
'system.authorized.orgAndProTipContent':
|
||||
'The community edition only supports 1 organization, if you want to add more organizations, you can apply',
|
||||
'system.authorized.applyTrial': 'Enterprise trial',
|
||||
'system.authorized.resourcePoolTableTip':
|
||||
'The community version only supports 1 resource pool. If you need to add/enable more resource pools, you can apply',
|
||||
};
|
||||
|
|
|
@ -21,4 +21,5 @@ export default {
|
|||
'system.authorized.resourcePoolTipContent': '社区版仅支持 1 个资源池,如需添加更多资源池,可申请',
|
||||
'system.authorized.orgAndProTipContent': '社区版仅支持 1 个组织,如需添加更多组织,可申请',
|
||||
'system.authorized.applyTrial': '企业版试用',
|
||||
'system.authorized.resourcePoolTableTip': '社区版仅支持 1 个资源池,如需添加/启用更多资源池,可申请',
|
||||
};
|
||||
|
|
|
@ -33,15 +33,23 @@
|
|||
</template>
|
||||
<template #enable="{ record }">
|
||||
<div class="flex items-center gap-[8px]">
|
||||
<a-switch
|
||||
v-model:model-value="record.enable"
|
||||
v-permission="['SYSTEM_TEST_RESOURCE_POOL:READ+UPDATE']"
|
||||
v-xpack
|
||||
size="small"
|
||||
:before-change="(val) => handleToggle(val, record)"
|
||||
>
|
||||
</a-switch>
|
||||
{{ record.enable ? t('system.resourcePool.tableEnabled') : t('system.resourcePool.tableDisabled') }}
|
||||
<a-tooltip class="ms-tooltip-white" :disabled="licenseStore.hasLicense()">
|
||||
<a-switch
|
||||
v-model:model-value="record.enable"
|
||||
v-permission="['SYSTEM_TEST_RESOURCE_POOL:READ+UPDATE']"
|
||||
size="small"
|
||||
:disabled="!licenseStore.hasLicense()"
|
||||
:before-change="(val) => handleToggle(val, record)"
|
||||
>
|
||||
</a-switch>
|
||||
{{ record.enable ? t('system.resourcePool.tableEnabled') : t('system.resourcePool.tableDisabled') }}
|
||||
<template #content>
|
||||
<span class="text-[var(--color-text-000)]">{{ t('system.authorized.resourcePoolTableTip') }}</span>
|
||||
<span class="ml-2 inline-block cursor-pointer text-[rgb(var(--primary-4))]" @click="goTry">
|
||||
{{ t('system.authorized.applyTrial') }}
|
||||
</span>
|
||||
</template>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
</template>
|
||||
<template #action="{ record }">
|
||||
|
@ -118,12 +126,14 @@
|
|||
import { useI18n } from '@/hooks/useI18n';
|
||||
import useModal from '@/hooks/useModal';
|
||||
import { useTableStore } from '@/store';
|
||||
import useLicenseStore from '@/store/modules/setting/license';
|
||||
import { characterLimit } from '@/utils';
|
||||
import { hasAnyPermission } from '@/utils/permission';
|
||||
|
||||
import type { ResourcePoolDetail, ResourcePoolItem } from '@/models/setting/resourcePool';
|
||||
import { TableKeyEnum } from '@/enums/tableEnum';
|
||||
|
||||
const licenseStore = useLicenseStore();
|
||||
const { t } = useI18n();
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
|
@ -473,6 +483,10 @@
|
|||
name: 'settingSystemResourcePoolDetail',
|
||||
});
|
||||
}
|
||||
|
||||
function goTry() {
|
||||
window.open('https://jinshuju.net/f/CzzAOe', '_blank');
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped></style>
|
||||
|
|
|
@ -5,7 +5,7 @@ export default {
|
|||
'system.resourcePool.tableEnable': 'Enable',
|
||||
'system.resourcePool.tableEnabled': 'Enabled',
|
||||
'system.resourcePool.tableDisable': 'Disabled',
|
||||
'system.resourcePool.tableDisabled': '已禁用',
|
||||
'system.resourcePool.tableDisabled': 'Disabled',
|
||||
'system.resourcePool.editPool': 'Edit',
|
||||
'system.resourcePool.tableColumnName': 'Name',
|
||||
'system.resourcePool.tableColumnStatus': 'Status',
|
||||
|
|
Loading…
Reference in New Issue