diff --git a/src/api/management/mapline.js b/src/api/management/mapline.js index 345914d09..a157095e6 100644 --- a/src/api/management/mapline.js +++ b/src/api/management/mapline.js @@ -43,6 +43,48 @@ export function updateSkinCode(data) { }); } +// 根据code获取线路配置 +export function getRealLineConfigList(lineCode) { + return request({ + url: `/api/realLine/config?lineCode=${lineCode}`, + method: 'get' + }); +} + +// 根据id获取线路配置 +export function getRealLineConfig(id) { + return request({ + url: `/api/realLine/config/${id}`, + method: 'get' + }); +} + +// 根据id修改线路配置 +export function putRealLineConfig(data) { + return request({ + url: `/api/realLine/config/${data.id}`, + method: 'put', + data: data + }); +} + +// 创建线路配置 +export function postRealLineConfig(data) { + return request({ + url: `/api/realLine/config`, + method: 'post', + data: data + }); +} + +// 删除线路配置 +export function delRealLineConfig(id) { + return request({ + url: `/api/realLine/config/${id}`, + method: 'delete' + }); +} + /** 通过皮肤Code更新地图皮肤*/ export function updateSkinCodeByCode(data) { return request({ diff --git a/src/components/QueryListPage/DataForm.vue b/src/components/QueryListPage/DataForm.vue index c23734a1b..9d1ef4c04 100644 --- a/src/components/QueryListPage/DataForm.vue +++ b/src/components/QueryListPage/DataForm.vue @@ -58,6 +58,7 @@ :disabled="item.disabled" :min="isNaN(item.min) ? -Infinity : item.min" :max="isNaN(item.max)? Infinity : item.max" + :step="isNaN(item.step) ? -Infinity : item.step" /> -