diff --git a/web/apps/web-ele/src/locales/index.ts b/web/apps/web-ele/src/locales/index.ts index 73b0057..6b27e96 100644 --- a/web/apps/web-ele/src/locales/index.ts +++ b/web/apps/web-ele/src/locales/index.ts @@ -37,9 +37,7 @@ const businessModules = import.meta.glob([ './langs/zh-CN/application.json', './langs/zh-CN/chat.json', './langs/zh-CN/dept.json', - './langs/zh-CN/dingtalk-sync.json', './langs/zh-CN/dict.json', - './langs/zh-CN/feishu-sync.json', './langs/zh-CN/file-manager.json', './langs/zh-CN/loginLog.json', './langs/zh-CN/menu.json', @@ -54,7 +52,6 @@ const businessModules = import.meta.glob([ './langs/zh-CN/ui-config.json', './langs/zh-CN/user-avatar.json', './langs/zh-CN/user.json', - './langs/zh-CN/wecom-sync.json', ]); const baseLocalesMap = loadLocalesMapFromDir( diff --git a/web/apps/web-ele/src/locales/langs/zh-CN/system-config.json b/web/apps/web-ele/src/locales/langs/zh-CN/system-config.json index 6f6cc31..af98f8b 100644 --- a/web/apps/web-ele/src/locales/langs/zh-CN/system-config.json +++ b/web/apps/web-ele/src/locales/langs/zh-CN/system-config.json @@ -3,7 +3,6 @@ "ssoConfig": "SSO配置", "notifyConfig": "通知配置", "modelConfig": "模型配置", - "syncConfig": "同步配置", "save": "保存", "reset": "恢复默认", "resetConfirm": "确定要恢复该分组为默认配置吗?这将删除数据库中的自定义配置,恢复为环境变量的默认值。", @@ -29,10 +28,7 @@ "notify_feishu": "飞书通知", "notify_wecom": "企业微信通知", "notify_sms": "短信通知", - "notify_wechat_mp": "微信公众号", - "sync_dingtalk": "钉钉", - "sync_wecom": "企业微信", - "sync_feishu": "飞书" + "notify_wechat_mp": "微信公众号" }, "fields": { "client_id": "Client ID", diff --git a/web/apps/web-ele/src/views/_core/system-config/index.vue b/web/apps/web-ele/src/views/_core/system-config/index.vue index c145616..85eafd5 100644 --- a/web/apps/web-ele/src/views/_core/system-config/index.vue +++ b/web/apps/web-ele/src/views/_core/system-config/index.vue @@ -8,9 +8,7 @@ import { Page } from '@vben/common-ui'; import { BellRing, Bot, - CircleHelp, IconifyIcon, - RefreshCw, Shield, } from '@vben/icons'; import { $t } from '@vben/locales'; @@ -28,14 +26,10 @@ import { getAllConfigsApi, } from '#/api/core/system-config'; import { CardList } from '#/components/card-list'; -import { ZqDialog } from '#/components/zq-dialog'; import { ZqTabs } from '#/components/zq-tabs'; import ConfigForm from './modules/config-form.vue'; -import DingtalkSyncForm from './modules/dingtalk-sync-form.vue'; import ModelConfigForm from './modules/model-config-form.vue'; -import FeishuSyncForm from './modules/feishu-sync-form.vue'; -import WecomSyncForm from './modules/wecom-sync-form.vue'; defineOptions({ name: 'SystemConfigManager' }); @@ -44,7 +38,7 @@ interface ConfigMenuItem extends CardListItem { name: string; group: string; icon: string; - category: 'notify' | 'oauth' | 'sync'; + category: 'notify' | 'oauth'; } const SSO_GROUPS = [ @@ -68,12 +62,6 @@ const NOTIFY_GROUPS = [ 'notify_wechat_mp', ]; -const SYNC_GROUPS = [ - 'sync_dingtalk', - 'sync_wecom', - 'sync_feishu', -]; - const GROUP_ICONS: Record = { oauth_gitee: 'simple-icons:gitee', oauth_github: 'simple-icons:github', @@ -90,9 +78,6 @@ const GROUP_ICONS: Record = { notify_feishu: 'simple-icons:bytedance', notify_wecom: 'simple-icons:wechat', notify_wechat_mp: 'simple-icons:wechat', - sync_dingtalk: 'ri:dingding-line', - sync_wecom: 'simple-icons:wechat', - sync_feishu: 'simple-icons:bytedance', }; const activeTab = ref('oauth'); @@ -101,11 +86,6 @@ const selectedMenuId = ref('oauth_gitee'); const loading = ref(false); const saving = ref(false); const configFormRef = ref>(); -const syncFormRef = ref>(); -const wecomSyncFormRef = ref>(); -const feishuSyncFormRef = ref>(); -const syncSaving = ref(false); -const showGuideDialog = ref(false); const menuItems = computed(() => { const items: ConfigMenuItem[] = []; @@ -130,16 +110,6 @@ const menuItems = computed(() => { }); } - for (const group of SYNC_GROUPS) { - items.push({ - id: group, - name: $t(`system-config.groups.${group}`), - group, - icon: GROUP_ICONS[group] || 'mdi:sync', - category: 'sync', - }); - } - return items; }); @@ -157,7 +127,6 @@ const tabItems = computed(() => [ { key: 'oauth', label: $t('system-config.ssoConfig'), icon: Shield }, { key: 'notify', label: $t('system-config.notifyConfig'), icon: BellRing }, { key: 'model', label: $t('system-config.modelConfig'), icon: Bot }, - { key: 'sync', label: $t('system-config.syncConfig'), icon: RefreshCw }, ]); const cardListOptions: CardListOptions = { @@ -219,21 +188,6 @@ function handleSaved() { loadAllConfigs(); } -async function handleSyncSave() { - syncSaving.value = true; - try { - if (selectedMenuId.value === 'sync_wecom') { - await wecomSyncFormRef.value?.save(); - } else if (selectedMenuId.value === 'sync_feishu') { - await feishuSyncFormRef.value?.save(); - } else { - await syncFormRef.value?.save(); - } - } finally { - syncSaving.value = false; - } -} - onMounted(() => { loadAllConfigs(); }); @@ -278,136 +232,43 @@ onMounted(() => {
- - - - + + + +