Newer
Older
KaiFengPC / src / api / scada / plcPointInfo.js
@zhangdeliang zhangdeliang on 23 May 718 bytes 初始化项目
  1. import request from '@/utils/request';
  2. // 获取项目列列表
  3. export function getInfo(params) {
  4. return request({
  5. url: `/scada/plcPointInfo/page`,
  6. method: 'get',
  7. params,
  8. });
  9. }
  10. export const projectInfoAdd = data => {
  11. return request({
  12. url: `/scada/plcPointInfo/add`,
  13. method: 'post',
  14. data,
  15. });
  16. };
  17. export const projectInfoEdit = data => {
  18. return request({
  19. url: `/scada/plcPointInfo/edit`,
  20. method: 'put',
  21. data,
  22. });
  23. };
  24. export const projectInfoDelete = ids => {
  25. return request({
  26. url: `/scada/plcPointInfo/${ids}`,
  27. method: 'delete',
  28. });
  29. };
  30. export const projectInfoGet = ids => {
  31. return request({
  32. url: `/scada/plcPointInfo/${ids}`,
  33. method: 'get',
  34. });
  35. };