Merge remote-tracking branch 'origin/main'
						commit
						b361f796f6
					
				|  | @ -40,14 +40,13 @@ class ListItemFactory { | ||||||
|             ], |             ], | ||||||
|           ), |           ), | ||||||
|           if (isRight) |           if (isRight) | ||||||
| 
 |  | ||||||
|             Row( |             Row( | ||||||
|               mainAxisSize: MainAxisSize.min, |               mainAxisSize: MainAxisSize.min, | ||||||
|               children: [ |               children: [ | ||||||
|                 Flexible( |                 Flexible( | ||||||
|                   fit: FlexFit.loose, |                   fit: FlexFit.loose, | ||||||
|                   child: Text( |                   child: Text( | ||||||
|                     rightText, |                       _truncateText(rightText,17) , | ||||||
|                     style: TextStyle(fontSize: 13, color: Colors.grey), |                     style: TextStyle(fontSize: 13, color: Colors.grey), | ||||||
|                     maxLines: 1, |                     maxLines: 1, | ||||||
|                     overflow: TextOverflow.ellipsis, |                     overflow: TextOverflow.ellipsis, | ||||||
|  | @ -65,7 +64,7 @@ class ListItemFactory { | ||||||
|             Flexible( |             Flexible( | ||||||
|               fit: FlexFit.loose, |               fit: FlexFit.loose, | ||||||
|               child: Text( |               child: Text( | ||||||
|                 rightText, |                 _truncateText(rightText,17) , | ||||||
|                 style: TextStyle(fontSize: 13, color: Colors.grey), |                 style: TextStyle(fontSize: 13, color: Colors.grey), | ||||||
|                 maxLines: 1, |                 maxLines: 1, | ||||||
|                 overflow: TextOverflow.ellipsis, |                 overflow: TextOverflow.ellipsis, | ||||||
|  |  | ||||||
|  | @ -2867,6 +2867,7 @@ U6Hzm1ninpWeE+awIDAQAB | ||||||
|         "CHECK_CONTENT": item["CHECK_CONTENT"] ?? "", |         "CHECK_CONTENT": item["CHECK_CONTENT"] ?? "", | ||||||
|         "CHECK_STANDARD": item["CHECK_STANDARD"] ?? "", |         "CHECK_STANDARD": item["CHECK_STANDARD"] ?? "", | ||||||
|         "REFERENCE_BASIS": item["REFERENCE_BASIS"] ?? "", |         "REFERENCE_BASIS": item["REFERENCE_BASIS"] ?? "", | ||||||
|  | 
 | ||||||
|         "SOURCE": '2', |         "SOURCE": '2', | ||||||
|         "STATE": '0', |         "STATE": '0', | ||||||
|         "CLEARIMG": '1', |         "CLEARIMG": '1', | ||||||
|  | @ -3092,6 +3093,7 @@ U6Hzm1ninpWeE+awIDAQAB | ||||||
|     String hiddenType3, |     String hiddenType3, | ||||||
|     result, |     result, | ||||||
|   ) { |   ) { | ||||||
|  | 
 | ||||||
|     print("======>$type"); |     print("======>$type"); | ||||||
|     return HttpManager().request( |     return HttpManager().request( | ||||||
|       basePath, |       basePath, | ||||||
|  | @ -3104,10 +3106,12 @@ U6Hzm1ninpWeE+awIDAQAB | ||||||
| 
 | 
 | ||||||
|         "HIDDEN_CATEGORY": result["HIDDEN_CATEGORY"] ?? '', |         "HIDDEN_CATEGORY": result["HIDDEN_CATEGORY"] ?? '', | ||||||
|         "LISTMANAGER_ID": item["LISTMANAGER_ID"], |         "LISTMANAGER_ID": item["LISTMANAGER_ID"], | ||||||
|         "RISKITEM_ID": result["LISTCHECKITEM_ID"], |         "RISKITEM_ID": item["LISTCHECKITEM_ID"], | ||||||
|         "CHECK_CONTENT": item["CHECK_CONTENT"] ?? "", |         "CHECK_CONTENT": item["CHECK_CONTENT"] ?? "", | ||||||
|         "RECORDITEM_ID": item["RECORDITEM_ID"] ?? "", |         "RECORDITEM_ID": item["RECORDITEM_ID"] ?? "", | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|         "HIDDENDESCR": hazardDescription, |         "HIDDENDESCR": hazardDescription, | ||||||
|         "HIDDENPART": partDescription, |         "HIDDENPART": partDescription, | ||||||
|         "LATITUDE": latitude, |         "LATITUDE": latitude, | ||||||
|  |  | ||||||
|  | @ -96,6 +96,7 @@ class HttpManager { | ||||||
|     ); |     ); | ||||||
| 
 | 
 | ||||||
|     try { |     try { | ||||||
|  |       print("======>$data"); | ||||||
|       switch (method) { |       switch (method) { | ||||||
|         case Method.get: |         case Method.get: | ||||||
|           resp = await _dio.get(url, |           resp = await _dio.get(url, | ||||||
|  |  | ||||||
|  | @ -557,7 +557,7 @@ class _HiddenDangerAcceptancePageState extends State<HiddenDangerAcceptancePage> | ||||||
| 
 | 
 | ||||||
|        String hiddenCheckId=""; |        String hiddenCheckId=""; | ||||||
|        try{ |        try{ | ||||||
|          data['check']['HIDDENCHECK_ID']; |          hiddenCheckId= data['check']['HIDDENCHECK_ID']; | ||||||
|        }catch(e){ |        }catch(e){ | ||||||
|          hiddenCheckId=""; |          hiddenCheckId=""; | ||||||
|        } |        } | ||||||
|  |  | ||||||
|  | @ -137,7 +137,13 @@ class _HiddenRecordDetailPageState extends State<HiddenRecordDetailPage> { | ||||||
|             files5.add(img["FILEPATH"]); |             files5.add(img["FILEPATH"]); | ||||||
|           } |           } | ||||||
|           files6 = data['yImgs'] ?? []; |           files6 = data['yImgs'] ?? []; | ||||||
|  | 
 | ||||||
|           checkList = data['checkList'] ?? []; |           checkList = data['checkList'] ?? []; | ||||||
|  |           if(checkList.isNotEmpty) { | ||||||
|  |             for (var img in checkList[0]['cImgs']) { | ||||||
|  |               files7.add(img["FILEPATH"]); | ||||||
|  |             } | ||||||
|  |           } | ||||||
|         }); |         }); | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|  | @ -398,7 +404,7 @@ class _HiddenRecordDetailPageState extends State<HiddenRecordDetailPage> { | ||||||
|           // _buildImageGrid(files2, onTap: (index) => _showImageGallery(files2, index)), |           // _buildImageGrid(files2, onTap: (index) => _showImageGallery(files2, index)), | ||||||
|           ListItemFactory.createTextImageItem( |           ListItemFactory.createTextImageItem( | ||||||
|           text: "验收图片", |           text: "验收图片", | ||||||
|           imageUrls: files5, |           imageUrls: files7, | ||||||
|           onImageTapped: (index) { |           onImageTapped: (index) { | ||||||
|           presentOpaque( |           presentOpaque( | ||||||
|           SingleImageViewer(imageUrl: ApiService.baseImgPath +files5[index]), |           SingleImageViewer(imageUrl: ApiService.baseImgPath +files5[index]), | ||||||
|  |  | ||||||
|  | @ -213,14 +213,14 @@ class _PendingRectificationDetailPageState extends State<PendingRectificationDet | ||||||
|                           Divider(height: 1), |                           Divider(height: 1), | ||||||
|                           // 条件渲染部分 |                           // 条件渲染部分 | ||||||
|                           if (pd['SOURCE'] == '2') ...[ |                           if (pd['SOURCE'] == '2') ...[ | ||||||
|                             // _buildInfoItem('风险点(单元)', pd['RISK_UNIT'] ?? ''), |                             _buildInfoItem('风险点(单元)', pd['RISK_UNIT'] ?? ''), | ||||||
|                             // Divider(height: 1), |                             Divider(height: 1), | ||||||
|                             // _buildInfoItem('辨识部位', pd['IDENTIFICATION'] ?? ''), |                             _buildInfoItem('辨识部位', pd['IDENTIFICATION'] ?? ''), | ||||||
|                             // Divider(height: 1), |                             Divider(height: 1), | ||||||
|                             // _buildInfoItem('存在风险', pd['RISK_DESCR'] ?? ''), |                             _buildInfoItem('存在风险', pd['RISK_DESCR'] ?? ''), | ||||||
|                             // Divider(height: 1), |                             Divider(height: 1), | ||||||
|                             // _buildInfoItem('风险分级', pd['LEVEL'] ?? ''), |                             _buildInfoItem('风险分级', pd['LEVEL'] ?? ''), | ||||||
|                             // Divider(height: 1), |                             Divider(height: 1), | ||||||
|                             _buildInfoItem('检查内容', pd['CHECK_CONTENT'] ?? ''), |                             _buildInfoItem('检查内容', pd['CHECK_CONTENT'] ?? ''), | ||||||
|                             Divider(height: 1), |                             Divider(height: 1), | ||||||
|                           ], |                           ], | ||||||
|  |  | ||||||
|  | @ -166,16 +166,31 @@ class _StrengthenStudyPageState extends State<StrengthenStudyPage> { | ||||||
|       body: Column( |       body: Column( | ||||||
|         children: [ |         children: [ | ||||||
|           ListItemFactory.createBuildSimpleSection('加强学习课件'), |           ListItemFactory.createBuildSimpleSection('加强学习课件'), | ||||||
|           SizedBox( |           if(_videoList.isEmpty) | ||||||
|             width: double.infinity, |           Stack(children: [ | ||||||
|             height: 250, |             Container( | ||||||
|             child: VideoPlayerWidget( |               width: double.infinity, | ||||||
|               allowSeek: false, |               height: 200, | ||||||
|               controller: _videoController, |               color: Colors.white, | ||||||
|               coverUrl:'', |               child: Center( | ||||||
|               aspectRatio: _videoController?.value.aspectRatio ?? 16 / 9, |                 child:Text("暂未播放", | ||||||
|  |                 ), | ||||||
|  |               ), | ||||||
|             ), |             ), | ||||||
|           ), |             if(_videoList.isNotEmpty) | ||||||
|  |             SizedBox( | ||||||
|  |               width: double.infinity, | ||||||
|  |               height: 250, | ||||||
|  |               child: VideoPlayerWidget( | ||||||
|  |                 allowSeek: false, | ||||||
|  |                 controller: _videoController, | ||||||
|  |                 coverUrl:'', | ||||||
|  |                 aspectRatio: _videoController?.value.aspectRatio ?? 16 / 9, | ||||||
|  |               ), | ||||||
|  |             ), | ||||||
|  |           ],), | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|           Expanded( |           Expanded( | ||||||
|             child: ListView.builder( |             child: ListView.builder( | ||||||
|               padding: const EdgeInsets.all(12), |               padding: const EdgeInsets.all(12), | ||||||
|  |  | ||||||
|  | @ -584,7 +584,7 @@ class _DangerProjectPageState extends State<DangerProjectPage> { | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (hasNoSelectItem) { |     if (hasNoSelectItem) { | ||||||
|       ToastUtil.showNormal(context, "还有位选择的排查项"); |       ToastUtil.showNormal(context, "还有未选择的排查项"); | ||||||
|       LoadingDialogHelper.hide(); |       LoadingDialogHelper.hide(); | ||||||
|       return; |       return; | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue