|
@@ -1,5 +1,3 @@
|
1
|
|
-
|
2
|
|
-
|
3
|
1
|
/**
|
4
|
2
|
*
|
5
|
3
|
* @author sog
|
|
@@ -30,17 +28,17 @@ require(
|
30
|
28
|
|
31
|
29
|
var includeRelatios = [
|
32
|
30
|
{id: 'include', text: '包含'}
|
33
|
|
- , {id: 'exclude', text: '不包含'}
|
|
31
|
+ , {id: 'exclude', text: '不包含'}
|
34
|
32
|
];
|
35
|
33
|
|
36
|
34
|
var existRelatios = [
|
37
|
35
|
{id: 'exist', text: '存在'}
|
38
|
|
- , {id: 'nothingness', text: '不存在'}
|
|
36
|
+ , {id: 'nothingness', text: '不存在'}
|
39
|
37
|
];
|
40
|
38
|
|
41
|
39
|
var yesRelations = [
|
42
|
40
|
{id: 'is', text: '是'}
|
43
|
|
- , {id: 'not', text: '不是'}
|
|
41
|
+ , {id: 'not', text: '不是'}
|
44
|
42
|
];
|
45
|
43
|
|
46
|
44
|
var tbodyTpl = Handlebars.compile(tbodyTxt);
|
|
@@ -359,10 +357,14 @@ require(
|
359
|
357
|
callback: function (choiceOrganizations) {
|
360
|
358
|
if (choiceOrganizations) {
|
361
|
359
|
var names = [];
|
|
360
|
+ var orgArray = [];
|
362
|
361
|
$.each(choiceOrganizations, function (i, val) {
|
363
|
362
|
names.push(val.name);
|
|
363
|
+ val.id = val.id.replace("ORG", "");
|
|
364
|
+ val.pid = val.pid.replace("ORG", "");
|
|
365
|
+ orgArray.push(val);
|
364
|
366
|
});
|
365
|
|
- iptSelect.val(JSON.stringify(choiceOrganizations));
|
|
367
|
+ iptSelect.val(JSON.stringify(orgArray));
|
366
|
368
|
iptValue.val(names.join(','));
|
367
|
369
|
}
|
368
|
370
|
}
|
|
@@ -375,10 +377,13 @@ require(
|
375
|
377
|
callback: function (choiceOrganizations) {
|
376
|
378
|
if (choiceOrganizations) {
|
377
|
379
|
var names = [];
|
|
380
|
+ var userArray = [];
|
378
|
381
|
$.each(choiceOrganizations, function (i, val) {
|
379
|
382
|
names.push(val.name);
|
|
383
|
+ val.orgId = val.orgId.replace("ORG", "");
|
|
384
|
+ userArray.push(val)
|
380
|
385
|
});
|
381
|
|
- iptSelect.val(JSON.stringify(choiceOrganizations));
|
|
386
|
+ iptSelect.val(JSON.stringify(userArray));
|
382
|
387
|
iptValue.val(names.join(','));
|
383
|
388
|
}
|
384
|
389
|
}
|
|
@@ -492,7 +497,10 @@ require(
|
492
|
497
|
var comboValues = $conditionIndexPanel.find('select.combo_value').select2('data');
|
493
|
498
|
if (comboValues && comboValues.length > 0) {
|
494
|
499
|
var userProjectSelect = comboValues[0];
|
495
|
|
- data['userProject'] = {id: userProjectSelect.id, name: userProjectSelect.text};
|
|
500
|
+ data['userProject'] = {
|
|
501
|
+ id: userProjectSelect.id,
|
|
502
|
+ name: userProjectSelect.text
|
|
503
|
+ };
|
496
|
504
|
}
|
497
|
505
|
break;
|
498
|
506
|
case 7:
|
|
@@ -530,7 +538,10 @@ require(
|
530
|
538
|
var roleSize_8 = projectRole_8.length;
|
531
|
539
|
for (var r_index_8 = 0; r_index_8 < roleSize_8; r_index_8++) {
|
532
|
540
|
p_role_8 = projectRole_8[r_index_8];
|
533
|
|
- p_roles_8.push({id: p_role_8.id, name: p_role_8.text})
|
|
541
|
+ p_roles_8.push({
|
|
542
|
+ id: p_role_8.id,
|
|
543
|
+ name: p_role_8.text
|
|
544
|
+ })
|
534
|
545
|
}
|
535
|
546
|
data['projectRoles'] = p_roles_8;
|
536
|
547
|
console.log('p_roles_8', p_role_8);
|