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
afee3a24
authored
2025-01-11 13:08:12 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
61157630
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
src/views/data_quality/ruleForm.vue
src/views/data_quality/ruleModel.vue
src/views/data_quality/ruleForm.vue
View file @
afee3a2
...
...
@@ -654,7 +654,7 @@ const getSubjectTableTreeData = () => {
d
.
children
=
d
.
children
?.
map
(
child
=>
{
child
.
label
=
child
.
name
+
`(
${
child
.
tableName
}
)`
;
child
.
isLeaf
=
true
;
child
.
dataServerName
=
d
.
n
ame
;
child
.
dataServerName
=
child
.
databaseN
ame
;
child
.
dataSourceGuid
=
d
.
guid
;
return
child
;
})
...
...
@@ -1778,13 +1778,13 @@ const submitValueRange = () => {
let
valueTableFields
=
valueRangeTableListData
.
value
[
table
];
let
ruleFields
:
any
=
[]
for
(
const
field
of
valueTableFields
)
{
if
(
field
.
startValue
==
null
&&
field
.
endValue
==
null
)
{
if
(
dialogSelectSubjectTable
.
value
.
enName
!=
table
)
{
valueCheckFormListRef
.
value
.
setSelectList
(
table
,
'enName'
);
}
ElMessage
.
error
(
`表【
${
table
}
】的字段【
${
field
.
enName
}
】设置了值域,但范围未填写完整`
);
return
;
}
//
if (field.startValue == null && field.endValue == null) {
//
if (dialogSelectSubjectTable.value.enName != table) {
//
valueCheckFormListRef.value.setSelectList(table, 'enName');
//
}
//
ElMessage.error(`表【${table}】的字段【${field.enName}】设置了值域,但范围未填写完整`);
//
return;
//
}
if
(
field
.
startValue
!=
null
||
field
.
endValue
!=
null
)
{
ruleFields
.
push
(
field
);
}
else
if
(
field
.
dataRange
)
{
...
...
src/views/data_quality/ruleModel.vue
View file @
afee3a2
...
...
@@ -94,7 +94,7 @@ const getSubjectTableTreeData = () => {
d
.
label
=
d
.
name
;
d
.
children
=
d
.
children
?.
map
(
child
=>
{
child
.
label
=
child
.
name
+
`(
${
child
.
tableName
}
)`
;
child
.
dataServerName
=
d
.
n
ame
;
child
.
dataServerName
=
child
.
databaseN
ame
;
child
.
dataSourceGuid
=
d
.
guid
;
return
child
;
})
...
...
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