吉安感知网项目-前端
shuishen
2026-01-07 fd6bf84d87d1773dcb53a47d6fafdd39dfd28e13
feat:菜单默认基础配置,相关处理
8 files modified
3635 ■■■■ changed files
applications/drone-command/src/config/website.js 6 ●●●● patch | view | raw | blame | history
applications/drone-command/src/router/page/index.js 2 ●●● patch | view | raw | blame | history
applications/drone-command/src/router/views/index.js 11 ●●●● patch | view | raw | blame | history
applications/drone-command/src/store/modules/user.js 4 ●●●● patch | view | raw | blame | history
applications/drone-command/src/views/authority/role.vue 21 ●●●●● patch | view | raw | blame | history
applications/drone-command/src/views/system/menu.vue 4 ●●●● patch | view | raw | blame | history
applications/drone-command/src/views/wel/index.vue 10 ●●●●● patch | view | raw | blame | history
pnpm-lock.yaml 3577 ●●●● patch | view | raw | blame | history
applications/drone-command/src/config/website.js
@@ -2,7 +2,7 @@
 * @Author       : yuan
 * @Date         : 2026-01-06 09:47:09
 * @LastEditors  : yuan
 * @LastEditTime : 2026-01-07 09:18:52
 * @LastEditTime : 2026-01-07 14:27:40
 * @FilePath     : \applications\drone-command\src\config\website.js
 * @Description  : 
 * Copyright 2026 OBKoro1, All Rights Reserved. 
@@ -42,8 +42,8 @@
    menu: true,
  },
  fistPage: {
    name: '首页',
    path: '/wel/index',
    name: '数据驾驶舱',
    path: '/dataCockpit/index',
    // path: '/tickets/ticket',
  },
applications/drone-command/src/router/page/index.js
@@ -67,7 +67,7 @@
  {
    path: '/',
    name: '主页',
    redirect: '/wel',
    redirect: '/dataCockpit',
  },
  // {
  //    path: '/',
applications/drone-command/src/router/views/index.js
@@ -3,18 +3,17 @@
export default [
  {
    path: '/wel',
    component: () =>
      Store.getters.isMacOs ? import('@/mac/index.vue') : import('@/page/index/index.vue'),
    redirect: '/wel/index',
    path: '/dataCockpit',
    component: Layout,
    redirect: '/dataCockpit/index',
    children: [
      {
        path: 'index',
        name: '个人工作台',
        name: '数据驾驶舱',
        meta: {
          i18n: 'dashboard',
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/wel/index.vue'),
        component: () => import(/* webpackChunkName: "views" */ '@/views/dataCockpit/index.vue'),
      },
    ],
  },
applications/drone-command/src/store/modules/user.js
@@ -280,7 +280,7 @@
        })
      }
      return new Promise(resolve => {
        getRoutes({tenantId,sysType: 1}).then(res => {
        getRoutes({tenantId,sysType: 5}).then(res => {
          const data = res.data.data;
          let menu = deepClone(data);
          if (!res.data?.data?.length){
@@ -299,7 +299,7 @@
    },
    GetButtons({ commit }) {
      return new Promise(resolve => {
        getButtons({sysType: 1}).then(res => {
        getButtons({sysType: 5}).then(res => {
          const data = res.data.data;
          commit('SET_PERMISSION', data);
          resolve();
applications/drone-command/src/views/authority/role.vue
@@ -12,7 +12,7 @@
        <!--  -->
      </template>
    </avue-crud>
    <el-dialog title="角色权限配置" append-to-body v-model="box" width="432.5px">
    <el-dialog title="角色权限配置" append-to-body v-model="box" width="620px">
      <el-tabs type="border-card">
        <el-tab-pane label="后台管理">
          <el-tree :data="menuGrantList" show-checkbox node-key="id" ref="treeMenu" :default-checked-keys="menuTreeObj"
@@ -31,12 +31,17 @@
          </el-tree>
        </el-tab-pane>
        <el-tab-pane label="无人机管控">
          <el-tree :data="menuGrantListDroneControl" show-checkbox node-key="id" ref="droneControl" :default-checked-keys="droneControlMenuTreeObj"
                   :props="props">
          </el-tree>
        </el-tab-pane>
        <el-tab-pane label="大屏菜单">
          <el-tree :data="menuGrantListOld" show-checkbox node-key="id" ref="treeMenuWebOld" :default-checked-keys="menuTreeObjOld"
                   :props="props">
          </el-tree>
        </el-tab-pane>
        <!-- <el-tab-pane label="数据权限">
          <el-tree
            :data="dataScopeGrantList"
@@ -97,6 +102,7 @@
      menuGrantListApp: [],
      menuGrantListOld: [],
      menuGrantListNew: [],
      menuGrantListDroneControl: [],
      dataScopeGrantList: [],
      apiScopeGrantList: [],
      apiGrantList: [],
@@ -104,6 +110,7 @@
      menuTreeObjApp: [],
      menuTreeObjOld: [],
      menuTreeObjNew: [],
      droneControlMenuTreeObj: [],
      dataScopeTreeObj: [],
      apiScopeTreeObj: [],
      selectionList: [],
@@ -258,6 +265,7 @@
      const menuList = this.$refs.treeMenu.getCheckedKeys()
      const menuListApp = this.$refs.treeMenuApp.getCheckedKeys()
      const menuListWebNew = this.$refs.treeMenuWebNew.getCheckedKeys()
      const menuListDroneControl = this.$refs.droneControl.getCheckedKeys()
      const menuListWebOld = this.$refs.treeMenuWebOld.getCheckedKeys()
      
@@ -270,6 +278,7 @@
        ...menuList,
        ...menuListApp,
        ...menuListWebNew,
        ...menuListDroneControl,
        ...menuListWebOld,
      ], dataScopeList, apiScopeList).then(() => {
        this.box = false
@@ -394,6 +403,14 @@
          this.box = true
        })
      })
      grantTree({sysType: 5}).then(res => {
        this.menuGrantListDroneControl = res.data.data.menu
        getRole(this.ids).then(res => {
          this.droneControlMenuTreeObj = res.data.data.menu
          this.box = true
        })
      })
    },
    handleDelete () {
      if (this.selectionList.length === 0) {
applications/drone-command/src/views/system/menu.vue
@@ -202,6 +202,10 @@
                label: '新大屏',
                value: 4,
              },
              {
                label: '无人机管控',
                value: 5,
              },
            ],
            hide: true,
            rules: [
applications/drone-command/src/views/wel/index.vue
@@ -2,6 +2,16 @@
 * @Author       : yuan
 * @Date         : 2026-01-06 09:47:09
 * @LastEditors  : yuan
 * @LastEditTime : 2026-01-07 14:32:32
 * @FilePath     : \applications\drone-command\src\views\wel\index.vue
 * @Description  :
 * Copyright 2026 OBKoro1, All Rights Reserved.
 * 2026-01-06 09:47:09
-->
<!--
 * @Author       : yuan
 * @Date         : 2026-01-06 09:47:09
 * @LastEditors  : yuan
 * @LastEditTime : 2026-01-07 09:20:47
 * @FilePath     : \applications\drone-command\src\views\wel\index.vue
 * @Description  : 
pnpm-lock.yaml
Diff too large