评分页面附件默认显示到页面【V8.8+】

【适用版本】
s-HR Cloud V8.8及以上
【应用场景】
附件默认显示到页面,不需点击弹框查看
【操作步骤】
1、找到\eas\server\deploy\easweb.ear\shr_web.war\addon\perfweb\web\js\shr\perfweb\portal\目录下的perfscore.js、perfscoreNew.js文件,如图位置新增方法:
showAllAttachs: function(data){
for (var i = 0; i < data.length; i++) {
var tempData = data[i];
var url = that._assembleDownloadUrl(tempData.id, tempData.attachKey);
data[i].url = url;
data[i].canDel = tempData.isSelf && tempData.isSelf == "true" ? true : false;
data[i].canDowload = tempData.simpleName.toUpperCase() == "TXT" || tempData.simpleName.toUpperCase() == "PDF" || tempData.simpleName.toUpperCase() == "GIF" || tempData.simpleName.toUpperCase() == "JPG" || tempData.simpleName.toUpperCase() == "PNG" || tempData.simpleName.toUpperCase() == "BMP" ? true : false;
}
var tpl =
['<div>',
'<table>',
'<thead>',
'<tr>',
'<th width="294">',
(jsBizMultLan.perfweb_perfscoreJuicer_1586254515419_i18n_35 || '文档名称'),
'</th>',
'<th>',
(jsBizMultLan.perfweb_perfscoreJuicer_1586254515419_i18n_28 || '上传人'),
'</th>',
'<th>',
$.perfwebI18n.tableConstant.msg10,
'</th>',
//'<th>操作</th>',
'<th>',
(jsBizMultLan.perfweb_perfscoreJuicer_zw20201229_i18n_01 || '操作'),'</th>',
'</tr>',
'</thead>',
'<tbody>',
'{@each rows as tempData,i}',
'<tr>',
'<td class="
评分页面附件默认显示到页面【V8.8+】
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



