Browse Source

no message

linwenxin 7 tháng trước cách đây
mục cha
commit
5ad04e2674
1 tập tin đã thay đổi với 19 bổ sung0 xóa
  1. 19 0
      src/views/auxiliaryFittings/supplier/index.vue

+ 19 - 0
src/views/auxiliaryFittings/supplier/index.vue

@@ -409,6 +409,25 @@ export default {
             </div>
           )
         }
+      } else if (item.jname === 'imageUrl') {
+        defaultData.render = (h, { row, index, column }) => {
+          return (
+            <div style="padding:0 6px;cursor: pointer;">
+              {row.imageUrl
+                ? row.imageUrl
+                    .split(',')
+                    .map(url => (
+                      <el-image
+                        src={this.$showImgUrl(url)}
+                        preview-src-list={[this.$showImgUrl(url)]}
+                        fit="fit"
+                        style="width:80px;height:80px;"
+                      />
+                    ))
+                : null}
+            </div>
+          )
+        }
       }
       return defaultData
     },