소스 검색

子表关联图片未展示bug

wu 4 달 전
부모
커밋
b2a4794124
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/components/Generator/components/RelationTable/index.vue

+ 4 - 2
src/components/Generator/components/RelationTable/index.vue

@@ -145,6 +145,7 @@ import { getBrowserData, getChildrenConfigData, getConfigData, getPrecondition,
 import { dictDetail } from '@/api/newbi/dict'
 import { getAPIData, getTreeAPIData } from '@/components/Dataset-filter/util'
 import { getFileById } from '@/api/common'
+import {comUrl} from "@/utils/define";
 
 export default {
   name: 'index',
@@ -181,6 +182,7 @@ export default {
       mergeCells: [],
       imgList: {},
       fileList: {},
+      comUrlImage:comUrl,
       // 表头筛选数组
       filterList: {},
       getPreconditionObj: {},
@@ -561,7 +563,7 @@ export default {
             }
             // console.log(compoentConfig.jnpfKey)
             if (compoentConfig.jnpfKey === 'uploadImg') {
-              // data.slots.default = 'default_images'
+              data.slots.default = 'default_images'
               data.showOverflow = false
               data.width = 300
             }
@@ -680,7 +682,7 @@ export default {
             if (item.config && item.config.isJoin) {
               item.slots = {}
               if (item.jnpfKey === 'uploadImg') {
-                // item.slots.default = 'default_images'
+                item.slots.default = 'default_images'
                 item.showOverflow = false
               }
               columnList.push(item)