فهرست منبع

feat: update: 完善设置 角色管理 和动态路由 规格

叶静 3 هفته پیش
والد
کامیت
ebeeed4894

+ 4 - 1
.env.development

@@ -4,7 +4,10 @@ SHEEP_VERSION = v1.4.0
 SHEEP_BASE_URL = /
 
 # 开发环境接口域名
- SHEEP_DEV_BASE_URL = http://124.222.152.234:8501
+;  SHEEP_DEV_BASE_URL = http://124.222.152.234:8501
+
+ # 开发环境接口域名
+ SHEEP_DEV_BASE_URL = http://124.222.152.234:8101/mall
 
 # 开发环境上传文件接口域名
  SHEEP_UPLOAD_BASE_URL = /operating

+ 27 - 4
.promptx/pouch.json

@@ -1,16 +1,39 @@
 {
-  "currentState": "initialized",
+  "currentState": "recalled-assistant",
   "stateHistory": [
     {
       "from": "initial",
       "command": "init",
-      "timestamp": "2025-07-14T01:54:37.215Z",
+      "timestamp": "2025-07-25T07:11:37.854Z",
       "args": [
         {
-          "workingDirectory": "d:\\work\\bandhu-buy\\admin"
+          "workingDirectory": "d:\\work\\bandhu-buy\\admin",
+          "ideType": "cursor"
         }
       ]
+    },
+    {
+      "from": "initialized",
+      "command": "recall",
+      "timestamp": "2025-07-25T07:12:32.593Z",
+      "args": [
+        "assistant"
+      ]
+    },
+    {
+      "from": "recalled-assistant",
+      "command": "welcome",
+      "timestamp": "2025-07-25T07:12:39.176Z",
+      "args": []
+    },
+    {
+      "from": "service_discovery",
+      "command": "recall",
+      "timestamp": "2025-07-25T07:14:14.165Z",
+      "args": [
+        "assistant"
+      ]
     }
   ],
-  "lastUpdated": "2025-07-14T01:54:37.286Z"
+  "lastUpdated": "2025-07-25T07:14:14.167Z"
 }

+ 2 - 2
.promptx/resource/project.registry.json

@@ -4,8 +4,8 @@
   "metadata": {
     "version": "2.0.0",
     "description": "project 级资源注册表",
-    "createdAt": "2025-07-14T01:54:37.268Z",
-    "updatedAt": "2025-07-14T01:54:37.270Z",
+    "createdAt": "2025-07-25T07:11:37.894Z",
+    "updatedAt": "2025-07-25T07:11:37.895Z",
     "resourceCount": 0
   },
   "resources": [],

BIN
public/favicon.ico


BIN
public/static/images/loading/logo.gif


BIN
public/static/images/loading/name-dark.png


BIN
public/static/images/loading/name-light.png


BIN
public/static/images/loginBg.png


BIN
public/static/images/logo.png


+ 4 - 3
src/app/admin/store/account.js

