浏览代码

feat : add syncToBI

zhengjie 4 月之前
父节点
当前提交
486ce0042f

+ 7 - 1
src/app/pages/IndexDefine/components/IndexCreator.jsx

@@ -12,7 +12,7 @@ import {
   ProFormSelect, ProFormTextArea
 } from "@ant-design/pro-components";
 import {AtomicIndexForm} from "./AtomicIndexForm";
-import {FORM_TYPE, INDEX_TYPE, INVOKE_TYPE, PERSISTENCE_WAY, SENSITIVE, TIME_MODE} from "../constants";
+import {FORM_TYPE, INDEX_TYPE, INVOKE_TYPE, PERSISTENCE_WAY, SENSITIVE, TIME_MODE, CONFIRM_STATUS} from "../constants";
 import {DerivedIndexForm} from "./DerivedIndexForm";
 import {CompositeIndexForm} from "./CompositeIndexForm";
 import {useAppDispatch, useAppSelector} from "../../../../redux/configureStore";
@@ -295,6 +295,12 @@ const component = forwardRef(({
                     options={PERSISTENCE_WAY}
                     rules={[{ required: true }]}
                   />
+                  <ProFormRadio.Group 
+                    name="syncToBI"
+                    label={t("formItem.syncToBI")}
+                    options={CONFIRM_STATUS}
+                    rules={[{ required: true }]}
+                  />
                 </>
             }
           </ProFormDependency>

+ 11 - 0
src/app/pages/IndexDefine/constants.js

@@ -55,6 +55,17 @@ export const PUBLISH_STATUS = {
   1: "已发布",
 }
 
+export const CONFIRM_STATUS = [
+  {
+    label:"否",
+    value:'0'
+  },
+  {
+    label:"是",
+    value:'1'
+  }
+]
+
 export const SENSITIVE = {
   0: "低",
   1: "普通",

+ 1 - 0
src/app/pages/IndexDefine/index.jsx

@@ -454,6 +454,7 @@ export const IndexDefine = () => {
       }
       commonRef.current.indexCreator = {
         ...item,
+        syncToBI: item.syncToBI?item.syncToBI:0,
         sensitiveLevel:`${sensitiveLevel}`,
         measure:bizName,
         relateDimension:relateDimension.drillDownDimensions.filter((item)=>item.dimensionId!==dateDimId).map(item=>item.dimensionId)

+ 2 - 1
src/locales/zh/translation.json

@@ -271,7 +271,8 @@
       "isPublish": "发布状态",
       "invokeWay": "调度方式",
       "startTime": "开始时间",
-      "incrementPeriod": "增量周期"
+      "incrementPeriod": "增量周期",
+      "syncToBI": "是否同步BI"
     },
     "placeholder": {
       "input": "请输入",