bug
jiangping
2023-12-06 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import request from '../../utils/request'
 
// 查询
export function fetchList (data) {
  return request.post('/system/location/page', data, {
    trim: true
  })
}
 
// 根据父节点查询
export function fetchByParentId (parentId) {
  return request.cache(`location_${parentId}_children`).get(`/system/location/children/${parentId}`)
}
 
// 创建
export function create (data) {
  return request.post('/system/location/create', data)
}
 
// 修改
export function updateById (data) {
  return request.post('/system/location/updateById', data)
}
 
// 修改状态
export function updateStatus (data) {
  return request.post('/system/location/updateStatus', data)
}