Files
UniversalTestSoftware/client/nginx/html/js/chunk-41a78ba0.7a88f733.js

2 lines
14 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41a78ba0"],{"14e6":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"max-box"},[e("div",{staticClass:"content-box"},[e("el-form",{attrs:{model:t.listQuery,inline:!0}},[e("el-form-item",{attrs:{label:""}},[e("el-input",{attrs:{clearable:"",placeholder:"请输入关键字"},on:{change:t.changeLevel},model:{value:t.listQuery.keyword,callback:function(e){t.$set(t.listQuery,"keyword",e)},expression:"listQuery.keyword"}})],1),e("el-form-item",{attrs:{label:"时间范围:"}},[e("el-date-picker",{staticStyle:{width:"400px"},attrs:{clearable:"","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(e){return t.timeChange(t.listQuery.value1)}},model:{value:t.listQuery.value1,callback:function(e){t.$set(t.listQuery,"value1",e)},expression:"listQuery.value1"}})],1),e("el-form-item",{attrs:{label:"级别"}},[e("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"请选择"},on:{change:t.changeLevel},model:{value:t.listQuery.level,callback:function(e){t.$set(t.listQuery,"level",e)},expression:"listQuery.level"}},t._l(t.dataLevel,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),e("el-form-item",{attrs:{label:"类型"}},[e("el-select",{staticStyle:{width:"120px"},attrs:{placeholder:"请选择"},on:{change:t.logTypeChanged},model:{value:t.listQuery.logType,callback:function(e){t.$set(t.listQuery,"logType",e)},expression:"listQuery.logType"}},t._l(t.logTypeList,(function(t){return e("el-option",{key:t,attrs:{label:t.label,value:t.value}})})),1)],1)],1),e("div",{staticClass:"tab-list"},[e("div",{staticClass:"tab-item",class:0==t.acticve?"tabs-active":"",on:{click:function(e){return t.khdClick(1)}}},[t._v("客户端日志")]),t._l(t.serverList,(function(a,r){return e("div",{key:r,staticClass:"tab-item"},[e("p",{staticClass:"tabs",class:t.acticve==r+1?"tabs-active":"",on:{click:function(e){return t.tabClick(a.serverId,r,1)}}},[t._v(" "+t._s(a.serverName))])])}))],2),e("div",{staticClass:"table-list"},[e("div",{staticClass:"flexEnd"},[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.clearLog}},[t._v("清除日志")])],1),e("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{fontWeight:400,background:"#F0F5FC",color:"#333333"},data:t.tableData,border:""},on:{"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{type:"selection",width:"55"}}),e("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),e("el-table-column",{attrs:{prop:"message",label:"日志内容",width:"","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"level",label:"日志类型",width:""}}),e("el-table-column",{attrs:{prop:"eventDate",label:"时间",width:""}})],1),e("div",{staticClass:"page-box"},[e("el-pagination",{attrs:{background:"","current-page":t.listQuery.current,"page-size":t.listQuery.size,layout:"total, prev, pager, next, jumper",total:t.total},on:{"current-change":t.currentChange,"update:currentPage":function(e){return t.$set(t.listQuery,"current",e)},"update:current-page":function(e){return t.$set(t.listQuery,"current",e)}}})],1)],1)],1)])},i=[],n=(a("e9f5"),a("ab43"),a("365c")),s={data(){return{tableHeight:500,acticve:0,listQuery:{current:1,size:10,startTime:"",endTime:"",value1:[],serverId:"",keyword:"",level:"",logType:1},dataLevel:["DEBUG","INFO","WARN","ERROR"],logTypeList:[{label:"软件日志",value:1},{label:"系统日志",value:2}],total:0,tableData:[],serverList:[],multipleSelection:[]}},mounted(){this.$nextTick(()=>{this.calcTableHeight();const t=this;window.onresize=function(){t.calcTableHeight()}}),this.getAllServer(),this.khdClick(1)},beforeDestroy(){window.onresize=null},methods:{calcTableHeight(){this.tableHeight=window.innerHeight-330+"px"},handleSelectionChange(t){this.multipleSelection=t},getAllServer(){Object(n["B"])({current:1,size:1e3,connectStatus:1}).then(t=>{1==t.code&&(this.serverList=t.data.records||[])})},clearLog(){this.multipleSelection.length<1&&!this.listQuery.startTime&&!this.listQuery.endTime?this.$message.warning("请选择删除数据或时间范围"):0==this.acticve?this.bootLogDelete():this.deleteLog()},bootLogDelete(){let t={...this.listQuery};if(this.multipleSelection&&this.multipleSelection.length>0){t.startTime="",t.endTime="";let e=this.multipleSelection.map(t=>t.id);t.listId=[...e]}Object(n["c"])(t).then(t=>{1==t.code&&(this.$message.success("删除成功"),this.khdClick(1))})},deleteLog(){let t={...this.listQuery};if(this.multipleSelection&&this.multipleSelection.length>0){t.startTime="",t.endTime="";let e=this.multipleSelection.map(t=>t.id);t.listId=[...e]}Object(n["n"])(t).then(t=>{1==t.code&&(this.$message.success("删除成功"),this.getLogList())})},khdClick(t){this.multipleSelection=[],this.listQuery.current=t-0,this.acticve=0,Object(n["d"])(this.listQuery).then(t=>{1==t.code&&(this.tableData=t.data.records||[],this.total=t.data.total||0)})},tabClick(t,e,a){this.listQuery.current=a-0,this.multipleSelection=[],this.acticve=e+1,this.listQuery.serverId=t,this.listQuery.serverId&&this.getLogList()},getLogList(){Object(n["v"])(this.listQuery).then(t=>{1==t.code&&(this.tableData=t.data.records||[],this.total=t.data.total||0)})},currentChange(t){this.acticve>0?this.tabClick(this.listQuery.serverId,this.acticve-1,t):this.khdClick(t)},timeChange(t){t?(this.listQuery.startTime=t[0],this.listQuery.endTime=t[1]):(this.listQuery.startTime="",this.listQuery.endTime="",this.listQuery.value1=[]),this.acticve>0?this.tabClick(this.listQuery.serverId,this.acticve-1,1):this.khdClick(1)},changeLevel(){this.acticve>0?this.tabClick(this.listQuery.serverId,this.acticve-1,1):this.khdClick(1)},logTypeChanged(){this.acticve>0?this.tabClick(this.listQuery.serverId,this.acticve-1,1):this.khdClick(1)},getTableList(t){t&&(this.listQuery.current=t||1),transportCompanyQueryPage(this.listQuery).then(t=>{1==t.code&&(this.tableData=t.data.records||[],this.total=t.data.total)})}}},o=s,l=(a("c20f"),a("2877")),c=Object(l["a"])(o,r,i,!1,null,"784c2d44",null);e["default"]=c.exports},"2baa":function(t,e,a){"use strict";t.exports=function(t,e){var a="function"==typeof Iterator&&Iterator.prototype[t];if(a)try{a.call({next:null},e).next()}catch(r){return!0}}},"365c":function(t,e,a){"use strict";a.d(e,"B",(function(){return i})),a.d(e,"G",(function(){return n})),a.d(e,"j",(function(){return s})),a.d(e,"g",(function(){return o})),a.d(e,"q",(function(){return l})),a.d(e,"F",(function(){return c})),a.d(e,"z",(function(){return u})),a.d(e,"H",(function(){return d})),a.d(e,"i",(function(){return h})),a.d(e,"s",(function(){return p})),a.d(e,"A",(function(){return m})),a.d(e,"I",(function(){return b})),a.d(e,"C",(function(){return g})),a.d(e,"J",(function(){return f})),a.d(e,"k",(function(){return v})),a.d(e,"E",(function(){return y})),a.d(e,"L",(function(){return O})),a.d(e,"l",(function(){return j})),a.d(e,"M",(function(){return k})),a.d(e,"m",(function(){return L})),a.d(e,"v",(function(){return C})),a.d(e,"t",(function(){return Q})),a.d(e,"w",(function(){return w})),a.d(e,"o",(function(){return T})),a.d(e,"D",(function(){return I})),a.d(e,"a",(function(){return x})),a.d(e,"x",(function(){return S})),a.d(e,"K",(function(){return B})),a.d(e,"p",(function(){return D})),a.d(e,"y",(function(){return H})),a.d(e,"N",(function(){return P})),a.d(e,"b",(function(){return _})),a.d(e,"h",(function(){return $})),a.d(e,"u",(function(){return M})),a.d(e,"d",(function(){return U})),a.d(e,"c",(function(){return z})),a.d(e,"n",(function(){return A})),a.d(e,"f",(function(){return F})),a.d(e,"e",(function(){return R})),a.d(e,"r",(function(){return E}));var r=a("4020");const i=t=>Object(r["a"])({url:"/api/serverTerminal/pageList",method:"post",data:t}),n=t=>Object(r["a"])({url:"/api/serverTerminal/saveOrUpdate",method:"post",data:t}),s=t=>Object(r["a"])({url:"/api/serverTerminal/deleteById",method:"get",params:t}),o=t=>Object(r["a"])({url:"/api/serverTerminal/connectServer",method:"get",params:t}),l=t=>Object(r["a"])({url:"/api/serverTerminal/disconnectServer",method:"get",params:t}),c=t=>Object(r["a"])({url:"/api/board/refressBoardInformation",method:"get",params:t}),u=t=>Object(r["a"])({url:"/api/board/pageBoardList",method:"post",data:t}),d=t=>Object(r["a"])({url:"/api/board/saveOrUpdateBoard",method:"post",data:t}),h=t=>Object(r["a"])({url:"/api/board/deleteBoardById",method:"get",params:t}),p=t=>Object(r["a"])({url:"/api/board/getBoardType",method:"get",params:t}),m=t=>Object(r["a"])({url:"/api/board/pageChannelList",method:"post",data:t}),b=t=>Object(r["a"])({url:"/api/board/saveOrUpdateChannel",method:"post",data:t}),g=t=>Object(r["a"])({url:"/api/scheme/pageList",method:"post",data:t}),f=t=>Object(r["a"])({url:"/api/scheme/saveOrUpdate",method:"post",data:t}),v=t=>Object(r["a"])({url:"/api/scheme/deleteById",method:"get",params:t}),y=t=>Object(r["a"])({url:"/api/invocation/pageList",method:"post",data:t}),O=t=>Object(r["a"])({url:"/api/invocation/saveOrUpdate",method:"post",data:t}),j=t=>Object(r["a"])({url:"/api/invocation/deleteById",method:"get",params:t}),k=t=>Object(r["a"])({url:"/api/instruct/saveOrUpdateInstruct",method:"post",data:t}),L=t=>Object(r["a"])({url:"/api/instruct/deleteInstructById",method:"post",data:t}),C=t=>Object(r["a"])({url:"/api/log/getLogList",method:"post",data:t}),Q=t=>Object(r["a"])({url:"/api/instruct/getChannelList",method:"get",params:t}),w=t=>Object(r["a"])({url:"/api/parser/getParserList",method:"get",params:t}),T=t=>Object(r["a"])({url:"/api/parser/deleteParserById",method:"get",params:t}),I=t=>Object(r["a"])({url:"/api/protocol/pageListProtocol",method:"post",data:t}),x=t=>Object(r["a"])({url:"/api/parser/addProtocol",method:"post",data:t}),S=t=>Object(r["a"])({url:"/api/parser/getProtocolList",method:"get",params:t}),B=t=>Object(r["a"])({url:"/api/parser/saveOrUpdateParser",method:"post",data:t}),D=t=>Object(r["a"])({url:"/api/parser/deleteParserProtocolById",method:"get",params:t}),H=t=>Object(r["a"])({url:"/api/config/getShowColumnList",method:"get",params:t}),P=t=>Object(r["a"])({url:"/api/config/setShowColumnList",method:"post",data:t}),_=t=>Object(r["a"])({url:"/api/instruct/batchCopyBelow",method:"post",data:t}),$=t=>Object(r["a"])({url:"/api/instruct/createGroupFromList",method:"post",data:t}),M=t=>Object(r["a"])({url:"/api/board/getChannelTypeAll",method:"get",params:t}),U=t=>Object(r["a"])({url:"/api/boot-log/bootLogPage",method:"post",data:t}),z=t=>Object(r["a"])({url:"/api/boot-log/bootLogDelete",method:"post",data:t}),A=t=>Object(r["a"])({url:"/api/log/deleteLog",method:"post",data:t}),F=t=>Object(r["a"])({url:"/api/channelData/channelDataQuery",method:"post",data:t}),R=t=>Object(r["a"])({url:"/api/channelData/channelDataDelete",method:"post",data:t}),E=t=>Object(r["a"])({url:"/api/board/getBoardTemperature",method:"post",data:t})},4020:function(t,e,a){"use strict";a("14d9");var r=a("bc3a"),i=a.n(r),n=a("5c96"),s=a("0428"),o=a("e43c"),l=a("a18c"),c=i.a.create({timeout:6e4,baseURL:s["a"],headers:{"X-Custom-Header":"foobar"}});c.interceptors.request.use(t=>(t.headers["hadLoading"]||t.noLoading||Object(o["b"])(),"get"==t.method&&(t.params?t.params["_t"]=(new Date).getTime():t.params={}),t.headers.sessionId=sessionStorage.getItem("access_token")||"",t),t=>(Object(o["a"])(),Promise.reject(t))),c.interceptors.response.use(t=>{Object(o["a"])();const e=t.data;return e instanceof Blob?t:-1==e.code?(localStorage.removeItem("access_token"),n["Message"].closeAll(),Object(n["Message"])({message:e.msg||e.message||"系统出错",type:"error",duration:1e3,onClose:function(){l["a"].push("/")}}),e):-5==e.code||-25==e.code?(n["Message"].closeAll(),n["Message"].error({message:e.msg})):e},t=>(Object(o["a"])(),n["Message"].closeAll(),Object(n["Message"])({message:"网络超时,请稍后重试",type:"error"}),Promise.reject(t))),e["a"]=c},4754:function(t,e,a){"use strict";t.exports=function(t,e){return{value:t,done:e}}},6964:function(t,e,a){"use strict";var r=a("cb2d");t.exports=function(t,e,a){for(var i in e)r(t,i,e[i],a);return t}},"9bdd":function(t,e,a){"use strict";var r=a("825a"),i=a("2a62");t.exports=function(t,e,a,n){try{return n?e(r(a)[0],a[1]):e(a)}catch(s){i(t,"throw",s)}}},"9dac":function(t,e,a){},ab43:function(t,e,a){"use strict";var r=a("23e7"),i=a("c65b"),n=a("59ed"),s=a("825a"),o=a("46c4"),l=a("c5cc"),c=a("9bdd"),u=a("2a62"),d=a("2baa"),h=a("f99f"),p=a("c430"),m=!p&&!d("map",(function(){})),b=!p&&!m&&h("map",TypeError),g=p||m||b,f=l((function(){var t=this.iterator,e=s(i(this.next,t)),a=this.done=!!e.done;if(!a)return c(t,this.mapper,[e.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(t){s(this);try{n(t)}catch(e){u(this,"throw",e)}return b?i(b,this,t):new f(o(this),{mapper:t})}})},b64e:function(t,e,a){"use strict";var r=a("2a62");t.exports=function(t,e,a){for(var i=t.length-1;i>=0;i--)if(void 0!==t[i])try{a=r(t[i].iterator,e,a)}catch(n){e="throw",a=n}if("throw"===e)throw a;return a}},c20f:function(t,e,a){"use strict";a("9dac")},c5cc:function(t,e,a){"use strict";var r=a("c65b"),i=a("7c73"),n=a("9112"),s=a("6964"),o=a("b622"),l=a("69f3"),c=a("dc4a"),u=a("ae93").IteratorPrototype,d=a("4754"),h=a("2a62"),p=a("b64e"),m=o("toStringTag"),b="IteratorHelper",g="WrapForValidIterator",f="normal",v="throw",y=l.set,O=function(t){var e=l.getterFor(t?g:b);return s(i(u),{next:function(){var a=e(this);if(t)return a.nextHandler();if(a.done)return d(void 0,!0);try{var r=a.nextHandler();return a.returnHandlerResult?r:d(r,a.done)}catch(i){throw a.done=!0,i}},return:function(){var a=e(this),i=a.iterator;if(a.done=!0,t){var n=c(i,"return");return n?r(n,i):d(void 0,!0)}if(a.inner)try{h(a.inner.iterator,f)}catch(s){return h(i,v,s)}if(a.openIters)try{p(a.openIters,f)}catch(s){return h(i,v,s)}return i&&h(i,f),d(void 0,!0)}})},j=O(!0),k=O(!1);n(k,m,"Iterator Helper"),t.exports=function(t,e,a){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=e?g:b,i.returnHandlerResult=!!a,i.nextHandler=t,i.counter=0,i.done=!1,y(this,i)};return r.prototype=e?j:k,r}}}]);
//# sourceMappingURL=chunk-41a78ba0.7a88f733.js.map