diff --git a/sgzb-ui/src/api/store/poleConfig.js b/sgzb-ui/src/api/store/poleConfig.js index fb5bbb24..02c81303 100644 --- a/sgzb-ui/src/api/store/poleConfig.js +++ b/sgzb-ui/src/api/store/poleConfig.js @@ -5,6 +5,7 @@ const addUrl = '/material/maWhole/add' // 添加 const selectListUrl = '/material/maWhole/selectList' // 查询首页 const selectListByIdUrl = '/material/maWhole/selectListById' // 查询详情 const deleteByIdUrl = '/material/maWhole/deleteById' // 删除 +const treeTypeUrl = '/system/select/getDeviceTypeTree' // 设备树 // 物品类型 选择配件 export function getMaType(query) { @@ -15,6 +16,15 @@ export function getMaType(query) { }) } +// 设备树 +export function getDeviceTypeTree(params = {}){ + return request({ + url: treeTypeUrl, + method: 'post', + data: params + }) +} + // 新增 export function addMaWhole(data) { return request({ diff --git a/sgzb-ui/src/views/store/poleConfig/poleConfig.vue b/sgzb-ui/src/views/store/poleConfig/poleConfig.vue index c4d40bfc..2ed316ce 100644 --- a/sgzb-ui/src/views/store/poleConfig/poleConfig.vue +++ b/sgzb-ui/src/views/store/poleConfig/poleConfig.vue @@ -144,7 +144,13 @@