chunk-5b7d9996.eacbe3c8.js.map 53 KB

1
  1. {"version":3,"sources":["webpack:///./node_modules/core-js/internals/array-from.js","webpack:///./src/views/envmonitor/detail.vue?6fe1","webpack:///./src/views/envmonitor/detail.vue?acd3","webpack:///./node_modules/core-js/internals/call-with-safe-iteration-closing.js","webpack:///./node_modules/core-js/modules/es.array.from.js","webpack:///./src/views/envmonitor/detail.vue?2ce7","webpack:///./src/views/envmonitor/detail.vue?8dd1","webpack:///./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack:///./src/views/envmonitor/detail.vue?bfb0","webpack:///./src/views/envmonitor/detail.vue","webpack:///./node_modules/core-js/modules/es.array.slice.js"],"names":["bind","toObject","callWithSafeIterationClosing","isArrayIteratorMethod","toLength","createProperty","getIteratorMethod","module","exports","arrayLike","length","result","step","iterator","next","value","O","C","this","Array","argumentsLength","arguments","mapfn","undefined","mapping","iteratorMethod","index","call","done","anObject","iteratorClose","fn","ENTRIES","error","$","from","checkCorrectnessOfIteration","INCORRECT_ITERATION","iterable","target","stat","forced","n","_hoisted_1","class","_hoisted_2","_hoisted_3","key","_hoisted_4","_hoisted_5","height","width","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","render","_ctx","_cache","$props","$setup","$data","$options","_component_com_chart","_component_van_tab","_component_van_tabs","_component_van_loading","onChange","changeTab","active","$event","default","titleList","item","title","name","funcid","id","options","showNowData","src","parseImgUrl","alt","text","textItem","idx","level","img","_","showLoading","_arrayLikeToArray","arr","len","i","arr2","_arrayWithoutHoles","isArray","arrayLikeToArray","_iterableToArray","iter","Symbol","Object","_unsupportedIterableToArray","o","minLen","prototype","toString","slice","constructor","test","_nonIterableSpread","TypeError","_toConsumableArray","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","props","query","type","components","ComChart","setup","unit","spaceId","activeItem","proxyData","loadingStart","loadinngEnd","setActiveItem","queryAllData","formatTowOptions","formatOptios","getData","paramObj","paramStr","then","res","resData","propertyData","dayTarget","chartData","formatChartData","chartMax","setMax","catch","baseArr","tragetChart","handleNumber","val","Number","initNum","PM2d5","CO2","HCHO","toFixed","RH","Tdb","time","initObj","sales","push","checkIsData","data","tempArr","filter","seriesData","map","xData","max","Math","tooltip","trigger","grid","top","left","right","bottom","containLabel","xAxis","boundaryGap","axisLine","lineStyle","color","axisLabel","fontSize","interval","showMaxLabel","yAxis","nameGap","nameTextStyle","padding","axisTick","show","splitLine","series","markLine","symbol","normal","label","position","textStyle","fontWeight","smooth","symbolSize","showSymbol","areaStyle","echarts","LinearGradient","offset","shadowColor","shadowBlur","itemStyle","borderColor","borderWidth","funcidArr","split","chartData1","chartData2","seriesData1","seriesData2","legend","icon","itemWidth","itemHeight","itemGap","yAxisIndex","co2Max","pm25Max","hchoMax","newProps","JSON","parse","stringify","deep","immediate","__exports__","isObject","toAbsoluteIndex","toIndexedObject","wellKnownSymbol","arrayMethodHasSpeciesSupport","arrayMethodUsesToLength","HAS_SPECIES_SUPPORT","USES_TO_LENGTH","ACCESSORS","0","1","SPECIES","nativeSlice","proto","start","end","Constructor","k","fin"],"mappings":"yIACA,IAAIA,EAAO,EAAQ,QACfC,EAAW,EAAQ,QACnBC,EAA+B,EAAQ,QACvCC,EAAwB,EAAQ,QAChCC,EAAW,EAAQ,QACnBC,EAAiB,EAAQ,QACzBC,EAAoB,EAAQ,QAIhCC,EAAOC,QAAU,SAAcC,GAC7B,IAOIC,EAAQC,EAAQC,EAAMC,EAAUC,EAAMC,EAPtCC,EAAIf,EAASQ,GACbQ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2P,EAAIhB,EAAgBa,EAAOxP,GAC3B4P,EAAMjB,OAAwB9N,IAAR4O,EAAoBzP,EAASyP,EAAKzP,GAG5D,GAAI6F,EAAQvF,KACVoP,EAAcpP,EAAEmG,YAEU,mBAAfiJ,GAA8BA,IAAgBjP,QAASoF,EAAQ6J,EAAYpJ,WAE3EoI,EAASgB,KAClBA,EAAcA,EAAYL,GACN,OAAhBK,IAAsBA,OAAc7O,IAHxC6O,OAAc7O,EAKZ6O,IAAgBjP,YAAyBI,IAAhB6O,GAC3B,OAAOJ,EAAYrO,KAAKX,EAAGqP,EAAGC,GAIlC,IADA3P,EAAS,SAAqBY,IAAhB6O,EAA4BjP,MAAQiP,GAAapF,EAAIsF,EAAMD,EAAG,IACvE3N,EAAI,EAAG2N,EAAIC,EAAKD,IAAK3N,IAAS2N,KAAKrP,GAAGX,EAAeM,EAAQ+B,EAAG1B,EAAEqP,IAEvE,OADA1P,EAAOD,OAASgC,EACT/B","file":"static/js/chunk-5b7d9996.eacbe3c8.js","sourcesContent":["'use strict';\nvar bind = require('../internals/function-bind-context');\nvar toObject = require('../internals/to-object');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\n// `Array.from` method implementation\n// https://tc39.es/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = iteratorMethod.call(O);\n next = iterator.next;\n result = new C();\n for (;!(step = next.call(iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = toLength(O.length);\n result = new C(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./detail.vue?vue&type=style&index=1&id=529a347c&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./detail.vue?vue&type=style&index=0&id=529a347c&lang=scss&scoped=true\"","var anObject = require('../internals/an-object');\nvar iteratorClose = require('../internals/iterator-close');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (error) {\n iteratorClose(iterator);\n throw error;\n }\n};\n","var $ = require('../internals/export');\nvar from = require('../internals/array-from');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.es/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"menuBg\":\"#fff\",\"menuText\":\"#162b64\",\"menuActiveText\":\"#435ebe\"};","import { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createBlock as _createBlock, withCtx as _withCtx, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-529a347c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"detail-content\" }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"环境参数\", -1))\nconst _hoisted_3 = {\n key: 0,\n class: \"container-text\"\n}\nconst _hoisted_4 = { class: \"chart-box\" }\nconst _hoisted_5 = {\n key: 1,\n class: \"no-data\",\n height: \"100%\",\n width: \"100%\"\n}\nconst _hoisted_6 = [\"src\"]\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"暂无数据\", -1))\nconst _hoisted_8 = [\"src\"]\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"该空间数据未配置\", -1))\nconst _hoisted_10 = { class: \"detail-desc clearfix\" }\nconst _hoisted_11 = { class: \"detail-text\" }\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"circle\" }, null, -1))\nconst _hoisted_13 = { class: \"tem-span\" }\nconst _hoisted_14 = { class: \"detail-bottom\" }\nconst _hoisted_15 = { class: \"text-img\" }\nconst _hoisted_16 = [\"src\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_com_chart = _resolveComponent(\"com-chart\")!\n const _component_van_tab = _resolveComponent(\"van-tab\")!\n const _component_van_tabs = _resolveComponent(\"van-tabs\")!\n const _component_van_loading = _resolveComponent(\"van-loading\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _hoisted_2,\n _createVNode(_component_van_tabs, {\n class: \"my-tab\",\n onChange: _ctx.changeTab,\n active: _ctx.active,\n \"onUpdate:active\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.active) = $event))\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.titleList, (item, index) => {\n return (_openBlock(), _createBlock(_component_van_tab, {\n title: item.name,\n name: item.funcid,\n key: item.id + '' + index\n }, {\n default: _withCtx(() => [\n (item.options)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"span\", null, _toDisplayString(item.funcid == \"Tdb,RH\" ? \"温湿度逐时分布\" : \"浓度逐时分布\"), 1)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_4, [\n (item.options)\n ? (_openBlock(), _createBlock(_component_com_chart, {\n key: 0,\n options: item.options,\n id: item.funcid,\n height: \"100%\",\n width: \"100%\"\n }, null, 8, [\"options\", \"id\"]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n (item.showNowData === 1)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createElementVNode(\"img\", {\n src: _ctx.parseImgUrl('page-officehome', 'empty.png'),\n alt: \"\"\n }, null, 8, _hoisted_6),\n _hoisted_7\n ], 64))\n : _createCommentVNode(\"\", true),\n (item.showNowData === 2)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n _createElementVNode(\"img\", {\n src: _ctx.parseImgUrl('page-officehome', 'empty.png'),\n alt: \"\"\n }, null, 8, _hoisted_8),\n _hoisted_9\n ], 64))\n : _createCommentVNode(\"\", true)\n ]))\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.text, (textItem, idx) => {\n return (_openBlock(), _createElementBlock(\"p\", { key: idx }, [\n _hoisted_12,\n _createElementVNode(\"span\", _hoisted_13, _toDisplayString(textItem), 1)\n ]))\n }), 128))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"p\", null, _toDisplayString(item.level), 1),\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"img\", {\n src: item.img,\n alt: \"\"\n }, null, 8, _hoisted_16)\n ])\n ])\n ]),\n _: 2\n }, 1032, [\"title\", \"name\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"onChange\", \"active\"]),\n (_ctx.showLoading)\n ? (_openBlock(), _createBlock(_component_van_loading, {\n key: 0,\n class: \"temp-loading\"\n }))\n : _createCommentVNode(\"\", true)\n ]))\n}","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}","import arrayLikeToArray from \"@babel/runtime/helpers/esm/arrayLikeToArray\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}","import arrayLikeToArray from \"@babel/runtime/helpers/esm/arrayLikeToArray\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithoutHoles from \"@babel/runtime/helpers/esm/arrayWithoutHoles\";\nimport iterableToArray from \"@babel/runtime/helpers/esm/iterableToArray\";\nimport unsupportedIterableToArray from \"@babel/runtime/helpers/esm/unsupportedIterableToArray\";\nimport nonIterableSpread from \"@babel/runtime/helpers/esm/nonIterableSpread\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","\nimport { defineComponent, onMounted, reactive, toRefs, watch } from \"vue\";\nimport ComChart from \"@/components/charts/ComChart.vue\";\nimport { useRoute } from \"vue-router\";\nimport * as echarts from \"echarts\";\nimport { EChartsOption } from \"echarts\";\nimport { getChartListHTTP } from \"@/apis/envmonitor\";\nimport { setQueryConfig } from \"@/utils\";\nimport { parseImgUrl } from \"@/utils\";\nimport { Toast } from \"vant\";\n\nexport default defineComponent({\n props: {\n query: {\n // 空调基本信息\n type: Object,\n default: () => {},\n },\n },\n components: {\n ComChart,\n },\n setup(props) {\n const titleList: any = [\n {\n id: 0,\n name: \"CO₂\",\n funcid: \"CO2\",\n unit: \"ppm\",\n text: [\n \"CO₂,一种无色无味气体\",\n \"CO₂的标准为1000ppm\",\n \"CO₂过高,影响人体呼吸系统\",\n \"大脑易疲劳,工作效率降低\",\n \"室内人员增多,新风量不足时\",\n \"室内CO₂的浓度就会上升\",\n \"宜开窗通风或增加送风量\",\n \"来降低CO₂浓度\",\n ],\n level: \"不同浓度下的人体感觉\",\n img: parseImgUrl(\"page-officehome\", \"CO2.png\"),\n showNowData: 0, // 0:loading 1:暂无数据 2:暂无服务定制时间\n options: null,\n },\n {\n id: 1,\n name: \"PM2.5\",\n unit: \"ug/m³\",\n funcid: \"PM2d5\",\n options: null,\n text: [\n \"PM2.5,直径≤2.5微米的颗粒\",\n \"PM2.5的平均值在0-35μg/m3\",\n \"PM2.5浓度过高,影响人体\",\n \"呼吸系统和心血管系统健康\",\n \"应开启除尘净化设备\",\n ],\n level: \"不同PM2.5浓度对应等级\",\n img: parseImgUrl(\"page-officehome\", \"pm25.png\"),\n showNowData: 0, // 0:loading 1:暂无数据 2:暂无服务定制时间\n },\n {\n id: 2,\n name: \"甲醛\",\n unit: \"mg/㎡\",\n options: null,\n funcid: \"HCHO\",\n text: [\n \"甲醛(HCHO)是无色有刺激性有机气体。甲醛的主要危害表现为对皮肤和黏膜的刺激作用,室内甲醛浓度长期偏高会引发呼吸系统,消化系统或免疫系统疾病。\",\n \"甲醛多来自于室内装饰材料,如家具,墙纸,油漆以及胶水、芳香剂等物质。\",\n \"由于家具,胶水中的甲醛挥发是一个长期缓慢的过程,因此甲醛超标常表现为室内甲醛浓度长期处于较高的数值。\",\n \"最为有效避免甲醛超标的方法是持续高效的通风,通过引入室外新鲜空气将室内甲醛浓度长期控制在低于有害标准的范围内。\",\n \"由于甲醛传感器为电化学传感器,存在交叉干扰的特性,当室内出现无害的挥发性气体时也会导致测得的甲醛浓度短暂升高,如吸烟,使用香水,空气清新剂,喷洒酒精,甚至剥橘子皮溅出的汁液均可能在短时间内影响甲醛传感器的读数,在去除干扰源后,此种影响会在短时间内消除,可不必因此产生担忧。\",\n ],\n level: \"不同阈值浓度对应标准\",\n img: parseImgUrl(\"page-officehome\", \"methanal.png\"),\n showNowData: 0, // 0:loading 1:暂无数据 2:暂无服务定制时间\n },\n {\n id: 3,\n name: \"温湿度\",\n unit: \"%\",\n funcid: \"Tdb,RH\",\n options: null,\n text: [\n \"温度表示空气的冷热程度\",\n \"夏季高温高湿会使人烦躁、疲倦\",\n \"冬季湿度过高时,人体感觉越冷\",\n \"冬季湿度低易引起呼吸道不适\",\n \"室外温度较高时,宜遮阳关窗\",\n ],\n level: \"\",\n img: \"\",\n showNowData: 0, // 0:loading 1:暂无数据 2:暂无服务定制时间\n },\n ];\n const query: {\n funcid: string;\n spaceId: string;\n } = {\n funcid: \"\",\n spaceId: \"\",\n };\n const activeItem: any = [];\n const proxyData = reactive({\n active: \"\",\n showLoading: false,\n activeItem: activeItem,\n titleList: titleList,\n query: props.query ? props.query : query,\n parseImgUrl: parseImgUrl,\n /**\n * 加载loading\n */\n loadingStart() {\n // Toast.loading({\n // duration: 0, // 持续展示 toast\n // forbidClick: true,\n // message: \"加载中...\",\n // });\n proxyData.showLoading = true;\n },\n /**\n * 结束\n */\n loadinngEnd() {\n // Toast.clear();\n proxyData.showLoading = false;\n },\n /**\n * 设置当前选中的tab\n */\n setActiveItem() {\n for (let i = 0; i < proxyData.titleList.length; i++) {\n if (proxyData.titleList[i].funcid == proxyData.query.funcid) {\n proxyData.active = proxyData.titleList[i].funcid;\n proxyData.activeItem = proxyData.titleList[i];\n break;\n }\n }\n },\n /**\n * 详情页面tab切换\n */\n changeTab() {\n if (proxyData.query.spaceId) {\n proxyData.query.funcid = proxyData.active;\n proxyData.setActiveItem();\n proxyData.queryAllData();\n }\n },\n // 查询echarts图表\n queryAllData() {\n if (proxyData.activeItem.funcid) {\n // debugger;\n let funcid = proxyData.activeItem.funcid;\n proxyData.loadingStart();\n // proxyData.showLoading = true;\n if (funcid === \"Tdb,RH\") {\n // 两条线的 时候\n proxyData.formatTowOptions(funcid);\n } else {\n proxyData.formatOptios(funcid);\n }\n }\n },\n /**\n *获取图表统计数据\n * @param funcid\n */\n getData(funcid: string = \"\") {\n // debugger\n let paramObj = {\n spaceId: proxyData.query.spaceId,\n funcid: funcid,\n };\n const paramStr: string = setQueryConfig(paramObj);\n return getChartListHTTP(paramStr)\n .then((res) => {\n const resData: any = res;\n let { propertyData, dayTarget } = resData;\n let chartData = proxyData.formatChartData(\n propertyData,\n dayTarget,\n funcid\n );\n // 设置警线的值\n let chartMax = proxyData.setMax(funcid, dayTarget);\n if (funcid === \"Tdb\" || funcid === \"RH\") {\n return chartData;\n } else {\n return {\n chartData,\n chartMax,\n };\n }\n })\n .catch((error: any) => {\n proxyData.loadinngEnd();\n // proxyData.showLoading = false;\n });\n },\n /**\n * co pm 甲醛统计数据格式化成图表可使用的数据\n * @param propertyData\n * @param dayTarget\n * @param funcid\n */\n formatChartData(propertyData: any, dayTarget: any, funcid: any) {\n // 只是一个处理数据的函数\n if (!Array.isArray(propertyData) || !Array.isArray(dayTarget)) {\n return [];\n }\n let baseArr: any = (propertyData && propertyData.slice(1)) || [];\n let tragetChart: any = [];\n\n let handleNumber = (val: any) => {\n return Number(val);\n };\n\n let initNum = {\n PM2d5: handleNumber,\n CO2: handleNumber,\n HCHO: function (value: any) {\n return Number(Number(value).toFixed(2));\n },\n RH: handleNumber,\n Tdb: handleNumber,\n };\n\n // 类型\n if (baseArr && baseArr.length > 0) {\n for (let i = 0; i < baseArr.length; i++) {\n let item = baseArr[i];\n item[1] = item[1] == \"-9999\" ? null : initNum[funcid](item[1]);\n }\n }\n\n if (\n baseArr.length &&\n dayTarget.length &&\n baseArr.length === dayTarget.length\n ) {\n for (let i = 0; i < dayTarget.length; i++) {\n let item = dayTarget[i];\n let time = \"\";\n item.time &&\n (time = item.time.slice(0, 2) + \":\" + item.time.slice(2, 4));\n let initObj = {\n time: time,\n sales: baseArr[i][1],\n };\n tragetChart.push(initObj);\n }\n }\n return tragetChart;\n },\n checkIsData(data: any) {\n let tempArr: any = data.filter((item: any) => {\n return item === null;\n });\n if (data.length === tempArr.length) {\n return false;\n } else {\n return true;\n }\n },\n async formatOptios(funcid: any) {\n proxyData.activeItem.options = null;\n let { chartData, chartMax } = await proxyData.getData(funcid);\n proxyData.loadinngEnd();\n // proxyData.showLoading = false;\n let seriesData: any = chartData.map((item: any) => {\n return item.sales;\n });\n let xData: any = chartData.map((item: any) => {\n return item.time;\n });\n let max: any = Math.max(...seriesData);\n if (xData && xData.length) {\n if (proxyData.checkIsData(seriesData)) {\n let options = {\n tooltip: {\n trigger: \"axis\",\n },\n\n grid: {\n top: 25,\n left: 10,\n right: 20,\n bottom: 20,\n containLabel: true,\n },\n xAxis: [\n {\n type: \"category\",\n boundaryGap: false,\n axisLine: {\n lineStyle: {\n color: \"#ECEFF4\",\n },\n },\n axisLabel: {\n fontSize: 12,\n interval: 8,\n showMaxLabel: true,\n color: \"#C4C4C4\",\n },\n data: xData,\n },\n ],\n yAxis: [\n {\n name: `单位:(${proxyData.activeItem.unit})`,\n type: \"value\",\n nameGap: 12, // y轴name与横纵坐标轴线的间距\n // nameLocation: \"left\", // y轴name处于y轴的什么位置\n nameTextStyle: {\n color: \"#9FA9BC\",\n padding:\n proxyData.activeItem.name == \"PM2.5\"\n ? [0, 25, 0, 55]\n : [0, 25, 0, 25],\n // margin : [5, 0, 0, -20],\n },\n\n // max: chartMax,\n axisTick: {\n show: false,\n },\n axisLine: {\n lineStyle: {\n color: \"#ECEFF4\",\n },\n },\n axisLabel: {\n fontSize: 12,\n color: \"#C4C4C4\",\n },\n splitLine: {\n lineStyle: {\n type: \"dashed\",\n color: \"#ECEFF4\",\n },\n },\n },\n ],\n series: [\n {\n markLine:\n max && chartMax && max >= chartMax\n ? {\n symbol: \"none\",\n data: [\n {\n name: \"均线\",\n type: \"max\",\n yAxis: chartMax,\n lineStyle: {\n normal: {\n color: \"red\",\n width: 2,\n type: \"solid\",\n },\n },\n },\n ],\n label: {\n normal: {\n show: true,\n position: \"middle\",\n textStyle: {\n fontSize: 12,\n fontWeight: 600,\n },\n },\n },\n }\n : {},\n name: proxyData.activeItem.name,\n type: \"line\",\n smooth: true,\n symbol: \"circle\",\n symbolSize: 5,\n showSymbol: false,\n areaStyle: {\n color: new (echarts as any).graphic.LinearGradient(\n 0,\n 1,\n 0,\n 0,\n [\n {\n offset: 0,\n color: \"rgba(79, 128, 255, 0.1)\",\n },\n {\n offset: 1,\n color: \"rgba(79, 128, 255, 0.6)\",\n },\n ],\n false\n ),\n shadowColor: \"rgba(79, 128, 255, 0.1)\",\n shadowBlur: 10,\n },\n itemStyle: {\n color: \"rgba(79, 128, 255, 1)\",\n borderColor: \"rgba(79, 128, 255, 1)\",\n borderWidth: 12,\n },\n data: seriesData,\n },\n ],\n } as EChartsOption;\n proxyData.activeItem.options = options;\n proxyData.activeItem.showNowData = 0;\n } else {\n proxyData.activeItem.options = null;\n proxyData.activeItem.showNowData = 1;\n }\n } else {\n proxyData.activeItem.options = null;\n proxyData.activeItem.showNowData = 2;\n }\n },\n async formatTowOptions(funcid: any) {\n // debugger\n proxyData.activeItem.options = null;\n let funcidArr = funcid.split(\",\");\n // debugger\n let chartData1: any = await proxyData.getData(funcidArr[0]);\n let chartData2: any = await proxyData.getData(funcidArr[1]);\n proxyData.loadinngEnd();\n let xData: any = chartData1.map((item: any) => {\n return item.time;\n });\n let seriesData1: any = chartData1.map((item: any) => {\n return item.sales;\n });\n let seriesData2: any = chartData2.map((item: any) => {\n return item.sales;\n });\n let options = {\n tooltip: {\n trigger: \"axis\",\n },\n legend: {\n icon: \"circle\",\n itemWidth: 14,\n itemHeight: 5,\n itemGap: 20,\n data: [\"温度\", \"湿度\"],\n textStyle: {\n fontSize: 12,\n color: \"#C4C4C4\",\n },\n },\n grid: {\n top: 30,\n left: 5,\n right: 15,\n bottom: 20,\n containLabel: true,\n },\n xAxis: [\n {\n type: \"category\",\n boundaryGap: false,\n axisLine: {\n lineStyle: {\n color: \"#ECEFF4\",\n },\n },\n axisLabel: {\n fontSize: 12,\n interval: 8,\n showMaxLabel: true,\n color: \"#C4C4C4\",\n },\n data: xData,\n },\n ],\n yAxis: [\n {\n name: \"单位:℃\",\n type: \"value\",\n nameGap: 12, // y轴name与横纵坐标轴线的间距\n // nameLocation: \"left\", // y轴name处于y轴的什么位置\n nameTextStyle: {\n color: \"#9FA9BC\",\n padding: [0, 25, 0, 15],\n // margin : [5, 0, 0, -20],\n },\n axisTick: {\n show: false,\n },\n axisLine: {\n lineStyle: {\n color: \"#ECEFF4\",\n },\n },\n axisLabel: {\n fontSize: 12,\n color: \"#C4C4C4\",\n },\n splitLine: {\n lineStyle: {\n type: \"dashed\",\n color: \"#ECEFF4\",\n },\n },\n },\n {\n name: \"单位:%\",\n nameGap: 12, // y轴name与横纵坐标轴线的间距\n nameTextStyle: {\n color: \"#9FA9BC\",\n padding: [0, 0, 0, 10],\n },\n type: \"value\",\n axisTick: {\n show: false,\n },\n axisLine: {\n show: false,\n lineStyle: {\n color: \"#ECEFF4\",\n },\n },\n axisLabel: {\n fontSize: 12,\n color: \"#C4C4C4\",\n },\n splitLine: {\n show: false,\n },\n },\n ],\n series: [\n {\n name: \"温度\",\n type: \"line\",\n smooth: true,\n symbol: \"circle\",\n symbolSize: 5,\n yAxisIndex: 0,\n showSymbol: false,\n lineStyle: {\n width: 1,\n },\n areaStyle: {\n color: new (echarts as any).graphic.LinearGradient(\n 0,\n 0,\n 0,\n 1,\n [\n {\n offset: 0,\n color: \"rgba(79, 128, 255, 0.165)\",\n },\n {\n offset: 0.8,\n color: \"rgba(79, 128, 255, 0)\",\n },\n ],\n false\n ),\n shadowColor: \"rgba(79, 128, 255,0.1)\",\n shadowBlur: 10,\n },\n itemStyle: {\n color: \"rgba(79, 128, 255, 1)\",\n borderColor: \"rgba(79, 128, 255, 1)\",\n borderWidth: 12,\n },\n data: seriesData1,\n },\n {\n name: \"湿度\",\n type: \"line\",\n smooth: true,\n symbol: \"circle\",\n symbolSize: 5,\n showSymbol: false,\n yAxisIndex: 1,\n lineStyle: {\n width: 1,\n },\n areaStyle: {\n color: new (echarts as any).graphic.LinearGradient(\n 0,\n 0,\n 0,\n 1,\n [\n {\n offset: 0,\n color: \"rgba(137,189,27, 0.3)\",\n },\n {\n offset: 0.8,\n color: \"rgba(137,189,27, 0.165)\",\n },\n ],\n false\n ),\n shadowColor: \"rgba(79, 128, 255,0.1)\",\n shadowBlur: 10,\n },\n itemStyle: {\n color: \"rgb(137,189,27)\",\n borderColor: \"rgba(137,189,2,1)\",\n borderWidth: 12,\n },\n data: seriesData2,\n },\n ],\n } as EChartsOption;\n if (xData && xData.length) {\n if (\n proxyData.checkIsData(seriesData1) ||\n proxyData.checkIsData(seriesData2)\n ) {\n proxyData.activeItem.options = options;\n proxyData.activeItem.showNowData = 0;\n } else {\n proxyData.activeItem.options = null;\n // 暂位配置服务时间\n proxyData.activeItem.showNowData = 1;\n }\n } else {\n proxyData.activeItem.options = null;\n // 暂位配置服务时间\n proxyData.activeItem.showNowData = 2;\n }\n },\n setMax(funcid: any = \"\", dayTarget: any) {\n let max = 0;\n switch (funcid) {\n case \"CO2\":\n for (let i = 0; i < dayTarget.length; i++) {\n if (dayTarget[i].co2Max) {\n max = dayTarget[i].co2Max;\n }\n }\n break;\n case \"PM2d5\":\n for (let i = 0; i < dayTarget.length; i++) {\n if (dayTarget[i].pm25Max) {\n max = dayTarget[i].pm25Max;\n }\n }\n break;\n case \"HCHO\":\n // max = dayTarget && dayTarget[0] && dayTarget[0].hchoMax;\n for (let i = 0; i < dayTarget.length; i++) {\n if (dayTarget[i].hchoMax) {\n max = dayTarget[i].hchoMax;\n }\n }\n break;\n case \"RH\":\n max = 0;\n break;\n case \"Tdb\":\n // max = dayTarget[0].temperatureMax;\n max = 0;\n break;\n default:\n break;\n }\n return max;\n },\n });\n watch(\n props,\n (newProps: any) => {\n proxyData.query = JSON.parse(JSON.stringify(newProps.query));\n proxyData.setActiveItem();\n proxyData.queryAllData();\n // 设置当前选中的tab\n },\n {\n deep: true,\n immediate: true,\n }\n );\n onMounted(() => {\n // proxyData.setActiveItem();\n // proxyData.queryAllData();\n // const route: any = useRoute();\n // if (route.query) {\n // proxyData.query = route.query;\n // // 设置当前选中的tab\n // proxyData.setActiveItem();\n // proxyData.queryAllData();\n // }\n });\n return {\n ...toRefs(proxyData),\n };\n },\n});\n","import { render } from \"./detail.vue?vue&type=template&id=529a347c&scoped=true&ts=true\"\nimport script from \"./detail.vue?vue&type=script&lang=ts\"\nexport * from \"./detail.vue?vue&type=script&lang=ts\"\n\nimport \"./detail.vue?vue&type=style&index=0&id=529a347c&lang=scss&scoped=true\"\nimport \"./detail.vue?vue&type=style&index=1&id=529a347c&lang=scss\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagacloud-sagacare-ipad/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-529a347c\"]])\n\nexport default __exports__","'use strict';\nvar $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar createProperty = require('../internals/create-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar SPECIES = wellKnownSymbol('species');\nvar nativeSlice = [].slice;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.es/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n slice: function slice(start, end) {\n var O = toIndexedObject(this);\n var length = toLength(O.length);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject(Constructor)) {\n Constructor = Constructor[SPECIES];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === Array || Constructor === undefined) {\n return nativeSlice.call(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n"],"sourceRoot":""}