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
0cf12b6f
authored
2025-01-10 00:10:27 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
b288dae2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
src/views/data_inventory/classifyGradeCatalogue.vue
src/views/data_inventory/configureRules.vue
src/views/data_inventory/classifyGradeCatalogue.vue
View file @
0cf12b6
...
...
@@ -1344,7 +1344,7 @@ const getDataBaseTableData = async (params = {}) => {
const
dataBaseParams
=
{
pageIndex
:
dataBasePage
.
value
.
curr
,
pageSize
:
dataBasePage
.
value
.
limit
,
isDataAsset
:
checked
.
value
?
'Y'
:
'
N
'
,
isDataAsset
:
checked
.
value
?
'Y'
:
''
,
execGuid
:
execGuidInfo
.
value
.
execGuid
,
tableGuid
:
tableGuid
.
value
||
selectedB
.
value
||
''
,
databaseGuid
:
dataBaseGuid
.
value
||
selectedA
.
value
||
''
,
...
...
src/views/data_inventory/configureRules.vue
View file @
0cf12b6
...
...
@@ -49,7 +49,7 @@ const getBizRuleConfigDetailData = async () => {
}
}
})
console
.
log
(
'tableData'
,
tableData
.
value
)
tableFieldsLoading
.
value
=
false
}
else
{
...
...
@@ -273,7 +273,6 @@ const saveRow = (row) => {
}
if
(
tableData
.
value
.
find
((
item
:
any
)
=>
item
.
fieldGuid
===
row
.
fieldGuid
))
{
console
.
log
(
'tempRowData.value'
)
tableData
.
value
.
forEach
(
item
=>
{
if
(
item
.
fieldGuid
===
row
.
fieldGuid
)
{
item
.
fieldLengthCondition
=
fieldLengthCondition
...
...
@@ -284,6 +283,12 @@ const saveRow = (row) => {
item
.
notNull
=
tempRow
.
notNull
}
});
// 更新 tempRowData 中保存的数据
const
tempRowIndex
=
tempRowData
.
value
.
findIndex
((
item
)
=>
item
.
fieldGuid
===
row
.
fieldGuid
);
if
(
tempRowIndex
!==
-
1
)
{
// 更新 tempRowData 为保存后的数据
tempRowData
.
value
[
tempRowIndex
]
=
{
...
row
};
}
}
row
.
isEdit
=
false
}
...
...
@@ -411,11 +416,11 @@ const cancelEdit = (row) => {
tableData
.
value
.
forEach
((
item
)
=>
{
if
(
item
.
fieldGuid
===
tempRow
.
fieldGuid
)
{
// 恢复原始数据
row
.
fieldLengthCondition
=
item
.
fieldLengthCondition
;
row
.
fieldPrecision
=
item
.
fieldPrecision
;
row
.
isUnique
=
item
.
isUnique
;
row
.
notNull
=
item
.
notNull
;
row
.
fieldValueRange
=
item
.
fieldValueRange
;
item
.
fieldLengthCondition
=
tempRow
.
fieldLengthCondition
;
item
.
fieldPrecision
=
tempRow
.
fieldPrecision
;
item
.
isUnique
=
tempRow
.
isUnique
;
item
.
notNull
=
tempRow
.
notNull
;
item
.
fieldValueRange
=
tempRow
.
fieldValueRange
;
}
});
...
...
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