소스 검색

fix:结算模块-附件字段

liqh 2 달 전
부모
커밋
3dd30bdfa2
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      src/views/project/settlement-manage/InvoiceRegistrationList/index.vue

+ 9 - 1
src/views/project/settlement-manage/InvoiceRegistrationList/index.vue

@@ -87,8 +87,16 @@
       },
       {
         title: '发票附件',
-        dataIndex: 'attachment',
+        // dataIndex: 'attachment',
         align: 'center',
+        customRender: ({ text, record, index, column }) => {
+          const imageUrls = record.attachment || [
+            'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
+            'https://aliyuncdn.antdv.com/vue.png',
+            'https://aliyuncdn.antdv.com/logo.png',
+          ];
+          return imageUrls.map((imgUrl, imgIndex) => <a-image width={40} src={imgUrl} alt={`发票附件 ${imgIndex + 1}`} />);
+        },
       },
       {
         title: '发起人',