Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
91isoft_web_vue3
Commits
1a16cc22
Commit
1a16cc22
authored
Feb 19, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
28d2473b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
636 additions
and
1 deletion
+636
-1
index.ts
src/api/dict/index.ts
+16
-0
types.ts
src/api/dict/types.ts
+18
-0
index.vue
src/views/system/dept/index.vue
+1
-1
data.vue
src/views/system/dict/data.vue
+601
-0
No files found.
src/api/dict/index.ts
View file @
1a16cc22
...
@@ -23,6 +23,22 @@ export function getDictTypePage(
...
@@ -23,6 +23,22 @@ export function getDictTypePage(
params
:
queryParams
,
params
:
queryParams
,
});
});
}
}
/** 查询字典数据列表*/
export
function
listData
(
query
)
{
return
request
({
url
:
"/system/dict/data/list"
,
method
:
"get"
,
params
:
query
,
});
}
export
function
listType
(
query
)
{
return
request
({
url
:
"/system/dict/type/list"
,
method
:
"get"
,
params
:
query
,
});
}
/** 获取字典选择框列表*/
/** 获取字典选择框列表*/
export
function
selectDictType
(
dictType
)
{
export
function
selectDictType
(
dictType
)
{
return
request
({
return
request
({
...
...
src/api/dict/types.ts
View file @
1a16cc22
...
@@ -24,6 +24,24 @@ export interface DictTypeQuery extends PageQuery {
...
@@ -24,6 +24,24 @@ export interface DictTypeQuery extends PageQuery {
endTime
?:
string
|
null
;
endTime
?:
string
|
null
;
}
}
/**
* 字典数据查询参数
*/
export
interface
DictTypeDataQuery
extends
PageQuery
{
/**
* 字典名称
*/
dictType
?:
string
;
/**
* 字典标签
*/
dictLabel
?:
string
;
/**
* 状态
*/
flag
?:
string
;
}
/**
/**
* 字典类型分页对象
* 字典类型分页对象
*/
*/
...
...
src/views/system/dept/index.vue
View file @
1a16cc22
...
@@ -241,7 +241,7 @@ onMounted(() => {
...
@@ -241,7 +241,7 @@ onMounted(() => {
getList
();
getList
();
});
});
onBeforeRouteLeave
((
to
,
from
,
next
)
=>
{
onBeforeRouteLeave
?.
((
to
,
from
,
next
)
=>
{
setDataCache
(
route
.
path
,
queryParams
);
setDataCache
(
route
.
path
,
queryParams
);
next
();
next
();
});
});
...
...
src/views/system/dict/data.vue
0 → 100644
View file @
1a16cc22
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment