Ver Fonte

3.0.37 debug

liuyanpeng há 2 anos atrás
pai
commit
a2eb4413af
2 ficheiros alterados com 9 adições e 22 exclusões
  1. 1 1
      package.json
  2. 8 21
      src/components/customer/AssetInstanceSearchDetail.vue

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "client-eam-v3",
   "description": "Leanwo Prodog Client",
-  "version": "3.0.26",
+  "version": "3.0.27",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "dev": "cross-env webpack serve --config ./webpack.dev.js",

+ 8 - 21
src/components/customer/AssetInstanceSearchDetail.vue

@@ -4,7 +4,11 @@
       <div class="row">
         <div class="col-md-12">
           <h1 class="page-header" style="margin-top: 10px; margin-bottom: 0px">
-            <AuthImage
+            <a-image
+              style="width: 78px; height: 78px"
+              :src="Common.getThumbnailImageSrc(assetClassName,showAssetInstance.imageName)"
+            />
+            <!-- <AuthImage
               :auth-src="
                 Common.getThumbnailImageSrc(
                   assetClassName,
@@ -19,7 +23,7 @@
                   showAssetInstance.imageName
                 )
               "
-            />
+            /> -->
 
             {{ $t("lang.AssetInstanceSearchDetail.assetCardDetails") }}
           </h1>
@@ -775,8 +779,8 @@
                       <td>{{ item.type }}</td>
                       <td>
                         <a-image
-                          :width="200"
-                          :src="getImageSrc(item.className,item.image)"
+                          style="width: 80px; height: 50px"
+                          :src="Common.getThumbnailImageSrc(item.className,item.image)"
                         />
                         <!-- <img
                           :authSrc="
@@ -925,23 +929,6 @@ 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;
       // 前一个月的时间