|
@@ -1235,8 +1235,16 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
1235
|
1235
|
})
|
1236
|
1236
|
}
|
1237
|
1237
|
|
|
1238
|
+ // 获取结果类型
|
|
1239
|
+ $scope.getHandleResult = function(){
|
|
1240
|
+ api_wechatfile.getDictionary({"key":"incident_handleresult","type":"list"}).then(function (data) {
|
|
1241
|
+ $scope.handleResultList = data || [];
|
|
1242
|
+ })
|
|
1243
|
+ }
|
|
1244
|
+
|
1238
|
1245
|
// 初始化
|
1239
|
1246
|
$scope.getDegree();
|
|
1247
|
+ $scope.getHandleResult();
|
1240
|
1248
|
$scope.ok = function () {
|
1241
|
1249
|
if (!$scope.postData.degree){
|
1242
|
1250
|
Alert.swal({
|
|
@@ -1246,8 +1254,17 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
1246
|
1254
|
});
|
1247
|
1255
|
return;
|
1248
|
1256
|
}
|
|
1257
|
+ if (!$scope.postData.handleResult){
|
|
1258
|
+ Alert.swal({
|
|
1259
|
+ title: "操作失败",
|
|
1260
|
+ text: "请选择结果类型!",
|
|
1261
|
+ type: "error"
|
|
1262
|
+ });
|
|
1263
|
+ return;
|
|
1264
|
+ }
|
1249
|
1265
|
let postData = {incident: {...model, ...{
|
1250
|
1266
|
degree: $scope.postData.degree,
|
|
1267
|
+ handleResult: $scope.postData.handleResult,
|
1251
|
1268
|
visitRemarks: $scope.postData.visitRemarks,
|
1252
|
1269
|
}}};
|
1253
|
1270
|
|