Commit Graph

134 Commits

Author SHA1 Message Date
shiran 802eaa396b feat(admin/user-vm): 流量上限展示加修改入口、网络tab加删除网络操作
缘由:
1) 虚拟机详情页(UserVmDetail.vue / VmDetail.vue)中"流量上限"原仅展示无修改入口,对应 docs/2026.05.08.12.37-update.json 中 update_traffic 接口已支持 traffic_max + traffic_exhausted_rx/tx_mbps 修改,但用户需从"更多 dropdown"绕一道才能到达。
2) /user-goods/vm-detail 网络管理 tab 缺少"删除网络"操作。

修改:
- UserVmDetail.vue:流量上限单元格内追加"修改"小按钮,复用既有 updateTraffic 弹窗(已覆盖 update_traffic 全部新字段,不动接口逻辑);网络表格新增"操作"列+删除按钮,调用 host_service/point/network/delete;row 上若缺 service_id/host_id 用 getUserVmNetworkDetail 反查兜底,仍取不到则提示并阻止;二次确认弹窗明示该操作会影响所有绑定该网络的虚拟机。
- VmDetail.vue:流量上限单元格内追加"修改"小按钮,复用 handleUpdateTraffic(host_service/point/vm/update_traffic)。

预期:
- 详情页用户在"流量上限"位置可一键进入修改弹窗,无需走 dropdown。
- vm-detail 网络tab 表格每行可触发"删除网络"流程,含强提示与兜底取值。
- 不引入新依赖;trafficVisible 弹窗保持向 docs 字段对齐;UI 微调仅限新增样式 .cfg-edit-btn 与一列操作列。

未测试:未在 admin_dashboard_pc 本地 dev 验证(终端仅运行 user_dashboard_pc),需联调 update_traffic 与 point/network/delete 实际返回。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-12 17:09:23 +08:00
shiran 3d783cd224 fix(order): 新增/编辑订单提交时 price/renew_price 由"分"换算为"元"
缘由:
后端 /api/v1/admin/order/create 与 /api/v1/admin/order/update 入参单位由"分"改为
"元"(用户 2026-05-12 确认两端都已生效)。前端列表与表单内部仍按"分"持有,提交时未
做换算,导致表单里的 9900(分)被后端当作 9900 元入库 = 990000 分,下次列表读取后
表现为"价格额外 *100"。

改动:
- src/views/order/OrderList.vue:submitForm 构造 submitData 时把 price 与 renew_price
  统一 /100,create 与 update 路径共享。输入框旁的"分"单位文案暂不改(用户明确仅
  要求 /100),UI 一致性问题(列表显示元、弹窗输入分)作为另一个 issue 留待后续。

预期:
- 编辑订单不改价直接保存:原 9900 分 → 提交 99 元 → 入库 9900 分(一致,修复前会
  入成 990000 分)。
- 编辑订单改价:用户在"分"单位输入框填 12000 → 提交 120 元 → 入库 12000 分。
- 新增订单:同上链路一致。

测试:未脚本化。建议人工核对一次"编辑→不改→保存→列表金额无变化"作为最低验收。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-12 16:29:34 +08:00
shiran 7394afb83f chore(admin): 站点图标改用 logo.ico,与 user_dashboard 统一
Build and Deploy Vue3 / build (push) Successful in 1m31s
Build and Deploy Vue3 / deploy (push) Successful in 1m17s
缘由:
用户 2026-05-11 要求三个前端项目使用同一 logo 图标,源文件位于
ApiServer-Web-user_dashboard_pc/public/logo.ico。
admin 原本只有 public/logo.svg(491 字节),需要新增 logo.ico 并切换 link。

修改:
- public/logo.ico (new):
  从 user_dashboard_pc/public/logo.ico 拷贝同源副本(267,837 字节)。
- index.html L5:
  <link rel="icon" type="image/svg+xml" href="/logo.svg" />
  → <link rel="icon" type="image/x-icon" href="/logo.ico" />
  原 logo.svg 保留未删(用户未要求清理,避免越权)。

预期:
- 浏览器标签页 favicon 与 user_dashboard、home 三端统一。
- Vite 静态资源走 public/ 路径,重启 dev / 强制刷新即可生效。

