Browse Source

修改扦样单行政区划数据提交;

maqiang 11 months ago
parent
commit
916840ccac

+ 112 - 14
.gitignore

@@ -1,5 +1,9 @@
1
+# Do not remove or rename entries in this file, only add new ones
2
+# See https://github.com/flutter/flutter/issues/128635 for more context.
3
+
1 4
 # Miscellaneous
2 5
 *.class
6
+*.lock
3 7
 *.log
4 8
 *.pyc
5 9
 *.swp
@@ -8,7 +12,6 @@
8 12
 .buildlog/
9 13
 .history
10 14
 .svn/
11
-migrate_working_dir/
12 15
 
13 16
 # IntelliJ related
14 17
 *.iml
@@ -16,29 +19,124 @@ migrate_working_dir/
16 19
 *.iws
17 20
 .idea/
18 21
 
19
-# The .vscode folder contains launch configuration and tasks you configure in
20
-# VS Code which you may wish to be included in version control, so this line
21
-# is commented out by default.
22
-#.vscode/
22
+# Visual Studio Code related
23
+.classpath
24
+.project
25
+.settings/
26
+.vscode/*
27
+
28
+# Flutter repo-specific
29
+/bin/cache/
30
+/bin/internal/bootstrap.bat
31
+/bin/internal/bootstrap.sh
32
+/bin/mingit/
33
+/dev/benchmarks/mega_gallery/
34
+/dev/bots/.recipe_deps
35
+/dev/bots/android_tools/
36
+/dev/devicelab/ABresults*.json
37
+/dev/docs/doc/
38
+/dev/docs/api_docs.zip
39
+/dev/docs/flutter.docs.zip
40
+/dev/docs/lib/
41
+/dev/docs/pubspec.yaml
42
+/dev/integration_tests/**/xcuserdata
43
+/dev/integration_tests/**/Pods
44
+/packages/flutter/coverage/
45
+version
46
+analysis_benchmark.json
47
+
48
+# packages file containing multi-root paths
49
+.packages.generated
23 50
 
24 51
 # Flutter/Dart/Pub related
25 52
 **/doc/api/
26
-**/ios/Flutter/.last_build_id
27 53
 .dart_tool/
28 54
 .flutter-plugins
29 55
 .flutter-plugins-dependencies
56
+**/generated_plugin_registrant.dart
30 57
 .packages
58
+.pub-preload-cache/
31 59
 .pub-cache/
32 60
 .pub/
33
-/build/
61
+build/
62
+flutter_*.png
63
+linked_*.ds
64
+unlinked.ds
65
+unlinked_spec.ds
66
+
67
+# Android related
68
+**/android/**/gradle-wrapper.jar
69
+.gradle/
70
+**/android/captures/
71
+**/android/gradlew
72
+**/android/gradlew.bat
73
+**/android/local.properties
74
+**/android/**/GeneratedPluginRegistrant.java
75
+**/android/key.properties
76
+*.jks
77
+
78
+# iOS/XCode related
79
+**/ios/**/*.mode1v3
80
+**/ios/**/*.mode2v3
81
+**/ios/**/*.moved-aside
82
+**/ios/**/*.pbxuser
83
+**/ios/**/*.perspectivev3
84
+**/ios/**/*sync/
85
+**/ios/**/.sconsign.dblite
86
+**/ios/**/.tags*
87
+**/ios/**/.vagrant/
88
+**/ios/**/DerivedData/
89
+**/ios/**/Icon?
90
+**/ios/**/Pods/
91
+**/ios/**/.symlinks/
92
+**/ios/**/profile
93
+**/ios/**/xcuserdata
94
+**/ios/.generated/
95
+**/ios/Flutter/.last_build_id
96
+**/ios/Flutter/App.framework
97
+**/ios/Flutter/Flutter.framework
98
+**/ios/Flutter/Flutter.podspec
99
+**/ios/Flutter/Generated.xcconfig
100
+**/ios/Flutter/ephemeral
101
+**/ios/Flutter/app.flx
102
+**/ios/Flutter/app.zip
103
+**/ios/Flutter/flutter_assets/
104
+**/ios/Flutter/flutter_export_environment.sh
105
+**/ios/ServiceDefinitions.json
106
+**/ios/Runner/GeneratedPluginRegistrant.*
107
+
108
+# macOS
109
+**/Flutter/ephemeral/
110
+**/Pods/
111
+**/macos/Flutter/GeneratedPluginRegistrant.swift
112
+**/macos/Flutter/ephemeral
113
+**/xcuserdata/
114
+
115
+# Windows
116
+**/windows/flutter/generated_plugin_registrant.cc
117
+**/windows/flutter/generated_plugin_registrant.h
118
+**/windows/flutter/generated_plugins.cmake
119
+
120
+# Linux
121
+**/linux/flutter/generated_plugin_registrant.cc
122
+**/linux/flutter/generated_plugin_registrant.h
123
+**/linux/flutter/generated_plugins.cmake
124
+
125
+# Coverage
126
+coverage/
34 127
 
