|
@@ -7671,8 +7671,12 @@ appFormly.config(
|
7671
|
7671
|
}
|
7672
|
7672
|
},
|
7673
|
7673
|
controller: ['$scope', '$rootScope', '$modal', 'SweetAlert', 'api_bpm_data', 'api_solution', '$aside', 'api_zsk', 'api_bpm_domain', 'api_wechatfile', 'up_down_file', function ($scope, $rootScope, $modal, SweetAlert, api_bpm_data, api_solution, $aside, api_zsk, api_bpm_domain, api_wechatfile, up_down_file) {
|
|
7674
|
+ $scope.keypressModel = function(e,key){
|
|
7675
|
+ if(e.keyCode === 13){
|
|
7676
|
+ $scope.openModel(key);
|
|
7677
|
+ }
|
|
7678
|
+ }
|
7674
|
7679
|
// 引用知识库点击
|
7675
|
|
-
|
7676
|
7680
|
$scope.searchKeyWord = '';
|
7677
|
7681
|
$scope.openModel = function (key) {
|
7678
|
7682
|
// alert(1)//重点
|
|
@@ -7727,11 +7731,13 @@ appFormly.config(
|
7727
|
7731
|
item.content = item.content.replace(/<p>/g, "").replace(/<\/p>/g, "").replace(/ /g, '')
|
7728
|
7732
|
}
|
7729
|
7733
|
$scope.model.incident.handleDescription = item.content;
|
7730
|
|
- $scope.model.incident.category = item.category;
|
7731
|
|
- $scope.model.incident.priority.id = item.category.priority.id;
|
7732
|
7734
|
$scope.model.incident.title = $scope.model.incident.description = item.title;
|
7733
|
|
- item.category.label = item.category.category;
|
7734
|
|
- var categoryId = item.category.id;
|
|
7735
|
+ $scope.model.incident.category = item.category;
|
|
7736
|
+ if(item.category){
|
|
7737
|
+ $scope.model.incident.priority.id = item.category.priority.id;
|
|
7738
|
+ item.category.label = item.category.category;
|
|
7739
|
+ }
|
|
7740
|
+ var categoryId = item.category?item.category.id:'';
|
7735
|
7741
|
// 引用知识库事件分类后,修改事件分类选中状态,事件分类列表重载
|
7736
|
7742
|
function getres(nodes) {
|
7737
|
7743
|
if (!nodes || nodes.length == 0) {
|
|
@@ -7760,7 +7766,7 @@ appFormly.config(
|
7760
|
7766
|
}
|
7761
|
7767
|
})
|
7762
|
7768
|
// field.$parent.$parent.$parent.model.candidateGroups=item.category.group
|
7763
|
|
- $scope.model.candidateGroups = item.category.group
|
|
7769
|
+ $scope.model.candidateGroups = item.category?item.category.group:{};
|
7764
|
7770
|
// 携带关联优先级,事件工单信息的时间
|
7765
|
7771
|
if ($scope.model && $scope.model.incident && item.category && item.category.priority && item.category.priority.id) {
|
7766
|
7772
|
api_bpm_domain.expectedTime('L' + (item.category.priority.id - 1559)).then(function (res) {
|
|
@@ -11017,8 +11023,11 @@ appFormly.config(
|
11017
|
11023
|
options.value(options.model.requester);
|
11018
|
11024
|
}
|
11019
|
11025
|
},
|
11020
|
|
- addRequeter: function (size, options, modal) {
|
11021
|
|
- event.preventDefault();
|
|
11026
|
+ addRequeter: function (size, options, modal, e) {
|
|
11027
|
+ if(e.clientX === 0){
|
|
11028
|
+ return;
|
|
11029
|
+ }
|
|
11030
|
+ e.preventDefault();
|
11022
|
11031
|
var modalInstance = modal.open({
|
11023
|
11032
|
templateUrl: 'assets/views/customform/tpl/modal-add-callrequester.html',
|
11024
|
11033
|
controller: function ($scope, sco, $rootScope, $modalInstance, items, SweetAlert, title, Restangular, APIService, UserService, api_user_data, api_statistic, api_wechatfile) {
|