Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
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
fe32fb49
authored
2023-01-30 16:49:59 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:字典
1 parent
141b23f4
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
54 deletions
src/api/dict.js
src/api/user.js
src/router/index.js
src/store/modules/dict.js
src/views/system/dictionaries/components/editDialog.vue
src/views/system/dictionaries/dictionaries.vue
src/api/dict.js
0 → 100644
View file @
fe32fb4
/*
获取全部字典数据
*/
export
function
getAllDict
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/dict/getAllDict'
,
method
:
'post'
})
}
export
function
getQlxxDictList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/dict/getDictList'
,
method
:
'post'
,
data
})
}
/*
获取字典子级列表
*/
export
function
getChildDictList
(
bsmDict
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/dict/getChildDictList'
,
method
:
'get'
,
params
:
{
bsmDict
:
bsmDict
}
})
}
/*
编辑字典数据
*/
export
function
editDictNode
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/dict/editDictNode'
,
method
:
'post'
,
data
})
}
/*
刷新字典缓存
*/
export
function
refreshDictCache
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/dict/refreshDictCache'
,
method
:
'get'
})
}
\ No newline at end of file
src/api/user.js
View file @
fe32fb4
...
...
@@ -15,51 +15,3 @@ export function getMenuInfo () {
method
:
'get'
,
})
}
\ No newline at end of file
/*
获取全部字典数据
*/
export
function
getAllDict
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/dict/getAllDict'
,
method
:
'post'
})
}
export
function
getQlxxDictList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/dict/getDictList'
,
method
:
'post'
,
data
})
}
/*
获取字典子级列表
*/
export
function
getChildDictList
(
bsmDict
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/dict/getChildDictList'
,
method
:
'get'
,
params
:
{
bsmDict
:
bsmDict
}
})
}
/*
编辑字典数据
*/
export
function
editDictNode
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/dict/editDictNode'
,
method
:
'post'
,
data
})
}
/*
刷新字典缓存
*/
export
function
refreshDictCache
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/dict/refreshDictCache'
,
method
:
'get'
})
}
\ No newline at end of file
...
...
src/router/index.js
View file @
fe32fb4
...
...
@@ -63,7 +63,6 @@ export const asyncRoutes = [
children
:
[
{
path
:
'index'
,
component
:
()
=>
import
(
'@/views/jsbwcx/index.vue'
),
name
:
'jsbwcx'
,
meta
:
{
title
:
'接收报文查询'
,
icon
:
'zsgl'
}
}
...
...
@@ -92,7 +91,7 @@ export const asyncRoutes = [
{
path
:
'/jktj'
,
component
:
Layout
,
meta
:
{
title
:
'统计监控'
,
icon
:
'sqcx'
},
meta
:
{
title
:
'统计监控'
,
icon
:
'sqcx'
},
children
:
[
{
path
:
'ywltj'
,
...
...
@@ -177,7 +176,7 @@ export const asyncRoutes = [
{
path
:
'/busineInfo'
,
component
:
Layout
,
meta
:
{
title
:
'不动产数据'
,
icon
:
'sqcx'
},
meta
:
{
title
:
'不动产数据'
,
icon
:
'sqcx'
},
redirect
:
'/busineInfo/landOwnership'
,
alwaysShow
:
true
,
name
:
'busineInfo'
,
...
...
src/store/modules/dict.js
View file @
fe32fb4
import
{
getAllDict
}
from
'@/api/
user
'
import
{
getAllDict
}
from
'@/api/
dict
'
const
state
=
{
dicData
:
{},
addDict
:
false
,
...
...
src/views/system/dictionaries/components/editDialog.vue
View file @
fe32fb4
...
...
@@ -24,7 +24,7 @@
<
script
>
import
{
getUuid
,
judgeSort
,
realMove
,
findParents
,
removeTreeListItem
}
from
'@/utils/operation'
import
{
editDictNode
,
getChildDictList
}
from
'@/api/
user
'
import
{
editDictNode
,
getChildDictList
}
from
'@/api/
dict
'
export
default
{
props
:
{
value
:
{
type
:
Boolean
,
default
:
false
},
...
...
src/views/system/dictionaries/dictionaries.vue
View file @
fe32fb4
...
...
@@ -35,7 +35,7 @@
</
template
>
<
script
>
import
table
from
"@/utils/mixin/table"
import
{
getQlxxDictList
,
getChildDictList
,
refreshDictCache
}
from
"@/api/user
.js"
import
{
getQlxxDictList
,
refreshDictCache
}
from
"@/api/dict
.js"
import
{
datas
,
sendThis
}
from
"./dictionaries"
import
editDialog
from
"./components/editDialog.vue"
export
default
{
...
...
Please
register
or
sign in
to post a comment