|
|
|
@ -222,7 +222,8 @@ class EnterpriseListPage extends GetView<EnterpriseListController> { |
|
|
|
isSelected: isSelected, |
|
|
|
isSelected: isSelected, |
|
|
|
// 根据外部传入的 itemMode 决定卡片内部的 mode |
|
|
|
// 根据外部传入的 itemMode 决定卡片内部的 mode |
|
|
|
// --- [核心] 将卡片的所有交互事件转发给 controller 的抽象方法 --- |
|
|
|
// --- [核心] 将卡片的所有交互事件转发给 controller 的抽象方法 --- |
|
|
|
onTap: () => controller.onItemTap(item), |
|
|
|
onTap: () => |
|
|
|
|
|
|
|
controller.navigateToEnterpriseInfoPage(item.enterprise), |
|
|
|
// [重点] 构建并传入符合贴边样式的 actions |
|
|
|
// [重点] 构建并传入符合贴边样式的 actions |
|
|
|
actions: Row( |
|
|
|
actions: Row( |
|
|
|
mainAxisSize: MainAxisSize.min, |
|
|
|
mainAxisSize: MainAxisSize.min, |
|
|
|
@ -231,9 +232,8 @@ class EnterpriseListPage extends GetView<EnterpriseListController> { |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
// “修改信息” 按钮 |
|
|
|
// “修改信息” 按钮 |
|
|
|
TextButton.icon( |
|
|
|
TextButton.icon( |
|
|
|
onPressed: () { |
|
|
|
onPressed: () => |
|
|
|
/* 编辑逻辑 */ |
|
|
|
controller.navigateToEditForm(item.enterprise), |
|
|
|
}, |
|
|
|
|
|
|
|
icon: Icon( |
|
|
|
icon: Icon( |
|
|
|
Icons.edit_outlined, |
|
|
|
Icons.edit_outlined, |
|
|
|
size: 16.sp, |
|
|
|
size: 16.sp, |
|
|
|
@ -257,9 +257,9 @@ class EnterpriseListPage extends GetView<EnterpriseListController> { |
|
|
|
|
|
|
|
|
|
|
|
// “查看问题” 按钮 (关键样式在这里) |
|
|
|
// “查看问题” 按钮 (关键样式在这里) |
|
|
|
ElevatedButton( |
|
|
|
ElevatedButton( |
|
|
|
onPressed: () { |
|
|
|
onPressed: () => controller.navigateToEnterpriseInfoPage( |
|
|
|
/* 查看问题逻辑 */ |
|
|
|
item.enterprise, |
|
|
|
}, |
|
|
|
), |
|
|
|
style: ElevatedButton.styleFrom( |
|
|
|
style: ElevatedButton.styleFrom( |
|
|
|
backgroundColor: const Color(0xFF42A5F5), |
|
|
|
backgroundColor: const Color(0xFF42A5F5), |
|
|
|
foregroundColor: Colors.white, |
|
|
|
foregroundColor: Colors.white, |
|
|
|
|