|
@@ -74,33 +74,48 @@ let rationOprObj = {
|
|
me.rationSelInit(row);
|
|
me.rationSelInit(row);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- rationSelInit: function (row) {
|
|
|
|
|
|
+ //focusOnSection,焦点返回章节表
|
|
|
|
+ rationSelInit: function (row, focusOnSection = null) {
|
|
let me = rationOprObj,
|
|
let me = rationOprObj,
|
|
sheetGLJ = rationGLJOprObj.sheet, settingGLJ = rationGLJOprObj.setting,
|
|
sheetGLJ = rationGLJOprObj.sheet, settingGLJ = rationGLJOprObj.setting,
|
|
sheetCoe = rationCoeOprObj.sheet, settingCoe = rationCoeOprObj.setting,
|
|
sheetCoe = rationCoeOprObj.sheet, settingCoe = rationCoeOprObj.setting,
|
|
sheetAss = rationAssistOprObj.sheet, settingAss = rationAssistOprObj.setting,
|
|
sheetAss = rationAssistOprObj.sheet, settingAss = rationAssistOprObj.setting,
|
|
sheetInst = rationInstObj.sheet, settingInst = rationInstObj.setting;
|
|
sheetInst = rationInstObj.sheet, settingInst = rationInstObj.setting;
|
|
- sheetCommonObj.cleanSheet(sheetGLJ, settingGLJ, -1);
|
|
|
|
- sheetCommonObj.cleanSheet(sheetCoe, settingCoe, -1);
|
|
|
|
- sheetCommonObj.cleanSheet(sheetAss, settingAss, -1);
|
|
|
|
- sheetCommonObj.cleanSheet(sheetInst, settingInst, -1);
|
|
|
|
|
|
+ sheetCommonObj.cleanData(sheetGLJ, settingGLJ, -1);
|
|
|
|
+ sheetCommonObj.cleanData(sheetCoe, settingCoe, -1);
|
|
|
|
+ sheetCommonObj.cleanData(sheetAss, settingAss, -1);
|
|
|
|
+ sheetCommonObj.cleanData(sheetInst, settingInst, -1);
|
|
let cacheSection = me.getCache();
|
|
let cacheSection = me.getCache();
|
|
if (cacheSection && row < cacheSection.length) {
|
|
if (cacheSection && row < cacheSection.length) {
|
|
rationGLJOprObj.getGljItems(cacheSection[row], function () {
|
|
rationGLJOprObj.getGljItems(cacheSection[row], function () {
|
|
- me.workBook.focus(true);
|
|
|
|
|
|
+ if (focusOnSection) {
|
|
|
|
+ sectionTreeObj.workBook.focus(true);
|
|
|
|
+ } else {
|
|
|
|
+ me.workBook.focus(true);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
rationCoeOprObj.getCoeItems(cacheSection[row], function () {
|
|
rationCoeOprObj.getCoeItems(cacheSection[row], function () {
|
|
- me.workBook.focus(true);
|
|
|
|
|
|
+ if (focusOnSection) {
|
|
|
|
+ sectionTreeObj.workBook.focus(true);
|
|
|
|
+ } else {
|
|
|
|
+ me.workBook.focus(true);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
rationAssistOprObj.getAssItems(cacheSection[row]);
|
|
rationAssistOprObj.getAssItems(cacheSection[row]);
|
|
rationInstObj.getInstItems(cacheSection[row], function () {
|
|
rationInstObj.getInstItems(cacheSection[row], function () {
|
|
- me.workBook.focus(true);
|
|
|
|
|
|
+ if (focusOnSection) {
|
|
|
|
+ sectionTreeObj.workBook.focus(true);
|
|
|
|
+ } else {
|
|
|
|
+ me.workBook.focus(true);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
rationGLJOprObj.currentRationItem = null;
|
|
rationGLJOprObj.currentRationItem = null;
|
|
}
|
|
}
|
|
- me.workBook.focus(true);
|
|
|
|
|
|
+ if (!focusOnSection) {
|
|
|
|
+ me.workBook.focus(true);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
isDef: function (v) {
|
|
isDef: function (v) {
|
|
return v !== undefined && v !== null;
|
|
return v !== undefined && v !== null;
|