|
|
@@ -7,22 +7,46 @@ function Home(props) {
|
|
|
|
|
|
return (
|
|
|
<>
|
|
|
- <Alarm.DetailModal
|
|
|
+ {/* <Alarm.DetailModal
|
|
|
open={open}
|
|
|
onCancel={() => setOpen(false)}
|
|
|
- options={{ ruleId: 25 }}
|
|
|
+ // options={{ ruleId: 25 }}
|
|
|
+ options={{
|
|
|
+ detail: {
|
|
|
+ alarm_level: 1,
|
|
|
+ confirmed_oper_id: 0,
|
|
|
+ confirmed_oper_name: "",
|
|
|
+ confirmed_time: "",
|
|
|
+ created_time: "2024-09-20 17:59:13",
|
|
|
+ duration: 234078,
|
|
|
+ group_name: "",
|
|
|
+ id: 249386,
|
|
|
+ name: "ZWB_告警功能测试_冷机_冷机1_累计能耗超下下限(值30.00; 限值40)",
|
|
|
+ op_status: 2,
|
|
|
+ point_id: "ZWB_ALARM_chr_4_AE",
|
|
|
+ point_name: "",
|
|
|
+ recovery_time: "",
|
|
|
+ remark: "",
|
|
|
+ rule_id: 70,
|
|
|
+ status: 1,
|
|
|
+ sub_type: 14,
|
|
|
+ type: 1,
|
|
|
+ unit: "",
|
|
|
+ value: 30,
|
|
|
+ },
|
|
|
+ }}
|
|
|
// options={{
|
|
|
// pointId: "ABC123_AAA_chr1_AEff_MIN_H",
|
|
|
// }}
|
|
|
- ></Alarm.DetailModal>
|
|
|
- {/* <Alarm.ComplexConfig ref={compRef} editId={-1}></Alarm.ComplexConfig>
|
|
|
- <button onClick={() => compRef?.current?.ok()}>测试</button> */}
|
|
|
- {/* <Alarm.EasyConfig
|
|
|
+ ></Alarm.DetailModal> */}
|
|
|
+ {/* <Alarm.ComplexConfig ref={compRef} editId={-1}></Alarm.ComplexConfig> */}
|
|
|
+ <button onClick={() => compRef?.current?.ok()}>测试</button>
|
|
|
+ <Alarm.EasyConfig
|
|
|
ref={compRef}
|
|
|
- // pointId="ZWB_ALARM_chr_5_AE"
|
|
|
+ // pointId="ZWB_ALARM_chr_2_AQ"
|
|
|
// readonly
|
|
|
- editId={-1}
|
|
|
- ></Alarm.EasyConfig> */}
|
|
|
+ editId={94}
|
|
|
+ ></Alarm.EasyConfig>
|
|
|
</>
|
|
|
);
|
|
|
}
|