点检任务列表接口调整,当一级部门为设备部,取计划表,承包商字段为空的任务,根据传入的二级部门过滤筛选取数据

master
wenfei 8 months ago
parent 89c9ff90b0
commit c50af6d077

@ -209,8 +209,8 @@ class LoginActivity : BaseActivityOaToolbarViewBinding<ActivityLoginBinding>() {
// binding.etPassword.setText("A000000a.")
//ceshi1
// binding.etUsername.setText("ceshi1")
// binding.etPassword.setText("A000000a.")
binding.etUsername.setText("ceshi1")
binding.etPassword.setText("A000000a.")
//瑞洪 RH00002/王总 RH00002/chao工 RH00003/范红波
@ -663,6 +663,10 @@ class LoginActivity : BaseActivityOaToolbarViewBinding<ActivityLoginBinding>() {
)
) {
showLog("----------一级部门----------")
showLog(userInfo.firstDeparment)
showLog("----------二级部门----------")
showLog(userInfo.secondDeparment)
SPUtils.put(
context,
Contans.SP.OLD_PWD,

@ -158,6 +158,7 @@ public class SbxdjglActivity extends BaseActivity2 {
param.put("bzmc", "");
}
param.put("Action", "DJ_DJGL_GET");
param.put("YHID", username);
if(!TextUtils.isEmpty(firstDeparment)){
if(firstDeparment.equals("设备部")||firstDeparment.equals("承包商")||firstDeparment.equals("粤电服大亚湾项目部")){

@ -286,6 +286,7 @@ public class XzjhFragment extends BaseFragment {
param.put("bzmc", "");
}
param.put("Action", "DJ_DJGL_GET");
param.put("YHID", username);
if(!TextUtils.isEmpty(firstDeparment)){
if(firstDeparment.equals("设备部")||firstDeparment.equals("承包商")||firstDeparment.equals("粤电服大亚湾项目部")){
@ -665,6 +666,7 @@ public class XzjhFragment extends BaseFragment {
param.put("bzmc", "");
}
param.put("Action", "DJ_DJGL_GET");
param.put("YHID", username);
if(!TextUtils.isEmpty(firstDeparment)){
if(firstDeparment.equals("设备部")||firstDeparment.equals("承包商")||firstDeparment.equals("粤电服大亚湾项目部")){

@ -8,6 +8,7 @@ import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Environment;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.util.Base64;
import android.view.View;
@ -168,7 +169,7 @@ public class HomeFragment extends BaseFragment {
startActivity(intentWaitFor);
}
});
new Handler().postDelayed(new Runnable() {
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
//隐藏掉 本平台为非涉密平台,严禁处理、传输国家秘密、工作秘密、商业秘密、敏感信息
@ -210,6 +211,17 @@ public class HomeFragment extends BaseFragment {
@Override
public void onResume() {
super.onResume();
if (this.isAdded() && this.isVisible()&&ll_tip.getVisibility()==View.VISIBLE) {
// Fragment存在且可见可以安全访问
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
//隐藏掉 本平台为非涉密平台,严禁处理、传输国家秘密、工作秘密、商业秘密、敏感信息
//showLog("隐藏掉 本平台为非涉密平台,严禁处理、传输国家秘密、工作秘密、商业秘密、敏感信息")
ll_tip.setVisibility(View.GONE);
}
}, 5000);
}
getWaitForToDo();
}

Loading…
Cancel
Save