diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/CarTypeAly/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/CarTypeAly/loadable.jsx
index 19df23c..1e1b557 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/CarTypeAly/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/CarTypeAly/loadable.jsx
@@ -23,8 +23,8 @@ function CarTypeAly() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
date_type: '1',
type: 'region',
operator_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/NightParkStat/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/NightParkStat/loadable.jsx
index 1f65e12..90df4f0 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/NightParkStat/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/NightParkStat/loadable.jsx
@@ -23,8 +23,8 @@ function NightParkStat() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
car_parking_type: '3',
operator_id: '0',
area_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkBerthAly/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkBerthAly/loadable.jsx
index 0c039ee..7bd1a0f 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkBerthAly/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkBerthAly/loadable.jsx
@@ -184,6 +184,10 @@ function ParkBerthAly() {
acr.push(item.date)
acc.push(acr)
})
+ console.log(data, acc)
+ // acc.map((item)=>{
+
+ // })
// 构建X轴数据
const xAxisData = dates.map((date) => {
return {
@@ -270,6 +274,7 @@ function ParkBerthAly() {
trigger: 'item',
//formatter: '{b0}: 实到 {c0} 人'
formatter: (params) => {
+ //console.log(params)
return `
${moment(params.data[2]).format('YYYY年MM月DD日')}(${getWeek(params.data[2])})
全市日均泊位周转次数:${totalData.all_turnover + '(次)'}
@@ -536,7 +541,7 @@ function ParkBerthAly() {
>
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkTurnoverAly/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkTurnoverAly/loadable.jsx
index 0853227..694ae6a 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkTurnoverAly/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkTurnoverAly/loadable.jsx
@@ -23,8 +23,8 @@ function ParkTurnoverAly() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
date_type: '1', //
operator_id: '0',
area_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkUsageAly/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkUsageAly/loadable.jsx
index 9b4b546..6e87e8d 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkUsageAly/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkUsageAly/loadable.jsx
@@ -24,8 +24,8 @@ function ParkUsageAly() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
car_parking_type: '3',
operator_id: '0',
area_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyDuration/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyDuration/loadable.jsx
index a7ff752..1a943b2 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyDuration/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyDuration/loadable.jsx
@@ -23,8 +23,8 @@ function ParkingAlyDuration() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
car_parking_type: '3',
operator_id: '0',
area_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx
index bfbe6f9..17b1283 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx
@@ -24,8 +24,8 @@ function ParkingAlyOverview() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
operator_id: '0',
area_id: '0',
date_type: '1',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx
index c444116..7706fdc 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx
@@ -19,8 +19,8 @@ function ParkingAlyPeriod() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
operator_id: '0',
area_id: '0',
car_parking_type: '3',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyReport/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyReport/loadable.jsx
index a2b90b1..d2dec7c 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyReport/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyReport/loadable.jsx
@@ -23,8 +23,8 @@ function ParkingAlyReport() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
date_type: '1',
car_parking_type: '3',
operator_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingLiveData/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingLiveData/loadable.jsx
index 2d95165..78b3213 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingLiveData/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingLiveData/loadable.jsx
@@ -24,8 +24,8 @@ function ParkingLiveData() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
operator_id: '0',
area_id: '0',
};
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/TemporaryParkStat/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/TemporaryParkStat/loadable.jsx
index aa2a3e4..30008b1 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/TemporaryParkStat/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/TemporaryParkStat/loadable.jsx
@@ -23,8 +23,8 @@ function TemporaryParkStat() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
car_parking_type: '3',
operator_id: '0',
area_id: '0',
diff --git a/src/pages/OperationCenter/ArrearsRecover/ArrearsCar/loadable.jsx b/src/pages/OperationCenter/ArrearsRecover/ArrearsCar/loadable.jsx
index 90bb917..061ce06 100644
--- a/src/pages/OperationCenter/ArrearsRecover/ArrearsCar/loadable.jsx
+++ b/src/pages/OperationCenter/ArrearsRecover/ArrearsCar/loadable.jsx
@@ -203,8 +203,8 @@ function ArrearsCar() {
];
const formSearch = [
{
- name: "plate",
- type: "Input",
+ name: "carId",
+ type: "PlateSelect",
label: "车牌号",
placeholder: "请输入车牌号",
},
diff --git a/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx b/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx
index d9f799b..ec1bcbb 100644
--- a/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx
+++ b/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx
@@ -247,7 +247,7 @@ function CarInfo() {
name: "timePeriod",
type: "RangePicker",
label: "时间段",
- defaultValue: [moment().subtract(90, "day"), moment()],
+ defaultValue: [moment().subtract(89, "day"), moment()],
},
];
//退费记录检索条件
diff --git a/src/pages/OperationCenter/UserMgm/UserInfo/index.scss b/src/pages/OperationCenter/UserMgm/UserInfo/index.scss
index 1d21e8e..531f924 100644
--- a/src/pages/OperationCenter/UserMgm/UserInfo/index.scss
+++ b/src/pages/OperationCenter/UserMgm/UserInfo/index.scss
@@ -5,6 +5,7 @@ $color-text: var(--color-text);
$color-primary: var(--color-primary);
.userinfo-box {
+ position: relative;
.ant-tabs-tabpane-hidden {
display: none;
}
@@ -419,5 +420,5 @@ $color-primary: var(--color-primary);
background: #ffffff;
color: #000;
cursor: pointer;
- z-index: 9999;
+ z-index: 99;
}
\ No newline at end of file
diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx
index 379fc1e..2c7c1fb 100644
--- a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx
+++ b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx
@@ -98,12 +98,14 @@ function AddModal(props) {
}
//提交按钮
function submit() {
+ console.log(effectiveDateList)
+ return
form
.validateFields()
.then((res) => {
const params = {
...res,
- property: effectiveDateList,// effectiveDateList[0]
+ property: effectiveDateList,// property: {rules:effectiveDateList},
};
fetch(params);
})
diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/EffectiveDate.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/EffectiveDate.jsx
index 2765ae5..e01f533 100644
--- a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/EffectiveDate.jsx
+++ b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/EffectiveDate.jsx
@@ -103,6 +103,7 @@ function EffectiveDate(props) {
return false;
}
function submit() {
+ console.log(106,form.getFieldsValue())
form
.validateFields()
.then((values) => {
@@ -119,12 +120,12 @@ function EffectiveDate(props) {
}
return (
-
+
@@ -202,10 +203,10 @@ function EffectiveDate(props) {
});
const obj = {
...form.getFieldsValue(),
- time_part_arr: _timePartList,
+ details: _timePartList,
};
- if (obj.effective_date !== void 0) {
- obj.effective_date = obj.effective_date.format("YYYY-MM-DD");
+ if (obj.date !== void 0) {
+ obj.date = obj.date.format("YYYY-MM-DD");
}
onChange(obj, itemKey);
setTimePartList(_timePartList);
diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx
index 00516e3..3f14c36 100644
--- a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx
+++ b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx
@@ -23,7 +23,7 @@ function TimePart(props) {
} = props;
const record1 = {
"start": "00:00:00",
- "end": "00:00:00",
+ "end": "13:00:00",
"limit": 0,
"items": [
{
@@ -40,12 +40,97 @@ function TimePart(props) {
console.log(disable);
const valueChange = (value, all) => {
all.key = itemKey;
+ if (all.time_part) {
+ all.start = moment(all.time_part[0]).format('HH:mm:ss')
+ all.end = moment(all.time_part[1]).format('HH:mm:ss')
+ delete all.time_part
+ }
+ if (all.type == 0) {
+ all.items = [
+ {
+ "type": all.type,
+ "threshold": 0,
+ "period": all.time_before_minute,
+ "unit": all.time_before_money,
+ "segment": all.time_before,
+ },
+ {
+ "type": 2,
+ "threshold": 0,
+ "period": all.time_after_minute,
+ "unit": all.time_after_money,
+ "segment": all.time_before,
+ },
+ ]
+ delete all.type
+ delete all.time_before_minute
+ delete all.time_before_money
+ delete all.time_before
+ delete all.time_after_minute
+ delete all.time_after_money
+ } else if (all.type == 1) {
+ all.items = [
+ {
+ "type": all.type,
+ "threshold": 0,
+ "unit": all.unit,
+ },
+ ]
+ delete all.type
+ delete all.unit
+ } else {
+ all.items = [
+ {
+ "type": all.type,
+ "threshold": 0,
+ "period": all.period,
+ "unit": all.unit,
+ "segment": all.segment
+ },
+ ]
+ delete all.type
+ delete all.period
+ delete all.unit
+ delete all.segment
+ }
+ console.log(66, all)
onChange(all);
};
-
+ useEffect(() => {
+ if (!record.items) return
+ if (record.items[0]?.type == 0) {
+ form.setFieldsValue({
+ ...record,
+ type: record.items[0].type,
+ "time_before": record.items[0].segment,
+ "time_before_money": record.items[0].unit,
+ "time_before_minute": record.items[0].period,
+ "time_after_money": record.items[1].unit,
+ "time_after_minute": record.items[1].period,
+ "limit": record.limit,
+ time_part: [
+ moment(record.start, "HH:mm:ss"),
+ moment(record.end, "HH:mm:ss"),
+ ],
+ })
+ } else {
+ form.setFieldsValue({
+ ...record,
+ type: record.items[0]?.type,
+ "unit": record.items[0]?.unit,
+ "period": record.items[0]?.period,
+ //segment:record.items[0].segment,
+ "limit": record.limit,
+ time_part: [
+ moment(record.start, "HH:mm:ss"),
+ moment(record.end, "HH:mm:ss"),
+ ],
+ })
+ }
+ }, [])
console.log(30, record)
return (
-
+
-
+
@@ -77,13 +162,13 @@ function TimePart(props) {
-
+
@@ -99,12 +184,12 @@ function TimePart(props) {
prev.interval !== next.interval}
+ shouldUpdate={(prev, next) => prev.type !== next.type}
>
{({ getFieldValue }) => {
- const type = getFieldValue("interval");
+ const type = getFieldValue("type");
switch (type) {
- case 1:
+ case 0:
return (
<>
@@ -150,18 +235,18 @@ function TimePart(props) {
case 2:
return (
-
+
/
-
+
);
- case 3:
+ case 1:
return (
-
+
);
@@ -170,16 +255,16 @@ function TimePart(props) {
prev.interval !== next.interval}
+ shouldUpdate={(prev, next) => prev.type !== next.type}
>
{({ getFieldValue }) => {
return (
- (getFieldValue("interval") === 1 ||
- getFieldValue("interval") === 2) && (
+ (getFieldValue("type") === 0 ||
+ getFieldValue("type") === 2) && (
diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/index.scss b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/index.scss
index 0a56be8..8349e7f 100644
--- a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/index.scss
+++ b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/index.scss
@@ -88,4 +88,9 @@ $color-primary: var(--color-primary);
.wenzi {
margin: -5px 13px 0 5px !important;
font-size: 25px;
+}
+.effectivedate-box {
+ border: 1px solid #8d8d8d;
+ padding: 12px;
+ margin-bottom: 24px;
}
\ No newline at end of file
diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/loadable.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/loadable.jsx
index 1340a3c..2b25945 100644
--- a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/loadable.jsx
+++ b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/loadable.jsx
@@ -71,61 +71,77 @@ function ChargeRulesMgm() {
{
ajax.getChargeRuleInfo({ id: record.id }).then((res) => {
- // res = {
- // "status": 20000,
- // "message": "success",
- // "data": {
- // "feeName": "凤凰山公园停车场旺季中型车",
- // "creatorName": "耿亮",
- // "createdTime": "2022-12-13 11:51:23",
- // "feeCode": "202212131150",
- // "operationId": "1777347430730653926",
- // "operationName": "公用事业集团",
- // "description": "免费15分钟4月20日-10月10日, \n小型车5元/小时,中型车8元/小时,大型车10元/小时\n",
- // "limit24hour": 0,
- // "freeTime": 15,
- // "freeTimeAbleF": [
- // 1
- // ],
- // "freeTimeAbleFName": "是",
- // "typeF": 0,
- // "typeFName": "否",
- // "evFreeTime": 0,
- // "evFreeTimeAble": 0,
- // "evFreeTimeAbleName": "否",
- // "property": {
- // "id": 120,
- // "freeTime": 15,
- // "freeTimeAble": 1,
- // "evFreeTime": 0,
- // "evFreeTimeAble": 0,
- // "limit24hour": "",
- // "rules": [
- // {
- // "unitDelay": 1,
- // "unitUp": 1,
- // "date": "2022-12-13",
- // "details": [
- // {
- // "start": "00:00:00",
- // "end": "00:00:00",
- // "limit": 0,
- // "items": [
- // {
- // "type": 2,
- // "threshold": 0,
- // "period": 60,
- // "unit": 8,
- // "segment": 1440
- // }
- // ]
- // }
- // ]
- // }
- // ]
- // }
- // }
- // }
+ res = {
+ "status": 20000,
+ "message": "success",
+ "data": {
+ "feeName": "凤凰山公园停车场旺季中型车",
+ "creatorName": "耿亮",
+ "createdTime": "2022-12-13 11:51:23",
+ "feeCode": "202212131150",
+ "operationId": "1777347430730653926",
+ "operationName": "公用事业集团",
+ "description": "免费15分钟4月20日-10月10日, \n小型车5元/小时,中型车8元/小时,大型车10元/小时\n",
+ "limit24hour": 0,
+ "freeTime": 15,
+ "freeTimeAbleF": [
+ 1
+ ],
+ "freeTimeAbleFName": "是",
+ "typeF": 0,
+ "typeFName": "否",
+ "evFreeTime": 0,
+ "evFreeTimeAble": 0,
+ "evFreeTimeAbleName": "否",
+ "property": {
+ "id": 120,
+ "freeTime": 15,
+ "freeTimeAble": 1,
+ "evFreeTime": 0,
+ "evFreeTimeAble": 0,
+ "limit24hour": "",
+ "rules": [
+ {
+ "unitDelay": 1,
+ "unitUp": 1,
+ "date": "2022-12-13",
+ "details": [
+ {
+ "start": "07:00:00",
+ "end": "13:00:00",
+ "limit": 0,
+ // "items": [
+ // {
+ // "type": 1,
+ // "threshold": 0,
+ // "period": 60,
+ // "unit": 8,
+ // "segment": 1440
+ // },
+ // {
+ // "type": 1,
+ // "threshold": 0,
+ // "period": 60,
+ // "unit": 8,
+ // "segment": 1440
+ // }
+ // ]
+ "items": [
+ {
+ "type": 1,
+ "threshold": 0,
+ "period": 60,
+ "unit": 2,
+ "segment": 120
+ },
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
if (res.status === 20000) {
console.log(res.data);
setAddModal({