hz-zhhq-web/node_modules/.cache/babel-loader/442d5c781c4bda3682f5b56edc4...

1 line
7.4 KiB
JSON

{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\systemLog\\report.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\systemLog\\report.vue","mtime":1737610069451},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _defineProperty from \"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport moment from \"moment\";\nimport Paging from \"@/views/Public/paging.vue\";\nimport { GaosLog, deleteLog } from \"@/api/getdata\";\nexport default {\n components: {\n Paging: Paging\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n formInline: {\n operationType: \"\",\n operator: \"\",\n ipAddress: \"\",\n stateTime: \"\",\n EndTime: \"\",\n operationContent: \"\",\n result: \"\",\n source: \"\"\n },\n tableData: [\n // {code:'1'}\n ],\n sourceOption: [{\n value: \"1\",\n label: \"pc\"\n }, {\n value: \"2\",\n label: \"app\"\n }],\n tableCols: [_defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"60\",\n prop: \"code\",\n label: \"序号\",\n align: \"center\"\n }, \"minWidth\", \"140\"), _defineProperty(_defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"operation_name\",\n label: \"操作人\"\n }, \"minWidth\", \"110\"), \"sortable\", true), {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"operation_ip\",\n label: \"IP地址\",\n sortable: true\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"operate_type\",\n label: \"类型\",\n sortable: true\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"operate_model\",\n label: \"模块\",\n sortable: true\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"operate_title\",\n label: \"标题\",\n sortable: true\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"operate_details\",\n label: \"详情\",\n align: \"left\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"operate_jb\",\n label: \"级别\",\n sortable: true\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"110\",\n prop: \"operate_cs\",\n label: \"次数\",\n align: \"left\",\n sortable: true\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"130\",\n prop: \"fast_time\",\n label: \"最初告警时间\",\n align: \"left\",\n sortable: true\n },\n // {\n // type: \"normal\",\n // is_show: true,\n // minWidth: \"130\",\n // prop: \"fast_time\",\n // label: \"最新告警时间\",\n // align: \"left\",\n // sortable: true\n // },\n {\n type: \"normal\",\n is_show: true,\n minWidth: \"80\",\n prop: \"source\",\n label: \"来源\",\n align: \"left\",\n sortable: true\n }]\n };\n },\n mounted: function mounted() {\n this.createLoad();\n // console.log(moment,50)\n this.getlist();\n },\n methods: {\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = '加载中...';\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = '';\n },\n onOut: function onOut() {},\n onSubmit: function onSubmit() {\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n },\n statisic: function statisic() {},\n logClear: function logClear() {\n var _this = this;\n deleteLog().then(function (res) {\n if (res.returnCode == \"1\") {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n currentChanges: function currentChanges(val) {\n this.page.limit = val;\n this.createLoad();\n this.getlist();\n },\n getlist: function getlist() {\n var _this2 = this;\n var Content = {\n currentPage: this.page.limit,\n queryObj: {\n // logRank:\"1\",\n operatorName: this.formInline.operator,\n // 操作人姓名\n startTime: this.formInline.stateTime,\n endtTime: this.formInline.EndTime,\n source: +this.formInline.source\n }\n };\n console.log(Content, 300);\n GaosLog(Content).then(function (res) {\n // console.log(res);\n if (res.returnCode == \"1\") {\n _this2.clearLoad();\n // console.log(res)\n _this2.tableData = res.returnData.data;\n _this2.page.total = res.returnData.total;\n _this2.page.limit = res.returnData.currentPage;\n if (_this2.page.total == 0) {\n _this2.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n }\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n }\n }\n};",null]}