|
@@ -101,7 +101,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
101
|
101
|
defaultOptions: function (options) {
|
102
|
102
|
return {
|
103
|
103
|
templateOptions: {
|
104
|
|
- refresh: function () {},
|
|
104
|
+ refresh: function () { },
|
105
|
105
|
refreshDelay: 0,
|
106
|
106
|
},
|
107
|
107
|
};
|
|
@@ -130,7 +130,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
130
|
130
|
defaultOptions: function (options) {
|
131
|
131
|
return {
|
132
|
132
|
templateOptions: {
|
133
|
|
- refresh: function () {},
|
|
133
|
+ refresh: function () { },
|
134
|
134
|
refreshDelay: 0,
|
135
|
135
|
},
|
136
|
136
|
};
|
|
@@ -166,7 +166,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
166
|
166
|
defaultOptions: function (options) {
|
167
|
167
|
return {
|
168
|
168
|
templateOptions: {
|
169
|
|
- refresh: function () {},
|
|
169
|
+ refresh: function () { },
|
170
|
170
|
refreshDelay: 0,
|
171
|
171
|
},
|
172
|
172
|
};
|
|
@@ -189,7 +189,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
189
|
189
|
defaultOptions: function (options) {
|
190
|
190
|
return {
|
191
|
191
|
templateOptions: {
|
192
|
|
- refresh: function () {},
|
|
192
|
+ refresh: function () { },
|
193
|
193
|
refreshDelay: 0,
|
194
|
194
|
},
|
195
|
195
|
};
|
|
@@ -225,7 +225,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
225
|
225
|
defaultOptions: function (options) {
|
226
|
226
|
return {
|
227
|
227
|
templateOptions: {
|
228
|
|
- refresh: function () {},
|
|
228
|
+ refresh: function () { },
|
229
|
229
|
refreshDelay: 0,
|
230
|
230
|
},
|
231
|
231
|
};
|
|
@@ -238,7 +238,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
238
|
238
|
defaultOptions: function (options) {
|
239
|
239
|
return {
|
240
|
240
|
templateOptions: {
|
241
|
|
- refresh: function () {},
|
|
241
|
+ refresh: function () { },
|
242
|
242
|
refreshDelay: 0,
|
243
|
243
|
view: function (APIService, contentId) {
|
244
|
244
|
return APIService.downloadAttachment(contentId);
|
|
@@ -378,7 +378,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
378
|
378
|
defaultOptions: function (options) {
|
379
|
379
|
return {
|
380
|
380
|
templateOptions: {
|
381
|
|
- refresh: function () {},
|
|
381
|
+ refresh: function () { },
|
382
|
382
|
refreshDelay: 0,
|
383
|
383
|
},
|
384
|
384
|
};
|
|
@@ -465,7 +465,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
465
|
465
|
}
|
466
|
466
|
);
|
467
|
467
|
|
468
|
|
- gridApi.core.on.filterChanged($scope, function () {});
|
|
468
|
+ gridApi.core.on.filterChanged($scope, function () { });
|
469
|
469
|
|
470
|
470
|
gridApi.selection.on.rowSelectionChanged($scope, function (data) {
|
471
|
471
|
$scope.selected.item = data.entity;
|
|
@@ -609,7 +609,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
609
|
609
|
// $scope.loadData({ "idx": newPage - 1, "sum": pageSize });
|
610
|
610
|
}
|
611
|
611
|
);
|
612
|
|
- gridApi.core.on.filterChanged($scope, function () {});
|
|
612
|
+ gridApi.core.on.filterChanged($scope, function () { });
|
613
|
613
|
gridApi.selection.on.rowSelectionChanged($scope, function (data) {
|
614
|
614
|
$scope.selected.item = data.entity;
|
615
|
615
|
//console.log(data);
|
|
@@ -782,7 +782,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
782
|
782
|
i + 1 + filterData.idx * filterData.sum;
|
783
|
783
|
}
|
784
|
784
|
},
|
785
|
|
- function () {}
|
|
785
|
+ function () { }
|
786
|
786
|
);
|
787
|
787
|
};
|
788
|
788
|
$scope.refreshData("expand-right", defaultFilterData);
|
|
@@ -1095,7 +1095,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
1095
|
1095
|
i +
|
1096
|
1096
|
1 +
|
1097
|
1097
|
$scope.memoryfilterDatagridold.idx *
|
1098
|
|
- $scope.memoryfilterDatagridold.sum;
|
|
1098
|
+ $scope.memoryfilterDatagridold.sum;
|
1099
|
1099
|
}
|
1100
|
1100
|
$scope.gridOptions2["totalItems"] = $scope.myDatagridoldall.length;
|
1101
|
1101
|
$scope.myDatagridold = $scope.interceptMydata(
|
|
@@ -1158,7 +1158,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
1158
|
1158
|
i +
|
1159
|
1159
|
1 +
|
1160
|
1160
|
$scope.memoryfilterDatagridold.idx *
|
1161
|
|
- $scope.memoryfilterDatagridold.sum;
|
|
1161
|
+ $scope.memoryfilterDatagridold.sum;
|
1162
|
1162
|
}
|
1163
|
1163
|
$scope.gridOptions2["totalItems"] =
|
1164
|
1164
|
$scope.myDatagridallold.length;
|
|
@@ -1208,7 +1208,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
1208
|
1208
|
i +
|
1209
|
1209
|
1 +
|
1210
|
1210
|
$scope.memoryfilterDatagridold.idx *
|
1211
|
|
- $scope.memoryfilterDatagridold.sum;
|
|
1211
|
+ $scope.memoryfilterDatagridold.sum;
|
1212
|
1212
|
}
|
1213
|
1213
|
$scope.gridOptions2["totalItems"] =
|
1214
|
1214
|
$scope.myDatagridoldall.length;
|
|
@@ -1257,7 +1257,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
1257
|
1257
|
i +
|
1258
|
1258
|
1 +
|
1259
|
1259
|
$scope.memoryfilterDatagridold.idx *
|
1260
|
|
- $scope.memoryfilterDatagridold.sum;
|
|
1260
|
+ $scope.memoryfilterDatagridold.sum;
|
1261
|
1261
|
}
|
1262
|
1262
|
$scope.gridOptions2["totalItems"] =
|
1263
|
1263
|
$scope.myDatagridoldall.length;
|
|
@@ -1357,7 +1357,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
1357
|
1357
|
}
|
1358
|
1358
|
);
|
1359
|
1359
|
|
1360
|
|
- gridApi.core.on.filterChanged($scope, function () {});
|
|
1360
|
+ gridApi.core.on.filterChanged($scope, function () { });
|
1361
|
1361
|
|
1362
|
1362
|
gridApi.selection.on.rowSelectionChanged($scope, function (data) {
|
1363
|
1363
|
$scope.selected.item = data.entity;
|
|
@@ -1441,7 +1441,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
1441
|
1441
|
defaultOptions: function (options) {
|
1442
|
1442
|
return {
|
1443
|
1443
|
templateOptions: {
|
1444
|
|
- refresh: function () {},
|
|
1444
|
+ refresh: function () { },
|
1445
|
1445
|
refreshDelay: 0,
|
1446
|
1446
|
},
|
1447
|
1447
|
};
|
|
@@ -1810,7 +1810,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
1810
|
1810
|
}
|
1811
|
1811
|
);
|
1812
|
1812
|
|
1813
|
|
- gridApi.core.on.filterChanged($scope, function () {});
|
|
1813
|
+ gridApi.core.on.filterChanged($scope, function () { });
|
1814
|
1814
|
gridApi.selection.on.rowSelectionChanged(
|
1815
|
1815
|
$scope,
|
1816
|
1816
|
function (data) {
|
|
@@ -1986,7 +1986,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
1986
|
1986
|
defaultOptions: function (options) {
|
1987
|
1987
|
return {
|
1988
|
1988
|
templateOptions: {
|
1989
|
|
- refresh: function () {},
|
|
1989
|
+ refresh: function () { },
|
1990
|
1990
|
refreshDelay: 0,
|
1991
|
1991
|
},
|
1992
|
1992
|
};
|
|
@@ -2058,7 +2058,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
2058
|
2058
|
defaultOptions: function (options) {
|
2059
|
2059
|
return {
|
2060
|
2060
|
templateOptions: {
|
2061
|
|
- refresh: function () {},
|
|
2061
|
+ refresh: function () { },
|
2062
|
2062
|
refreshDelay: 0,
|
2063
|
2063
|
},
|
2064
|
2064
|
};
|
|
@@ -2130,7 +2130,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
2130
|
2130
|
defaultOptions: function (options) {
|
2131
|
2131
|
return {
|
2132
|
2132
|
templateOptions: {
|
2133
|
|
- refresh: function () {},
|
|
2133
|
+ refresh: function () { },
|
2134
|
2134
|
refreshDelay: 0,
|
2135
|
2135
|
},
|
2136
|
2136
|
};
|
|
@@ -2139,7 +2139,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
2139
|
2139
|
"$scope",
|
2140
|
2140
|
"$filter",
|
2141
|
2141
|
"ngTableParams",
|
2142
|
|
- function ($scope, $filter, ngTableParams) {},
|
|
2142
|
+ function ($scope, $filter, ngTableParams) { },
|
2143
|
2143
|
],
|
2144
|
2144
|
});
|
2145
|
2145
|
//审核查看组件
|
|
@@ -2150,7 +2150,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
2150
|
2150
|
defaultOptions: function (options) {
|
2151
|
2151
|
return {
|
2152
|
2152
|
templateOptions: {
|
2153
|
|
- refresh: function () {},
|
|
2153
|
+ refresh: function () { },
|
2154
|
2154
|
refreshDelay: 0,
|
2155
|
2155
|
},
|
2156
|
2156
|
};
|
|
@@ -2178,7 +2178,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
2178
|
2178
|
defaultOptions: function (options) {
|
2179
|
2179
|
return {
|
2180
|
2180
|
templateOptions: {
|
2181
|
|
- refresh: function () {},
|
|
2181
|
+ refresh: function () { },
|
2182
|
2182
|
refreshDelay: 0,
|
2183
|
2183
|
},
|
2184
|
2184
|
};
|
|
@@ -3622,7 +3622,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
3622
|
3622
|
$scope.$parent.$parent.$parent.model &&
|
3623
|
3623
|
$scope.$parent.$parent.$parent.model.cifilterClassic &&
|
3624
|
3624
|
cifilterClassic.id !=
|
3625
|
|
- $scope.$parent.$parent.$parent.model.cifilterClassic.id
|
|
3625
|
+ $scope.$parent.$parent.$parent.model.cifilterClassic.id
|
3626
|
3626
|
) {
|
3627
|
3627
|
// $scope.$parent.$parent.$parent.model.cifilterClassic = $scope.model.cifilterClassic;
|
3628
|
3628
|
cifilterClassic =
|
|
@@ -5294,7 +5294,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
5294
|
5294
|
// "user": { "roledata": { "rolecode": "roleset" }, "selectType": "1" }
|
5295
|
5295
|
};
|
5296
|
5296
|
// $scope.myData = {};
|
5297
|
|
- $scope.loadData = function (filterData) {};
|
|
5297
|
+ $scope.loadData = function (filterData) { };
|
5298
|
5298
|
// $scope.title = title;
|
5299
|
5299
|
|
5300
|
5300
|
$scope.loadData({
|
|
@@ -5823,7 +5823,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
5823
|
5823
|
},
|
5824
|
5824
|
};
|
5825
|
5825
|
$scope.myData = {};
|
5826
|
|
- $scope.loadData = function (filterData) {};
|
|
5826
|
+ $scope.loadData = function (filterData) { };
|
5827
|
5827
|
// $scope.title = title;
|
5828
|
5828
|
|
5829
|
5829
|
$scope.loadData({
|
|
@@ -6244,7 +6244,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
6244
|
6244
|
i + 1 + filterData.idx * filterData.sum;
|
6245
|
6245
|
}
|
6246
|
6246
|
},
|
6247
|
|
- function () {}
|
|
6247
|
+ function () { }
|
6248
|
6248
|
);
|
6249
|
6249
|
};
|
6250
|
6250
|
$scope.refreshData("expand-right", defaultFilterData);
|
|
@@ -6980,7 +6980,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
6980
|
6980
|
// "user": { "roledata": { "rolecode": "roleset" }, "selectType": "1" }
|
6981
|
6981
|
};
|
6982
|
6982
|
$scope.myDataone = [];
|
6983
|
|
- $scope.loadData = function (filterData) {};
|
|
6983
|
+ $scope.loadData = function (filterData) { };
|
6984
|
6984
|
// $scope.title = title;
|
6985
|
6985
|
|
6986
|
6986
|
$scope.ldloading = {};
|
|
@@ -7748,10 +7748,10 @@ appFormly.config(function config(formlyConfigProvider) {
|
7748
|
7748
|
);
|
7749
|
7749
|
var thisdaymine = Date.parse(
|
7750
|
7750
|
thisday.substr(4, 2) +
|
7751
|
|
- "/" +
|
7752
|
|
- thisday.substr(6, 2) +
|
7753
|
|
- "/" +
|
7754
|
|
- thisday.substr(0, 4)
|
|
7751
|
+ "/" +
|
|
7752
|
+ thisday.substr(6, 2) +
|
|
7753
|
+ "/" +
|
|
7754
|
+ thisday.substr(0, 4)
|
7755
|
7755
|
);
|
7756
|
7756
|
var averages = [
|
7757
|
7757
|
[thisdaymine - 86400000 * 14, 0],
|
|
@@ -7799,12 +7799,12 @@ appFormly.config(function config(formlyConfigProvider) {
|
7799
|
7799
|
index[0] ==
|
7800
|
7800
|
Date.parse(
|
7801
|
7801
|
item[0].value.substr(4, 2) +
|
7802
|
|
- "/" +
|
7803
|
|
- item[0].value.substr(6, 2) +
|
7804
|
|
- "/" +
|
7805
|
|
- item[0].value.substr(0, 4)
|
|
7802
|
+ "/" +
|
|
7803
|
+ item[0].value.substr(6, 2) +
|
|
7804
|
+ "/" +
|
|
7805
|
+ item[0].value.substr(0, 4)
|
7806
|
7806
|
) +
|
7807
|
|
- 86400000
|
|
7807
|
+ 86400000
|
7808
|
7808
|
) {
|
7809
|
7809
|
index[1] = Number(item[1].value);
|
7810
|
7810
|
}
|
|
@@ -7997,10 +7997,10 @@ appFormly.config(function config(formlyConfigProvider) {
|
7997
|
7997
|
datasetFill: true,
|
7998
|
7998
|
|
7999
|
7999
|
// Function - on animation progress
|
8000
|
|
- onAnimationProgress: function () {},
|
|
8000
|
+ onAnimationProgress: function () { },
|
8001
|
8001
|
|
8002
|
8002
|
// Function - on animation complete
|
8003
|
|
- onAnimationComplete: function () {},
|
|
8003
|
+ onAnimationComplete: function () { },
|
8004
|
8004
|
|
8005
|
8005
|
//String - A legend template
|
8006
|
8006
|
legendTemplate:
|
|
@@ -8722,14 +8722,14 @@ appFormly.config(function config(formlyConfigProvider) {
|
8722
|
8722
|
templateOptions: {},
|
8723
|
8723
|
};
|
8724
|
8724
|
},
|
8725
|
|
- controller: ["$scope", function ($scope) {}],
|
|
8725
|
+ controller: ["$scope", function ($scope) { }],
|
8726
|
8726
|
});
|
8727
|
8727
|
//时间段控件(分)
|
8728
|
8728
|
formlyConfigProvider.setType({
|
8729
|
8729
|
name: "ui-timeslot",
|
8730
|
8730
|
extends: "input",
|
8731
|
8731
|
templateUrl: "assets/views/customform/tpl/ui-responsetime.html",
|
8732
|
|
- controller: ["$scope", function ($scope) {}],
|
|
8732
|
+ controller: ["$scope", function ($scope) { }],
|
8733
|
8733
|
});
|
8734
|
8734
|
//优先级级联-逾期时间
|
8735
|
8735
|
formlyConfigProvider.setType({
|
|
@@ -8824,7 +8824,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
8824
|
8824
|
defaultOptions: function (options) {
|
8825
|
8825
|
return {
|
8826
|
8826
|
templateOptions: {
|
8827
|
|
- relationAction: function (fields, modelscope, item) {},
|
|
8827
|
+ relationAction: function (fields, modelscope, item) { },
|
8828
|
8828
|
},
|
8829
|
8829
|
validators: {
|
8830
|
8830
|
required: {
|
|
@@ -9076,7 +9076,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
9076
|
9076
|
defaultOptions: function (options) {
|
9077
|
9077
|
return {
|
9078
|
9078
|
templateOptions: {
|
9079
|
|
- relationAction: function (fields, modelscope, item) {},
|
|
9079
|
+ relationAction: function (fields, modelscope, item) { },
|
9080
|
9080
|
},
|
9081
|
9081
|
validators: {
|
9082
|
9082
|
required: {
|
|
@@ -9168,7 +9168,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
9168
|
9168
|
defaultOptions: function (options) {
|
9169
|
9169
|
return {
|
9170
|
9170
|
templateOptions: {
|
9171
|
|
- relationAction: function (fields, modelscope, item) {},
|
|
9171
|
+ relationAction: function (fields, modelscope, item) { },
|
9172
|
9172
|
},
|
9173
|
9173
|
validators: {
|
9174
|
9174
|
required: {
|
|
@@ -9326,13 +9326,13 @@ appFormly.config(function config(formlyConfigProvider) {
|
9326
|
9326
|
.then(function (res) {
|
9327
|
9327
|
$scope.model.incident.expectResponseTime =
|
9328
|
9328
|
$scope.$parent.$parent.$parent.model.incident.expectResponseTime =
|
9329
|
|
- res.serviceLevelAgreement.responseTime;
|
|
9329
|
+ res.serviceLevelAgreement.responseTime;
|
9330
|
9330
|
$scope.model.incident.expectIntroTime =
|
9331
|
9331
|
$scope.$parent.$parent.$parent.model.incident.expectIntroTime =
|
9332
|
|
- res.serviceLevelAgreement.resolveTime;
|
|
9332
|
+ res.serviceLevelAgreement.resolveTime;
|
9333
|
9333
|
$scope.model.incident.overdueTime =
|
9334
|
9334
|
$scope.$parent.$parent.$parent.model.incident.overdueTime =
|
9335
|
|
- res.date;
|
|
9335
|
+ res.date;
|
9336
|
9336
|
});
|
9337
|
9337
|
}
|
9338
|
9338
|
api_zsk.solutionQuote(item.id).then(function (response) {
|
|
@@ -9359,9 +9359,9 @@ appFormly.config(function config(formlyConfigProvider) {
|
9359
|
9359
|
defaultOptions: function (options) {
|
9360
|
9360
|
return {
|
9361
|
9361
|
templateOptions: {
|
9362
|
|
- refresh: function () {},
|
|
9362
|
+ refresh: function () { },
|
9363
|
9363
|
refreshDelay: 0,
|
9364
|
|
- linkage: function (modelName, data) {},
|
|
9364
|
+ linkage: function (modelName, data) { },
|
9365
|
9365
|
},
|
9366
|
9366
|
};
|
9367
|
9367
|
},
|
|
@@ -9620,7 +9620,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
9620
|
9620
|
defaultOptions: function (options) {
|
9621
|
9621
|
return {
|
9622
|
9622
|
templateOptions: {
|
9623
|
|
- transform: function (value) {},
|
|
9623
|
+ transform: function (value) { },
|
9624
|
9624
|
},
|
9625
|
9625
|
};
|
9626
|
9626
|
},
|
|
@@ -9645,7 +9645,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
9645
|
9645
|
defaultOptions: function (options) {
|
9646
|
9646
|
return {
|
9647
|
9647
|
templateOptions: {
|
9648
|
|
- transform: function (value) {},
|
|
9648
|
+ transform: function (value) { },
|
9649
|
9649
|
},
|
9650
|
9650
|
};
|
9651
|
9651
|
},
|
|
@@ -9726,7 +9726,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
9726
|
9726
|
defaultOptions: function (options) {
|
9727
|
9727
|
return {
|
9728
|
9728
|
templateOptions: {
|
9729
|
|
- transform: function (value) {},
|
|
9729
|
+ transform: function (value) { },
|
9730
|
9730
|
},
|
9731
|
9731
|
};
|
9732
|
9732
|
},
|
|
@@ -9787,7 +9787,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
9787
|
9787
|
defaultOptions: function (options) {
|
9788
|
9788
|
return {
|
9789
|
9789
|
templateOptions: {
|
9790
|
|
- transform: function (value) {},
|
|
9790
|
+ transform: function (value) { },
|
9791
|
9791
|
},
|
9792
|
9792
|
};
|
9793
|
9793
|
},
|
|
@@ -9877,7 +9877,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
9877
|
9877
|
templateOptions: {},
|
9878
|
9878
|
};
|
9879
|
9879
|
},
|
9880
|
|
- controller: ["$scope", function ($scope) {}],
|
|
9880
|
+ controller: ["$scope", function ($scope) { }],
|
9881
|
9881
|
});
|
9882
|
9882
|
//含有周的日期
|
9883
|
9883
|
formlyConfigProvider.setType({
|
|
@@ -9897,7 +9897,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
9897
|
9897
|
function ($scope, $filter) {
|
9898
|
9898
|
$scope.mindata = new Date(
|
9899
|
9899
|
$scope.options.templateOptions.transform($scope.model).getTime() +
|
9900
|
|
- 5 * 60 * 1000
|
|
9900
|
+ 5 * 60 * 1000
|
9901
|
9901
|
);
|
9902
|
9902
|
if ($scope.model[$scope.options.key]) {
|
9903
|
9903
|
} else {
|
|
@@ -10723,7 +10723,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
10723
|
10723
|
// console.log($scope.model[$scope.options.key],'lmm');
|
10724
|
10724
|
$scope.mindata = new Date(
|
10725
|
10725
|
$scope.options.templateOptions.transform($scope.model).getTime() +
|
10726
|
|
- 5 * 60 * 1000
|
|
10726
|
+ 5 * 60 * 1000
|
10727
|
10727
|
);
|
10728
|
10728
|
if ($scope.model[$scope.options.key]) {
|
10729
|
10729
|
$scope.model[$scope.options.key] = $filter("date")(
|
|
@@ -10761,7 +10761,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
10761
|
10761
|
function ($scope, $filter) {
|
10762
|
10762
|
$scope.mindata = new Date(
|
10763
|
10763
|
$scope.options.templateOptions.transform($scope.model).getTime() +
|
10764
|
|
- 5 * 60 * 1000
|
|
10764
|
+ 5 * 60 * 1000
|
10765
|
10765
|
);
|
10766
|
10766
|
if ($scope.model[$scope.options.key]) {
|
10767
|
10767
|
$scope.model[$scope.options.key] = $filter("date")(
|
|
@@ -11131,7 +11131,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
11131
|
11131
|
"$rootScope",
|
11132
|
11132
|
"api_bpm_domain",
|
11133
|
11133
|
"$stateParams",
|
11134
|
|
- function ($scope, $rootScope, api_bpm_domain,$stateParams) {
|
|
11134
|
+ function ($scope, $rootScope, api_bpm_domain, $stateParams) {
|
11135
|
11135
|
// $scope.myFilter = function(item) {
|
11136
|
11136
|
// return !$scope.search || $select.selected[to.labelProp || 'name'] == $scope.search;
|
11137
|
11137
|
// }
|
|
@@ -11173,7 +11173,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
11173
|
11173
|
console.log($scope, 77777);
|
11174
|
11174
|
if (angular.isDefined($stateParams.model) && $stateParams.model != "") {
|
11175
|
11175
|
var paramsModel = JSON.parse($stateParams.model)
|
11176
|
|
- if ($scope.options.templateOptions.onlyKey == "c_account"&¶msModel.model.incident.requester.account) {
|
|
11176
|
+ if ($scope.options.templateOptions.onlyKey == "c_account" && paramsModel.model.incident.requester.account) {
|
11177
|
11177
|
$scope.$parent.$parent.$parent.model.repeatIncidentShow = true;
|
11178
|
11178
|
$scope.$parent.$parent.$parent.model.incident.account = paramsModel.model.incident.requester.account;
|
11179
|
11179
|
}
|
|
@@ -11252,7 +11252,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
11252
|
11252
|
defaultOptions: function (options) {
|
11253
|
11253
|
return {
|
11254
|
11254
|
templateOptions: {
|
11255
|
|
- refresh: function () {},
|
|
11255
|
+ refresh: function () { },
|
11256
|
11256
|
refreshDelay: 1000,
|
11257
|
11257
|
},
|
11258
|
11258
|
};
|
|
@@ -11300,11 +11300,11 @@ appFormly.config(function config(formlyConfigProvider) {
|
11300
|
11300
|
var modelVal = $scope.model[$scope.options.key];
|
11301
|
11301
|
var ides = [];
|
11302
|
11302
|
var rList = result.list || result;
|
11303
|
|
- if($scope.options.key == "serviceTypeIds"){
|
11304
|
|
- modelVal = modelVal.map(function(v){
|
11305
|
|
- if(typeof v !== 'object'){
|
11306
|
|
- return {id:v};
|
11307
|
|
- }else{
|
|
11303
|
+ if ($scope.options.key == "serviceTypeIds") {
|
|
11304
|
+ modelVal = modelVal.map(function (v) {
|
|
11305
|
+ if (typeof v !== 'object') {
|
|
11306
|
+ return { id: v };
|
|
11307
|
+ } else {
|
11308
|
11308
|
return v;
|
11309
|
11309
|
}
|
11310
|
11310
|
})
|
|
@@ -11316,10 +11316,10 @@ appFormly.config(function config(formlyConfigProvider) {
|
11316
|
11316
|
}
|
11317
|
11317
|
}
|
11318
|
11318
|
}
|
11319
|
|
- ides.forEach(function(v1){
|
11320
|
|
- rList.forEach(function(v2){
|
11321
|
|
- if(v1 == v2.id){
|
11322
|
|
- rList = rList.filter(v=>v.id!=v2.id);
|
|
11319
|
+ ides.forEach(function (v1) {
|
|
11320
|
+ rList.forEach(function (v2) {
|
|
11321
|
+ if (v1 == v2.id) {
|
|
11322
|
+ rList = rList.filter(v => v.id != v2.id);
|
11323
|
11323
|
}
|
11324
|
11324
|
})
|
11325
|
11325
|
})
|
|
@@ -11640,8 +11640,8 @@ appFormly.config(function config(formlyConfigProvider) {
|
11640
|
11640
|
// console.log(items)
|
11641
|
11641
|
},
|
11642
|
11642
|
refresh: function (items, search, fn) {
|
11643
|
|
- console.log(items,options);
|
11644
|
|
-
|
|
11643
|
+ console.log(items, options);
|
|
11644
|
+
|
11645
|
11645
|
var treedata = [];
|
11646
|
11646
|
|
11647
|
11647
|
function convertListToTree(data, treeMap) {
|
|
@@ -11967,28 +11967,28 @@ appFormly.config(function config(formlyConfigProvider) {
|
11967
|
11967
|
.refreshData(options.templateOptions.APIService)
|
11968
|
11968
|
.then(function (result) {
|
11969
|
11969
|
//回显事件分类,带出绑定的人或组start caocao
|
11970
|
|
- if(items.$parent.originalModel.incident && items.$parent.originalModel.incident.category){
|
11971
|
|
- console.log(result[options.templateOptions.optionsDataKey],items.$parent.model.category.id)
|
11972
|
|
- var item = result[options.templateOptions.optionsDataKey].find(function(v){
|
|
11970
|
+ if (items.$parent.originalModel.incident && items.$parent.originalModel.incident.category) {
|
|
11971
|
+ console.log(result[options.templateOptions.optionsDataKey], items.$parent.model.category.id)
|
|
11972
|
+ var item = result[options.templateOptions.optionsDataKey].find(function (v) {
|
11973
|
11973
|
return v.id == items.$parent.originalModel.incident.category.id;
|
11974
|
11974
|
})
|
11975
|
11975
|
console.log(item)//11615
|
11976
|
|
- if(item){
|
11977
|
|
- if(item.userOrGroupType===1){
|
11978
|
|
- items.$parent.originalModel.start_code='assignment';
|
11979
|
|
- items.$parent.originalModel.incident.handlerUser={id:item.handleUser?item.handleUser.id:undefined};
|
11980
|
|
- items.$parent.originalModel.directClose=true;
|
11981
|
|
- items.$parent.originalModel.isHandlerUser=false;
|
11982
|
|
- setTimeout(function(){items.$parent.originalModel.isHandlerUser=true;},0)
|
11983
|
|
- }else if(item.userOrGroupType===2){
|
11984
|
|
- items.$parent.originalModel.start_code='assignment';
|
11985
|
|
- items.$parent.originalModel.candidateGroups=item.group;
|
11986
|
|
- items.$parent.originalModel.directClose=true;
|
11987
|
|
- items.$parent.originalModel.isHandlerUser=false;
|
11988
|
|
- }else{
|
11989
|
|
- items.$parent.originalModel.start_code='close';
|
11990
|
|
- items.$parent.originalModel.directClose=false;
|
11991
|
|
- items.$parent.originalModel.isHandlerUser=false;
|
|
11976
|
+ if (item) {
|
|
11977
|
+ if (item.userOrGroupType === 1) {
|
|
11978
|
+ items.$parent.originalModel.start_code = 'assignment';
|
|
11979
|
+ items.$parent.originalModel.incident.handlerUser = { id: item.handleUser ? item.handleUser.id : undefined };
|
|
11980
|
+ items.$parent.originalModel.directClose = true;
|
|
11981
|
+ items.$parent.originalModel.isHandlerUser = false;
|
|
11982
|
+ setTimeout(function () { items.$parent.originalModel.isHandlerUser = true; }, 0)
|
|
11983
|
+ } else if (item.userOrGroupType === 2) {
|
|
11984
|
+ items.$parent.originalModel.start_code = 'assignment';
|
|
11985
|
+ items.$parent.originalModel.candidateGroups = item.group;
|
|
11986
|
+ items.$parent.originalModel.directClose = true;
|
|
11987
|
+ items.$parent.originalModel.isHandlerUser = false;
|
|
11988
|
+ } else {
|
|
11989
|
+ items.$parent.originalModel.start_code = 'close';
|
|
11990
|
+ items.$parent.originalModel.directClose = false;
|
|
11991
|
+ items.$parent.originalModel.isHandlerUser = false;
|
11992
|
11992
|
delete items.$parent.originalModel.candidateGroups;
|
11993
|
11993
|
delete items.$parent.originalModel.incident.handlerUser
|
11994
|
11994
|
}
|
|
@@ -12226,7 +12226,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
12226
|
12226
|
defaultOptions: function (options) {
|
12227
|
12227
|
return {
|
12228
|
12228
|
templateOptions: {
|
12229
|
|
- refresh: function () {},
|
|
12229
|
+ refresh: function () { },
|
12230
|
12230
|
refreshDelay: 0,
|
12231
|
12231
|
},
|
12232
|
12232
|
};
|
|
@@ -12240,7 +12240,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
12240
|
12240
|
defaultOptions: function (options) {
|
12241
|
12241
|
return {
|
12242
|
12242
|
templateOptions: {
|
12243
|
|
- refresh: function () {},
|
|
12243
|
+ refresh: function () { },
|
12244
|
12244
|
refreshDelay: 0,
|
12245
|
12245
|
},
|
12246
|
12246
|
};
|
|
@@ -12720,7 +12720,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
12720
|
12720
|
defaultOptions: function (options) {
|
12721
|
12721
|
return {
|
12722
|
12722
|
templateOptions: {
|
12723
|
|
- linkage: function () {},
|
|
12723
|
+ linkage: function () { },
|
12724
|
12724
|
},
|
12725
|
12725
|
};
|
12726
|
12726
|
},
|
|
@@ -13048,7 +13048,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
13048
|
13048
|
"api_bpm_data",
|
13049
|
13049
|
"Restangular",
|
13050
|
13050
|
function ($scope, api_bpm_data, Restangular) {
|
13051
|
|
- console.log($scope,'ui-handlerLog')
|
|
13051
|
+ console.log($scope, 'ui-handlerLog')
|
13052
|
13052
|
},
|
13053
|
13053
|
],
|
13054
|
13054
|
});
|
|
@@ -13061,7 +13061,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
13061
|
13061
|
"api_bpm_data",
|
13062
|
13062
|
"Restangular",
|
13063
|
13063
|
function ($scope, api_bpm_data, Restangular) {
|
13064
|
|
- console.log($scope,'ui-zc');
|
|
13064
|
+ console.log($scope, 'ui-zc');
|
13065
|
13065
|
$scope.wxIncidentWithCmdb = JSON.parse(sessionStorage.getItem("wxIncidentWithCmdb"));//资产
|
13066
|
13066
|
},
|
13067
|
13067
|
],
|
|
@@ -13075,13 +13075,13 @@ appFormly.config(function config(formlyConfigProvider) {
|
13075
|
13075
|
"api_cmdb2",
|
13076
|
13076
|
"Restangular",
|
13077
|
13077
|
function ($scope, api_cmdb2, Restangular) {
|
13078
|
|
- console.log($scope,'ui-hc')
|
|
13078
|
+ console.log($scope, 'ui-hc')
|
13079
|
13079
|
$scope.incidentWithConsumable = JSON.parse(sessionStorage.getItem("incidentWithConsumable"));//耗材
|
13080
|
13080
|
$scope.list = [];
|
13081
|
13081
|
var sjId = $scope.model.incident.id;
|
13082
|
13082
|
api_cmdb2.getHc(sjId).then(function (response) {
|
13083
|
13083
|
console.log(response)
|
13084
|
|
- if(response.status == 200){
|
|
13084
|
+ if (response.status == 200) {
|
13085
|
13085
|
$scope.list = response.data;
|
13086
|
13086
|
}
|
13087
|
13087
|
})
|
|
@@ -13251,7 +13251,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
13251
|
13251
|
defaultOptions: function (options) {
|
13252
|
13252
|
return {
|
13253
|
13253
|
templateOptions: {
|
13254
|
|
- transtlara: function (value, $scope) {},
|
|
13254
|
+ transtlara: function (value, $scope) { },
|
13255
|
13255
|
},
|
13256
|
13256
|
};
|
13257
|
13257
|
},
|
|
@@ -13328,7 +13328,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
13328
|
13328
|
defaultOptions: function (options, $scope, $rootScope, api_statistic) {
|
13329
|
13329
|
return {
|
13330
|
13330
|
templateOptions: {
|
13331
|
|
- checkform: function (options) {},
|
|
13331
|
+ checkform: function (options) { },
|
13332
|
13332
|
},
|
13333
|
13333
|
};
|
13334
|
13334
|
},
|
|
@@ -13353,7 +13353,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
13353
|
13353
|
}
|
13354
|
13354
|
},
|
13355
|
13355
|
addRequeter: function (size, options, modal, e) {
|
13356
|
|
- if(e){
|
|
13356
|
+ if (e) {
|
13357
|
13357
|
if (e.clientX === 0) {
|
13358
|
13358
|
return;
|
13359
|
13359
|
}
|
|
@@ -13385,7 +13385,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
13385
|
13385
|
if (angular.isDefined($stateParams.model) && $stateParams.model != "") {
|
13386
|
13386
|
var paramsModel = JSON.parse($stateParams.model)
|
13387
|
13387
|
//来电-添加报修人-回显电话
|
13388
|
|
- if(paramsModel.model.incident.requester.hjzxPhone){
|
|
13388
|
+ if (paramsModel.model.incident.requester.hjzxPhone) {
|
13389
|
13389
|
$scope.requester.mphone = paramsModel.model.incident.requester.hjzxPhone;
|
13390
|
13390
|
}
|
13391
|
13391
|
}
|
|
@@ -13775,7 +13775,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
13775
|
13775
|
});
|
13776
|
13776
|
}
|
13777
|
13777
|
},
|
13778
|
|
- function () {}
|
|
13778
|
+ function () { }
|
13779
|
13779
|
);
|
13780
|
13780
|
},
|
13781
|
13781
|
changeRequeter: function (
|
|
@@ -14038,7 +14038,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
14038
|
14038
|
});
|
14039
|
14039
|
}
|
14040
|
14040
|
},
|
14041
|
|
- function () {}
|
|
14041
|
+ function () { }
|
14042
|
14042
|
);
|
14043
|
14043
|
event.preventDefault();
|
14044
|
14044
|
},
|
|
@@ -14050,13 +14050,13 @@ appFormly.config(function config(formlyConfigProvider) {
|
14050
|
14050
|
"api_user_data",
|
14051
|
14051
|
"api_statistic",
|
14052
|
14052
|
"$stateParams",
|
14053
|
|
- function ($scope, api_user_data, api_statistic,$stateParams) {
|
|
14053
|
+ function ($scope, api_user_data, api_statistic, $stateParams) {
|
14054
|
14054
|
console.log($stateParams)
|
14055
|
14055
|
if (angular.isDefined($stateParams.model) && $stateParams.model != "") {
|
14056
|
14056
|
var paramsModel = JSON.parse($stateParams.model)
|
14057
|
14057
|
//来电-添加报修人
|
14058
|
|
- if(paramsModel.model.incident.requester.hjzxPhone){
|
14059
|
|
- $scope.options.templateOptions['addRequeter']('lg',$scope.options,$scope.to.modal);
|
|
14058
|
+ if (paramsModel.model.incident.requester.hjzxPhone) {
|
|
14059
|
+ $scope.options.templateOptions['addRequeter']('lg', $scope.options, $scope.to.modal);
|
14060
|
14060
|
}
|
14061
|
14061
|
}
|
14062
|
14062
|
$scope.options.initialValue = $scope.model[$scope.options.key];
|
|
@@ -14705,7 +14705,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
14705
|
14705
|
defaultOptions: function (options) {
|
14706
|
14706
|
return {
|
14707
|
14707
|
templateOptions: {
|
14708
|
|
- linkage: function () {},
|
|
14708
|
+ linkage: function () { },
|
14709
|
14709
|
},
|
14710
|
14710
|
};
|
14711
|
14711
|
},
|
|
@@ -14986,7 +14986,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
14986
|
14986
|
defaultOptions: function (options) {
|
14987
|
14987
|
return {
|
14988
|
14988
|
templateOptions: {
|
14989
|
|
- transform: function (value) {},
|
|
14989
|
+ transform: function (value) { },
|
14990
|
14990
|
},
|
14991
|
14991
|
};
|
14992
|
14992
|
},
|
|
@@ -15000,14 +15000,18 @@ appFormly.config(function config(formlyConfigProvider) {
|
15000
|
15000
|
var gid = "@0";
|
15001
|
15001
|
var telephone = "9" + teleno;
|
15002
|
15002
|
$rootScope.callout = 2;
|
15003
|
|
- if ($rootScope.takes) {
|
15004
|
|
- api_text
|
15005
|
|
- .dialout($rootScope.takes, gid, telephone)
|
15006
|
|
- .then(function (data) {
|
15007
|
|
- if (data.errno == 0) {
|
15008
|
|
- $rootScope.status = 6;
|
15009
|
|
- }
|
15010
|
|
- });
|
|
15003
|
+ var agcount = tlwsa.tlaGetagentcount();
|
|
15004
|
+ var agcountFlag = false;
|
|
15005
|
+ console.log(teleno)
|
|
15006
|
+ // 查询当前话机是否签入
|
|
15007
|
+ for (var i = 0; i < agcount; i++) {
|
|
15008
|
+ if (tlwsa.tlaGetagentwid(i) == $rootScope.phoneNumber) {
|
|
15009
|
+ agcountFlag = true;
|
|
15010
|
+ }
|
|
15011
|
+ }
|
|
15012
|
+ if (agcountFlag) {
|
|
15013
|
+ var caller = localStorage.getItem('phoneNumber');//呼叫人
|
|
15014
|
+ tlwsa.tlaCallout(teleno, caller, 0);
|
15011
|
15015
|
} else {
|
15012
|
15016
|
SweetAlert.swal({
|
15013
|
15017
|
title: "呼叫失败",
|
|
@@ -15804,7 +15808,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
15804
|
15808
|
scope.grid.appScope.selected.items
|
15805
|
15809
|
) &&
|
15806
|
15810
|
scope.grid.appScope.selected.items[i].id ==
|
15807
|
|
- scope.grid.appScope.selected.items[z].id &&
|
|
15811
|
+ scope.grid.appScope.selected.items[z].id &&
|
15808
|
15812
|
i != z
|
15809
|
15813
|
) {
|
15810
|
15814
|
scope.grid.appScope.selected.items.splice(i, 1);
|
|
@@ -19114,7 +19118,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
19114
|
19118
|
},
|
19115
|
19119
|
};
|
19116
|
19120
|
},
|
19117
|
|
- controller: ["$scope", "$timeout", function ($scope, $timeout) {}],
|
|
19121
|
+ controller: ["$scope", "$timeout", function ($scope, $timeout) { }],
|
19118
|
19122
|
});
|
19119
|
19123
|
|
19120
|
19124
|
//repeatSection
|
|
@@ -19169,11 +19173,11 @@ appFormly.config(function config(formlyConfigProvider) {
|
19169
|
19173
|
field.id =
|
19170
|
19174
|
field.id ||
|
19171
|
19175
|
field.key +
|
19172
|
|
- "_" +
|
19173
|
|
- index +
|
19174
|
|
- "_" +
|
19175
|
|
- $scope.options.templateOptions.unique +
|
19176
|
|
- getRandomInt(0, 9999);
|
|
19176
|
+ "_" +
|
|
19177
|
+ index +
|
|
19178
|
+ "_" +
|
|
19179
|
+ $scope.options.templateOptions.unique +
|
|
19180
|
+ getRandomInt(0, 9999);
|
19177
|
19181
|
});
|
19178
|
19182
|
}
|
19179
|
19183
|
|
|
@@ -19863,13 +19867,13 @@ appFormly.config(function config(formlyConfigProvider) {
|
19863
|
19867
|
.attr(
|
19864
|
19868
|
"d",
|
19865
|
19869
|
"M" +
|
19866
|
|
- mousedown_node.x +
|
19867
|
|
- "," +
|
19868
|
|
- mousedown_node.y +
|
19869
|
|
- "L" +
|
19870
|
|
- mousedown_node.x +
|
19871
|
|
- "," +
|
19872
|
|
- mousedown_node.y
|
|
19870
|
+ mousedown_node.x +
|
|
19871
|
+ "," +
|
|
19872
|
+ mousedown_node.y +
|
|
19873
|
+ "L" +
|
|
19874
|
+ mousedown_node.x +
|
|
19875
|
+ "," +
|
|
19876
|
+ mousedown_node.y
|
19873
|
19877
|
);
|
19874
|
19878
|
|
19875
|
19879
|
restart();
|
|
@@ -21266,7 +21270,7 @@ appFormly.controller("CustomformCtrl", [
|
21266
|
21270
|
if (angular.isDefined($stateParams.model) && $stateParams.model != "") {
|
21267
|
21271
|
var paramsModel = JSON.parse($stateParams.model)
|
21268
|
21272
|
//来电-传话机id
|
21269
|
|
- if(paramsModel.model.incident.sockid){
|
|
21273
|
+ if (paramsModel.model.incident.sockid) {
|
21270
|
21274
|
data0327.incident.callID = paramsModel.model.incident.sockid;
|
21271
|
21275
|
}
|
21272
|
21276
|
}
|
|
@@ -21281,7 +21285,7 @@ appFormly.controller("CustomformCtrl", [
|
21281
|
21285
|
if (
|
21282
|
21286
|
$scope.fileUploader != null &&
|
21283
|
21287
|
$scope.fileUploader.getNotUploadedItems().length >
|
21284
|
|
- 0 &&
|
|
21288
|
+ 0 &&
|
21285
|
21289
|
resData.id
|
21286
|
21290
|
) {
|
21287
|
21291
|
$scope.fileUploader.onBeforeUploadItem =
|
|
@@ -21357,97 +21361,97 @@ appFormly.controller("CustomformCtrl", [
|
21357
|
21361
|
console.log(vm);
|
21358
|
21362
|
//处理日志
|
21359
|
21363
|
// 处理日志不为空并且事件是处理中状态
|
21360
|
|
- if(vm.model.handlerLog&&vm.model.handlerLog.trim()&&vm.model.incident.state.value == 'handler'){
|
21361
|
|
- api_bpm_data.addData('operationLog',{operationLog:{opType:'handlerLog',opValue:vm.model.handlerLog,extra1:vm.model.incident.id}}).then(function(result1){
|
|
21364
|
+ if (vm.model.handlerLog && vm.model.handlerLog.trim() && vm.model.incident.state.value == 'handler') {
|
|
21365
|
+ api_bpm_data.addData('operationLog', { operationLog: { opType: 'handlerLog', opValue: vm.model.handlerLog, extra1: vm.model.incident.id } }).then(function (result1) {
|
21362
|
21366
|
baseHandler();
|
21363
|
21367
|
})
|
21364
|
|
- }else{
|
|
21368
|
+ } else {
|
21365
|
21369
|
baseHandler();
|
21366
|
21370
|
}
|
21367
|
21371
|
// return;
|
21368
|
|
- function baseHandler(){
|
|
21372
|
+ function baseHandler() {
|
21369
|
21373
|
api_bpm_domain
|
21370
|
|
- .complete($stateParams.taskId, userId, vm.model)
|
21371
|
|
- .then(function (response) {
|
21372
|
|
- if (response) {
|
21373
|
|
- var resData = Restangular.stripRestangular(response);
|
21374
|
|
- SweetAlert.swal(
|
21375
|
|
- {
|
21376
|
|
- title: "提交成功!",
|
21377
|
|
- type: "success",
|
21378
|
|
- confirmButtonColor: "#007AFF",
|
21379
|
|
- },
|
21380
|
|
- function () {
|
21381
|
|
- if (
|
21382
|
|
- $scope.fileUploader != null &&
|
21383
|
|
- $scope.fileUploader.getNotUploadedItems().length >
|
|
21374
|
+ .complete($stateParams.taskId, userId, vm.model)
|
|
21375
|
+ .then(function (response) {
|
|
21376
|
+ if (response) {
|
|
21377
|
+ var resData = Restangular.stripRestangular(response);
|
|
21378
|
+ SweetAlert.swal(
|
|
21379
|
+ {
|
|
21380
|
+ title: "提交成功!",
|
|
21381
|
+ type: "success",
|
|
21382
|
+ confirmButtonColor: "#007AFF",
|
|
21383
|
+ },
|
|
21384
|
+ function () {
|
|
21385
|
+ if (
|
|
21386
|
+ $scope.fileUploader != null &&
|
|
21387
|
+ $scope.fileUploader.getNotUploadedItems().length >
|
21384
|
21388
|
0
|
21385
|
|
- ) {
|
21386
|
|
- console.log(vm);
|
21387
|
|
- if (vm.model.incident) {
|
21388
|
|
- // $scope.fileUploader.onBeforeUploadItem = function (item) {
|
21389
|
|
- // angular.extend(item.headers, $rootScope.getSession());
|
21390
|
|
- // item.url = api_bpm_domain.uploadAttachmentJryModel("incident", vm.model.problem.id, '00000', $rootScope.user.id).getRequestedUrl();
|
21391
|
|
- // item.formData.push({
|
21392
|
|
- // 'fileName': item.file.name
|
21393
|
|
- // });
|
21394
|
|
- // };
|
21395
|
|
- // $scope.fileUploader.uploadAll();
|
21396
|
|
- $scope.fileUploader.onBeforeUploadItem =
|
21397
|
|
- function (item) {
|
21398
|
|
- angular.extend(
|
21399
|
|
- item.headers,
|
21400
|
|
- $rootScope.getSession()
|
21401
|
|
- );
|
21402
|
|
- item.url = api_bpm_domain
|
21403
|
|
- .uploadAttachment(
|
21404
|
|
- vm.model.incident.processInstanceId,
|
21405
|
|
- "00000",
|
21406
|
|
- $rootScope.user.id
|
21407
|
|
- )
|
21408
|
|
- .getRequestedUrl();
|
21409
|
|
- item.formData.push({
|
21410
|
|
- fileName: item.file.name,
|
21411
|
|
- });
|
21412
|
|
- //console.log();
|
21413
|
|
- };
|
21414
|
|
- $scope.fileUploader.uploadAll();
|
21415
|
|
- } else if (vm.model.problem) {
|
21416
|
|
- $scope.fileUploader.onBeforeUploadItem =
|
21417
|
|
- function (item) {
|
21418
|
|
- angular.extend(
|
21419
|
|
- item.headers,
|
21420
|
|
- $rootScope.getSession()
|
21421
|
|
- );
|
21422
|
|
- item.url = api_bpm_domain
|
21423
|
|
- .uploadAttachmentJryModel(
|
21424
|
|
- "problem",
|
21425
|
|
- vm.model.problem.id,
|
21426
|
|
- "00000",
|
21427
|
|
- $rootScope.user.id
|
21428
|
|
- )
|
21429
|
|
- .getRequestedUrl();
|
21430
|
|
- item.formData.push({
|
21431
|
|
- fileName: item.file.name,
|
21432
|
|
- });
|
21433
|
|
- };
|
21434
|
|
- $scope.fileUploader.uploadAll();
|
21435
|
|
- } else if (vm.model.change) {
|
|
21389
|
+ ) {
|
|
21390
|
+ console.log(vm);
|
|
21391
|
+ if (vm.model.incident) {
|
|
21392
|
+ // $scope.fileUploader.onBeforeUploadItem = function (item) {
|
|
21393
|
+ // angular.extend(item.headers, $rootScope.getSession());
|
|
21394
|
+ // item.url = api_bpm_domain.uploadAttachmentJryModel("incident", vm.model.problem.id, '00000', $rootScope.user.id).getRequestedUrl();
|
|
21395
|
+ // item.formData.push({
|
|
21396
|
+ // 'fileName': item.file.name
|
|
21397
|
+ // });
|
|
21398
|
+ // };
|
|
21399
|
+ // $scope.fileUploader.uploadAll();
|
|
21400
|
+ $scope.fileUploader.onBeforeUploadItem =
|
|
21401
|
+ function (item) {
|
|
21402
|
+ angular.extend(
|
|
21403
|
+ item.headers,
|
|
21404
|
+ $rootScope.getSession()
|
|
21405
|
+ );
|
|
21406
|
+ item.url = api_bpm_domain
|
|
21407
|
+ .uploadAttachment(
|
|
21408
|
+ vm.model.incident.processInstanceId,
|
|
21409
|
+ "00000",
|
|
21410
|
+ $rootScope.user.id
|
|
21411
|
+ )
|
|
21412
|
+ .getRequestedUrl();
|
|
21413
|
+ item.formData.push({
|
|
21414
|
+ fileName: item.file.name,
|
|
21415
|
+ });
|
|
21416
|
+ //console.log();
|
|
21417
|
+ };
|
|
21418
|
+ $scope.fileUploader.uploadAll();
|
|
21419
|
+ } else if (vm.model.problem) {
|
|
21420
|
+ $scope.fileUploader.onBeforeUploadItem =
|
|
21421
|
+ function (item) {
|
|
21422
|
+ angular.extend(
|
|
21423
|
+ item.headers,
|
|
21424
|
+ $rootScope.getSession()
|
|
21425
|
+ );
|
|
21426
|
+ item.url = api_bpm_domain
|
|
21427
|
+ .uploadAttachmentJryModel(
|
|
21428
|
+ "problem",
|
|
21429
|
+ vm.model.problem.id,
|
|
21430
|
+ "00000",
|
|
21431
|
+ $rootScope.user.id
|
|
21432
|
+ )
|
|
21433
|
+ .getRequestedUrl();
|
|
21434
|
+ item.formData.push({
|
|
21435
|
+ fileName: item.file.name,
|
|
21436
|
+ });
|
|
21437
|
+ };
|
|
21438
|
+ $scope.fileUploader.uploadAll();
|
|
21439
|
+ } else if (vm.model.change) {
|
|
21440
|
+ }
|
21436
|
21441
|
}
|
|
21442
|
+ $state.go($scope.formData.cancelUrl);
|
21437
|
21443
|
}
|
21438
|
|
- $state.go($scope.formData.cancelUrl);
|
21439
|
|
- }
|
21440
|
|
- );
|
21441
|
|
- } else {
|
21442
|
|
- SweetAlert.swal({
|
21443
|
|
- title: "系统错误",
|
21444
|
|
- text: "系统错误,请稍后重试!",
|
21445
|
|
- type: "error",
|
21446
|
|
- confirmButtonColor: "#DD6B55",
|
21447
|
|
- });
|
21448
|
|
- }
|
21449
|
|
- $scope.ldloading[style.replace("-", "_")] = false;
|
21450
|
|
- });
|
|
21444
|
+ );
|
|
21445
|
+ } else {
|
|
21446
|
+ SweetAlert.swal({
|
|
21447
|
+ title: "系统错误",
|
|
21448
|
+ text: "系统错误,请稍后重试!",
|
|
21449
|
+ type: "error",
|
|
21450
|
+ confirmButtonColor: "#DD6B55",
|
|
21451
|
+ });
|
|
21452
|
+ }
|
|
21453
|
+ $scope.ldloading[style.replace("-", "_")] = false;
|
|
21454
|
+ });
|
21451
|
21455
|
}
|
21452
|
21456
|
break;
|
21453
|
21457
|
case "back":
|