From 1897c4ad5fa73b3f0a36e1aa0e1e9000302a6ace Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 31 十月 2025 17:35:09 +0800
Subject: [PATCH] 2025.10.31 1. 新增巡查场景历史详情相关数据逻辑(待完成);
---
app/src/main/java/cn/flightfeather/thirdappmodule/module/inspection/MenuSceneHistoryViewModel.kt | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 108 insertions(+), 0 deletions(-)
diff --git a/app/src/main/java/cn/flightfeather/thirdappmodule/module/inspection/MenuSceneHistoryViewModel.kt b/app/src/main/java/cn/flightfeather/thirdappmodule/module/inspection/MenuSceneHistoryViewModel.kt
new file mode 100644
index 0000000..2b3ead1
--- /dev/null
+++ b/app/src/main/java/cn/flightfeather/thirdappmodule/module/inspection/MenuSceneHistoryViewModel.kt
@@ -0,0 +1,108 @@
+package cn.flightfeather.thirdappmodule.module.inspection
+
+import android.arch.lifecycle.MutableLiveData
+import cn.flightfeather.thirdappmodule.bean.entity.Evaluation
+import cn.flightfeather.thirdappmodule.bean.vo.*
+import cn.flightfeather.thirdappmodule.common.net.ResultCallBack
+import cn.flightfeather.thirdappmodule.module.base.BaseViewModel
+import cn.flightfeather.thirdappmodule.repository.EvaluationRepository
+import org.jetbrains.anko.toast
+
+/**
+ * @author riku
+ * Date: 2025/10/27
+ */
+class MenuSceneHistoryViewModel : BaseViewModel() {
+ private val evaluationRepository = EvaluationRepository.instance
+
+ /**
+ * 1.鍘嗗彶璇勪及鎯呭喌
+ * 灞曠ず鍦烘櫙鍓�3涓湀鐨勭幇鍦哄贰鏌ュ緱鍒嗭紙鍘婚櫎鐩戞祴鏁版嵁寰楀垎锛夈��
+ */
+ val evaluationList = MutableLiveData<List<Evaluation>>()
+ fun getEvaluationList(sceneId:String) {
+ evaluationRepository.getEvaluationByScene(sceneId, resultCallBack = object : ResultCallBack<List<Evaluation>> {
+ override fun onSuccess(result: List<Evaluation>?) {
+ evaluationList.value = result
+ }
+
+ override fun onFailure() {
+ application.toast("鑾峰彇璇勫垎澶辫触")
+ }
+ })
+ }
+
+ /**
+ * 2.鍏稿瀷鍦烘櫙鎯呭喌
+ * 灞曠ず鍦烘櫙鍓�3涓湀鏄惁灞炰簬鍏稿瀷鍦烘櫙娓呭崟涓��
+ */
+ val typicalScene = MutableLiveData<List<TypicalSceneVo>>()
+ fun getTypicalScene(sceneId: String) {
+ typicalScene.value = listOf()
+ }
+
+ /**
+ * 3.閲嶇偣鍖哄煙锛堝湪鍥芥帶鐐广�佸競鎺х偣鍛ㄨ竟锛�
+ * 灞曠ず鍦烘櫙浣嶇疆鏄惁鍦ㄥ浗鎺х偣銆佸競鎺х偣鍛ㄨ竟2鍏噷鑼冨洿鍐咃紝鏄惁灞炰簬閲嶇偣鍖哄煙銆�
+ */
+ val keyArea = MutableLiveData<Boolean>()
+ fun getKeyArea(sceneId: String) {
+
+ }
+
+ /**
+ * 4.鑱斿悎鎵ф硶
+ * 杩�3涓湀鏄惁琚垪鍏ユ竻鍗曪紝璀︾ず銆�
+ */
+ val jointLawEnforcement = MutableLiveData<List<JointLawEnforcementVo>>()
+ fun getJointLawEnforcement(sceneId: String) {
+
+ }
+
+ /**
+ * 5.鏁存敼鏁堢巼
+ * 灞曠ず鍦烘櫙鍓�3涓湀鐨勬暣鏀圭巼鍜岀患鍚堟暣鏀圭巼锛堜娇鐢ㄩ鑹插尯鍒嗭級浠ュ強鏁存敼鏁堢巼锛堟樉绀烘暣鏀规椂闂村拰闂鏃堕棿鐩稿樊澶氬皯澶╋級銆�
+ */
+ val changeRate = MutableLiveData<List<ChangeRateVo>>()
+ fun getChangeRate() {
+
+ }
+
+ /**
+ * 6.闂澶嶅彂
+ * 杩�3涓湀闂澶嶅彂鎯呭喌鏄惁鏄庢樉
+ */
+ val problemRecurrence = MutableLiveData<List<ProblemRecurrenceVo>>()
+ fun getProblemRecurrence() {
+
+ }
+
+ /**
+ * 7.鏂藉伐闃舵锛堝彧閽堝宸ュ湴绫诲瀷鐨勫満鏅級
+ * 鑷冲皯2涓湀鏂藉伐闃舵娌℃湁纭鏇存柊杩囷紝鎻愰啋鍘荤‘璁ゆ洿鏂�
+ */
+ val constructionPhase = MutableLiveData<List<ConstructionPhaseVo>>()
+ fun getConstructionPhaseV() {
+
+ }
+
+ /**
+ * 8.鍦ㄧ嚎鐩戞祴鏁版嵁
+ * 杩�3涓湀鐨勬帓鍚嶆槸鍚﹀湪鍏ㄥ尯鍓嶅崄锛屾垨鑰呭钩鍧囨祿搴﹂珮浜庡尯鍧囧�硷紝璀︾ず鏄剧ず
+ */
+ val monitorData = MutableLiveData<List<MonitorDataVo>>()
+ fun getMonitorData() {
+
+ }
+
+
+ /**
+ * 9.搴旀�ュ贰鏌�
+ * 杩�3涓湀鏄惁娑夊強閬撹矾宸℃煡锛屾湁鍒欒绀�
+ */
+ val emergencyInspection = MutableLiveData<List<EmergencyInspectionVo>>()
+ fun getEmergencyInspection() {
+
+ }
+
+}
\ No newline at end of file
--
Gitblit v1.9.3