Browse Source

fix: 线设置部门扭转问题修复

JIEZ //你的用户名 2 years ago
parent
commit
08db08554d

+ 1 - 0
bpm-core/src/main/resources/static/designer/app/controllers/process/designer/approver.js

@@ -744,6 +744,7 @@ require(['text!view/process/approver_table_tbody.hbs'
744 744
                     countersign: countersign,
745 745
                     id: JTDC.guid()
746 746
                 });
747
+                console.log(page.approverCondition);
747 748
                 $(page.el.val).val(JSON.stringify(page.approverCondition));
748 749
                 page.renderTable();
749 750
                 layer.close(index);

+ 1 - 0
bpm-core/src/main/resources/static/designer/app/controllers/process/designer/cc.js

@@ -330,6 +330,7 @@ require(['text!view/process/cc_table_tbody.hbs',
330 330
                             subject: subjects,
331 331
                             id: JTDC.guid()
332 332
                         });
333
+                        console.log(ccCondition);
333 334
                         $(el.val).val(JSON.stringify(ccCondition));
334 335
                         renderTable();
335 336
                         layer.close(index);

+ 20 - 9
bpm-core/src/main/resources/static/designer/app/controllers/process/designer/line.js

@@ -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);

+ 3 - 1
bpm-core/src/main/resources/static/designer/app/design/flow-node-setting/panel/line.js

@@ -85,8 +85,10 @@ define(function (require, exports, module) {
85 85
                     yes: function (index, layero) {
86 86
                         var body = layer.getChildFrame('body', index); //LAYER对象下的方法,获取子iframe中的DOM
87 87
                         var conditionText = body.contents().find('#condition_val').val();
88
+                        console.log(conditionText);
88 89
                         if (conditionText && conditionText.length > 0) {
89
-                            self.setNodeSetting('conditions', JSON.parse(conditionText));
90
+                            var conditions = JSON.parse(conditionText);
91
+                            self.setNodeSetting('conditions', conditions);
90 92
                         }
91 93
                         layer.close(index);
92 94
                     }

+ 10 - 10
bpm-core/src/main/resources/static/designer/app/tpl/process/cc.hbs

@@ -12,15 +12,15 @@
12 12
         <input type="hidden" id="ipt-cc-select-value" value="[]">
13 13
 
14 14
     </div>
15
-    <div class="clo-md-12 pt5">
15
+{{!--     <div class="clo-md-12 pt5"> --}}
16 16
 
17
-        <div class="bs-component ">
18
-            <div class="checkbox-custom">
19
-                <input type="checkbox" name="type" value="2" id="type_2">
20
-                <label for="type_2">申请人直接上级</label>
21
-                <input type="checkbox" name="type" value="3" id="type_3">
22
-                <label for="type_3">审批人直接上级</label>
23
-            </div>
24
-        </div>
25
-    </div>
17
+{{!--         <div class="bs-component "> --}}
18
+{{!--             <div class="checkbox-custom"> --}}
19
+{{!--                 <input type="checkbox" name="type" value="2" id="type_2"> --}}
20
+{{!--                 <label for="type_2">申请人直接上级</label> --}}
21
+{{!--                 <input type="checkbox" name="type" value="3" id="type_3"> --}}
22
+{{!--                 <label for="type_3">审批人直接上级</label> --}}
23
+{{!--             </div> --}}
24
+{{!--         </div> --}}
25
+{{!--     </div> --}}
26 26
 </div>