缺陷工单新增本地保存成功后跳转到缺陷管理页面

master
wenfei 5 months ago
parent 414d83c4c9
commit 2c800dc700

@ -173,20 +173,18 @@ public class CJFragment extends BaseFragment {
"严重泄漏".equals(text)||"液位偏低".equals(text)||"油位偏低".equals(text)||"常用源及备用源异常".equals(text)){ "严重泄漏".equals(text)||"液位偏低".equals(text)||"油位偏低".equals(text)||"常用源及备用源异常".equals(text)){
showToast("采集结果数据存在异常,请填写分析内容"); showToast("采集结果数据存在异常,请填写分析内容");
llFxnr.setVisibility(View.VISIBLE); llFxnr.setVisibility(View.VISIBLE);
// View view = sv.getChildAt(sv.getChildCount() - 1);
// int height = view.getBottom();
// sv.post(new Runnable() {
// @Override
// public void run() {
// sv.smoothScrollTo(0, height);
// }
// });
sv.post(new Runnable() { sv.post(new Runnable() {
@Override @Override
public void run() { public void run() {
sv.fullScroll(View.FOCUS_DOWN); sv.fullScroll(View.FOCUS_DOWN);
} }
}); });
// sv.post(new Runnable() {
// @Override
// public void run() {
// sv.scrollTo(0, sv.getBottom());
// }
// });
} }
} }
}); });
@ -216,7 +214,14 @@ public class CJFragment extends BaseFragment {
if (jg > cxsx || jg < cxxx || jg > bjsx || jg < bjxx) { if (jg > cxsx || jg < cxxx || jg > bjsx || jg < bjxx) {
showToast("数据采集结果存在异常、超限,请填写分析内容"); showToast("数据采集结果存在异常、超限,请填写分析内容");
llFxnr.setVisibility(View.VISIBLE); llFxnr.setVisibility(View.VISIBLE);
sv.fullScroll(View.FOCUS_DOWN); //sv.fullScroll(View.FOCUS_DOWN);
//sv.scrollTo(0, sv.getBottom());
sv.post(new Runnable() {
@Override
public void run() {
sv.scrollTo(0, sv.getBottom());
}
});
} else { } else {
llFxnr.setVisibility(View.GONE); llFxnr.setVisibility(View.GONE);
} }

@ -472,12 +472,14 @@ class MjApplyActivity : BaseActivityOaToolbarViewBinding<ActivityMjApplyBinding>
adapter.notifyDataSetChanged() adapter.notifyDataSetChanged()
binding.tvNodata.visibility= View.VISIBLE binding.tvNodata.visibility= View.VISIBLE
binding.lv.visibility= View.GONE binding.lv.visibility= View.GONE
binding.tvLjzrws.text="0"
} }
}else { }else {
datas.clear() datas.clear()
adapter.notifyDataSetChanged() adapter.notifyDataSetChanged()
binding.tvNodata.visibility= View.VISIBLE binding.tvNodata.visibility= View.VISIBLE
binding.lv.visibility=View.GONE binding.lv.visibility=View.GONE
binding.tvLjzrws.text="0"
} }
} }
} }

@ -302,6 +302,10 @@ public class SQxgdlrfActivity extends BaseActivity {
if (savaData()) { if (savaData()) {
showToast("保存成功"); showToast("保存成功");
clearView(); clearView();
Intent intent = new Intent(SQxgdlrfActivity.this, QxgdListActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
startActivity(intent);
finish();
} }
} }
} else { } else {

@ -474,12 +474,14 @@ class XjMjApplyActivity : BaseActivityOaToolbarViewBinding<ActivityXjMjApplyBind
adapter.notifyDataSetChanged() adapter.notifyDataSetChanged()
binding.tvNodata.visibility= View.VISIBLE binding.tvNodata.visibility= View.VISIBLE
binding.lv.visibility= View.GONE binding.lv.visibility= View.GONE
binding.tvLjzrws.text="0"
} }
}else { }else {
datas.clear() datas.clear()
adapter.notifyDataSetChanged() adapter.notifyDataSetChanged()
binding.tvNodata.visibility= View.VISIBLE binding.tvNodata.visibility= View.VISIBLE
binding.lv.visibility=View.GONE binding.lv.visibility=View.GONE
binding.tvLjzrws.text="0"
} }
} }
} }

@ -1,6 +1,6 @@
[versions] [versions]
agentwebCore = "v5.1.1-androidx" agentwebCore = "v5.1.1-androidx"
agp = "8.9.1" agp = "8.10.0"
androidxLocalbroadcastmanager = "1.1.0" androidxLocalbroadcastmanager = "1.1.0"
annotationVersion = "1.9.1" annotationVersion = "1.9.1"
appupdate = "4.2.6" appupdate = "4.2.6"

@ -1,6 +1,7 @@
#Thu Jan 16 17:33:21 CST 2025 #Thu Jan 16 17:33:21 CST 2025
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip #distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
Loading…
Cancel
Save