Skip to content

Commit

Permalink
feat(frontend): 单据管理迭代_1205 TencentBlueKing#7190
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 26007
  • Loading branch information
JustaCattt committed Dec 5, 2024
1 parent 0208991 commit 4ab64f1
Show file tree
Hide file tree
Showing 9 changed files with 223 additions and 439 deletions.
9 changes: 9 additions & 0 deletions dbm-ui/frontend/src/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -3778,5 +3778,14 @@
"权限:新增n个,删除m个": "权限:新增 {0} 个,删除 {1} 个",
"忽略业务连接:": "忽略业务连接:",
"备份源:": "备份源:",
"校验与修复类型:": "校验与修复类型:",
"缩容数量(台)": "缩容数量(台)",
"数量不足,Proxy至少保留 2 台": "数量不足,Proxy至少保留 2 台",
"复制类型:": "复制类型:",
"写入类型:": "写入类型:",
"断开设置:": "断开设置:",
"提醒频率:": "提醒频率:",
"校验与修复类型:": "校验与修复类型:",
"校验与修复频率设置:": "校验与修复频率设置:",
"这行勿动!新增翻译请在上一行添加!": ""
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { DetailBase, DetailClusters } from '../common';

export interface ClusterDataCopy extends DetailBase {
clusters: DetailClusters;
dts_copy_type: string;
dts_copy_type: 'copy_to_other_system' | 'diff_app_diff_cluster' | 'one_app_diff_cluster' | 'user_built_to_dbm';
write_mode: string;
sync_disconnect_setting: {
type: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<TableEditSelect
ref="selectRef"
v-model="localValue"
:disabled="disabled"
:list="selectList"
:placeholder="$t('请选择')"
:rules="rules"
Expand All @@ -37,6 +38,7 @@

interface Props {
data?: string;
disabled?: boolean;
isLoading?: boolean;
}

Expand All @@ -46,6 +48,7 @@

const props = withDefaults(defineProps<Props>(), {
data: OnlineSwitchType.USER_CONFIRM,
disabled: false,
isLoading: false,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<RenderSwitchMode
ref="switchRef"
:data="data.switchMode"
:disabled="!data.cluster || currentHostSelectType === HostSelectType.MANUAL"
:is-loading="data.isLoading" />
</td>
<OperateColumn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
defineProps<Props>();

defineOptions({
name: TicketTypes.MYSQL_MIGRATE_UPGRADE,
name: TicketTypes.MYSQL_LOCAL_UPGRADE,
inheritAttrs: false,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
-->

<template>
<BkTable :data="tableData">
<BkTable
:data="tableData"
show-overflow-tooltip>
<BkTableColumn
field="ip"
:label="t('待替换的主机')" />
Expand All @@ -28,7 +30,7 @@
</BkTable>
</template>

<script setup lang="tsx">
<script setup lang="ts">
import { useI18n } from 'vue-i18n';

import TicketModel, { type Redis } from '@services/model/ticket/ticket';
Expand All @@ -43,6 +45,7 @@

defineOptions({
name: TicketTypes.REDIS_CLUSTER_CUTOFF,
inheritAttrs: false,
});

const { t } = useI18n();
Expand Down
Loading

0 comments on commit 4ab64f1

Please sign in to comment.