|
if (row != undefined) {
var jsonList = eval("(" + row.val('fPicturePath') + ")");//获取当前数据中attachmentImage对应的关系值并转换json对象
if (jsonList != undefined) {
var docPath = jsonList[0]["docPath"]; // 从json对象中获得docPath
var fileID = jsonList[0]["fileID"];// 从json对象中获得fileID
var url = DocUtils.InnerUtils.getdocServerAction({//调用API通过docPath、fileID的值返回url
"docPath" : docPath,
urlPattern : "/repository/file/view/" + fileID + "/last/content",
isFormAction : false,
context : this.getContext()
});
return require.toUrl(url);
}
}
用这个方法转义图片特别的慢,如果一页有6,7个图片就需要3 4秒的时间,感觉像是卡死一样,用户体验特别不好,有办法解决这个问题么?
|
|