鼠标悬浮显示/附件大小显示

This commit is contained in:
zhal 2022-09-20 10:49:44 +08:00
parent 6c2b68184b
commit db85aae55a
2 changed files with 10 additions and 3 deletions

View File

@ -2948,7 +2948,7 @@
<div style="width: 550px;height: 280px;vertical-align: top;">
<button id="upShapeFile" onclick="return false;" type="button" class="awsui-btn awsui-btn-green" style="margin-left: 20px;margin-top:10px">新增</button>
<div style="margin-left: 20px;padding: 5px; font-size: 12px; color: rgb(120, 120, 120);">
<span>附件格式支持:jpg, jpeg, gif, png, bmp, pdf, doc, docx, ppt, pptx, xls, xlsx, txt</span>
<span>附件格式支持:jpg, jpeg, gif, png, bmp, pdf, doc, docx, ppt, pptx, xls, xlsx, txt 文件大小不超过10M</span>
</div>
<div style="height:210px;overflow-x: hidden;overflow-y:auto;">
<table class="awsui-ux">
@ -2977,7 +2977,7 @@
<div style="width: 550px;height: 280px;vertical-align: top;">
<button id="pupShapeFile" onclick="return false;" type="button" class="awsui-btn awsui-btn-green" style="margin-left: 20px;margin-top:10px">新增</button>
<div style="margin-left: 20px;padding: 5px; font-size: 12px; color: rgb(120, 120, 120);">
<span>附件格式支持:doc, docx</span>
<span>附件格式支持:doc, docx 文件大小不超过10M</span>
</div>
<div style="height:210px;overflow-x: hidden;overflow-y:auto;">
<table class="awsui-ux">

View File

@ -3133,13 +3133,20 @@ function getRelevanceShapeNameByShapeId(objIds, shapeId) {
}
}
}
//判断如果为岗位/角色鼠标悬浮显示
//判断如果为岗位/角色/相关文件/支持文件 鼠标悬浮显示
if(objId=="post"){
$("input[objid='" + objId + "']").attr('title', shapeNames.join(","));
}
if(objId=="role"){
$("input[objid='" + objId + "']").attr('title', shapeNames.join(","));
}
if(objId=="R_relevant_flies"){
$("input[objid='" + objId + "']").attr('title', shapeNames.join(","));
}
if(objId=="support_files"){
$("input[objid='" + objId + "']").attr('title', shapeNames.join(","));
}
$("input[objid='" + objId + "']").val(shapeNames.join(","));
$("input[objid_shapeId='" + objId + "']").val(shapeRelationValue.join(","));
$("input[objid_shapeId='" + objId + "']").attr('ref', JSON.stringify(ref));