修改搜索条件
This commit is contained in:
@@ -23,10 +23,14 @@ class HistoryController extends GetxController {
|
||||
String get formattedStartDate => DateFormat('yyyy/MM/dd').format(startDate.value);
|
||||
|
||||
String get formattedEndDate => DateFormat('yyyy/MM/dd').format(endDate.value);
|
||||
String stationName = "";
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
|
||||
final args = Get.arguments as Map<String, dynamic>;
|
||||
stationName = args['stationName'] as String;
|
||||
fetchHistoryData();
|
||||
}
|
||||
|
||||
@@ -37,12 +41,12 @@ class HistoryController extends GetxController {
|
||||
"appointment/orderAddHyd/sitOrderPage",
|
||||
data: {
|
||||
// --- 直接使用 DateFormat 来格式化日期 ---
|
||||
'startDate': _apiDateFormat.format(startDate.value),
|
||||
'endDate': _apiDateFormat.format(endDate.value),
|
||||
'startTime': _apiDateFormat.format(startDate.value),
|
||||
'endTime': _apiDateFormat.format(endDate.value),
|
||||
'plateNumber': plateNumberController.text,
|
||||
'pageNum': 1,
|
||||
'pageSize': 50,
|
||||
'stationName': "", // 加氢站名称
|
||||
'stationName': stationName, // 加氢站名称
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user