Procházet zdrojové kódy

feat: 用户群组模块

lvkun996 před 2 roky
rodič
revize
d98f1a58b0

+ 1 - 0
README.md

@@ -44,6 +44,7 @@ npm run build:package  该指令全是将目前已有的模块分别打包
 | schedule | 数据中台 | http://124.222.113.37:12345/scheduler/ui |
 | view     | 可视化   | http://cloudview.jiaolongcloud.com/      |
 | lowcode  | 低代码   | http://49.232.161.110:5556               |
+| user  | 用户群组   | /user             |
 
 #### 使用说明
 

+ 12 - 0
src/pages/user/manage/index.vue

@@ -0,0 +1,12 @@
+<template>
+  <a-card>
+    manage
+  </a-card>
+</template>
+
+<script lang="ts" setup >
+
+</script>
+
+<style lang="less" >
+</style>

+ 19 - 1
src/router/index.ts

@@ -283,7 +283,25 @@ const lowcode = {
   link: true
 }
 
-const _routes = [iot, rts, schedule, view, lowcode] as any
+const user = {
+  path: '/user',
+  name: '用户群组',
+  meta: {
+    title: '用户群组'
+  },
+  component: () => import('@/layout/layout.vue'),
+  redirect: '/manage',
+  children: [
+    {
+      path: '/manage',
+      name: '用户管理',
+      icon: 'PlayCircleOutlined',
+      component: () => import('@/pages/user/manage/index.vue')
+    }
+  ]
+}
+
+const _routes = [iot, rts, schedule, view, lowcode, user] as any
 
 if (_routes[0].link) {
   window.open(_routes[0].path)

+ 0 - 1
src/store/modules/user/index.ts

@@ -1,7 +1,6 @@
 import { Modal } from 'ant-design-vue'
 import { defineStore } from 'pinia'
 import { reactive } from 'vue'
-import { useId } from 'flicker-vue-hooks'
 
 export const useUserStore = defineStore('userStore', () => {
   const userInfo = reactive({})