mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-10 02:07:12 +08:00
feat: support configuring terminology for specified advanced applications
This commit is contained in:
@@ -326,6 +326,9 @@ const list = () => {
|
||||
datasourceApi.list().then((res) => {
|
||||
allDsList.value = res
|
||||
})
|
||||
getAdvancedApplicationList().then((res: any) => {
|
||||
adv_options.value = res || []
|
||||
})
|
||||
}
|
||||
const editHandler = (row: any) => {
|
||||
pageForm.value.id = null
|
||||
@@ -335,11 +338,12 @@ const editHandler = (row: any) => {
|
||||
pageForm.value.other_words = ['']
|
||||
}
|
||||
}
|
||||
console.log(pageForm.value)
|
||||
list()
|
||||
dialogTitle.value = row?.id
|
||||
? t('professional.editing_terminology')
|
||||
: t('professional.create_new_term')
|
||||
dialogFormVisible.value = true
|
||||
list()
|
||||
}
|
||||
|
||||
const onFormClose = () => {
|
||||
|
||||
@@ -309,6 +309,9 @@ const list = () => {
|
||||
datasourceApi.list().then((res: any) => {
|
||||
options.value = res || []
|
||||
})
|
||||
getAdvancedApplicationList().then((res: any) => {
|
||||
adv_options.value = res || []
|
||||
})
|
||||
}
|
||||
|
||||
const saveHandler = () => {
|
||||
@@ -342,6 +345,7 @@ const editHandler = (row: any) => {
|
||||
if (row) {
|
||||
pageForm.value = cloneDeep(row)
|
||||
}
|
||||
console.log(pageForm.value)
|
||||
list()
|
||||
dialogTitle.value = row?.id ? t('prompt.edit_prompt_word') : t('prompt.add_prompt_word')
|
||||
dialogFormVisible.value = true
|
||||
|
||||
@@ -304,6 +304,7 @@ const editHandler = (row: any) => {
|
||||
if (row) {
|
||||
pageForm.value = cloneDeep(row)
|
||||
}
|
||||
console.log(pageForm.value)
|
||||
list()
|
||||
|
||||
dialogTitle.value = row?.id ? t('training.edit_training_data') : t('training.add_training_data')
|
||||
|
||||
Reference in New Issue
Block a user