浏览代码

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

JIEZ //你的用户名 2 年之前
父节点
当前提交
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
                     countersign: countersign,
744
                     countersign: countersign,
745
                     id: JTDC.guid()
745
                     id: JTDC.guid()
746
                 });
746
                 });
747
+                console.log(page.approverCondition);
747
                 $(page.el.val).val(JSON.stringify(page.approverCondition));
748
                 $(page.el.val).val(JSON.stringify(page.approverCondition));
748
                 page.renderTable();
749
                 page.renderTable();
749
                 layer.close(index);
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
                             subject: subjects,
330
                             subject: subjects,
331
                             id: JTDC.guid()
331
                             id: JTDC.guid()
332
                         });
332
                         });
333
+                        console.log(ccCondition);
333
                         $(el.val).val(JSON.stringify(ccCondition));
334
                         $(el.val).val(JSON.stringify(ccCondition));
334
                         renderTable();
335
                         renderTable();
335
                         layer.close(index);
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
  * @author sog
3
  * @author sog
@@ -30,17 +28,17 @@ require(
30
 
28
 
31
         var includeRelatios = [
29
         var includeRelatios = [
32
             {id: 'include', text: '包含'}
30
             {id: 'include', text: '包含'}
33
-            ,  {id: 'exclude', text: '不包含'}
31
+            , {id: 'exclude', text: '不包含'}
34
         ];
32
         ];
35
 
33
 
36
         var existRelatios = [
34
         var existRelatios = [
37
             {id: 'exist', text: '存在'}
35
             {id: 'exist', text: '存在'}
38
-            ,  {id: 'nothingness', text: '不存在'}
36
+            , {id: 'nothingness', text: '不存在'}
39
         ];
37
         ];
40
 
38
 
41
         var yesRelations = [
39
         var yesRelations = [
42
             {id: 'is', text: '是'}
40
             {id: 'is', text: '是'}
43
-            ,  {id: 'not', text: '不是'}
41
+            , {id: 'not', text: '不是'}
44
         ];
42
         ];
45
 
43
 
46
         var tbodyTpl = Handlebars.compile(tbodyTxt);
44
         var tbodyTpl = Handlebars.compile(tbodyTxt);
@@ -359,10 +357,14 @@ require(
359
                                 callback: function (choiceOrganizations) {
357
                                 callback: function (choiceOrganizations) {
360
                                     if (choiceOrganizations) {
358
                                     if (choiceOrganizations) {
361
                                         var names = [];
359
                                         var names = [];
360
+                                        var orgArray = [];
362
                                         $.each(choiceOrganizations, function (i, val) {
361
                                         $.each(choiceOrganizations, function (i, val) {
363
                                             names.push(val.name);
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
                                         iptValue.val(names.join(','));
368
                                         iptValue.val(names.join(','));
367
                                     }
369
                                     }
368
                                 }
370
                                 }
@@ -375,10 +377,13 @@ require(
375
                                 callback: function (choiceOrganizations) {
377
                                 callback: function (choiceOrganizations) {
376
                                     if (choiceOrganizations) {
378
                                     if (choiceOrganizations) {
377
                                         var names = [];
379
                                         var names = [];
380
+                                        var userArray = [];
378
                                         $.each(choiceOrganizations, function (i, val) {
381
                                         $.each(choiceOrganizations, function (i, val) {
379
                                             names.push(val.name);
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
                                         iptValue.val(names.join(','));
387
                                         iptValue.val(names.join(','));
383
                                     }
388
                                     }
384
                                 }
389
                                 }
@@ -492,7 +497,10 @@ require(
492
                                         var comboValues = $conditionIndexPanel.find('select.combo_value').select2('data');
497
                                         var comboValues = $conditionIndexPanel.find('select.combo_value').select2('data');
493
                                         if (comboValues && comboValues.length > 0) {
498
                                         if (comboValues && comboValues.length > 0) {
494
                                             var userProjectSelect = comboValues[0];
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
                                         break;
505
                                         break;
498
                                     case 7:
506
                                     case 7:
@@ -530,7 +538,10 @@ require(
530
                                             var roleSize_8 = projectRole_8.length;
538
                                             var roleSize_8 = projectRole_8.length;
531
                                             for (var r_index_8 = 0; r_index_8 < roleSize_8; r_index_8++) {
539
                                             for (var r_index_8 = 0; r_index_8 < roleSize_8; r_index_8++) {
532
                                                 p_role_8 = projectRole_8[r_index_8];
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
                                             data['projectRoles'] = p_roles_8;
546
                                             data['projectRoles'] = p_roles_8;
536
                                             console.log('p_roles_8', p_role_8);
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
                     yes: function (index, layero) {
85
                     yes: function (index, layero) {
86
                         var body = layer.getChildFrame('body', index); //LAYER对象下的方法,获取子iframe中的DOM
86
                         var body = layer.getChildFrame('body', index); //LAYER对象下的方法,获取子iframe中的DOM
87
                         var conditionText = body.contents().find('#condition_val').val();
87
                         var conditionText = body.contents().find('#condition_val').val();
88
+                        console.log(conditionText);
88
                         if (conditionText && conditionText.length > 0) {
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
                         layer.close(index);
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
         <input type="hidden" id="ipt-cc-select-value" value="[]">
12
         <input type="hidden" id="ipt-cc-select-value" value="[]">
13
 
13
 
14
     </div>
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
 </div>
26
 </div>