{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\sqMonitor\\components\\reservoirCapacityDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\sqMonitor\\components\\reservoirCapacityDialog.vue","mtime":1687666136950},{"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\nimport * as echarts from 'echarts'\nimport moment from 'moment'\nimport reservoirCapacity from '@/api/monitor/resMonitor/reservoirCapacity.js'\nexport default {\n\tname: 'TimeSelection',\n\tprops: {\n\t\tappType: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tvisible: false,\n\t\t\trsnms: [],\n\t\t\ttmValue: [],\n\t\t\toneData: [],\n\t\t\ttwoData: [],\n\t\t\tqueryParam: {\n\t\t\t\tpageBean: {\n\t\t\t\t\tpageSize: -1,\n\t\t\t\t\tpage: 1\n\t\t\t\t},\n\n\t\t\t\tsorter: [{\n\t\t\t\t\tdirection: \"ASC\",\n\t\t\t\t\tproperty: \"\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'IN',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'bs.rscd',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'BETWEEN',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'ri.tm',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t],\n\t\t\tnewParam: {\n\t\t\t\tpageBean: {\n\t\t\t\t\tpageSize: -1,\n\t\t\t\t\tpage: 1\n\t\t\t\t},\n\n\t\t\t\tsorter: [{\n\t\t\t\t\tdirection: \"ASC\",\n\t\t\t\t\tproperty: \"\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\tNquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'IN',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'bs.rscd',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'BETWEEN',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'ri.tm',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t],\n\t\t}\n\t},\n\tcreated() {\n\n\t},\n\tmethods: {\n\t\topenShare() {\n\t\t\tthis.visible = true\n\t\t\tthis.oneData = []\n\t\t\tthis.twoData = []\n\t\t\tthis.rsnms = []\n\t\t\tthis.querys[1].value = [moment().subtract(1, 'days').format('YYYY-MM-DD 8:00:00'), moment().format(\n\t\t\t\t'YYYY-MM-DD HH:mm:ss')]\n\t\t\tthis.Nquerys[1].value = [moment().subtract(1, 'days').format('YYYY-MM-DD 8:00:00'), moment().format(\n\t\t\t\t'YYYY-MM-DD HH:mm:ss')]\n\t\t\treservoirCapacity.getRsnm({}, (res) => {\n\t\t\t\tthis.rsnms = res.value\n\t\t\t\tthis.querys[0].value = [res.value[0].rscd]\n\t\t\t\tthis.Nquerys[0].value = [res.value[1].rscd]\n\t\t\t\tthis.queryOne()\n\t\t\t\tthis.getTwoData()\n\t\t\t})\n\t\t\t\n\t\t},\n\t\tqueryOne() {\n\t\t\tif (this.querys[0].value.length > 0 || this.querys[1].value) {\n\t\t\t\tthis.queryParam.querys = []\n\t\t\t\tif (this.querys[0].value.length > 0) {\n\t\t\t\t\tthis.queryParam.querys.push(this.querys[0])\n\t\t\t\t}\n\t\t\t\tif (this.querys[1].value) {\n\t\t\t\t\tthis.queryParam.querys.push(this.querys[1])\n\t\t\t\t}\n\t\t\t\treservoirCapacity.storageCapacityChart(this.queryParam, (res) => {\n\t\t\t\t\tif (res.value) {\n\t\t\t\t\t\tthis.oneData = res.value.rows\n\t\t\t\t\t\tthis.$nextTick(() => {\n\t\t\t\t\t\t\tthis.oneEcharts()\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.$message.warning('请选择查询条件')\n\t\t\t}\n\n\t\t},\n\t\tgetTwoData() {\n\t\t\tif (this.Nquerys[0].value.length > 0 || this.Nquerys[1].value) {\n\t\t\t\tthis.newParam.querys = []\n\t\t\t\tif (this.Nquerys[0].value.length > 0) {\n\t\t\t\t\tthis.newParam.querys.push(this.Nquerys[0])\n\t\t\t\t}\n\t\t\t\tif (this.Nquerys[1].value) {\n\t\t\t\t\tthis.newParam.querys.push(this.Nquerys[1])\n\t\t\t\t}\n\t\t\t\treservoirCapacity.storageCapacityChart(this.newParam, (res) => {\n\t\t\t\t\tif (res.value) {\n\t\t\t\t\t\tthis.twoData = res.value.rows\n\t\t\t\t\t\tthis.$nextTick(() => {\n\t\t\t\t\t\t\tthis.twoEcharts()\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.$message.warning('请选择查询条件')\n\t\t\t}\n\n\t\t},\n\t\toneEcharts() {\n\t\t\tlet times = []\n\t\t\tlet ANum = []\n\t\t\tlet BNum = []\n\t\t\tlet CNum = []\n\t\t\tthis.oneData.forEach(e => {\n\t\t\t\ttimes.push(e.dtupdt)\n\t\t\t\tANum.push(e.hy)\n\t\t\t\tBNum.push(e.ddstcp)\n\t\t\t\tCNum.push(e.ttstcp)\n\t\t\t})\n\t\t\tlet chartDom = document.getElementById('oneEcharts')\n\t\t\tlet trendEcharts = echarts.init(chartDom)\n\t\t\tlet option = {\n\t\t\t\tgrid: {\n\t\t\t\t\ttop: 35,\n\t\t\t\t\tleft: 60, // 调整这个属性\n\t\t\t\t\tright: 60,\n\t\t\t\t},\n\t\t\t\tlegend: {\n\t\t\t\t\tshow: true,\n\t\t\t\t},\n\t\t\t\txAxis: {\n\t\t\t\t\ttype: 'category',\n\t\t\t\t\tdata: times\n\t\t\t\t},\n\t\t\t\tyAxis: {\n\t\t\t\t\ttype: 'value'\n\t\t\t\t},\n\t\t\t\ttooltip: {\n\t\t\t\t\ttrigger: 'axis',\n\t\t\t\t\taxisPointer: {\n\t\t\t\t\t\ttype: 'shadow'\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tseries: [{\n\t\t\t\t\tname: '当前库容',\n\t\t\t\t\tdata: ANum,\n\t\t\t\t\ttype: 'line',\n\t\t\t\t\tcolor: \"#91CC75\",\n\t\t\t\t}, {\n\t\t\t\t\tname: '死库容',\n\t\t\t\t\tdata: BNum,\n\t\t\t\t\ttype: 'line',\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t}, {\n\t\t\t\t\tname: '总库容',\n\t\t\t\t\tdata: CNum,\n\t\t\t\t\ttype: 'line',\n\t\t\t\t\tcolor: \"blue\",\n\t\t\t\t}]\n\t\t\t};\n\t\t\toption && trendEcharts.setOption(option)\n\t\t},\n\t\ttwoEcharts() {\n\t\t\tlet times = []\n\t\t\tlet ANum = []\n\t\t\tlet BNum = []\n\t\t\tlet CNum = []\n\t\t\tthis.twoData.forEach(e => {\n\t\t\t\ttimes.push(e.dtupdt)\n\t\t\t\tANum.push(e.hy)\n\t\t\t\tBNum.push(e.ddstcp)\n\t\t\t\tCNum.push(e.ttstcp)\n\t\t\t})\n\t\t\tlet chartDom = document.getElementById('twoEcharts')\n\t\t\tlet trendEcharts = echarts.init(chartDom)\n\t\t\tlet option = {\n\t\t\t\tgrid: {\n\t\t\t\t\ttop: 35,\n\t\t\t\t\tleft: 60, // 调整这个属性\n\t\t\t\t\tright: 60,\n\t\t\t\t},\n\t\t\t\tlegend: {\n\t\t\t\t\tshow: true,\n\t\t\t\t},\n\t\t\t\txAxis: {\n\t\t\t\t\ttype: 'category',\n\t\t\t\t\tdata: times\n\t\t\t\t},\n\t\t\t\tyAxis: {\n\t\t\t\t\ttype: 'value'\n\t\t\t\t},\n\t\t\t\ttooltip: {\n\t\t\t\t\ttrigger: 'axis',\n\t\t\t\t\taxisPointer: {\n\t\t\t\t\t\ttype: 'shadow'\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tseries: [{\n\t\t\t\t\tname: '当前库容',\n\t\t\t\t\tdata: ANum,\n\t\t\t\t\ttype: 'line',\n\t\t\t\t\tcolor: \"#91CC75\",\n\t\t\t\t}, {\n\t\t\t\t\tname: '死库容',\n\t\t\t\t\tdata: BNum,\n\t\t\t\t\ttype: 'line',\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t}, {\n\t\t\t\t\tname: '总库容',\n\t\t\t\t\tdata: CNum,\n\t\t\t\t\ttype: 'line',\n\t\t\t\t\tcolor: \"blue\",\n\t\t\t\t}]\n\t\t\t};\n\t\t\toption && trendEcharts.setOption(option)\n\t\t},\n\t\thandleClose() {\n\t\t\tthis.visible = false\n\t\t}\n\t},\n}\n",null]}