Skip to content

Commit

Permalink
fix(frontend): sqlserver 变更支持备注 TencentBlueKing#7789
Browse files Browse the repository at this point in the history
  • Loading branch information
jinquantianxia committed Nov 7, 2024
1 parent c178374 commit 4c69c90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ export default async (ticketDetail: TicketModel<Sqlserver.ImportSqlFile>) => {
force: details.force,
path: details.path,
ticket_mode: details.ticket_mode,
remark: ticketDetail.remark,
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<RenderCharset v-model="formData.charset" />
<Backup v-model="formData.backup" />
<TicketMode v-model="formData.ticket_mode" />
<TicketRemark v-model="remark" />
</DbForm>
</div>
<template #action>
Expand Down Expand Up @@ -71,6 +72,8 @@
import { ClusterTypes, DBTypes, TicketTypes } from '@common/const';
import TicketRemark from '@components/ticket-remark/Index.vue';
import Backup from '@views/db-manage/common/sql-execute/backup/Index.vue';
import RenderCharset from '@views/db-manage/common/sql-execute/charset/Index.vue';
import ClusterIds from '@views/db-manage/common/sql-execute/cluster-ids/Index.vue';
Expand Down Expand Up @@ -100,6 +103,7 @@
const isSubmitting = ref(false);
const uploadFilePath = ref('');
const clusterVersionList = ref<string[]>([]);
const remark = ref('');
const formData = reactive(createDefaultData());
Expand All @@ -113,6 +117,7 @@
backup: cloneData.backup,
ticket_mode: cloneData.ticket_mode,
});
remark.value = cloneData.remark;
uploadFilePath.value = cloneData.path;
},
});
Expand Down Expand Up @@ -147,6 +152,7 @@
createTicket({
bk_biz_id: window.PROJECT_CONFIG.BIZ_ID,
ticket_type: TicketTypes.SQLSERVER_IMPORT_SQLFILE,
remark: remark.value,
details: {
...formData,
},
Expand Down

0 comments on commit 4c69c90

Please sign in to comment.