|
@@ -28,6 +28,7 @@ import type {
|
|
|
DeviceGroupListQuery,
|
|
|
DeviceParamGroup,
|
|
|
DeviceParams,
|
|
|
+ DeviceParamType,
|
|
|
DevicesList,
|
|
|
DevicesListItemData,
|
|
|
DeviceTypeCount,
|
|
@@ -66,6 +67,7 @@ import type {
|
|
|
MonitoringPointData,
|
|
|
MonitorPointInfo,
|
|
|
MonitorPointItem,
|
|
|
+ OrganizationItem,
|
|
|
OutdooForm,
|
|
|
ParameterVerification,
|
|
|
ParamValueListAutomaticQuery,
|
|
@@ -158,6 +160,14 @@ export const getDictTypeData = async (params: DictTypeDataParams) => {
|
|
|
return data;
|
|
|
};
|
|
|
|
|
|
+// 组织表
|
|
|
+export const addOrganization = async (params: OrganizationItem) => {
|
|
|
+ await request(apiSys('/sysOrg/add'), {
|
|
|
+ method: 'POST',
|
|
|
+ body: JSON.stringify(params),
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
// ----- 业务服务 -----
|
|
|
|
|
|
// 报警事件
|
|
@@ -445,6 +455,11 @@ export const getDeviceParams = async (deviceId: number, isProcessData: boolean)
|
|
|
return data;
|
|
|
};
|
|
|
|
|
|
+export const getDeviceListOptions = async (deviceId: number) => {
|
|
|
+ const data = await request<DeviceParamType[]>(apiBiz(`/device/listOptions/${deviceId}`));
|
|
|
+ return data;
|
|
|
+};
|
|
|
+
|
|
|
// 设备工况
|
|
|
|
|
|
export const getDevWorkTypeCount = async (deviceGroupId: number, deviceTypes: number[]) => {
|