@vtx/modals2 2.15.42 → 2.15.45
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/README.md +33 -33
- package/lib/style/index.less +8 -8
- package/lib/style/themes/dark.less +124 -124
- package/lib/style/themes/index.less +1 -1
- package/lib/vm-alarm-info/Components/index.less +43 -43
- package/lib/vm-alarm-info/style/index.less +16 -16
- package/lib/vm-alarm-situation/style/index.less +67 -67
- package/lib/vm-alarm-situation-pt/style/index.less +65 -65
- package/lib/vm-analysis-comparison/style/index.less +12 -12
- package/lib/vm-appraisal-info/style/index.less +136 -136
- package/lib/vm-base-list/style/index.less +39 -39
- package/lib/vm-button/style/index.less +20 -20
- package/lib/vm-charts/index.less +30 -30
- package/lib/vm-checkbox/style/index.less +25 -25
- package/lib/vm-container/style/index.less +30 -30
- package/lib/vm-correlation-comparison/style/index.less +13 -13
- package/lib/vm-custom/style/index.less +20 -20
- package/lib/vm-empty/style/index.less +23 -23
- package/lib/vm-iframe-modal/style/index.less +9 -9
- package/lib/vm-image-text/style/index.less +32 -32
- package/lib/vm-map/index.js +1 -1
- package/lib/vm-map/index.js.map +1 -1
- package/lib/vm-map/style/index.less +3 -3
- package/lib/vm-modal-table/style/index.less +23 -23
- package/lib/vm-radio/style/index.less +26 -26
- package/lib/vm-real-time-monitor/style/index.less +12 -12
- package/lib/vm-repair-maintain/style/index.less +115 -115
- package/lib/vm-round-content/style/index.less +33 -33
- package/lib/vm-select-device/style/index.less +16 -16
- package/lib/vm-sub-tabs/style/index.less +179 -179
- package/lib/vm-sub-title/style/index.less +68 -68
- package/lib/vm-video/index.less +36 -36
- package/lib/vtx-base-info/style/index.less +66 -66
- package/lib/vtx-base-modal/style/index.less +1075 -1075
- package/lib/vtx-car-modal/components/AlarmInfo/index.less +40 -40
- package/lib/vtx-car-modal/components/BaseInfo/index.less +290 -290
- package/lib/vtx-car-modal/components/Collection/index.less +18 -18
- package/lib/vtx-car-modal/components/DetailInfo/index.less +21 -21
- package/lib/vtx-car-modal/components/Maintenance/index.less +35 -35
- package/lib/vtx-car-modal/components/OilConsumption/index.less +39 -39
- package/lib/vtx-car-modal/components/StaticInfo/index.less +82 -82
- package/lib/vtx-car-modal/components/WaterConsumption/index.less +25 -25
- package/lib/vtx-car-modal/components/WorkInfo/index.less +66 -66
- package/lib/vtx-car-modal/style/index.less +8 -8
- package/lib/vtx-cc-cp-modal/components/OrderInfo/index.less +108 -108
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.less +46 -46
- package/lib/vtx-cc-cp-modal/style/index.less +1 -1
- package/lib/vtx-cc-unit-modal/style/index.less +1 -1
- package/lib/vtx-cp-modal/components/AlarmInfo/index.less +109 -109
- package/lib/vtx-cp-modal/components/BaseInfo/index.less +156 -156
- package/lib/vtx-cp-modal/components/ExeceptionInfo/index.less +109 -109
- package/lib/vtx-cp-modal/components/SyInfo/index.less +47 -47
- package/lib/vtx-cp-modal/style/index.less +1 -1
- package/lib/vtx-default-modal/api.js +1 -1
- package/lib/vtx-default-modal/api.js.map +1 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.less +38 -38
- package/lib/vtx-default-modal/style/index.less +1 -1
- package/lib/vtx-df-modal/components/BaseInfo/index.less +173 -173
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +1 -0
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js.map +1 -1
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +1 -0
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js.map +1 -1
- package/lib/vtx-df-modal/components/Metering/index.less +83 -83
- package/lib/vtx-df-modal/components/WorkCondition/index.less +136 -136
- package/lib/vtx-df-modal/style/index.less +1 -1
- package/lib/vtx-facility-modal/components/OverView/index.less +120 -120
- package/lib/vtx-facility-modal/style/index.less +1 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +66 -66
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +256 -256
- package/lib/vtx-housing-estate-modal/components/SPJK/index.less +6 -6
- package/lib/vtx-housing-estate-modal/components/TFRD/index.less +15 -15
- package/lib/vtx-housing-estate-modal/components/WGGS/index.less +38 -38
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +102 -102
- package/lib/vtx-housing-estate-modal/style/index.less +1 -1
- package/lib/vtx-kh-modal/components/BaseInfo/index.less +66 -66
- package/lib/vtx-kh-modal/style/index.less +1 -1
- package/lib/vtx-pump-modal/components/AlarmRecord/index.less +103 -103
- package/lib/vtx-pump-modal/components/Basic/index.less +74 -74
- package/lib/vtx-pump-modal/components/Sbxl/index.less +90 -90
- package/lib/vtx-pump-modal/components/Sjfx/index.less +60 -60
- package/lib/vtx-pump-modal/components/Sxyx/index.less +161 -161
- package/lib/vtx-pump-modal/style/index.less +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/index.less +35 -35
- package/lib/vtx-restaurant-modal/components/Collection/index.less +29 -29
- package/lib/vtx-restaurant-modal/style/index.less +1 -1
- package/lib/vtx-road-modal/components/BaseInfo/index.less +146 -146
- package/lib/vtx-road-modal/components/Statistical/index.less +112 -112
- package/lib/vtx-road-modal/style/index.less +1 -1
- package/lib/vtx-staff-modal/components/AlarmInfo/index.less +23 -23
- package/lib/vtx-staff-modal/components/Attendance/index.less +22 -22
- package/lib/vtx-staff-modal/components/BaseInfo/index.less +158 -158
- package/lib/vtx-staff-modal/components/DetailInfo/index.less +38 -38
- package/lib/vtx-staff-modal/components/Equipment/index.less +28 -28
- package/lib/vtx-staff-modal/style/index.less +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/index.less +69 -69
- package/lib/vtx-throw-point-modal/components/OverView/index.less +331 -331
- package/lib/vtx-throw-point-modal/components/SBZJ/index.less +92 -92
- package/lib/vtx-throw-point-modal/components/TFRD/index.less +15 -15
- package/lib/vtx-throw-point-modal/components/WGGS/index.less +38 -38
- package/lib/vtx-throw-point-modal/components/WGXW/index.less +102 -102
- package/lib/vtx-throw-point-modal/style/index.less +1 -1
- package/lib/vtx-wr-modal/components/AlarmInfo/index.less +106 -106
- package/lib/vtx-wr-modal/components/BaseInfo/index.less +142 -142
- package/lib/vtx-wr-modal/components/BaseInfoNew/index.less +570 -570
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Alarm.js +10 -6
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Alarm.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Jbxx.js +5 -2
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Jbxx.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Jcbj.js +5 -2
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Jcbj.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Monitor.js +38 -15
- package/lib/vtx-wr-modal/components/BaseInfoNew2/components/Monitor.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew2/index.css +144 -0
- package/lib/vtx-wr-modal/components/BaseInfoNew2/index.js +7 -3
- package/lib/vtx-wr-modal/components/BaseInfoNew2/index.js.map +1 -1
- package/lib/vtx-wr-modal/components/BaseInfoNew2/index.less +461 -323
- package/lib/vtx-wr-modal/components/Evaluate/index.less +124 -124
- package/lib/vtx-wr-modal/components/Monitor/index.less +82 -82
- package/lib/vtx-wr-modal/components/Score/index.less +134 -134
- package/lib/vtx-wr-modal/style/index.less +1 -1
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +97 -97
- package/lib/vtx-zg-modal/style/index.less +1 -1
- package/package.json +124 -124
|
@@ -38,6 +38,109 @@
|
|
|
38
38
|
-webkit-box-sizing: border-box;
|
|
39
39
|
box-sizing: border-box;
|
|
40
40
|
}
|
|
41
|
+
.blue {
|
|
42
|
+
color: #fff !important;
|
|
43
|
+
}
|
|
44
|
+
.blue .ant-tabs {
|
|
45
|
+
color: #fff !important;
|
|
46
|
+
}
|
|
47
|
+
.blue .ant-radio-button-wrapper,
|
|
48
|
+
.blue .ant-btn-default,
|
|
49
|
+
.blue .ant-picker,
|
|
50
|
+
.blue .ant-table,
|
|
51
|
+
.blue th,
|
|
52
|
+
.blue .ant-table-placeholder,
|
|
53
|
+
.blue .ant-table-tbody > tr > td,
|
|
54
|
+
.blue .ant-select,
|
|
55
|
+
.blue .ant-select-selector {
|
|
56
|
+
background: transparent !important;
|
|
57
|
+
border-color: rgba(32, 102, 167, 0.5) !important;
|
|
58
|
+
color: #BDD9FF !important;
|
|
59
|
+
}
|
|
60
|
+
.blue .ant-radio-button-wrapper input,
|
|
61
|
+
.blue .ant-btn-default input,
|
|
62
|
+
.blue .ant-picker input,
|
|
63
|
+
.blue .ant-table input,
|
|
64
|
+
.blue th input,
|
|
65
|
+
.blue .ant-table-placeholder input,
|
|
66
|
+
.blue .ant-table-tbody > tr > td input,
|
|
67
|
+
.blue .ant-select input,
|
|
68
|
+
.blue .ant-select-selector input,
|
|
69
|
+
.blue .ant-radio-button-wrapper .ant-picker-suffix,
|
|
70
|
+
.blue .ant-btn-default .ant-picker-suffix,
|
|
71
|
+
.blue .ant-picker .ant-picker-suffix,
|
|
72
|
+
.blue .ant-table .ant-picker-suffix,
|
|
73
|
+
.blue th .ant-picker-suffix,
|
|
74
|
+
.blue .ant-table-placeholder .ant-picker-suffix,
|
|
75
|
+
.blue .ant-table-tbody > tr > td .ant-picker-suffix,
|
|
76
|
+
.blue .ant-select .ant-picker-suffix,
|
|
77
|
+
.blue .ant-select-selector .ant-picker-suffix,
|
|
78
|
+
.blue .ant-radio-button-wrapper .ant-select-arrow,
|
|
79
|
+
.blue .ant-btn-default .ant-select-arrow,
|
|
80
|
+
.blue .ant-picker .ant-select-arrow,
|
|
81
|
+
.blue .ant-table .ant-select-arrow,
|
|
82
|
+
.blue th .ant-select-arrow,
|
|
83
|
+
.blue .ant-table-placeholder .ant-select-arrow,
|
|
84
|
+
.blue .ant-table-tbody > tr > td .ant-select-arrow,
|
|
85
|
+
.blue .ant-select .ant-select-arrow,
|
|
86
|
+
.blue .ant-select-selector .ant-select-arrow {
|
|
87
|
+
color: #BDD9FF !important;
|
|
88
|
+
}
|
|
89
|
+
.blue .ant-table-tbody > tr.ant-table-placeholder:hover > td,
|
|
90
|
+
.blue .ant-table-tbody > tr.ant-table-row:hover > td,
|
|
91
|
+
.blue .ant-table-tbody > tr > td.ant-table-cell-row-hover {
|
|
92
|
+
background: transparent !important;
|
|
93
|
+
}
|
|
94
|
+
.blue .ant-radio-button-wrapper-checked {
|
|
95
|
+
color: #1890ff !important;
|
|
96
|
+
}
|
|
97
|
+
.blue .ant-radio-button-wrapper:not(:first-child)::before {
|
|
98
|
+
background-color: #36569A !important;
|
|
99
|
+
}
|
|
100
|
+
.blue .wrTitle {
|
|
101
|
+
border-color: rgba(32, 102, 167, 0.5) !important;
|
|
102
|
+
}
|
|
103
|
+
.blue .jbxx,
|
|
104
|
+
.blue .sjjg,
|
|
105
|
+
.blue .ptss {
|
|
106
|
+
background: rgba(0, 103, 156, 0.1);
|
|
107
|
+
}
|
|
108
|
+
.blue .jbxx .basicContent .tip,
|
|
109
|
+
.blue .sjjg .basicContent .tip,
|
|
110
|
+
.blue .ptss .basicContent .tip {
|
|
111
|
+
color: #BDD9FF !important;
|
|
112
|
+
}
|
|
113
|
+
.blue .jbxx .basicContent .text,
|
|
114
|
+
.blue .sjjg .basicContent .text,
|
|
115
|
+
.blue .ptss .basicContent .text {
|
|
116
|
+
color: #fff !important;
|
|
117
|
+
}
|
|
118
|
+
.blue .jbxx .eachType,
|
|
119
|
+
.blue .sjjg .eachType,
|
|
120
|
+
.blue .ptss .eachType,
|
|
121
|
+
.blue .jbxx .summary,
|
|
122
|
+
.blue .sjjg .summary,
|
|
123
|
+
.blue .ptss .summary,
|
|
124
|
+
.blue .jbxx .genderItem,
|
|
125
|
+
.blue .sjjg .genderItem,
|
|
126
|
+
.blue .ptss .genderItem {
|
|
127
|
+
background: transparent !important;
|
|
128
|
+
border-color: rgba(32, 102, 167, 0.5) !important;
|
|
129
|
+
}
|
|
130
|
+
.blue .jbxx .typeContent,
|
|
131
|
+
.blue .sjjg .typeContent,
|
|
132
|
+
.blue .ptss .typeContent {
|
|
133
|
+
background: rgba(255, 255, 255, 0.03) !important;
|
|
134
|
+
color: #fff !important;
|
|
135
|
+
}
|
|
136
|
+
.blue .jbxx .typeContent .itemTitle,
|
|
137
|
+
.blue .sjjg .typeContent .itemTitle,
|
|
138
|
+
.blue .ptss .typeContent .itemTitle,
|
|
139
|
+
.blue .jbxx .typeContent span,
|
|
140
|
+
.blue .sjjg .typeContent span,
|
|
141
|
+
.blue .ptss .typeContent span {
|
|
142
|
+
color: #fff !important;
|
|
143
|
+
}
|
|
41
144
|
.jbxx {
|
|
42
145
|
width: 100%;
|
|
43
146
|
height: auto;
|
|
@@ -318,4 +421,45 @@
|
|
|
318
421
|
.monitor .charts {
|
|
319
422
|
width: 100%;
|
|
320
423
|
height: 400px;
|
|
424
|
+
overflow: auto;
|
|
425
|
+
}
|
|
426
|
+
.popupDate .ant-picker-panel-container {
|
|
427
|
+
background: #233247 !important;
|
|
428
|
+
}
|
|
429
|
+
.popupDate .ant-picker-panel-container .ant-picker-header {
|
|
430
|
+
color: #fff;
|
|
431
|
+
}
|
|
432
|
+
.popupDate .ant-picker-panel-container .ant-picker-header button {
|
|
433
|
+
color: #fff;
|
|
434
|
+
}
|
|
435
|
+
.popupDate .ant-picker-panel-container th {
|
|
436
|
+
color: #fff !important;
|
|
437
|
+
}
|
|
438
|
+
.popupDate .ant-picker-panel-container .ant-picker-cell-in-view:before {
|
|
439
|
+
background: transparent !important;
|
|
440
|
+
}
|
|
441
|
+
.popupDate .ant-picker-panel-container .ant-picker-cell-in-view .ant-picker-cell-inner {
|
|
442
|
+
color: #fff !important;
|
|
443
|
+
}
|
|
444
|
+
.popupDate .ant-picker-panel-container .ant-picker-cell-in-view .ant-picker-cell-inner:after {
|
|
445
|
+
background: transparent !important;
|
|
446
|
+
}
|
|
447
|
+
.popupDate .ant-picker-panel-container .ant-picker-cell-in-range,
|
|
448
|
+
.popupDate .ant-picker-panel-container .ant-picker-cell-range-start,
|
|
449
|
+
.popupDate .ant-picker-panel-container .ant-picker-cell-range-end {
|
|
450
|
+
background: #1890ff !important;
|
|
451
|
+
}
|
|
452
|
+
.popupDate .ant-picker-panel-container .ant-picker-cell-inner {
|
|
453
|
+
color: #bbb !important;
|
|
454
|
+
}
|
|
455
|
+
.popupDate .ant-picker-panel-container .ant-picker-today-btn {
|
|
456
|
+
color: #fff !important;
|
|
457
|
+
}
|
|
458
|
+
.popupDate .ant-picker-panel-container .ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,
|
|
459
|
+
.popupDate .ant-picker-panel-container .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner {
|
|
460
|
+
background: rgba(0, 95, 149) !important;
|
|
461
|
+
}
|
|
462
|
+
.popupDate .ant-picker-panel-container .ant-picker-cell-disabled .ant-picker-cell-inner {
|
|
463
|
+
color: rgba(255, 255, 255, 0.35) !important;
|
|
464
|
+
cursor: not-allowed !important;
|
|
321
465
|
}
|
|
@@ -39,7 +39,9 @@ var BaseInfoNew2 = function BaseInfoNew2(props) {
|
|
|
39
39
|
var _a, _b;
|
|
40
40
|
var id = props.id,
|
|
41
41
|
modalShow = props.modalShow,
|
|
42
|
-
alarmDate = props.alarmDate
|
|
42
|
+
alarmDate = props.alarmDate,
|
|
43
|
+
_props$theme = props.theme,
|
|
44
|
+
theme = _props$theme === void 0 ? 'light' : _props$theme;
|
|
43
45
|
var _useSetState = (0, _ahooks.useSetState)({
|
|
44
46
|
fields: [],
|
|
45
47
|
detail: {
|
|
@@ -72,15 +74,17 @@ var BaseInfoNew2 = function BaseInfoNew2(props) {
|
|
|
72
74
|
}
|
|
73
75
|
}, [id]);
|
|
74
76
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
-
className: "wr2",
|
|
77
|
+
className: "wr2 ".concat(theme),
|
|
76
78
|
style: {
|
|
77
79
|
height: modalShow === false ? '100%' : '650px'
|
|
78
80
|
}
|
|
79
81
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
82
|
className: "left"
|
|
81
83
|
}, /*#__PURE__*/_react["default"].createElement(_Jbxx["default"], Object.assign({}, state, {
|
|
82
|
-
modalShow: modalShow
|
|
84
|
+
modalShow: modalShow,
|
|
85
|
+
theme: theme
|
|
83
86
|
})), ((_a = state.detail) === null || _a === void 0 ? void 0 : _a.hasDevice) && /*#__PURE__*/_react["default"].createElement(_Jcbj["default"], Object.assign({}, state, {
|
|
87
|
+
theme: theme,
|
|
84
88
|
alarmDate: alarmDate
|
|
85
89
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
86
90
|
className: "right"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_ahooks","_utils","_Jbxx","_interopRequireDefault","_Ptss","_Sjjg","_Jcbj","e","__esModule","_getRequireWildcardCache","WeakMap","r","t","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","f","o","next","done","push","value","isArray","getDetail","params","request","data","getFields","BaseInfoNew2","props","_a","_b","id","modalShow","alarmDate","_useSetState","useSetState","fields","detail","hasDevice","_useSetState2","state","setState","useEffect","code","then","res","result","baseFields","concat","customFields","React","createElement","className","style","height","Jbxx","assign","Jcbj","Sjjg","Ptss","_default","exports"],"sources":["vtx-wr-modal/components/BaseInfoNew2/index.js"],"sourcesContent":["/* eslint-disable no-undef */\nimport React, { useEffect } from 'react';\nimport { useSetState } from 'ahooks';\nimport './index.less';\nimport { request } from '@vtx/utils';\nimport Jbxx from './components/Jbxx'; //基本信息\nimport Ptss from './components/Ptss'; //配套设施\nimport Sjjg from './components/Sjjg'; //数据监管\nimport Jcbj from './components/Jcbj'; //监测报警\nconst getDetail = (params) => {\n return request.get('/cloud/zhgc-reborn/api/gis/pop/getById', {\n data: params,\n });\n};\nconst getFields = (params) => {\n return request.get('/cloud/jcss-reborn/facility/type/view/detail', {\n data: params,\n });\n};\nconst BaseInfoNew2 = (props) => {\n var _a, _b;\n const { id, modalShow, alarmDate } = props;\n const [state, setState] = useSetState({\n fields: [],\n detail: {\n hasDevice: false\n }\n });\n useEffect(() => {\n if (id) {\n getFields({ code: 'wr' }).then((res) => {\n if ((res === null || res === void 0 ? void 0 : res.result) === 0) {\n setState({\n fields: res.data.baseFields.concat(res.data.customFields)\n });\n }\n });\n getDetail({ id }).then((res) => {\n if ((res === null || res === void 0 ? void 0 : res.result) === 0) {\n setState({\n detail: res.data || {},\n });\n }\n });\n }\n }, [id]);\n return React.createElement(\"div\", { className:
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_ahooks","_utils","_Jbxx","_interopRequireDefault","_Ptss","_Sjjg","_Jcbj","e","__esModule","_getRequireWildcardCache","WeakMap","r","t","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","f","o","next","done","push","value","isArray","getDetail","params","request","data","getFields","BaseInfoNew2","props","_a","_b","id","modalShow","alarmDate","_props$theme","theme","_useSetState","useSetState","fields","detail","hasDevice","_useSetState2","state","setState","useEffect","code","then","res","result","baseFields","concat","customFields","React","createElement","className","style","height","Jbxx","assign","Jcbj","Sjjg","Ptss","_default","exports"],"sources":["vtx-wr-modal/components/BaseInfoNew2/index.js"],"sourcesContent":["/* eslint-disable no-undef */\nimport React, { useEffect } from 'react';\nimport { useSetState } from 'ahooks';\nimport './index.less';\nimport { request } from '@vtx/utils';\nimport Jbxx from './components/Jbxx'; //基本信息\nimport Ptss from './components/Ptss'; //配套设施\nimport Sjjg from './components/Sjjg'; //数据监管\nimport Jcbj from './components/Jcbj'; //监测报警\nconst getDetail = (params) => {\n return request.get('/cloud/zhgc-reborn/api/gis/pop/getById', {\n data: params,\n });\n};\nconst getFields = (params) => {\n return request.get('/cloud/jcss-reborn/facility/type/view/detail', {\n data: params,\n });\n};\nconst BaseInfoNew2 = (props) => {\n var _a, _b;\n const { id, modalShow, alarmDate, theme = 'light' } = props;\n const [state, setState] = useSetState({\n fields: [],\n detail: {\n hasDevice: false\n }\n });\n useEffect(() => {\n if (id) {\n getFields({ code: 'wr' }).then((res) => {\n if ((res === null || res === void 0 ? void 0 : res.result) === 0) {\n setState({\n fields: res.data.baseFields.concat(res.data.customFields)\n });\n }\n });\n getDetail({ id }).then((res) => {\n if ((res === null || res === void 0 ? void 0 : res.result) === 0) {\n setState({\n detail: res.data || {},\n });\n }\n });\n }\n }, [id]);\n return React.createElement(\"div\", { className: `wr2 ${theme}`, style: { height: modalShow === false ? '100%' : '650px' } },\n React.createElement(\"div\", { className: \"left\" },\n React.createElement(Jbxx, Object.assign({}, state, { modalShow: modalShow, theme: theme })),\n ((_a = state.detail) === null || _a === void 0 ? void 0 : _a.hasDevice) && React.createElement(Jcbj, Object.assign({}, state, { theme: theme, alarmDate: alarmDate }))),\n React.createElement(\"div\", { className: \"right\" },\n ((_b = state.detail) === null || _b === void 0 ? void 0 : _b.hasDevice) && React.createElement(Sjjg, Object.assign({}, state)),\n React.createElement(Ptss, Object.assign({}, state))));\n};\nexport default BaseInfoNew2;\n"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACAA,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAC,sBAAA,CAA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