|
|
@@ -774,7 +774,11 @@
|
|
|
<td>{{ item.position }}</td>
|
|
|
<td>{{ item.type }}</td>
|
|
|
<td>
|
|
|
- <img
|
|
|
+ <a-image
|
|
|
+ :width="200"
|
|
|
+ :src="getImageSrc(item.className,item.image)"
|
|
|
+ />
|
|
|
+ <!-- <img
|
|
|
:authSrc="
|
|
|
showRfidRecordThumbnailImage(
|
|
|
item.className,
|
|
|
@@ -788,7 +792,7 @@
|
|
|
item.image
|
|
|
)
|
|
|
"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
@@ -921,6 +925,23 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+
|
|
|
+ // 获取图片路径
|
|
|
+ getImageSrc : function(className, imageName) {
|
|
|
+ var protocol = window.location.protocol;
|
|
|
+ var host = window.location.host;
|
|
|
+ var localhostPath = protocol + '//' + host ;
|
|
|
+
|
|
|
+ var accountId = localStorage.getItem('#accountId');
|
|
|
+ if (imageName == null) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ if (imageName != null && imageName[0] == '/') {
|
|
|
+ return localhostPath + '/Files/' + accountId + '/Images/' + className + imageName;
|
|
|
+ } else {
|
|
|
+ return localhostPath + '/Files/' + accountId + '/Images/' + className + '/' + imageName;
|
|
|
+ }
|
|
|
+ },
|
|
|
getEventOriginalEndDate: function () {
|
|
|
const _self = this;
|
|
|
// 前一个月的时间
|