Browse Source

去除界面权限限制

ChengJH 1 year ago
parent
commit
47633e4a71

+ 1 - 1
app/src/main/AndroidManifest.xml

@@ -22,7 +22,7 @@
         android:name=".application.PdaApplication"
         android:allowBackup="true"
         android:icon="@mipmap/icon"
-        android:label="@string/app_name_mes"
+        android:label="@string/app_name_test"
         android:theme="@style/AppTheme"
         android:usesCleartextTraffic="true"
         tools:replace="allowBackup,label,theme">

+ 2 - 1
app/src/main/java/com/uas/gdstorage/activity/IndexActivity.java

@@ -506,7 +506,7 @@ public class IndexActivity extends BaseActivity implements AdapterView.OnItemCli
             //工单暂停,工单切换,实时报工
             if (TextUtils.isEmpty(mStaffCode) && (GloableParams.GRIDNAME_WORK_PAUSE.equals(itemName)
                     || GloableParams.GRIDNAME_WORK_SWITCH.equals(itemName)
-                    || GloableParams.GRIDNAME_TIME_REPORT.equals(itemName)
+//                    || GloableParams.GRIDNAME_TIME_REPORT.equals(itemName)
                     || GloableParams.GRIDNAME_TIME_REPORT_DETAIL.equals(itemName))) {
                 CommonUtil.toastNoRepeat(this, "当前没有上线人员,请先进行人员上线");
             } else {
@@ -518,6 +518,7 @@ public class IndexActivity extends BaseActivity implements AdapterView.OnItemCli
                  ||GloableParams.GRIDNAME_BULIANG_CAIJI.equals(itemName)
                  ||GloableParams.GRIDNAME_CHAI_PI.equals(itemName)
                  ||GloableParams.GRIDNAME_TIAO_ZHAN.equals(itemName)
+                 ||GloableParams.GRIDNAME_TIME_REPORT.equals(itemName)
                  ||GloableParams.GRIDNAME_HE_PI.equals(itemName)){
                     goFragment(position);
                 }else if(GloableParams.GRIDNAME_WORK_PAUSE.equals(itemName)){//解除绑定

+ 1 - 1
app/src/main/res/layout/fragment_jump_site.xml

@@ -110,7 +110,7 @@
                     android:text="不良代码"
                     android:textColor="@color/text_normal"
                     android:textSize="12sp"
-                    android:visibility="gone"
+
                     />
 
             </TableRow>