(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d383fb5"],{"40c0":function(e,t,o){"use strict";o("8b66")},"8b66":function(e,t,o){},f2f9:function(e,t,o){"use strict";o.r(t);var a=o("7a23");const l={style:{width:"30%","margin-top":"1%",float:"left"}},c={class:"custom-tree-node"},n={class:"custom-tree-node"},r={key:0},i={style:{width:"68%",float:"left","margin-left":"1%","margin-top":"1%"}},d={class:"card-header"};function s(e,t,o,s,b,m){const p=Object(a["resolveComponent"])("el-input"),h=Object(a["resolveComponent"])("el-button"),j=Object(a["resolveComponent"])("el-tree"),u=Object(a["resolveComponent"])("el-card");return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],null,[Object(a["createElementVNode"])("div",l,[Object(a["createVNode"])(p,{placeholder:"输入关键字进行过滤",modelValue:b.filterText,"onUpdate:modelValue":t[0]||(t[0]=e=>b.filterText=e)},null,8,["modelValue"]),Object(a["createElementVNode"])("div",c,[Object(a["createVNode"])(j,{ref:"tree",class:"filter-tree","filter-node-method":m.filterNode,data:b.data,"node-key":"id",accordion:""},{default:Object(a["withCtx"])(({node:e,data:t})=>[Object(a["createElementVNode"])("span",n,[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.label),1),t.hidden?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",r,[Object(a["createVNode"])(h,{type:"text",size:"mini",onClick:()=>m.view(t)},{default:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(" 查看 ")]),_:2},1032,["onClick"]),Object(a["createVNode"])(h,{type:"text",size:"mini",onClick:()=>m.dowmload(e,t)},{default:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(" 下载 ")]),_:2},1032,["onClick"])])):Object(a["createCommentVNode"])("",!0)])]),_:1},8,["filter-node-method","data"])])]),Object(a["createElementVNode"])("div",i,[b.logName?(Object(a["openBlock"])(),Object(a["createBlock"])(u,{key:0,shadow:"hover",style:{height:"800px",overflow:"auto"}},{header:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",d,[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(b.logName),1)])]),default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(b.log,(e,t)=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:t,class:"text item"},Object(a["toDisplayString"])(e),1))),128))]),_:1})):Object(a["createCommentVNode"])("",!0)])],64)}o("88a7"),o("271a"),o("5494");var b={data(){return{data:[],defaultProps:{children:"children",label:"label"},filterText:"",logName:"",log:[]}},watch:{filterText(e){this.$refs.tree.filter(e)}},created(){this.getLogName()},methods:{filterNode(e,t){return!e||-1!==t.label.indexOf(e)},getLogName(){this.http.post("/api/Sys_Log/GetLogName",null,"正在执行中...").then(e=>{e.status&&(this.data=e.data)})},view(e){var t={MainData:{fileName:e.label}};this.http.post("/api/Sys_Log/GetLog",t,"正在查询中...").then(t=>{t.status&&(this.logName=e.label,this.log=t.data)})},dowmload(e,t){let o=this.http.ipAddress,a="api/Sys_Log/DownLoadLog?fileName="+t.fatherNode+"\\"+t.label,l=t.label,c=new XMLHttpRequest;c.open("GET",o+a,!0),c.setRequestHeader("Content-type","application/json"),c.setRequestHeader("Authorization",this.$store.getters.getToken());this.$refs.template;c.responseType="blob";this.loadingStatus=!0,c.onload=function(e){if(200==this.status){let e=this.response,t=document.createElement("a"),o=window.URL.createObjectURL(e);t.href=o,t.download=l,t.click(),window.URL.revokeObjectURL(o)}},c.send()}}},m=(o("40c0"),o("d959")),p=o.n(m);const h=p()(b,[["render",s]]);t["default"]=h}}]);
|