valentichu пре 1 година
родитељ
комит
5a06b580cd
4 измењених фајлова са 16 додато и 6 уклоњено
  1. 0 0
      lib/index.js
  2. 6 2
      src/App.jsx
  3. 5 0
      src/pages/Alarm/components/complex.module.less
  4. 5 4
      src/pages/Alarm/components/easy.jsx

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
lib/index.js


+ 6 - 2
src/App.jsx

@@ -45,8 +45,12 @@ function Home(props) {
         // //   pointId: "ABC123_AAA_chr1_AEff_MIN_H",
         // // }}
       ></Alarm.DetailModal> */}
-      {/* <Alarm.ComplexConfig ref={compRef} editId={-1} showList></Alarm.ComplexConfig>
-      <button onClick={() => compRef?.current?.ok()}>测试</button>
+      {/* <Alarm.ComplexConfig
+        ref={compRef}
+        editId={-1}
+        showList
+      ></Alarm.ComplexConfig>
+      <button onClick={() => compRef?.current?.ok()}>测试</button> */}
       {/* <div style={{ padding: 30 }}>
         <Alarm.EasyConfig
           ref={compRef}

+ 5 - 0
src/pages/Alarm/components/complex.module.less

@@ -53,6 +53,7 @@
       display: flex;
       width: 100%;
       height: 100%;
+      box-sizing: border-box;
 
       .left {
         padding-top: 16px;
@@ -94,5 +95,9 @@
     .ant-empty-normal {
       height: 540px;
     }
+
+    .ant-table-wrapper .ant-table-pagination.ant-pagination {
+      margin-top: 100px;
+    }
   }
 }

+ 5 - 4
src/pages/Alarm/components/easy.jsx

@@ -597,7 +597,7 @@ const Easy = (props, ref) => {
               <div>
                 <Space size={8}>
                   <div className={styles.itemContainer}>
-                    {ah && <div className={styles.label}>上限</div>}
+                    {!!ah && <div className={styles.label}>上限</div>}
                     <Form.Item
                       name="ah_value"
                       key={ahEnable}
@@ -641,7 +641,7 @@ const Easy = (props, ref) => {
                     className={styles.itemContainer}
                     style={{ marginLeft: 8 }}
                   >
-                    {ahh && <div className={styles.label}>上上限</div>}
+                    {!!ahh && <div className={styles.label}>上上限</div>}
                     <Form.Item
                       name="ahh_value"
                       key={ahhEnable}
@@ -692,7 +692,7 @@ const Easy = (props, ref) => {
               <div style={{ marginTop: 10 }}>
                 <Space size={8}>
                   <div className={styles.itemContainer}>
-                    {al && <div className={styles.label}>下限</div>}
+                    {!!al && <div className={styles.label}>下限</div>}
                     <Form.Item
                       name="al_value"
                       key={alEnable}
@@ -737,7 +737,7 @@ const Easy = (props, ref) => {
                     className={styles.itemContainer}
                     style={{ marginLeft: 8 }}
                   >
-                    {all && <div className={styles.label}>下下限</div>}
+                    {!!all && <div className={styles.label}>下下限</div>}
                     <Form.Item
                       name="all_value"
                       key={allEnable}
@@ -821,6 +821,7 @@ const Easy = (props, ref) => {
                 onClick={() => {
                   setShowMore(true);
                 }}
+                style={{ marginLeft: -16 }}
               >
                 更多
                 <DownOutlined></DownOutlined>

Неке датотеке нису приказане због велике количине промена