- 新增 MockTableView.vue (156 行): 通用表格页, props.configKey 查 mockTableConfigs - 新增 mockTableConfigs.ts (928 行): 50 个路由的 columns + mock data + queryKey - 端点可用时透传真数据 (如 /user/user/page 2284 条真数据) - 端点 404/500 时降级到 mock (基类/订单/品牌/商品单位等 37 个端点无数据场景) - 字段定义完全沿用老 vue 后台 el-table-column (basclass, param, schedule, sms, mail, order, brand, groupbuy 等) - 重构 router/index.ts: 50 个 GenericTableView 路由改为 MockTableView + configKey 引用 - 每个路由从平均 12 行缩减到 1 行 (大幅简化) - 一个 view 组件 50 路由复用 (易维护) |
||
|---|---|---|
| .. | ||
| api | ||
| auth | ||
| dashboard | ||
| generic | ||
| other | ||
| product/shop | ||
| statistics | ||
| supplier | ||
| sys/region | ||
| user | ||