feat: 添加下拉远程搜索并完善登录会话

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-04 15:57:46 +08:00
co-authored by Cursor
parent e785a99b7d
commit 55f13bb47b
41 changed files with 1734 additions and 330 deletions
+1 -7
View File
@@ -55,13 +55,7 @@ export function getStatusOptions() {
}));
}
export function mapToSelectOptions(data) {
const list = Array.isArray(data) ? data : (data && (data.list || data.items || data.records)) || [];
return list.map((item) => ({
value: item.id,
label: item.name || item.label || item.code || String(item.id),
}));
}
export { mapToSelectOptions } from '@/common/remoteSelect';
/** 匹数:后端 ×100 存储 */
export function formatRoll(value) {