2026.5.21 隐患治理
parent
f39c8e7fb0
commit
7fb7e15042
|
|
@ -1,5 +1,6 @@
|
|||
import 'dart:io';
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:qhd_prevention/common/route_service.dart';
|
||||
import 'package:qhd_prevention/http/ApiService.dart';
|
||||
import 'package:qhd_prevention/http/HttpManager.dart';
|
||||
|
||||
|
|
@ -131,7 +132,10 @@ class HiddenDangerApi {
|
|||
}
|
||||
|
||||
/// 获取整改列表
|
||||
static Future<Map<String, dynamic>> getRectificationList(int page,String search ,int pageSize ) {
|
||||
static Future<Map<String, dynamic>> getRectificationList(int page,String search ,int pageSize ) async {
|
||||
final parentPerm = 'dashboard-Hazard-Management';
|
||||
final targetPerm = 'hidden-container-branchCompany-average-rectification-list';
|
||||
final menuPath = await RouteService.getMenuPath(parentPerm, targetPerm);
|
||||
return HttpManager().request(
|
||||
'${ApiService.basePath}/hidden',
|
||||
'/hidden/rectifyList',
|
||||
|
|
@ -142,7 +146,7 @@ class HiddenDangerApi {
|
|||
"hiddenDesc": search,
|
||||
|
||||
"hiddenLevels": ["hiddenLevel1004", "hiddenLevel1002"],
|
||||
// "menuPath": "/hidden/container/stakeholder/rectification/list",
|
||||
"menuPath": menuPath,
|
||||
|
||||
},
|
||||
);
|
||||
|
|
@ -233,7 +237,10 @@ class HiddenDangerApi {
|
|||
}
|
||||
|
||||
/// 监管端:一般隐患列表
|
||||
static Future<Map<String, dynamic>> getGeneralHazardList(int page,String search,searchData, String corpId) {
|
||||
static Future<Map<String, dynamic>> getGeneralHazardList(int page,String search,searchData, String corpId) async {
|
||||
final parentPerm = 'dashboard-Hazard-Management';
|
||||
final targetPerm = 'hidden-container-branchCompany-average-ledger-list';
|
||||
final menuPath = await RouteService.getMenuPath(parentPerm, targetPerm);
|
||||
return HttpManager().request(
|
||||
'${ApiService.basePath}/hidden',
|
||||
'/hidden/list',
|
||||
|
|
@ -242,7 +249,7 @@ class HiddenDangerApi {
|
|||
'hiddenLevels': ["hiddenLevel1001", "hiddenLevel1004", "hiddenLevel1002"],
|
||||
"pageIndex": page,
|
||||
"hiddenDesc": search,
|
||||
// 'menuPath':"/hidden/container/stakeholder/hiddenRecord/list",
|
||||
'menuPath':menuPath,
|
||||
// "corpId": corpId,
|
||||
|
||||
"hiddenFindTime": searchData['beginTIme'],
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class _HiddenDangerTabPageState extends State<HiddenDangerTabPage> {
|
|||
AppSectionItem(
|
||||
title: '隐患整改',
|
||||
icon: 'assets/images/key_tasks_ico6.png',
|
||||
menuPerms:'dashboard:Key-assignment:Hidden-danger-rectification',
|
||||
menuPerms:'hidden-container-branchCompany-average-rectification-list',
|
||||
badge: 0,
|
||||
onTap: () async {
|
||||
await pushPage(HiddenDangerAcceptance(DangerType.wait, 3), context);
|
||||
|
|
@ -57,7 +57,7 @@ class _HiddenDangerTabPageState extends State<HiddenDangerTabPage> {
|
|||
AppSectionItem(
|
||||
title: '隐患记录',
|
||||
icon: 'assets/images/key_tasks_ico7.png',
|
||||
menuPerms:'dashboard:Key-assignment:Hidden-Hazard-Record',
|
||||
menuPerms:'hidden-container-branchCompany-average-ledger-list',
|
||||
badge: 0,
|
||||
onTap: () async {
|
||||
await pushPage(HiddenDangerRecordTwo(DangerType.ristRecord, 7, ''), context);
|
||||
|
|
|
|||
Loading…
Reference in New Issue