fe84b2c9c9
更新index.html,优化页面元信息和样式,增加字体支持,提升用户体验
2025-03-22 14:00:58 +08:00
ca3d4a73ee
新增批量删除价格功能
...
- 在 Prices.vue 中添加批量删除按钮,允许管理员选择多个价格记录进行删除。
- 实现批量删除逻辑,包含用户确认提示和删除成功/失败的反馈。
- 优化用户体验,确保在删除前提示用户操作不可恢复。
2025-03-18 04:00:02 +08:00
5384e515ac
优化价格审核状态更新逻辑
...
- 修改 Prices.vue 中的状态更新按钮,增加对已拒绝状态的处理,允许重新审核。
- 更新批量状态更新功能,支持同时处理待审核和已拒绝的价格。
- 调整确认提示信息,确保用户清晰了解操作的价格数量和状态。
2025-03-18 03:47:22 +08:00
b55c521403
新增状态筛选功能,优化价格列表展示
...
- 在 Prices.vue 中添加状态筛选组件,允许用户根据状态过滤价格列表
- 更新 loadPrices 函数以支持状态筛选参数
- 增强数据缓存逻辑,包含状态筛选信息
- 监听状态选择变化,确保数据加载时重置到第一页
2025-03-18 03:36:57 +08:00
75d62d978a
优化价格处理逻辑,整合价格创建和更新功能
...
- 在 prices.go 中新增 ProcessPrice 函数,统一处理价格的创建和更新逻辑
- 更新 FetchAndSavePrices 和 UpdateOtherPrices 函数,使用 ProcessPrice 进行价格记录的处理
- 在 GetPrices 函数中添加状态筛选参数,优化价格查询功能
- 前端 Prices.vue 中调整搜索框和筛选功能的样式,提升用户体验
- 修复部分代码格式和样式问题,增强代码可读性
2025-03-18 02:18:57 +08:00
dce4815654
新增定时任务功能和前端免责声明
...
- 在 go.mod 中添加 cron 库依赖
- 更新 main.go,初始化并启动定时任务
- 在 Home.vue 中添加免责声明部分,明确价格信息的准确性和更新方式
2025-03-18 01:40:39 +08:00
2b2cc35a1c
添加价格列表搜索功能
...
- 后端 prices.go 新增搜索查询参数,支持按模型名称模糊搜索
- 更新缓存键和总数缓存键,包含搜索查询参数
- 前端 Prices.vue 添加搜索输入框和搜索处理逻辑
- 实现搜索防抖,优化用户交互体验
- 重置搜索时自动返回第一页
2025-03-12 16:46:59 +08:00
e037eaafef
修复价格管理中的 channel_type 类型转换问题
...
- 在提交价格表单时,将 channel_type 显式转换为数字类型
- 确保批量添加价格和单个价格提交时 channel_type 正确处理
- 修复可能由于类型不匹配导致的数据提交错误
2025-03-12 15:50:00 +08:00
9f51ac602e
实现内存缓存机制,优化数据库查询性能
...
- 新增内存缓存接口和实现,支持设置过期时间
- 在数据库初始化时创建全局缓存实例
- 为模型类型、提供商和价格查询添加缓存层
- 实现定期缓存常用数据的后台任务
- 优化数据库查询,减少重复查询和不必要的数据库访问
- 为价格查询添加索引,提高查询效率
2025-03-07 00:28:36 +08:00
0bdadcfef7
新增模型类型管理功能
...
- 后端添加模型类型的增删改查接口,并增加管理员权限控制
- 扩展模型类型模型,新增排序字段
- 前端新增模型类型管理页面入口和路由
- 优化模型类型查询,支持按排序字段排序
- 在创建和更新价格时增加模型重复性检查
2025-03-06 23:16:18 +08:00
da79bf3d6d
新增批量审核价格功能并优化前端交互
...
- 后端新增 `/prices/approve-all` 接口,支持管理员一键通过所有待审核价格
- 前端价格管理页面添加"全部通过"按钮,仅对管理员可见
- 优化批量添加价格页面交互,增加行复制和删除按钮
- 调整价格输入为可为空,移除默认值为0的限制
2025-03-06 22:43:30 +08:00
cc55be5ac8
Enhance Prices view with robust NULL value handling and minor onMounted optimization
...
- Add NULL check for temporary fields to prevent unnecessary tag rendering
- Update model type loading to use correct key and label fields
- Simplify onMounted method to remove unnecessary async/await
2025-02-23 04:54:43 +08:00
315933d57a
Refactor model type handling and add SQLite support
...
- Update config to include SQLite path for database migration
- Modify model type handlers to use new database schema
- Update frontend to handle new model type key and label fields
- Add database migration script to start process
- Import SQLite driver for potential database usage
2025-02-23 04:23:42 +08:00
09edd1f271
修复: 提交模型表单类型
2025-02-22 02:10:04 +08:00
7d036959e2
修复: 前端提交模型厂商ID信息, 改为数字类型, 与后端匹配
2025-02-22 01:47:17 +08:00
67639f94ed
Refactor Prices view action buttons with improved UX and icon-based interactions
2025-02-21 12:29:11 +08:00
2efb33fc2f
Enhance provider management and price filtering with model type and ID handling
2025-02-21 12:07:56 +08:00
15a7c75145
Add getModelType function to support model type display in Prices view
2025-02-21 11:58:04 +08:00
6fa37f6d6a
Add model type support for pricing management
2025-02-21 11:51:53 +08:00
d4aebb8148
更新 OAuth 相关 URL 以使用新域名,并修改前端链接
2025-02-14 23:59:28 +08:00
40feab37f6
Improve Prices view dialog layout and responsiveness
2025-02-09 19:34:53 +08:00
50d63f47c7
Add channel type filtering to Prices view and backend API
2025-02-09 19:24:10 +08:00
e852b885c0
Implement pagination and loading states for Prices and Providers views
2025-02-09 18:56:56 +08:00
b5faf07c6c
Adjust Prices view table column width
2025-02-08 21:51:35 +08:00
c1e63cea5b
Refactor Prices view import and table display logic
2025-02-08 21:43:59 +08:00
6d114d57a6
Update footer and home page with Q58 community link
2025-02-08 21:36:17 +08:00
e31e35c0b5
Update Vite proxy to use local development server
2025-02-08 21:30:48 +08:00
7b884cd3ee
Enhance Prices view with admin batch actions and UI improvements
2025-02-08 21:30:28 +08:00
1d16333e11
Replace "supplier" terminology with "model vendor" across frontend and backend
2025-02-08 21:03:01 +08:00
7873fab16f
Add batch price submission and improve UI for price list view
2025-02-08 20:54:51 +08:00
e7967dfeff
Modify login flow to support dynamic OAuth 2.0 authorization URL
2025-02-08 20:21:39 +08:00
7487aaadda
Remove Deno-specific configuration files and migrate to Cloudflare Workers environment
2025-02-08 17:32:58 +08:00