修改页面图片预览绑定问题
This commit is contained in:
parent
e37e0ba16a
commit
7c3522cacb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user