|
@@ -873,7 +873,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
873
|
873
|
if (sessionStorage.searchincident && JSON.parse(sessionStorage.getItem("searchincident")).incident && JSON.parse(sessionStorage.getItem("searchincident")).incident.source) {
|
874
|
874
|
angular.forEach($scope.source, function (item) {
|
875
|
875
|
if (item.id == JSON.parse(sessionStorage.getItem("searchincident")).incident.source.id) {
|
876
|
|
- $scope.othcode = {
|
|
876
|
+ $scope.searchkeys = {
|
877
|
877
|
"source": item
|
878
|
878
|
};
|
879
|
879
|
}
|
|
@@ -2619,7 +2619,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
2619
|
2619
|
$scope.isDisabledState = false;
|
2620
|
2620
|
}
|
2621
|
2621
|
$scope.searchstate = searchType;
|
2622
|
|
- $scope.chiceIncident($scope.searchkeys,$scope.othcode.state,$scope.othcode.source);
|
|
2622
|
+ $scope.chiceIncident($scope.searchkeys,$scope.othcode.state,$scope.searchkeys.source);
|
2623
|
2623
|
// console.log(defaultFilterData,'fanbu')
|
2624
|
2624
|
// if(defaultFilterData.incident){
|
2625
|
2625
|
// var lsObject = defaultFilterData.incident;
|
|
@@ -2694,6 +2694,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
2694
|
2694
|
console.log(defaultFilterData,2222)
|
2695
|
2695
|
$scope.onChange('all');
|
2696
|
2696
|
}
|
|
2697
|
+
|
2697
|
2698
|
//获取列表数据
|
2698
|
2699
|
$scope.refreshData = async function (style, filterData) {
|
2699
|
2700
|
console.log(filterData,9090)
|
|
@@ -2748,6 +2749,38 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
2748
|
2749
|
sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
2749
|
2750
|
}
|
2750
|
2751
|
}
|
|
2752
|
+ if($state.params.acceptorId){
|
|
2753
|
+ delete $scope.searchkeys.acceptUser;
|
|
2754
|
+ let response = await api_bpm_data.fetchData('user', $state.params.acceptorId);
|
|
2755
|
+ if (response.status == 200) {
|
|
2756
|
+ $scope.acceptUser = [response.data];
|
|
2757
|
+ $scope.searchkeys.acceptUser = {id:response.data.id, name:response.data.name};
|
|
2758
|
+ filterData.incident.acceptUser = {id:response.data.id, name:response.data.name};
|
|
2759
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
2760
|
+ }else{
|
|
2761
|
+ $scope.acceptUser = [];
|
|
2762
|
+ delete $scope.searchkeys.acceptUser;
|
|
2763
|
+ delete filterData.incident.acceptUser;
|
|
2764
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
2765
|
+ }
|
|
2766
|
+ }
|
|
2767
|
+ if($state.params.isDirectProcess){
|
|
2768
|
+ if ($state.params.isDirectProcess == 1) {
|
|
2769
|
+ $scope.searchkeys.directProcess = $scope.directProcess.find(v=>v.id == 1);
|
|
2770
|
+ filterData.incident.directProcess = 1;
|
|
2771
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
2772
|
+ }else{
|
|
2773
|
+ $scope.searchkeys.directProcess = $scope.directProcess.find(v=>v.id == 0);
|
|
2774
|
+ filterData.incident.directProcess = 0;
|
|
2775
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
2776
|
+ }
|
|
2777
|
+ }
|
|
2778
|
+ if($state.params.source){
|
|
2779
|
+ let item = $scope.source.find(v=>v.value == $state.params.source);
|
|
2780
|
+ $scope.searchkeys.source = item;
|
|
2781
|
+ filterData.incident.source = item;
|
|
2782
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
2783
|
+ }
|
2751
|
2784
|
if($state.params.state){
|
2752
|
2785
|
$scope.searchkeys.acceptDate = null;
|
2753
|
2786
|
$scope.searchkeys.acceptDateEnd = null;
|
|
@@ -2803,6 +2836,38 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
2803
|
2836
|
sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
2804
|
2837
|
}
|
2805
|
2838
|
}
|
|
2839
|
+ if($state.params.acceptorId){
|
|
2840
|
+ delete $scope.searchkeys.acceptUser;
|
|
2841
|
+ let response = await api_bpm_data.fetchData('user', $state.params.acceptorId);
|
|
2842
|
+ if (response.status == 200) {
|
|
2843
|
+ $scope.acceptUser = [response.data];
|
|
2844
|
+ $scope.searchkeys.acceptUser = {id:response.data.id, name:response.data.name};
|
|
2845
|
+ filterData.incident.acceptUser = {id:response.data.id, name:response.data.name};
|
|
2846
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
2847
|
+ }else{
|
|
2848
|
+ $scope.acceptUser = [];
|
|
2849
|
+ delete $scope.searchkeys.acceptUser;
|
|
2850
|
+ delete filterData.incident.acceptUser;
|
|
2851
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
2852
|
+ }
|
|
2853
|
+ }
|
|
2854
|
+ if($state.params.isDirectProcess){
|
|
2855
|
+ if ($state.params.isDirectProcess == 1) {
|
|
2856
|
+ $scope.searchkeys.directProcess = $scope.directProcess.find(v=>v.id == 1);
|
|
2857
|
+ filterData.incident.directProcess = 1;
|
|
2858
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
2859
|
+ }else{
|
|
2860
|
+ $scope.searchkeys.directProcess = $scope.directProcess.find(v=>v.id == 0);
|
|
2861
|
+ filterData.incident.directProcess = 0;
|
|
2862
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
2863
|
+ }
|
|
2864
|
+ }
|
|
2865
|
+ if($state.params.source){
|
|
2866
|
+ let item = $scope.source.find(v=>v.value == $state.params.source);
|
|
2867
|
+ $scope.searchkeys.source = item;
|
|
2868
|
+ filterData.incident.source = item;
|
|
2869
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
2870
|
+ }
|
2806
|
2871
|
if($state.params.state){
|
2807
|
2872
|
$scope.searchkeys.acceptDate = null;
|
2808
|
2873
|
$scope.searchkeys.acceptDateEnd = null;
|
|
@@ -2835,7 +2900,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
2835
|
2900
|
window.sessionStorage.removeItem('isGoyuqi');
|
2836
|
2901
|
}
|
2837
|
2902
|
if(window.sessionStorage.getItem('isZhiJie') == 'yes'){
|
2838
|
|
- $scope.searchkeys.directProcess = {id:'21',name:'是'};
|
|
2903
|
+ $scope.searchkeys.directProcess = {id:'1',name:'是'};
|
2839
|
2904
|
if(filterData.incident&&filterData.incident.directProcess){
|
2840
|
2905
|
filterData.incident.directProcess = '1';
|
2841
|
2906
|
}else{
|
|
@@ -2926,6 +2991,38 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
2926
|
2991
|
sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
2927
|
2992
|
}
|
2928
|
2993
|
}
|
|
2994
|
+ if($state.params.acceptorId){
|
|
2995
|
+ delete $scope.searchkeys.acceptUser;
|
|
2996
|
+ let response = await api_bpm_data.fetchData('user', $state.params.acceptorId);
|
|
2997
|
+ if (response.status == 200) {
|
|
2998
|
+ $scope.acceptUser = [response.data];
|
|
2999
|
+ $scope.searchkeys.acceptUser = {id:response.data.id, name:response.data.name};
|
|
3000
|
+ filterData.incident.acceptUser = {id:response.data.id, name:response.data.name};
|
|
3001
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
3002
|
+ }else{
|
|
3003
|
+ $scope.acceptUser = [];
|
|
3004
|
+ delete $scope.searchkeys.acceptUser;
|
|
3005
|
+ delete filterData.incident.acceptUser;
|
|
3006
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
3007
|
+ }
|
|
3008
|
+ }
|
|
3009
|
+ if($state.params.isDirectProcess){
|
|
3010
|
+ if ($state.params.isDirectProcess == 1) {
|
|
3011
|
+ $scope.searchkeys.directProcess = $scope.directProcess.find(v=>v.id == 1);
|
|
3012
|
+ filterData.incident.directProcess = 1;
|
|
3013
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
3014
|
+ }else{
|
|
3015
|
+ $scope.searchkeys.directProcess = $scope.directProcess.find(v=>v.id == 0);
|
|
3016
|
+ filterData.incident.directProcess = 0;
|
|
3017
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
3018
|
+ }
|
|
3019
|
+ }
|
|
3020
|
+ if($state.params.source){
|
|
3021
|
+ let item = $scope.source.find(v=>v.value == $state.params.source);
|
|
3022
|
+ $scope.searchkeys.source = item;
|
|
3023
|
+ filterData.incident.source = item;
|
|
3024
|
+ sessionStorage.setItem("searchincident",JSON.stringify(filterData));
|
|
3025
|
+ }
|
2929
|
3026
|
if($state.params.state){
|
2930
|
3027
|
$scope.searchkeys.acceptDate = null;
|
2931
|
3028
|
$scope.searchkeys.acceptDateEnd = null;
|