@@ -78,9 +78,10 @@ const account = defineStore({
      * @description 获取用户菜单权限规则
      */
     async getRules() {
-      // const { code, data } = await localAdmin.account.rules();
-      const { code, data } = await admin.account.queryMenu();
-      // console.log(code, data);
+      /* 测试 */
+      const { code, data } = await localAdmin.account.rules();
+      /* end */
+      // const { code, data } = await admin.account.queryMenu();
       if (code == 200) {
         this.menuRules = data; // 设置菜单规则
         // this.pageRules = data.permission; // 设置页面权限

+ 5 - 8
src/app/admin/views/auth/access/components/sa-access.vue

@@ -553,20 +553,17 @@
         const checkedChildren = item.children.filter((child) => child.checked);
         const indeterminateChildren = item.children.filter((child) => child.indeterminate);
 
-        // 如果父级本身被明确选中,保持选中状态
-        if (isChecked) {
-          item.checked = true;
-          item.indeterminate = false;
-        } else if (checkedChildren.length === item.children.length) {
-          // 所有子项都选中
+        // 父级状态完全根据子级状态来判断,不考虑父级本身是否在选中列表中
+        if (checkedChildren.length === item.children.length) {
+          // 所有子项都选中 - 父级全选
           item.checked = true;
           item.indeterminate = false;
         } else if (checkedChildren.length > 0 || indeterminateChildren.length > 0) {
-          // 部分子项选中或有半选状态
+          // 部分子项选中或有半选状态 - 父级半选
           item.checked = false;
           item.indeterminate = true;
         } else {
-          // 没有子项选中
+          // 没有子项选中 - 父级未选
           item.checked = false;
           item.indeterminate = false;
         }

+ 0 - 1
src/app/shop/admin/content/banner/index.vue

@@ -27,7 +27,6 @@
           :data="table.data"
           @selection-change="changeSelection"
           @sort-change="fieldFilter"
-          @row-dblclick="editRow"
           row-key="id"
           stripe
         >

+ 0 - 1
src/app/shop/admin/content/notification/index.vue

@@ -27,7 +27,6 @@
           :data="table.data"
           @selection-change="changeSelection"
           @sort-change="fieldFilter"
-          @row-dblclick="editRow"
           row-key="id"
           stripe
         >

+ 0 - 1
src/app/shop/admin/content/sms/index.vue

@@ -27,7 +27,6 @@
           :data="table.data"
           @selection-change="changeSelection"
           @sort-change="fieldFilter"
-          @row-dblclick="editRow"
           row-key="id"
           stripe
         >

+ 0 - 1
src/app/shop/admin/goods/category/index.vue

@@ -27,7 +27,6 @@
           :data="table.data"
           @selection-change="changeSelection"
           @sort-change="fieldFilter"
-          @row-dblclick="editRow"
           row-key="id"
           stripe
         >

+ 0 - 1
src/app/shop/admin/goods/goods/index.vue

@@ -51,7 +51,6 @@
               :data="table.data"
               @selection-change="changeSelection"
               @sort-change="fieldFilter"
-              @row-dblclick="editRow"
               row-key="id"
               stripe
             >

+ 1 - 30
src/app/shop/admin/order/order.service.js

@@ -48,36 +48,7 @@ const route = {
 
 const api = {
   order: {
-    // 订单列表 - 使用POST方法
-    list: (data) =>
-      request({
-        url: '/order/list',
-        method: 'POST',
-        data,
-      }),
-    // 订单详情
-    detail: (id) =>
-      request({
-        url: `/shop/admin/order/order/detail/${id}`,
-        method: 'GET',
-      }),
-    // 编辑订单
-    edit: (id, data) =>
-      request({
-        url: `/shop/admin/order/order/edit/${id}`,
-        method: 'PUT',
-        data,
-      }),
-    getType: () =>
-      request({
-        url: '/shop/admin/order/order/getType',
-        method: 'GET',
-      }),
-    action: (id) =>
-      request({
-        url: `/shop/admin/order/order/action/${id}`,
-        method: 'GET',
-      }),
+    ...CRUD('order'),
     // 发货
     dispatch: (data) =>
       request({

+ 4 - 4
src/app/shop/admin/order/order/detail.vue

@@ -22,7 +22,7 @@
           <el-col :span="6">
             <div class="info-item">
               <span class="label">订单编号:</span>
-              <span class="value">{{ state.orderDetail.order_sn || '--' }}</span>
+              <span class="value">{{ state.orderDetail.orderId || '--' }}</span>
             </div>
           </el-col>
           <el-col :span="6">
@@ -34,7 +34,7 @@
           <el-col :span="6">
             <div class="info-item">
               <span class="label">全部金额:</span>
-              <span class="value">৳{{ state.orderDetail.total_amount || '--' }}</span>
+              <span class="value">৳{{ state.orderDetail.totalPrice || '--' }}</span>
             </div>
           </el-col>
           <el-col :span="6">
@@ -92,7 +92,7 @@
         </el-row>
       </div>
       <!-- 备注信息 -->
-      <div class="memo-info sa-m-b-26">
+      <!-- <div class="memo-info sa-m-b-26">
         <h3 class="sa-m-b-20">备注信息</h3>
         <div class="memo sa-flex">
           <template v-if="memoForm.flag">
@@ -121,7 +121,7 @@
           <span class="label">买家留言:</span>
           <span class="value">{{ state.orderDetail.remark || '暂无留言' }}</span>
         </div>
-      </div>
+      </div> -->
 
       <!-- 操作按钮 -->
       <div class="action-buttons sa-m-b-26">

+ 39 - 61
src/app/shop/admin/order/order/index.vue

@@ -123,9 +123,9 @@
               </el-table-column>
               <el-table-column prop="realName" label="用户名" min-width="120" align="center">
                 <template #default="scope">
-                  <el-button type="text" @click="openUserDetail(scope.row.uid)">
+                  <el-link type="primary" @click="openUserDetail(scope.row.uid)">
                     {{ scope.row.realName || '-' }}
-                  </el-button>
+                  </el-link>
                 </template>
               </el-table-column>
               <el-table-column prop="payPrice" label="付款金额" min-width="120" align="center">
@@ -231,6 +231,7 @@
   import OrderDispatch from './dispatch.vue';
   import OrderBatchDispatch from './batchDispatch.vue';
   import OrderDetail from './detail.vue';
+  import UserEdit from '../../user/list/edit.vue';
 
   // 搜索字段配置
   const searchFields = reactive({
@@ -374,63 +375,30 @@
 
   // 获取数据
   async function getData(page, searchParams = {}) {
+    if (page) pageData.page = page;
     loading.value = true;
-    try {
-      if (page) pageData.page = page;
-
-      // 构建请求参数
-      const requestData = {
-        page: pageData.page,
-        size: pageData.size,
-        ...searchParams,
-      };
-
-      // 处理时间范围搜索
-      if (searchParams.createTime && searchParams.createTime.length === 2) {
-        requestData.startTime = searchParams.createTime[0];
-        requestData.endTime = searchParams.createTime[1];
-        delete requestData.createTime;
-      }
 
-      const response = await api.order.list(requestData);
-
-      console.log('API 响应:', response);
-
-      if (response && response.code == '200' && response.data) {
-        // 映射后端返回的字段到前端需要的格式
-        table.data = (response.data.orders.data || []).map((item) => ({
-          id: item.id,
-          orderId: item.orderId, // 订单号
-          realName: item.realName, // 用户姓名
-          userPhone: item.userPhone, // 用户电话
-          uid: item.uid, // 用户ID
-          totalPrice: item.totalPrice, // 订单总价
-          payPrice: item.payPrice, // 实际支付金额
-          totalNum: item.totalNum, // 商品总数
-          paid: item.paid, // 支付状态
-          status: item.status, // 订单状态
-          refundStatus: item.refundStatus, // 退款状态
-          createTime: item.createTime, // 创建时间
-          payTime: item.payTime, // 支付时间
-          deliveryName: item.deliveryName, // 快递名称
-          deliveryId: item.deliveryId, // 快递单号
-          shippingType: item.shippingType, // 配送方式
-          userAddress: item.userAddress, // 详细地址
-          remark: item.remark, // 管理员备注
-          mark: item.mark, // 备注
-          orderInfoVO: item.orderInfoVO, // 订单商品信息
-        }));
-
-        pageData.page = response.data.orders.current_page || pageData.page;
-        pageData.size = response.data.orders.per_page || pageData.size;
-        pageData.total = response.data.orders.total || 0;
-      } else {
-        table.data = [];
-        console.error('获取订单数据失败:', response);
-      }
-    } catch (error) {
-      console.error('API 调用异常:', error);
-      table.data = [];
+    // 构建请求参数
+    const requestData = {
+      page: pageData.page,
+      size: pageData.size,
+      ...searchParams,
+    };
+
+    // 处理时间范围搜索
+    if (searchParams.createTime && searchParams.createTime.length === 2) {
+      requestData.startTime = searchParams.createTime[0];
+      requestData.endTime = searchParams.createTime[1];
+      delete requestData.createTime;
+    }
+
+    const { code, data } = await api.order.list(requestData);
+
+    if (code == '200') {
+      table.data = data.list;
+      pageData.page = data.pageNum;
+      pageData.size = data.pageSize;
+      pageData.total = data.total;
     }
     loading.value = false;
   }
@@ -513,10 +481,20 @@
   // 打开用户详情
   function openUserDetail(uid) {
     if (uid) {
-      console.log('打开用户详情', uid);
-      ElMessage.info('用户详情功能待开发');
-      // TODO: 这里可以跳转到用户详情页面或打开弹窗
-      // router.push(`/user/detail/${uid}`);
+      useModal(
+        UserEdit,
+        {
+          title: '编辑用户',
+          type: 'edit',
+          id: uid,
+        },
+        {
+          confirm: () => {
+            // 用户编辑完成后可以选择是否刷新订单列表
+            // getData();
+          },
+        },
+      );
     }
   }
 

+ 0 - 1
src/app/shop/admin/order/setting/index.vue

@@ -17,7 +17,6 @@
           :data="table.data"
           @selection-change="changeSelection"
           @sort-change="fieldFilter"
-          @row-dblclick="editRow"
           row-key="id"
           stripe
         >

+ 0 - 1
src/app/shop/admin/user/level/index.vue

@@ -27,7 +27,6 @@
           :data="table.data"
           @selection-change="changeSelection"
           @sort-change="fieldFilter"
-          @row-dblclick="editRow"
           row-key="id"
           stripe
         >

+ 0 - 1
src/app/shop/admin/user/tag/index.vue

@@ -27,7 +27,6 @@
           :data="table.data"
           @selection-change="changeSelection"
           @sort-change="fieldFilter"
-          @row-dblclick="editRow"
           row-key="id"
           stripe
         >

+ 2 - 2
src/sheep/layouts/menu/style/qianniu/index.vue

@@ -1,8 +1,8 @@
 <template>
   <div class="shop-menu">
     <el-scrollbar class="menu-1" height="100%">
-      <div class="title">
-        <sa-image :url="appInfo?.logo" size="60" fit="contain"></sa-image>
+      <div class="title my-10px">
+        <sa-image :url="appInfo?.logo" size="36" fit="contain"></sa-image>
       </div>
       <el-menu :default-active="shop.name" @select="onSelect">
         <template v-for="menu in shopApp?.children || []" :key="menu">

+ 0 - 1146
src/sheep/local-data/admin-backup.js

@@ -1,1146 +0,0 @@
-/**
- * 管理后台本地数据
- */
-
-// 系统初始化数据
-const initData = {
-  error: 0,
-  msg: '获取成功',
-  data: {
-    name: 'bandhuBuy',
-    logo: '/static/img/logo.png',
-    domainurl: 'https://mall-oss.trust-will.com',
-    filesystem: 'aliyun',
-    version: '1.0.0',
-    sheep_version: 'v1.4.1',
-    is_pro: true,
-  },
-};
-
-// 登录配置数据
-const loginConfigData = {
-  error: 0,
-  msg: '获取成功',
-  data: {
-    background: '/storage/default/20250227/8fdd538e05f5ad15402f5a66fe595621.jpg',
-    mode: 'none',
-  },
-};
-
-// 菜单权限数据 - 改造为二级结构
-const menuRulesData = {
-  error: 0,
-  msg: '获取成功',
-  data: {
-    menu: [
-      {
-        type_text: '菜单',
-        status_text: '显示',
-        id: 1,
-        parent_id: 0,
-        name: 'admin',
-        title: '系统管理',
-        type: 'menu',
-        icon: '/static/img/admin/access/system.png',
-        params: '',
-        weigh: 0,
-        status: 'show',
-        children: [
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 2,
-            parent_id: 1,
-            name: 'admin.config',
-            title: '系统设置',
-            type: 'menu',
-            icon: 'sa-config',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 3,
-                parent_id: 2,
-                name: 'admin.config.basic',
-                title: '基础配置',
-                type: 'page',
-                icon: 'sa-config-basic',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 8,
-                parent_id: 2,
-                name: 'file.admin.config',
-                title: '附件配置',
-                type: 'page',
-                icon: 'sa-config-filesystem',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 10,
-                parent_id: 2,
-                name: 'admin.config.easysms',
-                title: '短信配置',
-                type: 'page',
-                icon: 'sa-config-easysms',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 12,
-            parent_id: 1,
-            name: 'admin.notification.config',
-            title: '通知设置',
-            type: 'menu',
-            icon: 'sa-Notification01',
-            params: '',
-            weigh: 0,
-            status: 'show',
-          },
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 18,
-            parent_id: 1,
-            name: 'admin.auth',
-            title: '权限设置',
-            type: 'menu',
-            icon: 'sa-auth',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '菜单',
-                status_text: '显示',
-                id: 19,
-                parent_id: 18,
-                name: 'admin.auth.adminlog',
-                title: '操作记录',
-                type: 'menu',
-                icon: 'sa-auth-adminlog',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 21,
-                parent_id: 18,
-                name: 'admin.auth.access',
-                title: '菜单权限',
-                type: 'page',
-                icon: 'sa-auth-access',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 27,
-                parent_id: 18,
-                name: 'admin.auth.role',
-                title: '角色组',
-                type: 'page',
-                icon: 'sa-auth-role',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 33,
-                parent_id: 18,
-                name: 'admin.auth.admin',
-                title: '管理员',
-                type: 'page',
-                icon: 'sa-auth-admin',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-        ],
-      },
-
-      {
-        type_text: '菜单',
-        status_text: '显示',
-        id: 89,
-        parent_id: 0,
-        name: 'shop.admin',
-        title: '商城',
-        type: 'menu',
-        icon: '/static/img/shop/logo.png',
-        params: '',
-        weigh: 0,
-        status: 'show',
-        children: [
-          {
-            type_text: '页面',
-            status_text: '显示',
-            id: 90,
-            parent_id: 89,
-            name: 'shop.admin.dashboard',
-            title: '总览',
-            type: 'page',
-            icon: 'sa-home_line',
-            params: '',
-            weigh: 10,
-            status: 'show',
-          },
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 758,
-            parent_id: 89,
-            name: 'shop.admin.pc',
-            title: 'PC',
-            type: 'menu',
-            icon: 'sa-shop_line',
-            params: '',
-            weigh: 1,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 759,
-                parent_id: 758,
-                name: 'shop.admin.pc.decorate',
-                title: '首页装修',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 94,
-            parent_id: 89,
-            name: 'shop.admin.decorate',
-            title: '装修',
-            type: 'menu',
-            icon: 'sa-shop_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 95,
-                parent_id: 94,
-                name: 'shop.admin.decorate.template',
-                title: '模板管理',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 109,
-                parent_id: 94,
-                name: 'shop.admin.decorate.designer',
-                title: '设计师模板',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 112,
-            parent_id: 89,
-            name: 'shop.admin.goods',
-            title: '商品',
-            type: 'menu',
-            icon: 'sa-bag_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 113,
-                parent_id: 112,
-                name: 'shop.admin.goods.goods',
-                title: '商品库',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 5,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 125,
-                parent_id: 112,
-                name: 'shop.admin.category',
-                title: '商品分类',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 4,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 765,
-                parent_id: 112,
-                name: 'shop.admin.category',
-                title: '商品标签',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 3,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 131,
-                parent_id: 112,
-                name: 'shop.admin.goods.comment',
-                title: '评价管理',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 2,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 141,
-                parent_id: 112,
-                name: 'shop.admin.goods.service',
-                title: '服务保障',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 2,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 147,
-                parent_id: 112,
-                name: 'shop.admin.goods.stockwarning',
-                title: '库存预警',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 2,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 151,
-                parent_id: 112,
-                name: 'shop.admin.goods.stocklog',
-                title: '补货记录',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 2,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 734,
-                parent_id: 112,
-                name: 'shop.admin.goods.pricerule',
-                title: '定价规则',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 2,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 746,
-                parent_id: 112,
-                name: 'shop.admin.goods.lmsparegoods',
-                title: '业务库',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 1,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 740,
-                parent_id: 112,
-                name: 'shop.admin.goods.lmgoods',
-                title: 'LM选品库',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 771,
-                parent_id: 112,
-                name: 'shop.admin.goods.zkhgoods',
-                title: '震坤行选品库',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 153,
-            parent_id: 89,
-            name: 'shop.admin.order',
-            title: '订单',
-            type: 'menu',
-            icon: 'sa-order_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 154,
-                parent_id: 153,
-                name: 'shop.admin.order.order',
-                title: '订单管理',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '菜单',
-                status_text: '显示',
-                id: 171,
-                parent_id: 153,
-                name: 'shop.admin.order.aftersale',
-                title: '售后管理',
-                type: 'menu',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 178,
-                parent_id: 153,
-                name: 'shop.admin.trade.order',
-                title: '充值订单',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 182,
-                parent_id: 153,
-                name: 'shop.admin.order.invoice',
-                title: '订单发票',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          {
-            type_text: '页面',
-            status_text: '显示',
-            id: 185,
-            parent_id: 89,
-            name: 'shop.admin.activity.activity',
-            title: '活动',
-            type: 'page',
-            icon: 'sa-marketing_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-          },
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 235,
-            parent_id: 89,
-            name: 'shop.admin.commission',
-            title: '分销',
-            type: 'menu',
-            icon: 'sa-distribution_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 236,
-                parent_id: 235,
-                name: 'shop.admin.commission.agent',
-                title: '分销商',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 242,
-                parent_id: 235,
-                name: 'shop.admin.commission.level',
-                title: '分销商等级',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 248,
-                parent_id: 235,
-                name: 'shop.admin.commission.order',
-                title: '分销订单',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 254,
-                parent_id: 235,
-                name: 'shop.admin.commission.log',
-                title: '分销动态',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 256,
-                parent_id: 235,
-                name: 'shop.admin.commission.reward',
-                title: '佣金明细',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 258,
-                parent_id: 235,
-                name: 'shop.admin.commission.goods',
-                title: '分销商品',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 262,
-            parent_id: 89,
-            name: 'shop.admin.data',
-            title: '数据',
-            type: 'menu',
-            icon: 'sa-graph_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 263,
-                parent_id: 262,
-                name: 'shop.admin.data.page',
-                title: '页面链接',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 269,
-                parent_id: 262,
-                name: 'shop.admin.data.richtext',
-                title: '富文本',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 275,
-                parent_id: 262,
-                name: 'shop.admin.data.area',
-                title: '省市区',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 281,
-                parent_id: 262,
-                name: 'shop.admin.data.faq',
-                title: '常见问题',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 287,
-                parent_id: 262,
-                name: 'shop.admin.data.express',
-                title: '快递公司',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 293,
-                parent_id: 262,
-                name: 'shop.admin.data.fakeuser',
-                title: '虚拟用户',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          {
-            type_text: '页面',
-            status_text: '显示',
-            id: 300,
-            parent_id: 89,
-            name: 'shop.admin.feedback',
-            title: '反馈',
-            type: 'page',
-            icon: 'sa-message_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-          },
-          {
-            type_text: '页面',
-            status_text: '显示',
-            id: 305,
-            parent_id: 89,
-            name: 'shop.admin.dispatch',
-            title: '配送',
-            type: 'page',
-            icon: 'sa-box_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-          },
-          {
-            type_text: '页面',
-            status_text: '显示',
-            id: 311,
-            parent_id: 89,
-            name: 'shop.admin.config',
-            title: '配置',
-            type: 'page',
-            icon: 'sa-slider_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-          },
-          {
-            type_text: '页面',
-            status_text: '显示',
-            id: 329,
-            parent_id: 89,
-            name: 'shop.admin.withdraw',
-            title: '提现',
-            type: 'page',
-            icon: 'sa-cny_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-          },
-        ],
-      },
-      {
-        type_text: '页面',
-        status_text: '显示',
-        id: 333,
-        parent_id: 0,
-        name: 'file.admin',
-        title: '文件管理',
-        type: 'page',
-        icon: '/static/img/admin/access/file.png',
-        params: '',
-        weigh: 0,
-        status: 'show',
-      },
-      {
-        type_text: '页面',
-        status_text: '显示',
-        id: 345,
-        parent_id: 0,
-        name: 'user.admin',
-        title: '会员管理',
-        type: 'page',
-        icon: '/static/img/admin/access/user.png',
-        params: '',
-        weigh: 0,
-        status: 'show',
-      },
-    ],
-    permission: [
-      'shop.admin.dashboard',
-      'shop.admin.goods.goods',
-      'shop.admin.category',
-      'shop.admin.category',
-      'shop.admin.goods.comment',
-      'shop.admin.goods.service',
-      'shop.admin.goods.stockwarning',
-      'shop.admin.goods.stocklog',
-      'shop.admin.goods.pricerule',
-      'shop.admin.goods.lmsparegoods',
-      'admin.config.basic',
-      'admin.config.basic.site',
-      'admin.config.basic.login',
-      'admin.config.basic.user',
-      'admin.config.basic.mail',
-      'file.admin.config',
-      'file.admin.config.filesystem',
-      'admin.config.easysms',
-      'admin.config.easysms.index',
-      'admin.notification.config.list',
-      'admin.notification.config.detail',
-      'admin.notification.config.edit',
-      'admin.notification.config.setstatus',
-      'admin.notification.config.gettemplateid',
-      'admin.auth.adminlog.list',
-      'admin.auth.access',
-      'admin.auth.access.list',
-      'admin.auth.access.detail',
-      'admin.auth.access.add',
-      'admin.auth.access.edit',
-      'admin.auth.access.delete',
-      'admin.auth.role',
-      'admin.auth.role.list',
-      'admin.auth.role.detail',
-      'admin.auth.role.add',
-      'admin.auth.role.edit',
-      'admin.auth.role.delete',
-      'admin.auth.admin',
-      'admin.auth.admin.list',
-      'admin.auth.admin.detail',
-      'admin.auth.admin.add',
-      'admin.auth.admin.edit',
-      'admin.auth.admin.delete',
-
-      'shop.admin.dashboard.total',
-      'shop.admin.dashboard.chart',
-      'shop.admin.dashboard.ranking',
-      'shop.admin.decorate.template',
-      'shop.admin.decorate.template.list',
-      'shop.admin.decorate.template.detail',
-      'shop.admin.decorate.template.add',
-      'shop.admin.decorate.template.edit',
-      'shop.admin.decorate.template.delete',
-      'shop.admin.decorate.template.copy',
-      'shop.admin.decorate.page',
-      'shop.admin.decorate.page.detail',
-      'shop.admin.decorate.page.edit',
-      'shop.admin.decorate.template.recyclebin',
-      'shop.admin.decorate.template.status',
-      'shop.admin.decorate.template.restore',
-      'shop.admin.decorate.template.destroy',
-      'shop.admin.decorate.designer',
-      'shop.admin.decorate.designer.list',
-      'shop.admin.decorate.designer.use',
-      'shop.admin.goods.goods.list',
-      'shop.admin.goods.goods.detail',
-      'shop.admin.goods.goods.add',
-      'shop.admin.goods.goods.edit',
-      'shop.admin.goods.goods.delete',
-      'shop.admin.goods.goods.recyclebin',
-      'shop.admin.goods.goods.restore',
-      'shop.admin.goods.goods.destroy',
-      'shop.admin.goods.goods.addstock',
-      'shop.admin.goods.skuprice.list',
-      'shop.admin.goods.skuprice.edit',
-      'shop.admin.category.list',
-      'shop.admin.category.detail',
-      'shop.admin.category.add',
-      'shop.admin.category.edit',
-      'shop.admin.category.delete',
-      'shop.admin.goods.comment.list',
-      'shop.admin.goods.comment.detail',
-      'shop.admin.goods.comment.add',
-      'shop.admin.goods.comment.edit',
-      'shop.admin.goods.comment.delete',
-      'shop.admin.goods.comment.reply',
-      'shop.admin.goods.comment.recyclebin',
-      'shop.admin.goods.comment.restore',
-      'shop.admin.goods.comment.destroy',
-      'shop.admin.goods.service.list',
-      'shop.admin.goods.service.detail',
-      'shop.admin.goods.service.add',
-      'shop.admin.goods.service.edit',
-      'shop.admin.goods.service.delete',
-      'shop.admin.goods.stockwarning.list',
-      'shop.admin.goods.stockwarning.addstock',
-      'shop.admin.goods.stockwarning.recyclebin',
-      'shop.admin.goods.stocklog.list',
-      'shop.admin.order.order',
-      'shop.admin.order.order.list',
-      'shop.admin.order.order.detail',
-      'shop.admin.order.order.action',
-      'shop.admin.order.order.editmemo',
-      'shop.admin.order.order.fullrefund',
-      'shop.admin.order.order.refund',
-      'shop.admin.order.order.applyrefundrefuse',
-      'shop.admin.order.order.export',
-      'shop.admin.order.order.dispatch',
-      'shop.admin.order.order.exportdelivery',
-      'shop.admin.order.order.updateexpress',
-      'shop.admin.order.order.changefee',
-      'shop.admin.order.order.editconsignee',
-      'shop.admin.order.order.customdispatch',
-      'shop.admin.order.order.offlineconfirm',
-      'shop.admin.order.order.offlinerefuse',
-      'shop.admin.order.aftersale.list',
-      'shop.admin.order.aftersale.detail',
-      'shop.admin.order.aftersale.completed',
-      'shop.admin.order.aftersale.refuse',
-      'shop.admin.order.aftersale.refund',
-      'shop.admin.order.aftersale.addlog',
-      'shop.admin.trade.order',
-      'shop.admin.trade.order.list',
-      'shop.admin.trade.order.detail',
-      'shop.admin.trade.order.export',
-      'shop.admin.order.invoice',
-      'shop.admin.order.invoice.list',
-      'shop.admin.order.invoice.confirm',
-      'shop.admin.activity.activity',
-      'shop.admin.activity.activity.list',
-      'shop.admin.activity.activity.detail',
-      'shop.admin.activity.activity.add',
-      'shop.admin.activity.activity.edit',
-      'shop.admin.activity.activity.delete',
-      'shop.admin.activity.activity.recyclebin',
-      'shop.admin.activity.groupon',
-      'shop.admin.activity.groupon.list',
-      'shop.admin.activity.groupon.detail',
-      'shop.admin.activity.groupon.adduser',
-      'shop.admin.activity.groupon.invalid',
-      'shop.admin.coupon',
-      'shop.admin.coupon.list',
-      'shop.admin.coupon.detail',
-      'shop.admin.coupon.add',
-      'shop.admin.coupon.edit',
-      'shop.admin.coupon.delete',
-      'shop.admin.coupon.recyclebin',
-      'shop.admin.coupon.restore',
-      'shop.admin.coupon.destroy',
-      'shop.admin.user.coupon.couponlist',
-      'shop.admin.app.scoreshop',
-      'shop.admin.app.scoreshop.list',
-      'shop.admin.app.scoreshop.skus',
-      'shop.admin.app.scoreshop.add',
-      'shop.admin.app.scoreshop.edit',
-      'shop.admin.app.scoreshop.delete',
-      'shop.admin.app.scoreshop.recyclebin',
-      'shop.admin.app.scoreshop.restore',
-      'shop.admin.app.scoreshop.destroy',
-      'shop.admin.app.scoreshop.skuprices',
-      'shop.admin.app.mplive',
-      'shop.admin.app.mplive.room',
-      'shop.admin.app.mplive.room.list',
-      'shop.admin.app.mplive.room.detail',
-      'shop.admin.app.mplive.room.add',
-      'shop.admin.app.mplive.room.edit',
-      'shop.admin.app.mplive.room.delete',
-      'shop.admin.app.mplive.room.sync',
-      'shop.admin.app.mplive.room.pushurl',
-      'shop.admin.app.mplive.room.playback',
-      'shop.admin.app.mplive.room.qrcode',
-      'shop.admin.app.mplive.goods',
-      'shop.admin.app.mplive.goods.list',
-      'shop.admin.app.mplive.goods.detail',
-      'shop.admin.app.mplive.goods.add',
-      'shop.admin.app.mplive.goods.edit',
-      'shop.admin.app.mplive.goods.delete',
-      'shop.admin.app.mplive.goods.audit',
-      'shop.admin.commission.agent',
-      'shop.admin.commission.agent.list',
-      'shop.admin.commission.agent.detail',
-      'shop.admin.commission.agent.edit',
-      'shop.admin.commission.agent.team',
-      'shop.admin.commission.agent.changeparentuser',
-      'shop.admin.commission.level',
-      'shop.admin.commission.level.list',
-      'shop.admin.commission.level.detail',
-      'shop.admin.commission.level.add',
-      'shop.admin.commission.level.edit',
-      'shop.admin.commission.level.delete',
-      'shop.admin.commission.order',
-      'shop.admin.commission.order.list',
-      'shop.admin.commission.order.confirm',
-      'shop.admin.commission.order.cancel',
-      'shop.admin.commission.order.back',
-      'shop.admin.commission.order.edit',
-      'shop.admin.commission.log',
-      'shop.admin.commission.log.list',
-      'shop.admin.commission.reward',
-      'shop.admin.commission.reward.list',
-      'shop.admin.commission.goods',
-      'shop.admin.commission.goods.list',
-      'shop.admin.commission.goods.detail',
-      'shop.admin.commission.goods.edit',
-      'shop.admin.data.page',
-      'shop.admin.data.page.list',
-      'shop.admin.data.page.detail',
-      'shop.admin.data.page.add',
-      'shop.admin.data.page.edit',
-      'shop.admin.data.page.delete',
-      'shop.admin.data.richtext',
-      'shop.admin.data.richtext.list',
-      'shop.admin.data.richtext.detail',
-      'shop.admin.data.richtext.add',
-      'shop.admin.data.richtext.edit',
-      'shop.admin.data.richtext.delete',
-      'shop.admin.data.area',
-      'shop.admin.data.area.list',
-      'shop.admin.data.area.detail',
-      'shop.admin.data.area.add',
-      'shop.admin.data.area.edit',
-      'shop.admin.data.area.delete',
-      'shop.admin.data.faq',
-      'shop.admin.data.faq.list',
-      'shop.admin.data.faq.detail',
-      'shop.admin.data.faq.add',
-      'shop.admin.data.faq.edit',
-      'shop.admin.data.faq.delete',
-      'shop.admin.data.express',
-      'shop.admin.data.express.list',
-      'shop.admin.data.express.detail',
-      'shop.admin.data.express.add',
-      'shop.admin.data.express.edit',
-      'shop.admin.data.express.delete',
-      'shop.admin.data.fakeuser',
-      'shop.admin.data.fakeuser.list',
-      'shop.admin.data.fakeuser.detail',
-      'shop.admin.data.fakeuser.add',
-      'shop.admin.data.fakeuser.edit',
-      'shop.admin.data.fakeuser.delete',
-      'shop.admin.data.fakeuser.random',
-      'shop.admin.feedback',
-      'shop.admin.feedback.list',
-      'shop.admin.feedback.detail',
-      'shop.admin.feedback.edit',
-      'shop.admin.feedback.delete',
-      'shop.admin.dispatch',
-      'shop.admin.dispatch.dispatch.list',
-      'shop.admin.dispatch.dispatch.detail',
-      'shop.admin.dispatch.dispatch.add',
-      'shop.admin.dispatch.dispatch.edit',
-      'shop.admin.dispatch.dispatch.delete',
-      'shop.admin.config',
-      'shop.admin.config.basic',
-      'shop.admin.config.platform',
-      'shop.admin.config.platformstatus',
-      'shop.admin.config.order',
-      'shop.admin.config.commission',
-      'shop.admin.payconfig',
-      'shop.admin.payconfig.list',
-      'shop.admin.payconfig.detail',
-      'shop.admin.payconfig.add',
-      'shop.admin.payconfig.edit',
-      'shop.admin.payconfig.delete',
-      'shop.admin.payconfig.recyclebin',
-      'shop.admin.payconfig.restore',
-      'shop.admin.payconfig.destroy',
-      'shop.admin.config.dispatch',
-      'shop.admin.config.rechargewithdraw',
-      'shop.admin.config.goods',
-      'shop.admin.withdraw',
-      'shop.admin.withdraw.list',
-      'shop.admin.withdraw.handle',
-      'shop.admin.withdraw.log',
-      'file.admin',
-      'file.admin.file',
-      'file.admin.file.rename',
-      'file.admin.file.move',
-      'file.admin.file.delete',
-      'file.admin.file.upload',
-      'file.admin.group',
-      'file.admin.group.add',
-      'file.admin.group.edit',
-      'file.admin.group.delete',
-      'admin.profile',
-      'admin.index.update',
-      'user.admin',
-      'user.admin.user.list',
-      'user.admin.user.detail',
-      'user.admin.user.edit',
-      'user.admin.user.delete',
-      'user.admin.user.recharge',
-      'user.admin.walletlog.money',
-      'user.admin.walletlog.score',
-      'user.admin.walletlog.commission',
-      'shop.admin.share.list',
-      'shop.admin.user.coupon.list',
-      'shop.admin.commission.order.export',
-      'shop.admin.commission.reward.export',
-      'shop.admin.coupon.send',
-      'shop.admin.goods.pricerule.list',
-      'shop.admin.goods.pricerule.detail',
-      'shop.admin.goods.pricerule.add',
-      'shop.admin.goods.pricerule.edit',
-      'shop.admin.goods.pricerule.delete',
-      'shop.admin.goods.lmgoods',
-      'shop.admin.goods.lmgoods.list',
-      'shop.admin.goods.lmgoods.add',
-      'shop.admin.goods.lmgoods.edit',
-      'shop.admin.goods.lmgoods.delete',
-      'shop.admin.goods.lmgoods.detail',
-      'shop.admin.goods.lmsparegoods.list',
-      'shop.admin.goods.lmsparegoods.detail',
-      'shop.admin.goods.lmsparegoods.add',
-      'shop.admin.goods.lmsparegoods.edit',
-      'shop.admin.goods.lmsparegoods.delete',
-      'shop.admin.pcbanner',
-      'shop.admin.pcbanner.list',
-      'shop.admin.pcbanner.detail',
-      'shop.admin.pcbanner.add',
-      'shop.admin.pcbanner.edit',
-      'shop.admin.pcbanner.delete',
-      'shop.admin.pc.decorate',
-      'shop.admin.pc.decorate.list',
-      'shop.admin.pc.decorate.detail',
-      'shop.admin.pc.decorate.add',
-      'shop.admin.pc.decorate.edit',
-      'shop.admin.pc.decorate.delete',
-      'shop.admin.category.list',
-      'shop.admin.category.detail',
-      'shop.admin.category.add',
-      'shop.admin.category.edit',
-      'shop.admin.category.delete',
-      'shop.admin.goods.zkhgoods',
-      'shop.admin.goods.zkhgoods.list',
-      'shop.admin.goods.zkhgoods.detail',
-      'shop.admin.goods.zkhgoods.add',
-      'shop.admin.goods.zkhgoods.edit',
-      'shop.admin.goods.zkhgoods.delete',
-    ],
-  },
-};
-
-export default {
-  /**
-   * 系统初始化接口
-   */
-  init: () => initData,
-
-  /**
-   * 登录配置接口
-   */
-  loginConfig: () => loginConfigData,
-  /**
-   * 菜单权限接口
-   */
-  account: {
-    rules: () => menuRulesData,
-  },
-};

+ 559 - 442
src/sheep/local-data/admin.js

@@ -8,8 +8,8 @@ const initData = {
   msg: '获取成功',
   data: {
     name: 'bandhuBuy',
-    logo: '/static/img/logo.png',
-    domainurl: 'https://mall-oss.trust-will.com',
+    logo: '/static/images/logo.png',
+    domainurl: '',
     filesystem: 'aliyun',
     version: '1.0.0',
     sheep_version: 'v1.4.1',
@@ -22,7 +22,7 @@ const loginConfigData = {
   code: '200',
   msg: '获取成功',
   data: {
-    background: '/storage/default/20250227/8fdd538e05f5ad15402f5a66fe595621.jpg',
+    background: '/static/images/loginBg.png',
     mode: 'none',
   },
 };
@@ -30,446 +30,563 @@ const loginConfigData = {
 // 菜单权限数据 - 更新为新的数据结构
 const menuRulesData = {
   code: '200',
-  msg: '获取成功',
-  data: {
-    menu: [
-      {
-        id: 223,
-        name: 'shop.admin',
-        title: '商城管理',
-        label: '商城管理',
-        logo: 'ant-design:appstore-filled',
-        type: '1',
-        composingKey: 'shop.admin',
-        url: '',
-        seq: 0,
-        parentId: '',
-        createUserId: '',
-        updateUserId: 'sys',
-        createTime: '2025-07-23T03:41:25.000+0000',
-        updateTime: '2025-07-23T05:43:19.000+0000',
-        hasRelevance: null,
-        isAction: '0',
-        // 保持兼容性的旧字段
-        type_text: '菜单',
-        status_text: '显示',
-        parent_id: 0,
-        icon: '/static/img/shop/logo.png',
-        params: '',
-        weigh: 0,
-        status: 'show',
-        children: [
-          // 首页
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 90,
-            parent_id: 1,
-            name: 'shop.admin.dashboard',
-            title: '首页',
-            type: 'menu',
-            icon: 'sa-home_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 901,
-                parent_id: 90,
-                name: 'shop.admin.dashboard',
-                title: '数据概览',
-                type: 'page',
-                icon: 'sa-home_line',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          // 商品
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 300,
-            parent_id: 1,
-            name: 'shop.admin.goods',
-            title: '商品',
-            type: 'menu',
-            icon: 'sa-bag_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 113,
-                parent_id: 300,
-                name: 'shop.admin.goods.goods',
-                title: '商品库',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 125,
-                parent_id: 300,
-                name: 'shop.admin.goods.category',
-                title: '商品分类',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          // 订单
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 400,
-            parent_id: 1,
-            name: 'shop.admin.order',
-            title: '订单',
-            type: 'menu',
-            icon: 'sa-order_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 154,
-                parent_id: 400,
-                name: 'shop.admin.order.list',
-                title: '订单管理',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 171,
-                parent_id: 400,
-                name: 'shop.admin.order.aftersale',
-                title: '售后管理',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 172,
-                parent_id: 400,
-                name: 'shop.admin.order.setting',
-                title: '订单设置',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-
-          // 用户
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 500,
-            parent_id: 1,
-            name: 'shop.admin.user',
-            title: '用户',
-            type: 'menu',
-            icon: 'sa-user',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 501,
-                parent_id: 500,
-                name: 'shop.admin.user.list',
-                title: '用户列表',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 502,
-                parent_id: 500,
-                name: 'shop.admin.user.tag',
-                title: '标签管理',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 503,
-                parent_id: 500,
-                name: 'shop.admin.user.level',
-                title: '会员等级',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          // 营销
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 600,
-            parent_id: 1,
-            name: 'shop.admin.marketing',
-            title: '营销',
-            type: 'menu',
-            icon: 'sa-marketing_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 601,
-                parent_id: 600,
-                name: 'shop.admin.marketing.group',
-                title: '拼团',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          // 内容
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 700,
-            parent_id: 1,
-            name: 'shop.admin.content',
-            title: '内容',
-            type: 'menu',
-            icon: 'sa-message_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 701,
-                parent_id: 700,
-                name: 'shop.admin.content.notification',
-                title: '消息推送',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 702,
-                parent_id: 700,
-                name: 'shop.admin.content.sms',
-                title: '短信',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 703,
-                parent_id: 700,
-                name: 'shop.admin.content.banner',
-                title: '广告位',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          // 数据
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 800,
-            parent_id: 1,
-            name: 'shop.admin.data',
-            title: '数据',
-            type: 'menu',
-            icon: 'sa-graph_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 801,
-                parent_id: 800,
-                name: 'shop.admin.data.report',
-                title: '数据报表',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          // 财务
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 900,
-            parent_id: 1,
-            name: 'shop.admin.finance',
-            title: '财务',
-            type: 'menu',
-            icon: 'sa-cny_line',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 901,
-                parent_id: 900,
-                name: 'shop.admin.finance.recharge',
-                title: '充值',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 902,
-                parent_id: 900,
-                name: 'shop.admin.finance.withdraw',
-                title: '提款',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 903,
-                parent_id: 900,
-                name: 'shop.admin.finance.commission',
-                title: '佣金',
-                type: 'page',
-                icon: '',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-          // 设置
-          {
-            type_text: '菜单',
-            status_text: '显示',
-            id: 1000,
-            parent_id: 1,
-            name: 'admin.config',
-            title: '设置',
-            type: 'menu',
-            icon: 'sa-config',
-            params: '',
-            weigh: 0,
-            status: 'show',
-            children: [
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 1001,
-                parent_id: 1000,
-                name: 'admin.auth.access',
-                title: '菜单权限',
-                type: 'page',
-                icon: 'sa-auth-access',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 1002,
-                parent_id: 1000,
-                name: 'admin.auth.role',
-                title: '角色管理',
-                type: 'page',
-                icon: 'sa-auth-role',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-              {
-                type_text: '页面',
-                status_text: '显示',
-                id: 1003,
-                parent_id: 1000,
-                name: 'admin.auth.admin',
-                title: '人员管理',
-                type: 'page',
-                params: '',
-                weigh: 0,
-                status: 'show',
-              },
-            ],
-          },
-        ],
-      },
-    ],
-    permission: ['*'],
-  },
+  message: 'SUCCESS',
+  voice: null,
+  data: [
+    {
+      id: 223,
+      name: '商城管理',
+      label: '商城管理',
+      logo: 'ant-design:appstore-filled',
+      type: '1',
+      composingKey: 'shop.admin',
+      url: '',
+      seq: 0,
+      parentId: '',
+      createUserId: '',
+      updateUserId: 'sys',
+      createTime: '2025-07-23T03:41:25.000+0000',
+      updateTime: '2025-07-23T05:43:19.000+0000',
+      hasRelevance: null,
+      isAction: '0',
+      children: [
+        {
+          id: 224,
+          name: '首页',
+          label: '首页',
+          logo: 'sa-home_line',
+          type: '1',
+          composingKey: 'shop.admin.dashboard',
+          url: '',
+          seq: 0,
+          parentId: '223',
+          createUserId: '',
+          updateUserId: 'admin',
+          createTime: '2025-07-23T03:41:26.000+0000',
+          updateTime: '2025-07-25T02:40:20.000+0000',
+          hasRelevance: null,
+          isAction: '0',
+          children: [
+            {
+              id: 225,
+              name: '数据概览',
+              label: '数据概览',
+              logo: 'sa-home_line',
+              type: '2',
+              composingKey: 'shop.admin.dashboard',
+              url: '',
+              seq: 0,
+              parentId: '224',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:26.000+0000',
+              updateTime: '2025-07-25T02:41:03.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+          ],
+        },
+        {
+          id: 226,
+          name: '商品',
+          label: '商品',
+          logo: 'sa-bag_line',
+          type: '1',
+          composingKey: 'shop.admin.goods',
+          url: '',
+          seq: 1,
+          parentId: '223',
+          createUserId: '',
+          updateUserId: 'admin',
+          createTime: '2025-07-23T03:41:27.000+0000',
+          updateTime: '2025-07-25T02:45:02.000+0000',
+          hasRelevance: null,
+          isAction: '0',
+          children: [
+            {
+              id: 227,
+              name: '商品库',
+              label: '商品库',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.goods.goods',
+              url: '',
+              seq: -1,
+              parentId: '226',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:28.000+0000',
+              updateTime: '2025-07-25T02:46:15.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 228,
+              name: '商品分类',
+              label: '商品分类',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.goods.category',
+              url: '',
+              seq: 0,
+              parentId: '226',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:28.000+0000',
+              updateTime: '2025-07-25T02:46:19.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+          ],
+        },
+        {
+          id: 229,
+          name: '订单',
+          label: '订单',
+          logo: 'sa-order_line',
+          type: '1',
+          composingKey: 'shop.admin.order',
+          url: '',
+          seq: 2,
+          parentId: '223',
+          createUserId: '',
+          updateUserId: 'admin',
+          createTime: '2025-07-23T03:41:29.000+0000',
+          updateTime: '2025-07-25T02:45:05.000+0000',
+          hasRelevance: null,
+          isAction: '0',
+          children: [
+            {
+              id: 230,
+              name: '订单管理',
+              label: '订单管理',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.order.list',
+              url: '',
+              seq: 0,
+              parentId: '229',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:29.000+0000',
+              updateTime: '2025-07-25T02:46:27.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 232,
+              name: '订单设置',
+              label: '订单设置',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.order.setting',
+              url: '',
+              seq: 1,
+              parentId: '229',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:30.000+0000',
+              updateTime: '2025-07-25T02:46:30.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 231,
+              name: '售后管理',
+              label: '售后管理',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.order.aftersale',
+              url: '',
+              seq: 2,
+              parentId: '229',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:30.000+0000',
+              updateTime: '2025-07-25T02:46:33.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+          ],
+        },
+        {
+          id: 233,
+          name: '用户',
+          label: '用户',
+          logo: 'sa-user',
+          type: '1',
+          composingKey: 'shop.admin.user',
+          url: '',
+          seq: 3,
+          parentId: '223',
+          createUserId: '',
+          updateUserId: 'admin',
+          createTime: '2025-07-23T03:41:31.000+0000',
+          updateTime: '2025-07-25T02:45:09.000+0000',
+          hasRelevance: null,
+          isAction: '0',
+          children: [
+            {
+              id: 234,
+              name: '用户列表',
+              label: '用户列表',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.user.list',
+              url: '',
+              seq: 0,
+              parentId: '233',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:31.000+0000',
+              updateTime: '2025-07-25T02:46:37.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 235,
+              name: '标签管理',
+              label: '标签管理',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.user.tag',
+              url: '',
+              seq: 1,
+              parentId: '233',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:32.000+0000',
+              updateTime: '2025-07-25T02:46:40.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 236,
+              name: '会员等级',
+              label: '会员等级',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.user.level',
+              url: '',
+              seq: 2,
+              parentId: '233',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:32.000+0000',
+              updateTime: '2025-07-25T02:46:43.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+          ],
+        },
+        {
+          id: 237,
+          name: '营销',
+          label: '营销',
+          logo: 'sa-marketing_line',
+          type: '1',
+          composingKey: 'shop.admin.marketing',
+          url: '',
+          seq: 4,
+          parentId: '223',
+          createUserId: '',
+          updateUserId: 'admin',
+          createTime: '2025-07-23T03:41:33.000+0000',
+          updateTime: '2025-07-25T02:45:13.000+0000',
+          hasRelevance: null,
+          isAction: '0',
+          children: [
+            {
+              id: 238,
+              name: '拼团',
+              label: '拼团',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.marketing.group',
+              url: '',
+              seq: 0,
+              parentId: '237',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:33.000+0000',
+              updateTime: '2025-07-25T02:46:47.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+          ],
+        },
+        {
+          id: 239,
+          name: '内容',
+          label: '内容',
+          logo: 'sa-message_line',
+          type: '1',
+          composingKey: 'shop.admin.content',
+          url: '',
+          seq: 5,
+          parentId: '223',
+          createUserId: '',
+          updateUserId: 'admin',
+          createTime: '2025-07-23T03:41:34.000+0000',
+          updateTime: '2025-07-25T02:45:16.000+0000',
+          hasRelevance: null,
+          isAction: '0',
+          children: [
+            {
+              id: 240,
+              name: '消息推送',
+              label: '消息推送',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.content.notification',
+              url: '',
+              seq: 0,
+              parentId: '239',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:35.000+0000',
+              updateTime: '2025-07-25T02:46:52.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 241,
+              name: '短信',
+              label: '短信',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.content.sms',
+              url: '',
+              seq: 1,
+              parentId: '239',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:35.000+0000',
+              updateTime: '2025-07-25T02:46:55.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 242,
+              name: '广告位',
+              label: '广告位',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.content.banner',
+              url: '',
+              seq: 2,
+              parentId: '239',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:36.000+0000',
+              updateTime: '2025-07-25T02:46:58.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+          ],
+        },
+        {
+          id: 243,
+          name: '数据',
+          label: '数据',
+          logo: 'sa-graph_line',
+          type: '1',
+          composingKey: 'shop.admin.data',
+          url: '',
+          seq: 6,
+          parentId: '223',
+          createUserId: '',
+          updateUserId: 'admin',
+          createTime: '2025-07-23T03:41:36.000+0000',
+          updateTime: '2025-07-25T02:45:20.000+0000',
+          hasRelevance: null,
+          isAction: '0',
+          children: [
+            {
+              id: 244,
+              name: '数据报表',
+              label: '数据报表',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.data.report',
+              url: '',
+              seq: 0,
+              parentId: '243',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:37.000+0000',
+              updateTime: '2025-07-25T02:47:02.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+          ],
+        },
+        {
+          id: 245,
+          name: '财务',
+          label: '财务',
+          logo: 'sa-cny_line',
+          type: '1',
+          composingKey: 'shop.admin.finance',
+          url: '',
+          seq: 7,
+          parentId: '223',
+          createUserId: '',
+          updateUserId: 'admin',
+          createTime: '2025-07-23T03:41:38.000+0000',
+          updateTime: '2025-07-25T02:45:24.000+0000',
+          hasRelevance: null,
+          isAction: '0',
+          children: [
+            {
+              id: 246,
+              name: '充值',
+              label: '充值',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.finance.recharge',
+              url: '',
+              seq: 0,
+              parentId: '245',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:38.000+0000',
+              updateTime: '2025-07-25T02:47:06.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 247,
+              name: '提款',
+              label: '提款',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.finance.withdraw',
+              url: '',
+              seq: 1,
+              parentId: '245',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:39.000+0000',
+              updateTime: '2025-07-25T02:47:09.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 248,
+              name: '佣金',
+              label: '佣金',
+              logo: '',
+              type: '2',
+              composingKey: 'shop.admin.finance.commission',
+              url: '',
+              seq: 2,
+              parentId: '245',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:39.000+0000',
+              updateTime: '2025-07-25T02:47:12.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+          ],
+        },
+        {
+          id: 249,
+          name: '设置',
+          label: '设置',
+          logo: 'sa-config',
+          type: '1',
+          composingKey: 'admin.config',
+          url: '',
+          seq: 8,
+          parentId: '223',
+          createUserId: '',
+          updateUserId: 'admin',
+          createTime: '2025-07-23T03:41:40.000+0000',
+          updateTime: '2025-07-25T02:45:27.000+0000',
+          hasRelevance: null,
+          isAction: '0',
+          children: [
+            {
+              id: 250,
+              name: '菜单权限',
+              label: '菜单权限',
+              logo: '',
+              type: '2',
+              composingKey: 'admin.auth.access',
+              url: '',
+              seq: -2,
+              parentId: '249',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:40.000+0000',
+              updateTime: '2025-07-25T02:47:17.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 252,
+              name: '人员管理',
+              label: '人员管理',
+              logo: '',
+              type: '2',
+              composingKey: 'admin.auth.admin',
+              url: '',
+              seq: -1,
+              parentId: '249',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:41.000+0000',
+              updateTime: '2025-07-25T02:47:21.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+            {
+              id: 251,
+              name: '角色管理',
+              label: '角色管理',
+              logo: '',
+              type: '2',
+              composingKey: 'admin.auth.role',
+              url: '',
+              seq: 1,
+              parentId: '249',
+              createUserId: '',
+              updateUserId: 'admin',
+              createTime: '2025-07-23T03:41:41.000+0000',
+              updateTime: '2025-07-25T02:47:23.000+0000',
+              hasRelevance: null,
+              isAction: '0',
+              children: null,
+            },
+          ],
+        },
+      ],
+    },
+  ],
+  success: true,
+  fail: false,
 };
-
 // 导出menuRulesData供其他组件使用
 export { menuRulesData };
 

+ 1 - 1
src/sheep/views/login/index.vue

@@ -228,7 +228,7 @@
     const { data } = adminApi.loginConfig();
     console.log(data);
     login.config = data;
-    login.config.background = checkUrl(login.config.background);
+    login.config.background = login.config.background;
   }
 </script>
 <style lang="scss">