|
@@ -21,6 +21,7 @@ var projectObj = {
|
|
|
},
|
|
|
treeSelectedChanged: function (node) {
|
|
|
let project = projectObj.project;
|
|
|
+ let mainSheet = projectObj.mainController.sheet;
|
|
|
//设置选中行底色和恢复前选中行底色
|
|
|
let refreshNodes = [node];
|
|
|
if(!project.mainTree.preSelected){
|
|
@@ -478,16 +479,21 @@ var projectObj = {
|
|
|
mainSpreadLeaveCell: function (sender, info) {
|
|
|
let colSetting = projectObj.mainController.setting.cols[info.col];
|
|
|
projectObj.lastCol = colSetting;
|
|
|
+ projectObj.lastCell = {row: info.row, col: info.col};
|
|
|
},
|
|
|
//repaint 动态下拉框
|
|
|
mainSpreadEnterCell: function (sender, info) {
|
|
|
let colSetting = projectObj.mainController.setting.cols[info.col];
|
|
|
if(colSetting.data.field === 'unit' || (projectObj.lastCol&&projectObj.lastCol.data.field === 'unit')||colSetting.data.field ==='subType'
|
|
|
|| (projectObj.lastCol&&projectObj.lastCol.data.field === 'subType') || colSetting.data.field === 'programID' ||(projectObj.lastCol&&projectObj.lastCol.data.field === 'programID')){
|
|
|
- /*let hideRowFilter =new GC.Spread.Sheets.Filter.HideRowFilter(info.sheet.getRange(-1, info.col, -1, 1));
|
|
|
- info.sheet.rowFilter(hideRowFilter);
|
|
|
- info.sheet.resumePaint();*/
|
|
|
- info.sheet.repaint();
|
|
|
+ let rects = [];
|
|
|
+ rects.push(info.sheet.getCellRect(info.row, info.col));
|
|
|
+ if(projectObj.lastCell){
|
|
|
+ rects.push(info.sheet.getCellRect(projectObj.lastCell.row, projectObj.lastCell.col));
|
|
|
+ }
|
|
|
+ for(let rect of rects){
|
|
|
+ info.sheet.repaint(rect);
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mainSpreadEditStarting: function (sender, info) {
|
|
@@ -672,7 +678,6 @@ var projectObj = {
|
|
|
console.log(`时间——${endTime - startTime}`);
|
|
|
that.project.projectMarkChecking();//是否需要重新进行造价计算
|
|
|
installationFeeObj.engineeringTypeChecking();//检查是否安装工程
|
|
|
- //初始需要触发一次点击表格事件,sheet.getAutoFitWidth值(获取单元格文本长度)才正确
|
|
|
autoFlashHeight();
|
|
|
projectObj.refreshMainSpread();
|
|
|
$.bootstrapLoading.end();
|
|
@@ -1246,13 +1251,12 @@ var projectObj = {
|
|
|
TREE_SHEET_HELPER.massOperationSheet(sheet, function () {
|
|
|
for(let node of nodes){
|
|
|
if(node && node.serialNo()!= -1){
|
|
|
- //console.log(me.getNodeColorStyle(sheet, node).backColor);
|
|
|
sheet.getRange(node.serialNo(), -1, 1, -1).backColor(me.getNodeColorStyle(sheet, node).backColor);
|
|
|
//sheet.setStyle(node.serialNo(), -1, me.getNodeColorStyle(sheet, node));
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
loadLockBillsButton:function () {
|
|
|
if(projectInfoObj.projectInfo.property.lockBills == true){
|