diff --git a/web/package.json b/web/package.json index bd277a7..65b299e 100644 --- a/web/package.json +++ b/web/package.json @@ -9,8 +9,11 @@ "preview": "vite preview" }, "dependencies": { + "@tailwindcss/vite": "^4.1.11", + "element-plus": "^2.10.4", "vue": "^3.5.17", - "@tailwindcss/vite": "^4.1.11" + "vue-router": "4", + "vuedraggable": "^4.1.0" }, "devDependencies": { "@vitejs/plugin-vue": "^6.0.0", diff --git a/web/src/App.vue b/web/src/App.vue index 7c1d25e..a1c3f8d 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -2,9 +2,7 @@ - - - + diff --git a/web/src/main.js b/web/src/main.js index 2425c0f..ddac3eb 100644 --- a/web/src/main.js +++ b/web/src/main.js @@ -1,5 +1,7 @@ import { createApp } from 'vue' import './style.css' import App from './App.vue' - -createApp(App).mount('#app') +import router from './router/index.js' +import ElementPlus from 'element-plus' +import 'element-plus/dist/index.css' +createApp(App).use(router).use(ElementPlus).mount('#app') diff --git a/web/src/router/index.js b/web/src/router/index.js new file mode 100644 index 0000000..4ff9c03 --- /dev/null +++ b/web/src/router/index.js @@ -0,0 +1,24 @@ +import { createMemoryHistory, createRouter } from 'vue-router' + +import index from '../views/index.vue' +import home from '../views/home.vue' +import appcenter from '../views/appcenter.vue' + +const routes = [ + { + path: '/', component: index, + children:[ + {path: '', redirect: '/home'}, + { path: '/home', component: home }, + { path: '/app-center', component: appcenter } + ] + }, +] + + +const router = createRouter({ + history: createMemoryHistory(), + routes, +}) + +export default router; diff --git a/web/src/style.css b/web/src/style.css index d4b5078..6b66af3 100644 --- a/web/src/style.css +++ b/web/src/style.css @@ -1 +1,12 @@ @import 'tailwindcss'; +/* + * 配置教程 https://juejin.cn/post/7480450288421109787 +*/ +@theme inline { + --color-primary: #085ce6; + --color-secondary: #FFB81C; + --color-dark: #12192C; + --color-light: #F5F7FA; + --color-muted: #6B7280; + --font-display: 'Inter', 'system-ui', 'sans-serif'; +} diff --git a/web/src/views/appcenter.vue b/web/src/views/appcenter.vue new file mode 100644 index 0000000..3bfe5f4 --- /dev/null +++ b/web/src/views/appcenter.vue @@ -0,0 +1,646 @@ + + + + + 应用中心 + 发现和使用企业内部的各类应用系统 + + + + + + + + + + + + {{ category.name }} + + 全部 + + + + + + + + 我的应用 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ element.name }} + {{ element.description }} + + + + + + + + + + + 您还没有添加任何应用到"我的应用" + 添加应用 + + + + + + 没有找到匹配的应用 + + + + + + + 全部应用 + {{ filteredAllApps.length }} 个应用 + + + + + + + + + {{ app.name }} + {{ app.description }} + + + + 添加 + + + + + + + + 没有找到匹配的应用 + + + + + + + + + 从下方选择您常用的应用添加到"我的应用" + + + + + + + + + {{ app.name }} + + + + + + + + 取消 + 保存 + + + + + + 确定要从"我的应用"中移除 {{ deletingAppName }} 吗? + + 取消 + 确认 + + + + + + + + \ No newline at end of file diff --git a/web/src/views/components/layout.vue b/web/src/views/components/layout.vue new file mode 100644 index 0000000..c7fe72d --- /dev/null +++ b/web/src/views/components/layout.vue @@ -0,0 +1,120 @@ + + + + + + + + + + + + 企业内网门户 + + + + + + + + + 3 + + + + + + 管理员 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/src/views/home.vue b/web/src/views/home.vue new file mode 100644 index 0000000..b94df26 --- /dev/null +++ b/web/src/views/home.vue @@ -0,0 +1,70 @@ + + + + + 欢迎使用企业内网门户 + + + + 系统公告 + + + + + + + + 项目统计 + + + + + + + 进行中项目 + 12/16 + + + + + + 待办事项 + + + + + + + 今日待办 + 6/15 + + + + + + 通知消息 + + + + + + + 未读消息 + 3/15 + + + + + + + \ No newline at end of file diff --git a/web/src/views/index.vue b/web/src/views/index.vue new file mode 100644 index 0000000..d6ed760 --- /dev/null +++ b/web/src/views/index.vue @@ -0,0 +1,13 @@ + + + + + + + \ No newline at end of file diff --git a/web/vite.config.js b/web/vite.config.js index fa2786c..9764ee1 100644 --- a/web/vite.config.js +++ b/web/vite.config.js @@ -5,7 +5,8 @@ import tailwindcss from '@tailwindcss/vite' // https://vite.dev/config/ export default defineConfig({ plugins: [ - vue(), - tailwindcss(), + vue(), + tailwindcss( + ), ], })
发现和使用企业内部的各类应用系统
{{ element.description }}
您还没有添加任何应用到"我的应用"
没有找到匹配的应用
{{ app.description }}
从下方选择您常用的应用添加到"我的应用"
确定要从"我的应用"中移除 {{ deletingAppName }} 吗?
进行中项目
12/16
今日待办
6/15
未读消息
3/15