Home > front end >  Vxe - how the service side table export?
Vxe - how the service side table export?

Time:04-17

If inscribe
 
This $refs. XTable. OpenExport ({
Remote: true,
Type: "CSV",
Types: [' CSV '],
Mode: "selected",
Modes: [' selected '],
IsHeader: true,
ExportMethod: function (data) {
The return of new Promise (function (resolve) {
Sa. Ajax (' @ Url. Content (" ~/API/Material/ExportProductClass ")? Ids='+ datas. Row. BomId, function (d) {
Datas. Row. TemplateData=https://bbs.csdn.net/topics/d.data.data;
The resolve ()
}, {
Type: "get",
Complete: a function (XHR, ts) {//success failure will perform
}
});
})
},
})
  • Related