{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\resourceManage\\components\\logQuery.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\resourceManage\\components\\logQuery.vue","mtime":1667545182629},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\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//\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 { TableMixin } from '@/mixins/tableMixin';\nimport logQuery from '@/api/logQuery.js';\nimport FormDialog from \"./logQueryDialog.vue\";\nexport default {\n name: 'logQuery',\n components: {\n FormDialog: FormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n loading: false,\n rangeTime: [],\n startTime: '',\n endTime: '',\n taskId: '',\n //任务id\n total: 0,\n statusList: [{\n value: 0,\n label: '失败'\n }, {\n value: 1,\n label: '成功'\n }],\n querys: [{\n group: 'filter',\n operation: 'EQUAL',\n property: 'taskId',\n relation: 'AND',\n value: ''\n }, {\n group: 'filter',\n operation: 'BETWEEN',\n property: 'startTime',\n relation: 'AND',\n value: []\n }, {\n group: 'filter',\n operation: 'EQUAL',\n property: 'status',\n relation: 'AND',\n value: ''\n }],\n sorter: [{\n direction: 'DESC',\n property: 'startTime'\n }]\n };\n },\n created: function created() {\n this.taskId = this.$route.query.id;\n },\n methods: {\n reload: function reload() {\n this.loadData(1);\n },\n changeDate: function changeDate(val) {\n if (val) {\n this.startTime = val[0];\n this.endTime = val[1];\n } else {\n this.startTime = '';\n this.endTime = '';\n }\n\n this.rangeTime = [this.startTime, this.endTime];\n this.querys[1].value = [this.startTime, this.endTime];\n },\n // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n },\n loadData: function loadData(page) {\n var _this = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.sorter = this.sorter;\n this.querys[0].value = this.taskId;\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value && this.querys[1].value.length) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value !== \"\") {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n logQuery.logList(this.queryParam, function (res) {\n if (res.rows && res.rows.length) {\n _this.total = res.total;\n _this.tableData = res.rows;\n }\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n });\n },\n // 返回上一级\n goBack: function goBack() {\n this.$router.go(-1);\n }\n }\n};",null]}