完善班组模型功能迁移
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { request } from '@/api/_service'
|
||||
import qs from 'qs'
|
||||
|
||||
const BASE = 'system_settings/organization/production_team_manage/'
|
||||
const MEMBER_BASE = 'system_settings/organization/production_members_manage/'
|
||||
@@ -11,8 +12,12 @@ function memberParams (method, data = {}) {
|
||||
return { method: `system_settings_organization_production_members_manage_${method}`, platform: 'background', ...data }
|
||||
}
|
||||
|
||||
function stringifyParams (method, data = {}) {
|
||||
return qs.stringify(params(method, data), { arrayFormat: 'brackets', allowDots: true, encode: false })
|
||||
}
|
||||
|
||||
export function getTeamAll (data) { return request({ url: BASE + 'all', method: 'get', params: params('all', data) }) }
|
||||
export function getTeamList (data) { return request({ url: BASE + 'list', method: 'get', params: params('list', data) }) }
|
||||
export function getTeamList (data) { return request({ url: BASE + 'list?' + stringifyParams('list', data), method: 'get', params: {} }) }
|
||||
export function createTeam (data) { return request({ url: BASE + 'create', method: 'post', data: params('create', data) }) }
|
||||
export function editTeam (data) { return request({ url: BASE + 'edit', method: 'put', data: params('edit', data) }) }
|
||||
export function deleteTeam (data) { return request({ url: BASE + 'delete', method: 'delete', data: params('delete', data) }) }
|
||||
|
||||
Reference in New Issue
Block a user