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
f3abdb2e
authored
2025-06-21 14:55:29 +0800
by
fanguang
Committed by
lihua
2025-06-30 14:28:21 +0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
c70996d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
src/views/data_meta/standard-codetable.vue
src/views/data_meta/standard-codetable.vue
View file @
f3abdb2
...
...
@@ -583,23 +583,7 @@ const getTreeData = (needClick = false, currData = {}) => {
})
treeInfo
.
value
.
data
=
data
standardOptions
.
value
=
data
// 默认展开第一个
if
(
data
.
length
===
0
)
return
let
params
=
{
pageIndex
:
1
,
pageSize
:
50
,
standardTypeCode
:
data
[
0
].
value
,
// codeName: '标准类型'
}
getStandardCodeList
(
params
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
proxy
.
$passCode
)
{
let
data
=
res
.
data
tableInfo
.
value
.
data
=
data
.
records
tableInfo
.
value
.
page
.
limit
=
data
.
pageSize
tableInfo
.
value
.
page
.
curr
=
data
.
pageIndex
tableInfo
.
value
.
page
.
rows
=
data
.
totalRows
}
})
}
})
}
...
...
@@ -1300,6 +1284,8 @@ const saveData = async (params, btnValue) => {
if
(
btnValue
===
'saveAndAdd'
)
{
// 跳转代码详情
toStandardCodeDetail
(
res
.
data
)
}
else
{
getFirstPageData
()
}
})
}
else
{
...
...
@@ -1399,7 +1385,26 @@ const radioGroupChange = async (val, info) => {
onBeforeMount
(()
=>
{
// getDataType()
getTreeData
()
getTreeData
().
then
(()
=>
{
// 默认展开第一个
let
data
=
treeInfo
.
value
.
data
if
(
data
.
length
===
0
)
return
let
params
=
{
pageIndex
:
1
,
pageSize
:
50
,
standardTypeCode
:
data
[
0
].
value
,
// codeName: '标准类型'
}
getStandardCodeList
(
params
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
proxy
.
$passCode
)
{
let
data
=
res
.
data
tableInfo
.
value
.
data
=
data
.
records
tableInfo
.
value
.
page
.
limit
=
data
.
pageSize
tableInfo
.
value
.
page
.
curr
=
data
.
pageIndex
tableInfo
.
value
.
page
.
rows
=
data
.
totalRows
}
})
})
getParamsList
({
dictType
:
'发布单位'
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
[]
...
...
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