-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
52 changed files
with
394 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
dbm-ui/frontend/src/services/model/ticket/details/mysql/haDestroy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { DetailBase, DetailClusters } from '../common'; | ||
|
||
/** | ||
* MySQL 主从集群销毁 | ||
*/ | ||
export interface HaDestroy extends DetailBase { | ||
force: boolean; | ||
clusters: DetailClusters; | ||
cluster_ids: number[]; | ||
} |
10 changes: 10 additions & 0 deletions
10
dbm-ui/frontend/src/services/model/ticket/details/mysql/haDisable.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { DetailBase, DetailClusters } from '../common'; | ||
|
||
/** | ||
* MySQL 主从集群禁用 | ||
*/ | ||
export interface HaDisable extends DetailBase { | ||
force: boolean; | ||
clusters: DetailClusters; | ||
cluster_ids: number[]; | ||
} |
4 changes: 2 additions & 2 deletions
4
...del/ticket/details/mysql/clusterSwitch.ts → ...es/model/ticket/details/mysql/haEnable.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
dbm-ui/frontend/src/services/model/ticket/details/mysql/singleDestroy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { DetailBase, DetailClusters } from '../common'; | ||
|
||
/** | ||
* MySQL 单节点集群销毁 | ||
*/ | ||
export interface SingleDestroy extends DetailBase { | ||
force: boolean; | ||
clusters: DetailClusters; | ||
cluster_ids: number[]; | ||
} |
10 changes: 10 additions & 0 deletions
10
dbm-ui/frontend/src/services/model/ticket/details/mysql/singleDisable.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { DetailBase, DetailClusters } from '../common'; | ||
|
||
/** | ||
* MySQL 单节点集群禁用 | ||
*/ | ||
export interface SingleDisable extends DetailBase { | ||
force: boolean; | ||
clusters: DetailClusters; | ||
cluster_ids: number[]; | ||
} |
10 changes: 10 additions & 0 deletions
10
dbm-ui/frontend/src/services/model/ticket/details/mysql/singleEnable.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { DetailBase, DetailClusters } from '../common'; | ||
|
||
/** | ||
* MySQL 单节点集群可用 | ||
*/ | ||
export interface SingleEnable extends DetailBase { | ||
force: boolean; | ||
clusters: DetailClusters; | ||
cluster_ids: number[]; | ||
} |
7 changes: 5 additions & 2 deletions
7
dbm-ui/frontend/src/services/model/ticket/details/tendbCluster/destroy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import type { DetailBase } from '../common'; | ||
import type { DetailBase, DetailClusters } from '../common'; | ||
|
||
export interface Destroy extends DetailBase { | ||
force: boolean; | ||
clusters: DetailClusters; | ||
cluster_ids: number[]; | ||
force: boolean; | ||
is_only_add_slave_domain: boolean; | ||
is_only_delete_slave_domain: boolean; | ||
} |
6 changes: 5 additions & 1 deletion
6
dbm-ui/frontend/src/services/model/ticket/details/tendbCluster/disable.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import type { DetailBase } from '../common'; | ||
import type { DetailBase, DetailClusters } from '../common'; | ||
|
||
export interface Disable extends DetailBase { | ||
clusters: DetailClusters; | ||
cluster_ids: number[]; | ||
force: boolean; | ||
is_only_add_slave_domain: boolean; | ||
is_only_delete_slave_domain: boolean; | ||
} |
7 changes: 5 additions & 2 deletions
7
dbm-ui/frontend/src/services/model/ticket/details/tendbCluster/enable.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import type { DetailBase } from '../common'; | ||
import type { DetailBase, DetailClusters } from '../common'; | ||
|
||
export interface Enable extends DetailBase { | ||
is_only_add_slave_domain: boolean; | ||
clusters: DetailClusters; | ||
cluster_ids: number[]; | ||
force: boolean; | ||
is_only_add_slave_domain: boolean; | ||
is_only_delete_slave_domain: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
...-center/common/ticket-detail/components/task-info/com-factory/common/ClusterOperation.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<!-- | ||
* TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-DB管理系统(BlueKing-BK-DBM) available. | ||
* | ||
* Copyright (C) 2017-2023 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License athttps://opensource.org/licenses/MIT | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for | ||
* the specific language governing permissions and limitations under the License. | ||
--> | ||
|
||
<template> | ||
<BkTable | ||
:data="tableData" | ||
show-overflow-tooltip> | ||
<BkTableColumn | ||
field="cluster_ids" | ||
:label="t('集群ID')"> | ||
<template #default="{ data }: { data: RowData }"> | ||
{{ data.id }} | ||
</template> | ||
</BkTableColumn> | ||
<BkTableColumn | ||
field="immute_domain" | ||
:label="t('集群名称')"> | ||
<template #default="{ data }: { data: RowData }"> | ||
<div | ||
v-bk-tooltips="{ | ||
content: `${t('域名')}:${ticketDetails.details.clusters[data.id].immute_domain} | ||
${ticketDetails.details.clusters[data.id].name ? `${'集群别名'}:${ticketDetails.details.clusters[data.id].name}` : null} | ||
`, | ||
allowHTML: true, | ||
}" | ||
class="cluster-name"> | ||
<span>{{ ticketDetails.details.clusters[data.id].immute_domain }}</span> | ||
<br /> | ||
<span | ||
v-if="ticketDetails.details.clusters[data.id].name" | ||
class="cluster-name-alias"> | ||
{{ ticketDetails.details.clusters[data.id].name }} | ||
</span> | ||
</div> | ||
</template> | ||
</BkTableColumn> | ||
<BkTableColumn | ||
field="cluster_type_name" | ||
:label="t('集群类型')"> | ||
<template #default="{ data }: { data: RowData }"> | ||
{{ ticketDetails.details.clusters[data.id].cluster_type_name }} | ||
</template> | ||
</BkTableColumn> | ||
</BkTable> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { type UnwrapRef } from 'vue'; | ||
import { useI18n } from 'vue-i18n'; | ||
|
||
import type { DetailClusters } from '@services/model/ticket/details/common'; | ||
import TicketModel from '@services/model/ticket/ticket'; | ||
|
||
interface Props { | ||
ticketDetails: TicketModel<{ | ||
clusters: DetailClusters; | ||
cluster_id: number; | ||
}>; | ||
} | ||
|
||
const props = defineProps<Props>(); | ||
|
||
const { t } = useI18n(); | ||
|
||
const tableData = computed(() => [ | ||
{ | ||
id: props.ticketDetails.details.cluster_id, | ||
}, | ||
]); | ||
|
||
type RowData = UnwrapRef<typeof tableData>[number]; | ||
</script> | ||
|
||
<style lang="less" scoped> | ||
.cluster-name { | ||
padding: 8px 0; | ||
line-height: 16px; | ||
|
||
.cluster-name-alias { | ||
color: @light-gray; | ||
} | ||
} | ||
</style> |
84 changes: 0 additions & 84 deletions
84
...common/ticket-detail/components/task-info/com-factory/common/bigdata/ClusterOperation.vue
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.