提交 2e6b1a54 编写于 作者: U unknown

修复按职务选人没有按传入单位顺序显示的问题

上级 7e7981e6
......@@ -143,7 +143,7 @@ MWF.xApplication.Selector.IdentityWidthDutyCategoryByUnit = new Class({
if (this.options.dutyUnitLevelBy === "duty") {
this.level1Container = [];
if (this.options.units && this.options.units.length) {
this.options.units.each( function () {
this.options.units.each( function (unit ,i) {
var div = new Element("div").inject(this.itemAreaNode);
this.level1Container.push(div);
}.bind(this))
......@@ -200,7 +200,7 @@ MWF.xApplication.Selector.IdentityWidthDutyCategoryByUnit = new Class({
var container = this.itemAreaNode;
if (this.level1Container && this.level1Container.length) {
var index = this.getIndexFromUnitOption(unit);
if (index > -1 && (this.level1Container.length > index) && this.level1Container[i]) container = this.level1Container[i];
if (index > -1 && (this.level1Container.length > index) && this.level1Container[index]) container = this.level1Container[index];
}
var category = this._newItemCategory("ItemCategory", unit, this, container);
this.subCategorys.push(category);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册