From df3af70b33eb6372b56075bc9e45c23ccf3f82c6 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 28 十月 2025 17:40:38 +0800
Subject: [PATCH] 2025.10.28 1. 新增巡查场景历史详情界面出版(完成); 2. 巡查任务日历界面,任务条目中新增风险提示、巡查要点、应急巡查3种提示信息的提示图标逻辑(待完成);
---
app/src/main/java/cn/flightfeather/thirdappmodule/module/inspection/MenuSceneHistoryViewModel.kt | 76 +++++++++++++++++++++++++++++++++----
1 files changed, 67 insertions(+), 9 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
index 97489ee..2b3ead1 100644
--- a/app/src/main/java/cn/flightfeather/thirdappmodule/module/inspection/MenuSceneHistoryViewModel.kt
+++ b/app/src/main/java/cn/flightfeather/thirdappmodule/module/inspection/MenuSceneHistoryViewModel.kt
@@ -2,8 +2,7 @@
import android.arch.lifecycle.MutableLiveData
import cn.flightfeather.thirdappmodule.bean.entity.Evaluation
-import cn.flightfeather.thirdappmodule.bean.vo.ChangeRateVo
-import cn.flightfeather.thirdappmodule.bean.vo.TypicalSceneVo
+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
@@ -16,12 +15,11 @@
class MenuSceneHistoryViewModel : BaseViewModel() {
private val evaluationRepository = EvaluationRepository.instance
- // 1. 鍘嗗彶璇勪及鎯呭喌
- val evaluationList = MutableLiveData<List<Evaluation>>()
-
/**
- * 鑾峰彇鍓嶄笁涓湀鐨勮瘎浼版�诲垎
+ * 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>?) {
@@ -34,17 +32,77 @@
})
}
- // 2. 鍏稿瀷宸ュ湴鎯呭喌
+ /**
+ * 2.鍏稿瀷鍦烘櫙鎯呭喌
+ * 灞曠ず鍦烘櫙鍓�3涓湀鏄惁灞炰簬鍏稿瀷鍦烘櫙娓呭崟涓��
+ */
val typicalScene = MutableLiveData<List<TypicalSceneVo>>()
-
fun getTypicalScene(sceneId: String) {
typicalScene.value = listOf()
}
- // 3. 鏁存敼鏁堢巼
+ /**
+ * 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