Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4e06bf62
authored
2024-12-06 09:50:32 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交规范校验规则
1 parent
79dca67c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
2 deletions
src/layouts/index.vue
src/views/data_quality/ruleForm.vue
src/views/data_quality/ruleModel.vue
src/views/data_quality/ruleModelEdit.vue
src/views/data_quality/ruleTemplate.vue
src/layouts/index.vue
View file @
4e06bf6
...
...
@@ -288,8 +288,8 @@ const getMsgCnt = () => {
}
onMounted
(()
=>
{
getMsgCnt
();
createServerConnect
();
//
getMsgCnt();
//
createServerConnect();
});
</
script
>
...
...
src/views/data_quality/ruleForm.vue
View file @
4e06bf6
This diff is collapsed.
Click to expand it.
src/views/data_quality/ruleModel.vue
View file @
4e06bf6
...
...
@@ -332,6 +332,33 @@ const transformRulesInfo = (info: any) => {
})]
}));
}
}
else
if
(
info
.
ruleCode
==
'norm_check'
)
{
let
subjectTables
=
toSubjectTables
.
value
;
for
(
const
ds
in
info
.
ruleFields
)
{
let
fields
=
info
.
ruleFields
[
ds
];
let
tableInfo
=
subjectTables
.
find
(
t
=>
t
.
enName
===
ds
);
modelRules
.
push
(
Object
.
assign
({},
{
modelGroupGuid
:
modelGroupGuid
.
value
,
name
:
tableInfo
.
chName
,
subjectName
:
tableInfo
.
enName
,
subjectGuid
:
tableInfo
.
guid
,
dataSourceGuid
:
tableInfo
.
dataSourceGuid
,
databaseName
:
tableInfo
.
dataServerName
,
modelRuleConfList
:
[
Object
.
assign
({},
info
,
{
ruleField
:
fields
.
map
(
f
=>
{
return
{
guid
:
f
.
guid
,
enName
:
f
.
enName
,
chName
:
f
.
chName
,
dataType
:
f
.
dataType
,
checkRule
:
f
.
checkRule
,
configValue
:
f
.
configValue
}
}),
ruleFields
:
''
})]
}));
}
}
else
if
(
info
.
ruleCode
==
'ref_integrality'
)
{
let
subjectTables
=
toSubjectTables
.
value
;
info
.
ruleFields
.
forEach
(
row
=>
{
...
...
src/views/data_quality/ruleModelEdit.vue
View file @
4e06bf6
...
...
@@ -140,6 +140,25 @@ const transformRulesInfo = (info: any) => {
}),
ruleFields
:
''
});
}
else
if
(
info
.
ruleCode
==
'norm_check'
)
{
let
subjectName
=
detailInfo
.
value
.
subjectName
;
let
fields
=
info
.
ruleFields
[
subjectName
];
return
Object
.
assign
({},
info
,
{
guid
:
ruleGuid
,
qualityModelGuid
:
detailInfo
.
value
.
qualityModelGuid
,
ruleCode
:
detailInfo
.
value
.
ruleCode
,
ruleField
:
fields
.
map
(
f
=>
{
return
{
guid
:
f
.
guid
,
enName
:
f
.
enName
,
chName
:
f
.
chName
,
dataType
:
f
.
dataType
,
checkRule
:
f
.
checkRule
,
configValue
:
f
.
configValue
}
}),
ruleFields
:
''
});
}
else
if
(
info
.
ruleCode
==
'ref_integrality'
)
{
return
Object
.
assign
({},
info
,
{
guid
:
ruleGuid
,
...
...
src/views/data_quality/ruleTemplate.vue
View file @
4e06bf6
...
...
@@ -135,6 +135,24 @@ const transformRulesInfo = (info) => {
}),
ruleFields
:
''
});
}
else
if
(
info
.
ruleCode
==
'norm_check'
)
{
let
subjectName
=
modelDetailInfo
.
value
.
subjectName
;
let
fields
=
info
.
ruleFields
[
subjectName
];
return
Object
.
assign
({},
info
,
{
qualityModelGuid
:
modelGuid
,
ruleCode
:
info
.
ruleCode
,
ruleField
:
fields
.
map
(
f
=>
{
return
{
guid
:
f
.
guid
,
enName
:
f
.
enName
,
chName
:
f
.
chName
,
dataType
:
f
.
dataType
,
checkRule
:
f
.
checkRule
,
configValue
:
f
.
configValue
}
}),
ruleFields
:
''
});
}
else
if
(
info
.
ruleCode
==
'ref_integrality'
)
{
return
Object
.
assign
({},
info
,
{
qualityModelGuid
:
modelGuid
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment