装备类型配置页面
This commit is contained in:
parent
b250e14aab
commit
f3c05aa89d
|
|
@ -4,7 +4,7 @@ import request from '@/utils/request'
|
|||
* 装备特征值相关API
|
||||
*
|
||||
*/
|
||||
export function getPropertyList() {
|
||||
export function getPropertyList(typeId) {
|
||||
return request({
|
||||
url: '/material-mall/equipment/property/list',
|
||||
method: 'get'
|
||||
|
|
@ -29,6 +29,20 @@ export function getPropertiesByTypeId(typeId) {
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据装备类型ID查询特征值
|
||||
* @param {Number} typeId - 装备类型ID
|
||||
*/
|
||||
export function getPropertiesNameByTypeId(typeId) {
|
||||
return request({
|
||||
url: `/material-mall/equipment/property/type/name/${typeId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 根据类型ID查询装备类型及其特征值(扁平化结果)
|
||||
* @param {Number} typeId - 装备类型ID
|
||||
|
|
@ -95,3 +109,8 @@ export function deleteProperty(id) {
|
|||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue