feat: opt 开始组装 tree
This commit is contained in:
@@ -76,6 +76,8 @@ class IntExpAssembleStartActivity :
|
||||
)
|
||||
binding.rvAssembleInfo.layoutManager = LinearLayoutManager(this)
|
||||
binding.rvAssembleInfo.adapter = assembleInfoAdapter
|
||||
// 添加点击监听器
|
||||
binding.rvAssembleInfo.addOnItemClickListener(this)
|
||||
|
||||
// 左侧组装位置列表
|
||||
assemblePositionAdapter = CommonAdapter(
|
||||
@@ -122,8 +124,9 @@ class IntExpAssembleStartActivity :
|
||||
*/
|
||||
override fun onItemClick(position: Int, type: Int) {
|
||||
when (type) {
|
||||
0 -> viewModel.onPositionItemClick(position) // 组装位置点击
|
||||
1 -> viewModel.onWaybillItemClick(position) // 运单列表点击
|
||||
0 -> viewModel.onPositionItemClick(position) // 组装位置点击
|
||||
1 -> viewModel.onWaybillItemClick(position) // 运单列表点击
|
||||
2 -> viewModel.onAssembleInfoItemClick(position) // 组装信息列表点击
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user