fix: 修改任务状态
This commit is contained in:
@@ -10,7 +10,7 @@ android {
|
|||||||
minSdkVersion 22
|
minSdkVersion 22
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 21
|
versionCode 21
|
||||||
versionName "8.220509"
|
versionName "8.220510"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
lintOptions {
|
lintOptions {
|
||||||
|
|||||||
@@ -563,6 +563,10 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
|
|||||||
public void onGranted(List<String> permissions, boolean all) {
|
public void onGranted(List<String> permissions, boolean all) {
|
||||||
if (all) {
|
if (all) {
|
||||||
PoiEntity poiEntity = initPoiEntityByUI(showPoiEntity);
|
PoiEntity poiEntity = initPoiEntityByUI(showPoiEntity);
|
||||||
|
if (poiEntity.getPhoto() == null||poiEntity.getPhoto().isEmpty()) {
|
||||||
|
Toast.makeText(getActivity(), "POI录像任务必须拍照!", Toast.LENGTH_LONG).show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
PoiCheckResult poiCheckResult = checkPoiEntity(poiEntity);
|
PoiCheckResult poiCheckResult = checkPoiEntity(poiEntity);
|
||||||
if (poiCheckResult.getCode() == 1) {
|
if (poiCheckResult.getCode() == 1) {
|
||||||
ToastUtils.Message(getActivity(), poiCheckResult.getMsg());
|
ToastUtils.Message(getActivity(), poiCheckResult.getMsg());
|
||||||
|
|||||||
@@ -428,6 +428,14 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
|
|||||||
tvPictures.setEnabled(false);
|
tvPictures.setEnabled(false);
|
||||||
etDesc.setEnabled(false);
|
etDesc.setEnabled(false);
|
||||||
btnRoadSave.setEnabled(false);
|
btnRoadSave.setEnabled(false);
|
||||||
|
|
||||||
|
rgRoadStatus.setEnabled(false);
|
||||||
|
rbtnRoadOpen.setEnabled(false);
|
||||||
|
rbtnRoadPartOpen.setEnabled(false);
|
||||||
|
rbtnRoadHasntOpen.setEnabled(false);
|
||||||
|
rbtnRoadHasntFind.setEnabled(false);
|
||||||
|
rbtnRoadOther.setEnabled(false);
|
||||||
|
edtCheckedOther.setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
@@ -579,6 +587,10 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
|
|||||||
public void onGranted(List<String> permissions, boolean all) {
|
public void onGranted(List<String> permissions, boolean all) {
|
||||||
if (all) {
|
if (all) {
|
||||||
PoiEntity poiEntity = initPoiEntityByUI(showPoiEntity);
|
PoiEntity poiEntity = initPoiEntityByUI(showPoiEntity);
|
||||||
|
if (poiEntity.getPhoto() == null||poiEntity.getPhoto().isEmpty()) {
|
||||||
|
Toast.makeText(getActivity(), "道路任务必须拍照!", Toast.LENGTH_LONG).show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
PoiCheckResult poiCheckResult = checkPoiEntity(poiEntity);
|
PoiCheckResult poiCheckResult = checkPoiEntity(poiEntity);
|
||||||
if (poiCheckResult.getCode() == 1) {
|
if (poiCheckResult.getCode() == 1) {
|
||||||
ToastUtils.Message(getActivity(), poiCheckResult.getMsg());
|
ToastUtils.Message(getActivity(), poiCheckResult.getMsg());
|
||||||
@@ -681,6 +693,9 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
|
|||||||
httpParams.put("address", poiEntity.getAddress());
|
httpParams.put("address", poiEntity.getAddress());
|
||||||
httpParams.put("workType", 0);
|
httpParams.put("workType", 0);
|
||||||
httpParams.put("memo", poiEntity.getMemo());
|
httpParams.put("memo", poiEntity.getMemo());
|
||||||
|
// 增加对应九天平台的参数
|
||||||
|
httpParams.put("existence", rgRoadStatus.getTag().toString());
|
||||||
|
httpParams.put("description", edtCheckedOther!=null&&edtCheckedOther.isShown()? edtCheckedOther.getText().toString().trim(): "");
|
||||||
OkGoBuilder okGoBuilder = OkGoBuilder.getInstance()
|
OkGoBuilder okGoBuilder = OkGoBuilder.getInstance()
|
||||||
.time(30)
|
.time(30)
|
||||||
.Builder(getActivity())
|
.Builder(getActivity())
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package com.navinfo.outdoor.http;
|
|||||||
|
|
||||||
public class HttpInterface {
|
public class HttpInterface {
|
||||||
public static final String IP2 = "http://172.23.139.129:9999/m4";//测试接口
|
public static final String IP2 = "http://172.23.139.129:9999/m4";//测试接口
|
||||||
public static final String IP1 = "http://dtxbmaps.navinfo.com/dtxb/dev/m4";//测试接口-外网
|
public static final String IP = "http://dtxbmaps.navinfo.com/dtxb/dev/m4";//测试接口-外网
|
||||||
public static final String IP = "http://dtxbmaps.navinfo.com/dtxb/m4";//正式接口
|
public static final String IP1 = "http://dtxbmaps.navinfo.com/dtxb/m4";//正式接口
|
||||||
public static final String USER_PATH = "/user/";//我的
|
public static final String USER_PATH = "/user/";//我的
|
||||||
public static final String MSG_LIST_PATH = "/msgList/";//发现
|
public static final String MSG_LIST_PATH = "/msgList/";//发现
|
||||||
public static final String USER_LOGIN_PATH = "/userlogin/";//登录
|
public static final String USER_LOGIN_PATH = "/userlogin/";//登录
|
||||||
|
|||||||
@@ -133,7 +133,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="10dp"
|
||||||
android:layout_marginTop="20dp"
|
android:layout_marginTop="20dp"
|
||||||
android:text="03.描述"
|
android:text="03.任务状态"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
@@ -172,19 +172,24 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:tag="4"
|
android:tag="4"
|
||||||
android:text="其他"></RadioButton>
|
android:text="其他不可采原因"></RadioButton>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/edt_checked_other"
|
android:id="@+id/edt_checked_other"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:padding="@dimen/default_widget_padding"
|
|
||||||
android:hint="请添加描述文字"
|
|
||||||
android:maxLength="400"
|
|
||||||
android:maxLines="3"
|
|
||||||
android:layout_marginLeft="@dimen/fab_margin"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/underline"></EditText>
|
android:layout_margin="10dp"
|
||||||
|
android:focusable="true"
|
||||||
|
android:focusableInTouchMode="true"
|
||||||
|
android:gravity="top"
|
||||||
|
android:hint="可手动输入"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:minLines="2"
|
||||||
|
android:maxLines="3"
|
||||||
|
android:background="@drawable/underline"
|
||||||
|
android:textColor="@color/test_color_selector"
|
||||||
|
android:textSize="15sp"></EditText>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
@@ -227,9 +232,9 @@
|
|||||||
android:focusableInTouchMode="true"
|
android:focusableInTouchMode="true"
|
||||||
android:gravity="top"
|
android:gravity="top"
|
||||||
android:hint="任务描述"
|
android:hint="任务描述"
|
||||||
android:paddingStart="10dp"
|
android:padding="10dp"
|
||||||
android:paddingTop="10dp"
|
android:minLines="2"
|
||||||
android:paddingBottom="30dp"
|
android:maxLines="3"
|
||||||
android:textColor="@color/test_color_selector"
|
android:textColor="@color/test_color_selector"
|
||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user