{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\components\\logQuery.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\components\\logQuery.vue","mtime":1684458239215},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport logQuery from '@/api/logQuery.js';\nimport FormDialog from \"./logQuery-dialog.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 pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n taskId: '',\n startTime: null,\n status: null\n },\n statusList: [{\n value: 0,\n label: '失败'\n }, {\n value: 1,\n label: '成功'\n }],\n startTime: '',\n endTime: '',\n result: '',\n //任务结果\n status: 0,\n //任务状态\n // sysJoblogId: '', //调度id\n taskId: '',\n //任务id\n taskMemo: '',\n //任务说明\n tableData: [],\n total: 0,\n showFormDia: false,\n title: '',\n pId: '',\n taskName: '',\n multipleSelection: [],\n operation: '操作',\n operationDefault: '0',\n falgSerch: null\n };\n },\n created: function created() {\n this.params.taskId = this.$route.query.id;\n this.getDateList();\n },\n methods: {\n stat: function stat(val) {\n console.log(this.params.status);\n this.params.status = val;\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 //搜索\n onClickSearch: function onClickSearch(val) {\n this.falgSerch = val;\n this.pageBean.page = 1;\n this.getDateList();\n },\n //重置\n resetQuery: function resetQuery() {\n this.params.startTime = '';\n this.params.status = null;\n this.pageBean.page = 1;\n this.getDateList();\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n handleSizeChange: function handleSizeChange(val) {\n this.pageBean.pageSize = val;\n this.getDateList();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.pageBean.page = val;\n this.getDateList();\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n },\n // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n getDateList: function getDateList() {\n var _this = this;\n\n var data = {\n pageBean: this.pageBean,\n querys: [{\n property: 'taskId',\n operation: 'EQUAL',\n value: this.params.taskId,\n group: 'filter',\n relation: 'AND'\n }],\n sorter: [{\n direction: \"DESC\",\n property: \"startTime\"\n }]\n };\n\n if (this.params.startTime) {\n data = {\n pageBean: this.pageBean,\n querys: [{\n property: 'startTime',\n operation: 'BETWEEN',\n value: [this.startTime, this.endTime],\n group: 'filter',\n relation: 'AND'\n }]\n };\n }\n\n if (this.params.status) {\n data = {\n pageBean: this.pageBean,\n querys: [{\n property: 'status',\n operation: 'EQUAL',\n value: this.params.status,\n group: 'filter',\n relation: 'AND'\n }]\n };\n }\n\n if (this.params.status && this.params.startTime) {\n data = {\n pageBean: this.pageBean,\n querys: [{\n property: 'startTime',\n operation: 'BETWEEN',\n value: [this.startTime, this.endTime],\n group: 'filter',\n relation: 'AND'\n }, {\n property: 'status',\n operation: 'EQUAL',\n value: this.params.status,\n group: 'filter',\n relation: 'AND'\n }]\n };\n }\n\n this.tableData = [];\n logQuery.logList(data, function (res) {\n _this.total = res.total;\n _this.tableData = res.rows;\n _this.loading = false;\n });\n },\n handleUpdate: function handleUpdate(row) {\n this.title = '查看';\n this.pId = row.id;\n this.showFormDia = true;\n },\n // 返回上一级\n goBack: function goBack() {\n this.$router.go(-1);\n }\n }\n};",null]}