{"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\\dayYlQuery.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\resMonitor\\dayYlQuery.vue","mtime":1688458391959},{"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/es6.regexp.split\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 dayYlQuery from '@/api/monitor/resMonitor/dayYlQuery.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport moment from 'moment';\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 czyyfl: [],\n tableHearder: [],\n queryParam: {\n pageBean: {\n pageSize: 100,\n page: 1\n },\n params: {\n day: null,\n stcd: null,\n addvcd: null,\n pattern: 'D'\n }\n }\n };\n },\n created: function created() {\n this.czyyfl = dictUtils.getDictItemsFromCache('czyyfl');\n this.queryParam.params.day = moment().format('YYYY-MM-DD');\n this.getSysDict();\n },\n methods: {\n changeDate: function changeDate(val) {\n if (val) {\n this.queryParam.params.day = val;\n } else {\n this.queryParam.params.day = '';\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 openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n getDateList: function getDateList() {\n var _this = this;\n\n this.loading = true;\n this.tableData = [];\n this.tableHearder = [];\n dayYlQuery.ListGet(this.queryParam, function (res) {\n _this.total = res.value.total;\n _this.tableData = JSON.parse(JSON.stringify(res.value.rows));\n\n if (_this.tableData[0]) {\n _this.tableData[0].groupData.forEach(function (e) {\n var start = parseInt(e.time.split(' ')[1]);\n var end;\n\n if (start == 23) {\n end = 0;\n } else {\n end = start + 1;\n }\n\n var name = start + '-' + end + '时';\n var data = {\n name: name,\n key: Math.random()\n };\n\n _this.tableHearder.push(data);\n });\n }\n\n console.log(_this.tableHearder, _this.tableData);\n\n _this.$set(_this.tableData);\n\n _this.$nextTick(function () {\n _this.$refs.multipleSelection.doLayout();\n });\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 dayYlQuery.getbasAdName({}, function (res) {\n _this2.basAdNames = res.value;\n });\n dayYlQuery.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 day: moment().format('YYYY-MM-DD'),\n stcd: null,\n addvcd: null,\n pattern: 'D'\n };\n this.onClickSearch();\n }\n }\n};",null]}