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
faa15705
authored
2025-07-07 10:09:28 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化标准代码表新建默认值问题
1 parent
b4b6acda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
src/views/data_meta/standard-codetable.vue
src/views/data_meta/standard-codetable.vue
View file @
faa1570
...
...
@@ -19,24 +19,11 @@ import { getStandardCodeList, saveStandardCode,
getStandardCodeDataList
,
getStandardCodeTree
}
from
'@/api/modules/dataMetaService'
import
{
addDictionary
,
deleteDictionary
,
getDictionary
,
updateDictionary
,
getDictionaryTree
,
getDictionaryDetail
,
exportDictionary
,
showDictionary
,
getDataBaseList
,
getCoderuleList
,
saveDictionaryData
,
getDictionaryFileds
,
updateDictionaryState
,
getDictionaryRuleData
,
exportDictionaryFileds
,
checkDeleteDictionary
,
checkDeleteDictionaryScheme
,
checkDictionaryData
,
getNewDataTypeList
}
from
'@/api/modules/dataInventory'
;
import
router
from
'@/router'
...
...
@@ -1143,8 +1130,19 @@ const loadDrawer = async () => {
}
})
formTable
.
value
.
tableInfo
.
fields
=
fields
let
currentObj
:
any
=
treeInfo
.
value
.
currentObj
;
formItems
.
value
.
forEach
(
item
=>
{
if
(
item
.
field
===
'bizState'
)
{
if
(
item
.
field
==
'standard'
)
{
item
.
default
=
currentObj
.
standard
;
}
else
if
(
item
.
field
==
"standardName"
)
{
item
.
default
=
currentObj
.
name
;
}
else
if
(
item
.
field
==
"publishingUnitCode"
)
{
item
.
default
=
currentObj
.
publishingUnitCode
;
}
else
if
(
item
.
field
==
'codeFields'
)
{
item
.
default
=
[
'代码'
];
}
else
if
(
item
.
field
==
'codeFieldName'
)
{
item
.
default
=
'名称'
;
}
else
if
(
item
.
field
===
'bizState'
)
{
item
.
default
=
'Y'
}
else
if
(
item
.
field
===
'typeCode'
)
{
item
.
default
=
'1'
...
...
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