diff --git a/src/api/iot-card/platform.ts b/src/api/iot-card/platform.ts new file mode 100644 index 00000000..89b84490 --- /dev/null +++ b/src/api/iot-card/platform.ts @@ -0,0 +1,31 @@ +import server from '@/utils/request' + +/** + * 分页查询平台接入列表 + * @param data + */ +export const queryList = (data: any) => server.post(`/network/card/platform/_query`, data) + +/** + * 根据id查询详情 + * @param id + */ +export const queryById = (id: any) => server.get(`/network/card/platform/${id}`) + +/** + * 新增 + * @param data + */ +export const save = (data: any) => server.post(`/network/card/platform`, data) + +/** + * 编辑 + * @param data + */ +export const update = (data: any) => server.patch(`/network/card/platform`, data) + +/** + * 删除 + * @param id + */ +export const del = (id: string) => server.remove(`/network/card/platform/${id}`) \ No newline at end of file diff --git a/src/components/PermissionButton/index.vue b/src/components/PermissionButton/index.vue index 9ec5b437..f8d0e739 100644 --- a/src/components/PermissionButton/index.vue +++ b/src/components/PermissionButton/index.vue @@ -4,14 +4,14 @@ - + - +