{"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\\slQuery.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\gqMonitor\\slQuery.vue","mtime":1684458239277},{"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.replace\";\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//\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 slQuery from '@/api/monitor/gqMonitor/slQuery.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport req from '@/request.js';\nimport * as echarts from 'echarts';\nexport default {\n name: 'displacement',\n components: {// FormDialog,\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n loading: false,\n basAdNames: [],\n //行政区\n statuss: [{\n name: '在线',\n value: '1'\n }, {\n name: '不在线',\n value: '0'\n }],\n multipleSelection: [],\n // 复选框\n rsnms: [],\n //水库下拉,\n stnms: [],\n //测站下拉\n setKesLabel: {\n value: 'code',\n label: 'name',\n children: 'children'\n },\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n rscd: null,\n stcd: null,\n addvcd: null,\n wkcn: null,\n stnem: null\n }\n },\n rwptns: [],\n //水势\n tableData: [],\n pId: '',\n total: 0,\n showFormDias: false,\n dates: [],\n //图表日期\n spqn: [],\n //渗流量(L/s)\n dspqn: [],\n //渗流量危险值(L/s)\n jspqn: [],\n //渗流量警戒值(L/s)\n echartLiat: [],\n times: [],\n //选择时间\n query: {\n stcd: null,\n stnm: null,\n startTime: null,\n endTime: null\n }\n };\n },\n created: function created() {\n this.getSysDict();\n },\n methods: {\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n onhouChange: function onhouChange(val) {\n if (val) {\n this.queryParam.params.addvcd = val[val.length - 1];\n } else {\n this.queryParam.params.addvcd = null;\n }\n },\n openDate: function openDate(val) {\n var _this = this;\n\n this.query.startTime = null; //每次打开弹窗时清空上次手动选择的时间\n\n this.query.endTime = null; //每次打开弹窗时清空上次手动选择的时间\n\n this.times = []; //每次打开弹窗时清空上次手动选择的时间\n\n this.query.stcd = val.stcd; //点击打开曲线图时赋值\n\n this.query.stnm = val.stnm; //点击打开曲线图时赋值\n\n var moment = require('moment'); //打开时默认时间为一天前至获取当前年月日时分秒\n\n\n var _today = moment();\n\n this.showFormDias = true;\n var endTime = moment().format('L'); //当前年月日\n\n var time = moment().format('LTS'); //当前时分秒\n\n endTime = endTime.replace(/\\//g, '-');\n endTime = endTime + ' ' + time;\n\n var startTime = _today.subtract(1, 'days').format('YYYY-MM-DD');\n /*前一天的时间*/\n\n\n startTime = startTime + ' ' + time;\n this.query.startTime = startTime;\n this.query.endTime = endTime;\n this.times = [startTime, endTime];\n var data = {\n query: {\n stnm: val.stnm,\n stcd: val.stcd,\n startTime: startTime,\n endTime: endTime,\n sttp: val.sttp\n }\n };\n slQuery.getChartsList(data.query, function (res) {\n _this.echartLiat = res.value;\n\n if (res.value.length) {\n _this.dates = _this.echartLiat.map(function (item) {\n return item.mstm;\n });\n _this.spqn = _this.echartLiat.map(function (item) {\n return item.spqn;\n });\n _this.dspqn = _this.echartLiat.map(function (item) {\n return item.dspqn;\n });\n _this.jspqn = _this.echartLiat.map(function (item) {\n return item.jspqn;\n });\n\n _this.$nextTick(function () {\n _this.getCharts();\n });\n } else {\n _this.spqn = [];\n _this.dates = [];\n _this.dspqn = [];\n _this.jspqn = [];\n\n _this.$nextTick(function () {\n _this.getCharts();\n });\n }\n });\n },\n changeChart: function changeChart(val) {\n var _this2 = this;\n\n if (val) {\n this.query.startTime = val[0];\n this.query.endTime = val[1];\n this.spqn = [];\n this.dates = [];\n this.dspqn = [];\n this.jspqn = [];\n slQuery.getChartsList(this.query, function (res) {\n if (res.value.length) {\n _this2.echartLiat = res.value;\n _this2.dates = _this2.echartLiat.map(function (item) {\n return item.mstm;\n });\n _this2.spqn = _this2.echartLiat.map(function (item) {\n return item.spqn;\n });\n _this2.dspqn = _this2.echartLiat.map(function (item) {\n return item.dspqn;\n });\n _this2.jspqn = _this2.echartLiat.map(function (item) {\n return item.jspqn;\n });\n }\n\n _this2.$nextTick(function () {\n _this2.getCharts();\n });\n });\n } else {\n this.query.startTime = '';\n this.query.endTime = '';\n this.times = [];\n slQuery.getChartsList(this.query, function (res) {\n if (res.value.length) {\n _this2.echartLiat = res.value;\n _this2.dates = _this2.echartLiat.map(function (item) {\n return item.mstm;\n });\n _this2.spqn = _this2.echartLiat.map(function (item) {\n return item.spqn;\n });\n _this2.dspqn = _this2.echartLiat.map(function (item) {\n return item.dspqn;\n });\n _this2.jspqn = _this2.echartLiat.map(function (item) {\n return item.jspqn;\n });\n\n _this2.$nextTick(function () {\n _this2.getCharts();\n });\n }\n });\n }\n },\n getCharts: function getCharts() {\n var chartDom = document.getElementById('echartsBox');\n var myChart = echarts.init(chartDom);\n var option = {\n title: {\n text: ''\n },\n tooltip: {\n trigger: 'axis'\n },\n legend: {\n data: ['渗流量(L/s)', '渗流量危险值(L/s)', '渗流量警戒值(L/s)']\n },\n grid: {\n left: '8%',\n right: '4%',\n bottom: '6%',\n containLabel: true\n },\n // toolbox: {\n // feature: {\n // saveAsImage: {},\n // },\n // },\n xAxis: {\n type: 'category',\n boundaryGap: false,\n data: this.dates\n },\n yAxis: {\n type: 'value',\n scale: true\n },\n series: [{\n name: '渗流量(L/s)',\n type: 'line',\n data: this.spqn\n }, {\n name: '渗流量危险值(L/s)',\n type: 'line',\n itemStyle: {\n normal: {\n color: 'red',\n lineStyle: {\n color: 'red'\n }\n }\n },\n data: this.dspqn\n }, {\n name: '渗流量警戒值(L/s)',\n type: 'line',\n itemStyle: {\n normal: {\n color: '#ffa500',\n lineStyle: {\n color: '#ffa500'\n }\n }\n },\n data: this.jspqn\n }]\n };\n option && myChart.setOption(option);\n },\n handleClose: function handleClose() {\n this.echartLiat = [];\n this.showFormDias = false;\n },\n getDateList: function getDateList() {\n var _this3 = this;\n\n this.loading = true;\n this.tableData = [];\n slQuery.GetSeepage(this.queryParam, function (res) {\n _this3.total = res.value.total;\n _this3.tableData = JSON.parse(JSON.stringify(res.value.rows));\n\n _this3.$set(_this3.tableData);\n\n _this3.loading = false;\n });\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getDateList();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getDateList();\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n // // 指定一个key标识这一行的数据\n // getRowKey(row) {\n // return row.id\n // },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this4 = this;\n\n var portal = window.context.portal;\n return new Promise(function (resolve, reject) {\n req.post(portal + '/sys/sysDictionary/v1/queryAllDictItems').then(function (response) {\n resolve(response.data);\n _this4.rwptns = response.data.ss; //水势\n\n slQuery.getbasAdName({}, function (res) {\n _this4.basAdNames = res.value;\n });\n slQuery.getRsnm({}, function (res) {\n _this4.rsnms = res.value;\n });\n slQuery.SeepagetStnms({}, function (res) {\n _this4.stnms = res.value;\n });\n\n _this4.getDateList();\n }, function (error) {\n reject(error);\n });\n });\n },\n // // 点击查询\n onClickSearch: function onClickSearch() {\n this.queryParam.pageBean.page = 1;\n this.getDateList();\n },\n // 重置\n resetQuery: function resetQuery() {\n this.queryParam.params = {};\n this.onClickSearch();\n }\n }\n};",null]}