Exportopera (res, fileName, flag) {Const SELF = this;let content;let blob;if (Object.prototype.toString.call (res) = = = "[ob Ject Function] {content = res (); Const FR = new FileReader (); blob = new blob ([content]); Fr.readastext (BLOB); fr.onload = f Unction (e) {Const Responsejson = Json.parse (E.target.result); Self.exportswitch (Responsejson.resultcode, flag);};} else {content = Res;blob = new BLOB ([content]), if ("Download" in Document.createelement ("a")) {//non-ie download const Elink = Docum Ent.createelement ("a"); elink.download = Filename;elink.style.display = "None"; elink.href = Url.createobjecturl (BLOB) ;d Ocument.body.appendChild (Elink); Elink.click (); Url.revokeobjecturl (ELINK.HREF); Releases the URL object Document.body.removeChild (Elink);} else {//ie10+ download Navigator.mssaveblob (BLOB, FileName),}}},exportswitch (ResultCode, flag) {if (flag = = = = "Exportlogdata") {ResultCode = = = 10001? This.alertnotify (False, {text: "Download", Message: "System Exception"}): This.redirectlogin ();}},redirectlogin () {Removelocalstorage ("Smoke_session_token"); This.resetstate (); $router. Replace ({path:"/login ", query: {redirect:this. $router. Currentroute.fullpath}}) this. $message. Error ("Login is not valid, please login again!") if (window.stompclient) {window.stompClient.disconnect ();d elete Window.stompclient;}},
How does the Vue frontend implement import and export of Excel tables?