|
@@ -114,7 +114,7 @@ class MainViewModel : CommonBaseViewModel() {
|
114
|
114
|
map["loginpwd"] = loginpwd
|
115
|
115
|
val postLoginOut = loginService.postLoginOut(map)
|
116
|
116
|
if (postLoginOut.code == 0) {
|
117
|
|
- loginOut.value=true
|
|
117
|
+ loginOut.value = true
|
118
|
118
|
} else {
|
119
|
119
|
if (postLoginOut.msg != null) {
|
120
|
120
|
netMessage.value = postLoginOut.msg
|
|
@@ -122,4 +122,20 @@ class MainViewModel : CommonBaseViewModel() {
|
122
|
122
|
}
|
123
|
123
|
}
|
124
|
124
|
}
|
|
125
|
+
|
|
126
|
+ /**
|
|
127
|
+ * 获得设备设置管理
|
|
128
|
+ */
|
|
129
|
+ fun postDevicesetDetail(schoolid: String) {
|
|
130
|
+ launchUI {
|
|
131
|
+ val map = HashMap<String, Any>()
|
|
132
|
+ map["schoolid"] = schoolid
|
|
133
|
+ val result = strategyService.postDevicesetDetail(map)
|
|
134
|
+ if (result.code == 0) {
|
|
135
|
+
|
|
136
|
+ } else {
|
|
137
|
+ netMessage.value = result.msg
|
|
138
|
+ }
|
|
139
|
+ }
|
|
140
|
+ }
|
125
|
141
|
}
|