1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import request from '@/utils/request'
- import qs from 'qs'
- export const getUnitPersonnelById = (id) => {
- return new request({
- url: './uc/unitPersonnelInformations/' + id,
- method: 'get',
- });
- }
- export function saveOrUpdate(unitPersonnelInformation,token) {
- return new request({
- url: './uc/unitPersonnelInformations',
- method: (unitPersonnelInformation.id ? 'put' : 'post'),
- headers: {
- token
- },
- data: {
- unitPersonnelInformation,
- }
- });
- }
- export function del(id) {
- return new request({
- url: './uc/unitPersonnelInformations/' + id,
- method: 'delete',
- });
- }
- export const getUnitPersonnelInformation = (params) => {
- return new request({
- url: './uc/unitPersonnelInformations/getUnitPersonnelInfos',
- method: 'get',
- params:params
- });
- }
- export const getUnitInfo = (params) => {
- return new request({
- url: './uc/unitPersonnelInformations/getUnitInfo',
- method: 'get',
- params:params
- });
- }
- export const addUnit = (unitPersonnelInformation) =>{
- return new request({
- url: './uc/unitPersonnelInformations/addUnit',
- method: 'get',
- params:unitPersonnelInformation
- });
- }
|