diff --git a/src/api/admin/UspscaleApi.ts b/src/api/admin/UspscaleApi.ts new file mode 100644 index 0000000..c1e9039 --- /dev/null +++ b/src/api/admin/UspscaleApi.ts @@ -0,0 +1,156 @@ +/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: adademo / https://github.com/adademo/swagger-typescript-api ## + * ## SOURCE: https://github.com/adademo/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +import { + UspscaleAddInput, + UspscaleGetOutput, + UspscaleUpdateInput, + PageInputUspscaleGetPageInput, + ResultOutputUspscaleGetOutput, + ResultOutputPageOutputUspscaleGetPageOutput, + ResultOutputInt64, +} from './data-contracts' +import { ContentType, HttpClient, RequestParams } from './http-client' +import { AxiosResponse } from 'axios' + +export class UspscaleApi extends HttpClient { + /** + * No description + * + * @tags uspscale + * @name Get + * @summary 查询 + * @request GET:/api/admin/usp-scale/get + * @secure + */ + get = ( + query?: { + /** @format int64 */ + id?: number + }, + params: RequestParams = {} + ) => + this.request({ + path: `/api/admin/usp-scale/get`, + method: 'GET', + query: query, + secure: true, + format: 'json', + ...params, + }) + + /** + * No description + * + * @tags uspscale + * @name GetPage + * @summary 查询分页 + * @request POST:/api/admin/usp-scale/get-page + * @secure + */ + getPage = (data: PageInputUspscaleGetPageInput, params: RequestParams = {}) => + this.request({ + path: `/api/admin/usp-scale/get-page`, + method: 'POST', + body: data, + secure: true, + type: ContentType.Json, + format: 'json', + ...params, + }) + + /** + * No description + * + * @tags uspscale + * @name Add + * @summary 新增 + * @request POST:/api/admin/usp-scale/add + * @secure + */ + add = (data: UspscaleAddInput, params: RequestParams = {}) => + this.request({ + path: `/api/admin/usp-scale/add`, + method: 'POST', + body: data, + secure: true, + type: ContentType.Json, + format: 'json', + ...params, + }) + + /** + * No description + * + * @tags uspscale + * @name Update + * @summary 修改 + * @request PUT:/api/admin/usp-scale/update + * @secure + */ + update = (data: UspscaleUpdateInput, params: RequestParams = {}) => + this.request({ + path: `/api/admin/usp-scale/update`, + method: 'PUT', + body: data, + secure: true, + type: ContentType.Json, + ...params, + }) + + /** + * No description + * + * @tags uspscale + * @name Delete + * @summary 彻底删除 + * @request DELETE:/api/admin/usp-scale/delete + * @secure + */ + delete = ( + query?: { + /** @format int64 */ + id?: number + }, + params: RequestParams = {} + ) => + this.request({ + path: `/api/admin/usp-scale/delete`, + method: 'DELETE', + query: query, + secure: true, + ...params, + }) + + /** + * No description + * + * @tags uspscale + * @name SoftDelete + * @summary 删除 + * @request DELETE:/api/admin/usp-scale/soft-delete + * @secure + */ + softDelete = ( + query?: { + /** @format int64 */ + id?: number + }, + params: RequestParams = {} + ) => + this.request({ + path: `/api/admin/usp-scale/soft-delete`, + method: 'DELETE', + query: query, + secure: true, + ...params, + }) +} diff --git a/src/api/admin/data-contracts.ts b/src/api/admin/data-contracts.ts index d9b6e28..f57bd1e 100644 --- a/src/api/admin/data-contracts.ts +++ b/src/api/admin/data-contracts.ts @@ -6594,3 +6594,229 @@ export interface WebSocketPreConnectInput { */ websocketId?: number | null } + +/** 秤台设备 */ +export interface UspscaleGetOutput { + /** 设备编号 */ + deviceNo?: string | null + /** 资产编号 */ + assetNo?: string | null + /** 型号 */ + model?: string | null + /** 规格 */ + specification?: string | null + /** 房间ID */ + roomID?: number + /** 维护标记 */ + maintenanceFlag?: boolean + /** 是否喂料秤 */ + isFeedingScale?: boolean + /** 启用 */ + enabled?: boolean + /** + * 主键Id + * @format int64 + */ + id: number +} + +/** 结果输出 */ +export interface ResultOutputUspscaleGetOutput { + /** 是否成功标记 */ + success?: boolean + /** 编码 */ + code?: string | null + /** 消息 */ + msg?: string | null + /** 秤台设备 */ + data?: UspscaleGetOutput +} + +/** 添加 */ +export interface UspscaleAddInput { + /** 设备编号 */ + deviceNo?: string | null + /** 资产编号 */ + assetNo?: string | null + /** 型号 */ + model?: string | null + /** 规格 */ + specification?: string | null + /** 房间ID */ + roomID?: number + /** 维护标记 */ + maintenanceFlag?: boolean + /** 是否喂料秤 */ + isFeedingScale?: boolean + /** 启用 */ + enabled?: boolean +} + +/** 修改 */ +export interface UspscaleUpdateInput { + /** 设备编号 */ + deviceNo?: string | null + /** 资产编号 */ + assetNo?: string | null + /** 型号 */ + model?: string | null + /** 规格 */ + specification?: string | null + /** 房间ID */ + roomID?: number + /** 设备负责人ID */ + principalId?: number + /** 维护标记 */ + maintenanceFlag?: boolean + /** 报警下限值(g) */ + warningLowerLimit?: number + /** 子系统IP */ + subSystemIP?: string | null + /** 子系统IP端口 */ + subSystemIPPort?: string | null + /** 设备IP */ + deviceIP?: string | null + /** 设备IP端口 */ + deviceIPPort?: string | null + /** 精度(g) */ + scalePrecision?: number + /** 服务名称 */ + serviceName?: string | null + /** 是否喂料秤 */ + isFeedingScale?: boolean + /** 启用 */ + enabled?: boolean + /** + * 主键Id + * @format int64 + */ + id: number +} + +/** 结果输出 */ +export interface ResultOutputListUspscaleGetListOutput { + /** 是否成功标记 */ + success?: boolean + /** 编码 */ + code?: string | null + /** 消息 */ + msg?: string | null + /** 数据 */ + data?: UspscaleGetListOutput[] | null +} + +/** 秤台设备列表 */ +export interface UspscaleGetListOutput { + /** + * 主键Id + * @format int64 + */ + id?: number + /** 设备编号 */ + deviceNo?: string | null + /** 资产编号 */ + assetNo?: string | null + /** 型号 */ + model?: string | null + /** 规格 */ + specification?: string | null + /** 房间ID */ + roomID?: number + /** 维护标记 */ + maintenanceFlag?: boolean + /** 是否喂料秤 */ + isFeedingScale?: boolean + /** 启用 */ + enabled?: boolean + /** + * 创建时间 + * @format date-time + */ + createdTime?: string | null +} + +/** 分页信息输入 */ +export interface PageInputUspscaleGetPageInput { + dynamicFilter?: DynamicFilterInfo + /** 排序列表 */ + sortList?: SortInput[] | null + /** + * 当前页标 + * @format int32 + */ + currentPage?: number + /** + * 每页大小 + * @format int32 + */ + pageSize?: number + /** 分页请求 */ + filter?: UspscaleGetPageInput +} + +/** 分页请求 */ +export interface UspscaleGetPageInput { + /** 关键词 */ + keyWord?: string | null + /** 房间ID */ + roomID?: number + /** 开始日期 */ + stDate?: string | null + /** 结束日期 */ + edDate?: string | null +} + +/** 结果输出 */ +export interface ResultOutputPageOutputUspscaleGetPageOutput { + /** 是否成功标记 */ + success?: boolean + /** 编码 */ + code?: string | null + /** 消息 */ + msg?: string | null + /** 分页信息输出 */ + data?: PageOutputUspscaleGetPageOutput +} + +/** 分页信息输出 */ +export interface PageOutputUspscaleGetPageOutput { + /** + * 数据总数 + * @format int64 + */ + total?: number + /** 数据 */ + list?: UspscaleGetPageOutput[] | null +} + +/** 分页响应 */ +export interface UspscaleGetPageOutput { + /** + * 编号 + * @format int64 + */ + id?: number + /** 设备编号 */ + deviceNo?: string | null + /** 资产编号 */ + assetNo?: string | null + /** 型号 */ + model?: string | null + /** 规格 */ + specification?: string | null + /** 房间ID */ + roomID?: number + /** 维护标记 */ + maintenanceFlag?: boolean + /** 是否喂料秤 */ + isFeedingScale?: boolean + /** 启用 */ + enabled?: boolean + /** 创建者 */ + createdUserName?: string | null + /** + * 创建时间 + * @format date-time + */ + createdTime?: string | null +} diff --git a/src/layout/navMenu/horizontal.vue b/src/layout/navMenu/horizontal.vue index 196e53c..0bebd5e 100644 --- a/src/layout/navMenu/horizontal.vue +++ b/src/layout/navMenu/horizontal.vue @@ -19,9 +19,9 @@ -