|
@@ -126,17 +126,28 @@ var rationCoeOprObj = {
|
|
|
newAddArr.push(rstArr[i]);
|
|
|
};
|
|
|
};
|
|
|
+
|
|
|
+ curCache = curCache.concat(newAddArr);
|
|
|
+
|
|
|
curCache.sort(function(a, b) {
|
|
|
var rst = 0;
|
|
|
- if (a > b) rst = 1
|
|
|
- else if (a < b) rst = -1;
|
|
|
+ if (a.ID > b.ID) rst = 1
|
|
|
+ else if (a.ID < b.ID) rst = -1;
|
|
|
return rst;
|
|
|
});
|
|
|
- me.cache["_Coe_" + me.curRation.ID] = curCache.concat(newAddArr);
|
|
|
+
|
|
|
+ me.cache["_Coe_" + me.curRation.ID] = curCache;
|
|
|
if (newAddArr.length > 0) {
|
|
|
me.updateCurRation();
|
|
|
};
|
|
|
}else{
|
|
|
+ rstArr.sort(function(a, b) {
|
|
|
+ var rst = 0;
|
|
|
+ if (a.ID > b.ID) rst = 1
|
|
|
+ else if (a.ID < b.ID) rst = -1;
|
|
|
+ return rst;
|
|
|
+ });
|
|
|
+
|
|
|
me.cache["_Coe_" + me.curRation.ID] = rstArr;
|
|
|
me.updateCurRation();
|
|
|
};
|