|
@@ -953,6 +953,18 @@ export default {
|
953
|
953
|
this.tabTypes[2].num = res.data.totalNum;
|
954
|
954
|
}
|
955
|
955
|
});
|
|
956
|
+ }else if(this.searchType === 'done'){
|
|
957
|
+ this.$http
|
|
958
|
+ .post("service/flow/owns", postData)
|
|
959
|
+ .then((res) => {
|
|
960
|
+ if(statusId === undefined){
|
|
961
|
+ this.tabTypes[0].num = res.data.data.resultCount;
|
|
962
|
+ }if(statusId == 1543){
|
|
963
|
+ this.tabTypes[1].num = res.data.data.resultCount;
|
|
964
|
+ }else if(statusId == 1544){
|
|
965
|
+ this.tabTypes[2].num = res.data.data.resultCount;
|
|
966
|
+ }
|
|
967
|
+ });
|
956
|
968
|
}else{
|
957
|
969
|
this.$http
|
958
|
970
|
.post("service/bpm/bpm/fetchTask/bpm_incident", postData)
|
|
@@ -1046,6 +1058,50 @@ export default {
|
1046
|
1058
|
}
|
1047
|
1059
|
this.loadShow = false;
|
1048
|
1060
|
});
|
|
1061
|
+ }else if(this.searchType === 'done'){
|
|
1062
|
+ this.$http
|
|
1063
|
+ .post("service/flow/owns", postData)
|
|
1064
|
+ .then((res) => {
|
|
1065
|
+ if (res.data.data.data.length > 0) {
|
|
1066
|
+ for (var i = 0; i < res.data.data.data.length; i++) {
|
|
1067
|
+ delete res.data.data.data[i].handlingPersonnelUser;
|
|
1068
|
+ delete res.data.data.data[i].sendBackUser;
|
|
1069
|
+ delete res.data.data.data[i].colourInfo;
|
|
1070
|
+ if(res.data.data.data[i].acceptUser){
|
|
1071
|
+ res.data.data.data[i].acceptUser = {
|
|
1072
|
+ id: res.data.data.data[i].acceptUser.id,
|
|
1073
|
+ name: res.data.data.data[i].acceptUser.name,
|
|
1074
|
+ };
|
|
1075
|
+ }
|
|
1076
|
+ res.data.data.data[i].createTime = formatDate(
|
|
1077
|
+ new Date(res.data.data.data[i].createTime),
|
|
1078
|
+ "yyyy-MM-dd hh:mm"
|
|
1079
|
+ );
|
|
1080
|
+ }
|
|
1081
|
+ if (this.idx) {
|
|
1082
|
+ this.items = this.items.concat(res.data.data.data);
|
|
1083
|
+ } else {
|
|
1084
|
+ this.items = res.data.data.data;
|
|
1085
|
+ }
|
|
1086
|
+
|
|
1087
|
+ } else {
|
|
1088
|
+ this.$refs.scroll.forceUpdate();
|
|
1089
|
+ }
|
|
1090
|
+ if(this.searchState === undefined){
|
|
1091
|
+ this.tabTypes[0].num = res.data.resultCount;
|
|
1092
|
+ this.getNum(1543);
|
|
1093
|
+ this.getNum(1544);
|
|
1094
|
+ }else if(this.searchState == 1543){
|
|
1095
|
+ this.tabTypes[1].num = res.data.resultCount;
|
|
1096
|
+ this.getNum();
|
|
1097
|
+ this.getNum(1544);
|
|
1098
|
+ }else if(this.searchState == 1544){
|
|
1099
|
+ this.tabTypes[2].num = res.data.resultCount;
|
|
1100
|
+ this.getNum();
|
|
1101
|
+ this.getNum(1543);
|
|
1102
|
+ }
|
|
1103
|
+ this.loadShow = false;
|
|
1104
|
+ });
|
1049
|
1105
|
}else{
|
1050
|
1106
|
this.$http
|
1051
|
1107
|
.post("service/bpm/bpm/fetchTask/bpm_incident", postData)
|