valentichu 3 weken geleden
bovenliggende
commit
b5761f1b91

File diff suppressed because it is too large
+ 0 - 0
lib/index.js


+ 2 - 2
src/pages/Alarm/components/complex.jsx

@@ -187,12 +187,12 @@ const Complex = (props, ref) => {
 
   const columns = [
     {
-      title: TranslateText(["点位编号", "Point id"]),
+      title: TranslateText(["点位编号", "Point Id"]),
       dataIndex: "point_id",
       ellipsis: true,
     },
     {
-      title: TranslateText(["点位名称", "Point name"]),
+      title: TranslateText(["点位名称", "Point Name"]),
       dataIndex: "name",
       ellipsis: true,
     },

+ 1 - 1
src/pages/Alarm/components/components/AlarmConfirm/index.jsx

@@ -59,7 +59,7 @@ const Index = (props) => {
   return (
     <Modal
       width={500}
-      title={TranslateText(["告警确认", "Alarm Confirm"])}
+      title={TranslateText(["告警确认", "Confirm Alarm"])}
       open={props.open}
       confirmLoading={loading}
       onOk={onModalOk}

+ 6 - 1
src/pages/Alarm/components/components/AlarmDetail/index.jsx

@@ -318,6 +318,11 @@ const Index = (props) => {
     dayjs(props.data?.data?.created_time).subtract(20, "minute"),
     dayjs(props.data?.data?.created_time).add(20, "minute"),
   ]);
+  const labelWidth =
+    typeof localStorage !== "undefined" &&
+    localStorage.getItem("dtLanguage") === "en"
+      ? 102
+      : 72;
   const fetchData = useMemoizedFn(async () => {
     if (
       props.data?.data?.rule_id === null ||
@@ -429,7 +434,7 @@ const Index = (props) => {
             margin: "0px 0px",
             width: "calc(100% - 287px)",
           }}
-          labelStyle={{ width: 72 }}
+          labelStyle={{ width: labelWidth }}
         >
           <Descriptions.Item
             span={3}

+ 6 - 6
src/pages/Alarm/components/components/AlarmHistory/index.jsx

@@ -223,7 +223,7 @@ const Index = (props) => {
     //     `${(paginationProps.current - 1) * (paginationProps.pageSize) + (index + 1)}`
     // },
     {
-      title: TranslateText(["告警时间", "Alarm time"]),
+      title: TranslateText(["告警时间", "Alarm Time"]),
       width: 180,
       dataIndex: "created_time",
       fixed: "left",
@@ -233,7 +233,7 @@ const Index = (props) => {
           : TranslateText(["暂无", "None"]),
     },
     {
-      title: TranslateText(["告警名称", "Alarm name"]),
+      title: TranslateText(["告警名称", "Alarm Name"]),
       dataIndex: "name",
       ellipsis: true,
       width: 400,
@@ -261,7 +261,7 @@ const Index = (props) => {
       },
     },
     {
-      title: TranslateText(["持续时间", "duration"]),
+      title: TranslateText(["持续时间", "Duration"]),
       dataIndex: "duration",
       width: 180,
       render: (text, record) => {
@@ -308,8 +308,8 @@ const Index = (props) => {
     {
       title: () => {
         return (
-          <Tooltip title={TranslateText(["确认人", "Confirm person"])}>
-            <span>{TranslateText(["确认人", "Confirm person"])}</span>
+          <Tooltip title={TranslateText(["确认人", "Confirmd By"])}>
+            <span>{TranslateText(["确认人", "Confirmd By"])}</span>
           </Tooltip>
         );
       },
@@ -324,7 +324,7 @@ const Index = (props) => {
       width: 100,
     },
     {
-      title: TranslateText(["确认时间", "Confirm time"]),
+      title: TranslateText(["确认时间", "Confirmed At"]),
       dataIndex: "confirmed_time",
       width: 180,
       render: (text, record) =>

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

@@ -199,7 +199,7 @@ const Detail = (props) => {
                 )} */}
                 {current === "history" && !props.noSettings && (
                   <Button onClick={props?.onSetting} style={{ marginLeft: 10 }}>
-                    告警配置
+                    {TranslateText(["告警配置", "Alarm config"])}
                   </Button>
                 )}
               </div>

+ 23 - 10
src/pages/Alarm/components/easy.jsx

@@ -598,7 +598,11 @@ const Easy = (props, ref) => {
               <div>
                 <Space size={8}>
                   <div className={styles.itemContainer}>
-                    {!!ah && <div className={styles.label}>{TranslateText(["上限", "Upper Limit"])}</div>}
+                    {!!ah && (
+                      <div className={styles.label}>
+                        {TranslateText(["上限", "Upper Limit"])}
+                      </div>
+                    )}
                     <Form.Item
                       name="ah_value"
                       key={ahEnable}
@@ -642,7 +646,11 @@ const Easy = (props, ref) => {
                     className={styles.itemContainer}
                     style={{ marginLeft: 8 }}
                   >
-                    {!!ahh && <div className={styles.label}>{TranslateText(["上上限", "Ultra Upper Limit"])}</div>}
+                    {!!ahh && (
+                      <div className={styles.label}>
+                        {TranslateText(["上上限", "Ultra Upper Limit"])}
+                      </div>
+                    )}
                     <Form.Item
                       name="ahh_value"
                       key={ahhEnable}
@@ -693,7 +701,11 @@ const Easy = (props, ref) => {
               <div style={{ marginTop: 10 }}>
                 <Space size={8}>
                   <div className={styles.itemContainer}>
-                    {!!al && <div className={styles.label}>{TranslateText(["下限", "Lower Limit"])}</div>}
+                    {!!al && (
+                      <div className={styles.label}>
+                        {TranslateText(["下限", "Lower Limit"])}
+                      </div>
+                    )}
                     <Form.Item
                       name="al_value"
                       key={alEnable}
@@ -738,7 +750,11 @@ const Easy = (props, ref) => {
                     className={styles.itemContainer}
                     style={{ marginLeft: 8 }}
                   >
-                    {!!all && <div className={styles.label}>{TranslateText(["下下限", "Ultra Lower Limit"])}</div>}
+                    {!!all && (
+                      <div className={styles.label}>
+                        {TranslateText(["下下限", "Ultra Lower Limit"])}
+                      </div>
+                    )}
                     <Form.Item
                       name="all_value"
                       key={allEnable}
@@ -813,7 +829,7 @@ const Easy = (props, ref) => {
         <Form.Item label={TranslateText(["启用状态", "Enable"])} name="status">
           <Switch size={"small"} />
         </Form.Item>
-        
+
         <Form.Item
           label={TranslateText(["单位", "Unit"])}
           name="unit"
@@ -830,10 +846,7 @@ const Easy = (props, ref) => {
           />
         </Form.Item>
 
-        <Form.Item
-          label={TranslateText(["告警组", "Group"])}
-          name={"group_id"}
-        >
+        <Form.Item label={TranslateText(["告警组", "Group"])} name={"group_id"}>
           <Select
             style={{ width: 200 }}
             options={[
@@ -916,7 +929,7 @@ const Easy = (props, ref) => {
               status === 1 &&
               !isDisabled && (
                 <div style={{ color: "var(--dt-error-color1)" }}>
-                  请输入数字
+                  {TranslateText(["请输入数字", "Please input number"])}
                 </div>
               )}
           </div>

Some files were not shown because too many files changed in this diff