unitInformation.js 521 B

12345678910111213141516171819202122
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export function saveOrUpdate(unitPersonnelInformation,token) {
  4. return new request({
  5. url: './uc/unitPersonnelInformations',
  6. method: (unitPersonnelInformation.id ? 'put' : 'post'),
  7. headers: {
  8. token
  9. },
  10. data: {
  11. unitPersonnelInformation,
  12. }
  13. });
  14. }
  15. export function del(id) {
  16. return new request({
  17. url: './uc/unitPersonnelInformations/' + id,
  18. method: 'delete',
  19. });
  20. }