Browse Source

2024-09-29 修改 1.0.5 -> 1.0.6

修改:
1. 团组信息 / 接团客户名单 完善权限限制
zhaiy 6 months ago
parent
commit
e18eb43bba

+ 2 - 2
app/build.gradle

@@ -15,8 +15,8 @@ android {
         applicationId "com.pan_american.android"
         minSdk 24
         targetSdk 34
-        versionCode 6
-        versionName "1.0.5"
+        versionCode 7
+        versionName "1.0.6"
 
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
     }

+ 17 - 7
app/src/main/java/com/pan_american/android/ui/group_management/group_info/GroupInfoBaseFragment.kt

@@ -551,13 +551,23 @@ class GroupInfoBaseFragment : BaseFragment<FragmentGroupInfoBaseBinding>() {
                 }
             }
 
-            parentFragmentManager.beginTransaction().setCustomAnimations(
-                R.anim.slide_right_in,
-                R.anim.slide_left_out,
-                R.anim.slide_left_in,
-                R.anim.slide_right_out
-            ).addToBackStack(null)
-                .add(R.id.add_group_info_container, GroupCustomerListFragment()).commit()
+            if (OASystem.authorization(OASystem.GROUP_CLIENT_LIST, OASystem.VIEW)) {
+                parentFragmentManager.beginTransaction().setCustomAnimations(
+                    R.anim.slide_right_in,
+                    R.anim.slide_left_out,
+                    R.anim.slide_left_in,
+                    R.anim.slide_right_out
+                ).addToBackStack(null)
+                    .add(R.id.add_group_info_container, GroupCustomerListFragment()).commit()
+            } else {
+                parentFragmentManager.beginTransaction().setCustomAnimations(
+                    R.anim.slide_right_in,
+                    R.anim.slide_left_out,
+                    R.anim.slide_left_in,
+                    R.anim.slide_right_out
+                ).addToBackStack(null)
+                    .add(R.id.add_group_info_container, GroupInfoRequireFragment()).commit()
+            }
         }
     }