|
版本: |
|
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
保存的是json类型的数据,但是上传之后的显示出了问题,路径方法是这样的
Model.prototype.getImageUrl = function(row) {
if (row != undefined) {
var photo = row.val("partyMem_photo");
if (photo!= undefined && photo!=null) {
var jsonList = eval("(" + photo + ")");//获取当前数据中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()
});
//alert(url);
return require.toUrl(url);
}else{
return require.toUrl('/x5/UI2/portal/pc3/assets/img/moren.png');
}//end if
}else{
return require.toUrl('/x5/UI2/portal/pc3/assets/img/moren.png');
}
}
};
|
-
图片报错
|