|  | @@ -379,24 +379,18 @@ var TREE_SHEET_HELPER = {
 | 
	
		
			
				|  |  |                  hitinfo.sheet.repaint();
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  | -        TreeNodeCellType.prototype.processMouseEnter = function(hitinfo){
 | 
	
		
			
				|  |  | -            let text = hitinfo.sheet.getText(hitinfo.row, hitinfo.col);
 | 
	
		
			
				|  |  | -            let tag = hitinfo.sheet.getTag(hitinfo.row, hitinfo.col);
 | 
	
		
			
				|  |  | -            if(tag&&tag!=''){
 | 
	
		
			
				|  |  | -                TREE_SHEET_HELPER.showTipsDiv(tag,setting,hitinfo);
 | 
	
		
			
				|  |  | +        TreeNodeCellType.prototype.processMouseMove = function(hitinfo){//造价书主界面,当鼠标移动到单元格最右往左50个像素内时才显示悬浮提示内容
 | 
	
		
			
				|  |  | +            if (hitinfo.sheet.name()!=="mainSheet") return;
 | 
	
		
			
				|  |  | +            let offset = 20;//从右向左显示的像素范围
 | 
	
		
			
				|  |  | +            let leftX = hitinfo.cellRect.x + hitinfo.cellRect.width;//最右边的坐标
 | 
	
		
			
				|  |  | +            if(leftX - hitinfo.x <= offset){//如果鼠标移动到的位置是在显示的范围内显示悬浮提示
 | 
	
		
			
				|  |  | +                TREE_SHEET_HELPER.delayShowTips(hitinfo,setting);
 | 
	
		
			
				|  |  | +            }else {//如果移出了范围,隐藏悬浮提示
 | 
	
		
			
				|  |  | +                TREE_SHEET_HELPER.hideTipsDiv();
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  | -        TreeNodeCellType.prototype.processMouseMove = function(hitinfo){
 | 
	
		
			
				|  |  | -            //console.log(hitinfo);
 | 
	
		
			
				|  |  | -        };
 | 
	
		
			
				|  |  |          TreeNodeCellType.prototype.processMouseLeave = function (hitinfo) {
 | 
	
		
			
				|  |  | -            let me = TREE_SHEET_HELPER;
 | 
	
		
			
				|  |  | -            TREE_SHEET_HELPER.tipDiv = 'hide';
 | 
	
		
			
				|  |  | -            if (me._toolTipElement) {
 | 
	
		
			
				|  |  | -                $(me._toolTipElement).hide();
 | 
	
		
			
				|  |  | -                me._toolTipElement = null;
 | 
	
		
			
				|  |  | -            };
 | 
	
		
			
				|  |  | -            TREE_SHEET_HELPER.tipDivCheck();//延时检查:当tips正在show的时候,就调用了hide方法,会导致tips一直存在,所以设置一个超时处理
 | 
	
		
			
				|  |  | +            TREE_SHEET_HELPER.hideTipsDiv();
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          let TipCellType = function () {};
 | 
	
	
		
			
				|  | @@ -449,13 +443,7 @@ var TREE_SHEET_HELPER = {
 | 
	
		
			
				|  |  |              TREE_SHEET_HELPER.showTipsDiv(text,setting,hitinfo);
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  |          TipCellType.prototype.processMouseLeave = function (hitinfo) {
 | 
	
		
			
				|  |  | -            let me = TREE_SHEET_HELPER;
 | 
	
		
			
				|  |  | -            TREE_SHEET_HELPER.tipDiv = 'hide';
 | 
	
		
			
				|  |  | -            if (me._toolTipElement) {
 | 
	
		
			
				|  |  | -                $(me._toolTipElement).hide();
 | 
	
		
			
				|  |  | -                me._toolTipElement = null;
 | 
	
		
			
				|  |  | -            };
 | 
	
		
			
				|  |  | -            TREE_SHEET_HELPER.tipDivCheck();//延时检查:当tips正在show的时候,就调用了hide方法,会导致tips一直存在,所以设置一个超时处理
 | 
	
		
			
				|  |  | +            TREE_SHEET_HELPER.hideTipsDiv();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          TREE_SHEET_HELPER.protectdSheet(sheet);
 | 
	
	
		
			
				|  | @@ -518,6 +506,16 @@ var TREE_SHEET_HELPER = {
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    hideTipsDiv:function () {
 | 
	
		
			
				|  |  | +        TREE_SHEET_HELPER.tipTimeStamp = +new Date();//这个是为了造价书清单编号树节点的那个延时显示而打的时间戳,防止已经要隐藏的提示框,延时显示
 | 
	
		
			
				|  |  | +        let me = TREE_SHEET_HELPER;
 | 
	
		
			
				|  |  | +        TREE_SHEET_HELPER.tipDiv = 'hide';
 | 
	
		
			
				|  |  | +        if (me._toolTipElement) {
 | 
	
		
			
				|  |  | +            $(me._toolTipElement).hide();
 | 
	
		
			
				|  |  | +            me._toolTipElement = null;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        TREE_SHEET_HELPER.tipDivCheck();//延时检查:当tips正在show的时候,就调用了hide方法,会导致tips一直存在,所以设置一个超时处理
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      tipDivCheck(){
 | 
	
		
			
				|  |  |          setTimeout(function () {
 | 
	
		
			
				|  |  |              let tips = $('#autoTip');
 | 
	
	
		
			
				|  | @@ -528,5 +526,19 @@ var TREE_SHEET_HELPER = {
 | 
	
		
			
				|  |  |                  TREE_SHEET_HELPER._toolTipElement = null;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          },600)
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    delayShowTips:function(hitinfo,setting){//延时显示
 | 
	
		
			
				|  |  | +        let delayTimes = 500; //延时时间
 | 
	
		
			
				|  |  | +        let now_timeStamp = +new Date();
 | 
	
		
			
				|  |  | +        TREE_SHEET_HELPER.tipTimeStamp = now_timeStamp;
 | 
	
		
			
				|  |  | +        setTimeout(function () {
 | 
	
		
			
				|  |  | +            if(now_timeStamp - TREE_SHEET_HELPER.tipTimeStamp == 0){//鼠标停下的时候才显示
 | 
	
		
			
				|  |  | +                let text = hitinfo.sheet.getText(hitinfo.row, hitinfo.col);
 | 
	
		
			
				|  |  | +                let tag = hitinfo.sheet.getTag(hitinfo.row, hitinfo.col);
 | 
	
		
			
				|  |  | +                if(tag&&tag!=''){
 | 
	
		
			
				|  |  | +                    TREE_SHEET_HELPER.showTipsDiv(tag,setting,hitinfo);
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        },delayTimes);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  };
 |