{"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\\otherMonitor\\components\\sdzDerivedData.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\otherMonitor\\components\\sdzDerivedData.vue","mtime":1684458239309},{"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//\nimport sdzQuery from '@/api/monitor/otherMonitor/sdzQuery.js';\nexport default {\n name: 'TimeSelection',\n props: {\n sstp: {\n type: String,\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 sstp: null,\n startTime: null,\n endTime: null\n }\n }\n };\n },\n created: function created() {\n this.queryParam.params.sstp = this.sstp;\n this.getCurrentMonthLast();\n },\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() {\n this.visible = true;\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 var param = {\n groupRelation: \"AND\",\n groupTree: {},\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n params: {\n startTime: this.queryParam.params.startTime,\n endTime: this.queryParam.params.endTime,\n sstp: this.sstp\n },\n querys: [{\n group: \"main\",\n operation: \"EQUAL\",\n parentGroup: \"\",\n property: \"\",\n relation: \"AND\",\n value: {}\n }],\n sorter: [{\n direction: \"ASC\",\n property: \"\"\n }]\n };\n sdzQuery.sdzDataDerived(param, function (res) {\n loading.close();\n\n if (!!res) {\n _this.$message.success('导出成功');\n\n _this.handleClose();\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 sstp: null,\n startTime: null,\n endTime: null\n }\n };\n this.visible = false;\n }\n }\n};",null]}