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
5a816915
authored
2025-10-15 13:47:04 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新建登记保存带上疾病中文名称
1 parent
0d407c22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
src/views/data_asset/registerStartJS.vue
src/views/data_asset/registerStartJS.vue
View file @
5a81691
...
...
@@ -2160,6 +2160,28 @@ let transferRegistName = () => {
const
saveDraft
=
()
=>
{
let
params
:
any
=
{
isSubmit
:
false
};
let
baseInfoValue
=
formRef
.
value
.
formInline
;
let
diseaseGuid
=
baseInfoValue
.
diseaseGuid
;
if
(
diseaseGuid
)
{
let
diseaseList
=
dictListMap
.
value
[
'diseaseGuid'
]
||
[];
let
getDiseaseName
=
(
list
)
=>
{
let
vInfo
=
list
.
find
(
l
=>
l
.
guid
==
diseaseGuid
);
if
(
vInfo
)
{
return
vInfo
.
diseaseName
;
}
for
(
const
key
of
list
)
{
if
(
key
.
guid
==
diseaseGuid
)
{
return
key
.
diseaseName
;
}
if
(
key
.
childList
?.
length
)
{
let
name
=
getDiseaseName
(
key
);
if
(
name
)
{
return
name
;
}
}
}
}
baseInfoValue
.
diseaseName
=
getDiseaseName
(
diseaseList
)
||
''
;
}
let
registerInfoValue
=
registerFormRef
.
value
.
formInline
;
// /** 产品登记名称,是覆盖范围-行业大类-产品名称 */
// let coverName = baseInfoValue.dataCoverages == '1' ? '全国' : (baseInfoValue.dataCoverage?.length && dictListMap.value['dataCoverage'].find(f => f.value == baseInfoValue.dataCoverage[0])?.label || '');
...
...
@@ -2364,6 +2386,28 @@ const save = () => {
if
(
valid3
)
{
let
params
:
any
=
{
isSubmit
:
true
,
immediateApprove
:
true
,
};
let
baseInfoValue
=
formRef
.
value
.
formInline
;
let
diseaseGuid
=
baseInfoValue
.
diseaseGuid
;
if
(
diseaseGuid
)
{
let
diseaseList
=
dictListMap
.
value
[
'diseaseGuid'
]
||
[];
let
getDiseaseName
=
(
list
)
=>
{
let
vInfo
=
list
.
find
(
l
=>
l
.
guid
==
diseaseGuid
);
if
(
vInfo
)
{
return
vInfo
.
diseaseName
;
}
for
(
const
key
of
list
)
{
if
(
key
.
guid
==
diseaseGuid
)
{
return
key
.
diseaseName
;
}
if
(
key
.
childList
?.
length
)
{
let
name
=
getDiseaseName
(
key
);
if
(
name
)
{
return
name
;
}
}
}
}
baseInfoValue
.
diseaseName
=
getDiseaseName
(
diseaseList
)
||
''
;
}
let
registerInfoValue
=
registerFormRef
.
value
.
formInline
;
// /** 产品登记名称,是覆盖范围-行业大类-产品名称 */
// let coverName = baseInfoValue.dataCoverages == '1' ? '全国' : dictListMap.value['dataCoverage'].find(f => f.value == baseInfoValue.dataCoverage[0])?.label || 'XX';
...
...
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