{"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\\resMonitor\\sdYlQuery.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\resMonitor\\sdYlQuery.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.number.constructor\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"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//\nimport sdYlQuery from '@/api/monitor/resMonitor/sdYlQuery.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport req from '@/request.js';\nexport default {\n name: 'displacement',\n components: {},\n mixins: [TableMixin],\n data: function data() {\n return {\n dates: null,\n total: 0,\n tableData: [],\n loading: false,\n basAdNames: [],\n //行政区\n yjdjs: [],\n statuss: [{\n name: '在线',\n value: '1'\n }, {\n name: '不在线',\n value: '0'\n }],\n multipleSelection: [],\n // 复选框\n stnms: [],\n //测站下拉\n setKesLabel: {\n value: 'code',\n label: 'name',\n children: 'children'\n },\n queryParam: {\n pageBean: {\n pageSize: 200,\n page: 1\n },\n params: {\n startTime: null,\n endTime: null,\n stcd: null,\n addvcd: null\n }\n }\n };\n },\n created: function created() {\n this.getTimes();\n this.getSysDict();\n },\n methods: {\n getTimes: function getTimes() {\n var date = new Date(); //1. js获取当前时间\n\n var min = date.getMinutes(); //2. 获取当前分钟\n\n date.setMinutes(min - 5); //3. 设置当前时间-5分钟:把当前分钟数+5后的值重新设置为date对象的分钟数\n\n var y = date.getFullYear();\n var m = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;\n var d = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();\n var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();\n var f = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();\n var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();\n this.queryParam.params.startTime = y + '-' + m + '-' + (d - 1) + ' ' + h + ':' + f + ':' + s;\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 this.queryParam.params.endTime = endTime + ' ' + time;\n },\n changeDate: function changeDate(val) {\n console.log(val, 999);\n\n if (val) {\n this.queryParam.params.startTime = val[0];\n this.queryParam.params.endTime = val[1];\n } else {\n this.queryParam.params.startTime = '';\n this.queryParam.params.startTime = '';\n }\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 getDateList: function getDateList() {\n var _this = this;\n\n this.loading = true;\n this.tableData = [];\n sdYlQuery.ListGet(this.queryParam, function (res) {\n _this.total = res.value.total;\n var data = JSON.parse(JSON.stringify(res.value.rows));\n data.forEach(function (item) {\n if (item.drp == undefined) item.drp = null;\n });\n _this.tableData = data;\n\n _this.$set(_this.tableData);\n\n _this.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 //获取字典数据\n getSysDict: function getSysDict() {\n var _this2 = 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 _this2.yjdjs = response.data.yjdj;\n response.data.yjdj.forEach(function (e) {\n _this2.yjdjs.value = Number(e.value);\n });\n sdYlQuery.getbasAdName({}, function (res) {\n _this2.basAdNames = res.value;\n });\n sdYlQuery.getStnms({}, function (res) {\n _this2.stnms = res.value;\n });\n\n _this2.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]}