|
|
@@ -1,6 +1,7 @@
|
|
|
package com.grkj.iscs.view.fragment
|
|
|
|
|
|
import android.view.View
|
|
|
+import android.widget.ImageView
|
|
|
import android.widget.LinearLayout
|
|
|
import com.grkj.iscs.R
|
|
|
import com.grkj.iscs.databinding.FragmentJobProgressBinding
|
|
|
@@ -35,9 +36,11 @@ class JobProgressFragment(val goBack: () -> Unit) :
|
|
|
mBinding?.rvPoint?.adapter =
|
|
|
object : CommonAdapter<TicketDetailMonitorRespVO.IsJobTicketPointsVO>(requireActivity(), R.layout.item_rv_point, mPointList) {
|
|
|
override fun convert(holder: ViewHolder, point: TicketDetailMonitorRespVO.IsJobTicketPointsVO, position: Int) {
|
|
|
- // TODO 缺开关状态
|
|
|
holder.setText(R.id.tv_name, point.pointName)
|
|
|
holder.setText(R.id.tv_function, point.remark)
|
|
|
+ holder.setVisible(R.id.iv_status, point.switchStatus != null)
|
|
|
+ holder.getView<ImageView>(R.id.iv_status)
|
|
|
+ .setBackgroundResource(if (point.switchStatus == "1") R.mipmap.switch_off else R.mipmap.switch_on)
|
|
|
when(point.pointStatus) {
|
|
|
"1" -> {
|
|
|
holder.setVisible(R.id.ll_lock_status, true)
|