Преглед изворни кода

修复流程报表模块的错误。

杨志杰 пре 3 година
родитељ
комит
e1dc6504f4

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pc-component-v3",
-  "version": "1.0.46",
+  "version": "1.0.48",
   "description": "",
   "main": "dist/pc-component-v3.js",
   "scripts": {

+ 3 - 13
packages/common/Common.js

@@ -105,30 +105,20 @@ export default {
   },
 
   // 获取图片路径
-  getImageSrc: function (className, imageName) {
-    var accountId = localStorage.getItem('#accountId');
+  getImageSrc: function (className, imageName) {  
     if (imageName == 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) {
-    var accountId = localStorage.getItem('#accountId');
     if (imageName == 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;
   },
 
   /**

+ 2 - 2
packages/info/src/MultiSearchWidget.vue

@@ -195,7 +195,7 @@ export default {
 
       var newFieldValue = {
         displayValue: displayValue,
-        fieldType: 'MultiSearchBoxEditor',
+        fieldType: 'ManyToManyKey',
         ids: newIds,
       };
 
@@ -260,7 +260,7 @@ export default {
 
       var newFieldValue = {
         displayValue: displayValues,
-        fieldType: 'MultiSearchBoxEditor',
+        fieldType: 'ManyToManyKey',
         ids: newIds,
       };
 

+ 1 - 1
packages/process/src/ProcessReportStatic.vue

@@ -58,7 +58,7 @@
               placeholder="请输入数字"
               @change="valueChanged(item)"
             />
-            {{ item.displayType }}
+            
             <Switches
               v-if="item.displayType =='CheckBoxEditor'"
               v-model="item.fieldValue.displayValue[0]"