|
@@ -237,33 +237,19 @@ app.controller('scoreConfigurationPerformanceCtrl', ["$rootScope", "$scope", "$s
|
237
|
237
|
console.log(result);
|
238
|
238
|
var postData = {
|
239
|
239
|
ids: result.selectedItems.map(v => v.id).toString(),
|
240
|
|
- removeComplexity: 1,
|
241
|
|
- removeRules: 1
|
|
240
|
+ complexity: result.defaultScore?result.defaultScore.id:undefined,
|
|
241
|
+ rules: result.configs.length?result.configs:undefined
|
242
|
242
|
}
|
243
|
243
|
if (result) {
|
244
|
244
|
$rootScope.isMask = true;
|
245
|
245
|
api_bpm_data.setScoreRule(postData).then(function (response) {
|
246
|
246
|
$rootScope.isMask = false;
|
247
|
247
|
if(response.status == 200){
|
248
|
|
- var postData = {
|
249
|
|
- ids: result.selectedItems.map(v => v.id).toString(),
|
250
|
|
- complexity: result.defaultScore?result.defaultScore.id:undefined,
|
251
|
|
- rules: result.configs.length?result.configs:undefined
|
252
|
|
- }
|
253
|
|
- api_bpm_data.setScoreRule(postData).then(function (response) {
|
254
|
|
- if(response.status == 200){
|
255
|
|
- SweetAlert.swal({
|
256
|
|
- title: "操作成功!",
|
257
|
|
- type: "success",
|
258
|
|
- });
|
259
|
|
- result.refreshData('expand-right', result.fileData);
|
260
|
|
- }else{
|
261
|
|
- SweetAlert.swal({
|
262
|
|
- title: "操作失败!",
|
263
|
|
- type: "error",
|
264
|
|
- });
|
265
|
|
- }
|
266
|
|
- })
|
|
248
|
+ SweetAlert.swal({
|
|
249
|
+ title: "操作成功!",
|
|
250
|
+ type: "success",
|
|
251
|
+ });
|
|
252
|
+ result.refreshData('expand-right', result.fileData);
|
267
|
253
|
}else{
|
268
|
254
|
SweetAlert.swal({
|
269
|
255
|
title: "操作失败!",
|
|
@@ -355,33 +341,19 @@ app.controller('scoreConfigurationPerformanceCtrl', ["$rootScope", "$scope", "$s
|
355
|
341
|
console.log(result);
|
356
|
342
|
var postData = {
|
357
|
343
|
ids: result.selectedItems.map(v => v.id).toString(),
|
358
|
|
- removeComplexity: 1,
|
359
|
|
- removeRules: 1
|
|
344
|
+ complexity: result.defaultScore?result.defaultScore.id:undefined,
|
|
345
|
+ rules: result.configs.length?result.configs:undefined
|
360
|
346
|
}
|
361
|
347
|
if (result) {
|
362
|
348
|
$rootScope.isMask = true;
|
363
|
349
|
api_bpm_data.setScoreRule(postData).then(function (response) {
|
364
|
350
|
$rootScope.isMask = false;
|
365
|
351
|
if(response.status == 200){
|
366
|
|
- var postData = {
|
367
|
|
- ids: result.selectedItems.map(v => v.id).toString(),
|
368
|
|
- complexity: result.defaultScore?result.defaultScore.id:undefined,
|
369
|
|
- rules: result.configs.length?result.configs:undefined
|
370
|
|
- }
|
371
|
|
- api_bpm_data.setScoreRule(postData).then(function (response) {
|
372
|
|
- if(response.status == 200){
|
373
|
|
- SweetAlert.swal({
|
374
|
|
- title: "操作成功!",
|
375
|
|
- type: "success",
|
376
|
|
- });
|
377
|
|
- result.refreshData('expand-right', result.fileData);
|
378
|
|
- }else{
|
379
|
|
- SweetAlert.swal({
|
380
|
|
- title: "操作失败!",
|
381
|
|
- type: "error",
|
382
|
|
- });
|
383
|
|
- }
|
384
|
|
- })
|
|
352
|
+ SweetAlert.swal({
|
|
353
|
+ title: "操作成功!",
|
|
354
|
+ type: "success",
|
|
355
|
+ });
|
|
356
|
+ result.refreshData('expand-right', result.fileData);
|
385
|
357
|
}else{
|
386
|
358
|
SweetAlert.swal({
|
387
|
359
|
title: "操作失败!",
|