{"version":3,"sources":["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:///./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:///./src/views/envmonitor/detail.vue?bfb0","webpack:///./src/views/envmonitor/detail.vue","webpack:///./node_modules/core-js/modules/es.array.slice.js"],"names":["_arrayLikeToArray","arr","len","length","i","arr2","Array","_arrayWithoutHoles","isArray","arrayLikeToArray","_iterableToArray","iter","Symbol","iterator","Object","from","_unsupportedIterableToArray","o","minLen","n","prototype","toString","call","slice","constructor","name","test","_nonIterableSpread","TypeError","_toConsumableArray","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","bind","toObject","callWithSafeIterationClosing","isArrayIteratorMethod","toLength","createProperty","getIteratorMethod","module","exports","arrayLike","result","step","next","value","O","C","this","argumentsLength","arguments","mapfn","undefined","mapping","iteratorMethod","index","done","anObject","iteratorClose","fn","ENTRIES","error","$","checkCorrectnessOfIteration","INCORRECT_ITERATION","iterable","target","stat","forced","_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","funcid","id","options","showNowData","src","parseImgUrl","alt","text","textItem","idx","level","img","_","showLoading","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":"uIAAe,SAASA,EAAkBC,EAAKC,IAClC,MAAPA,GAAeA,EAAMD,EAAIE,UAAQD,EAAMD,EAAIE,QAE/C,IAAK,IAAIC,EAAI,EAAGC,EAAO,IAAIC,MAAMJ,GAAME,EAAIF,EAAKE,IAC9CC,EAAKD,GAAKH,EAAIG,GAGhB,OAAOC,ECNM,SAASE,EAAmBN,GACzC,GAAIK,MAAME,QAAQP,GAAM,OAAOQ,EAAiBR,G,wGCFnC,SAASS,EAAiBC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AMjB,OAAwB/L,IAAR6M,EAAoBhQ,EAASgQ,EAAKhQ,GAG5D,GAAIK,EAAQwC,KACVoN,EAAcpN,EAAExB,YAEU,mBAAf4O,GAA8BA,IAAgB9P,QAASE,EAAQ4P,EAAYhP,WAE3EgO,EAASgB,KAClBA,EAAcA,EAAYL,GACN,OAAhBK,IAAsBA,OAAc9M,IAHxC8M,OAAc9M,EAKZ8M,IAAgB9P,YAAyBgD,IAAhB8M,GAC3B,OAAOJ,EAAY1O,KAAK0B,EAAGqN,EAAGC,GAIlC,IADA1N,EAAS,SAAqBU,IAAhB8M,EAA4B9P,MAAQ8P,GAAapF,EAAIsF,EAAMD,EAAG,IACvElP,EAAI,EAAGkP,EAAIC,EAAKD,IAAKlP,IAASkP,KAAKrN,GAAGT,EAAeK,EAAQzB,EAAG6B,EAAEqN,IAEvE,OADAzN,EAAOzC,OAASgB,EACTyB","file":"static/js/chunk-390d4e2b.869c5079.js","sourcesContent":["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}","'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}","\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":""}