2026.5.21 隐患治理

master
xufei 2026-05-21 17:31:14 +08:00
parent f39c8e7fb0
commit 7fb7e15042
2 changed files with 13 additions and 6 deletions

View File

@ -1,5 +1,6 @@
import 'dart:io'; import 'dart:io';
import 'package:dio/dio.dart'; 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/ApiService.dart';
import 'package:qhd_prevention/http/HttpManager.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( return HttpManager().request(
'${ApiService.basePath}/hidden', '${ApiService.basePath}/hidden',
'/hidden/rectifyList', '/hidden/rectifyList',
@ -142,7 +146,7 @@ class HiddenDangerApi {
"hiddenDesc": search, "hiddenDesc": search,
"hiddenLevels": ["hiddenLevel1004", "hiddenLevel1002"], "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( return HttpManager().request(
'${ApiService.basePath}/hidden', '${ApiService.basePath}/hidden',
'/hidden/list', '/hidden/list',
@ -242,7 +249,7 @@ class HiddenDangerApi {
'hiddenLevels': ["hiddenLevel1001", "hiddenLevel1004", "hiddenLevel1002"], 'hiddenLevels': ["hiddenLevel1001", "hiddenLevel1004", "hiddenLevel1002"],
"pageIndex": page, "pageIndex": page,
"hiddenDesc": search, "hiddenDesc": search,
// 'menuPath':"/hidden/container/stakeholder/hiddenRecord/list", 'menuPath':menuPath,
// "corpId": corpId, // "corpId": corpId,
"hiddenFindTime": searchData['beginTIme'], "hiddenFindTime": searchData['beginTIme'],

View File

@ -47,7 +47,7 @@ class _HiddenDangerTabPageState extends State<HiddenDangerTabPage> {
AppSectionItem( AppSectionItem(
title: '隐患整改', title: '隐患整改',
icon: 'assets/images/key_tasks_ico6.png', icon: 'assets/images/key_tasks_ico6.png',
menuPerms:'dashboard:Key-assignment:Hidden-danger-rectification', menuPerms:'hidden-container-branchCompany-average-rectification-list',
badge: 0, badge: 0,
onTap: () async { onTap: () async {
await pushPage(HiddenDangerAcceptance(DangerType.wait, 3), context); await pushPage(HiddenDangerAcceptance(DangerType.wait, 3), context);
@ -57,7 +57,7 @@ class _HiddenDangerTabPageState extends State<HiddenDangerTabPage> {
AppSectionItem( AppSectionItem(
title: '隐患记录', title: '隐患记录',
icon: 'assets/images/key_tasks_ico7.png', icon: 'assets/images/key_tasks_ico7.png',
menuPerms:'dashboard:Key-assignment:Hidden-Hazard-Record', menuPerms:'hidden-container-branchCompany-average-ledger-list',
badge: 0, badge: 0,
onTap: () async { onTap: () async {
await pushPage(HiddenDangerRecordTwo(DangerType.ristRecord, 7, ''), context); await pushPage(HiddenDangerRecordTwo(DangerType.ristRecord, 7, ''), context);