@vtx/modals2 5.0.19 → 5.0.21
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/_components/vm-calendar/style/index.js +1 -0
- package/lib/_components/vm-calendar/style/index.less +4 -1
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-line-charts/index.js +11 -0
- package/lib/_components/vm-repair-maintain/RmRecord.js +3 -3
- package/lib/_components/vm-repair-maintain/index.js +2 -2
- package/lib/_components/vm-table/index.js +4 -4
- package/lib/_components/vm-theme-provider/index.js +3 -3
- package/lib/vtx-area-modal/api.js +2 -2
- package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +2 -2
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -2
- package/lib/vtx-area-modal/components/BaseInfo/index.js +2 -2
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +54 -54
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +6 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +2 -2
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +2 -2
- package/lib/vtx-cp-modal/index.js +2 -2
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/lib/vtx-df-modal/components/BaseInfo/index.js +6 -6
- package/lib/vtx-df-modal/components/Calendar/index.js +4 -4
- package/lib/vtx-df-modal/components/Metering/index.js +8 -8
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -2
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +3 -3
- package/lib/vtx-df-modal/components/WorkCondition/index.js +8 -8
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +2 -2
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
- package/lib/vtx-restaurant-modal/config.js +52 -52
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +2 -2
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +5 -5
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +4 -4
- package/lib/vtx-staff-modal/components/Attendance/Record.js +4 -4
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +4 -4
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +4 -14
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStaticDay.js +2 -2
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +5 -5
- package/lib/vtx-staff-modal/components/Calendar/index.js +1 -2
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/package.json +78 -78
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
.vm-car-statistics {
|
|
2
|
-
width: 208px;
|
|
3
|
-
height: 84px;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
padding: 20px;
|
|
8
|
-
background-size: 100% 100%;
|
|
9
|
-
&-label {
|
|
10
|
-
color: var(--img-text-color);
|
|
11
|
-
}
|
|
12
|
-
&-value, &-unit {
|
|
13
|
-
color: #1f1f1f;
|
|
14
|
-
}
|
|
15
|
-
&.vm-car-statistics-dark {
|
|
16
|
-
.vm-car-statistics-value,.vm-car-statistics-unit {
|
|
17
|
-
background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
|
|
18
|
-
background-clip: text;
|
|
19
|
-
-webkit-text-fill-color: transparent;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
&-value {
|
|
23
|
-
font-size: 20px;
|
|
24
|
-
font-weight: bold;
|
|
25
|
-
margin-right: 4px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
.vm-car-statistics {
|
|
2
|
+
width: 208px;
|
|
3
|
+
height: 84px;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
padding: 20px;
|
|
8
|
+
background-size: 100% 100%;
|
|
9
|
+
&-label {
|
|
10
|
+
color: var(--img-text-color);
|
|
11
|
+
}
|
|
12
|
+
&-value, &-unit {
|
|
13
|
+
color: #1f1f1f;
|
|
14
|
+
}
|
|
15
|
+
&.vm-car-statistics-dark {
|
|
16
|
+
.vm-car-statistics-value,.vm-car-statistics-unit {
|
|
17
|
+
background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
|
|
18
|
+
background-clip: text;
|
|
19
|
+
-webkit-text-fill-color: transparent;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&-value {
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
font-weight: bold;
|
|
25
|
+
margin-right: 4px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.vm-factor-list-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
padding: 12px 16px;
|
|
4
|
-
height: 68px;
|
|
5
|
-
background: #F3F8FF;
|
|
6
|
-
border-radius: 8px;
|
|
7
|
-
gap: 26px;
|
|
8
|
-
&.dark {
|
|
9
|
-
background: rgba(0,136,240,0.15);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
.vm-factor-list-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 12px 16px;
|
|
4
|
+
height: 68px;
|
|
5
|
+
background: #F3F8FF;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
gap: 26px;
|
|
8
|
+
&.dark {
|
|
9
|
+
background: rgba(0,136,240,0.15);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -6,7 +6,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { Row, Spin } from 'antd';
|
|
8
8
|
import ReactEcharts from 'echarts-for-react';
|
|
9
|
+
import { isEmpty } from 'lodash';
|
|
9
10
|
import useSettings from "../../_hooks/useSettings";
|
|
11
|
+
import VmEmpty from "../vm-empty";
|
|
10
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
13
|
var LineCharts = function LineCharts(_ref) {
|
|
12
14
|
var _ref$dataList = _ref.dataList,
|
|
@@ -138,6 +140,15 @@ var LineCharts = function LineCharts(_ref) {
|
|
|
138
140
|
align: 'middle',
|
|
139
141
|
justify: 'center',
|
|
140
142
|
children: /*#__PURE__*/_jsx(Spin, {})
|
|
143
|
+
}) : isEmpty(dataList) ? /*#__PURE__*/_jsx(Row, {
|
|
144
|
+
style: {
|
|
145
|
+
height: height
|
|
146
|
+
},
|
|
147
|
+
align: 'middle',
|
|
148
|
+
justify: 'center',
|
|
149
|
+
children: /*#__PURE__*/_jsx(VmEmpty, {
|
|
150
|
+
type: "NO_CHART"
|
|
151
|
+
})
|
|
141
152
|
}) : /*#__PURE__*/_jsx(ReactEcharts, {
|
|
142
153
|
option: option,
|
|
143
154
|
notMerge: true,
|
|
@@ -14,7 +14,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
14
14
|
* 维保记录
|
|
15
15
|
*/
|
|
16
16
|
import { useSetState } from 'ahooks';
|
|
17
|
-
import
|
|
17
|
+
import dayjs from 'dayjs';
|
|
18
18
|
import { VmTable, VmWrapper } from "../../_components";
|
|
19
19
|
import { BaseService } from "./api";
|
|
20
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -33,8 +33,8 @@ export default function RmRecord(props) {
|
|
|
33
33
|
setState = _useSetState2[1];
|
|
34
34
|
var pagination = state.pagination,
|
|
35
35
|
sorter = state.sorter;
|
|
36
|
-
var startDate =
|
|
37
|
-
var endDate =
|
|
36
|
+
var startDate = dayjs().startOf('y').format('YYYY-MM-DD HH:mm:ss');
|
|
37
|
+
var endDate = dayjs().format('YYYY-MM-DD HH:mm:ss');
|
|
38
38
|
var _BaseService$useRmRec = BaseService.useRmRecord(id, startDate, endDate, pagination.current - 1, sorter),
|
|
39
39
|
rmRecord = _BaseService$useRmRec.rmRecord;
|
|
40
40
|
var getColor = function getColor(code) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { Col, Row } from 'antd';
|
|
6
|
-
import
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
7
|
import { VmWrapper } from "../../_components";
|
|
8
8
|
import { BaseService } from "./api";
|
|
9
9
|
import RmInfoSummary from "./RmInfoSummary";
|
|
@@ -14,7 +14,7 @@ import "./style";
|
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
var RepaireMaintain = function RepaireMaintain(props) {
|
|
16
16
|
var id = props.id;
|
|
17
|
-
var date =
|
|
17
|
+
var date = dayjs().format('YYYY-MM-DD');
|
|
18
18
|
var _BaseService$useRepai = BaseService.useRepairMaintain(id, date, date),
|
|
19
19
|
rmSummary = _BaseService$useRepai.rmSummary,
|
|
20
20
|
rmType = _BaseService$useRepai.rmType,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
var VtxThemeContext = /*#__PURE__*/React.createContext({
|
|
4
4
|
theme: 'light',
|
|
5
5
|
tabPosition: 'top',
|
|
6
6
|
chartFontColor: '#fff',
|
|
7
7
|
chartLineColor: '',
|
|
8
|
-
startDate:
|
|
9
|
-
endDate:
|
|
8
|
+
startDate: dayjs().format('YYYY-MM-DD'),
|
|
9
|
+
endDate: dayjs().format('YYYY-MM-DD'),
|
|
10
10
|
contentStyle: {},
|
|
11
11
|
mapInfo: {
|
|
12
12
|
coordinate: '',
|
|
@@ -7,7 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import { MapIcon } from '@vtx/map-icon';
|
|
8
8
|
import { getUrlParam, getVtxToken, request } from '@vtx/utils';
|
|
9
9
|
import { useRequest } from 'ahooks';
|
|
10
|
-
import
|
|
10
|
+
import dayjs from 'dayjs';
|
|
11
11
|
var BaseService = {
|
|
12
12
|
useBaseInfo: function useBaseInfo(id, coordType) {
|
|
13
13
|
var _info$paramsDone, _numInfo$data, _numInfo$data2;
|
|
@@ -27,7 +27,7 @@ var BaseService = {
|
|
|
27
27
|
data: {
|
|
28
28
|
workElementId: id,
|
|
29
29
|
needRealtimeInfo: true,
|
|
30
|
-
date:
|
|
30
|
+
date: dayjs().format('YYYY-MM-DD'),
|
|
31
31
|
coordType: 'wgs84'
|
|
32
32
|
},
|
|
33
33
|
extraHeader: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as echarts from 'echarts';
|
|
2
2
|
import ReactEcharts from 'echarts-for-react';
|
|
3
|
-
import
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
4
|
import { VmEmpty } from "../../../_components";
|
|
5
5
|
import useSettings from "../../../_hooks/useSettings";
|
|
6
6
|
import { BaseService } from "../../api";
|
|
@@ -10,7 +10,7 @@ var Lcfx = function Lcfx(props) {
|
|
|
10
10
|
chartFontColor = _useSettings.chartFontColor,
|
|
11
11
|
theme = _useSettings.theme;
|
|
12
12
|
var id = props.id;
|
|
13
|
-
var _BaseService$useMileA = BaseService.useMileAnalysis(id,
|
|
13
|
+
var _BaseService$useMileA = BaseService.useMileAnalysis(id, dayjs().startOf('M').format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')),
|
|
14
14
|
mileAnalysisRes = _BaseService$useMileA.mileAnalysisRes;
|
|
15
15
|
var names = mileAnalysisRes.names,
|
|
16
16
|
values = mileAnalysisRes.values;
|
|
@@ -15,7 +15,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { useSetState } from 'ahooks';
|
|
18
|
-
import
|
|
18
|
+
import dayjs from 'dayjs';
|
|
19
19
|
import { VmTable } from "../../../_components";
|
|
20
20
|
import { BaseService } from "../../api";
|
|
21
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -34,7 +34,7 @@ var ListZymx = function ListZymx(props) {
|
|
|
34
34
|
state = _useSetState2[0],
|
|
35
35
|
setState = _useSetState2[1];
|
|
36
36
|
var pagination = state.pagination;
|
|
37
|
-
var _BaseService$useToday = BaseService.useTodayWork(id, startDate ||
|
|
37
|
+
var _BaseService$useToday = BaseService.useTodayWork(id, startDate || dayjs().format('YYYY-MM-DD'), endDate || dayjs().format('YYYY-MM-DD'), pagination.current - 1),
|
|
38
38
|
todayWorkRes = _BaseService$useToday.todayWorkRes;
|
|
39
39
|
var columns = [{
|
|
40
40
|
title: '作业日期',
|
|
@@ -12,7 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { useSetState } from 'ahooks';
|
|
14
14
|
import { Col, Row } from 'antd';
|
|
15
|
-
import
|
|
15
|
+
import dayjs from 'dayjs';
|
|
16
16
|
import { useRef } from 'react';
|
|
17
17
|
import { VmFactor, VmFactorList, VmInfoCollection, VmMap, VmTitle, VmWrapper } from "../../../_components";
|
|
18
18
|
import useSettings from "../../../_hooks/useSettings";
|
|
@@ -39,7 +39,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
39
39
|
isDark = _useSettings.isDark,
|
|
40
40
|
mapInfo = _useSettings.mapInfo;
|
|
41
41
|
var _useSetState = useSetState({
|
|
42
|
-
date:
|
|
42
|
+
date: dayjs()
|
|
43
43
|
}),
|
|
44
44
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
45
45
|
state = _useSetState2[0],
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
.vm-modal-header-container {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 116px;
|
|
4
|
-
border-radius: 8px 8px 0 0;
|
|
5
|
-
background: var(--modal-head-bg);
|
|
6
|
-
padding: 0 16px;
|
|
7
|
-
margin-top: 1px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.vm-modal-header-wrap {
|
|
11
|
-
width: 100%;
|
|
12
|
-
height: 56px;
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
position: relative;
|
|
17
|
-
&::after {
|
|
18
|
-
position: absolute;
|
|
19
|
-
top: 54px;
|
|
20
|
-
left: 0;
|
|
21
|
-
content: '';
|
|
22
|
-
width: 180px;
|
|
23
|
-
height: 1px;
|
|
24
|
-
background: var(--modal-head-line-bg);
|
|
25
|
-
box-shadow: var(--modal-head-line-shadow);
|
|
26
|
-
border-radius: 8px;
|
|
27
|
-
animation: move 6s linear infinite;
|
|
28
|
-
|
|
29
|
-
@keyframes move {
|
|
30
|
-
0% {
|
|
31
|
-
left: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
100% {
|
|
35
|
-
left: calc(100% - 180px);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-left {
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
gap: 8px;
|
|
44
|
-
|
|
45
|
-
&-title {
|
|
46
|
-
font-weight: bold;
|
|
47
|
-
font-size: 20px;
|
|
48
|
-
color: var(--modal-title-color);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-tag {
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
gap: 4px;
|
|
56
|
-
height: 24px;
|
|
57
|
-
border-radius: 16px;
|
|
58
|
-
font-size: 12px;
|
|
59
|
-
padding: 0 8px;
|
|
60
|
-
border: 1px solid;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-right {
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
gap: 16px;
|
|
68
|
-
|
|
69
|
-
&-close {
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
color: var(--modal-close-color);
|
|
74
|
-
width: 28px;
|
|
75
|
-
height: 28px;
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
font-size: 16px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&-line {
|
|
81
|
-
width: 1px;
|
|
82
|
-
height: 14px;
|
|
83
|
-
background-color: var(--modal-head-split-line-color);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&-collect {
|
|
87
|
-
width: 28px;
|
|
88
|
-
height: 28px;
|
|
89
|
-
border-radius: 8px;
|
|
90
|
-
text-align: center;
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
|
|
93
|
-
&.active {
|
|
94
|
-
background: var(--collect-bg);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
1
|
+
.vm-modal-header-container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 116px;
|
|
4
|
+
border-radius: 8px 8px 0 0;
|
|
5
|
+
background: var(--modal-head-bg);
|
|
6
|
+
padding: 0 16px;
|
|
7
|
+
margin-top: 1px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.vm-modal-header-wrap {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 56px;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
position: relative;
|
|
17
|
+
&::after {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 54px;
|
|
20
|
+
left: 0;
|
|
21
|
+
content: '';
|
|
22
|
+
width: 180px;
|
|
23
|
+
height: 1px;
|
|
24
|
+
background: var(--modal-head-line-bg);
|
|
25
|
+
box-shadow: var(--modal-head-line-shadow);
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
animation: move 6s linear infinite;
|
|
28
|
+
|
|
29
|
+
@keyframes move {
|
|
30
|
+
0% {
|
|
31
|
+
left: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
100% {
|
|
35
|
+
left: calc(100% - 180px);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-left {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 8px;
|
|
44
|
+
|
|
45
|
+
&-title {
|
|
46
|
+
font-weight: bold;
|
|
47
|
+
font-size: 20px;
|
|
48
|
+
color: var(--modal-title-color);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-tag {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
gap: 4px;
|
|
56
|
+
height: 24px;
|
|
57
|
+
border-radius: 16px;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
padding: 0 8px;
|
|
60
|
+
border: 1px solid;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-right {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: 16px;
|
|
68
|
+
|
|
69
|
+
&-close {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
color: var(--modal-close-color);
|
|
74
|
+
width: 28px;
|
|
75
|
+
height: 28px;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
font-size: 16px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-line {
|
|
81
|
+
width: 1px;
|
|
82
|
+
height: 14px;
|
|
83
|
+
background-color: var(--modal-head-split-line-color);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-collect {
|
|
87
|
+
width: 28px;
|
|
88
|
+
height: 28px;
|
|
89
|
+
border-radius: 8px;
|
|
90
|
+
text-align: center;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
|
|
93
|
+
&.active {
|
|
94
|
+
background: var(--collect-bg);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
.vm-modal-tabs {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 60px;
|
|
4
|
-
background: var(--vm-tabs-bg);
|
|
5
|
-
border-radius: 8px 8px 0 0;
|
|
6
|
-
border: none;
|
|
7
|
-
// border: 2px solid var(--vm-tab-border-color);
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
gap: 16px;
|
|
11
|
-
align-items: center;
|
|
12
|
-
|
|
13
|
-
&-item {
|
|
14
|
-
display: flex;
|
|
15
|
-
height: 36px;
|
|
16
|
-
padding: 0 14px;
|
|
17
|
-
font-size: 16px;
|
|
18
|
-
gap: 8px;
|
|
19
|
-
color: var(--vm-tabs-font-color);
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
|
|
24
|
-
&-active {
|
|
25
|
-
background: var(--vm-tab-item-active-bg-color);
|
|
26
|
-
border-radius: 26px;
|
|
27
|
-
color: var(--vm-tab-item-active-color);
|
|
28
|
-
box-shadow: var(--vm-tab-item-active-box-shadow);
|
|
29
|
-
&.vm-modal-tabs-item-dark {
|
|
30
|
-
position: relative;
|
|
31
|
-
&::before {
|
|
32
|
-
content: '';
|
|
33
|
-
position: absolute;
|
|
34
|
-
top: 0;
|
|
35
|
-
left: 0;
|
|
36
|
-
right: 0;
|
|
37
|
-
bottom: 0;
|
|
38
|
-
background: linear-gradient(
|
|
39
|
-
180deg,
|
|
40
|
-
rgba(255, 255, 255, 1),
|
|
41
|
-
rgba(54, 161, 255, 1)
|
|
42
|
-
);
|
|
43
|
-
border-radius: 26px;
|
|
44
|
-
padding: 1px;
|
|
45
|
-
-webkit-mask: linear-gradient(#fff 0 0) content-box,
|
|
46
|
-
linear-gradient(#fff 0 0);
|
|
47
|
-
-webkit-mask-composite: xor;
|
|
48
|
-
mask-composite: exclude;
|
|
49
|
-
z-index: -1;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
.vm-modal-tabs {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 60px;
|
|
4
|
+
background: var(--vm-tabs-bg);
|
|
5
|
+
border-radius: 8px 8px 0 0;
|
|
6
|
+
border: none;
|
|
7
|
+
// border: 2px solid var(--vm-tab-border-color);
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
&-item {
|
|
14
|
+
display: flex;
|
|
15
|
+
height: 36px;
|
|
16
|
+
padding: 0 14px;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
color: var(--vm-tabs-font-color);
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
|
|
24
|
+
&-active {
|
|
25
|
+
background: var(--vm-tab-item-active-bg-color);
|
|
26
|
+
border-radius: 26px;
|
|
27
|
+
color: var(--vm-tab-item-active-color);
|
|
28
|
+
box-shadow: var(--vm-tab-item-active-box-shadow);
|
|
29
|
+
&.vm-modal-tabs-item-dark {
|
|
30
|
+
position: relative;
|
|
31
|
+
&::before {
|
|
32
|
+
content: '';
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
right: 0;
|
|
37
|
+
bottom: 0;
|
|
38
|
+
background: linear-gradient(
|
|
39
|
+
180deg,
|
|
40
|
+
rgba(255, 255, 255, 1),
|
|
41
|
+
rgba(54, 161, 255, 1)
|
|
42
|
+
);
|
|
43
|
+
border-radius: 26px;
|
|
44
|
+
padding: 1px;
|
|
45
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box,
|
|
46
|
+
linear-gradient(#fff 0 0);
|
|
47
|
+
-webkit-mask-composite: xor;
|
|
48
|
+
mask-composite: exclude;
|
|
49
|
+
z-index: -1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vm-car-map-wrap {
|
|
2
|
-
flex: 1;
|
|
3
|
-
min-height: 0;
|
|
4
|
-
width: 100%;
|
|
5
|
-
margin-top: 10px;
|
|
6
|
-
}
|
|
1
|
+
.vm-car-map-wrap {
|
|
2
|
+
flex: 1;
|
|
3
|
+
min-height: 0;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-top: 10px;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vtx-car-oil-wrap {
|
|
2
|
-
height: 100%;
|
|
3
|
-
display: flex;
|
|
4
|
-
gap: 16px;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
1
|
+
.vtx-car-oil-wrap {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vtx-car-water-wrap {
|
|
2
|
-
height: 100%;
|
|
3
|
-
display: flex;
|
|
4
|
-
gap: 16px;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
1
|
+
.vtx-car-water-wrap {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
@@ -39,6 +39,9 @@ var StaticInfo = function StaticInfo(_ref) {
|
|
|
39
39
|
},
|
|
40
40
|
children: [/*#__PURE__*/_jsx(Col, {
|
|
41
41
|
span: 12,
|
|
42
|
+
style: {
|
|
43
|
+
height: '100%'
|
|
44
|
+
},
|
|
42
45
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
43
46
|
title: '报警汇总',
|
|
44
47
|
children: /*#__PURE__*/_jsx(VmPieCharts, {
|
|
@@ -58,6 +61,9 @@ var StaticInfo = function StaticInfo(_ref) {
|
|
|
58
61
|
})
|
|
59
62
|
}), /*#__PURE__*/_jsx(Col, {
|
|
60
63
|
span: 12,
|
|
64
|
+
style: {
|
|
65
|
+
height: '100%'
|
|
66
|
+
},
|
|
61
67
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
62
68
|
title: '报警趋势分析',
|
|
63
69
|
children: /*#__PURE__*/_jsx(VmLineCharts, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vm-cc-unit-map-wrap {
|
|
2
|
-
flex: 1;
|
|
3
|
-
min-height: 230px;
|
|
4
|
-
width: 100%;
|
|
5
|
-
margin-top: 10px;
|
|
6
|
-
}
|
|
1
|
+
.vm-cc-unit-map-wrap {
|
|
2
|
+
flex: 1;
|
|
3
|
+
min-height: 230px;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-top: 10px;
|
|
6
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 公厕-报警信息-报警信息汇总
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
5
|
import { VmEmpty, VmLineCharts, VmWrapper } from "../../../_components";
|
|
6
6
|
import { AlarmService } from "../../api";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
var MonthTrend = function MonthTrend(_ref) {
|
|
9
9
|
var id = _ref.id;
|
|
10
|
-
var _AlarmService$useAlar = AlarmService.useAlarmMonthTrend(id,
|
|
10
|
+
var _AlarmService$useAlar = AlarmService.useAlarmMonthTrend(id, dayjs().subtract(6, 'M').format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')),
|
|
11
11
|
alarmMonthTrend = _AlarmService$useAlar.alarmMonthTrend;
|
|
12
12
|
var legends = alarmMonthTrend.legends,
|
|
13
13
|
names = alarmMonthTrend.names,
|