Преглед на файлове

修改告警详情边距

valentichu преди 1 година
родител
ревизия
c6ebeddd1a
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 0 0
      lib/index.js
  2. 2 2
      src/pages/Alarm/components/components/AlarmDetail/index.jsx
  3. 1 1
      src/pages/Alarm/components/easy.jsx

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
lib/index.js


+ 2 - 2
src/pages/Alarm/components/components/AlarmDetail/index.jsx

@@ -330,7 +330,7 @@ const Index = (props) => {
   return (
     <>
       <div className={styles.desc}>
-        <Descriptions column={4} style={{ margin: "20px 20px 0px" }}>
+        <Descriptions column={4} style={{ margin: "0px 20px" }}>
           <Descriptions.Item span={2} label="告警名称">
             {props.data?.data?.name}
           </Descriptions.Item>
@@ -384,7 +384,7 @@ const Index = (props) => {
 
           {chartData && (
             <ReactECharts
-              style={{ height: "calc(100% - 250px)" }}
+              style={{ height: "calc(100% - 230px)" }}
               option={chartData}
               notMerge={true}
             />

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

@@ -39,7 +39,7 @@ const Easy = (props, ref) => {
   const [status, setStatus] = useState(2);
   const [dateTime, setDateTime] = useState(null);
   const [subType, setSubType] = useState();
-  const [isDisabled, setIsDisabled] = useState(true);
+  const [isDisabled, setIsDisabled] = useState(false);
   const [loading, setLoading] = useState(false);
   const [ahhEnable, setAhhEnable] = useState(false);
   const [ahEnable, setAhEnable] = useState(false);

Някои файлове не бяха показани, защото твърде много файлове са промени