35
-# Symbolication related
128
+# Symbols
36 129
 app.*.symbols
37 130
 
38
-# Obfuscation related
39
-app.*.map.json
131
+# Exceptions to above rules.
132
+!**/ios/**/default.mode1v3
133
+!**/ios/**/default.mode2v3
134
+!**/ios/**/default.pbxuser
135
+!**/ios/**/default.perspectivev3
136
+!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
137
+!/dev/ci/**/Gemfile.lock
138
+!.vscode/settings.json
40 139
 
41
-# Android Studio will place build artifacts here
42
-/android/app/debug
43
-/android/app/profile
44
-/android/app/release
140
+# FVM Version Cache
141
+.fvm/
142
+.fvmrc

BIN
android/keystore.jks


+ 44 - 0
ios/Podfile

@@ -0,0 +1,44 @@
1
+# Uncomment this line to define a global platform for your project
2
+# platform :ios, '11.0'
3
+
4
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6
+
7
+project 'Runner', {
8
+  'Debug' => :debug,
9
+  'Profile' => :release,
10
+  'Release' => :release,
11
+}
12
+
13
+def flutter_root
14
+  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15
+  unless File.exist?(generated_xcode_build_settings_path)
16
+    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17
+  end
18
+
19
+  File.foreach(generated_xcode_build_settings_path) do |line|
20
+    matches = line.match(/FLUTTER_ROOT\=(.*)/)
21
+    return matches[1].strip if matches
22
+  end
23
+  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24
+end
25
+
26
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27
+
28
+flutter_ios_podfile_setup
29
+
30
+target 'Runner' do
31
+  use_frameworks!
32
+  use_modular_headers!
33
+
34
+  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35
+  target 'RunnerTests' do
36
+    inherit! :search_paths
37
+  end
38
+end
39
+
40
+post_install do |installer|
41
+  installer.pods_project.targets.each do |target|
42
+    flutter_additional_ios_build_settings(target)
43
+  end
44
+end

+ 1 - 4
lib/model/rsp/sample_task_rsp.dart

@@ -245,9 +245,7 @@ class SampleTaskItem {
245 245
     map['state'] = state;
246 246
     map['id'] = id;
247 247
 
248
-    map['shengXzqhName'] = shengXzqhName;
249
-    map['shiXzqhName'] = shiXzqhName;
250
-    map['quXzqhName'] = quXzqhName;
248
+    map['xzqhCode'] = xzqhCode;
251 249
     map['xiangXzqhName'] = xiangXzqhName;
252 250
     map['cunXzqhName'] = cunXzqhName;
253 251
 
@@ -288,7 +286,6 @@ class SampleTaskItem {
288 286
     if (nonghuList != null && nonghuList.isNotEmpty) {
289 287
       map['codeSamplingNonghuList'] = nonghuList.map((e) => e.toReqJson()).toList();
290 288
     }
291
-    map['xzqhCode'] = xzqhCode;
292 289
     return map;
293 290
   }
294 291
 }

+ 3 - 12
lib/page/sample_task/reap_sample_detail/reap_sample_basic_detail_page.dart

@@ -180,15 +180,11 @@ class _ReapSampleBasicDetailPageState extends BaseLifecycleState<ReapSampleBasic
180 180
       //   return;
181 181
       // }
182 182
       // 市、区、县、村数据清除
