diff --git a/lib/models/user/user_info_model.dart b/lib/models/user/user_info_model.dart index 498119a..06f7418 100644 --- a/lib/models/user/user_info_model.dart +++ b/lib/models/user/user_info_model.dart @@ -4,6 +4,18 @@ class UserInfoModel { String nickName; List jurisdiction; + ///派单(派单人) + bool get canSendTicket => jurisdiction.contains(52); + + ///接单(维修人) + bool get canPickUpTicket => jurisdiction.contains(53); + + ///放行(保安) + bool get canPass => jurisdiction.contains(55); + + ///操作权限(借还管理) + bool get canOperation => jurisdiction.contains(57); + UserInfoModel({this.id, this.roleId, this.nickName, this.jurisdiction}); UserInfoModel.fromJson(Map json) { diff --git a/lib/ui/sub_pages/activity_manager/activity_detail_page.dart b/lib/ui/sub_pages/activity_manager/activity_detail_page.dart index 6522d26..dcb8e47 100644 --- a/lib/ui/sub_pages/activity_manager/activity_detail_page.dart +++ b/lib/ui/sub_pages/activity_manager/activity_detail_page.dart @@ -8,7 +8,6 @@ import 'package:flutter/material.dart'; // Package imports: import 'package:common_utils/common_utils.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; -import 'package:velocity_x/velocity_x.dart'; // Project imports: import 'package:aku_community_manager/style/app_style.dart';