|
@@ -121,7 +121,7 @@ let gljSelOprObj = {
|
|
|
initView: async function (gljLibId, isInitial) {
|
|
|
try {
|
|
|
$.bootstrapLoading.start();
|
|
|
- const { libData, treeData, distTypeTree, stdGLJ, complementaryGLJs } = await this.getViewData(gljLibId);
|
|
|
+ let { libData, treeData, distTypeTree, stdGLJ, complementaryGLJs } = await this.getViewData(gljLibId);
|
|
|
if (isInitial) {
|
|
|
this.initLibOptions(libData);
|
|
|
$('#gljSearchKeyword').val('');
|
|
@@ -131,6 +131,10 @@ let gljSelOprObj = {
|
|
|
this.buildSheet($('#gljSelSheet')[0]);
|
|
|
}
|
|
|
this.distTypeTree = distTypeTree;
|
|
|
+ if (gljLibId === 0) {
|
|
|
+ stdGLJ = pageOprObj.mixedGLJData.stdGljs;
|
|
|
+ complementaryGLJs = pageOprObj.mixedGLJData.complementaryGljs;
|
|
|
+ }
|
|
|
this.setGLJItems(stdGLJ, complementaryGLJs);
|
|
|
this.selectedList = [].concat(rationGLJOprObj.cache['_GLJ_' + rationGLJOprObj.currentRationItem.ID]);
|
|
|
this.showGljList = [];
|