@vtx/modals2 2.6.37 → 2.6.39
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/style/index.css +5 -1
- package/lib/style/themes/dark.css +5 -1
- package/lib/style/themes/dark.less +1 -0
- package/lib/style/themes/default.css +4 -1
- package/lib/style/themes/default.less +4 -1
- package/lib/style/themes/index.css +5 -1
- package/lib/vm-sub-tabs/index.js +1 -1
- package/lib/vm-sub-tabs/index.js.map +1 -1
- package/lib/vm-sub-tabs/style/index.css +6 -0
- package/lib/vm-sub-tabs/style/index.less +8 -0
- package/lib/vm-video/index.css +5 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.css +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.js +3 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/index.less +1 -1
- package/lib/vtx-car-modal/imgs/wcl_light.png +0 -0
- package/lib/vtx-car-modal/imgs/ysdw_light.png +0 -0
- package/lib/vtx-car-modal/imgs/ywcdw_light.png +0 -0
- package/lib/vtx-car-modal/style/index.css +5 -1
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +4 -8
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js.map +1 -1
- package/lib/vtx-cp-modal/imgs/all_rate_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/cy_rate_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/qt_rate_light.png +0 -0
- package/lib/vtx-cp-modal/imgs/yh_rate_light.png +0 -0
- package/lib/vtx-cp-modal/style/index.css +5 -1
- package/lib/vtx-default-modal/style/index.css +5 -1
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +9 -2
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js.map +1 -1
- package/lib/vtx-df-modal/style/index.css +5 -1
- package/lib/vtx-kh-modal/style/index.css +5 -1
- package/lib/vtx-road-modal/style/index.css +5 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.css +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.less +1 -1
- package/lib/vtx-staff-modal/style/index.css +5 -1
- package/lib/vtx-wr-modal/style/index.css +5 -1
- package/lib/vtx-zg-modal/style/index.css +5 -1
- package/package.json +5 -3
package/lib/style/index.css
CHANGED
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
|
|
18
21
|
--bg-color: white;
|
|
19
22
|
--sub-bg-color: #f3f3f380;
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
package/lib/vm-sub-tabs/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var SubTabs = function SubTabs(props) {
|
|
|
15
15
|
var _useSettings = (0, _useSettings3["default"])(),
|
|
16
16
|
theme = _useSettings.theme;
|
|
17
17
|
return /*#__PURE__*/_react["default"].createElement(_antd.Tabs, Object.assign({}, props, {
|
|
18
|
-
className: "vtx-sub-tabs ".concat(theme),
|
|
18
|
+
className: "vtx-sub-tabs ".concat(theme, " ").concat(props.ghost || ''),
|
|
19
19
|
type: "card"
|
|
20
20
|
}), props.children);
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["TabPane","Tabs","SubTabs","props","useSettings","theme","React","createElement","Object","assign","className","type","children","SubTabPane","subKey","ext","__rest","key","SubTabsLine"],"sources":["vm-sub-tabs/index.js"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { Tabs } from 'antd';\nimport React from 'react';\nimport useSettings from '../vm-hooks/useSettings';\nimport './style';\nconst { TabPane } = Tabs;\nconst SubTabs = (props) => {\n const { theme } = useSettings();\n return (React.createElement(Tabs, Object.assign({}, props, { className: `vtx-sub-tabs ${theme}`, type: \"card\" }), props.children));\n};\nexport const SubTabPane = (props) => {\n const { subKey, children } = props, ext = __rest(props, [\"subKey\", \"children\"]);\n return (React.createElement(TabPane, Object.assign({ key: subKey }, ext, { className: \"tab-pane\" }), children));\n};\nexport const SubTabsLine = (props) => {\n const { theme } = useSettings();\n return (React.createElement(Tabs, Object.assign({}, props, { className: `vtx-sub-tabs-line ${theme}` }), props.children));\n};\nexport default SubTabs;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAAiB;AACjB,IAAQA,OAAO,GAAKC,UAAI,CAAhBD,OAAO;AACf,IAAME,OAAO,GAAG,SAAVA,OAAO,CAAIC,KAAK,EAAK;EACvB,mBAAkB,IAAAC,wBAAW,GAAE;IAAvBC,KAAK,gBAALA,KAAK;EACb,oBAAQC,iBAAK,CAACC,aAAa,CAACN,UAAI,EAAEO,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEN,KAAK,EAAE;IAAEO,SAAS,yBAAkBL,KAAK,CAAE;
|
|
1
|
+
{"version":3,"file":"index.js","names":["TabPane","Tabs","SubTabs","props","useSettings","theme","React","createElement","Object","assign","className","ghost","type","children","SubTabPane","subKey","ext","__rest","key","SubTabsLine"],"sources":["vm-sub-tabs/index.js"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { Tabs } from 'antd';\nimport React from 'react';\nimport useSettings from '../vm-hooks/useSettings';\nimport './style';\nconst { TabPane } = Tabs;\nconst SubTabs = (props) => {\n const { theme } = useSettings();\n return (React.createElement(Tabs, Object.assign({}, props, { className: `vtx-sub-tabs ${theme} ${props.ghost || ''}`, type: \"card\" }), props.children));\n};\nexport const SubTabPane = (props) => {\n const { subKey, children } = props, ext = __rest(props, [\"subKey\", \"children\"]);\n return (React.createElement(TabPane, Object.assign({ key: subKey }, ext, { className: \"tab-pane\" }), children));\n};\nexport const SubTabsLine = (props) => {\n const { theme } = useSettings();\n return (React.createElement(Tabs, Object.assign({}, props, { className: `vtx-sub-tabs-line ${theme}` }), props.children));\n};\nexport default SubTabs;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAAiB;AACjB,IAAQA,OAAO,GAAKC,UAAI,CAAhBD,OAAO;AACf,IAAME,OAAO,GAAG,SAAVA,OAAO,CAAIC,KAAK,EAAK;EACvB,mBAAkB,IAAAC,wBAAW,GAAE;IAAvBC,KAAK,gBAALA,KAAK;EACb,oBAAQC,iBAAK,CAACC,aAAa,CAACN,UAAI,EAAEO,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEN,KAAK,EAAE;IAAEO,SAAS,yBAAkBL,KAAK,cAAIF,KAAK,CAACQ,KAAK,IAAI,EAAE,CAAE;IAAEC,IAAI,EAAE;EAAO,CAAC,CAAC,EAAET,KAAK,CAACU,QAAQ,CAAC;AAC1J,CAAC;AACM,IAAMC,UAAU,GAAG,SAAbA,UAAU,CAAIX,KAAK,EAAK;EACjC,IAAQY,MAAM,GAAeZ,KAAK,CAA1BY,MAAM;IAAEF,QAAQ,GAAKV,KAAK,CAAlBU,QAAQ;IAAYG,GAAG,GAAG,IAAAC,aAAM,EAACd,KAAK,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;EAC/E,oBAAQG,iBAAK,CAACC,aAAa,CAACP,OAAO,EAAEQ,MAAM,CAACC,MAAM,CAAC;IAAES,GAAG,EAAEH;EAAO,CAAC,EAAEC,GAAG,EAAE;IAAEN,SAAS,EAAE;EAAW,CAAC,CAAC,EAAEG,QAAQ,CAAC;AAClH,CAAC;AAAC;AACK,IAAMM,WAAW,GAAG,SAAdA,WAAW,CAAIhB,KAAK,EAAK;EAClC,oBAAkB,IAAAC,wBAAW,GAAE;IAAvBC,KAAK,iBAALA,KAAK;EACb,oBAAQC,iBAAK,CAACC,aAAa,CAACN,UAAI,EAAEO,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEN,KAAK,EAAE;IAAEO,SAAS,8BAAuBL,KAAK;EAAG,CAAC,CAAC,EAAEF,KAAK,CAACU,QAAQ,CAAC;AAC5H,CAAC;AAAC;AAAA,eACaX,OAAO;AAAA"}
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
.vtx-sub-tabs img {
|
|
10
10
|
margin: -2px 14px 0 0;
|
|
11
11
|
}
|
|
12
|
+
.vtx-sub-tabs.ghost {
|
|
13
|
+
--border: 1px solid #4eadfb;
|
|
14
|
+
--color: #1890ff;
|
|
15
|
+
--active-color: #fff;
|
|
16
|
+
--active-bg: linear-gradient(180deg, #62c1fd 0%, #1890ff 100%);
|
|
17
|
+
}
|
|
12
18
|
.vtx-sub-tabs.dark {
|
|
13
19
|
--border: 1px solid #95fff933;
|
|
14
20
|
--border-image: linear-gradient(180deg, #356178, #51e0ff) 1 1;
|
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
margin: -2px 14px 0 0;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
&.ghost {
|
|
14
|
+
--border: 1px solid #4eadfb;
|
|
15
|
+
|
|
16
|
+
--color: #1890ff;
|
|
17
|
+
--active-color: #fff;
|
|
18
|
+
--active-bg: linear-gradient(180deg, #62c1fd 0%, #1890ff 100%);
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
&.dark {
|
|
14
22
|
--border: 1px solid #95fff933;
|
|
15
23
|
--border-image: linear-gradient(180deg, #356178, #51e0ff) 1 1;
|
package/lib/vm-video/index.css
CHANGED
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -147,7 +147,8 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
147
147
|
baseActiveKey: key
|
|
148
148
|
});
|
|
149
149
|
},
|
|
150
|
-
activeKey: baseActiveKey
|
|
150
|
+
activeKey: baseActiveKey,
|
|
151
|
+
ghost: "ghost"
|
|
151
152
|
}, [{
|
|
152
153
|
name: '基本信息',
|
|
153
154
|
key: '1',
|
|
@@ -161,6 +162,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
161
162
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
162
163
|
className: "car-base-right-right"
|
|
163
164
|
}, /*#__PURE__*/_react["default"].createElement(_vmSubTabs["default"], {
|
|
165
|
+
ghost: "ghost",
|
|
164
166
|
onChange: function onChange(key) {
|
|
165
167
|
setState({
|
|
166
168
|
activeKey: key
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["BaseInfo","props","_a","_b","_c","_d","_e","id","baseInfo","info","useSettings","theme","isDark","useSetState","baseActiveKey","activeKey","date","moment","subtract","state","setState","BaseService","useTodayRun","format","todayRunRes","baseTabContent","React","createElement","style","marginTop","Base","data","gap","todayRun","TodayRun","alarmInfoGroupByType","items","wgfx","Wgfx","alarmGroupByType","workSummary","WorkSummary","alarmSum","title","subTabPanes","name","key","content","actionType","indexOf","WorkSummaryJxh","ZyfxJXH","TodayWorkJXH","ZyfxLJSY","TodayWorkLJSY","className","src","refresh","refreshLight","equipmentTime","position","positionLight","address","carStatusStr","Charts","Object","assign","SubTabs","onChange","map","ele","SubTabPane","subKey","tab","tabBarExtraContent","VMDatePicker","value","SubTitle"],"sources":["vtx-car-modal/components/BaseInfo/index.js"],"sourcesContent":["import React from 'react';\nimport { useSetState } from 'ahooks';\nimport moment from 'moment';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { VMDatePicker } from '../../../vm-filter';\nimport SubTitle from '../../../vm-sub-title';\nimport SubTabs, { SubTabPane } from '../../../vm-sub-tabs';\nimport Base from '../../../vm-info-collection';\nimport Charts from './Charts';\nimport TodayRun from './TodayRun';\nimport TodayWorkJXH from './TodayWorkJXH';\nimport TodayWorkLJSY from './TodayWorkLJSY';\nimport WorkSummary from './WorkSummary';\nimport WorkSummaryJxh from './WorkSummaryJxh';\nimport Wgfx from './Wgfx';\nimport ZyfxJXH from './ZyfxJXH';\nimport ZyfxLJSY from './ZyfxLJSY';\nimport { BaseService } from '../../api';\nimport './index.less';\nimport refresh from '../../imgs/refresh.png';\nimport position from '../../imgs/position.png';\nimport refreshLight from '../../imgs/refresh_light.png';\nimport positionLight from '../../imgs/position_light.png';\nconst BaseInfo = (props) => {\n var _a, _b, _c, _d, _e;\n const { id, baseInfo, info } = props;\n const { theme, isDark } = useSettings();\n const [state, setState] = useSetState({\n baseActiveKey: '1',\n activeKey: '1',\n date: moment().subtract(1, 'd'),\n });\n const { baseActiveKey, activeKey, date } = state;\n const { todayRunRes } = BaseService.useTodayRun(id, moment().format('2022-12-01'), moment().format('YYYY-MM-DD'));\n const baseTabContent = (React.createElement(\"div\", { style: { marginTop: '12px' } },\n React.createElement(Base, { data: baseInfo, gap: 18 })));\n let todayRun = React.createElement(TodayRun, { id: id, data: ((_a = todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.alarmInfoGroupByType) === null || _a === void 0 ? void 0 : _a.items) || [] });\n let wgfx = React.createElement(Wgfx, { data: ((_b = todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.alarmGroupByType) === null || _b === void 0 ? void 0 : _b.items) || [] });\n // 作业统计\n let workSummary = React.createElement(WorkSummary, { data: (todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.alarmSum) || {} });\n let title = '违规分析'; // 右下角标题\n let subTabPanes = [\n {\n name: '今日运行',\n key: '1',\n content: todayRun,\n },\n {\n name: '作业统计',\n key: '2',\n content: workSummary,\n },\n ];\n if (((_c = info === null || info === void 0 ? void 0 : info.actionType) === null || _c === void 0 ? void 0 : _c.indexOf('ACTION_JXH')) > -1) {\n workSummary = React.createElement(WorkSummaryJxh, { id: id, date: date });\n wgfx = React.createElement(ZyfxJXH, { id: id });\n title = '作业分析';\n subTabPanes = [\n {\n name: '今日作业',\n key: '1',\n content: React.createElement(TodayWorkJXH, { id: id }),\n },\n {\n name: '作业统计',\n key: '2',\n content: workSummary,\n },\n ];\n }\n if (((_d = info === null || info === void 0 ? void 0 : info.actionType) === null || _d === void 0 ? void 0 : _d.indexOf('ACTION_LJSY')) > -1) {\n wgfx = React.createElement(ZyfxLJSY, { id: id });\n title = '作业分析';\n subTabPanes = [\n {\n name: '今日作业',\n key: '1',\n content: React.createElement(TodayWorkLJSY, { id: id }),\n },\n ];\n }\n return (React.createElement(\"div\", { className: `car-base ${theme}` },\n React.createElement(\"div\", { className: \"car-base-left\" },\n React.createElement(\"div\", { className: \"car-base-left--text\" },\n React.createElement(\"img\", { src: isDark ? refresh : refreshLight }), info === null || info === void 0 ? void 0 :\n info.equipmentTime),\n React.createElement(\"div\", { className: \"car-base-left--text\" },\n React.createElement(\"img\", { src: isDark ? position : positionLight }), info === null || info === void 0 ? void 0 :\n info.address),\n React.createElement(\"div\", { className: \"car-base-left--online\" }, info === null || info === void 0 ? void 0 : info.carStatusStr),\n React.createElement(\"div\", { className: \"car-base-left--gif\" }),\n React.createElement(Charts, Object.assign({}, info))),\n React.createElement(\"div\", { className: \"car-base-right\" },\n React.createElement(\"div\", { className: \"car-base-right-base\" },\n React.createElement(SubTabs, { onChange: (key) => {\n setState({\n baseActiveKey: key,\n });\n }, activeKey: baseActiveKey }, [\n {\n name: '基本信息',\n key: '1',\n content: baseTabContent,\n },\n ].map((ele) => (React.createElement(SubTabPane, { subKey: ele.key, key: ele.key, tab: ele.name }, ele.content))))),\n React.createElement(\"div\", { className: \"car-base-right-right\" },\n React.createElement(SubTabs, { onChange: (key) => {\n setState({\n activeKey: key,\n });\n }, tabBarExtraContent: ((_e = info === null || info === void 0 ? void 0 : info.actionType) === null || _e === void 0 ? void 0 : _e.indexOf('ACTION_JXH')) > -1 && activeKey === '2' ? (React.createElement(VMDatePicker, { value: date, onChange: (date) => {\n setState({\n date,\n });\n } })) : null, activeKey: activeKey }, subTabPanes.map((ele) => (React.createElement(SubTabPane, { key: ele.key, subKey: ele.key, tab: ele.name }, ele.content))))),\n React.createElement(\"div\", { className: \"car-wgfx\" },\n React.createElement(SubTitle, { title: title }),\n React.createElement(\"div\", { className: \"car-wgfx-content\" }, wgfx)))));\n};\nexport default BaseInfo;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA0D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAC1D,IAAMA,QAAQ,GAAG,SAAXA,QAAQ,CAAIC,KAAK,EAAK;EACx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AQ,CAAC;UACLJ,IAAI,EAAJA;QACJ,CAAC,CAAC;MACN;IAAE,CAAC,CAAC,GAAI,IAAI;IAAED,SAAS,EAAEA;EAAU,CAAC,EAAE6B,WAAW,CAACyB,GAAG,CAAC,UAACC,GAAG;IAAA,oBAAM5C,iBAAK,CAACC,aAAa,CAAC4C,qBAAU,EAAE;MAAEzB,GAAG,EAAEwB,GAAG,CAACxB,GAAG;MAAE0B,MAAM,EAAEF,GAAG,CAACxB,GAAG;MAAE2B,GAAG,EAAEH,GAAG,CAACzB;IAAK,CAAC,EAAEyB,GAAG,CAACvB,OAAO,CAAC;EAAA,CAAC,CAAC,CAAC,CAAC,eAC9KrB,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAE4B,SAAS,EAAE;EAAW,CAAC,eAChD7B,iBAAK,CAACC,aAAa,CAACkD,sBAAQ,EAAE;IAAElC,KAAK,EAAEA;EAAM,CAAC,CAAC,eAC/CjB,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAE4B,SAAS,EAAE;EAAmB,CAAC,EAAElB,IAAI,CAAC,CAAC,CAAC,CAAC;AACtF,CAAC;AAAC,eACarC,QAAQ;AAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["BaseInfo","props","_a","_b","_c","_d","_e","id","baseInfo","info","useSettings","theme","isDark","useSetState","baseActiveKey","activeKey","date","moment","subtract","state","setState","BaseService","useTodayRun","format","todayRunRes","baseTabContent","React","createElement","style","marginTop","Base","data","gap","todayRun","TodayRun","alarmInfoGroupByType","items","wgfx","Wgfx","alarmGroupByType","workSummary","WorkSummary","alarmSum","title","subTabPanes","name","key","content","actionType","indexOf","WorkSummaryJxh","ZyfxJXH","TodayWorkJXH","ZyfxLJSY","TodayWorkLJSY","className","src","refresh","refreshLight","equipmentTime","position","positionLight","address","carStatusStr","Charts","Object","assign","SubTabs","onChange","ghost","map","ele","SubTabPane","subKey","tab","tabBarExtraContent","VMDatePicker","value","SubTitle"],"sources":["vtx-car-modal/components/BaseInfo/index.js"],"sourcesContent":["import React from 'react';\nimport { useSetState } from 'ahooks';\nimport moment from 'moment';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { VMDatePicker } from '../../../vm-filter';\nimport SubTitle from '../../../vm-sub-title';\nimport SubTabs, { SubTabPane } from '../../../vm-sub-tabs';\nimport Base from '../../../vm-info-collection';\nimport Charts from './Charts';\nimport TodayRun from './TodayRun';\nimport TodayWorkJXH from './TodayWorkJXH';\nimport TodayWorkLJSY from './TodayWorkLJSY';\nimport WorkSummary from './WorkSummary';\nimport WorkSummaryJxh from './WorkSummaryJxh';\nimport Wgfx from './Wgfx';\nimport ZyfxJXH from './ZyfxJXH';\nimport ZyfxLJSY from './ZyfxLJSY';\nimport { BaseService } from '../../api';\nimport './index.less';\nimport refresh from '../../imgs/refresh.png';\nimport position from '../../imgs/position.png';\nimport refreshLight from '../../imgs/refresh_light.png';\nimport positionLight from '../../imgs/position_light.png';\nconst BaseInfo = (props) => {\n var _a, _b, _c, _d, _e;\n const { id, baseInfo, info } = props;\n const { theme, isDark } = useSettings();\n const [state, setState] = useSetState({\n baseActiveKey: '1',\n activeKey: '1',\n date: moment().subtract(1, 'd'),\n });\n const { baseActiveKey, activeKey, date } = state;\n const { todayRunRes } = BaseService.useTodayRun(id, moment().format('2022-12-01'), moment().format('YYYY-MM-DD'));\n const baseTabContent = (React.createElement(\"div\", { style: { marginTop: '12px' } },\n React.createElement(Base, { data: baseInfo, gap: 18 })));\n let todayRun = React.createElement(TodayRun, { id: id, data: ((_a = todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.alarmInfoGroupByType) === null || _a === void 0 ? void 0 : _a.items) || [] });\n let wgfx = React.createElement(Wgfx, { data: ((_b = todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.alarmGroupByType) === null || _b === void 0 ? void 0 : _b.items) || [] });\n // 作业统计\n let workSummary = React.createElement(WorkSummary, { data: (todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.alarmSum) || {} });\n let title = '违规分析'; // 右下角标题\n let subTabPanes = [\n {\n name: '今日运行',\n key: '1',\n content: todayRun,\n },\n {\n name: '作业统计',\n key: '2',\n content: workSummary,\n },\n ];\n if (((_c = info === null || info === void 0 ? void 0 : info.actionType) === null || _c === void 0 ? void 0 : _c.indexOf('ACTION_JXH')) > -1) {\n workSummary = React.createElement(WorkSummaryJxh, { id: id, date: date });\n wgfx = React.createElement(ZyfxJXH, { id: id });\n title = '作业分析';\n subTabPanes = [\n {\n name: '今日作业',\n key: '1',\n content: React.createElement(TodayWorkJXH, { id: id }),\n },\n {\n name: '作业统计',\n key: '2',\n content: workSummary,\n },\n ];\n }\n if (((_d = info === null || info === void 0 ? void 0 : info.actionType) === null || _d === void 0 ? void 0 : _d.indexOf('ACTION_LJSY')) > -1) {\n wgfx = React.createElement(ZyfxLJSY, { id: id });\n title = '作业分析';\n subTabPanes = [\n {\n name: '今日作业',\n key: '1',\n content: React.createElement(TodayWorkLJSY, { id: id }),\n },\n ];\n }\n return (React.createElement(\"div\", { className: `car-base ${theme}` },\n React.createElement(\"div\", { className: \"car-base-left\" },\n React.createElement(\"div\", { className: \"car-base-left--text\" },\n React.createElement(\"img\", { src: isDark ? refresh : refreshLight }), info === null || info === void 0 ? void 0 :\n info.equipmentTime),\n React.createElement(\"div\", { className: \"car-base-left--text\" },\n React.createElement(\"img\", { src: isDark ? position : positionLight }), info === null || info === void 0 ? void 0 :\n info.address),\n React.createElement(\"div\", { className: \"car-base-left--online\" }, info === null || info === void 0 ? void 0 : info.carStatusStr),\n React.createElement(\"div\", { className: \"car-base-left--gif\" }),\n React.createElement(Charts, Object.assign({}, info))),\n React.createElement(\"div\", { className: \"car-base-right\" },\n React.createElement(\"div\", { className: \"car-base-right-base\" },\n React.createElement(SubTabs, { onChange: (key) => {\n setState({\n baseActiveKey: key,\n });\n }, activeKey: baseActiveKey, ghost: \"ghost\" }, [\n {\n name: '基本信息',\n key: '1',\n content: baseTabContent,\n },\n ].map((ele) => (React.createElement(SubTabPane, { subKey: ele.key, key: ele.key, tab: ele.name }, ele.content))))),\n React.createElement(\"div\", { className: \"car-base-right-right\" },\n React.createElement(SubTabs, { ghost: \"ghost\", onChange: (key) => {\n setState({\n activeKey: key,\n });\n }, tabBarExtraContent: ((_e = info === null || info === void 0 ? void 0 : info.actionType) === null || _e === void 0 ? void 0 : _e.indexOf('ACTION_JXH')) > -1 && activeKey === '2' ? (React.createElement(VMDatePicker, { value: date, onChange: (date) => {\n setState({\n date,\n });\n } })) : null, activeKey: activeKey }, subTabPanes.map((ele) => (React.createElement(SubTabPane, { key: ele.key, subKey: ele.key, tab: ele.name }, ele.content))))),\n React.createElement(\"div\", { className: \"car-wgfx\" },\n React.createElement(SubTitle, { title: title }),\n React.createElement(\"div\", { className: \"car-wgfx-content\" }, wgfx)))));\n};\nexport default BaseInfo;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA0D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAC1D,IAAMA,QAAQ,GAAG,SAAXA,QAAQ,CAAIC,KAAK,EAAK;EACxB,IAAIC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE;EACtB,IAAQC,EAAE,GAAqBN,KAAK,CAA5BM,EAAE;IAAEC,QAAQ,GAAWP,KAAK,CAAxBO,QAAQ;IAAEC,IAAI,GAAKR,KAAK,CAAdQ,IAAI;EAC1B,mBAA0B,IAAAC,wBAAW,GAAE;IAA/BC,KAAK,gBAALA,KAAK;IAAEC,MAAM,gBAANA,MAAM;EACrB,mBAA0B,IAAAC,mBAAW,EAAC;MAClCC,aAAa,EAAE,GAAG;MAClBC,SAAS,EAAE,GAAG;MACdC,IAAI,EAAE,IAAAC,kBAAM,GAAE,CAACC,QAAQ,CAAC,CAAC,EAAE,G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,CAAC,CAAC,CAAC,eAC9KrB,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAE4B,SAAS,EAAE;EAAW,CAAC,eAChD7B,iBAAK,CAACC,aAAa,CAACmD,sBAAQ,EAAE;IAAEnC,KAAK,EAAEA;EAAM,CAAC,CAAC,eAC/CjB,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAE4B,SAAS,EAAE;EAAmB,CAAC,EAAElB,IAAI,CAAC,CAAC,CAAC,CAAC;AACtF,CAAC;AAAC,eACarC,QAAQ;AAAA"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -25,7 +25,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
25
25
|
function TodayWork(props) {
|
|
26
26
|
var data = props.data;
|
|
27
27
|
var _useSettings = (0, _useSettings2["default"])(),
|
|
28
|
-
theme = _useSettings.theme
|
|
28
|
+
theme = _useSettings.theme,
|
|
29
|
+
isDark = _useSettings.isDark;
|
|
29
30
|
var blockItem = function blockItem(title, value, unit) {
|
|
30
31
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
32
|
className: "twork--item-block-item"
|
|
@@ -59,39 +60,34 @@ function TodayWork(props) {
|
|
|
59
60
|
'0%': '#BFFFE8',
|
|
60
61
|
'100%': '#37D3B0'
|
|
61
62
|
};
|
|
62
|
-
src = _all_rate["default"];
|
|
63
63
|
break;
|
|
64
64
|
case '其他垃圾':
|
|
65
65
|
strokeColor = {
|
|
66
66
|
'0%': '#EC982B',
|
|
67
67
|
'100%': '#FFE49A'
|
|
68
68
|
};
|
|
69
|
-
src = _qt_rate["default"];
|
|
70
69
|
break;
|
|
71
70
|
case '厨余垃圾':
|
|
72
71
|
strokeColor = {
|
|
73
72
|
'0%': '#62C1FD',
|
|
74
73
|
'100%': '#3E9DF9'
|
|
75
74
|
};
|
|
76
|
-
src = _cy_rate["default"];
|
|
77
75
|
break;
|
|
78
76
|
case '有害垃圾':
|
|
79
77
|
strokeColor = {
|
|
80
78
|
'0%': '#FFA793',
|
|
81
79
|
'100%': '#FF6770'
|
|
82
80
|
};
|
|
83
|
-
src = _yh_rate["default"];
|
|
84
81
|
break;
|
|
85
82
|
default:
|
|
86
83
|
strokeColor = {
|
|
87
84
|
'0%': '#EC982B',
|
|
88
85
|
'100%': '#FFE49A'
|
|
89
86
|
};
|
|
90
|
-
src = _qt_rate["default"];
|
|
91
87
|
break;
|
|
92
88
|
}
|
|
93
89
|
return {
|
|
94
|
-
strokeColor: strokeColor,
|
|
90
|
+
strokeColor: isDark ? strokeColor : '#00AA64',
|
|
95
91
|
src: src
|
|
96
92
|
};
|
|
97
93
|
};
|
|
@@ -114,7 +110,7 @@ function TodayWork(props) {
|
|
|
114
110
|
strokeLinecap: "butt",
|
|
115
111
|
percent: item.rate,
|
|
116
112
|
strokeColor: strokeColor,
|
|
117
|
-
trailColor:
|
|
113
|
+
trailColor: isDark ? '#444B59' : '#D2D2D2',
|
|
118
114
|
strokeWidth: 6,
|
|
119
115
|
showInfo: false
|
|
120
116
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TodayWork.js","names":["TodayWork","props","data","useSettings","theme","blockItem","title","value","unit","React","createElement","className","img","dark","全部","allRate","其他垃圾","qtRate","厨余垃圾","cyRate","有害垃圾","yhRate","light","allRateLight","qtRateLight","cyRateLight","yhRateLight","getValue","name","strokeColor","src","Array","isArray","map","item","index","productTypeName","key","rate","Progress","strokeLinecap","percent","trailColor","strokeWidth","showInfo","planCollectNums","collectNum","bucketNum","weight","NoData"],"sources":["vtx-cp-modal/components/BaseInfo/TodayWork.js"],"sourcesContent":["/**\n * 收集点-总览信息-收运规则\n */\nimport Progress from 'antd/es/progress';\nimport React from 'react';\nimport NoData from '../../../vm-nodata';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport './index.less';\nimport allRate from '../../imgs/all_rate.png';\nimport cyRate from '../../imgs/cy_rate.png';\nimport qtRate from '../../imgs/qt_rate.png';\nimport yhRate from '../../imgs/yh_rate.png';\nimport allRateLight from '../../imgs/all_rate_light.png';\nimport cyRateLight from '../../imgs/cy_rate_light.png';\nimport qtRateLight from '../../imgs/qt_rate_light.png';\nimport yhRateLight from '../../imgs/yh_rate_light.png';\nexport default function TodayWork(props) {\n const { data } = props;\n const { theme } = useSettings();\n const blockItem = (title, value, unit) => (React.createElement(\"div\", { className: \"twork--item-block-item\" },\n React.createElement(\"div\", null, title),\n React.createElement(\"div\", { className: \"twork--item-block-item-value\" },\n React.createElement(\"span\", null, value || 0),\n unit)));\n const img = {\n dark: {\n 全部: allRate,\n 其他垃圾: qtRate,\n 厨余垃圾: cyRate,\n 有害垃圾: yhRate,\n },\n light: {\n 全部: allRateLight,\n 其他垃圾: qtRateLight,\n 厨余垃圾: cyRateLight,\n 有害垃圾: yhRateLight,\n },\n };\n const getValue = (name) => {\n let strokeColor = {\n '0%': '#BFFFE8',\n '100%': '#37D3B0',\n };\n let src = img[theme][name] || img[theme]['其他垃圾'];\n switch (name) {\n case '全部':\n strokeColor = {\n '0%': '#BFFFE8',\n '100%': '#37D3B0',\n };\n
|
|
1
|
+
{"version":3,"file":"TodayWork.js","names":["TodayWork","props","data","useSettings","theme","isDark","blockItem","title","value","unit","React","createElement","className","img","dark","全部","allRate","其他垃圾","qtRate","厨余垃圾","cyRate","有害垃圾","yhRate","light","allRateLight","qtRateLight","cyRateLight","yhRateLight","getValue","name","strokeColor","src","Array","isArray","map","item","index","productTypeName","key","rate","Progress","strokeLinecap","percent","trailColor","strokeWidth","showInfo","planCollectNums","collectNum","bucketNum","weight","NoData"],"sources":["vtx-cp-modal/components/BaseInfo/TodayWork.js"],"sourcesContent":["/**\n * 收集点-总览信息-收运规则\n */\nimport Progress from 'antd/es/progress';\nimport React from 'react';\nimport NoData from '../../../vm-nodata';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport './index.less';\nimport allRate from '../../imgs/all_rate.png';\nimport cyRate from '../../imgs/cy_rate.png';\nimport qtRate from '../../imgs/qt_rate.png';\nimport yhRate from '../../imgs/yh_rate.png';\nimport allRateLight from '../../imgs/all_rate_light.png';\nimport cyRateLight from '../../imgs/cy_rate_light.png';\nimport qtRateLight from '../../imgs/qt_rate_light.png';\nimport yhRateLight from '../../imgs/yh_rate_light.png';\nexport default function TodayWork(props) {\n const { data } = props;\n const { theme, isDark } = useSettings();\n const blockItem = (title, value, unit) => (React.createElement(\"div\", { className: \"twork--item-block-item\" },\n React.createElement(\"div\", null, title),\n React.createElement(\"div\", { className: \"twork--item-block-item-value\" },\n React.createElement(\"span\", null, value || 0),\n unit)));\n const img = {\n dark: {\n 全部: allRate,\n 其他垃圾: qtRate,\n 厨余垃圾: cyRate,\n 有害垃圾: yhRate,\n },\n light: {\n 全部: allRateLight,\n 其他垃圾: qtRateLight,\n 厨余垃圾: cyRateLight,\n 有害垃圾: yhRateLight,\n },\n };\n const getValue = (name) => {\n let strokeColor = {\n '0%': '#BFFFE8',\n '100%': '#37D3B0',\n };\n let src = img[theme][name] || img[theme]['其他垃圾'];\n switch (name) {\n case '全部':\n strokeColor = {\n '0%': '#BFFFE8',\n '100%': '#37D3B0',\n };\n break;\n case '其他垃圾':\n strokeColor = {\n '0%': '#EC982B',\n '100%': '#FFE49A',\n };\n break;\n case '厨余垃圾':\n strokeColor = {\n '0%': '#62C1FD',\n '100%': '#3E9DF9',\n };\n break;\n case '有害垃圾':\n strokeColor = {\n '0%': '#FFA793',\n '100%': '#FF6770',\n };\n break;\n default:\n strokeColor = {\n '0%': '#EC982B',\n '100%': '#FFE49A',\n };\n break;\n }\n return { strokeColor: isDark ? strokeColor : '#00AA64', src };\n };\n return (React.createElement(\"div\", { className: \"twork\" }, Array.isArray(data) ? (data.map((item, index) => {\n const { strokeColor, src } = getValue(item === null || item === void 0 ? void 0 : item.productTypeName);\n return (React.createElement(\"div\", { className: \"twork--item\", key: index },\n React.createElement(\"div\", null,\n React.createElement(\"img\", { src: src })),\n React.createElement(\"div\", { className: \"twork--item-progress\" },\n React.createElement(\"div\", null, item === null || item === void 0 ? void 0 :\n item.productTypeName,\n \"\\u5B8C\\u6210\\u7387\\uFF1A\",\n item.rate || 0,\n \"%\"),\n React.createElement(\"div\", { className: \"twork--item-progress-bg\" },\n React.createElement(Progress, { strokeLinecap: \"butt\", percent: item.rate, strokeColor: strokeColor, trailColor: isDark ? '#444B59' : '#D2D2D2', strokeWidth: 6, showInfo: false }))),\n React.createElement(\"div\", { className: \"twork--item-block\" },\n blockItem('应收次数', item === null || item === void 0 ? void 0 : item.planCollectNums, '次'),\n blockItem('实收次数', item === null || item === void 0 ? void 0 : item.collectNum, '次'),\n blockItem('收集桶数', item === null || item === void 0 ? void 0 : item.bucketNum, '桶'),\n blockItem('收集重量', item === null || item === void 0 ? void 0 : item.weight, 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AE6B,IAAI,KAAK,IAAI,IAAIA,IAAI,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,IAAI,CAACc,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;EAC9F,CAAC,CAAC,gBAAKvC,iBAAK,CAACC,aAAa,CAACuC,oBAAM,EAAE,IAAI,CAAE,CAAC;AAC9C"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -9,9 +9,12 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _vmTable = _interopRequireDefault(require("../../../vm-table"));
|
|
10
10
|
var _vmSubTitle = _interopRequireDefault(require("../../../vm-sub-title"));
|
|
11
11
|
var _api = require("../../api");
|
|
12
|
+
var _vmNodata = _interopRequireDefault(require("../../../vm-nodata"));
|
|
13
|
+
var _useSettings2 = _interopRequireDefault(require("../../../vm-hooks/useSettings"));
|
|
12
14
|
var _alarm = _interopRequireDefault(require("../../imgs/alarm.png"));
|
|
13
15
|
var _normal = _interopRequireDefault(require("../../imgs/normal.png"));
|
|
14
|
-
var
|
|
16
|
+
var _alarm_light = _interopRequireDefault(require("../../imgs/alarm_light.png"));
|
|
17
|
+
var _normal_light = _interopRequireDefault(require("../../imgs/normal_light.png"));
|
|
15
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
19
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -24,6 +27,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
24
27
|
function RealtimeMonitor(_ref) {
|
|
25
28
|
var code = _ref.code;
|
|
26
29
|
var _a;
|
|
30
|
+
var _useSettings = (0, _useSettings2["default"])(),
|
|
31
|
+
isDark = _useSettings.isDark;
|
|
27
32
|
var _BaseService$useRealt = _api.BaseService.useRealtime(code),
|
|
28
33
|
realtimeRes = _BaseService$useRealt.realtimeRes;
|
|
29
34
|
var _useState = (0, _react.useState)(0),
|
|
@@ -65,6 +70,8 @@ function RealtimeMonitor(_ref) {
|
|
|
65
70
|
paganitation: false,
|
|
66
71
|
dataSource: (realtimeRes === null || realtimeRes === void 0 ? void 0 : realtimeRes.length) > 0 ? (_a = realtimeRes[active]) === null || _a === void 0 ? void 0 : _a.values : []
|
|
67
72
|
};
|
|
73
|
+
var alarmImg = isDark ? _alarm["default"] : _alarm_light["default"];
|
|
74
|
+
var normalImg = isDark ? _normal["default"] : _normal_light["default"];
|
|
68
75
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
76
|
className: "base-bottom--right"
|
|
70
77
|
}, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
|
|
@@ -92,7 +99,7 @@ function RealtimeMonitor(_ref) {
|
|
|
92
99
|
setActive(index);
|
|
93
100
|
}
|
|
94
101
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
95
|
-
src: flag ?
|
|
102
|
+
src: flag ? alarmImg : normalImg
|
|
96
103
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
104
|
className: "df-monitor-head-item-right"
|
|
98
105
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RealtimeMonitor.js","names":["RealtimeMonitor","code","_a","BaseService","useRealtime","realtimeRes","useState","active","setActive","columns","title","dataIndex","key","render","text","record","React","createElement","style","color","beenAlarm","unit","tableProps","height","paganitation","dataSource","length","values","className","SubTitle","map","item","index","flag","forEach","ele","onClick","src","
|
|
1
|
+
{"version":3,"file":"RealtimeMonitor.js","names":["RealtimeMonitor","code","_a","useSettings","isDark","BaseService","useRealtime","realtimeRes","useState","active","setActive","columns","title","dataIndex","key","render","text","record","React","createElement","style","color","beenAlarm","unit","tableProps","height","paganitation","dataSource","length","values","alarmImg","alarm","alarmLight","normalImg","normal","normalLight","className","SubTitle","map","item","index","flag","forEach","ele","onClick","src","deviceName","furnaceTemperature","VMTable","Object","assign","isIndex","rowKey","NoData"],"sources":["vtx-df-modal/components/BaseInfo/RealtimeMonitor.js"],"sourcesContent":["/**\n * 指标实时监测\n */\nimport React, { useState } from 'react';\nimport VMTable from '../../../vm-table';\nimport SubTitle from '../../../vm-sub-title';\nimport { BaseService } from '../../api';\nimport NoData from '../../../vm-nodata';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport alarm from '../../imgs/alarm.png';\nimport normal from '../../imgs/normal.png';\nimport alarmLight from '../../imgs/alarm_light.png';\nimport normalLight from '../../imgs/normal_light.png';\nexport default function RealtimeMonitor({ code }) {\n var _a;\n const { isDark } = useSettings();\n const { realtimeRes } = BaseService.useRealtime(code);\n const [active, setActive] = useState(0);\n const columns = [\n {\n title: '监测项',\n dataIndex: 'monitorItemName',\n key: 'monitorItemName',\n },\n {\n title: '检测值',\n dataIndex: 'value',\n key: 'value',\n render: (text, record) => {\n return (React.createElement(\"span\", { style: { color: (record === null || record === void 0 ? void 0 : record.beenAlarm) && '#fd3a15' } }, text ? `${text}${(record === null || record === void 0 ? void 0 : record.unit) || ''}` : '-'));\n },\n },\n {\n title: '欧标',\n dataIndex: 'europeValue',\n key: 'europeValue',\n render: (text) => {\n return text ? text : '-';\n },\n },\n {\n title: '国标',\n dataIndex: 'standardValue',\n key: 'standardValue',\n render: (text) => {\n return text ? text : '-';\n },\n },\n ];\n const tableProps = {\n height: 200,\n paganitation: false,\n dataSource: (realtimeRes === null || realtimeRes === void 0 ? void 0 : realtimeRes.length) > 0 ? (_a = realtimeRes[active]) === null || _a === void 0 ? void 0 : _a.values : [],\n };\n const alarmImg = isDark ? alarm : alarmLight;\n const normalImg = isDark ? normal : normalLight;\n return (React.createElement(\"div\", { className: \"base-bottom--right\" },\n React.createElement(SubTitle, { title: \"\\u6307\\u6807\\u5B9E\\u65F6\\u76D1\\u6D4B\" }),\n React.createElement(\"div\", { className: \"base-bottom--right-content\" }, (realtimeRes === null || realtimeRes === void 0 ? void 0 : realtimeRes.length) > 0 ? (React.createElement(\"div\", { className: \"df-monitor\" },\n React.createElement(\"div\", { className: \"df-monitor-head\" }, realtimeRes.map((item, index) => {\n var _a;\n let flag = false;\n if (((_a = item.values) === null || _a === void 0 ? void 0 : _a.length) > 0) {\n item.values.forEach((ele) => {\n if (ele.beenAlarm) {\n flag = true;\n }\n });\n }\n return (React.createElement(\"div\", { className: `df-monitor-head-item ${active === index &&\n 'active'}`, key: index, onClick: () => {\n setActive(index);\n } },\n React.createElement(\"img\", { src: flag ? alarmImg : normalImg }),\n React.createElement(\"div\", { className: \"df-monitor-head-item-right\" },\n React.createElement(\"div\", { className: \"df-monitor-head-item-right-name\" }, item.deviceName),\n React.createElement(\"div\", { className: `df-monitor-head-item-right-${flag ? 'valueAlarm' : 'valueNormal'}` },\n React.createElement(\"span\", null, item.furnaceTemperature),\n \"\\u2103\"))));\n })),\n React.createElement(\"div\", { className: \"df-monitor-table\" },\n React.createElement(VMTable, Object.assign({ columns: columns, isIndex: false, rowKey: \"factorId\" }, tableProps))))) : (React.createElement(NoData, null)))));\n}\n"],"mappings":";;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAsD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACvC,SAASA,eAAe,OAAW;EAAA,IAARC,IAAI,QAAJA,IAAI;EAC1C,IAAIC,EAAE;EACN,mBAAmB,IAAAC,wBAAW,GAAE;IAAxBC,MAAM,gBAANA,MAAM;EACd,4BAAwBC,gBAAW,CAACC,WAAW,CAACL,IAAI,CAAC;IAA7CM,WAAW,yBAAXA,WAAW;EACnB,gBAA4B,IAAAC,eAAQ,EAAC,CAAC,CAAC;IAAA;IAAhCC,MAAM;IAAEC,SAAS;EACxB,IAAMC,OAAO,GAAG,CACZ;IACIC,KAAK,EAAE,KAAK;IACZC,SAAS,EAAE,iBAAiB;IAC5BC,GAAG,EAAE;EACT,CAAC,EACD;IACIF,KAAK,EAAE,KAAK;IACZC,SAAS,EAAE,OAAO;IAClBC,GAAG,EAAE,OAAO;IACZC,MAAM,EAAE,gBAACC,IAAI,EAAEC,MAAM,EAAK;MACtB,oBAAQC,iBAAK,CAACC,aAAa,CAAC,MAAM,EAAE;QAAEC,KAAK,EAAE;UAAEC,KAAK,EAAE,CAACJ,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,MAAM,CAACK,SAAS,KAAK;QAAU;MAAE,CAAC,EAAEN,IAAI,aAAMA,IAAI,SAAG,CAACC,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,MAAM,CAACM,IAAI,KAAK,EAAE,IAAK,GAAG,CAAC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AAG,aAAa;IAAG,CAAC,eACzGvB,iBAAK,CAACC,aAAa,CAAC,MAAM,EAAE,IAAI,EAAEoB,IAAI,CAACQ,kBAAkB,CAAC,EAC1D,QAAQ,CAAC,CAAC,CAAC;EAC3B,CAAC,CAAC,CAAC,eACH7B,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEiB,SAAS,EAAE;EAAmB,CAAC,eACxDlB,iBAAK,CAACC,aAAa,CAAC6B,mBAAO,EAAEC,MAAM,CAACC,MAAM,CAAC;IAAEvC,OAAO,EAAEA,OAAO;IAAEwC,OAAO,EAAE,KAAK;IAAEC,MAAM,EAAE;EAAW,CAAC,EAAE5B,UAAU,CAAC,CAAC,CAAC,CAAC,gBAAKN,iBAAK,CAACC,aAAa,CAACkC,oBAAM,EAAE,IAAI,CAAE,CAAC,CAAC;AAC5K"}
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
--title-color: #222;
|
|
9
9
|
--title-color2: #222;
|
|
10
10
|
--block-bg-color: rgba(0, 0, 0, 0.1);
|
|
11
|
+
--block-bg-color2: #1890ff;
|
|
11
12
|
--calendar-border: #ececec;
|
|
12
13
|
--calendar-thead-bg: #fff;
|
|
13
14
|
--calendar-bg: #fff;
|
|
14
15
|
--info-danger: #fd3a15;
|
|
15
16
|
--info-warnning: #f7d93d;
|
|
16
|
-
--info-
|
|
17
|
+
--info-active: #222;
|
|
18
|
+
--info-active2: #fff;
|
|
19
|
+
--info-active3: #fff;
|
|
17
20
|
--bg-color: white;
|
|
18
21
|
--sub-bg-color: #f3f3f380;
|
|
19
22
|
--title-bg-color: white;
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--block-bg-color2: rgba(48, 118, 114, 0.2);
|
|
71
74
|
--info-active: #40ffd3;
|
|
72
75
|
--info-active2: #52c41a;
|
|
76
|
+
--info-active3: #40ffd3;
|
|
73
77
|
--info-danger: #fd3a15;
|
|
74
78
|
--info-warnning: #f7d93d;
|
|
75
79
|
--table-head-bg: rgba(0, 173, 177, 0.1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtx/modals2",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.39",
|
|
4
4
|
"description": "业务弹窗库",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
],
|
|
9
9
|
"types": "lib/typings.d.ts",
|
|
10
10
|
"main": "lib/index.js",
|
|
11
|
-
"files": [
|
|
11
|
+
"files": [
|
|
12
|
+
"lib"
|
|
13
|
+
],
|
|
12
14
|
"scripts": {
|
|
13
15
|
"start": "dumi dev",
|
|
14
16
|
"build": "dumi build",
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
"@ant-design/icons": "4.7.0",
|
|
43
45
|
"@vtx/components": "3.1.31",
|
|
44
46
|
"@vtx/map": "latest",
|
|
45
|
-
"@vtx/player": "^1.
|
|
47
|
+
"@vtx/player": "^1.2.10",
|
|
46
48
|
"@vtx/utils": "latest",
|
|
47
49
|
"ahooks": "^2.9.6",
|
|
48
50
|
"antd": "4.24.4",
|