{"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\\monitor\\gqMonitor\\components\\sygQueryDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\gqMonitor\\components\\sygQueryDialog.vue","mtime":1687666136950},{"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// import swStQuery from '@/api/monitor/resMonitor/swStQuery.js'\nimport gqStqQuery from '@/api/monitor/gqMonitor/gqStqQuery.js';\nexport default {\n name: 'TimeSelection',\n props: {\n appType: {\n type: String,\n default: ''\n },\n newParam: {\n type: Object,\n default: ''\n }\n },\n data: function data() {\n return {\n pickerOptions: {\n disabledDate: function disabledDate(time) {\n //disabledDate 文档上:设置禁用状态,参数为当前日期,要求返回 Boolean\n return time.getTime() > Date.now(); //选当前时间之前的时间\n //return time.getTime() < Date.now()//选当前时间之后的时间\n }\n },\n visible: false,\n title: '选择',\n scopeTime: '',\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n appType: null,\n startTime: null,\n endTime: null\n }\n }\n };\n },\n created: function created() {},\n methods: {\n //默认时间\n getCurrentMonthLast: function getCurrentMonthLast() {\n var moment = require('moment'); //打开时默认时间为一天前至获取当前年月日时分秒\n\n\n var endTime = moment().format('YYYY-MM-DD'); //当前年月日\n\n var startTime = moment().subtract(1, 'days').format('YYYY-MM-DD');\n this.scopeTime = [startTime, endTime];\n var time = moment().format('LTS'); //当前时分秒\n\n this.queryParam.params.startTime = this.scopeTime[0] + ' ' + '00:00:00';\n this.queryParam.params.endTime = this.scopeTime[1] + ' ' + time;\n },\n openShare: function openShare(val) {\n this.queryParam.querys = [];\n\n if (val.rscd) {\n this.queryParam.querys.push({\n property: 'bsin.rscd',\n operation: 'LIKE',\n value: val.rscd,\n group: 'main',\n relation: 'AND'\n });\n } else if (val.wkcn) {\n this.queryParam.querys.push({\n group: 'main',\n operation: 'LIKE',\n property: 'gqb.wkcn',\n relation: 'AND',\n value: val.wkcn\n });\n } else if (val.mpnm) {\n this.queryParam.querys.push({\n group: 'main',\n operation: 'LIKE',\n property: 'gqb.mpnm',\n relation: 'AND',\n value: val.mpnm\n });\n }\n\n this.visible = true;\n this.queryParam.params.appType = this.appType;\n this.getCurrentMonthLast();\n },\n changeDate: function changeDate(val) {\n if (val) {\n var moment = require('moment'); //打开时默认时间为一天前至获取当前年月日时分秒\n\n\n var time = moment().format('LTS'); //当前时分秒\n\n this.queryParam.params.startTime = val[0] + ' ' + '00:00:00';\n this.queryParam.params.endTime = val[1] + ' ' + time;\n } else {\n this.queryParam.params.startTime = '';\n this.queryParam.params.endTime = '';\n }\n },\n // 导出数据\n handleSave: function handleSave() {\n var _this = this;\n\n //导出excl\n var loading = this.$loading({\n lock: true,\n text: '导出中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.7)'\n });\n gqStqQuery.resDataDerived(this.queryParam, function (res) {\n if (res.type === 'application/json') {\n var fileReader = new FileReader();\n\n fileReader.onloadend = function () {\n var jsonData = JSON.parse(fileReader.result);\n\n _this.$message.error(jsonData.message);\n };\n\n fileReader.readAsText(res);\n } else {\n _this.$message.success('导出成功');\n\n _this.handleClose();\n }\n\n loading.close(); // if (res.message) {\n // \tthis.$message.error(res.message);\n // }else{\n // }\n });\n },\n handleClose: function handleClose() {\n this.getCurrentMonthLast();\n this.queryParam = {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n appType: null,\n startTime: null,\n endTime: null\n }\n };\n this.visible = false;\n }\n }\n};",null]}