소스 검색

加入选择点位自动填写单位

valentichu 1 년 전
부모
커밋
3ddfb79d93
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 0
      lib/index.js
  2. 8 1
      src/pages/Alarm/components/easy.jsx

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
lib/index.js


+ 8 - 1
src/pages/Alarm/components/easy.jsx

@@ -382,6 +382,7 @@ const Easy = (props, ref) => {
     form.setFieldsValue({
       name: e.value.split("<==>")[0],
       point_id: e.key,
+      unit: e.value.split("<==>")[3],
     });
   };
 
@@ -494,7 +495,13 @@ const Easy = (props, ref) => {
             return (
               <Select.Option
                 value={
-                  item.name + "<==>" + item.defer_unit + "<==>" + item.point_id
+                  item.name +
+                  "<==>" +
+                  item.defer_unit +
+                  "<==>" +
+                  item.point_id +
+                  "<==>" +
+                  item.unit
                 }
                 key={item.point_id}
               >

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.