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 { Page, useVbenDrawer, type VbenFormProps } from '@vben/common-ui';
|
||||
import { Fallback } from '@vben/common-ui';
|
||||
import { getPopupContainer } from '@vben/utils';
|
||||
|
||||
import { Modal, Popconfirm, Space } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
@ -191,6 +192,7 @@ const isSuperAdmin = computed(() => {
|
||||
/>
|
||||
</template>
|
||||
<template #action="{ row }">
|
||||
<template v-if="row.id !== 1">
|
||||
<a-button
|
||||
size="small"
|
||||
type="link"
|
||||
@ -200,6 +202,7 @@ const isSuperAdmin = computed(() => {
|
||||
{{ $t('pages.common.edit') }}
|
||||
</a-button>
|
||||
<Popconfirm
|
||||
:get-popup-container="getPopupContainer"
|
||||
:title="`确认同步[${row.companyName}]的套餐吗?`"
|
||||
placement="left"
|
||||
@confirm="handleSync(row)"
|
||||
@ -213,6 +216,7 @@ const isSuperAdmin = computed(() => {
|
||||
</a-button>
|
||||
</Popconfirm>
|
||||
<Popconfirm
|
||||
:get-popup-container="getPopupContainer"
|
||||
placement="left"
|
||||
title="确认删除?"
|
||||
@confirm="handleDelete(row)"
|
||||
@ -228,6 +232,7 @@ const isSuperAdmin = computed(() => {
|
||||
</a-button>
|
||||
</Popconfirm>
|
||||
</template>
|
||||
</template>
|
||||
</BasicTable>
|
||||
<TenantDrawer @reload="tableApi.query()" />
|
||||
</Page>
|
||||
|
Loading…
Reference in New Issue
Block a user