|
|
@@ -234,7 +234,15 @@ let sectionTreeObj = {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ loadRateWidth: function () {
|
|
|
+ if (this.workBook) {
|
|
|
+ //ID列固定40宽度
|
|
|
+ let spreadWidth = $('#sectionSpread').width() - 65; //65: 列头宽度和垂直滚动条宽度和
|
|
|
+ let IDRate = 40 / spreadWidth,
|
|
|
+ nameRate = 1 - IDRate;
|
|
|
+ sheetCommonObj.setColumnWidthByRate($('#sectionSpread').width() - 65, this.workBook, [{rateWidth: IDRate}, {rateWidth: nameRate}]);
|
|
|
+ }
|
|
|
+ },
|
|
|
getSectionTree: function (repId) {
|
|
|
let me = sectionTreeObj;
|
|
|
let url = 'api/getRationTree';
|
|
|
@@ -253,6 +261,7 @@ let sectionTreeObj = {
|
|
|
me.sheet.setFormatter(-1, 0, '@');
|
|
|
me.initSelection(me.tree.selected);
|
|
|
explanatoryOprObj.bindEvents(exEditor, calcEditor);
|
|
|
+ me.loadRateWidth();
|
|
|
};
|
|
|
let errFunc = function () {
|
|
|
|