解决冲突
This commit is contained in:
commit
2d0d92b32d
@ -10,8 +10,8 @@
|
|||||||
{
|
{
|
||||||
"type": "SINGLE",
|
"type": "SINGLE",
|
||||||
"filters": [],
|
"filters": [],
|
||||||
"versionCode": 9,
|
"versionCode": 10,
|
||||||
"versionName": "1.0.8",
|
"versionName": "1.0.9",
|
||||||
"outputFile": "app-release.apk"
|
"outputFile": "app-release.apk"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -100,7 +100,7 @@ public class JournalReportActivity extends BaseActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void initData() {
|
public void initData() {
|
||||||
ButterKnife.bind(this);
|
ButterKnife.bind(this);
|
||||||
mTvBaseTitle.setText("日志填报`");
|
mTvBaseTitle.setText("日志填报");
|
||||||
refreshView(STATE_LOAD_SUCCESS);
|
refreshView(STATE_LOAD_SUCCESS);
|
||||||
mIvAppSearchIcon.setVisibility(View.GONE);
|
mIvAppSearchIcon.setVisibility(View.GONE);
|
||||||
initViews();
|
initViews();
|
||||||
@ -137,17 +137,23 @@ public class JournalReportActivity extends BaseActivity {
|
|||||||
mLevel.add("月报");
|
mLevel.add("月报");
|
||||||
mLevel.add("年报");
|
mLevel.add("年报");
|
||||||
mTvType.setText("日报");
|
mTvType.setText("日报");
|
||||||
|
mTvDate.setEnabled(false);
|
||||||
String date = getIntent().getStringExtra("date");
|
String date = getIntent().getStringExtra("date");
|
||||||
mTvDate.setText(date);
|
mTvDate.setText(date);
|
||||||
mRgWay.setOnCheckedChangeListener((group, checkedId) -> {
|
mRgWay.setOnCheckedChangeListener((group, checkedId) -> {
|
||||||
if (checkedId == R.id.rb_way_1) {
|
if (checkedId == R.id.rb_way_1) {
|
||||||
//当天填报
|
//当天填报
|
||||||
mSelType = "1";
|
mSelType = "1";
|
||||||
|
mTvDate.setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
//补填
|
//补填
|
||||||
mSelType = "2";
|
mSelType = "2";
|
||||||
|
mTvDate.setEnabled(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
String title = UserLgUtils.getName() + "-" + date + "-日报";
|
||||||
|
|
||||||
|
mEtTitle.setText(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -65,6 +65,11 @@ public class JournalListAdapter extends BaseRecyclerAdapter<JournalListBean.Rows
|
|||||||
.apply(options)
|
.apply(options)
|
||||||
.into(holder.mIvPic);
|
.into(holder.mIvPic);
|
||||||
}
|
}
|
||||||
|
if ("2".equals(bean.getGridLogType())) {
|
||||||
|
holder.mIvTag.setVisibility(View.VISIBLE);
|
||||||
|
} else {
|
||||||
|
holder.mIvTag.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private OnEditOrDel mPatrolListener;
|
private OnEditOrDel mPatrolListener;
|
||||||
|
@ -15,6 +15,7 @@ public class JournalHolder extends RecyclerView.ViewHolder {
|
|||||||
public TextView mTvTime;
|
public TextView mTvTime;
|
||||||
public TextView mTvTitle;
|
public TextView mTvTitle;
|
||||||
public TextView mTvLevel;
|
public TextView mTvLevel;
|
||||||
|
public ImageView mIvTag;
|
||||||
|
|
||||||
public JournalHolder(@NonNull View itemView) {
|
public JournalHolder(@NonNull View itemView) {
|
||||||
super(itemView);
|
super(itemView);
|
||||||
@ -23,5 +24,6 @@ public class JournalHolder extends RecyclerView.ViewHolder {
|
|||||||
mTvTime = itemView.findViewById(R.id.tv_time);
|
mTvTime = itemView.findViewById(R.id.tv_time);
|
||||||
mTvTitle = itemView.findViewById(R.id.tv_title);
|
mTvTitle = itemView.findViewById(R.id.tv_title);
|
||||||
mTvLevel = itemView.findViewById(R.id.tv_level);
|
mTvLevel = itemView.findViewById(R.id.tv_level);
|
||||||
|
mIvTag = itemView.findViewById(R.id.iv_tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BIN
commonmodule/src/main/res/drawable-xhdpi/ic_journal_mend.png
Normal file
BIN
commonmodule/src/main/res/drawable-xhdpi/ic_journal_mend.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
@ -1,17 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="5dp"
|
android:layout_margin="5dp"
|
||||||
android:background="@color/white"
|
android:background="@color/white"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="5dp">
|
tools:layout_height="80dp"
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="5dp"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
@ -89,5 +91,11 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
</LinearLayout>
|
android:id="@+id/iv_tag"
|
||||||
|
android:layout_width="40dp"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
|
android:src="@drawable/ic_journal_mend" />
|
||||||
|
</RelativeLayout>
|
@ -17,6 +17,10 @@ import android.widget.ImageView;
|
|||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.RequiresApi;
|
||||||
|
import androidx.core.content.ContextCompat;
|
||||||
|
import androidx.viewpager2.widget.ViewPager2;
|
||||||
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.alibaba.android.arouter.launcher.ARouter;
|
import com.alibaba.android.arouter.launcher.ARouter;
|
||||||
import com.baidu.location.BDLocation;
|
import com.baidu.location.BDLocation;
|
||||||
@ -87,9 +91,6 @@ import org.json.JSONObject;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import androidx.annotation.RequiresApi;
|
|
||||||
import androidx.core.content.ContextCompat;
|
|
||||||
import androidx.viewpager2.widget.ViewPager2;
|
|
||||||
import butterknife.BindView;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import butterknife.Unbinder;
|
import butterknife.Unbinder;
|
||||||
@ -299,6 +300,7 @@ public class MainTabActivity extends BaseActivity implements LoginView, LocalBro
|
|||||||
GlobalProvider.save(mActivity, "streetCode", streetCode);
|
GlobalProvider.save(mActivity, "streetCode", streetCode);
|
||||||
GlobalProvider.save(mActivity, "villageCode", villageCode);
|
GlobalProvider.save(mActivity, "villageCode", villageCode);
|
||||||
GlobalProvider.save(mActivity, "fullAreaCode", userExpandInfoBean.getAreaCode());
|
GlobalProvider.save(mActivity, "fullAreaCode", userExpandInfoBean.getAreaCode());
|
||||||
|
|
||||||
}
|
}
|
||||||
if (!TextUtils.isEmpty(userExpandInfoBean.getSmcNumber())) {
|
if (!TextUtils.isEmpty(userExpandInfoBean.getSmcNumber())) {
|
||||||
LogUtils.e(userExpandInfoBean);
|
LogUtils.e(userExpandInfoBean);
|
||||||
|
Loading…
Reference in New Issue
Block a user