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
76a078a8
authored
2025-01-13 17:38:14 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 查看规则详情
1 parent
e12d0c17
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/data_quality/ruleForm.vue
src/views/data_quality/ruleForm.vue
View file @
76a078a
...
...
@@ -163,7 +163,7 @@ const rulesListByType: any = computed(() => {
// json: checkRulesList.value.filter(r => r.value == ''),
tinyint
:
checkRulesList
.
value
.
filter
(
r
=>
r
.
value
==
'length_rule'
||
r
.
value
==
'num_value_rule'
||
r
.
value
==
'custom_regular_rule'
),
time
:
checkRulesList
.
value
.
filter
(
r
=>
r
.
value
==
'length_rule'
||
r
.
value
==
'custom_regular_rule'
),
bit
:
checkRulesList
.
value
.
filter
(
r
=>
r
.
value
==
'length_rule'
||
r
.
value
==
'ch_rule'
||
r
.
value
==
'en_rule'
||
r
.
value
==
'custom_regular_rule'
)
,
bit
:
checkRulesList
.
value
.
filter
(
r
=>
r
.
value
==
'length_rule'
||
r
.
value
==
'ch_rule'
||
r
.
value
==
'en_rule'
||
r
.
value
==
'custom_regular_rule'
)
}
});
...
...
@@ -188,7 +188,7 @@ onBeforeMount(() => {
}
if
(
props
.
smallCategoryList
?.
length
)
{
let
p
=
panelList
.
value
[
1
];
if
(
p
.
default
)
{
if
(
p
.
default
&&
!
props
.
readonly
)
{
if
(
p
.
default
==
'1'
)
{
//规范性
panelList
.
value
[
2
].
options
=
props
.
smallCategoryList
.
slice
(
0
,
6
);
}
else
if
(
p
.
default
==
'2'
)
{
...
...
@@ -2395,7 +2395,7 @@ defineExpose({
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"checkRule"
label
=
"选择检验规则"
width
=
"150px"
align
=
"left"
show
-
overflow
-
tooltip
>
<
template
#
default
=
"scope"
>
<
el
-
select
v
-
if
=
"!props.readonly
|| (scope.row.dataType == 'text' || scope.row.dataType == 'json')
"
<
el
-
select
v
-
if
=
"!props.readonly"
v
-
model
=
"scope.row['checkRule']"
placeholder
=
"请选择"
filterable
clearable
>
<
el
-
option
v
-
for
=
"opt in (rulesListByType[scope.row.dataType] || checkRulesList)"
:
key
=
"opt['value']"
:
label
=
"opt['label']"
:
value
=
"opt['value']"
/>
...
...
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