1 line
2.1 KiB
JavaScript
1 line
2.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d6021"],{"715f":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[r("div",{staticClass:"mod-sys__user"},[r("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),r("base-table",{attrs:{"table-props":t.tableProps,page:t.listQuery.page,limit:t.listQuery.limit,"table-data":t.tableData}}),r("pagination",{attrs:{limit:t.listQuery.limit,page:t.listQuery.page,total:t.listQuery.total},on:{"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},"update:page":function(e){return t.$set(t.listQuery,"page",e)},pagination:t.getDataList}})],1)])},o=[],l=(r("d3b7"),r("3ca3"),r("ddb0"),r("2b3d"),r("ed26")),n=r("12cb"),s=(r("a78e"),r("4328"),[{prop:"requestUri",label:n["a"].t("logError.requestUri")},{prop:"requestMethod",label:n["a"].t("logError.requestMethod")},{prop:"requestParams",label:n["a"].t("logError.requestParams")},{prop:"ip",label:n["a"].t("logError.ip")},{prop:"userAgent",label:n["a"].t("logError.userAgent")},{prop:"createDate",label:n["a"].t("logError.createDate")}]),i={mixins:[l["a"]],data:function(){return{urlOptions:{getDataListURL:"/sys/log/error/page",exportUrl:"/sys/log/error/export"},tableProps:s,formConfig:[{type:"button",btnName:"导出",name:"export",color:"primary"}]}},components:{},methods:{buttonClick:function(t){switch(t.btnName){case"export":this.exportHandle();break;default:console.log(t)}},exportHandle:function(t){this.$http.get(this.urlOptions.exportURL,{responseType:"blob"}).then((function(e){var r=e.data,a=new Date,o=a.getFullYear(),l=a.getMonth()+1,n=a.getDate();l>=1&&l<=9&&(l="0"+l),n>=0&&n<=9&&(n="0"+n);var s=o+"-"+l+"-"+n,i=new Blob([r]),p=document.createElement("a"),u=window.URL.createObjectURL(i);p.href=u,p.download="".concat(t+s,".xls"),document.body.appendChild(p),p.click(),document.body.removeChild(p),window.URL.revokeObjectURL(u)})).catch((function(){}))}}},p=i,u=r("2877"),c=Object(u["a"])(p,a,o,!1,null,null,null);e["default"]=c.exports}}]); |