测试:
- 仅文件 + link 改动,lint 通过,未做运行时复现。请用户重启 vite dev / 强制刷新观察。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 16:33:50 +08:00
shiran c43d1978a8 feat: 虚拟机流量精细化控制接入(接口新增,待联调)
Build and Deploy Vue3 / build (push) Successful in 1m37s
Build and Deploy Vue3 / deploy (push) Successful in 1m16s
1. userVm.js/kvmService.js 新增 traffic_policy 系列 API(GET/update/add_fixed/add_temporary)
2. UserVmList.vue/VmManage.vue 创建表单新增 traffic_max、traffic_exhausted_rx/tx_mbps 三个可选字段
3. UserVmDetail.vue/VmDetail.vue 修改带宽表单新增耗尽限速字段,并各增加流量策略 Tab(展示+修改策略+增加固定/临时流量)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 15:10:44 +08:00
shiran 475c62aefc feat: 添加用户ID和订单ID链接跳转功能
Build and Deploy Vue3 / build (push) Successful in 1m30s
Build and Deploy Vue3 / deploy (push) Successful in 1m15s
- 在团购活动页面中为用户ID添加点击跳转到用户详情的功能
- 在团购管理页面中为用户ID添加点击跳转到用户详情的功能
- 在审核相关页面中为容器ID添加点击跳转到容器详情的功能
- 在营销相关页面中为用户ID和订单ID添加点击跳转功能
- 在订单列表页面中为用户ID和商品ID添加点击跳转功能
- 在商品列表页面中为用户和商品添加点击跳转功能
- 在工单列表页面中为用户名添加点击跳转到用户详情的功能
- 在用户虚拟机列表中为商品和用户添加点击跳转功能
- 在用户余额页面中为支付订单ID添加点击跳转到订单详情的功能
- 统一使用el-link组件实现可点击的链接样式
- 添加useRouter依赖并创建router实例用于页面跳转
2026-04-24 18:06:29 +08:00
shiran c0daa6ed11 docs(readme): 更新文档说明
Build and Deploy Vue3 / build (push) Successful in 1m29s
Build and Deploy Vue3 / deploy (push) Successful in 1m14s
- 添加项目使用指南
- 完善API接口描述
- 修正错误的配置示例
2026-04-23 17:43:31 +08:00
lin 2e073c2b87 fix: 优化顶部标签页的滚动条
Build and Deploy Vue3 / build (push) Successful in 1m32s
Build and Deploy Vue3 / deploy (push) Successful in 1m13s
2026-04-21 15:16:32 +08:00
lin 13248468d3 fix: 用户虚拟机详情跳转参数问题
Build and Deploy Vue3 / build (push) Successful in 1m26s
Build and Deploy Vue3 / deploy (push) Successful in 1m17s
2026-04-21 14:13:31 +08:00
lin ab7a8d5cfa fix: 用户余额管理页面添加返回按钮
Build and Deploy Vue3 / build (push) Successful in 1m24s
Build and Deploy Vue3 / deploy (push) Successful in 1m13s
2026-04-20 16:08:11 +08:00
lin 64d40cbbbf fix: 修改头像预览问题
Build and Deploy Vue3 / build (push) Successful in 1m25s
Build and Deploy Vue3 / deploy (push) Successful in 1m18s
2026-04-20 16:04:47 +08:00
lin d72a4f804e fix: 右侧记录栏添加已购商品
Build and Deploy Vue3 / build (push) Successful in 2m21s
Build and Deploy Vue3 / deploy (push) Successful in 1m12s
2026-04-20 11:32:14 +08:00
lin 8b2251ef97 feat: 增加菜单管理
Build and Deploy Vue3 / build (push) Successful in 1m26s
Build and Deploy Vue3 / deploy (push) Successful in 1m15s
2026-04-18 16:24:57 +08:00
lin 2916c04ba5 fix: 参数范围值修改
Build and Deploy Vue3 / build (push) Successful in 1m26s
Build and Deploy Vue3 / deploy (push) Successful in 1m28s
2026-04-17 19:27:25 +08:00
lin c7245cec67 fix: 用户商品模块
Build and Deploy Vue3 / build (push) Successful in 1m34s
Build and Deploy Vue3 / deploy (push) Successful in 1m10s
2026-04-16 15:43:08 +08:00
lin 985412c3bc fix: 虚拟机模块
Build and Deploy Vue3 / build (push) Successful in 1m26s
Build and Deploy Vue3 / deploy (push) Successful in 3m5s
2026-04-16 13:22:39 +08:00
lin f53f63e679 fix: 虚拟机详情监控模块
Build and Deploy Vue3 / build (push) Successful in 1m30s
Build and Deploy Vue3 / deploy (push) Successful in 17m15s
2026-04-15 18:38:08 +08:00
lin cae1f847e4 fix: 网络模块
Build and Deploy Vue3 / build (push) Successful in 1m59s
Build and Deploy Vue3 / deploy (push) Successful in 1m21s
2026-04-15 16:46:28 +08:00
lin 5428f01cdf fix: 虚拟化平台模块
Build and Deploy Vue3 / build (push) Successful in 2m40s
Build and Deploy Vue3 / deploy (push) Has been cancelled
2026-04-15 16:41:06 +08:00
lin 7652b290b0 fix: 虚拟机模块
Build and Deploy Vue3 / build (push) Successful in 1m58s
Build and Deploy Vue3 / deploy (push) Successful in 1m13s
2026-04-15 16:35:41 +08:00
lin cf188bb94a fix: 数据迁移模块
Build and Deploy Vue3 / build (push) Successful in 1m30s
Build and Deploy Vue3 / deploy (push) Successful in 1m5s
2026-04-15 16:18:15 +08:00
lin b3ed406f84 fix: 提交修改
Build and Deploy Vue3 / build (push) Successful in 1m31s
Build and Deploy Vue3 / deploy (push) Successful in 1m9s
2026-04-15 16:02:36 +08:00
lin 2f06aa9f5f style: 优化布局和交互(Loading/空状态/骨架屏)
Build and Deploy Vue3 / build (push) Successful in 1m51s
Build and Deploy Vue3 / deploy (push) Successful in 1m15s
2026-04-07 16:51:12 +08:00
lin f0e89695f4 fix: 修改新增用户商品的配置项逻辑
Build and Deploy Vue3 / build (push) Successful in 4m9s
Build and Deploy Vue3 / deploy (push) Successful in 1m3s
2026-04-06 18:44:11 +08:00
lin c07e09c151 feat: 添加用户虚拟机商品管理
Build and Deploy Vue3 / build (push) Successful in 1m40s
Build and Deploy Vue3 / deploy (push) Successful in 1m8s
2026-03-31 15:13:04 +08:00
lin 71d3605f4f fix: 虚拟机添加强制操作
Build and Deploy Vue3 / build (push) Successful in 1m26s
Build and Deploy Vue3 / deploy (push) Successful in 1m3s
2026-03-26 17:20:00 +08:00
lin b7e806cc80 fix: 创建数据卷的系统卷展示选择镜像
Build and Deploy Vue3 / build (push) Successful in 6m0s
Build and Deploy Vue3 / deploy (push) Successful in 58s
2026-03-26 17:06:12 +08:00
lin 1a4587f893 fix: 重构虚拟机内网外网参数设置选择网络
Build and Deploy Vue3 / build (push) Successful in 1m28s
Build and Deploy Vue3 / deploy (push) Successful in 1m1s
2026-03-26 16:36:25 +08:00
lin 40a5e486a6 feat: 对接用户组网管理
Build and Deploy Vue3 / build (push) Successful in 1m43s
Build and Deploy Vue3 / deploy (push) Successful in 1m7s
2026-03-24 18:57:52 +08:00
lin 3357566b02 fex: 样式修改
Build and Deploy Vue3 / build (push) Successful in 1m39s
Build and Deploy Vue3 / deploy (push) Successful in 1m0s
2026-03-21 19:07:04 +08:00
lin 25d782b050 feat: 将页面添加分页
Build and Deploy Vue3 / build (push) Successful in 1m35s
Build and Deploy Vue3 / deploy (push) Successful in 1m5s
2026-03-21 17:37:06 +08:00
lin 9edb59d16e fix: 修改内存的基础单位为kb
Build and Deploy Vue3 / build (push) Successful in 2m38s
Build and Deploy Vue3 / deploy (push) Successful in 1m3s
2026-03-21 15:25:38 +08:00
lin cf19956b88 feat: 对接虚拟化平台管理
Build and Deploy Vue3 / build (push) Successful in 1m22s
Build and Deploy Vue3 / deploy (push) Successful in 1m2s
2026-03-19 18:13:24 +08:00
lin cd16ec17ae feat: 新增移动端配置信息
Build and Deploy Vue3 / build (push) Successful in 1m33s
Build and Deploy Vue3 / deploy (push) Successful in 1m15s
2026-03-17 18:40:12 +08:00
lin f4dbf17ce9 feat: 对接主控服务接口
Build and Deploy Vue3 / build (push) Successful in 2m29s
Build and Deploy Vue3 / deploy (push) Successful in 1m3s
2026-03-14 15:45:07 +08:00
lin 25975c8b29 feat: 对接宿主机组映射管理
Build and Deploy Vue3 / build (push) Successful in 1m20s
Build and Deploy Vue3 / deploy (push) Successful in 1m0s
2026-03-13 17:33:02 +08:00
lin d650bfeb61 style: 对商品管理页面进行名称样式修改
Build and Deploy Vue3 / build (push) Successful in 1m15s
Build and Deploy Vue3 / deploy (push) Successful in 54s
2026-03-13 14:07:09 +08:00
lin 3e751d4c42 style: 修改值字段的文字展示样式
Build and Deploy Vue3 / build (push) Successful in 1m18s
Build and Deploy Vue3 / deploy (push) Successful in 56s
2026-03-11 18:58:01 +08:00
lin 193db5735f feat: 相近字排序
Build and Deploy Vue3 / build (push) Successful in 1m21s
Build and Deploy Vue3 / deploy (push) Successful in 56s
2026-03-11 16:55:17 +08:00
lin 09a83f4985 feat: 添加编辑配置是否开放接口接口
Build and Deploy Vue3 / build (push) Successful in 2m52s
Build and Deploy Vue3 / deploy (push) Successful in 55s
2026-03-11 14:55:27 +08:00
lin 20790cf029 style: 对list的类型值添加点击打开编辑弹窗效果
Build and Deploy Vue3 / build (push) Successful in 2m53s
Build and Deploy Vue3 / deploy (push) Successful in 56s
2026-03-11 12:48:21 +08:00
lin 86f3835e51 style: 表格值字段的list类型只展示文件数,添加note列
Build and Deploy Vue3 / build (push) Successful in 1m45s
Build and Deploy Vue3 / deploy (push) Successful in 1m2s
2026-03-11 10:27:29 +08:00
lin a2a7644a9f fix: 设置动态编辑配置图片
Build and Deploy Vue3 / build (push) Successful in 2m47s
Build and Deploy Vue3 / deploy (push) Successful in 55s
2026-03-10 19:25:43 +08:00
lin 3ca956d9f0 feat: 添加配置管理的批量删除,复选框
Build and Deploy Vue3 / build (push) Successful in 2m0s
Build and Deploy Vue3 / deploy (push) Successful in 53s
2026-03-10 16:23:14 +08:00
lin 5d16589e54 fix: 对象存储图片,没有jpg后缀不用做扩展名检测,不然图片不渲染
Build and Deploy Vue3 / build (push) Successful in 1m31s
Build and Deploy Vue3 / deploy (push) Successful in 53s
2026-03-10 15:20:35 +08:00
lin 255bd9e832 fix: 修改编辑配置对接信息
Build and Deploy Vue3 / build (push) Successful in 1m38s
Build and Deploy Vue3 / deploy (push) Successful in 56s
2026-03-10 14:30:07 +08:00
lin 2e82ff8a34 fix: 新增配置添加确定对接函数
Build and Deploy Vue3 / build (push) Successful in 1m37s
Build and Deploy Vue3 / deploy (push) Successful in 55s
2026-03-10 14:20:47 +08:00
lin c100c37a32 style: 配置管理弄成树状视图
Build and Deploy Vue3 / build (push) Successful in 1m24s
Build and Deploy Vue3 / deploy (push) Successful in 57s
2026-03-10 13:56:14 +08:00
lin cdd8f86b92 feat: 管理员 配置信息类型新增file,file_list,string_list类型
Build and Deploy Vue3 / build (push) Successful in 1m34s
Build and Deploy Vue3 / deploy (push) Successful in 1m0s
2026-03-10 13:08:49 +08:00
lin fe29a8b3d0 feat: 添加新增套餐是否展示在首页参数
Build and Deploy Vue3 / build (push) Successful in 2m26s
Build and Deploy Vue3 / deploy (push) Successful in 55s
2026-03-10 10:49:59 +08:00
lin 2f38932878 feate:添加创建参数的必选参数
Build and Deploy Vue3 / build (push) Successful in 1m20s
Build and Deploy Vue3 / deploy (push) Successful in 1m24s
2026-02-05 17:00:39 +08:00