【前端】智能库房综合管理系统前端项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
478 B

  1. import request from '@/utils/request'
  2. export function add(data) {
  3. return request({
  4. url: 'api/archives-type/create-dic',
  5. method: 'post',
  6. data
  7. })
  8. }
  9. export function del(ids) {
  10. const params = { id: ids[0] }
  11. return request({
  12. url: 'api/archives-type/delete-dic',
  13. method: 'delete',
  14. params
  15. })
  16. }
  17. export function edit(data) {
  18. return request({
  19. url: 'api/archives-type/update',
  20. method: 'put',
  21. data
  22. })
  23. }
  24. export default { add, edit, del }