-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): 工具箱支持资源池协议变更_mysql添加从库、添加proxy、迁移主从 #8076
- Loading branch information
1 parent
982bdd6
commit e8c0873
Showing
22 changed files
with
1,372 additions
and
113 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
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
18 changes: 18 additions & 0 deletions
18
dbm-ui/frontend/src/components/ticket-remark/TicketRemark.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,18 @@ | ||
<template> | ||
<BkFormItem :label="t('备注')"> | ||
<BkInput | ||
v-model="modelValue" | ||
:maxlength="500" | ||
:placeholder="t('请提供更多有用信息申请信息_以获得更快审批')" | ||
style="width: 700px" | ||
type="textarea" /> | ||
</BkFormItem> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useI18n } from 'vue-i18n'; | ||
const { t } = useI18n(); | ||
const modelValue = defineModel<string>(); | ||
</script> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { createTicket } from '@services/source/ticket'; | ||
|
||
import type { TicketTypes } from '@common/const'; | ||
|
||
export function useCreateTicket<T>(ticketType: TicketTypes) { | ||
const loading = ref(false); | ||
const router = useRouter(); | ||
|
||
const run = async (details: T, remark = '') => { | ||
loading.value = true; | ||
const { id } = await createTicket<T>({ | ||
ticket_type: ticketType, | ||
bk_biz_id: window.PROJECT_CONFIG.BIZ_ID, | ||
details, | ||
remark, | ||
ignore_duplication: true, | ||
}); | ||
loading.value = false; | ||
router.push({ | ||
name: ticketType, | ||
params: { | ||
page: 'success', | ||
}, | ||
query: { | ||
ticketId: id, | ||
}, | ||
}); | ||
}; | ||
|
||
return { | ||
run, | ||
loading, | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.