|
@@ -9,6 +9,7 @@ import { Modal, Button, Radio } from "antd";
|
|
|
import styles from "./easy.module.less";
|
|
import styles from "./easy.module.less";
|
|
|
import API2 from "../../../api/alarm";
|
|
import API2 from "../../../api/alarm";
|
|
|
import { useMemoizedFn } from "ahooks";
|
|
import { useMemoizedFn } from "ahooks";
|
|
|
|
|
+import { DownOutlined, UpOutlined } from "@ant-design/icons";
|
|
|
|
|
|
|
|
function TranslateText(arr) {
|
|
function TranslateText(arr) {
|
|
|
const dtLanguage = localStorage.getItem("dtLanguage");
|
|
const dtLanguage = localStorage.getItem("dtLanguage");
|
|
@@ -496,12 +497,12 @@ const Easy = (props, ref) => {
|
|
|
<Select.Option
|
|
<Select.Option
|
|
|
value={
|
|
value={
|
|
|
item.name +
|
|
item.name +
|
|
|
- "<==>" +
|
|
|
|
|
- item.defer_unit +
|
|
|
|
|
- "<==>" +
|
|
|
|
|
- item.point_id +
|
|
|
|
|
- "<==>" +
|
|
|
|
|
- item.unit || ''
|
|
|
|
|
|
|
+ "<==>" +
|
|
|
|
|
+ item.defer_unit +
|
|
|
|
|
+ "<==>" +
|
|
|
|
|
+ item.point_id +
|
|
|
|
|
+ "<==>" +
|
|
|
|
|
+ item.unit || ""
|
|
|
}
|
|
}
|
|
|
key={item.point_id}
|
|
key={item.point_id}
|
|
|
>
|
|
>
|
|
@@ -544,7 +545,7 @@ const Easy = (props, ref) => {
|
|
|
<Form.Item
|
|
<Form.Item
|
|
|
label={TranslateText(["告警值", "Alarm value"])}
|
|
label={TranslateText(["告警值", "Alarm value"])}
|
|
|
name="alarm_value"
|
|
name="alarm_value"
|
|
|
- required={false}
|
|
|
|
|
|
|
+ required={true}
|
|
|
rules={[
|
|
rules={[
|
|
|
{
|
|
{
|
|
|
required: true,
|
|
required: true,
|
|
@@ -775,6 +776,7 @@ const Easy = (props, ref) => {
|
|
|
}}
|
|
}}
|
|
|
>
|
|
>
|
|
|
更多
|
|
更多
|
|
|
|
|
+ <DownOutlined></DownOutlined>
|
|
|
</Button>
|
|
</Button>
|
|
|
}
|
|
}
|
|
|
></Form.Item>
|
|
></Form.Item>
|
|
@@ -896,6 +898,21 @@ const Easy = (props, ref) => {
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
</>
|
|
</>
|
|
|
)}
|
|
)}
|
|
|
|
|
+
|
|
|
|
|
+ {showMore && (
|
|
|
|
|
+ <Form.Item
|
|
|
|
|
+ label={
|
|
|
|
|
+ <Button
|
|
|
|
|
+ type="link"
|
|
|
|
|
+ onClick={() => {
|
|
|
|
|
+ setShowMore(false);
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
|
|
+ 收起<UpOutlined></UpOutlined>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ }
|
|
|
|
|
+ ></Form.Item>
|
|
|
|
|
+ )}
|
|
|
</Form>
|
|
</Form>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|