1. 修改巡查界面刚进入快速点击巡查功能按钮导致崩溃问题;
2. 修复技防措施的地址记录信息有加号的问题
| | |
| | | enum class MediaFileType(val value: Int, val des: String) { |
| | | Problem(1, "问题"), |
| | | TechnicalPrevention(2,"技防措施"), |
| | | |
| | | MonitorDevice(3, "监测设备"), |
| | | ManageDevice(4, "治理设备"), |
| | | |
| | | RoutineRecord(5, "常规记录"), |
| | | Signature(6, "签字"), |
| | | |
| | | Nameplate(7, "铭牌"), |
| | | Others(99,"其他") |
| | | } |
| | |
| | | |
| | | super.onCreate(savedInstanceState) |
| | | |
| | | initIconViewPager() |
| | | // initIconViewPager() |
| | | initLocation() |
| | | |
| | | ll_show_hide_detail.setOnClickListener(this) |
| | |
| | | result = result.and(it) |
| | | } |
| | | if (result) { |
| | | initIconViewPager() |
| | | showMenu() |
| | | refreshMenuStatus(taskStatus) |
| | | |
| | |
| | | timerTaskRunning = true |
| | | } |
| | | |
| | | val lng = round(longitudeCurrent * 1000) / 1000 |
| | | val lat = round(latitudeCurrent * 1000) / 1000 |
| | | val lng = round(longitudeCurrent * 1000000) / 1000000 |
| | | val lat = round(latitudeCurrent * 1000000) / 1000000 |
| | | |
| | | viewModel.inspection.value?.apply { |
| | | if (extension1 == null) { |
| | |
| | | val l1 = LatLng(lat, lng) |
| | | val l2 = LatLng(last[1], last[0]) |
| | | val distance = AMapUtils.calculateLineDistance(l1, l2) |
| | | if (distance >= 5) { |
| | | if (distance >= 1) { |
| | | extension1 = "${extension1};${lng},${lat}" |
| | | //道路监测点和道路类型的场景,直接展示轨迹;其余场景只有管理员和政府部门可以查看 |
| | | if ( |
| | |
| | | intent.putExtra("gitlistVo", viewModel.gitList.value?.get(position)) |
| | | intent.putExtra("subTask", subTask) |
| | | intent.putExtra("inspectionGuid", inspection?.guid) |
| | | intent.putExtra("scenseAddress", "${scene?.cityname ?: ""} + ${scene?.districtname?:""} + ${scene?.townname?:""} + ${scene?.location?:""}") |
| | | intent.putExtra("scenseAddress", "${scene?.cityname ?: ""}${scene?.districtname?:""}${scene?.townname?:""}${scene?.location?:""}") |
| | | startActivity(intent) |
| | | } |
| | | |