增加刷新按钮
This commit is contained in:
@@ -538,6 +538,7 @@ function showButtons(key: any) {
|
||||
function hideButtons() {
|
||||
showButtonsKey.value = null;
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
Promise.allSettled([
|
||||
getDict('sys_normal_disable'),
|
||||
@@ -575,7 +576,7 @@ onMounted(() => {
|
||||
>
|
||||
|
||||
<a-form layout="vertical" autocomplete="off">
|
||||
<a-form-item name="mmlTree">
|
||||
<a-form-item name="tenantTree">
|
||||
<a-tree :tree-data="state.tenantTreeData" @select="fnSelectNode">
|
||||
<!-- treeKey is tenantId -->
|
||||
|
||||
@@ -631,16 +632,36 @@ onMounted(() => {
|
||||
<template #extra>
|
||||
<a-space :size="8" align="center">
|
||||
<a-tooltip>
|
||||
<template #title>{{
|
||||
modalState.typeButton ? 'Add Tenancy Type' : 'Please Select Tenant'
|
||||
}}</template>
|
||||
<a-button
|
||||
size="small"
|
||||
@click.prevent="fnModalVisibleByType()"
|
||||
:disabled="!modalState.typeButton"
|
||||
:title="modalState.typeButton ? '' : 'Please Select Tenant'"
|
||||
>
|
||||
<template #icon> <PlusOutlined /> </template>
|
||||
{{ t('common.addText') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip>
|
||||
<template #title>{{
|
||||
modalState.typeButton
|
||||
? t('common.reloadText')
|
||||
: 'Please Select Tenant'
|
||||
}}</template>
|
||||
<a-button
|
||||
type="default"
|
||||
size="small"
|
||||
:disabled="!modalState.typeButton"
|
||||
:title="modalState.typeButton ? '' : 'Please Select Tenant'"
|
||||
@click.prevent="fnGetList(state.selectedNode, 'table')"
|
||||
>
|
||||
<template #icon>
|
||||
<ReloadOutlined />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user