{"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\\sqMonitor\\reservoirCapacity.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\sqMonitor\\reservoirCapacity.vue","mtime":1688458391974},{"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":["import \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es7.string.pad-start\";\nimport \"core-js/modules/es6.number.constructor\";\nimport \"core-js/modules/web.dom.iterable\";\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//\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 hdWaterLatest from '@/api/monitor/resMonitor/hdWaterLatest.js';\nimport reservoirCapacityDialog from \"./components/reservoirCapacityDialog.vue\";\nimport reservoirCapacity from '@/api/monitor/resMonitor/reservoirCapacity.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport moment from 'moment';\nimport req from '@/request.js';\nexport default {\n name: 'reservoirCapacity',\n components: {\n reservoirCapacityDialog: reservoirCapacityDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n timeValue: '',\n rscdValue: '',\n scopeTime: '',\n loading: false,\n basAdNames: [],\n //行政区\n setKesLabel: {\n value: 'code',\n label: 'name',\n children: 'children'\n },\n querys: [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'bs.rscd',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'ri.tm',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'bs.addvcd',\n relation: 'AND',\n value: ''\n }],\n queryParam: {\n pageBean: {\n pageSize: -1,\n page: 1,\n showTotal: true\n },\n params: {\n tm: ''\n },\n sorter: [{\n direction: 'ASC',\n property: ''\n }]\n },\n tableData: [],\n rsnms: [],\n //水库下拉,\n baseUrl: null\n };\n },\n updated: function updated() {\n var _this = this;\n\n this.$nextTick(function () {\n if (_this.$refs.table) {\n _this.$refs.table.doLayout();\n }\n });\n },\n created: function created() {\n this.queryParam.params.tm = moment().format('YYYY-MM-DD 8:00:00');\n this.timeValue = moment().format('YYYY-MM-DD 8:00:00');\n this.baseUrl = window.context.portal; // this.getCurrentMonthLast()\n\n this.getSysDict();\n this.getDateList();\n },\n methods: {\n onhouChange: function onhouChange(val) {\n if (val) {\n this.querys[2].value = val[val.length - 1];\n } else {\n this.querys[2].value = null;\n }\n },\n //指定列求和\n getSummaries: function getSummaries(param) {\n var columns = param.columns,\n data = param.data;\n var sums = [];\n columns.forEach(function (column, index) {\n if (index === 0) {\n sums[index] = '合计';\n return;\n }\n\n var values = data.map(function (item) {\n return Number(item[column.property]);\n });\n\n if (column.property == 'hy' || column.property == 'ddstcp' || column.property == 'acstcp' || column.property == 'ttstcp') {\n sums[index] = values.reduce(function (prev, curr) {\n var value = Number(curr);\n\n if (!isNaN(value)) {\n return Math.round((prev + curr) * 1000) / 1000;\n } else {\n return Math.round(prev * 1000) / 1000;\n }\n }, 0);\n sums[index];\n }\n });\n return sums;\n },\n openContrast: function openContrast() {\n this.$refs.reservoirCapacityDialog.openShare();\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this2 = this;\n\n reservoirCapacity.getRsnm({}, function (res) {\n _this2.rsnms = res.value;\n }); // 行政区查询\n\n hdWaterLatest.getbasAdName({}, function (res) {\n _this2.basAdNames = res.value;\n });\n },\n changeDate: function changeDate() {\n if (this.timeValue == null) {\n this.queryParam.params.tm = '';\n } else {\n var cstDate = new Date(this.timeValue);\n var year = cstDate.getFullYear();\n var month = (cstDate.getMonth() + 1).toString().padStart(2, '0');\n var day = cstDate.getDate().toString().padStart(2, '0');\n var hours = cstDate.getHours().toString().padStart(2, '0');\n var minutes = cstDate.getMinutes().toString().padStart(2, '0');\n var seconds = cstDate.getSeconds().toString().padStart(2, '0');\n this.queryParam.params.tm = \"\".concat(year, \"-\").concat(month, \"-\").concat(day, \" \").concat(hours, \":\").concat(minutes, \":\").concat(seconds);\n }\n },\n getDateList: function getDateList() {\n var _this3 = this;\n\n // this.getCurrentMonthLast()\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value.length > 0) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n reservoirCapacity.resDailyData(this.queryParam, function (res) {\n if (res.state) {\n _this3.tableData = res.value.rows;\n\n _this3.tableData.forEach(function (item) {\n if (item.rz == undefined) {\n item['rz'] = 0;\n }\n\n if (item.dyp == undefined) {\n item['dyp'] = 0;\n }\n });\n\n _this3.loading = false;\n } else {\n _this3.$message.error(res.message);\n }\n });\n },\n // // 点击查询\n onClickSearch: function onClickSearch() {\n if (this.querys[0].value.length > 0 || this.queryParam.params.tm != '') {\n this.queryParam.pageBean.page = 1;\n this.getDateList();\n } else {\n this.$message.warning('请选择查询条件');\n }\n },\n // 重置\n resetQuery: function resetQuery() {\n this.queryParam.params = {\n tm: moment().format('YYYY-MM-DD 8:00:00')\n };\n this.queryParam.querys = [];\n this.querys.forEach(function (item) {\n item.value = '';\n });\n this.scopeTime = '';\n this.onClickSearch();\n }\n }\n};",null]}