hi-cactus! 3 лет назад
Родитель
Сommit
9b578840c3

+ 29 - 4
app/containers/DataGovernanceMarkRule/components/AuditClassificationFormModal.tsx

@@ -65,10 +65,11 @@ export const AuditClassificationFormModal = (
       title: '规则名称',
       dataIndex: 'ruleName'
     },
-    {
-      title: '检测类型',
-      dataIndex: 'inspectionType'
-    },
+    // {
+    //   title: '检测类型',
+    //   dataIndex: 'inspectionType',
+    //   render: (t) => t
+    // },
     {
       title: '规则描述',
       dataIndex: 'ruleDesc'
@@ -194,6 +195,30 @@ export const AuditClassificationFormModal = (
             pagination={false}
           />
         </TabPane>
+        <TabPane tab="规范性" key={'normative'}>
+          <Table
+            bordered
+            rowKey={'id'}
+            loading={tableLoading}
+            dataSource={auditClassification.filter(
+              (o) => o.inspectionType === InspectionType.normative
+            )}
+            columns={tableColumns}
+            pagination={false}
+          />
+        </TabPane>
+        <TabPane tab="准确性" key={'accuracy'}>
+          <Table
+            bordered
+            rowKey={'id'}
+            loading={tableLoading}
+            dataSource={auditClassification.filter(
+              (o) => o.inspectionType === InspectionType.accuracy
+            )}
+            columns={tableColumns}
+            pagination={false}
+          />
+        </TabPane>
       </Tabs>
       <RuleFormModal
         visible={formVisible}

+ 6 - 0
app/containers/DataGovernanceMarkRule/components/RuleFormModal.tsx

@@ -176,6 +176,12 @@ class RuleFormModal extends React.PureComponent<IRuleFormModalProps> {
                 {inspectionType === 'uniformity' && (
                   <Radio value="">自定义</Radio>
                 )}
+                {inspectionType === 'normative' && (
+                  <Radio value="null_data">空值</Radio>
+                )}
+                {inspectionType === 'accuracy' && (
+                  <Radio value="repeat_data">重复数据</Radio>
+                )}
               </Radio.Group>
             )}
           </FormItem>