lepu-test-platform-web/dist/static/js/6.ecbd846d8b8a22d497cb.js.map

1 line
30 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["webpack:///src/components/log/SysLog.vue","webpack:///./src/components/log/SysLog.vue?fe23","webpack:///./src/components/log/SysLog.vue","webpack:///src/components/log/RtLog.vue","webpack:///./src/components/log/RtLog.vue?9f51","webpack:///./src/components/log/RtLog.vue","webpack:///src/views/logmanager/Log.vue","webpack:///./src/views/logmanager/Log.vue?6db4","webpack:///./src/views/logmanager/Log.vue"],"names":["SysLog","data","queryInfo","operation","ip","createTime","pageNum","pageSize","logList","currpage","total","loading","mounted","created","this","getLogList","methods","selectLogList","_this","$api","log","queryAllLogInfo","stringify_default","then","res","count","catch","handleSizeChange","newSize","handleCurrentChange","newpageNum","log_SysLog","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","inline","label","placeholder","clearable","model","value","callback","$$v","$set","expression","_v","value-format","type","on","click","directives","name","rawName","staticStyle","width","slice","border","fit","align","prop","show-overflow-tooltip","current-page","page-sizes","page-size","layout","size-change","current-change","staticRenderFns","RtLog","websocket","window","location","hostname","port","logType","logNum","logKeyword","queryInfoRules","required","message","trigger","validator","rule","test","Error","max","loadingShowFlag","destroyed","close","rollBottom","container","document","getElementById","scrollTop","scrollHeight","clearScreen","containerDiv","innerHTML","style","padding","getRequestUrl","keyword","readLogInfo","_this2","$refs","queryInfoRef","validate","valid","WebSocket","$notify","onerror","onopen","onmessage","event","overflow","scrollIntoView","onclose","log_RtLog","ref","rules","id","_e","Log","activeName","load","system","service","pageName","handleClick","tab","components","SystemLog","__webpack_require__","normalizeComponent","ssrContext","RealTimeLog","RtLog_normalizeComponent","logmanager_Log","tab-click","Log_Component","Log_normalizeComponent","__webpack_exports__"],"mappings":"iMAiDAA,GACAC,KADA,WAEA,OACAC,WACAC,UAAA,GACAC,GAAA,GACA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sourcesContent":["<template>\n <div class=\"sys-log-box\">\n <el-form :inline=\"true\" class=\"item-form-inline\">\n <el-form-item label=\"操作内容\">\n <el-input placeholder=\"请输入操作内容\" clearable class=\"input-with-select\" v-model=\"queryInfo.operation\"></el-input>\n </el-form-item>\n <el-form-item label=\"操作IP\">\n <el-input placeholder=\"请输入IP地址\" clearable class=\"input-with-select\" v-model=\"queryInfo.ip\"></el-input>\n </el-form-item>\n <el-form-item label=\"操作时间\">\n <template>\n <div class=\"block\">\n <el-date-picker\n v-model=\"queryInfo.createTime\"\n value-format=\"yyyy-MM-dd\"\n type=\"date\"\n placeholder=\"选择日期时间\">\n </el-date-picker>\n </div>\n </template>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" @click=\"selectLogList\">查询</el-button>\n </el-form-item>\n </el-form>\n <el-table v-loading=\"loading\" :data=\"logList.slice((currpage - 1)*queryInfo.pageSize, currpage*queryInfo.pageSize)\" border :fit=\"true\" style=\"width: 100%\">\n <el-table-column label=\"序号\" type=\"index\" align=\"center\" width=\"80\"></el-table-column>\n <el-table-column label=\"操作内容\" prop=\"operation\" width=\"260\"></el-table-column>\n <el-table-column label=\"方法名\" prop=\"method\" width=\"200\" show-overflow-tooltip></el-table-column>\n <el-table-column label=\"参数\" prop=\"params\" width=\"200\" show-overflow-tooltip></el-table-column>\n <el-table-column label=\"耗时\" prop=\"time\" width=\"100\"></el-table-column>\n <el-table-column label=\"IP地址\" prop=\"ip\"></el-table-column>\n <el-table-column label=\"操作时间\" prop=\"createTime\" width=\"180\"></el-table-column>\n <el-table-column label=\"请求类型\" prop=\"requestType\" width=\"120\"></el-table-column>\n <el-table-column label=\"接口地址\" prop=\"interfacePath\" width=\"300\" show-overflow-tooltip></el-table-column>\n </el-table>\n <el-pagination\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n :current-page=\"currpage\"\n :page-sizes=\"[5, 10, 20, 30]\"\n :page-size=\"queryInfo.pageSize\"\n layout=\"prev, pager, next, sizes, total, jumper\"\n :total=\"total\">\n </el-pagination>\n </div>\n</template>\n\n<script>\nexport default {\n data () {\n return {\n queryInfo: {\n operation: '',\n ip: '',\n createTime: '',\n pageNum: 1,\n pageSize: 10\n },\n logList: [],\n currpage: 1,\n total: 0,\n loading: false\n }\n },\n mounted () {\n },\n created () {\n this.getLogList()\n },\n methods: {\n selectLogList(){\n this.queryInfo.pageNum = 1\n this.total = 0\n this.getLogList()\n },\n getLogList () {\n this.loading = true\n if(this.queryInfo.createTime == null)\n this.queryInfo.createTime = ''\n this.$api.log.queryAllLogInfo(JSON.stringify(this.queryInfo)).then(res => {\n this.loading = false\n this.logList = res.data.data\n this.total = res.data.count\n this.queryInfo.pageNum = 1\n }).catch(() => {\n this.loading = false\n })\n },\n handleSizeChange (newSize) {\n this.queryInfo.pageSize = newSize\n this.getLogList()\n },\n handleCurrentChange (newpageNum) {\n this.queryInfo.pageNum = newpageNum\n this.getLogList()\n }\n }\n}\n</script>\n\n<style scoped lang=\"less\">\n.sys-log-box {\n padding: 20px 25px;\n}\n.el-table {\n margin-top: 0px;\n margin-bottom: 10px;\n}\n.el-select {\n width: 100% !important;\n}\n\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/components/log/SysLog.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"sys-log-box\"},[_c('el-form',{staticClass:\"item-form-inline\",attrs:{\"inline\":true}},[_c('el-form-item',{attrs:{\"label\":\"操作内容\"}},[_c('el-input',{staticClass:\"input-with-select\",attrs:{\"placeholder\":\"请输入操作内容\",\"clearable\":\"\"},model:{value:(_vm.queryInfo.operation),callback:function ($$v) {_vm.$set(_vm.queryInfo, \"operation\", $$v)},expression:\"queryInfo.operation\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"操作IP\"}},[_c('el-input',{staticClass:\"input-with-select\",attrs:{\"placeholder\":\"请输入IP地址\",\"clearable\":\"\"},model:{value:(_vm.queryInfo.ip),callback:function ($$v) {_vm.$set(_vm.queryInfo, \"ip\", $$v)},expression:\"queryInfo.ip\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"操作时间\"}},[[_c('div',{staticClass:\"block\"},[_c('el-date-picker',{attrs:{\"value-format\":\"yyyy-MM-dd\",\"type\":\"date\",\"placeholder\":\"选择日期时间\"},model:{value:(_vm.queryInfo.createTime),callback:function ($$v) {_vm.$set(_vm.queryInfo, \"createTime\", $$v)},expression:\"queryInfo.createTime\"}})],1)]],2),_vm._v(\" \"),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.selectLogList}},[_vm._v(\"查询\")])],1)],1),_vm._v(\" \"),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.logList.slice((_vm.currpage - 1)*_vm.queryInfo.pageSize, _vm.currpage*_vm.queryInfo.pageSize),\"border\":\"\",\"fit\":true}},[_c('el-table-column',{attrs:{\"label\":\"序号\",\"type\":\"index\",\"align\":\"center\",\"width\":\"80\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作内容\",\"prop\":\"operation\",\"width\":\"260\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"方法名\",\"prop\":\"method\",\"width\":\"200\",\"show-overflow-tooltip\":\"\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"参数\",\"prop\":\"params\",\"width\":\"200\",\"show-overflow-tooltip\":\"\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"耗时\",\"prop\":\"time\",\"width\":\"100\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"IP地址\",\"prop\":\"ip\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作时间\",\"prop\":\"createTime\",\"width\":\"180\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"请求类型\",\"prop\":\"requestType\",\"width\":\"120\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"接口地址\",\"prop\":\"interfacePath\",\"width\":\"300\",\"show-overflow-tooltip\":\"\"}})],1),_vm._v(\" \"),_c('el-pagination',{attrs:{\"current-page\":_vm.currpage,\"page-sizes\":[5, 10, 20, 30],\"page-size\":_vm.queryInfo.pageSize,\"layout\":\"prev, pager, next, sizes, total, jumper\",\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-56f583ee\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/log/SysLog.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-56f583ee\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./SysLog.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./SysLog.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./SysLog.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-56f583ee\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./SysLog.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-56f583ee\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/log/SysLog.vue\n// module id = null\n// module chunks = ","<template>\n <div class=\"rt-log-box\">\n <div class=\"rt-operator-area\">\n <el-form :model=\"queryInfo\" :inline=\"true\" :rules=\"queryInfoRules\" ref=\"queryInfoRef\" class=\"demo-form-inline\">\n <el-form-item label=\"日志类型\" prop=\"logType\">\n <el-select v-model=\"queryInfo.logType\" clearable placeholder=\"请选择\">\n <el-option value=\"INFO\">INFO</el-option>\n <el-option value=\"ERROR\">ERROR</el-option>\n </el-select>\n </el-form-item>\n <el-form-item label=\"日志行数\" prop=\"logNum\">\n <el-input placeholder=\"请输入1~10000之间的整数\" clearable v-model=\"queryInfo.logNum\"></el-input>\n </el-form-item>\n <el-form-item label=\"关键字\" prop=\"logKeyword\">\n <el-input placeholder=\"请输入关键字\" clearable v-model=\"queryInfo.logKeyword\"></el-input>\n </el-form-item>\n <el-button @click=\"readLogInfo\" type=\"primary\">查询</el-button>\n <el-button @click=\"clearScreen\">清屏</el-button>\n </el-form>\n </div>\n <div id=\"rtLogContainer\" class=\"rt-log-container\">\n <div id=\"rtLogContainerDiv\" class=\"rt-log-container-div\"></div>\n <div id=\"rtLogContainerBottom\" class=\"rt-log-container-bottom\" v-if=\"loadingShowFlag\"><i class=\"el-icon-loading\"></i></div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n data () {\n var checkCycleNumber = (rule, value, callback)=>{\n const regNum = /^(?!0)(?:[0-9]{1,4}|10000)$/\n if(regNum.test(value)){\n return callback()\n }\n callback(new Error('请输入1~10000之间的整数'))\n }\n return {\n websocket: '',\n queryInfo: {\n ip: window.location.hostname,\n port: window.location.hostname == 'localhost' ? '9527' :'19527',\n logType: '',\n logNum: '',\n logKeyword: ''\n },\n queryInfoRules: {\n logType: [\n { required: true, message: '请选择日志类型', trigger: 'blur' }\n ],\n logNum: [\n { required: true, message: '请输入日志行数', trigger: 'blur' },\n { validator: checkCycleNumber, trigger: 'blur', max: 10}\n ],\n logKeyword: [\n { required: false, message: '请输入关键字', trigger: 'blur' }\n ]\n },\n loadingShowFlag: false\n }\n },\n mounted () {\n },\n created () {\n },\n destroyed: function() {\n if(this.websocket)\n this.websocket.close()\n },\n methods: {\n rollBottom(){\n var container = document.getElementById('rtLogContainer')\n container.scrollTop(container[0].scrollHeight)\n },\n clearScreen(){\n var containerDiv = document.getElementById('rtLogContainerDiv')\n containerDiv.innerHTML = ''\n containerDiv.style.padding = 0 + 'px'\n this.loadingShowFlag = false\n },\n getRequestUrl(){\n var keyword = 'undifined'\n if(this.queryInfo.logKeyword)\n keyword = this.queryInfo.logKeyword\n return 'ws://' + this.queryInfo.ip + ':' + this.queryInfo.port + '/websocket/rtLog/' + this.queryInfo.logType + '/' + this.queryInfo.logNum + '/' + keyword\n },\n readLogInfo(){\n this.$refs.queryInfoRef.validate(valid => {\n if (!valid) return\n let websocket\n let _this = this\n if('WebSocket' in window){\n websocket = new WebSocket(this.getRequestUrl())\n this.websocket = websocket\n }else{\n this.$notify({\n message: '请使用最新版本的谷歌浏览器!',\n type: 'warning'\n })\n }\n websocket.onerror = function () {\n _this.$notify({\n message: 'WebSocket连接失败',\n type: 'error'\n })\n }\n websocket.onopen = function () {\n // console.log(\"WebSocket连接成功\")\n _this.loadingShowFlag = true\n }\n websocket.onmessage = function (event) {\n if(event.data){\n var containerDiv = document.getElementById('rtLogContainerDiv')\n containerDiv.style.padding = 10 + 'px'\n containerDiv.style.overflow ='auto'\n containerDiv.innerHTML += event.data\n var rtLogContainerBottom = document.getElementById('rtLogContainerBottom')\n rtLogContainerBottom.scrollIntoView()\n }else{\n var containerDiv = document.getElementById('rtLogContainerDiv')\n containerDiv.innerHTML = '暂无数据'\n }\n }\n websocket.onclose = function () {\n // console.log(\"WebSocket连接关闭\")\n } \n })\n }\n }\n}\n</script>\n\n<style scoped lang=\"less\">\n.rt-log-box {\n padding: 0px 10px 10px 10px;\n}\n.rt-log-container{\n background-color: #ccc;\n}\n</style>\n\n\n// WEBPACK FOOTER //\n// src/components/log/RtLog.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"rt-log-box\"},[_c('div',{staticClass:\"rt-operator-area\"},[_c('el-form',{ref:\"queryInfoRef\",staticClass:\"demo-form-inline\",attrs:{\"model\":_vm.queryInfo,\"inline\":true,\"rules\":_vm.queryInfoRules}},[_c('el-form-item',{attrs:{\"label\":\"日志类型\",\"prop\":\"logType\"}},[_c('el-select',{attrs:{\"clearable\":\"\",\"placeholder\":\"请选择\"},model:{value:(_vm.queryInfo.logType),callback:function ($$v) {_vm.$set(_vm.queryInfo, \"logType\", $$v)},expression:\"queryInfo.logType\"}},[_c('el-option',{attrs:{\"value\":\"INFO\"}},[_vm._v(\"INFO\")]),_vm._v(\" \"),_c('el-option',{attrs:{\"value\":\"ERROR\"}},[_vm._v(\"ERROR\")])],1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"日志行数\",\"prop\":\"logNum\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入1~10000之间的整数\",\"clearable\":\"\"},model:{value:(_vm.queryInfo.logNum),callback:function ($$v) {_vm.$set(_vm.queryInfo, \"logNum\", $$v)},expression:\"queryInfo.logNum\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"关键字\",\"prop\":\"logKeyword\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键字\",\"clearable\":\"\"},model:{value:(_vm.queryInfo.logKeyword),callback:function ($$v) {_vm.$set(_vm.queryInfo, \"logKeyword\", $$v)},expression:\"queryInfo.logKeyword\"}})],1),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.readLogInfo}},[_vm._v(\"查询\")]),_vm._v(\" \"),_c('el-button',{on:{\"click\":_vm.clearScreen}},[_vm._v(\"清屏\")])],1)],1),_vm._v(\" \"),_c('div',{staticClass:\"rt-log-container\",attrs:{\"id\":\"rtLogContainer\"}},[_c('div',{staticClass:\"rt-log-container-div\",attrs:{\"id\":\"rtLogContainerDiv\"}}),_vm._v(\" \"),(_vm.loadingShowFlag)?_c('div',{staticClass:\"rt-log-container-bottom\",attrs:{\"id\":\"rtLogContainerBottom\"}},[_c('i',{staticClass:\"el-icon-loading\"})]):_vm._e()])])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-1f4c41e0\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/log/RtLog.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-1f4c41e0\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./RtLog.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./RtLog.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./RtLog.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-1f4c41e0\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./RtLog.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-1f4c41e0\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/log/RtLog.vue\n// module id = null\n// module chunks = ","<template>\n <div class=\"log-box\">\n <el-tabs v-model=\"activeName\" @tab-click=\"handleClick\">\n <el-tab-pane label=\"系统日志\" name=\"system\"><system-log></system-log></el-tab-pane>\n <el-tab-pane label=\"服务日志\" name=\"service\"><real-time-log></real-time-log></el-tab-pane>\n </el-tabs>\n </div>\n</template>\n\n<script>\nimport SystemLog from '@/components/log/SysLog.vue'\nimport RealTimeLog from '@/components/log/RtLog.vue'\nexport default {\n data () {\n return {\n activeName: 'system',\n load: {\n system: true,\n service: false\n },\n pageName: 'log'\n }\n }, \n mounted () {},\n created () {},\n methods: {\n handleClick(tab, event) {\n if (this.load[tab.name] === false){\n this.load[tab.name] = true\n }\n }\n },\n components: {\n SystemLog,\n RealTimeLog\n }\n}\n</script>\n\n<style scoped lang=\"less\">\n/deep/ .el-tabs__nav-wrap {\n padding: 0 15px;\n}\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/views/logmanager/Log.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"log-box\"},[_c('el-tabs',{on:{\"tab-click\":_vm.handleClick},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:\"activeName\"}},[_c('el-tab-pane',{attrs:{\"label\":\"系统日志\",\"name\":\"system\"}},[_c('system-log')],1),_vm._v(\" \"),_c('el-tab-pane',{attrs:{\"label\":\"服务日志\",\"name\":\"service\"}},[_c('real-time-log')],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-e05dcea4\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/logmanager/Log.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-e05dcea4\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Log.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Log.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Log.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-e05dcea4\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Log.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-e05dcea4\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/logmanager/Log.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}