chore: 系统默认租户无法修改
This commit is contained in:
parent
6e6b6e8040
commit
43c0d4c723
@ -6,6 +6,7 @@ import { computed, ref } from 'vue';
|
|||||||
import { useAccess } from '@vben/access';
|
import { useAccess } from '@vben/access';
|
||||||
import { Page, useVbenDrawer, type VbenFormProps } from '@vben/common-ui';
|
import { Page, useVbenDrawer, type VbenFormProps } from '@vben/common-ui';
|
||||||
import { Fallback } from '@vben/common-ui';
|
import { Fallback } from '@vben/common-ui';
|
||||||
|
import { getPopupContainer } from '@vben/utils';
|
||||||
|
|
||||||
import { Modal, Popconfirm, Space } from 'ant-design-vue';
|
import { Modal, Popconfirm, Space } from 'ant-design-vue';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
@ -191,42 +192,46 @@ const isSuperAdmin = computed(() => {
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #action="{ row }">
|
<template #action="{ row }">
|
||||||
<a-button
|
<template v-if="row.id !== 1">
|
||||||
size="small"
|
|
||||||
type="link"
|
|
||||||
v-access:code="['system:tenant:edit']"
|
|
||||||
@click="handleEdit(row)"
|
|
||||||
>
|
|
||||||
{{ $t('pages.common.edit') }}
|
|
||||||
</a-button>
|
|
||||||
<Popconfirm
|
|
||||||
:title="`确认同步[${row.companyName}]的套餐吗?`"
|
|
||||||
placement="left"
|
|
||||||
@confirm="handleSync(row)"
|
|
||||||
>
|
|
||||||
<a-button
|
<a-button
|
||||||
size="small"
|
size="small"
|
||||||
type="link"
|
type="link"
|
||||||
v-access:code="['system:tenant:edit']"
|
v-access:code="['system:tenant:edit']"
|
||||||
|
@click="handleEdit(row)"
|
||||||
>
|
>
|
||||||
{{ $t('pages.common.sync') }}
|
{{ $t('pages.common.edit') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</Popconfirm>
|
<Popconfirm
|
||||||
<Popconfirm
|
:get-popup-container="getPopupContainer"
|
||||||
placement="left"
|
:title="`确认同步[${row.companyName}]的套餐吗?`"
|
||||||
title="确认删除?"
|
placement="left"
|
||||||
@confirm="handleDelete(row)"
|
@confirm="handleSync(row)"
|
||||||
>
|
|
||||||
<a-button
|
|
||||||
danger
|
|
||||||
size="small"
|
|
||||||
type="link"
|
|
||||||
v-access:code="['system:tenant:remove']"
|
|
||||||
@click.stop=""
|
|
||||||
>
|
>
|
||||||
{{ $t('pages.common.delete') }}
|
<a-button
|
||||||
</a-button>
|
size="small"
|
||||||
</Popconfirm>
|
type="link"
|
||||||
|
v-access:code="['system:tenant:edit']"
|
||||||
|
>
|
||||||
|
{{ $t('pages.common.sync') }}
|
||||||
|
</a-button>
|
||||||
|
</Popconfirm>
|
||||||
|
<Popconfirm
|
||||||
|
:get-popup-container="getPopupContainer"
|
||||||
|
placement="left"
|
||||||
|
title="确认删除?"
|
||||||
|
@confirm="handleDelete(row)"
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
danger
|
||||||
|
size="small"
|
||||||
|
type="link"
|
||||||
|
v-access:code="['system:tenant:remove']"
|
||||||
|
@click.stop=""
|
||||||
|
>
|
||||||
|
{{ $t('pages.common.delete') }}
|
||||||
|
</a-button>
|
||||||
|
</Popconfirm>
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
<TenantDrawer @reload="tableApi.query()" />
|
<TenantDrawer @reload="tableApi.query()" />
|
||||||
|
Loading…
Reference in New Issue
Block a user