|
@@ -187,6 +187,14 @@ var rationLibObj = {
|
|
|
},
|
|
|
loadSectionRations: function (sectionID) {
|
|
|
let me = this;
|
|
|
+ if(sectionID === undefined && me.rationChapterSpread){
|
|
|
+ let sel = me.rationChapterSpread.getSheet(0).getSelections();
|
|
|
+ if(sel && sel.length > 0){
|
|
|
+ let node = me.tree.items[sel[0].row];
|
|
|
+ if(node) sectionID = node.data.ID;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // rationLibObj.rationChapterSpread.getSheet(0)
|
|
|
var showDatas = function (datas, setting) {
|
|
|
let rationSheet = rationLibObj.sectionRationsSpread.getActiveSheet();
|
|
|
/*TREE_SHEET_HELPER.massOperationSheet(rationSheet, function () {
|