mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: terminology management
This commit is contained in:
@@ -95,6 +95,7 @@ const routerList = computed(() => {
|
||||
.ed-sub-menu__title {
|
||||
background-color: #fff !important;
|
||||
color: var(--ed-color-primary) !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ onMounted(async () => {
|
||||
>
|
||||
<template #reference>
|
||||
<button class="workspace" :class="collapse && 'collapse'">
|
||||
<el-icon size="16">
|
||||
<el-icon size="18">
|
||||
<icon_moments_categories_outlined></icon_moments_categories_outlined>
|
||||
</el-icon>
|
||||
<span v-if="!collapse" :title="currentWorkspace.name" class="name ellipsis">{{
|
||||
|
||||
@@ -372,3 +372,15 @@ strong {
|
||||
background-color: var(--ed-color-primary-80);
|
||||
}
|
||||
}
|
||||
|
||||
.ed-table.ed-table.ed-table {
|
||||
--ed-table-border-color: #1f232926;
|
||||
}
|
||||
|
||||
.ed-input__password {
|
||||
svg {
|
||||
path {
|
||||
fill: #646a73;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ const pageInfo = reactive({
|
||||
})
|
||||
|
||||
const dialogTitle = ref('')
|
||||
const updateLoading = ref(false)
|
||||
const defaultForm = {
|
||||
id: null,
|
||||
word: null,
|
||||
@@ -225,14 +226,20 @@ const saveHandler = () => {
|
||||
if (!obj.id) {
|
||||
delete obj.id
|
||||
}
|
||||
professionalApi.updateEmbedded(obj).then(() => {
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: t('common.save_success'),
|
||||
updateLoading.value = true
|
||||
professionalApi
|
||||
.updateEmbedded(obj)
|
||||
.then(() => {
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: t('common.save_success'),
|
||||
})
|
||||
search()
|
||||
onFormClose()
|
||||
})
|
||||
.finally(() => {
|
||||
updateLoading.value = false
|
||||
})
|
||||
search()
|
||||
onFormClose()
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -526,7 +533,7 @@ const deleteHandlerItem = (idx: number) => {
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<div v-loading="updateLoading" class="dialog-footer">
|
||||
<el-button secondary @click="onFormClose">{{ $t('common.cancel') }}</el-button>
|
||||
<el-button type="primary" @click="saveHandler">
|
||||
{{ $t('common.save') }}
|
||||
|
||||
Reference in New Issue
Block a user