diff --git a/yudao-ui-admin-vue3/package.json b/yudao-ui-admin-vue3/package.json index 8402db3bd..8956dd3a5 100644 --- a/yudao-ui-admin-vue3/package.json +++ b/yudao-ui-admin-vue3/package.json @@ -6,7 +6,7 @@ "private": false, "scripts": { "i": "pnpm install", - "dev": "vite --mode base", + "dev": "vite --mode base --open", "ts:check": "vue-tsc --noEmit", "build:pro": "vite build --mode pro", "build:dev": "vite build --mode dev", diff --git a/yudao-ui-admin-vue3/src/locales/en.ts b/yudao-ui-admin-vue3/src/locales/en.ts index 6d0cff298..b31226dad 100644 --- a/yudao-ui-admin-vue3/src/locales/en.ts +++ b/yudao-ui-admin-vue3/src/locales/en.ts @@ -171,15 +171,16 @@ export default { sunday: 'Sunday' }, workplace: { - goodMorning: 'Good morning', + welcome: 'Hello', happyDay: 'Wish you happy every day!', toady: `It's sunny today`, + notice: 'Announcement', project: 'Project', access: 'Project access', toDo: 'To do', introduction: 'A serious introduction', more: 'More', - shortcutOperation: 'Shortcut operation', + shortcutOperation: 'Quick entry', operation: 'Operation', index: 'Index', personal: 'Personal', diff --git a/yudao-ui-admin-vue3/src/locales/zh-CN.ts b/yudao-ui-admin-vue3/src/locales/zh-CN.ts index 96098d178..9659babc3 100644 --- a/yudao-ui-admin-vue3/src/locales/zh-CN.ts +++ b/yudao-ui-admin-vue3/src/locales/zh-CN.ts @@ -171,15 +171,16 @@ export default { sunday: '周日' }, workplace: { - goodMorning: '早安', + welcome: '你好', happyDay: '祝你开心每一天!', toady: '今日晴', + notice: '通知公告', project: '项目数', access: '项目访问', toDo: '待办', introduction: '一个正经的简介', more: '更多', - shortcutOperation: '快捷操作', + shortcutOperation: '快捷入口', operation: '操作', index: '指数', personal: '个人', diff --git a/yudao-ui-admin-vue3/src/views/Home/Index.vue b/yudao-ui-admin-vue3/src/views/Home/Index.vue index fb5db7dcd..0ddd48ed9 100644 --- a/yudao-ui-admin-vue3/src/views/Home/Index.vue +++ b/yudao-ui-admin-vue3/src/views/Home/Index.vue @@ -1,38 +1,187 @@ - - - - - - + + + + + + + - - + + {{ t('workplace.welcome') }} {{ username }} {{ t('workplace.happyDay') }} + + + {{ t('workplace.toady') }},20℃ - 32℃! - - {{ - t('analysis.newUser') - }} + + + + + + {{ t('workplace.project') }} + + + + {{ t('workplace.toDo') }} + + + + + {{ t('workplace.access') }} + - - - - + + + + + - - - - - - - - - - - - {{ - t('analysis.unreadInformation') - }} - - - - - - - - - - - - - - - - - - - - {{ - t('analysis.transactionAmount') - }} - - - - - - - - - - - - - - - - - - - - {{ - t('analysis.totalShopping') - }} - - - - - - - - - - - + + + + + + {{ t('workplace.project') }} + {{ t('workplace.more') }} + + - + + + + + + {{ item.name }} + + {{ t(item.message) }} + + {{ item.personal }} + {{ formatTime(item.time, 'yyyy-MM-dd') }} + + + + - - - + + - + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + {{ t('workplace.shortcutOperation') }} + + + + + + + + {{ item.name }} + + + + + + + + + + {{ t('workplace.notice') }} + {{ t('workplace.more') }} + + + + + + + + + + {{ username }} {{ t('workplace.pushCode') }} + + + + {{ formatTime(item.time, 'yyyy-MM-dd') }} + + + + + + + + + + {{ t('workplace.index') }} + + + - diff --git a/yudao-ui-admin-vue3/src/views/Home/Index2.vue b/yudao-ui-admin-vue3/src/views/Home/Index2.vue index 776845cc7..fb5db7dcd 100644 --- a/yudao-ui-admin-vue3/src/views/Home/Index2.vue +++ b/yudao-ui-admin-vue3/src/views/Home/Index2.vue @@ -1,197 +1,127 @@ - - - - - - - + + + + + + - - {{ t('workplace.goodMorning') }} {{ username }} {{ t('workplace.happyDay') }} - - - {{ t('workplace.toady') }},20℃ - 32℃! + + - - - - - - {{ t('workplace.project') }} + + {{ + t('analysis.newUser') + }} - - - - {{ t('workplace.toDo') }} - - - - - {{ t('workplace.access') }} - - - - - - - - - - - - - {{ t('workplace.project') }} - {{ t('workplace.more') }} - - - - - - - - - {{ item.name }} - - {{ t(item.message) }} - - {{ item.personal }} - {{ formatTime(item.time, 'yyyy-MM-dd') }} - - - - - - - - - - - {{ t('workplace.dynamic') }} - {{ t('workplace.more') }} - - - - - - - - - - {{ username }} {{ t('workplace.pushCode') }} - - - - {{ useTimeAgo(item.time) }} - - - - - + - - - - {{ t('workplace.shortcutOperation') }} - - - - - {{ t('workplace.operation') }}{{ item }} - - - - - - - {{ t('workplace.index') }} - - - - - - - - - {{ t('workplace.team') }} - - - - - - - - {{ item.name }} - + + + + + + + + + - - + + {{ + t('analysis.unreadInformation') + }} + + + + + + + + + + + + + + + + + + + + {{ + t('analysis.transactionAmount') + }} + + + + + + + + + + + + + + + + + + + + {{ + t('analysis.totalShopping') + }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/yudao-ui-admin-vue3/src/views/Home/types.ts b/yudao-ui-admin-vue3/src/views/Home/types.ts index 87e71b30b..c4eff1345 100644 --- a/yudao-ui-admin-vue3/src/views/Home/types.ts +++ b/yudao-ui-admin-vue3/src/views/Home/types.ts @@ -12,14 +12,15 @@ export type Project = { time: Date | number | string } -export type Dynamic = { +export type Notice = { keys: string[] time: Date | number | string } -export type Team = { +export type Shortcut = { name: string icon: string + url: string } export type RadarData = {