{"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\\PiezometricTube.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\gqMonitor\\components\\PiezometricTube.vue","mtime":1684458239246},{"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 gqStqQuery from '@/api/monitor/gqMonitor/gqStqQuery.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport syQuery from '@/api/monitor/gqMonitor/syQuery.js';\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 title: '',\n loading: false,\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 pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n rscd: null,\n mpcd: null,\n wkcn: null,\n mpnm: null\n },\n rwptns: [],\n //水势\n tableData: [],\n pId: '',\n total: 0,\n showFormDias: false,\n dates: [],\n //图表日期\n dpztbwl: [],\n //测压管危险水位(m)\n jpztbwl: [],\n //测压管警戒水位(m)\n pztbwl: [],\n //测压管水位(m)\n echartLiat: [],\n times: [],\n //选择时间\n query: {\n stcd: null,\n stnm: null,\n startTime: null,\n endTime: null\n },\n loadingChartData: false\n };\n },\n created: function created() {\n this.getSysDict();\n },\n methods: {\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n openDate: function openDate(val) {\n var _this = this;\n\n this.echartLiat = [];\n this.loadingChartData = true;\n this.title = val.mpnm;\n this.showFormDias = true;\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 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 this.query = {\n stnm: val.stnm,\n stcd: val.stcd,\n startTime: startTime,\n endTime: endTime,\n sttp: val.sttp,\n rscd: val.rscd,\n mpcd: val.mpcd,\n mptp: '4'\n };\n syQuery.getChartsList(this.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.dpztbwl = _this.echartLiat.map(function (item) {\n return item.dpztbwl;\n });\n _this.jpztbwl = _this.echartLiat.map(function (item) {\n return item.jpztbwl;\n });\n _this.pztbwl = _this.echartLiat.map(function (item) {\n return item.pztbwl;\n });\n\n _this.$nextTick(function () {\n _this.getCharts();\n });\n } else {\n _this.dpztbwl = [];\n _this.dates = [];\n _this.jpztbwl = [];\n _this.pztbwl = [];\n\n _this.$nextTick(function () {\n _this.getCharts();\n });\n }\n\n _this.loadingChartData = false;\n });\n },\n changeChart: function changeChart(val) {\n var _this2 = this;\n\n this.echartLiat = [];\n this.loadingChartData = true;\n\n if (val) {\n this.query.startTime = val[0];\n this.query.endTime = val[1];\n this.dpztbwl = [];\n this.jpztbwl = [];\n this.pztbwl = [];\n syQuery.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.dpztbwl = _this2.echartLiat.map(function (item) {\n return item.dpztbwl;\n });\n _this2.jpztbwl = _this2.echartLiat.map(function (item) {\n return item.jpztbwl;\n });\n _this2.pztbwl = _this2.echartLiat.map(function (item) {\n return item.pztbwl;\n });\n }\n\n _this2.$nextTick(function () {\n _this2.getCharts();\n });\n\n _this2.loadingChartData = false;\n });\n } else {\n this.loadingChartData = false;\n this.$message.warning('请选择查询时间范围!');\n this.query.startTime = '';\n this.query.endTime = '';\n this.dpztbwl = [];\n this.jpztbwl = [];\n this.pztbwl = [];\n this.times = [];\n this.$nextTick(function () {\n _this2.getCharts();\n });\n return;\n syQuery.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.dpztbwl = _this2.echartLiat.map(function (item) {\n return item.dpztbwl;\n });\n _this2.jpztbwl = _this2.echartLiat.map(function (item) {\n return item.jpztbwl;\n });\n _this2.pztbwl = _this2.echartLiat.map(function (item) {\n return item.pztbwl;\n });\n\n _this2.$nextTick(function () {\n _this2.getCharts();\n });\n }\n\n _this2.loadingChartData = false;\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: ['测压管警戒水位(m)', '测压管危险水位(m)', '测压管水位(m)']\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: '测压管警戒水位(m)',\n type: 'line',\n itemStyle: {\n normal: {\n color: 'yellow',\n lineStyle: {\n color: 'yellow'\n }\n }\n },\n data: this.jpztbwl\n }, {\n name: '测压管危险水位(m)',\n type: 'line',\n itemStyle: {\n normal: {\n color: '#b22222',\n lineStyle: {\n color: '#b22222'\n }\n }\n },\n data: this.dpztbwl\n }, {\n name: '测压管水位(m)',\n type: 'line',\n itemStyle: {\n normal: {\n color: '#0091ff',\n lineStyle: {\n color: '#0091ff'\n }\n }\n },\n data: this.pztbwl\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 var data = {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n querys: [],\n sorter: [{\n property: 'wl.mstm',\n direction: 'ASC'\n }]\n };\n\n if (this.params.rscd) {\n data.querys.push({\n property: 'bsin.rscd',\n operation: 'LIKE',\n value: this.params.rscd,\n group: 'main',\n relation: 'AND'\n });\n }\n\n if (this.params.mpcd) {\n data.querys.push({\n group: 'main',\n operation: 'LIKE',\n property: 'gqb.mpcd',\n relation: 'AND',\n value: this.params.mpcd\n });\n }\n\n if (this.params.wkcn) {\n data.querys.push({\n group: 'main',\n operation: 'LIKE',\n property: 'gqb.wkcn',\n relation: 'AND',\n value: this.params.wkcn\n });\n }\n\n if (this.params.mpnm) {\n data.querys.push({\n group: 'main',\n operation: 'LIKE',\n property: 'gqb.mpnm',\n relation: 'AND',\n value: this.params.mpnm\n });\n }\n\n this.loading = true;\n this.tableData = [];\n gqStqQuery.GetTablepage(data, 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.pageBean.pageSize = val;\n this.getDateList();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.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 gqStqQuery.getRsnm({}, function (res) {\n _this4.rsnms = res.value;\n });\n gqStqQuery.PressuresStnms({}, 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.pageBean.page = 1;\n this.getDateList();\n },\n // 重置\n resetQuery: function resetQuery() {\n this.params = {};\n this.onClickSearch();\n }\n }\n};",null]}