-
AIX智慧课堂
+
+
+ AIX智慧课堂
+
- -
+
+ {{ menu.name }}
+
+
+
@@ -58,6 +67,8 @@ import useUserStore from '@/store/modules/user'
import routerStore from '@/store/modules/route'
import outLink from '@/utils/linkConfig'
+import logoIco from '@/assets/images/logo.png'
+
const routeHeader = routerStore()
const { ipcRenderer } = window.electron || {}
const userStore = useUserStore()
@@ -87,6 +98,41 @@ const handleOutLink = (path, type, name) => {
})
}
}
+
+const activeId = ref('/home')
+const headerMenus = [
+ {
+ name: '工作台',
+ id: 1,
+ icon: 'icon-gongzuotai',
+ path: '/home'
+ },
+ {
+ name: '研究室',
+ id: 2,
+ icon: 'icon-yanjiushi',
+ disabled: true
+ },
+ {
+ name: '资源库',
+ id: 3,
+ icon: 'icon-saoyisao',
+ path: '/resource'
+ },
+ {
+ name: '朋友圈',
+ id: 4,
+ icon: 'icon-pengyouquan1',
+ disabled: true
+ }
+]
+
+const clickMenu = ({ id, disabled, path }) =>{
+ if(disabled) return
+ activeId.value = id
+ router.push(path)
+}
+
/*const menus = ref([
{
icon: 'icon-zhuye2 icon-homepage',
@@ -114,7 +160,8 @@ const handleOutLink = (path, type, name) => {
watch(
() => router.currentRoute.value,
(newValue) => {
- currentRoute.value = newValue.path
+ currentRoute.value = newValue
+ activeId.value = newValue.path
},
{ immediate: true }
)
@@ -165,8 +212,6 @@ function setLayout() {
diff --git a/src/renderer/src/router/index.js b/src/renderer/src/router/index.js
index 14b0cd0..36f0125 100644
--- a/src/renderer/src/router/index.js
+++ b/src/renderer/src/router/index.js
@@ -13,8 +13,14 @@ export const constantRoutes = [
{
path: '/',
component: Layout,
- redirect: '/homepage',
+ redirect: '/home',
children: [
+ {
+ path: '/home',
+ component: () => import('@/views/desktop/index.vue'),
+ name: 'desktop',
+ meta: {title: '主页'}
+ },
{
path: '/homepage',
component: () => import('@/views/homePage/index.vue'),
diff --git a/src/renderer/src/views/desktop/container/work-trend.vue b/src/renderer/src/views/desktop/container/work-trend.vue
new file mode 100644
index 0000000..e4ca636
--- /dev/null
+++ b/src/renderer/src/views/desktop/container/work-trend.vue
@@ -0,0 +1,92 @@
+
+
+
+ 工作动态
+
+
+
+
+
+
+
+
+
+ -
+
+
+ {{ item.className }}
+
+
{{ item.classDay }} {{ item.startTime }} ~ {{ item.classDay }} {{ item.endTime }}
+
+
+ {{ index === 0 ? tag.name : '、' + tag.name }}
+
+
+
+
+ 上课
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/renderer/src/views/desktop/index.vue b/src/renderer/src/views/desktop/index.vue
new file mode 100644
index 0000000..e71c0c5
--- /dev/null
+++ b/src/renderer/src/views/desktop/index.vue
@@ -0,0 +1,287 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/renderer/src/views/homePage/index.vue b/src/renderer/src/views/homePage/index.vue
index 4471853..3d82606 100644
--- a/src/renderer/src/views/homePage/index.vue
+++ b/src/renderer/src/views/homePage/index.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue
index 0cb65bc..b0b4004 100644
--- a/src/renderer/src/views/prepare/index.vue
+++ b/src/renderer/src/views/prepare/index.vue
@@ -544,7 +544,7 @@ export default {