Selaa lähdekoodia

委托单下载

yuhan 1 vuosi sitten
vanhempi
commit
ee5f3ca441

+ 10 - 6
itdmWeb/src/views/module-iTDM/weituochaxun/ItdmWeituoYangpinList.vue

@@ -257,18 +257,22 @@
             fixed:"right",
             width:70,
             dataIndex:'download',
-            // scopedSlots: { customRender: 'download' },
             customRender:function (t,r,index) {
-              const that = this
-              var childrenVal
-              childrenVal = (<div onclick={()=>{that.handleDownload(record)}} >下载委托</div>)
               return {
-                children: childrenVal,
+                children: (<a href="#" id='download111'> 下载委托</a>),
                 attrs: {
                   rowSpan: r.rowSpan
                 }
               }
-              // return {children: <a onclick={()=>{that.handleDownload(record)}} >下载委托</a>,attrs: {rowSpan:r.rowSpan}};
+            },
+            customCell: (row, index) => {
+              return {
+                on: {
+                  click: (e) => {
+                    this.handleDownload(row, index);
+                  },
+                },
+              };
             },
           },
           // {