Procházet zdrojové kódy

RPC更新与部分UI更新

finlay před 1 rokem
rodič
revize
046c4dbf4c

+ 2 - 2
lib/pages/check/follow_up/widgets/follow_up_from.dart

@@ -102,8 +102,8 @@ class FollowUpFrom extends GetView<FollowUpController> {
   }
 
   String getFollowUpTime(DateTime? time) {
-    print(time);
-    if (time != null && !time.toString().contains('0001-01-01')) {
+    // print(time);
+    if (time != null) {
       return DateFormat('yyyy-MM-dd').format(time);
     }
     return '';

+ 6 - 6
lib/pages/check/follow_up_record/view.dart

@@ -94,7 +94,10 @@ class FollowUpRecordPage extends GetView<FollowUpRecordController> {
                                   fit: BoxFit.cover,
                                 ),
                               ),
-                              const Text("暂无数据,先看看别的吧"),
+                              const Text(
+                                "暂无数据,先看看别的吧",
+                                style: TextStyle(fontSize: 18),
+                              ),
                             ],
                           ),
                         )
@@ -189,12 +192,9 @@ class _followUpRecordCard extends StatelessWidget {
                         ),
                         RecordCommonItem(
                           itemName: '随访时间',
-                          itemValue: dataDto.followUpTime != null &&
-                                  !dataDto.followUpTime
-                                      .toString()
-                                      .contains('0001-01-01')
+                          itemValue: dataDto.followUpTime != null
                               ? DateFormat("yyyy-MM-dd")
-                                  .format(dto.followUpTime!.toLocal())
+                                  .format(dataDto.followUpTime!.toLocal())
                               : "",
                           fontSize: 18,
                         ),

+ 2 - 1
lib/pages/check/healthCheckRecord/view.dart

@@ -93,7 +93,8 @@ class HealthCheckRecordPage extends GetView<HealthCheckRecordController> {
                                   fit: BoxFit.cover,
                                 ),
                               ),
-                              const Text("暂无数据,先看看别的吧"),
+                              const Text("暂无数据,先看看别的吧",
+                                style: TextStyle(fontSize: 18),),
                             ],
                           ),
                         )

+ 4 - 1
lib/pages/contract/contract_records/view.dart

@@ -61,7 +61,10 @@ class ContractRecordsPage extends GetView<ContractRecordsController> {
                               fit: BoxFit.cover,
                             ),
                           ),
-                          const Text("暂无数据,先看看别的吧"),
+                          const Text(
+                            "暂无数据,先看看别的吧",
+                            style: TextStyle(fontSize: 18),
+                          ),
                         ],
                       ),
                     )

+ 18 - 2
lib/pages/contract/package_list/view.dart

@@ -335,8 +335,24 @@ class ServicePackageContractPage
       return Obx(
         () => Expanded(
           child: controller.state.servicePackageItems.isEmpty
-              ? const Center(
-                  child: Text('暂无数据'),
+              ? Container(
+                  margin: const EdgeInsets.only(top: 80),
+                  child: Column(
+                    children: [
+                      Center(
+                        child: Image.asset(
+                          "assets/images/no_data.png",
+                          width: 300,
+                          height: 300,
+                          fit: BoxFit.cover,
+                        ),
+                      ),
+                      const Text(
+                        "暂无数据,先看看别的吧",
+                        style: TextStyle(fontSize: 18),
+                      ),
+                    ],
+                  ),
                 )
               : ListView(
                   children: controller.state.servicePackageItems

+ 4 - 1
lib/pages/dashboard/home.dart

@@ -16,7 +16,10 @@ class HomePage extends StatelessWidget {
               fit: BoxFit.cover,
             ),
           ),
-          const Text("暂无数据,先看看别的吧"),
+          const Text(
+            "暂无数据,先看看别的吧",
+            style: TextStyle(fontSize: 18),
+          ),
         ],
       ),
     );

+ 1 - 1
pubspec.lock

@@ -183,7 +183,7 @@ packages:
     description:
       path: "."
       ref: HEAD
-      resolved-ref: "59e93d6618eb6c92d6598911cf08aed8f5e40b23"
+      resolved-ref: "36686374d1fef238529e736bd7a56f0cc4a399f1"
       url: "http://git.ius.plus:88/Project-VNOTE/FlutterJsonRPC.git"
     source: git
     version: "0.0.1"

+ 1 - 1
pubspec.yaml

@@ -72,7 +72,7 @@ dependencies_overrides:
   fis_jsonrpc:
     git:
       url: http://git.ius.plus:88/Project-VNOTE/FlutterJsonRPC.git
-      ref: "59e93d6"
+      ref: "36686374d1f"
   # fis_ui:
   #   git:
   #     url: http://git.ius.plus:88/Project-Wing/fis_lib_ui.git