Commit 543fca3b authored by ninglx's avatar ninglx

wj-smartcity 修改store字典-路口id名称来源 holo->opt

parent 1c8f34ae
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: 'get',
params: {}
url: "/opt/runningEvaluate/crossList",
method: 'post',
data: {crossName:''}
})
// 拥堵程度
export const dictCrowdDeep = () =>
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment