|
@@ -1084,12 +1084,20 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
1084
|
1084
|
$scope.getIncidentHandleCategory = function(){
|
1085
|
1085
|
api_wechatfile.getDictionary({"key":"incident_handleCategory","type":"list"}).then(function (data) {
|
1086
|
1086
|
$scope.incidentHandleCategoryList = data || [];
|
|
1087
|
+ if(!$scope.postData.handleCategory){
|
|
1088
|
+ let handleCategory = $scope.incidentHandleCategoryList.find(v => v.value == 'SUPPORT');
|
|
1089
|
+ $scope.postData.handleCategory = handleCategory || undefined;
|
|
1090
|
+ }
|
1087
|
1091
|
})
|
1088
|
1092
|
}
|
1089
|
1093
|
// 获取关闭代码
|
1090
|
1094
|
$scope.getIncidentClosecode = function(){
|
1091
|
1095
|
api_wechatfile.getDictionary({"key":"incident_closecode","type":"list"}).then(function (data) {
|
1092
|
1096
|
$scope.incidentClosecodeList = data || [];
|
|
1097
|
+ if(!$scope.postData.closecode){
|
|
1098
|
+ let closecode = $scope.incidentClosecodeList.find(v => v.value == '060');
|
|
1099
|
+ $scope.postData.closecode = closecode || undefined;
|
|
1100
|
+ }
|
1093
|
1101
|
})
|
1094
|
1102
|
}
|
1095
|
1103
|
|