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
71924fdc
authored
2025-01-08 13:21:41 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix : 分类分级
1 parent
3c2a1245
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
src/views/data_inventory/classifyGradeCatalogue.vue
src/views/data_inventory/classifyGradeCatalogue.vue
View file @
71924fd
...
...
@@ -32,6 +32,7 @@ import {
import
{
TableColumnWidth
}
from
"@/utils/enum"
;
import
router
from
"@/router"
;
import
{
download
}
from
"@/utils/common"
;
import
{
ca
}
from
"element-plus/es/locale"
;
const
currentPath
=
ref
<
string
[]
>
([]);
const
currentDatabasePath
=
ref
<
string
[]
>
([]);
...
...
@@ -1047,8 +1048,11 @@ const drawerBtnClick = async (btn, info) => {
const
params
:
any
=
[];
selectedRulesData
.
value
.
guids
.
forEach
((
item
:
any
)
=>
{
let
param
;
// 根据是否有 fieldValueRange 来决定如何构建参数对象
if
(
fieldValueRange
)
{
param
s
.
push
(
{
param
=
{
fieldPrecision
,
dictionaryGuid
,
isUnique
,
...
...
@@ -1057,9 +1061,9 @@ const drawerBtnClick = async (btn, info) => {
fieldValueRange
,
fieldGuid
:
item
,
execGuid
:
execGuidInfo
.
value
.
execGuid
}
)
}
;
}
else
{
param
s
.
push
(
{
param
=
{
fieldPrecision
,
dictionaryGuid
,
isUnique
,
...
...
@@ -1069,9 +1073,18 @@ const drawerBtnClick = async (btn, info) => {
execGuid
:
execGuidInfo
.
value
.
execGuid
,
startValue
,
endValue
})
};
}
// 检查参数的有效性,如果无效则清空 params 数组
if
(
isValidParam
(
param
))
{
params
.
push
(
param
);
}
else
{
params
.
length
=
0
;
// 清空数组
}
});
try
{
const
res
:
any
=
await
saveBizRuleConfig
(
params
);
if
(
res
.
code
==
proxy
.
$passCode
)
{
btn
.
loading
=
false
;
...
...
@@ -1089,8 +1102,17 @@ const drawerBtnClick = async (btn, info) => {
btn
.
loading
=
false
;
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
}
catch
(
error
)
{
btn
.
loading
=
false
;
}
}
}
// 辅助函数:检查对象的除 `fieldGuid` 和 `execGuid` 外的字段是否为空
const
isValidParam
=
(
param
)
=>
{
const
{
fieldGuid
,
execGuid
,
...
rest
}
=
param
;
return
Object
.
values
(
rest
).
some
(
value
=>
value
!==
null
&&
value
!==
undefined
&&
value
!==
''
);
}
const
drawerSelectChange
=
(
val
,
row
,
info
)
=>
{
console
.
log
(
'drawerSelectChange'
,
val
,
row
,
info
);
...
...
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