装备类型配置页面

This commit is contained in:
itcast 2025-10-16 19:25:09 +08:00
parent b250e14aab
commit f3c05aa89d
2 changed files with 720 additions and 333 deletions

View File

@ -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