refactor: 国际出港查询筛选改内嵌面板并对齐国际进港交互
- 筛选由XPopup全屏抽屉改为内嵌滑动面板,不再遮挡标题栏 - 有筛选条件时筛选按钮显示红点(hasFilter) - 航班号锁定大写字母数字、目的港锁定大写字母 - 运单类型走字典接口(type=IO 国际出港),修正原错误的"10" - 修复PadDataLayoutNew重置后Spinner UI未清空(国际进港同组件一并修复) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -278,7 +278,8 @@ class PadDataLayoutNew : FrameLayout {
|
||||
|
||||
tvSpinner.text = list.find { b -> b.value == value }?.key ?: value
|
||||
|
||||
if (value.isNotEmpty() && list.isNotEmpty()) {
|
||||
// 同步 Spinner 选中项(含 value 为空时重置到对应项,如"全部"),修复重置后 UI 不清空的问题
|
||||
if (list.isNotEmpty()) {
|
||||
val index = list.indexOfFirst { b -> b.value == value }
|
||||
if (index >= 0) {
|
||||
spinner.post {
|
||||
|
||||
Reference in New Issue
Block a user