diff --git a/components.d.ts b/components.d.ts index fe2b2b7f..aeabc9d8 100644 --- a/components.d.ts +++ b/components.d.ts @@ -77,5 +77,6 @@ declare module '@vue/runtime-core' { TableEdit: typeof import('./src/components/table-edit.vue')['default'] TableSearch: typeof import('./src/components/table-search.vue')['default'] Tabs: typeof import('./src/components/tabs.vue')['default'] + WeatherWidget: typeof import('./src/components/WeatherWidget.vue')['default'] } } diff --git a/src/components/WeatherWidget.vue b/src/components/WeatherWidget.vue new file mode 100644 index 00000000..82a94bca --- /dev/null +++ b/src/components/WeatherWidget.vue @@ -0,0 +1,79 @@ + + + + + + + + + {{ weather.temp }}°C + {{ weather.description }} + {{weather.city}} + + + + + + + + \ No newline at end of file diff --git a/src/components/menu.ts b/src/components/menu.ts index 2644432b..e603140a 100644 --- a/src/components/menu.ts +++ b/src/components/menu.ts @@ -31,6 +31,18 @@ export const menuData: Menus[] = [ index: '/system-menu', title: '菜单管理', }, + { + id: '14', + pid: '1', + index: '/product-management', + title: '商品管理', + }, + { + id: '15', + pid: '1', + index: '/finance-management', + title: '财务管理', + }, ], }, { diff --git a/src/router/index.ts b/src/router/index.ts index cd6d81cf..bf379b2d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -50,6 +50,24 @@ const routes: RouteRecordRaw[] = [ }, component: () => import(/* webpackChunkName: "system-menu" */ '../views/system/menu.vue'), }, + { + path: '/product-management', + name: 'product-management', + meta: { + title: '商品管理', + permiss: '14', + }, + component: () => import(/* webpackChunkName: "product-management" */ '../views/product-management.vue'), + }, + { + path: '/finance-management', + name: 'finance-management', + meta: { + title: '财务管理', + permiss: '15', + }, + component: () => import(/* webpackChunkName: "finance-management" */ '../views/finance-management.vue'), + }, { path: '/table', name: 'basetable', diff --git a/src/store/permiss.ts b/src/store/permiss.ts index d97553fe..d5e05440 100644 --- a/src/store/permiss.ts +++ b/src/store/permiss.ts @@ -13,6 +13,8 @@ export const usePermissStore = defineStore('permiss', { '11', '12', '13', + '14', + '15', '2', '21', '22', @@ -43,7 +45,7 @@ export const usePermissStore = defineStore('permiss', { '65', '66', ], - user: ['0', '1', '11', '12', '13'], + user: ['0', '1', '11', '12', '13', '14', '15'], }; const username = localStorage.getItem('vuems_name'); console.log(username); diff --git a/src/views/dashboard.vue b/src/views/dashboard.vue index 5f27a4bc..1a12b958 100644 --- a/src/views/dashboard.vue +++ b/src/views/dashboard.vue @@ -1,5 +1,10 @@ + + + + + @@ -127,6 +132,7 @@ + + \ No newline at end of file diff --git a/src/views/product-management.vue b/src/views/product-management.vue new file mode 100644 index 00000000..124c1d82 --- /dev/null +++ b/src/views/product-management.vue @@ -0,0 +1,113 @@ + + + 商品管理 + 新增商品 + + + + + + + 编辑 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file