|
@@ -126,32 +126,22 @@ export default{
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 获取图片路径
|
|
// 获取图片路径
|
|
|
- getImageSrc: function (className, imageName) {
|
|
|
|
|
- var accountId = localStorage.getItem('#accountId');
|
|
|
|
|
|
|
+ getImageSrc: function (className, imageName) {
|
|
|
if (imageName == null) {
|
|
if (imageName == null) {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
- if (imageName != null && imageName[0] == '/') {
|
|
|
|
|
- return this.getFileServerUrl() + 'Files/' + accountId + '/Images/' + className + imageName;
|
|
|
|
|
- } else {
|
|
|
|
|
- return this.getFileServerUrl() + 'Files/' + accountId + '/Images/' + className + '/' + imageName;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return '/api/file/imageDownload?className=' + className + '&fileName=' + imageName;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取略缩图图片路径
|
|
// 获取略缩图图片路径
|
|
|
getThumbnailImageSrc: function (className, imageName) {
|
|
getThumbnailImageSrc: function (className, imageName) {
|
|
|
- var accountId = localStorage.getItem('#accountId');
|
|
|
|
|
if (imageName == null) {
|
|
if (imageName == null) {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
- if (imageName != null && imageName[0] == '/') {
|
|
|
|
|
- return this.getFileServerUrl() + 'Files/' + accountId + '/Images/' + className + '/thumbnail' + imageName;
|
|
|
|
|
- } else {
|
|
|
|
|
- return this.getFileServerUrl() + 'Files/' + accountId + '/Images/' + className + '/thumbnail/' + imageName;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return '/api/file/thumbnailImageDownload?className=' + className + '&fileName=' + imageName;
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 获取附件的路径
|
|
* 获取附件的路径
|
|
|
* @param {[type]} className [description]
|
|
* @param {[type]} className [description]
|