浏览代码

处理中默认选项

seimin 11 月之前
父节点
当前提交
bcf63a7d6d
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      assets/js/controllers/incident/incidentCtrl.js

+ 8 - 0
assets/js/controllers/incident/incidentCtrl.js

@@ -1084,12 +1084,20 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1084
                 $scope.getIncidentHandleCategory = function(){
1084
                 $scope.getIncidentHandleCategory = function(){
1085
                     api_wechatfile.getDictionary({"key":"incident_handleCategory","type":"list"}).then(function (data) {
1085
                     api_wechatfile.getDictionary({"key":"incident_handleCategory","type":"list"}).then(function (data) {
1086
                         $scope.incidentHandleCategoryList = data || [];
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
                 $scope.getIncidentClosecode = function(){
1094
                 $scope.getIncidentClosecode = function(){
1091
                     api_wechatfile.getDictionary({"key":"incident_closecode","type":"list"}).then(function (data) {
1095
                     api_wechatfile.getDictionary({"key":"incident_closecode","type":"list"}).then(function (data) {
1092
                         $scope.incidentClosecodeList = data || [];
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