@ued_fpi/data-visual
Version:
<br /> <br /> <div style="text-align:center"> <b style="font-size:30px">@ued_fpi/data-visual</b> <p>基于Vite4+TypeScript的Vue3大屏组件库开发框架</p> <img style="display:inline" src="https://img.shields.io/npm/v/@ued_fpi/data-visual" />
27 lines (24 loc) • 1.03 kB
JavaScript
import requestControl from '../../../service/request.mjs';
const postInstrumentTypes = (url) => {
return requestControl({
url,
method: "post",
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
data: new URLSearchParams()
});
};
const getBiodiversityInstrumentTypes = () => {
return postInstrumentTypes("/prj-stgc-screen-server/api/monitor/capability/instrument-types/biodiversity");
};
const getMeteorologicalInstrumentTypes = () => {
return postInstrumentTypes("/prj-stgc-screen-server/api/monitor/capability/instrument-types/meteorological");
};
const getSoilInstrumentTypes = () => {
return postInstrumentTypes("/prj-stgc-screen-server/api/monitor/capability/instrument-types/soil");
};
const getVegetationInstrumentTypes = () => {
return postInstrumentTypes("/prj-stgc-screen-server/api/monitor/capability/instrument-types/vegetation");
};
export { getBiodiversityInstrumentTypes, getMeteorologicalInstrumentTypes, getSoilInstrumentTypes, getVegetationInstrumentTypes };