technologyservice.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. export default {
  2. getList (CreateOn, params, myAxios) {
  3. return myAxios({
  4. url: '/technologyservice/list?CreateOn=' + CreateOn,
  5. method: 'GET',
  6. params: params
  7. })
  8. },
  9. getDictList (myAxios) {
  10. return myAxios({
  11. url: '/technologyservice/dictlist/',
  12. method: 'GET'
  13. })
  14. },
  15. getEntity (entityId, myAxios) {
  16. return myAxios({
  17. url: '/technologyservice/get/' + entityId,
  18. method: 'GET'
  19. })
  20. },
  21. addEntity (entityId, formData, myAxios) {
  22. return myAxios({
  23. url: '/technologyservice/add/' + entityId,
  24. method: 'post',
  25. data: formData
  26. })
  27. },
  28. updateEntity (entityId, formData, myAxios) {
  29. return myAxios({
  30. url: '/technologyservice/update/' + entityId,
  31. method: 'post',
  32. data: formData
  33. })
  34. },
  35. updateCodeEntity (myclassid,formData, myAxios) {
  36. return myAxios({
  37. url: '/technologyservice/updatecode/'+ myclassid,
  38. method: 'post',
  39. data: formData
  40. })
  41. },
  42. deleteEntity (entityId, myAxios) {
  43. return myAxios({
  44. url: '/technologyservice/delete/' + entityId,
  45. method: 'delete'
  46. })
  47. }
  48. }