Просмотр исходного кода

Merge branch 'fix/Process.org_defaultvalue_add_unit' into 'release'

Merge of fix/[流程管理]人员选组组件默认值中增加职务 to release

See merge request o2oa/o2oa!335
蔡祥熠 5 лет назад
Родитель
Сommit
865e66e85a

+ 6 - 0
o2web/source/x_component_cms_FormDesigner/Module/Org/org.html

@@ -71,6 +71,12 @@
                     <div class="MWFPersonUnit" name="unitValue" type="unit"></div>
                 </td>
             </tr>
+            <tr>
+                <td class="editTableTitle">职  位:</td>
+                <td class="editTableValue">
+                    <div class="MWFDutySelector" name="dutyValue"></div>
+                </td>
+            </tr>
             <!--<tr>-->
                 <!--<td class="editTableTitle">群  组:</td>-->
                 <!--<td class="editTableValue">-->

+ 6 - 0
o2web/source/x_component_process_FormDesigner/Module/Org/org.html

@@ -71,6 +71,12 @@
                     <div class="MWFPersonUnit" name="unitValue" type="unit"></div>
                 </td>
             </tr>
+            <tr>
+                <td class="editTableTitle">职  位:</td>
+                <td class="editTableValue">
+                    <div class="MWFDutySelector" name="dutyValue"></div>
+                </td>
+            </tr>
             <!--<tr>-->
                 <!--<td class="editTableTitle">群  组:</td>-->
                 <!--<td class="editTableValue">-->

+ 0 - 7
o2web/source/x_component_process_Xform/Org.js

@@ -103,16 +103,9 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg =  new Class({
                 dutys.each(function(duty){
                     if (duty.code) par = this.form.Macro.exec(duty.code, this);
                     var code = "return this.org.getDuty(\""+duty.name+"\", \""+par+"\")";
-
-                    //var code = "return this.org.getDepartmentDuty({\"name\": \""+duty.name+"\", \"departmentName\": \""+par+"\"})";
                     var d = this.form.Macro.exec(code, this);
                     if (typeOf(d)!=="array") d = (d) ? [d.toString()] : [];
                     d.each(function(dd){if (dd) values.push(dd);});
-
-                    // code = "return this.org.getCompanyDuty({\"name\": \""+duty.name+"\", \"compName\": \""+par+"\"})";
-                    // d = this.form.Macro.exec(code, this);
-                    // if (typeOf(d)!=="array") d = (d) ? [d.toString()] : [];
-                    // d.each(function(dd){values.push(dd);});
                 }.bind(this));
             }
         }