Skip to content

Commit

Permalink
feat(frontend): sqlserver 工具箱 #3485
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 17149
  • Loading branch information
hLinx committed Sep 2, 2024
1 parent e6bff55 commit bee42fb
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@
const { baseState, bizState, handleCancel, handleCreateAppAbbr, handleCreateTicket } = useApplyBase();
const isSingleType = route.name === 'SqlServiceSingleApply';
console.log('isSingleType', route);
const clusterType = isSingleType ? 'sqlserver_single' : 'sqlserver_ha';
const getSmartActionOffsetTarget = () => document.querySelector('.bk-form-content');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@

interface Exposes {
getValue: () => Promise<{
backupinfo?: any;
rollback_time?: string;
restore_backup_file?: any;
restore_time?: string;
}>;
}

Expand Down Expand Up @@ -134,11 +134,11 @@
getValue() {
if (localBackupType.value === 'record') {
return localBackupFileRef.value!.getValue().then((data) => ({
backupinfo: data,
restore_backup_file: data,
}));
}
return localRollbackTimeRef.value!.getValue().then(() => ({
rollback_time: formatDateToUTC(resotreTime.value),
restore_time: formatDateToUTC(resotreTime.value),
}));
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,12 @@
watch(
() => props.disabled,
() => {
props.disabled ? tippyIns?.disable() : tippyIns?.enable();
nextTick(() => {
props.disabled ? tippyIns?.disable() : tippyIns?.enable();
});
},
{
immediate: true,
},
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
return false;
}
const [firstRow] = list;
return !firstRow.srcClusterData && !firstRow.dstClusterData && !firstRow.dbList;
return !firstRow.srcClusterData && !firstRow.dstClusterData;
};

useTicketCloneInfo({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

if (['PENDING', 'RUNNING'].includes(state.ticketData?.status)) {
myTicketsDetailTimer = setTimeout(() => {
fetchTicketDetails(id, true);
// fetchTicketDetails(id, true);
}, 10000);
}
})
Expand Down Expand Up @@ -180,6 +180,18 @@
padding: 24px;
font-size: 12px;

.bk-table {
.bk-table-body {
height: unset !important;
max-height: unset !important;
}

td {
height: unset !important;
min-height: 42px;
}
}

.db-card {
.db-card__content {
padding-left: 82px;
Expand Down

0 comments on commit bee42fb

Please sign in to comment.