[SSE] Refactoring pivot table
This commit is contained in:
parent
b80686c318
commit
8b455af381
|
@ -415,8 +415,8 @@ define([
|
||||||
models[index].set({
|
models[index].set({
|
||||||
pivotIndex: pivotIndex,
|
pivotIndex: pivotIndex,
|
||||||
index : index,
|
index : index,
|
||||||
value : name,
|
value : name || '',
|
||||||
tip : (name.length>10) ? name : ''
|
tip : (name && name.length>10) ? name : ''
|
||||||
});
|
});
|
||||||
} else
|
} else
|
||||||
arr.push(new Common.UI.DataViewModel({
|
arr.push(new Common.UI.DataViewModel({
|
||||||
|
@ -424,8 +424,8 @@ define([
|
||||||
allowSelected : false,
|
allowSelected : false,
|
||||||
pivotIndex : pivotIndex,
|
pivotIndex : pivotIndex,
|
||||||
index : index,
|
index : index,
|
||||||
value : name,
|
value : name || '',
|
||||||
tip : (name.length>10) ? name : ''
|
tip : (name && name.length>10) ? name : ''
|
||||||
}));
|
}));
|
||||||
isChecked[getNameFunction ? name : me._state.names[pivotIndex]] = true;
|
isChecked[getNameFunction ? name : me._state.names[pivotIndex]] = true;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue