Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
holo-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinkong
holo-web
Commits
543fca3b
Commit
543fca3b
authored
May 09, 2024
by
ninglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wj-smartcity 修改store字典-路口id名称来源 holo->opt
parent
1c8f34ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
dict.js
wj-smartcity/src/dao/dict.js
+10
-3
dict.js
wj-smartcity/src/store/modules/dict.js
+2
-1
No files found.
wj-smartcity/src/dao/dict.js
View file @
543fca3b
import
request
from
'
../utils/request
'
import
axios
from
"
@/ajax
"
;
// 字典请求 统一存放vuex(store/modules/dict.js)避免过多网络请求
// 车辆类型
export
const
dictCarType
=
()
=>
...
...
@@ -31,11 +32,17 @@ export const dictTrafficActor = () =>
data
:
{
catalogId
:
"
21F5FDB7B45343BDB54BABD2243299FC
"
}
})
// 路口
// export const dictCrossInfo = () =>
// request({
// url: '/holo/base-cross-info/list',
// method: 'get',
// params: {}
// })
export
const
dictCrossInfo
=
()
=>
request
({
url
:
'
/holo/base-cross-info/list
'
,
method
:
'
ge
t
'
,
params
:
{
}
url
:
"
/opt/runningEvaluate/crossList
"
,
method
:
'
pos
t
'
,
data
:
{
crossName
:
''
}
})
// 拥堵程度
export
const
dictCrowdDeep
=
()
=>
...
...
wj-smartcity/src/store/modules/dict.js
View file @
543fca3b
...
...
@@ -24,7 +24,8 @@ const dicts = {
let
res
=
await
dictApi
[
`dict
${
typeParam
.
type
}
`
]();
if
(
typeParam
.
type
===
"
CrossInfo
"
)
{
for
(
let
i
=
0
;
i
<
res
.
content
.
length
;
i
++
)
{
res
.
content
[
i
].
code
=
res
.
content
[
i
].
id
;
res
.
content
[
i
].
code
=
res
.
content
[
i
].
crossId
;
res
.
content
[
i
].
name
=
res
.
content
[
i
].
crossName
;
}
}
state
[
typeParam
.
type
]
=
res
.
content
;
...
...
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