web
8 天以前 2f0fa3545b539e8b6f952ea82a1ca2350c64a0e8
src/api/facility/point.js
@@ -29,18 +29,6 @@
            method: 'post'
         });
      },
        stop: (id) => {
         return publicRequest({
            url: `/waterMonitoryPoint/stop?id=${id}`,
            method: 'post'
         });
      },
        enable: (id) => {
         return publicRequest({
            url: `/waterMonitoryPoint/enable?id=${id}`,
            method: 'post'
         });
      },
        search: (data) => {
         return publicRequest({
            url: '/waterMonitoryPoint/search',
@@ -48,12 +36,17 @@
            data
         });
      },
        getList: (data) => {
      get: (id) => {
         return publicRequest({
            url: `/waterMonitoryPoint/getList`,
            url: `/waterMonitoryPoint/get?id=${id}`,
            method: 'get',
            data
         });
      },
      getParentPoint: () => {
         return publicRequest({
            url: 'waterMonitoryPoint/getListTree',
            method: 'get',
         })
      }
   };
}