|
@@ -868,6 +868,83 @@ class Space3DActivity : RxAppCompatActivity(), DIAware, View.OnClickListener {
|
|
|
refresh3DView()
|
|
|
isClose = false
|
|
|
}
|
|
|
+ R.id.delete -> {
|
|
|
+ webview.loadUrl("javascript:OutDrawPointModel()")
|
|
|
+ webview.loadUrl("javascript:OutDrawLineModel()")
|
|
|
+ Thread.sleep(300)
|
|
|
+ webview.loadUrl("javascript:InDrawLineModel()")
|
|
|
+ }
|
|
|
+ R.id.projectName -> {
|
|
|
+ if (expandLv.visibility == View.VISIBLE) {
|
|
|
+ expandLv.visibility = View.GONE
|
|
|
+ } else {
|
|
|
+ expandLv.visibility = View.VISIBLE
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ R.id.back -> {
|
|
|
+ finish()
|
|
|
+ }
|
|
|
+ R.id.saveProblem -> {
|
|
|
+ mVm.insProblem(objTypeCode,
|
|
|
+ problemTypeCode,
|
|
|
+ meshObject,
|
|
|
+ floorEntity.buildingId,
|
|
|
+ floorEntity.id,
|
|
|
+ adapter.hashMap,
|
|
|
+ pointZModel,
|
|
|
+ lineModel,
|
|
|
+ isClose,
|
|
|
+ projectId,
|
|
|
+ success = {
|
|
|
+ refresh3DView()
|
|
|
+ mVm.getProblems(floorEntity.id, success = { s1, s2, lineArrayString ->
|
|
|
+ webview.loadUrl("javascript:SetStyleWithMeshID('${s2}')")
|
|
|
+ Thread.sleep(300)
|
|
|
+ webview.loadUrl("javascript:ShowAllLine('${lineArrayString}')")
|
|
|
+ Thread.sleep(300)
|
|
|
+ webview.loadUrl("javascript:AddTipView('${s1}')")
|
|
|
+ })
|
|
|
+ })
|
|
|
+ isClose = false
|
|
|
+ }
|
|
|
+
|
|
|
+ R.id.detailClose -> {
|
|
|
+ detailRl.visibility = View.GONE
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private fun refresh3DView() {
|
|
|
+ webview.loadUrl("javascript:UpdateCameraType(${1})")
|
|
|
+ signProblem.visibility = View.GONE
|
|
|
+ addProblem.visibility = View.VISIBLE
|
|
|
+ drawTools.visibility = View.GONE
|
|
|
+ quitTools.visibility = View.GONE
|
|
|
+ problemDone.visibility = View.GONE
|
|
|
+// cameraTypeTools.visibility = View.VISIBLE
|
|
|
+ mapTools.visibility = View.VISIBLE
|
|
|
+ webview.loadUrl("javascript:OutDrawPointModel()")
|
|
|
+ webview.loadUrl("javascript:OutDrawLineModel()")
|
|
|
+ webview.loadUrl("javascript:EndDrawPointModel()")
|
|
|
+ webview.loadUrl("javascript:EndDrawLineModel()")
|
|
|
+ }
|
|
|
+
|
|
|
+ private fun initAddProblem() {
|
|
|
+ signProblem.visibility = View.VISIBLE
|
|
|
+ saveProblem.visibility = View.VISIBLE
|
|
|
+ signProblemTitle.text = "记录问题"
|
|
|
+ reviseLl.visibility = View.GONE
|
|
|
+ deleteProblem.visibility = View.GONE
|
|
|
+ }
|
|
|
+
|
|
|
+ private fun initShowInfo() {
|
|
|
+ signProblem.visibility = View.VISIBLE
|
|
|
+ saveProblem.visibility = View.GONE
|
|
|
+ signProblemTitle.text = "问题详情"
|
|
|
+ reviseLl.visibility = View.VISIBLE
|
|
|
+ deleteProblem.visibility = View.VISIBLE
|
|
|
+ }
|
|
|
|
|
|
private fun initInfo(hashMap: HashMap<String, Any>?) {
|
|
|
mVm.getProblemConfig(problemTypeCode, success = {
|