@vtx/modals2 2.10.47 → 2.10.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/util/index.js +10 -0
- package/lib/util/index.js.map +1 -1
- package/lib/vm-alarm-info/Components/AlarmRank.js +4 -5
- package/lib/vm-alarm-info/Components/AlarmRank.js.map +1 -1
- package/lib/vm-alarm-info/Components/AlarmRecord.js +10 -4
- package/lib/vm-alarm-info/Components/AlarmRecord.js.map +1 -1
- package/lib/vm-alarm-info/Components/AlarmStatistics.js +1 -0
- package/lib/vm-alarm-info/Components/AlarmStatistics.js.map +1 -1
- package/lib/vm-alarm-info/Components/CurrentAlarm.js +9 -2
- package/lib/vm-alarm-info/Components/CurrentAlarm.js.map +1 -1
- package/lib/vm-alarm-info/Components/index.css +0 -1
- package/lib/vm-alarm-info/Components/index.less +0 -1
- package/lib/vm-alarm-info/index.js +1 -1
- package/lib/vm-alarm-info/index.js.map +1 -1
- package/lib/vm-common-components/components/vm-chart/index.js +4 -2
- package/lib/vm-common-components/components/vm-chart/index.js.map +1 -1
- package/lib/vm-common-components/components/vm-nodata/index.js +4 -0
- package/lib/vm-common-components/components/vm-nodata/index.js.map +1 -1
- package/lib/vtx-hz-facility-modal/api.js +116 -71
- package/lib/vtx-hz-facility-modal/api.js.map +1 -1
- package/lib/vtx-hz-facility-modal/components/DetectedData/index.js +145 -50
- package/lib/vtx-hz-facility-modal/components/DetectedData/index.js.map +1 -1
- package/lib/vtx-hz-facility-modal/components/MonitorData/index.js +11 -9
- package/lib/vtx-hz-facility-modal/components/MonitorData/index.js.map +1 -1
- package/lib/vtx-hz-facility-modal/components/OverViewInfo1/index.js +84 -48
- package/lib/vtx-hz-facility-modal/components/OverViewInfo1/index.js.map +1 -1
- package/lib/vtx-hz-facility-modal/index.js +10 -6
- package/lib/vtx-hz-facility-modal/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_tslib","require","_react","_interopRequireDefault","_echartsForReact","_antd","_vmNodata","_useSettings2","obj","__esModule","_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","Object","prototype","toString","call","slice","constructor","name","Array","from","test","len","length","arr2","r","l","t","Symbol","iterator","e","u","a","f","next","done","push","value","isArray","_typeof","getThemeColor","isDark","getTooltip","options","assign","trigger","getLegendItem","textStyle","color","pageIconColor","pageIconInactiveColor","pageTextStyle","getLegend","map","item","getGrid","left","right","top","bottom","containLabel","getXAxisItem","_a","data","other","__rest","type","boundaryGap","axisTick","show","nameTextStyle","axisLabel","fontSize","axisLine","lineStyle","getXAxis","xAxis","_xAxis","v","getYAxisItem","showMaxLabel","splitLine","getYAxis","yAxis","_yAxis","getLineSeries","symbolSize","smooth","connectNulls","getBarSeries","barMaxWidth","barMinWidth","getPieSeries","getColor","colorStops","c","offset","x","y","x2","y2","global","getAreaColor","_ref","_ref2","start","end","globalCoord","getSeries","series","_series","FUN_MAP","bar","line","pie","pictorialBar","areaColor","_seriesItem","itemStyle","areaStyle","Chart","props","_b","_c","onEvents","legend","tooltip","grid","_props$height","height","_props$width","width","_props$loading","loading","_useSettings","useSettings","theme","option","React","createElement","className","style","Spin","spinning","ReactEcharts","notMerge","lazyUpdate","NoData","_default","exports"],"sources":["vm-common-components/components/vm-chart/index.js"],"sourcesContent":["import { __rest } from \"tslib\";\nimport React from 'react';\nimport ReactEcharts from 'echarts-for-react';\nimport { Spin } from 'antd';\nimport NoData from '../vm-nodata';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport './index.less';\nconst getThemeColor = (isDark) => {\n return isDark ? '#fff' : '#000';\n};\n/**\n * 获取 tooltip\n * @param options\n * @returns {*&{trigger: string}}\n */\nconst getTooltip = (options) => {\n return Object.assign({ trigger: 'axis' }, options);\n};\n/**\n * 获取单个 legend 配置\n * @param options 参数可以是:\"xx\"、\"{name: 'xx', ...其他配置}\"\n * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}}\n */\nconst getLegendItem = (options, isDark) => {\n return Object.assign({ textStyle: {\n color: getThemeColor(isDark),\n }, pageIconColor: getThemeColor(isDark), pageIconInactiveColor: getThemeColor(isDark), pageTextStyle: {\n color: getThemeColor(isDark),\n } }, options);\n};\n/**\n * 获取 图例\n * @param options\n * @returns {*&{pageTextStyle: {color: string}, textStyle: {color: string}, type: string, pageIconInactiveColor: string, pageIconColor: string}}\n */\nconst getLegend = (options, isDark) => {\n //判断是否是数组\n if (options && Array.isArray(options)) {\n return options === null || options === void 0 ? void 0 : options.map((item) => {\n return getLegendItem(item, isDark);\n });\n }\n return getLegendItem(options, isDark);\n};\n/**\n * 获取布局\n * @param options\n * @returns {*&{top: string, left: number, bottom: string, right: number, containLabel: boolean}}\n */\nconst getGrid = (options) => {\n return Object.assign({ left: 30, right: 40, top: 50, bottom: 30, containLabel: true }, options);\n};\n/**\n * 获取 xAxis 单项\n * @param options 参数可以是: \"[xx, xx]\"、\"{data: [xx, xx], ...}\"\n * @returns {{axisLabel: {textStyle: {color: string}}, data: *, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, type: string, boundaryGap: boolean}}\n */\nconst getXAxisItem = (options, isDark) => {\n let _a = Array.isArray(options) ? { data: options } : options, { data } = _a, other = __rest(_a, [\"data\"]);\n return Object.assign({ type: 'category', boundaryGap: true, axisTick: { show: true }, nameTextStyle: {\n color: getThemeColor(isDark),\n }, axisLabel: {\n textStyle: { fontSize: 12, color: getThemeColor(isDark) },\n }, axisLine: {\n lineStyle: { color: 'rgba(255,255,255, .2)' },\n }, data }, other);\n};\n/**\n * 获取 xAxis 配置\n * @param xAxis 参数说明:\"[xx, xx]\"、\"[[xx, xx], [xx, xx]]\"、\"[{data: [xx, xx], ...}]\"\n * @returns {(*&{axisLabel: {textStyle: {color: string}}, data, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, type: string, boundaryGap: boolean})|*[]}\n */\nconst getXAxis = (xAxis, isDark) => {\n if (xAxis) {\n if (typeof (xAxis === null || xAxis === void 0 ? void 0 : xAxis[0]) === 'object') {\n let _xAxis = [];\n xAxis.map((v) => {\n _xAxis === null || _xAxis === void 0 ? void 0 : _xAxis.push(getXAxisItem(v, isDark));\n });\n return _xAxis;\n }\n return getXAxisItem(xAxis, isDark);\n }\n return {\n show: false,\n };\n};\n/**\n * 获取单个 yAxis 配置\n * @param options 参数可以是:\"xx\"、\"{name: 'xx', ...其他配置}\"\n * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}}\n */\nconst getYAxisItem = (options, isDark) => {\n options = options || {};\n let _a = typeof options === 'string' ? { name: options } : options, { name } = _a, other = __rest(_a, [\"name\"]);\n return Object.assign({ name, nameTextStyle: {\n color: getThemeColor(isDark),\n }, axisLabel: {\n textStyle: {\n color: getThemeColor(isDark),\n fontSize: 12,\n },\n showMaxLabel: false,\n }, axisLine: {\n lineStyle: { color: getThemeColor(isDark) },\n }, axisTick: { show: false }, splitLine: { lineStyle: { color: 'rgba(255,255,255, .05)' } } }, other);\n};\n/**\n * 获取 yAxis 配置\n * @param yAxis 参数可以是: \"xx\"、\"['xx', 'xxx']\"、\"[{name: 'xx', ...其他配置}]\"\n * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}|*[]}\n */\nconst getYAxis = (yAxis, isDark) => {\n if (yAxis) {\n if (Array.isArray(yAxis)) {\n let _yAxis = [];\n yAxis.map((v) => {\n _yAxis.push(getYAxisItem(v, isDark));\n });\n return _yAxis;\n }\n return getYAxisItem(yAxis, isDark);\n }\n return {\n show: false,\n };\n};\nconst getLineSeries = (_a) => {\n var { name, data } = _a, other = __rest(_a, [\"name\", \"data\"]);\n return Object.assign({ type: 'line', symbolSize: 6, smooth: true, connectNulls: true, name,\n data }, other);\n};\nconst getBarSeries = (_a) => {\n var { name, data, type } = _a, other = __rest(_a, [\"name\", \"data\", \"type\"]);\n // 特殊样式处理\n return type == 'pictorialBar'\n ? Object.assign({ type: 'pictorialBar', name,\n data }, other) : Object.assign({ type: 'bar', barMaxWidth: 20, barMinWidth: 10, connectNulls: true, name,\n data }, other);\n};\nconst getPieSeries = (_a) => {\n var { name, data } = _a, other = __rest(_a, [\"name\", \"data\"]);\n return Object.assign({ type: 'pie', name,\n data }, other);\n};\n/**\n * 获取颜色\n * @param color 参数可为:\"#xxx\", \"['#xxx', '#xxx]\"\n * @returns {string|{x: number, y: number, y2: number, x2: number, global: boolean, colorStops: *[], type: string}}\n */\nconst getColor = (color) => {\n if (typeof color === 'string') {\n return color;\n }\n else if (Array.isArray(color)) {\n let colorStops = [];\n color.map((c, i) => {\n if (typeof c === 'string') {\n colorStops.push({\n offset: i,\n color: color[i], // 0% 处的颜色\n });\n }\n else {\n colorStops.push(Object.assign({ offset: i, color: c.color }, c));\n }\n });\n return {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: colorStops,\n global: false, // 缺省为 false\n };\n }\n};\n/**\n * 获取区间渐变颜色\n * @param color 参数可为:\"#xxx\", \"['#xxx', '#xxx]\"\n * @returns {{color: {x: number, y: number, y2: number, globalCoord: boolean, x2: number, colorStops: [{offset: number, color: string},{offset: number, color: string}], type: string}}}\n */\nconst getAreaColor = (color) => {\n let [start, end] = typeof color === 'string' ? [color, color] : color;\n return {\n color: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [\n { offset: 0, color: start } /*0% 处的颜色*/,\n { offset: 1, color: end } /* 100% 处的颜色*/,\n ],\n globalCoord: false, // 缺省为 false\n },\n };\n};\nconst getSeries = (series) => {\n let _series = [];\n const FUN_MAP = {\n bar: getBarSeries,\n line: getLineSeries,\n pie: getPieSeries,\n pictorialBar: getBarSeries, // 自定义样式的柱状图\n };\n series === null || series === void 0 ? void 0 : series.map(v => {\n let { type, color, areaColor } = v;\n let _seriesItem;\n if (FUN_MAP[type]) {\n _seriesItem = FUN_MAP[type](v);\n }\n else {\n //其他类型\n _seriesItem = v;\n }\n // 自身颜色\n if (color) {\n _seriesItem.itemStyle = _seriesItem.itemStyle || {};\n _seriesItem.itemStyle.color = getColor(color);\n }\n // 区间颜色\n if (areaColor && areaColor.length) {\n _seriesItem.areaStyle = getAreaColor(areaColor);\n }\n _series === null || _series === void 0 ? void 0 : _series.push(_seriesItem);\n });\n return _series;\n};\nconst Chart = (props) => {\n var _a, _b, _c;\n const { onEvents, color, legend, tooltip, grid, xAxis, yAxis, height = '100%', width = '100%', series, loading = false, } = props;\n const { theme } = useSettings();\n const isDark = theme == 'dark';\n let option = {\n legend: getLegend(legend, isDark),\n tooltip: getTooltip(tooltip),\n grid: getGrid(grid),\n xAxis: getXAxis(xAxis, isDark),\n yAxis: getYAxis(yAxis, isDark),\n series: getSeries(series),\n };\n if (color) {\n option['color'] = color;\n }\n return (React.createElement(\"div\", { className: \"chartWrap\", style: { height, width: '100%' } },\n React.createElement(Spin, { spinning: loading }, ((_c = (_b = (_a = option.series) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.length) ? (React.createElement(ReactEcharts, { option: option, notMerge: true, lazyUpdate: true, style: { height, width }, onEvents: onEvents })) : (React.createElement(NoData, { type: \"NO_CHART\", style: { width: '100%', height } })))));\n};\nexport default Chart;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;A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,KAAK,EAAE;IAAEC,SAAS,EAAE,WAAW;IAAEC,KAAK,EAAE;MAAEZ,MAAM,EAANA,MAAM;MAAEE,KAAK,EAAE;IAAO;EAAE,CAAC,eAC3FO,iBAAK,CAACC,aAAa,CAACG,UAAI,EAAE;IAAEC,QAAQ,EAAEV;EAAQ,CAAC,EAAE,CAAC,CAACV,EAAE,GAAG,CAACD,EAAE,GAAG,CAAC5D,EAAE,GAAG2E,MAAM,CAAC5B,MAAM,MAAM,IAAI,IAAI/C,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,IAAI4D,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAAC3D,IAAI,MAAM,IAAI,IAAI4D,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAACpG,MAAM,iBAAKmH,iBAAK,CAACC,aAAa,CAACK,2BAAY,EAAE;IAAEP,MAAM,EAAEA,MAAM;IAAEQ,QAAQ,EAAE,IAAI;IAAEC,UAAU,EAAE,IAAI;IAAEL,KAAK,EAAE;MAAEZ,MAAM,EAANA,MAAM;MAAEE,KAAK,EAALA;IAAM,CAAC;IAAEP,QAAQ,EAAEA;EAAS,CAAC,CAAC,gBAAKc,iBAAK,CAACC,aAAa,CAACQ,oBAAM,EAAE;IAAEjF,IAAI,EAAE,UAAU;IAAE2E,KAAK,EAAE;MAAEV,KAAK,EAAE,MAAM;MAAEF,MAAM,EAANA;IAAO;EAAE,CAAC,CAAE,CAAC,CAAC;AACxc,CAAC;AAAC,IAAAmB,QAAA,GACa5B,KAAK;AAAA6B,OAAA,cAAAD,QAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_tslib","require","_react","_interopRequireDefault","_echartsForReact","_antd","_vmNodata","_useSettings2","obj","__esModule","_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","Object","prototype","toString","call","slice","constructor","name","Array","from","test","len","length","arr2","r","l","t","Symbol","iterator","e","u","a","f","next","done","push","value","isArray","_typeof","getThemeColor","isDark","getTooltip","options","assign","trigger","getLegendItem","textStyle","color","pageIconColor","pageIconInactiveColor","pageTextStyle","getLegend","map","item","getGrid","left","right","top","bottom","containLabel","getXAxisItem","_a","data","other","__rest","type","boundaryGap","axisTick","show","nameTextStyle","axisLabel","fontSize","axisLine","lineStyle","getXAxis","xAxis","_xAxis","v","getYAxisItem","showMaxLabel","splitLine","getYAxis","yAxis","_yAxis","getLineSeries","symbolSize","smooth","connectNulls","getBarSeries","barMaxWidth","barMinWidth","getPieSeries","getColor","colorStops","c","offset","x","y","x2","y2","global","getAreaColor","_ref","_ref2","start","end","globalCoord","getSeries","series","_series","FUN_MAP","bar","line","pie","pictorialBar","areaColor","_seriesItem","itemStyle","areaStyle","Chart","props","_b","_c","onEvents","legend","tooltip","grid","_props$height","height","_props$width","width","_props$loading","loading","_props$type","_useSettings","useSettings","theme","option","React","createElement","className","style","Spin","spinning","ReactEcharts","notMerge","lazyUpdate","NoData","_default","exports"],"sources":["vm-common-components/components/vm-chart/index.js"],"sourcesContent":["import { __rest } from \"tslib\";\nimport React from 'react';\nimport ReactEcharts from 'echarts-for-react';\nimport { Spin } from 'antd';\nimport NoData from '../vm-nodata';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport './index.less';\nconst getThemeColor = (isDark) => {\n return isDark ? '#fff' : '#000';\n};\n/**\n * 获取 tooltip\n * @param options\n * @returns {*&{trigger: string}}\n */\nconst getTooltip = (options) => {\n return Object.assign({ trigger: 'axis' }, options);\n};\n/**\n * 获取单个 legend 配置\n * @param options 参数可以是:\"xx\"、\"{name: 'xx', ...其他配置}\"\n * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}}\n */\nconst getLegendItem = (options, isDark) => {\n return Object.assign({ textStyle: {\n color: getThemeColor(isDark),\n }, pageIconColor: getThemeColor(isDark), pageIconInactiveColor: getThemeColor(isDark), pageTextStyle: {\n color: getThemeColor(isDark),\n } }, options);\n};\n/**\n * 获取 图例\n * @param options\n * @returns {*&{pageTextStyle: {color: string}, textStyle: {color: string}, type: string, pageIconInactiveColor: string, pageIconColor: string}}\n */\nconst getLegend = (options, isDark) => {\n //判断是否是数组\n if (options && Array.isArray(options)) {\n return options === null || options === void 0 ? void 0 : options.map((item) => {\n return getLegendItem(item, isDark);\n });\n }\n return getLegendItem(options, isDark);\n};\n/**\n * 获取布局\n * @param options\n * @returns {*&{top: string, left: number, bottom: string, right: number, containLabel: boolean}}\n */\nconst getGrid = (options) => {\n return Object.assign({ left: 30, right: 40, top: 50, bottom: 30, containLabel: true }, options);\n};\n/**\n * 获取 xAxis 单项\n * @param options 参数可以是: \"[xx, xx]\"、\"{data: [xx, xx], ...}\"\n * @returns {{axisLabel: {textStyle: {color: string}}, data: *, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, type: string, boundaryGap: boolean}}\n */\nconst getXAxisItem = (options, isDark) => {\n let _a = Array.isArray(options) ? { data: options } : options, { data } = _a, other = __rest(_a, [\"data\"]);\n return Object.assign({ type: 'category', boundaryGap: true, axisTick: { show: true }, nameTextStyle: {\n color: getThemeColor(isDark),\n }, axisLabel: {\n textStyle: { fontSize: 12, color: getThemeColor(isDark) },\n }, axisLine: {\n lineStyle: { color: 'rgba(255,255,255, .2)' },\n }, data }, other);\n};\n/**\n * 获取 xAxis 配置\n * @param xAxis 参数说明:\"[xx, xx]\"、\"[[xx, xx], [xx, xx]]\"、\"[{data: [xx, xx], ...}]\"\n * @returns {(*&{axisLabel: {textStyle: {color: string}}, data, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, type: string, boundaryGap: boolean})|*[]}\n */\nconst getXAxis = (xAxis, isDark) => {\n if (xAxis) {\n if (typeof (xAxis === null || xAxis === void 0 ? void 0 : xAxis[0]) === 'object') {\n let _xAxis = [];\n xAxis.map((v) => {\n _xAxis === null || _xAxis === void 0 ? void 0 : _xAxis.push(getXAxisItem(v, isDark));\n });\n return _xAxis;\n }\n return getXAxisItem(xAxis, isDark);\n }\n return {\n show: false,\n };\n};\n/**\n * 获取单个 yAxis 配置\n * @param options 参数可以是:\"xx\"、\"{name: 'xx', ...其他配置}\"\n * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}}\n */\nconst getYAxisItem = (options, isDark) => {\n options = options || {};\n let _a = typeof options === 'string' ? { name: options } : options, { name } = _a, other = __rest(_a, [\"name\"]);\n return Object.assign({ name, nameTextStyle: {\n color: getThemeColor(isDark),\n }, axisLabel: {\n textStyle: {\n color: getThemeColor(isDark),\n fontSize: 12,\n },\n showMaxLabel: false,\n }, axisLine: {\n lineStyle: { color: getThemeColor(isDark) },\n }, axisTick: { show: false }, splitLine: { lineStyle: { color: 'rgba(255,255,255, .05)' } } }, other);\n};\n/**\n * 获取 yAxis 配置\n * @param yAxis 参数可以是: \"xx\"、\"['xx', 'xxx']\"、\"[{name: 'xx', ...其他配置}]\"\n * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}|*[]}\n */\nconst getYAxis = (yAxis, isDark) => {\n if (yAxis) {\n if (Array.isArray(yAxis)) {\n let _yAxis = [];\n yAxis.map((v) => {\n _yAxis.push(getYAxisItem(v, isDark));\n });\n return _yAxis;\n }\n return getYAxisItem(yAxis, isDark);\n }\n return {\n show: false,\n };\n};\nconst getLineSeries = (_a) => {\n var { name, data } = _a, other = __rest(_a, [\"name\", \"data\"]);\n return Object.assign({ type: 'line', symbolSize: 6, smooth: true, connectNulls: true, name,\n data }, other);\n};\nconst getBarSeries = (_a) => {\n var { name, data, type } = _a, other = __rest(_a, [\"name\", \"data\", \"type\"]);\n // 特殊样式处理\n return type == 'pictorialBar'\n ? Object.assign({ type: 'pictorialBar', name,\n data }, other) : Object.assign({ type: 'bar', barMaxWidth: 20, barMinWidth: 10, connectNulls: true, name,\n data }, other);\n};\nconst getPieSeries = (_a) => {\n var { name, data } = _a, other = __rest(_a, [\"name\", \"data\"]);\n return Object.assign({ type: 'pie', name,\n data }, other);\n};\n/**\n * 获取颜色\n * @param color 参数可为:\"#xxx\", \"['#xxx', '#xxx]\"\n * @returns {string|{x: number, y: number, y2: number, x2: number, global: boolean, colorStops: *[], type: string}}\n */\nconst getColor = (color) => {\n if (typeof color === 'string') {\n return color;\n }\n else if (Array.isArray(color)) {\n let colorStops = [];\n color.map((c, i) => {\n if (typeof c === 'string') {\n colorStops.push({\n offset: i,\n color: color[i], // 0% 处的颜色\n });\n }\n else {\n colorStops.push(Object.assign({ offset: i, color: c.color }, c));\n }\n });\n return {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: colorStops,\n global: false, // 缺省为 false\n };\n }\n};\n/**\n * 获取区间渐变颜色\n * @param color 参数可为:\"#xxx\", \"['#xxx', '#xxx]\"\n * @returns {{color: {x: number, y: number, y2: number, globalCoord: boolean, x2: number, colorStops: [{offset: number, color: string},{offset: number, color: string}], type: string}}}\n */\nconst getAreaColor = (color) => {\n let [start, end] = typeof color === 'string' ? [color, color] : color;\n return {\n color: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [\n { offset: 0, color: start } /*0% 处的颜色*/,\n { offset: 1, color: end } /* 100% 处的颜色*/,\n ],\n globalCoord: false, // 缺省为 false\n },\n };\n};\nconst getSeries = (series) => {\n let _series = [];\n const FUN_MAP = {\n bar: getBarSeries,\n line: getLineSeries,\n pie: getPieSeries,\n pictorialBar: getBarSeries, // 自定义样式的柱状图\n };\n series === null || series === void 0 ? void 0 : series.map(v => {\n let { type, color, areaColor } = v;\n let _seriesItem;\n if (FUN_MAP[type]) {\n _seriesItem = FUN_MAP[type](v);\n }\n else {\n //其他类型\n _seriesItem = v;\n }\n // 自身颜色\n if (color) {\n _seriesItem.itemStyle = _seriesItem.itemStyle || {};\n _seriesItem.itemStyle.color = getColor(color);\n }\n // 区间颜色\n if (areaColor && areaColor.length) {\n _seriesItem.areaStyle = getAreaColor(areaColor);\n }\n _series === null || _series === void 0 ? void 0 : _series.push(_seriesItem);\n });\n return _series;\n};\nconst Chart = (props) => {\n var _a, _b, _c;\n const { onEvents, color, legend, tooltip, grid, xAxis, yAxis, height = '100%', width = '100%', series, loading = false, type = \"NO_CHART\" } = props;\n const { theme } = useSettings();\n const isDark = theme == 'dark';\n let option = {\n legend: getLegend(legend, isDark),\n tooltip: getTooltip(tooltip),\n grid: getGrid(grid),\n xAxis: getXAxis(xAxis, isDark),\n yAxis: getYAxis(yAxis, isDark),\n series: getSeries(series),\n };\n if (color) {\n option['color'] = color;\n }\n return (React.createElement(\"div\", { className: \"chartWrap\", style: { height, width: '100%' } },\n React.createElement(Spin, { spinning: loading }, ((_c = (_b = (_a = option.series) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.length) ? (React.createElement(ReactEcharts, { option: option, notMerge: true, lazyUpdate: true, style: { height, width }, onEvents: onEvents })) : (React.createElement(NoData, { type: type, style: { width: '100%', height } })))));\n};\nexport default Chart;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,aAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACAA,OAAA;AAAsB,SAAAE,uBAAAK,GAAA,WA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,KAAK,EAAE;MAAEb,MAAM,EAANA,MAAM;MAAEE,KAAK,EAAE;IAAO;EAAE,CAAC,eAC3FQ,iBAAK,CAACC,aAAa,CAACG,UAAI,EAAE;IAAEC,QAAQ,EAAEX;EAAQ,CAAC,EAAE,CAAC,CAACV,EAAE,GAAG,CAACD,EAAE,GAAG,CAAC5D,EAAE,GAAG4E,MAAM,CAAC7B,MAAM,MAAM,IAAI,IAAI/C,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,IAAI4D,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAAC3D,IAAI,MAAM,IAAI,IAAI4D,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAACpG,MAAM,iBAAKoH,iBAAK,CAACC,aAAa,CAACK,2BAAY,EAAE;IAAEP,MAAM,EAAEA,MAAM;IAAEQ,QAAQ,EAAE,IAAI;IAAEC,UAAU,EAAE,IAAI;IAAEL,KAAK,EAAE;MAAEb,MAAM,EAANA,MAAM;MAAEE,KAAK,EAALA;IAAM,CAAC;IAAEP,QAAQ,EAAEA;EAAS,CAAC,CAAC,gBAAKe,iBAAK,CAACC,aAAa,CAACQ,oBAAM,EAAE;IAAElF,IAAI,EAAEA,IAAI;IAAE4E,KAAK,EAAE;MAAEX,KAAK,EAAE,MAAM;MAAEF,MAAM,EAANA;IAAO;EAAE,CAAC,CAAE,CAAC,CAAC;AAClc,CAAC;AAAC,IAAAoB,QAAA,GACa7B,KAAK;AAAA8B,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_no_chart","_no_data","_no_data_","_no_news","_no_permission","_no_picture","_no_result","_page_error","obj","__esModule","CONFIG","NO_CHART","img","no_chart","text","NO_DATA","no_data","NO_DATA_2","no_data_2","NO_NEWS","no_news","NO_PERMISSION","no_permission","NO_PICTURE","no_picture","NO_RESULT","no_result","PAGE_ERROR","page_error","NO_CERTIFICATE","NoData","_ref","_ref$style","style","_ref$type","type","className","_ref2","React","createElement","concat","Object","assign","alt","src"],"sources":["vm-common-components/components/vm-nodata/index.js"],"sourcesContent":["import React from 'react';\nimport './style';\nimport '../../style/index.less';\nimport no_chart from './imgs/no_chart.png';\nimport no_data from './imgs/no_data.png';\nimport no_data_2 from './imgs/no_data_2.png';\nimport no_news from './imgs/no_news.png';\nimport no_permission from './imgs/no_permission.png';\nimport no_picture from './imgs/no_picture.png';\nimport no_result from './imgs/no_result.png';\nimport page_error from './imgs/page_error.png';\nconst CONFIG = {\n NO_CHART: {\n img: no_chart,\n text: '图表无数据',\n },\n NO_DATA: {\n img: no_data,\n text: '暂无数据',\n },\n NO_DATA_2: {\n img: no_data_2,\n text: '暂无数据',\n },\n NO_NEWS: {\n img: no_news,\n text: '暂无消息',\n },\n NO_PERMISSION: {\n img: no_permission,\n text: '无权限',\n },\n NO_PICTURE: {\n img: no_picture,\n text: '暂无图片',\n },\n NO_RESULT: {\n img: no_result,\n text: '搜索无结果',\n },\n PAGE_ERROR: {\n img: page_error,\n text: '页面错误',\n },\n NO_CERTIFICATE: {\n img: no_data,\n text: '暂无证书信息',\n },\n};\nexport default function NoData({ style = {}, type = 'NO_DATA', className }) {\n let { img, text } = CONFIG[type] || {};\n return (React.createElement(\"div\", { className: `noData ${className}`, style: Object.assign({}, style) },\n React.createElement(\"img\", { className: \"img\", alt: \"\\u6682\\u65E0\\u6570\\u636E\", src: img }),\n React.createElement(\"div\", { className: \"text\" }, text)));\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACAA,OAAA;AACAA,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,QAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,cAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,WAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,UAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,WAAA,GAAAT,sBAAA,CAAAC,OAAA;AAA+C,SAAAD,uBAAAU,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAC/C,IAAME,MAAM,GAAG;EACXC,QAAQ,EAAE;IACNC,GAAG,EAAEC,oBAAQ;IACbC,IAAI,EAAE;EACV,CAAC;EACDC,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_no_chart","_no_data","_no_data_","_no_news","_no_permission","_no_picture","_no_result","_page_error","obj","__esModule","CONFIG","NO_CHART","img","no_chart","text","NO_AlARM","NO_DATA","no_data","NO_DATA_2","no_data_2","NO_NEWS","no_news","NO_PERMISSION","no_permission","NO_PICTURE","no_picture","NO_RESULT","no_result","PAGE_ERROR","page_error","NO_CERTIFICATE","NoData","_ref","_ref$style","style","_ref$type","type","className","_ref2","React","createElement","concat","Object","assign","alt","src"],"sources":["vm-common-components/components/vm-nodata/index.js"],"sourcesContent":["import React from 'react';\nimport './style';\nimport '../../style/index.less';\nimport no_chart from './imgs/no_chart.png';\nimport no_data from './imgs/no_data.png';\nimport no_data_2 from './imgs/no_data_2.png';\nimport no_news from './imgs/no_news.png';\nimport no_permission from './imgs/no_permission.png';\nimport no_picture from './imgs/no_picture.png';\nimport no_result from './imgs/no_result.png';\nimport page_error from './imgs/page_error.png';\nconst CONFIG = {\n NO_CHART: {\n img: no_chart,\n text: '图表无数据',\n },\n NO_AlARM: {\n img: no_chart,\n text: '暂无预警',\n },\n NO_DATA: {\n img: no_data,\n text: '暂无数据',\n },\n NO_DATA_2: {\n img: no_data_2,\n text: '暂无数据',\n },\n NO_NEWS: {\n img: no_news,\n text: '暂无消息',\n },\n NO_PERMISSION: {\n img: no_permission,\n text: '无权限',\n },\n NO_PICTURE: {\n img: no_picture,\n text: '暂无图片',\n },\n NO_RESULT: {\n img: no_result,\n text: '搜索无结果',\n },\n PAGE_ERROR: {\n img: page_error,\n text: '页面错误',\n },\n NO_CERTIFICATE: {\n img: no_data,\n text: '暂无证书信息',\n },\n};\nexport default function NoData({ style = {}, type = 'NO_DATA', className }) {\n let { img, text } = CONFIG[type] || {};\n return (React.createElement(\"div\", { className: `noData ${className}`, style: Object.assign({}, style) },\n React.createElement(\"img\", { className: \"img\", alt: \"\\u6682\\u65E0\\u6570\\u636E\", src: img }),\n React.createElement(\"div\", { className: \"text\" }, text)));\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACAA,OAAA;AACAA,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,QAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,cAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,WAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,UAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,WAAA,GAAAT,sBAAA,CAAAC,OAAA;AAA+C,SAAAD,uBAAAU,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAC/C,IAAME,MAAM,GAAG;EACXC,QAAQ,EAAE;IACNC,GAAG,EAAEC,oBAAQ;IACbC,IAAI,EAAE;EACV,CAAC;EACDC,QAAQ,EAAE;IACNH,GAAG,EAAEC,oBAAQ;IACbC,IAAI,EAAE;EACV,CAAC;EACDE,OAAO,EAAE;IACLJ,GAAG,EAAEK,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,EAAE,KAAK;IAAEO,GAAG,EAAE,0BAA0B;IAAEC,GAAG,EAAEjC;EAAI,CAAC,CAAC,eAC3F2B,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEH,SAAS,EAAE;EAAO,CAAC,EAAEvB,IAAI,CAAC,CAAC;AAChE"}
|
|
@@ -23,32 +23,31 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
23
23
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
24
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
25
25
|
var token = (0, _utils.getUrlParam)('token') || (0, _utils.getUrlParam)('access_token') || localStorage.getItem('token') || localStorage.getItem('access_token') || sessionStorage.getItem('token') || sessionStorage.getItem('access_token');
|
|
26
|
-
var getDetectData = function getDetectData(current, size, id, reportType) {
|
|
26
|
+
var getDetectData = function getDetectData(current, size, id, reportType, facilityType) {
|
|
27
27
|
return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28
|
-
var _a, _b, _c, _d, res;
|
|
29
28
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30
29
|
while (1) switch (_context.prev = _context.next) {
|
|
31
30
|
case 0:
|
|
32
|
-
_context.
|
|
33
|
-
return _axios["default"].post('/cloud/zhsw-gsfw/api/manualDataEntry/page', {
|
|
31
|
+
return _context.abrupt("return", _axios["default"].post('/cloud/zhsw-gsfw/api/manualDataEntry/page', {
|
|
34
32
|
current: current,
|
|
35
33
|
size: size,
|
|
36
34
|
facilityId: id,
|
|
37
|
-
reportType: reportType
|
|
35
|
+
reportType: reportType,
|
|
36
|
+
facilityType: facilityType
|
|
38
37
|
}, {
|
|
39
38
|
headers: {
|
|
40
39
|
Authorization: token ? "Bearer ".concat(token) : '',
|
|
41
40
|
'Cache-Control': 'no-cache',
|
|
42
41
|
'content-type': 'application/json;charset=UTF-8'
|
|
43
42
|
}
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
});
|
|
51
|
-
case
|
|
43
|
+
}).then(function (res) {
|
|
44
|
+
var _a, _b, _c, _d;
|
|
45
|
+
return {
|
|
46
|
+
list: ((_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.records) || [],
|
|
47
|
+
total: ((_d = (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.total) || 0
|
|
48
|
+
};
|
|
49
|
+
}));
|
|
50
|
+
case 1:
|
|
52
51
|
case "end":
|
|
53
52
|
return _context.stop();
|
|
54
53
|
}
|
|
@@ -482,7 +481,6 @@ var Service = {
|
|
|
482
481
|
var id = _ref10.id,
|
|
483
482
|
reportType = _ref10.reportType,
|
|
484
483
|
facilityType = _ref10.facilityType;
|
|
485
|
-
var _a, _b;
|
|
486
484
|
var _useRequest9 = (0, _ahooks.useRequest)(function () {
|
|
487
485
|
return _request["default"].post('/cloud/zhsw-gsfw/api/manualDataEntry/statistics', {
|
|
488
486
|
body: JSON.stringify({
|
|
@@ -507,19 +505,11 @@ var Service = {
|
|
|
507
505
|
refreshDeps: [id, reportType, facilityType]
|
|
508
506
|
}),
|
|
509
507
|
list = _useRequest10.data;
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
};
|
|
516
|
-
} else {
|
|
517
|
-
return {
|
|
518
|
-
statistics: {},
|
|
519
|
-
list: [],
|
|
520
|
-
loading: true
|
|
521
|
-
};
|
|
522
|
-
}
|
|
508
|
+
return {
|
|
509
|
+
statistics: (statistics === null || statistics === void 0 ? void 0 : statistics.data) || {},
|
|
510
|
+
list: (list === null || list === void 0 ? void 0 : list.data) || [],
|
|
511
|
+
loading: false
|
|
512
|
+
};
|
|
523
513
|
}
|
|
524
514
|
};
|
|
525
515
|
//设施接口
|
|
@@ -894,19 +884,22 @@ var facilityService = {
|
|
|
894
884
|
UseDataValueInfo: function UseDataValueInfo(_ref17) {
|
|
895
885
|
var id = _ref17.id,
|
|
896
886
|
startTime = _ref17.startTime,
|
|
897
|
-
endTime = _ref17.endTime
|
|
887
|
+
endTime = _ref17.endTime,
|
|
888
|
+
collectFrequency = _ref17.collectFrequency,
|
|
889
|
+
monitorItemCode = _ref17.monitorItemCode;
|
|
898
890
|
var _useRequest18 = (0, _ahooks.useRequest)(function () {
|
|
899
891
|
return _request["default"].get('/cloud/zhsw-jcyj/api/dataQuery/getDataValueTongHuanRate', {
|
|
900
892
|
body: {
|
|
901
893
|
facilityId: id,
|
|
902
|
-
collectFrequency:
|
|
894
|
+
collectFrequency: collectFrequency,
|
|
895
|
+
monitorItemCode: monitorItemCode,
|
|
903
896
|
timeType: 1,
|
|
904
897
|
startTime: startTime,
|
|
905
898
|
endTime: endTime
|
|
906
899
|
}
|
|
907
900
|
});
|
|
908
901
|
}, {
|
|
909
|
-
refreshDeps: [id, startTime, endTime]
|
|
902
|
+
refreshDeps: [id, startTime, endTime, collectFrequency, monitorItemCode]
|
|
910
903
|
}),
|
|
911
904
|
dataValue = _useRequest18.data;
|
|
912
905
|
var waterData = dataValue === null || dataValue === void 0 ? void 0 : dataValue.data;
|
|
@@ -980,13 +973,65 @@ var facilityService = {
|
|
|
980
973
|
factorValue: factorValue
|
|
981
974
|
};
|
|
982
975
|
},
|
|
983
|
-
|
|
984
|
-
|
|
976
|
+
// 供水厂
|
|
977
|
+
UseStatisticsGSC: function UseStatisticsGSC(_ref21) {
|
|
985
978
|
var id = _ref21.id,
|
|
986
979
|
startTime = _ref21.startTime,
|
|
987
980
|
endTime = _ref21.endTime,
|
|
988
|
-
timeType = _ref21.timeType
|
|
981
|
+
timeType = _ref21.timeType,
|
|
982
|
+
collectFrequency = _ref21.collectFrequency;
|
|
983
|
+
var _a, _b;
|
|
989
984
|
var _useRequest22 = (0, _ahooks.useRequest)(function () {
|
|
985
|
+
return _request["default"].get("/cloud/zhsw-qxjc/api/managementCockpit/makingWaterStatistics", {
|
|
986
|
+
body: {
|
|
987
|
+
facilityId: id,
|
|
988
|
+
startTime: startTime,
|
|
989
|
+
endTime: endTime,
|
|
990
|
+
timeType: timeType,
|
|
991
|
+
collectFrequency: collectFrequency
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
}, {
|
|
995
|
+
refreshDeps: [id, startTime, endTime, timeType, collectFrequency]
|
|
996
|
+
}),
|
|
997
|
+
data = _useRequest22.data;
|
|
998
|
+
return {
|
|
999
|
+
YWGLstatistics: ((_b = (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.facilityList) === null || _b === void 0 ? void 0 : _b[0]) || {}
|
|
1000
|
+
};
|
|
1001
|
+
},
|
|
1002
|
+
// 污水厂
|
|
1003
|
+
UseStatisticsWSC: function UseStatisticsWSC(_ref22) {
|
|
1004
|
+
var id = _ref22.id,
|
|
1005
|
+
startTime = _ref22.startTime,
|
|
1006
|
+
endTime = _ref22.endTime,
|
|
1007
|
+
timeType = _ref22.timeType,
|
|
1008
|
+
collectFrequency = _ref22.collectFrequency;
|
|
1009
|
+
var _a, _b;
|
|
1010
|
+
var _useRequest23 = (0, _ahooks.useRequest)(function () {
|
|
1011
|
+
return _request["default"].post("/cloud/zhsw-qxjc/api/managementCockpit/drainageSewageStatistics", {
|
|
1012
|
+
body: JSON.stringify({
|
|
1013
|
+
facilityId: id,
|
|
1014
|
+
startTime: startTime,
|
|
1015
|
+
endTime: endTime,
|
|
1016
|
+
timeType: timeType,
|
|
1017
|
+
collectFrequency: collectFrequency
|
|
1018
|
+
})
|
|
1019
|
+
});
|
|
1020
|
+
}, {
|
|
1021
|
+
refreshDeps: [id, startTime, endTime, timeType, collectFrequency]
|
|
1022
|
+
}),
|
|
1023
|
+
data = _useRequest23.data;
|
|
1024
|
+
return {
|
|
1025
|
+
YWGLstatistics: ((_b = (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sewageDealWaterInfo) === null || _b === void 0 ? void 0 : _b[0]) || {}
|
|
1026
|
+
};
|
|
1027
|
+
},
|
|
1028
|
+
//运维概览
|
|
1029
|
+
UseMaintenanceOverview: function UseMaintenanceOverview(_ref23) {
|
|
1030
|
+
var id = _ref23.id,
|
|
1031
|
+
startTime = _ref23.startTime,
|
|
1032
|
+
endTime = _ref23.endTime,
|
|
1033
|
+
timeType = _ref23.timeType;
|
|
1034
|
+
var _useRequest24 = (0, _ahooks.useRequest)(function () {
|
|
990
1035
|
return _request["default"].post('/cloud/zhsw-sjgd/api/workOrderStatistics/maintenanceOverview', {
|
|
991
1036
|
body: JSON.stringify({
|
|
992
1037
|
facilityId: id,
|
|
@@ -999,7 +1044,7 @@ var facilityService = {
|
|
|
999
1044
|
}, {
|
|
1000
1045
|
refreshDeps: [id, startTime, endTime, timeType]
|
|
1001
1046
|
}),
|
|
1002
|
-
dataValue =
|
|
1047
|
+
dataValue = _useRequest24.data;
|
|
1003
1048
|
if (dataValue) {
|
|
1004
1049
|
var ywglData = (dataValue === null || dataValue === void 0 ? void 0 : dataValue.data) || [];
|
|
1005
1050
|
return {
|
|
@@ -1013,12 +1058,12 @@ var facilityService = {
|
|
|
1013
1058
|
};
|
|
1014
1059
|
}
|
|
1015
1060
|
},
|
|
1016
|
-
UseBaseInfo: function UseBaseInfo(
|
|
1017
|
-
var id =
|
|
1018
|
-
source =
|
|
1061
|
+
UseBaseInfo: function UseBaseInfo(_ref24) {
|
|
1062
|
+
var id = _ref24.id,
|
|
1063
|
+
source = _ref24.source;
|
|
1019
1064
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22;
|
|
1020
1065
|
// 基本信息
|
|
1021
|
-
var
|
|
1066
|
+
var _useRequest25 = (0, _ahooks.useRequest)(function () {
|
|
1022
1067
|
return _request["default"].get('/cloud/jcss-reborn/facility/get', {
|
|
1023
1068
|
data: {
|
|
1024
1069
|
id: id,
|
|
@@ -1029,8 +1074,8 @@ var facilityService = {
|
|
|
1029
1074
|
}, {
|
|
1030
1075
|
refreshDeps: [id]
|
|
1031
1076
|
}),
|
|
1032
|
-
baseInfoRes =
|
|
1033
|
-
var
|
|
1077
|
+
baseInfoRes = _useRequest25.data;
|
|
1078
|
+
var _useRequest26 = (0, _ahooks.useRequest)(function () {
|
|
1034
1079
|
return _request["default"].get('/cloud/device/sdk/device/info/deviceList', {
|
|
1035
1080
|
body: {
|
|
1036
1081
|
objectId: id
|
|
@@ -1039,7 +1084,7 @@ var facilityService = {
|
|
|
1039
1084
|
}, {
|
|
1040
1085
|
refreshDeps: [id]
|
|
1041
1086
|
}),
|
|
1042
|
-
data =
|
|
1087
|
+
data = _useRequest26.data;
|
|
1043
1088
|
var hasDevice = (data === null || data === void 0 ? void 0 : data.data) && (data === null || data === void 0 ? void 0 : data.data.length) > 0 ? true : false;
|
|
1044
1089
|
var info = baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data;
|
|
1045
1090
|
var baseInfo = [{
|
|
@@ -1312,12 +1357,12 @@ var facilityService = {
|
|
|
1312
1357
|
};
|
|
1313
1358
|
},
|
|
1314
1359
|
//工单统计
|
|
1315
|
-
UseCountAllType: function UseCountAllType(
|
|
1316
|
-
var id =
|
|
1317
|
-
startTime =
|
|
1318
|
-
endTime =
|
|
1319
|
-
timeType =
|
|
1320
|
-
var
|
|
1360
|
+
UseCountAllType: function UseCountAllType(_ref25) {
|
|
1361
|
+
var id = _ref25.id,
|
|
1362
|
+
startTime = _ref25.startTime,
|
|
1363
|
+
endTime = _ref25.endTime,
|
|
1364
|
+
timeType = _ref25.timeType;
|
|
1365
|
+
var _useRequest27 = (0, _ahooks.useRequest)(function () {
|
|
1321
1366
|
return _request["default"].post('/cloud/zhsw-sjgd/api/workOrderStatistics/countAllType', {
|
|
1322
1367
|
body: JSON.stringify({
|
|
1323
1368
|
facilityId: id,
|
|
@@ -1330,22 +1375,22 @@ var facilityService = {
|
|
|
1330
1375
|
}, {
|
|
1331
1376
|
refreshDeps: [id, startTime, endTime, timeType]
|
|
1332
1377
|
}),
|
|
1333
|
-
dataValue =
|
|
1378
|
+
dataValue = _useRequest27.data;
|
|
1334
1379
|
var orderStatistics = (dataValue === null || dataValue === void 0 ? void 0 : dataValue.data) || [];
|
|
1335
1380
|
return {
|
|
1336
1381
|
orderStatistics: orderStatistics
|
|
1337
1382
|
};
|
|
1338
1383
|
},
|
|
1339
1384
|
//工单统计
|
|
1340
|
-
UseOrderInfo: function UseOrderInfo(
|
|
1341
|
-
var id =
|
|
1342
|
-
param =
|
|
1343
|
-
YWJLCurrent =
|
|
1344
|
-
startTime =
|
|
1345
|
-
endTime =
|
|
1346
|
-
timeType =
|
|
1385
|
+
UseOrderInfo: function UseOrderInfo(_ref26) {
|
|
1386
|
+
var id = _ref26.id,
|
|
1387
|
+
param = _ref26.param,
|
|
1388
|
+
YWJLCurrent = _ref26.YWJLCurrent,
|
|
1389
|
+
startTime = _ref26.startTime,
|
|
1390
|
+
endTime = _ref26.endTime,
|
|
1391
|
+
timeType = _ref26.timeType;
|
|
1347
1392
|
var _a, _b, _c;
|
|
1348
|
-
var
|
|
1393
|
+
var _useRequest28 = (0, _ahooks.useRequest)(function () {
|
|
1349
1394
|
return _request["default"].post('/cloud/zhsw-sjgd/api/workOrderStatistics/countAllType', {
|
|
1350
1395
|
body: JSON.stringify({
|
|
1351
1396
|
facilityId: id,
|
|
@@ -1358,9 +1403,9 @@ var facilityService = {
|
|
|
1358
1403
|
}, {
|
|
1359
1404
|
refreshDeps: [id, startTime, endTime, timeType]
|
|
1360
1405
|
}),
|
|
1361
|
-
countAllType =
|
|
1406
|
+
countAllType = _useRequest28.data;
|
|
1362
1407
|
//table
|
|
1363
|
-
var
|
|
1408
|
+
var _useRequest29 = (0, _ahooks.useRequest)(function () {
|
|
1364
1409
|
return _request["default"].get('/cloud/zhxt/case/supervises/urge/record/allCasePage', {
|
|
1365
1410
|
body: Object.assign({
|
|
1366
1411
|
facilityId: id,
|
|
@@ -1375,7 +1420,7 @@ var facilityService = {
|
|
|
1375
1420
|
}, {
|
|
1376
1421
|
refreshDeps: [id, param, YWJLCurrent, startTime, endTime, timeType]
|
|
1377
1422
|
}),
|
|
1378
|
-
tableData =
|
|
1423
|
+
tableData = _useRequest29.data;
|
|
1379
1424
|
if ((countAllType === null || countAllType === void 0 ? void 0 : countAllType.data) && (tableData === null || tableData === void 0 ? void 0 : tableData.data)) {
|
|
1380
1425
|
var d = (countAllType === null || countAllType === void 0 ? void 0 : countAllType.data) || [];
|
|
1381
1426
|
var statusInfo = d.map(function (item) {
|
|
@@ -1409,10 +1454,10 @@ var facilityService = {
|
|
|
1409
1454
|
}
|
|
1410
1455
|
},
|
|
1411
1456
|
//缺陷
|
|
1412
|
-
UseFlaw: function UseFlaw(
|
|
1413
|
-
var code =
|
|
1457
|
+
UseFlaw: function UseFlaw(_ref27) {
|
|
1458
|
+
var code = _ref27.code;
|
|
1414
1459
|
var _a;
|
|
1415
|
-
var
|
|
1460
|
+
var _useRequest30 = (0, _ahooks.useRequest)(function () {
|
|
1416
1461
|
return _request["default"].get('/cloud/zhsw-psfw/api/cctv/flaw/getDetail', {
|
|
1417
1462
|
body: {
|
|
1418
1463
|
lineCode: code
|
|
@@ -1421,7 +1466,7 @@ var facilityService = {
|
|
|
1421
1466
|
}, {
|
|
1422
1467
|
refreshDeps: [code]
|
|
1423
1468
|
}),
|
|
1424
|
-
dataValue =
|
|
1469
|
+
dataValue = _useRequest30.data;
|
|
1425
1470
|
if (dataValue) {
|
|
1426
1471
|
var tableData = ((_a = dataValue === null || dataValue === void 0 ? void 0 : dataValue.data) === null || _a === void 0 ? void 0 : _a.thins) || [];
|
|
1427
1472
|
return {
|
|
@@ -1435,9 +1480,9 @@ var facilityService = {
|
|
|
1435
1480
|
};
|
|
1436
1481
|
}
|
|
1437
1482
|
},
|
|
1438
|
-
UseSynthesisScore: function UseSynthesisScore(
|
|
1439
|
-
var code =
|
|
1440
|
-
var
|
|
1483
|
+
UseSynthesisScore: function UseSynthesisScore(_ref28) {
|
|
1484
|
+
var code = _ref28.code;
|
|
1485
|
+
var _useRequest31 = (0, _ahooks.useRequest)(function () {
|
|
1441
1486
|
return _request["default"].get('/cloud/zhsw-psfw/api/lineHealth/getSynthesisScore', {
|
|
1442
1487
|
body: {
|
|
1443
1488
|
lineCode: code
|
|
@@ -1446,7 +1491,7 @@ var facilityService = {
|
|
|
1446
1491
|
}, {
|
|
1447
1492
|
refreshDeps: [code]
|
|
1448
1493
|
}),
|
|
1449
|
-
data =
|
|
1494
|
+
data = _useRequest31.data;
|
|
1450
1495
|
if (data) {
|
|
1451
1496
|
var score = {};
|
|
1452
1497
|
var max = 0;
|
|
@@ -1485,10 +1530,10 @@ var facilityService = {
|
|
|
1485
1530
|
};
|
|
1486
1531
|
}
|
|
1487
1532
|
},
|
|
1488
|
-
sewerage_user: function sewerage_user(
|
|
1489
|
-
var id =
|
|
1533
|
+
sewerage_user: function sewerage_user(_ref29) {
|
|
1534
|
+
var id = _ref29.id;
|
|
1490
1535
|
// 基本信息
|
|
1491
|
-
var
|
|
1536
|
+
var _useRequest32 = (0, _ahooks.useRequest)(function () {
|
|
1492
1537
|
return _request["default"].get('/cloud/zhsw-psfw/api/sewageUser/detail', {
|
|
1493
1538
|
body: {
|
|
1494
1539
|
id: id
|
|
@@ -1497,7 +1542,7 @@ var facilityService = {
|
|
|
1497
1542
|
}, {
|
|
1498
1543
|
refreshDeps: [id]
|
|
1499
1544
|
}),
|
|
1500
|
-
baseInfoRes =
|
|
1545
|
+
baseInfoRes = _useRequest32.data;
|
|
1501
1546
|
var info = baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data;
|
|
1502
1547
|
return {
|
|
1503
1548
|
info: info
|