Compare commits
11 Commits
dev-device
...
master
Author | SHA1 | Date |
---|---|---|
|
c0f96ae2a7 | 9 months ago |
|
7df7fda0ed | 9 months ago |
|
fe1624361f | 9 months ago |
|
caa99577d3 | 9 months ago |
|
7891dcde81 | 9 months ago |
|
e0b8904024 | 9 months ago |
|
6f20d4d804 | 9 months ago |
|
e9dd721ede | 9 months ago |
|
a45e424d13 | 10 months ago |
|
50c6886acf | 10 months ago |
|
4b892d1740 | 10 months ago |
@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* @Author: donghao donghao@supervision.ltd
|
||||||
|
* @Date: 2024-08-02 10:40:49
|
||||||
|
* @LastEditors: donghao donghao@supervision.ltd
|
||||||
|
* @LastEditTime: 2024-08-14 11:10:51
|
||||||
|
* @FilePath: \General-AI-Platform-Web-Client\src\api\workshops.ts
|
||||||
|
* @Description: 布点
|
||||||
|
*/
|
||||||
|
import { http } from "@/utils/http";
|
||||||
|
import { baseUrlApi } from "./utils";
|
||||||
|
|
||||||
|
type Result = {
|
||||||
|
success: boolean;
|
||||||
|
data?: Array<any>;
|
||||||
|
};
|
||||||
|
|
||||||
|
type ResultList = {
|
||||||
|
success: boolean;
|
||||||
|
data?: {
|
||||||
|
/** 列表数据 */
|
||||||
|
results: Array<any>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/** 获取布点 */
|
||||||
|
export const getWorkshopsApi = (params?: object) => {
|
||||||
|
return http.request<ResultList>("get", baseUrlApi("workshops/"), {
|
||||||
|
params
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/** 新增布点 */
|
||||||
|
export const addWorkshopsApi = (data?: object) => {
|
||||||
|
return http.request<Result>("post", baseUrlApi("workshops/"), { data });
|
||||||
|
};
|
||||||
|
|
||||||
|
/** 获取布点设备 */
|
||||||
|
export const getWorkshopDevicesApi = (params?: object) => {
|
||||||
|
return http.request<ResultList>("get", baseUrlApi("workshop_devices/"), {
|
||||||
|
params
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/** 新增布点设备 */
|
||||||
|
export const addWorkshopDevicesApi = (data?: object) => {
|
||||||
|
return http.request<Result>("post", baseUrlApi("workshop_devices/"), {
|
||||||
|
data
|
||||||
|
});
|
||||||
|
};
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 12 KiB |