riku
2025-10-31 1897c4ad5fa73b3f0a36e1aa0e1e9000302a6ace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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() {
 
    }
 
}