diff --git a/vue/apps/web-antd/.env.production b/vue/apps/web-antd/.env.production index ed82c42..1407e21 100644 --- a/vue/apps/web-antd/.env.production +++ b/vue/apps/web-antd/.env.production @@ -1,7 +1,7 @@ VITE_BASE=/ # 接口地址 -VITE_GLOB_API_URL=https://171.212.101.199/api +VITE_GLOB_API_URL=https://171.212.101.199:8089/api # 是否开启压缩,可以设置为 none, brotli, gzip VITE_COMPRESS=none diff --git a/vue/apps/web-antd/src/layouts/basic.vue b/vue/apps/web-antd/src/layouts/basic.vue index 1481dc5..4ad64bb 100644 --- a/vue/apps/web-antd/src/layouts/basic.vue +++ b/vue/apps/web-antd/src/layouts/basic.vue @@ -4,9 +4,7 @@ import type { NotificationItem } from '@vben/layouts'; import { computed, ref, watch } from 'vue'; import { AuthenticationLoginExpiredModal } from '@vben/common-ui'; -import { VBEN_DOC_URL, VBEN_GITHUB_URL } from '@vben/constants'; import { useWatermark } from '@vben/hooks'; -import { BookOpenText, CircleHelp, MdiGithub } from '@vben/icons'; import { BasicLayout, LockScreen, @@ -15,9 +13,7 @@ import { } from '@vben/layouts'; import { preferences } from '@vben/preferences'; import { useAccessStore, useUserStore } from '@vben/stores'; -import { openWindow } from '@vben/utils'; -import { $t } from '#/locales'; import { useAuthStore } from '#/store'; import LoginForm from '#/views/_core/authentication/login.vue'; @@ -60,35 +56,35 @@ const showDot = computed(() => notifications.value.some((item) => !item.isRead), ); -const menus = computed(() => [ - { - handler: () => { - openWindow(VBEN_DOC_URL, { - target: '_blank', - }); - }, - icon: BookOpenText, - text: $t('ui.widgets.document'), - }, - { - handler: () => { - openWindow(VBEN_GITHUB_URL, { - target: '_blank', - }); - }, - icon: MdiGithub, - text: 'GitHub', - }, - { - handler: () => { - openWindow(`${VBEN_GITHUB_URL}/issues`, { - target: '_blank', - }); - }, - icon: CircleHelp, - text: $t('ui.widgets.qa'), - }, -]); +// const menus = computed(() => [ +// { +// handler: () => { +// openWindow(VBEN_DOC_URL, { +// target: '_blank', +// }); +// }, +// icon: BookOpenText, +// text: $t('ui.widgets.document'), +// }, +// { +// handler: () => { +// openWindow(VBEN_GITHUB_URL, { +// target: '_blank', +// }); +// }, +// icon: MdiGithub, +// text: 'GitHub', +// }, +// { +// handler: () => { +// openWindow(`${VBEN_GITHUB_URL}/issues`, { +// target: '_blank', +// }); +// }, +// icon: CircleHelp, +// text: $t('ui.widgets.qa'), +// }, +// ]); const avatar = computed(() => { return userStore.userInfo?.avatar ?? preferences.app.defaultAvatar; @@ -128,8 +124,8 @@ watch( diff --git a/vue/apps/web-antd/src/locales/langs/zh-CN/ai.json b/vue/apps/web-antd/src/locales/langs/zh-CN/ai.json index bd39ba8..54241ab 100644 --- a/vue/apps/web-antd/src/locales/langs/zh-CN/ai.json +++ b/vue/apps/web-antd/src/locales/langs/zh-CN/ai.json @@ -1,5 +1,5 @@ { "title": "人工智能", "intelligence_video_analysis": "视频智能分析", - "young_silkworm_analysis": "小蚕智能分析" + "young_silkworm_analysis": "催青阶段分析" } diff --git a/vue/apps/web-antd/src/preferences.ts b/vue/apps/web-antd/src/preferences.ts index 39148a5..9b5dd63 100644 --- a/vue/apps/web-antd/src/preferences.ts +++ b/vue/apps/web-antd/src/preferences.ts @@ -10,6 +10,8 @@ export const overridesPreferences = defineOverridesPreferences({ app: { name: import.meta.env.VITE_APP_TITLE, layout: 'header-sidebar-nav', + defaultHomePath: '/workspace', + enablePreferences: false, }, theme: { mode: 'light', @@ -17,7 +19,7 @@ export const overridesPreferences = defineOverridesPreferences({ }, breadcrumb: { hideOnlyOne: true, - styleType: 'background', + styleType: 'normal', }, copyright: { enable: false, @@ -28,6 +30,7 @@ export const overridesPreferences = defineOverridesPreferences({ sidebar: { collapsed: false, fixedButton: true, + width: 170, }, transition: { name: 'fade-up', @@ -35,6 +38,7 @@ export const overridesPreferences = defineOverridesPreferences({ widget: { lockScreen: false, notification: false, + languageToggle: false, }, navigation: { accordion: false, diff --git a/vue/apps/web-antd/src/router/routes/modules/dashboard.ts b/vue/apps/web-antd/src/router/routes/modules/dashboard.ts index 5254dc6..1944c32 100644 --- a/vue/apps/web-antd/src/router/routes/modules/dashboard.ts +++ b/vue/apps/web-antd/src/router/routes/modules/dashboard.ts @@ -12,16 +12,16 @@ const routes: RouteRecordRaw[] = [ name: 'Dashboard', path: '/dashboard', children: [ - { - name: 'Analytics', - path: '/analytics', - component: () => import('#/views/dashboard/analytics/index.vue'), - meta: { - affixTab: true, - icon: 'lucide:area-chart', - title: $t('page.dashboard.analytics'), - }, - }, + // { + // name: 'Analytics', + // path: '/analytics', + // component: () => import('#/views/dashboard/analytics/index.vue'), + // meta: { + // affixTab: true, + // icon: 'lucide:area-chart', + // title: $t('page.dashboard.analytics'), + // }, + // }, { name: 'Workspace', path: '/workspace', diff --git a/vue/apps/web-antd/src/views/ai/iva/index.vue b/vue/apps/web-antd/src/views/ai/iva/index.vue index 05261a9..6f13bf1 100644 --- a/vue/apps/web-antd/src/views/ai/iva/index.vue +++ b/vue/apps/web-antd/src/views/ai/iva/index.vue @@ -1,5 +1,5 @@ diff --git a/vue/apps/web-antd/src/views/ai/ysa/index.vue b/vue/apps/web-antd/src/views/ai/ysa/index.vue index 05261a9..6f13bf1 100644 --- a/vue/apps/web-antd/src/views/ai/ysa/index.vue +++ b/vue/apps/web-antd/src/views/ai/ysa/index.vue @@ -1,5 +1,5 @@ diff --git a/vue/apps/web-antd/src/views/dashboard/workspace/index.vue b/vue/apps/web-antd/src/views/dashboard/workspace/index.vue index 631dae3..04b7143 100644 --- a/vue/apps/web-antd/src/views/dashboard/workspace/index.vue +++ b/vue/apps/web-antd/src/views/dashboard/workspace/index.vue @@ -9,20 +9,11 @@ import type { import { ref } from 'vue'; import { useRouter } from 'vue-router'; -import { - AnalysisChartCard, - WorkbenchHeader, - WorkbenchProject, - WorkbenchQuickNav, - WorkbenchTodo, - WorkbenchTrends, -} from '@vben/common-ui'; +import { WorkbenchHeader } from '@vben/common-ui'; import { preferences } from '@vben/preferences'; import { useUserStore } from '@vben/stores'; import { openWindow } from '@vben/utils'; -import AnalyticsVisitsSource from '../analytics/analytics-visits-source.vue'; - const userStore = useUserStore(); // 这是一个示例数据,实际项目中需要根据实际情况进行调整 @@ -231,6 +222,13 @@ function navTo(nav: WorkbenchProjectItem | WorkbenchQuickNavItem) { console.warn(`Unknown URL for navigation item: ${nav.title} -> ${nav.url}`); } } +function getGreeting() { + const hour = new Date().getHours(); + if (hour < 6) return '凌晨好'; + if (hour < 12) return '早安'; + if (hour < 18) return '下午好'; + return '晚上好'; +} diff --git a/vue/apps/web-antd/src/views/remote/index.vue b/vue/apps/web-antd/src/views/remote/index.vue index 2357820..7787f00 100644 --- a/vue/apps/web-antd/src/views/remote/index.vue +++ b/vue/apps/web-antd/src/views/remote/index.vue @@ -47,7 +47,7 @@ const gridOptions: VxeGridProps = { gt: 0, }, // showOverflow: true, // 超出隐藏 - height: 'auto', + height: '500px', // keepSource: true, stripe: true, // 条纹 proxyConfig: { @@ -67,33 +67,34 @@ const gridOptions: VxeGridProps = { }, }; -const formOptions: VbenFormProps = { - // 默认展开 - collapsed: true, - schema: [ - { - component: 'Input', - componentProps: { - placeholder: '输入设备名', - }, - fieldName: 'deviceName', - label: '筛选', - width: 300, - }, - ], - // 控制表单是否显示折叠按钮 - showCollapseButton: false, - submitButtonOptions: { - content: '查询', - }, +// 筛选表单 +// const formOptions: VbenFormProps = { +// // 默认展开 +// collapsed: true, +// schema: [ +// { +// component: 'Input', +// componentProps: { +// placeholder: '输入设备名', +// }, +// fieldName: 'deviceName', +// label: '筛选', +// width: 300, +// }, +// ], +// // 控制表单是否显示折叠按钮 +// showCollapseButton: false, +// submitButtonOptions: { +// content: '查询', +// }, - submitOnChange: true, // 是否在字段值改变时提交表单 +// submitOnChange: true, // 是否在字段值改变时提交表单 - submitOnEnter: true, // 按下回车时是否提交表单 -}; +// submitOnEnter: true, // 按下回车时是否提交表单 +// }; const [Grid] = useVbenVxeGrid({ - formOptions, + // formOptions, gridOptions, separator: false, }); diff --git a/vue/packages/effects/common-ui/src/ui/dashboard/workbench/workbench-header.vue b/vue/packages/effects/common-ui/src/ui/dashboard/workbench/workbench-header.vue index a3ea3eb..1f8ed5c 100644 --- a/vue/packages/effects/common-ui/src/ui/dashboard/workbench/workbench-header.vue +++ b/vue/packages/effects/common-ui/src/ui/dashboard/workbench/workbench-header.vue @@ -27,7 +27,7 @@ withDefaults(defineProps(), { -
+