{"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\\latestYqQuery.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\resMonitor\\latestYqQuery.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.function.name\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 latestYqQuery from '@/api/monitor/resMonitor/latestYqQuery.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.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 warnSds: [{\n value: 'pn10',\n warnSdMsg: '10分钟时段降水量'\n }, {\n value: 'pn30',\n warnSdMsg: '30分钟时段降水量'\n }, {\n value: 'p1',\n warnSdMsg: '1小时时段降水量'\n }, {\n value: 'p3',\n warnSdMsg: '3小时时段降水量'\n }, {\n value: 'p6',\n warnSdMsg: '6小时时段降水量'\n }, {\n value: 'p12',\n warnSdMsg: '12小时时段降水量'\n }, {\n value: 'pd',\n warnSdMsg: '24小时时段降水量'\n }],\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 queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n warnGrade: null,\n stcd: null,\n addvcd: null,\n usfl: null\n }\n }\n };\n },\n created: function created() {\n this.czyyfl = dictUtils.getDictItemsFromCache('czyyfl');\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 getDateList: function getDateList() {\n var _this = this;\n\n this.loading = true;\n this.tableData = [];\n latestYqQuery.ListGet(this.queryParam, function (res) {\n _this.total = res.value.total;\n _this.tableData = JSON.parse(JSON.stringify(res.value.rows));\n\n _this.tableData.forEach(function (e) {\n _this.warnSds.forEach(function (w) {\n if (e.warnSd == w.value) {\n e.warnSd = w.warnSdMsg;\n }\n });\n\n _this.yjdjs.forEach(function (c) {\n if (e.warnGrade == c.value) {\n e.level = c.name;\n }\n });\n\n _this.czyyfl.forEach(function (c) {\n if (e.appType == c.value) {\n e.appTypeName = c.name;\n }\n });\n });\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 rowStyle: function rowStyle(_ref) {\n var row = _ref.row,\n rowIndex = _ref.rowIndex;\n\n if (row.warnGrade == '2') {\n return 'orange_class';\n } else if (row.warnGrade == '1') {\n return 'error_class';\n } else if (row.warnGrade == 3) {\n return 'success_class';\n }\n\n return '';\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 latestYqQuery.getbasAdName({}, function (res) {\n _this2.basAdNames = res.value;\n });\n latestYqQuery.getStnms({}, function (res) {\n console.log(res.value, 4545);\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]}