fix: correct region mapping (swap left/right, swap middle/bottom) and auto-scan proceeds on timeout

Region name mapping corrected to match actual hardware IO positions:
- 0x01: 左区→右区, 0x02: 右区→左区
- 0x08: 下区→中区, 0x10: 中区→下区
Auto-scan no longer shows timeout error, proceeds to next step instead.
这个提交包含在:
Guoguo
2026-06-05 23:37:03 -07:00
父节点 4666050458
当前提交 44935c4bf3
修改 6 个文件,包含 16 行新增15 行删除
+2 -2
查看文件
@@ -73,7 +73,7 @@ import { exportCSV } from '../utils/export'
import { formatDate as formatDateUtil } from '../utils/format'
var REGION_MAP = {
1: '区', 2: '区', 4: '上区', 8: '区', 16: '区', 32: '左上区', 64: '右上区'
1: '区', 2: '区', 4: '上区', 8: '区', 16: '区', 32: '左上区', 64: '右上区'
}
export default {
@@ -168,7 +168,7 @@ export default {
async onExport() {
try {
const data = await get('/api/v1/admin/records', { page: 1, page_size: 9999, keyword: this.keyword, user_id: this.filterUserId, date_from: this.dateFrom, date_to: this.dateTo })
var REGION_MAP = { 1: '区', 2: '区', 4: '上区', 8: '区', 16: '区', 32: '左上区', 64: '右上区' }
var REGION_MAP = { 1: '区', 2: '区', 4: '上区', 8: '区', 16: '区', 32: '左上区', 64: '右上区' }
const records = data.records || []
exportCSV('records_' + new Date().toISOString().slice(0, 10) + '.csv',
['记录ID', '用户', '设备编号', '使用模式', '使用区域', '使用时长(分钟)', '使用时间'],