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
7364348a
authored
2025-01-02 21:08:04 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix : 分类分级查询
1 parent
f3704a8e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
src/api/modules/dataInventory.ts
src/views/data_inventory/classifyGradeCatalogue.vue
src/views/data_inventory/dictionary.vue
src/api/modules/dataInventory.ts
View file @
7364348
...
...
@@ -49,11 +49,11 @@ export const checkDeleteDictionaryScheme = (params) => request({
data
:
params
})
// 分页查询
//
export const getDictionary = (params) => request({
//
url: `${import.meta.env.VITE_APP_PLAN_BASEURL}/data-dictionary-general/page-list`,
//
method: 'post',
//
data: params
//
})
export
const
getDictionary
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_PLAN_BASEURL
}
/data-dictionary-general/page-list`
,
method
:
'post'
,
data
:
params
})
// 查询数据字典启用状态的数据
export
const
getDictionaryAll
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_PLAN_BASEURL
}
/data-dictionary-general/list-all`
,
...
...
@@ -598,10 +598,10 @@ export const filterVal = (val, type) => {
/** 获取字典列表
* VITE_APP_PLAN_BASEURL 为环境变量 现在只是mock数据
*/
export
const
getDictionary
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/data-dictionary-general/list-all?state=1`
,
method
:
'post'
})
//
export const getDictionary = (params) => request({
//
url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/data-dictionary-general/list-all?state=1`,
//
method: 'post'
//
})
...
...
src/views/data_inventory/classifyGradeCatalogue.vue
View file @
7364348
This diff is collapsed.
Click to expand it.
src/views/data_inventory/dictionary.vue
View file @
7364348
...
...
@@ -677,7 +677,7 @@ const treePromise = ref();
// 获取数据字典树形数据
const
getTreeData
=
(
needClick
=
false
,
currData
=
{})
=>
{
const
params
=
{
paramCode
:
'
data_structure_code
'
paramCode
:
'
数据字典类型
'
}
treeInfo
.
value
.
loading
=
true
treePromise
.
value
=
getDictionaryTree
(
params
).
then
((
res
:
any
)
=>
{
...
...
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