chunk-150ec2fa.8b717d0d.js 9.83 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-150ec2fa"],{"12c3":function(e,t,n){},"1d4a":function(e,t,n){"use strict";n.r(t);var a=n("7a23"),l=Object(a["o"])("查询"),i=["innerHTML"];function o(e,t,n,o,c,r){var u=Object(a["S"])("a-select"),b=Object(a["S"])("a-form-item"),d=Object(a["S"])("a-date-picker"),p=Object(a["S"])("a-time-picker"),s=Object(a["S"])("a-input"),O=Object(a["S"])("a-button"),j=Object(a["S"])("a-form"),m=Object(a["S"])("el-table-column"),f=Object(a["S"])("el-table"),g=Object(a["S"])("a-pagination"),v=Object(a["T"])("loading");return Object(a["J"])(),Object(a["l"])(a["b"],null,[Object(a["p"])(j,{model:o.queryForm,layout:"inline","label-col":{style:{width:"80px"}}},{default:Object(a["ib"])((function(){return[Object(a["p"])(b,{label:"服务名称:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(u,{value:o.queryForm.appname,"onUpdate:value":t[0]||(t[0]=function(e){return o.queryForm.appname=e}),style:{width:"280px"},options:o.appnameList,optionFilterProp:"label"},null,8,["value","options"])]})),_:1}),Object(a["p"])(b,{label:"日志等级:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(u,{value:o.queryForm.levels,"onUpdate:value":t[1]||(t[1]=function(e){return o.queryForm.levels=e}),style:{width:"280px"},mode:"multiple",maxTagCount:1,options:o.levelList,optionFilterProp:"label"},null,8,["value","options"])]})),_:1}),Object(a["p"])(b,{label:"选择日期:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(d,{value:o.queryForm.date,"onUpdate:value":t[2]||(t[2]=function(e){return o.queryForm.date=e}),format:"YYYY-MM-DD",style:{width:"280px"}},null,8,["value"])]})),_:1}),Object(a["p"])(b,{label:"选择时间:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(p,{value:o.queryForm.startTime,"onUpdate:value":t[3]||(t[3]=function(e){return o.queryForm.startTime=e}),style:{width:"140px"}},null,8,["value"]),Object(a["p"])(p,{value:o.queryForm.endTime,"onUpdate:value":t[4]||(t[4]=function(e){return o.queryForm.endTime=e}),style:{width:"140px"}},null,8,["value"])]})),_:1}),Object(a["p"])(b,{label:"内容:",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(s,{value:o.queryForm.content_like,"onUpdate:value":t[5]||(t[5]=function(e){return o.queryForm.content_like=e}),placeholder:"请输入内容",style:{width:"280px"}},null,8,["value"])]})),_:1}),Object(a["p"])(b,{style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(O,{type:"primary",onClick:t[6]||(t[6]=function(e){return o.confirmSearch(1)}),loading:o.isLoading},{default:Object(a["ib"])((function(){return[l]})),_:1},8,["loading"])]})),_:1})]})),_:1},8,["model"]),Object(a["jb"])((Object(a["J"])(),Object(a["j"])(f,{data:o.dataList,rowKey:e.id,height:o.contentHeight,style:{width:"100%"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(m,{prop:"time",label:"时间",width:"180"}),Object(a["p"])(m,{prop:"thread",label:"线程号",width:"180"}),Object(a["p"])(m,{prop:"location",label:"日志位置",width:"300"}),Object(a["p"])(m,{prop:"content",label:"日志内容"},{default:Object(a["ib"])((function(e){var t=e.row;return[Object(a["m"])("p",{innerHTML:o.stringFormatter(t.content)},null,8,i)]})),_:1})]})),_:1},8,["data","rowKey","height"])),[[v,o.isLoading]]),Object(a["p"])(g,{current:o.pageNum,"onUpdate:current":t[7]||(t[7]=function(e){return o.pageNum=e}),pageSize:o.pageSize,"onUpdate:pageSize":t[8]||(t[8]=function(e){return o.pageSize=e}),total:o.total,"show-total":function(e){return"共 ".concat(e," 条")},pageSizeOptions:["20","50","100"],onChange:o.onPageNumChange,onShowSizeChange:o.onPageSizeChange,"show-size-changer":"","show-quick-jumper":"",style:{"text-align":"center"}},null,8,["current","pageSize","total","show-total","onChange","onShowSizeChange"])],64)}n("a15b"),n("ac1f"),n("1276"),n("d3b7"),n("25f0");var c=n("c1df"),r=n.n(c),u=n("d4ec"),b=n("bee2"),d=n("672a"),p=n("c68b"),s=function(){function e(){Object(u["a"])(this,e)}return Object(b["a"])(e,[{key:"getLogSelect",value:function(e){return d["a"].request({method:"GET",url:"/logs/select",params:Object(p["a"])(e)})}},{key:"getLogLimits",value:function(e){return d["a"].request({method:"GET",url:"/logs/limits",params:Object(p["a"])(e)})}}]),e}(),O=new s,j=O,m=(n("f944"),n("47ce")),f=Object(a["o"])(" 行 "),g=Object(a["o"])(" 行 "),v=Object(a["o"])("查询");function h(e,t,n,l,i,o){var c=Object(a["S"])("a-input-number"),r=Object(a["S"])("a-form-item"),u=Object(a["S"])("a-button"),b=Object(a["S"])("a-form"),d=Object(a["S"])("a-table"),p=Object(a["S"])("a-modal"),s=Object(a["T"])("loading");return l.isVisible?(Object(a["J"])(),Object(a["j"])(p,{key:0,title:"查看更多",visible:l.isVisible,"onUpdate:visible":t[2]||(t[2]=function(e){return l.isVisible=e}),width:"1200px",height:"90%",class:"detail-modal"},{default:Object(a["ib"])((function(){return[Object(a["p"])(b,{model:l.queryForm,layout:"inline","label-col":{style:{width:"80px"}}},{default:Object(a["ib"])((function(){return[Object(a["p"])(r,{label:"前",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(c,{value:l.queryForm.content_front,"onUpdate:value":t[0]||(t[0]=function(e){return l.queryForm.content_front=e}),placeholder:"请输入",style:{width:"180px"},min:1,max:20},null,8,["value"]),f]})),_:1}),Object(a["p"])(r,{label:"后",style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(c,{value:l.queryForm.content_after,"onUpdate:value":t[1]||(t[1]=function(e){return l.queryForm.content_after=e}),placeholder:"请输入",style:{width:"180px"},min:1,max:20},null,8,["value"]),g]})),_:1}),Object(a["p"])(r,{style:{padding:"5px 0"}},{default:Object(a["ib"])((function(){return[Object(a["p"])(u,{type:"primary",onClick:l.confirmSearch,loading:l.isLoading},{default:Object(a["ib"])((function(){return[v]})),_:1},8,["onClick","loading"])]})),_:1})]})),_:1},8,["model"]),Object(a["jb"])(Object(a["p"])(d,{dataSource:l.dataList,columns:l.columns,pagination:!1},null,8,["dataSource","columns"]),[[s,l.isLoading]])]})),_:1},8,["visible"])):Object(a["k"])("",!0)}var y=[{title:"序号",dataIndex:"index",align:"center",width:100},{title:"apptype",dataIndex:"apptype",align:"center",width:120},{title:"服务名称",dataIndex:"appname",align:"center",width:120},{title:"服务等级",dataIndex:"level",align:"center",width:120},{title:"时间",dataIndex:"time",align:"center"},{title:"线程号",dataIndex:"thread",align:"center"},{title:"日志位置",dataIndex:"location",align:"center"},{title:"日志内容",dataIndex:"content",align:"center"},{title:"日志标识",dataIndex:"id",align:"center"}],w={components:{PlusOutlined:m["a"],VNodes:function(e,t){var n=t.attrs;return n.vnodes}},setup:function(){var e=Object(a["O"])(!1),t=(Object(a["O"])(!1),Object(a["O"])([])),n=Object(a["O"])(!1),l=Object(a["N"])({apptype:"store",appname:"process",level:"info",content_like:"",date:r()(r()().format("YYYY-MM-DD"),"YYYY-MM-DD"),startTime:r()("00:00:00","HH:mm:ss"),endTime:r()("23:59:59","HH:mm:ss"),content_front:10,content_after:10}),i=function(){e.value=!0},o=function(){n.value=!0};return{isLoading:e,isVisible:n,dataList:t,queryForm:l,columns:y,confirmSearch:i,initDialog:o}}},S=(n("7a3c"),n("d959")),_=n.n(S);const x=_()(w,[["render",h],["__scopeId","data-v-2d2b4a28"]]);var k=x,F={components:{PlusOutlined:m["a"],VNodes:function(e,t){var n=t.attrs;return n.vnodes},moreDialog:k},setup:function(){var e=Object(a["O"])([{title:"时间",dataIndex:"time",align:"center",width:220},{title:"线程号",dataIndex:"thread",align:"center",width:120},{title:"日志位置",dataIndex:"location",align:"center",width:300},{title:"日志内容",dataIndex:"content",align:"center",customRender:function(e){var t=e.text,n=(e.record,Object(a["Y"])(s));return n.content_like&&""!==n.content_like?(t=t.split(n.content_like).join("<span style='color:red;'>"+n.content_like+"</span>"),Object(a["p"])("p",{innerHTML:"str"},[t])):t}}]),t=Object(a["O"])(),n=Object(a["O"])(!1),l=(Object(a["O"])(!1),Object(a["O"])(1)),i=Object(a["O"])(20),o=Object(a["O"])(),c=Object(a["O"])([]),u=Object(a["O"])([{value:"store",label:"store"},{value:"mall",label:"mall"}]),b=Object(a["O"])([{value:"process",label:"process"},{value:"receive",label:"receive"},{value:"report",label:"report"},{value:"openapi",label:"openapi"}]),d=Object(a["O"])([{value:"info",label:"info"},{value:"error",label:"error"},{value:"debug",label:"debug"},{value:"warn",label:"warn"}]),s=Object(a["N"])({appname:"process",levels:["info","error","debug","warn"],content_like:"",date:r()(r()().format("YYYY-MM-DD"),"YYYY-MM-DD"),startTime:r()("00:00:00","HH:mm:ss"),endTime:r()("23:59:59","HH:mm:ss")}),O=function(e){l.value=e,f()},m=function(e,t){l.value=1,i.value=t,f()},f=function(e){n.value=!0;var t=Object(a["Y"])(s);l.value=e?1:l.value;var r=Object(p["a"])({appname:t.appname,levels:t.levels?t.levels.toString():null,content_like:t.content_like,startTime:Object(p["b"])(t.date)+" "+Object(p["c"])(t.startTime),endTime:Object(p["b"])(t.date)+" "+Object(p["c"])(t.endTime),page:l.value,pageSize:i.value});j.getLogSelect(r).then((function(e){n.value=!1,c.value=[],200==e.code&&e.data&&(c.value=e.data.list,o.value=e.data.total)}))},g=function(e){var t=Object(a["Y"])(s);if(t.content_like&&""!==t.content_like){var n=e.split(t.content_like).join("<span style='color:red;'>"+t.content_like+"</span>");return n}return e},v=Object(a["O"])(0),h=function(){v.value=window.innerHeight-230},y=function(){t.value.initDialog()};return h(),{isLoading:n,pageNum:l,pageSize:i,total:o,contentHeight:v,apptypeList:u,appnameList:b,levelList:d,dataList:c,queryForm:s,columns:e,confirmSearch:f,confirmSearch1:y,stringFormatter:g,onPageNumChange:O,onPageSizeChange:m,moreDialogRef:t}}};n("b009");const q=_()(F,[["render",o],["__scopeId","data-v-2cacee3c"]]);t["default"]=q},"7a3c":function(e,t,n){"use strict";n("12c3")},"987b":function(e,t,n){},b009:function(e,t,n){"use strict";n("987b")}}]);