183
-      data?.shiXzqh = null;
183
+      sheng.value = null;
184 184
       shi.value = null;
185
-
186
-      data?.quXzqh = null;
187 185
       qu.value = null;
188
-
189 186
       data?.xiangXzqhName = null;
190 187
       xian.value = null;
191
-
192 188
       data?.cunXzqhName = null;
193 189
       cun.value = null;
194 190
 
@@ -199,7 +195,6 @@ class _ReapSampleBasicDetailPageState extends BaseLifecycleState<ReapSampleBasic
199 195
       if (provinceList != null) {
200 196
         for (CardMenuData item in provinceList) {
201 197
           if (item.name == province) {
202
-            data?.shengXzqh = item.value;
203 198
             sheng.value = item;
204 199
             stepSuccess = true;
205 200
             break;
@@ -208,11 +203,10 @@ class _ReapSampleBasicDetailPageState extends BaseLifecycleState<ReapSampleBasic
208 203
         if (stepSuccess) {
209 204
           stepSuccess = false;
210 205
           // 市
211
-          var cityList = await getDistrictList(2, id: data?.shengXzqh, showLoading: false);
206
+          var cityList = await getDistrictList(2, id: sheng.value!.value, showLoading: false);
212 207
           if (cityList == null) return;
213 208
           for (CardMenuData item in cityList) {
214 209
             if (item.name == city) {
215
-              data?.shiXzqh = item.value;
216 210
               shi.value = item;
217 211
               stepSuccess = true;
218 212
               break;
@@ -223,19 +217,16 @@ class _ReapSampleBasicDetailPageState extends BaseLifecycleState<ReapSampleBasic
223 217
             stepSuccess = false;
224 218
             // 区
225 219
             if (district.isNotEmpty) {
226
-              var districtList = await getDistrictList(3, id: data?.shiXzqh, showLoading: false);
220
+              var districtList = await getDistrictList(3, id: shi.value!.value, showLoading: false);
227 221
               if (districtList == null) return;
228 222
               for (CardMenuData item in districtList) {
229 223
                 if (item.name == district) {
230
-                  data?.quXzqh = item.value;
231 224
                   qu.value = item;
232
-                  getDistrictList(4, id: item.value, showLoading: false);
233 225
                   stepSuccess = true;
234 226
                   break;
235 227
                 }
236 228
               }
237 229
             } else {
238
-              data?.quXzqh = null;
239 230
               qu.value = CardMenuData('', null);
240 231
               stepSuccess = true;
241 232
             }

+ 0 - 11
linux/flutter/generated_plugin_registrant.cc

@@ -1,11 +0,0 @@
1
-//
2
-//  Generated file. Do not edit.
3
-//
4
-
5
-// clang-format off
6
-
7
-#include "generated_plugin_registrant.h"
8
-
9
-
10
-void fl_register_plugins(FlPluginRegistry* registry) {
11
-}

+ 0 - 15
linux/flutter/generated_plugin_registrant.h

@@ -1,15 +0,0 @@
1
-//
2
-//  Generated file. Do not edit.
3
-//
4
-
5
-// clang-format off
6
-
7
-#ifndef GENERATED_PLUGIN_REGISTRANT_
8
-#define GENERATED_PLUGIN_REGISTRANT_
9
-
10
-#include <flutter_linux/flutter_linux.h>
11
-
12
-// Registers Flutter plugins.
13
-void fl_register_plugins(FlPluginRegistry* registry);
14
-
15
-#endif  // GENERATED_PLUGIN_REGISTRANT_

+ 0 - 23
linux/flutter/generated_plugins.cmake

@@ -1,23 +0,0 @@
1
-#
2
-# Generated file, do not edit.
3
-#
4
-
5
-list(APPEND FLUTTER_PLUGIN_LIST
6
-)
7
-
8
-list(APPEND FLUTTER_FFI_PLUGIN_LIST
9
-)
10
-
11
-set(PLUGIN_BUNDLED_LIBRARIES)
12
-
13
-foreach(plugin ${FLUTTER_PLUGIN_LIST})
14
-  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
15
-  target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
16
-  list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
17
-  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
18
-endforeach(plugin)
19
-
20
-foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
21
-  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
22
-  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
23
-endforeach(ffi_plugin)

+ 0 - 22
macos/Flutter/GeneratedPluginRegistrant.swift

@@ -1,22 +0,0 @@
1
-//
2
-//  Generated file. Do not edit.
3
-//
4
-
5
-import FlutterMacOS
6
-import Foundation
7
-
8
-import connectivity_plus
9
-import device_info_plus
10
-import package_info_plus
11
-import path_provider_foundation
12
-import shared_preferences_foundation
13
-import sqflite
14
-
15
-func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
16
-  ConnectivityPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlugin"))
17
-  DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
18
-  FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
19
-  PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
20
-  SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
21
-  SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
22
-}

+ 43 - 0
macos/Podfile

@@ -0,0 +1,43 @@
1
+platform :osx, '10.14'
2
+
3
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5
+
6
+project 'Runner', {
7
+  'Debug' => :debug,
8
+  'Profile' => :release,
9
+  'Release' => :release,
10
+}
11
+
12
+def flutter_root
13
+  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
14
+  unless File.exist?(generated_xcode_build_settings_path)
15
+    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
16
+  end
17
+
18
+  File.foreach(generated_xcode_build_settings_path) do |line|
19
+    matches = line.match(/FLUTTER_ROOT\=(.*)/)
20
+    return matches[1].strip if matches
21
+  end
22
+  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
23
+end
24
+
25
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
26
+
27
+flutter_macos_podfile_setup
28
+
29
+target 'Runner' do
30
+  use_frameworks!
31
+  use_modular_headers!
32
+
33
+  flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
34
+  target 'RunnerTests' do
35
+    inherit! :search_paths
36
+  end
37
+end
38
+
39
+post_install do |installer|
40
+  installer.pods_project.targets.each do |target|
41
+    flutter_additional_macos_build_settings(target)
42
+  end
43
+end

File diff suppressed because it is too large
+ 0 - 1215
pubspec.lock


+ 0 - 17
windows/flutter/generated_plugin_registrant.cc

@@ -1,17 +0,0 @@
1
-//
2
-//  Generated file. Do not edit.
3
-//
4
-
5
-// clang-format off
6
-
7
-#include "generated_plugin_registrant.h"
8
-
9
-#include <connectivity_plus/connectivity_plus_windows_plugin.h>
10
-#include <permission_handler_windows/permission_handler_windows_plugin.h>
11
-
12
-void RegisterPlugins(flutter::PluginRegistry* registry) {
13
-  ConnectivityPlusWindowsPluginRegisterWithRegistrar(
14
-      registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin"));
15
-  PermissionHandlerWindowsPluginRegisterWithRegistrar(
16
-      registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
17
-}

+ 0 - 15
windows/flutter/generated_plugin_registrant.h

@@ -1,15 +0,0 @@
1
-//
2
-//  Generated file. Do not edit.
3
-//
4
-
5
-// clang-format off
6
-
7
-#ifndef GENERATED_PLUGIN_REGISTRANT_
8
-#define GENERATED_PLUGIN_REGISTRANT_
9
-
10
-#include <flutter/plugin_registry.h>
11
-
12
-// Registers Flutter plugins.
13
-void RegisterPlugins(flutter::PluginRegistry* registry);
14
-
15
-#endif  // GENERATED_PLUGIN_REGISTRANT_

+ 0 - 25
windows/flutter/generated_plugins.cmake

@@ -1,25 +0,0 @@
1
-#
2
-# Generated file, do not edit.
3
-#
4
-
5
-list(APPEND FLUTTER_PLUGIN_LIST
6
-  connectivity_plus
7
-  permission_handler_windows
8
-)
9
-
10
-list(APPEND FLUTTER_FFI_PLUGIN_LIST
11
-)
12
-
13
-set(PLUGIN_BUNDLED_LIBRARIES)
14
-
15
-foreach(plugin ${FLUTTER_PLUGIN_LIST})
16
-  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})
17
-  target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
18
-  list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
19
-  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
20
-endforeach(plugin)
21
-
22
-foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
23
-  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
24
-  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
25
-endforeach(ffi_plugin)