修改页面图片预览绑定问题

This commit is contained in:
ly19960718 2021-05-02 17:34:04 +08:00
parent e37e0ba16a
commit 7c3522cacb

View File

@ -93,14 +93,14 @@
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-'; return '-';
} }
var value='<ul id="viewer">'; var value='<ul id="'+row['institutionId']+'">';
var datas = rowData.split(','); var datas = rowData.split(',');
for(var i = 0, item = datas[i]; item = datas[i++];) { for(var i = 0, item = datas[i]; item = datas[i++];) {
value += '<li><img style="height: 80px;width: 80px;" src="route/file/download/false/'+ item +'" alt="图片1"></li>'; value += '<li><img style="height: 80px;width: 80px;" src="route/file/download/false/'+ item +'" alt="暂无"></li>';
} }
value += '</ul>'; value += '</ul>';
setTimeout(function() { setTimeout(function() {
new Viewer(document.getElementById("viewer"),{ new Viewer(document.getElementById(row['institutionId']),{
loop:true loop:true
}); });
}, 50); }, 50);