|
@@ -167,9 +167,9 @@ var TREE_SHEET_HELPER = {
|
|
|
let tag ="";
|
|
|
if(node.sourceType == ModuleNames.ration){//定额的时候换算子目
|
|
|
tag = node.data.adjustState?node.data.adjustState:'';
|
|
|
- }else if(node.sourceType == ModuleNames.bills &&projectObj.ifItemCharHiden(setting)){//清单、并且项目特征列隐藏的时候悬浮提示
|
|
|
+ }/*else if(node.sourceType == ModuleNames.bills &&projectObj.ifItemCharHiden(setting)){//清单、并且项目特征列隐藏的时候悬浮提示 这里改成在 计量单位那里提示
|
|
|
tag = node.data.itemCharacterText?node.data.itemCharacterText:'';
|
|
|
- }
|
|
|
+ }*/
|
|
|
sheet.setTag(iRow, iCol,tag);
|
|
|
}
|
|
|
/*if(colSetting.data.field=="name"){ 2018-08-06 改成在编号列悬浮提示
|
|
@@ -187,7 +187,7 @@ var TREE_SHEET_HELPER = {
|
|
|
cell.value(getFieldText2());
|
|
|
}
|
|
|
if (colSetting.data.cellType && Object.prototype.toString.apply(colSetting.data.cellType) !== "[object String]") {
|
|
|
- cell.cellType(colSetting.data.cellType(node));
|
|
|
+ cell.cellType(colSetting.data.cellType(node,setting));
|
|
|
}
|
|
|
if(colSetting.data.autoHeight == true){
|
|
|
colSetting.setAutoHeight(cell,node);
|
|
@@ -505,7 +505,7 @@ var TREE_SHEET_HELPER = {
|
|
|
if(hitinfo.sheet && hitinfo.sheet.getParent().qo){
|
|
|
setting.pos = SheetDataHelper.getObjPos(hitinfo.sheet.getParent().qo);
|
|
|
}
|
|
|
- $(this._toolTipElement).html(`<span>${text}</span><div class="triangle-border tb-border"></div><div class="triangle-border tb-background"></div>`);
|
|
|
+ $(this._toolTipElement).html(`<span>${text}</span><div class="triangle-border tb-border_up"></div><div class="triangle-border tb-background_up"></div>`);
|
|
|
//清单指引、清单库做特殊处理
|
|
|
if($(hitinfo.sheet.getParent().qo).attr('id') === 'stdBillsSpread' || $(hitinfo.sheet.getParent().qo).attr('id') === 'billsGuidance_bills'){
|
|
|
$(this._toolTipElement).html(`<span>${text}</span>`);
|
|
@@ -519,9 +519,15 @@ var TREE_SHEET_HELPER = {
|
|
|
$(this._toolTipElement).css("top", top).css("left", setting.pos.x - divWidth);
|
|
|
} else {
|
|
|
//计算显示的初始位置
|
|
|
+ /* 显示在单元格上方,三角形指向下的版本
|
|
|
let top = setting.pos.y + hitinfo.cellRect.y -$(this._toolTipElement).height() -26;
|
|
|
let left = setting.pos.x + hitinfo.cellRect.x;
|
|
|
+ $(this._toolTipElement).css("top", top).css("left", left);*/
|
|
|
+ //显示在下方,三角形指
|
|
|
+ let top = setting.pos.y + hitinfo.cellRect.y+26;
|
|
|
+ let left = setting.pos.x + hitinfo.cellRect.x;
|
|
|
$(this._toolTipElement).css("top", top).css("left", left);
|
|
|
+
|
|
|
}
|
|
|
$(this._toolTipElement).show("fast");
|
|
|
TREE_SHEET_HELPER.tipDiv = 'show';//做个标记
|
|
@@ -549,14 +555,16 @@ var TREE_SHEET_HELPER = {
|
|
|
}
|
|
|
},600)
|
|
|
},
|
|
|
- delayShowTips:function(hitinfo,setting){//延时显示
|
|
|
+ delayShowTips:function(hitinfo,setting,tips){//延时显示
|
|
|
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(tips && tips !=""){ //有tips的话优先显示tips
|
|
|
+ tag = tips;
|
|
|
+ }
|
|
|
if(tag&&tag!=''){
|
|
|
TREE_SHEET_HELPER.showTipsDiv(tag,setting,hitinfo);
|
|
|
}
|