diff --git a/public/config.js b/public/config.js index ef0a764..72938f1 100644 --- a/public/config.js +++ b/public/config.js @@ -4,5 +4,5 @@ window.__env__ = { "VITE_OPEN_CDN": "false", "VITE_PUBLIC_PATH": "", "VITE_SM_PUBLIC_KEY": "0484C7466D950E120E5ECE5DD85D0C90EAA85081A3A2BD7C57AE6DC822EFCCBD66620C67B0103FC8DD280E36C3B282977B722AAEC3C56518EDCEBAFB72C5A05312", - "VITE_API_URL": "http://192.168.2.7:5036" + "VITE_API_URL": "http://192.168.2.7:5034" } \ No newline at end of file diff --git a/src/api-services/api.ts b/src/api-services/api.ts index e4cdc53..401356c 100644 --- a/src/api-services/api.ts +++ b/src/api-services/api.ts @@ -74,4 +74,5 @@ export * from './apis/sys-battery-log-api'; export * from './apis/sys-equip-alarm-log-api'; export * from './apis/sys-equipinfo-api'; export * from './apis/sys-bty-mode-info-api'; +export * from './apis/sys-homepage-api'; diff --git a/src/api-services/apis/sys-homepage-api.ts b/src/api-services/apis/sys-homepage-api.ts new file mode 100644 index 0000000..3011341 --- /dev/null +++ b/src/api-services/apis/sys-homepage-api.ts @@ -0,0 +1,1727 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 青拓 通用权限开发平台 + * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。
👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! + * + * OpenAPI spec version: 1.0.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'; +import { Configuration } from '../configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +import { AdminResultSysUser } from '../models'; +import { PageChargeMonitorInput } from '../models'; + +/** + * SysMonitorApi - axios parameter creator + * @export + */ + + +export const SysHomePageApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary 查询分页数据 🔖 + * @param {PageChargeMonitorInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiChargeChargePositionQueryPost: async (body?: PageChargeMonitorInput, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/ChargeMonitor/ChargePositionQuery`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; + localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** + * + * @summary 设置仓位禁用和启用 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSetChargingBinStatusPost: async (binNo: string, status: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/ChargeMonitor/SetChargingBinStatus/{binNo}/{status}` + .replace(`{${"binNo"}}`, encodeURIComponent(String(binNo))) + .replace(`{${"status"}}`, encodeURIComponent(String(status))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** +* +* @summary 预约解锁锁定 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + apiSetBinInfoMakeAnAppointmentPost: async (binNo: string, amtlock: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/ChargeMonitor/BinInfoMakeAnAppointment/{binNo}/{amtlock}` + .replace(`{${"binNo"}}`, encodeURIComponent(String(binNo))) + .replace(`{${"amtlock"}}`, encodeURIComponent(String(amtlock))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** +* +* @summary 修改电池编号 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + apiSetUpdateBatteryNoPost: async (binNo: string, batteryNo: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/ChargeMonitor/UpdateBatteryNo/{binNo}/{batteryNo}` + .replace(`{${"binNo"}}`, encodeURIComponent(String(binNo))) + .replace(`{${"batteryNo"}}`, encodeURIComponent(String(batteryNo))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** + * + * @summary 设置仓位换电禁用启用 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUpdateCanSwapFlagGet: async (id: number, flag: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/BinInfo/UpdateCanSwapFlag/{id}/{flag}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"flag"}}`, encodeURIComponent(String(flag))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** + * + * @summary 设置仓位充电禁用启用 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUpdateCanChargeFlagGet: async (id: number, flag: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/BinInfo/UpdateCanChargeFlag/{id}/{flag}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"flag"}}`, encodeURIComponent(String(flag))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** +* +* @summary 设置充电机功率 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + apiSendPowerRegulationGet: async (code: string, power: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/Charge/SendPowerRegulation/{code}/{power}` + .replace(`{${"code"}}`, encodeURIComponent(String(code))) + .replace(`{${"power"}}`, encodeURIComponent(String(power))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** + * + * @summary图表🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGetHomePagelinePost: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/Home/GetDaySwapOrderCount`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** + * + * @summary 充电数据的展示 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGetChargerInfoListGET: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/Home/GetMonthSwapOrderCount`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** +* +* @summary 设置电池移仓 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + apiSetBatteryRelocationPost: async (removeBinNo: number, putBinNo: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/ChargeMonitor/BatteryRelocation?removeBinNo={removeBinNo}&putBinNo={putBinNo}` + .replace(`{${"removeBinNo"}}`, encodeURIComponent(String(removeBinNo))) + .replace(`{${"putBinNo"}}`, encodeURIComponent(String(putBinNo))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** +* +* @summary 启动充电 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + apiSetStartChargeByBinNoGet: async (binNo: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/Charge/StartChargeByBinNo/{binNo}` + .replace(`{${"binNo"}}`, encodeURIComponent(String(binNo))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** +* +* @summary 停止充电 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + apiSetStopChargeByBinNoGet: async (binNo: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/Charge/StopChargeByBinNo/{binNo}` + .replace(`{${"binNo"}}`, encodeURIComponent(String(binNo))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** +* +* @summary 查询功率 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + apiSetBinInfoChargePowerGet: async (code: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/BinInfo/ChargePower/{code}` + .replace(`{${"code"}}`, encodeURIComponent(String(code))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** +* +* @summary 下发电价 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + apiDistributeElecPriceForChargeGet: async (ceid: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/Charge/DistributeElecPriceForCharge/{ceid}` + .replace(`{${"ceid"}}`, encodeURIComponent(String(ceid))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** +* +* @summary 下发鉴权 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + apiChargerSendAuthGet: async (code: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/Charge/DistributeElecPriceForCharge/{code}` + .replace(`{${"code"}}`, encodeURIComponent(String(code))) + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** + * + * @summary 获取首页电池信息数据 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGetBattPerStatusCountGet: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/ChrgMonitor/GetBattPerStatusCount`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** + * + * @summary 获取首页电池统计值 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBatteryStatusInfoGet: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/Charge/BatteryStatusInfo`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** + * + * @summary 获取充电大屏 仓位信息 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGetChargMonitorChargBinData: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/Charge/GetChargMonitorChargBinData`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + /** + * + * @summary 获取充电大屏 充电次数 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGetSwapAndChargingCountData: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/SwapMonitor/GetSwapAndChargingCount`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + + + /** + * + * @summary 获取七天电能统计 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSevenDaysElectricalEnergyGet: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/Ammeter/SevenDaysElectrical`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + } +} + +export const SysHomePageApiFp = function (configuration?: Configuration) { + return { + /** + * + * @summary 查询分页数据 🔖 + * @param {PageChargeMonitorInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiChargeChargePositionQueryPost(body?: PageChargeMonitorInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiChargeChargePositionQueryPost(body, options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 设置仓位禁用和启用 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiSetChargingBinStatusPost(binNo: string, status: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSetChargingBinStatusPost(binNo, status, options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 设置预约解锁锁定 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiSetBinInfoMakeAnAppointmentPost(binNo: string, amtlock: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSetBinInfoMakeAnAppointmentPost(binNo, amtlock, options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 修改电池编号 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiSetUpdateBatteryNoPost(binNo: string, batteryNo: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSetUpdateBatteryNoPost(binNo, batteryNo, options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 设置仓位换电禁用和启用 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiUpdateCanSwapFlagGet(id: number, flag: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiUpdateCanSwapFlagGet(id, flag, options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 设置仓位充电禁用和启用 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiUpdateCanChargeFlagGet(id: number, flag: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiUpdateCanChargeFlagGet(id, flag, options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 设置充电机功率 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiSendPowerRegulationGet(code: string, power: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSendPowerRegulationGet(code, power, options); + const second_url = 'http://192.168.2.7:5034' + + return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + + /** + * + * @summary图表🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetHomePagelinePost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiGetHomePagelinePost(options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** + * + * @summary 充电数据的展示 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetChargerInfoListGET(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiGetChargerInfoListGET(options); + const second_url = 'http://192.168.2.7:5034' + + return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 设置电池移仓 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiSetBatteryRelocationPost(removeBinNo: number, putBinNo: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSetBatteryRelocationPost(removeBinNo, putBinNo, options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 启动充电 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiSetStartChargeByBinNoGet(binNo: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSetStartChargeByBinNoGet(binNo, options); + const second_url = 'http://192.168.2.7:5034' + + return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 停止充电 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiSetStopChargeByBinNoGet(binNo: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSetStopChargeByBinNoGet(binNo, options); + const second_url = 'http://192.168.2.7:5034' + + return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 查询功率 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiSetBinInfoChargePowerGet(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSetBinInfoChargePowerGet(code, options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 下发电价 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiDistributeElecPriceForChargeGet(ceid: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiDistributeElecPriceForChargeGet(ceid, options); + const second_url = 'http://192.168.2.7:5034' + + return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** +* +* @summary 下发鉴权 🔖 +* @param {*} [options] Override http request option. +* @throws {RequiredError} +*/ + async apiChargerSendAuthGet(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiChargerSendAuthGet(code, options); + const second_url = 'http://192.168.2.7:5034' + + return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** + * + * @summary 获取首页电池信息数据 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetBattPerStatusCountGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiGetBattPerStatusCountGet(options); + + const second_url = 'http://192.168.2.7:5034' + + return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** + * + * @summary 获取首页电池统计值 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiBatteryStatusInfoGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiBatteryStatusInfoGet(options); + + const second_url = 'http://192.168.2.7:5034' + + return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** + * + * @summary 获取充电大屏 仓位信息 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetChargMonitorChargBinData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiGetChargMonitorChargBinData(options); + + const second_url = 'http://192.168.2.7:5035' + + return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** + * + * @summary 获取充电大屏 充电次数 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetSwapAndChargingCountData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiGetSwapAndChargingCountData(options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + /** + * + * @summary 获取七天电能统计 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSevenDaysElectricalEnergyGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSevenDaysElectricalEnergyGet(options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + } +} + +export const SysHomePageApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + return { + /** + * + * @summary 查询分页数据 🔖 + * @param {PageChargeMonitorInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiChargeChargePositionQueryPost(body?: PageChargeMonitorInput, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiChargeChargePositionQueryPost(body, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 设置仓位禁用和启用 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSetChargingBinStatusPost(binNo: string, status: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiSetChargingBinStatusPost(binNo, status, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 设置预约解锁锁定 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSetBinInfoMakeAnAppointmentPost(binNo: string, amtlock: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiSetBinInfoMakeAnAppointmentPost(binNo, amtlock, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 编辑电池编号 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSetUpdateBatteryNoPost(binNo: string, batteryNo: string, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiSetUpdateBatteryNoPost(binNo, batteryNo, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 设置仓位换电禁用和启用 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiUpdateCanSwapFlagGet(id: number, flag: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiUpdateCanSwapFlagGet(id, flag, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 设置仓位充电禁用和启用 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiUpdateCanChargeFlagGet(id: number, flag: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiUpdateCanChargeFlagGet(id, flag, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 设置充电机功率 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSendPowerRegulationGet(code: string, power: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiSendPowerRegulationGet(code, power, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary图表🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetHomePagelinePost(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiGetHomePagelinePost(options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 充电数据的展示 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetChargerInfoListGET(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiGetChargerInfoListGET(options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 设置电池移仓 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSetBatteryRelocationPost(removeBinNo: number, putBinNo: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiSetBatteryRelocationPost(removeBinNo, putBinNo, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 启动充电 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSetStartChargeByBinNoGet(binNo: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiSetStartChargeByBinNoGet(binNo, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 停止充电 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSetStopChargeByBinNoGet(binNo: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiSetStopChargeByBinNoGet(binNo, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 查询功率 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSetBinInfoChargePowerGet(code: string, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiSetBinInfoChargePowerGet(code, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 下发电价 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiDistributeElecPriceForChargeGet(ceid: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiDistributeElecPriceForChargeGet(ceid, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 下发鉴权 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiChargerSendAuthGet(code: string, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiChargerSendAuthGet(code, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 获取首页电池信息数据 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetBattPerStatusCountGet(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiGetBattPerStatusCountGet(options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 获取首页电池统计值 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiBatteryStatusInfoGet(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiBatteryStatusInfoGet(options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 获取充电大屏 仓位信息 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetChargMonitorChargBinData(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiGetChargMonitorChargBinData(options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 获取充电大屏 充电次数 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetSwapAndChargingCountData(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiGetSwapAndChargingCountData(options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 获取七天电能统计 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSevenDaysElectricalEnergyGet(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(configuration).apiSevenDaysElectricalEnergyGet(options).then((request) => request(axios, basePath)); + }, + } +} + + +/** + * - object-oriented interface + * @export + * @class SysUserApi + * @extends {BaseAPI} + */ + + +export class SysHomePageApi extends BaseAPI { + /** + * + * @summary 查询分页数据 🔖 + * @param {PageChargeMonitorInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysHomePageApi + */ + public async apiChargeChargePositionQueryPost(body: PageChargeMonitorInput, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiChargeChargePositionQueryPost(body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 设置仓位禁用和启用 🔖 // 接口后面直接跟参数 + * @param {string} binNo + * @param {number} status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiSetChargingBinStatusPost(binNo: string, status: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiSetChargingBinStatusPost(binNo, status, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 设置预约锁定解锁 🔖 // 接口后面直接跟参数 + * @param {string} binNo + * @param {number} amtlock + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiSetBinInfoMakeAnAppointmentPost(binNo: string, amtlock: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiSetBinInfoMakeAnAppointmentPost(binNo, amtlock, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 编辑电池编号 🔖 // 接口后面直接跟参数 + * @param {string} binNo + * @param {string} batteryNo + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiSetUpdateBatteryNoPost(binNo: string, batteryNo: string, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiSetUpdateBatteryNoPost(binNo, batteryNo, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 设置仓位换电禁用和启用 🔖 // 接口后面直接跟参数 + * @param {number} id + * @param {number} flag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiUpdateCanSwapFlagGet(id: number, flag: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiUpdateCanSwapFlagGet(id, flag, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 设置仓位充电禁用和启用 🔖 // 接口后面直接跟参数 + * @param {number} id + * @param {number} flag + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiUpdateCanChargeFlagGet(id: number, flag: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiUpdateCanChargeFlagGet(id, flag, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 设置充电机功率 🔖 // 接口后面直接跟参数 + * @param {string} code + * @param {number} power + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiSendPowerRegulationGet(code: string, power: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiSendPowerRegulationGet(code, power, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary图表🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysHomePageApi + */ + public async apiGetHomePagelinePost(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiGetHomePagelinePost(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 充电数据的展示 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysHomePageApi + */ + public async apiGetChargerInfoListGET(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiGetChargerInfoListGET(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 设置电池移仓 + * @param {number} removeBinNo + * @param {number} putBinNo + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiSetBatteryRelocationPost(removeBinNo: number, putBinNo: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiSetBatteryRelocationPost(removeBinNo, putBinNo, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 启动充电 + * @param {number} binNo + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiSetStartChargeByBinNoGet(binNo: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiSetStartChargeByBinNoGet(binNo, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 停止充电 + * @param {number} binNo + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiSetStopChargeByBinNoGet(binNo: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiSetStopChargeByBinNoGet(binNo, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 查询功率 + * @param {string} code + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiSetBinInfoChargePowerGet(code: string, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiSetBinInfoChargePowerGet(code, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 下发电价 + * @param {number} ceid + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiDistributeElecPriceForChargeGet(ceid: number, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiDistributeElecPriceForChargeGet(ceid, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 下发鉴权 + * @param {string} ceid + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiChargerSendAuthGet(code: string, options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiChargerSendAuthGet(code, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 获取首页电池信息数据 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysHomePageApi + */ + public async apiGetBattPerStatusCountGet(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiGetBattPerStatusCountGet(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 获取首页电池统计值 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysHomePageApi + */ + public async apiBatteryStatusInfoGet(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiBatteryStatusInfoGet(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 获取充电大屏 仓位信息 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysHomePageApi + */ + public async apiGetChargMonitorChargBinData(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiGetChargMonitorChargBinData(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 获取充电大屏 充电次数 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysHomePageApi + */ + public async apiGetSwapAndChargingCountData(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiGetSwapAndChargingCountData(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 获取七天电能统计 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysHomePageApi + */ + public async apiSevenDaysElectricalEnergyGet(options?: AxiosRequestConfig): Promise> { + return SysHomePageApiFp(this.configuration).apiSevenDaysElectricalEnergyGet(options).then((request) => request(this.axios, this.basePath)); + } + +} + diff --git a/src/assets/img/nxylogomini.png b/src/assets/img/nxylogomini.png new file mode 100644 index 0000000..16fa9a3 Binary files /dev/null and b/src/assets/img/nxylogomini.png differ diff --git a/src/views/home/homepage/component/myEcharts.vue b/src/views/home/homepage/component/myEcharts.vue new file mode 100644 index 0000000..6a4c07b --- /dev/null +++ b/src/views/home/homepage/component/myEcharts.vue @@ -0,0 +1,319 @@ + + + + diff --git a/src/views/home/homepage/index.vue b/src/views/home/homepage/index.vue index 6606a24..4aea9e4 100644 --- a/src/views/home/homepage/index.vue +++ b/src/views/home/homepage/index.vue @@ -1,321 +1,446 @@ + +@import url('./index.less'); +:deep(.el-dialog__title) { + font-size: 12px; + color: #fff; +} +:deep(.el-loading-spinner) { + top: 30%; +} +.el-card { + margin-left: 5px; +} +:deep(.my-label) { + background: var(--el-color-success-light-9) !important; +} +:deep(.my-content) { + background: var(--el-color-danger-light-9); +} +:deep(.el-step__icon-inner) { + font-size: 19px !important; +} +// zz +.mini_title { + color: #fff; + font-size: large; + margin-left: 10px; +} +// +.swapper_order { + height: 250px; + margin-top: 30px; + // height: calc(100% - 45px); + color: #fff; + // display: flex; + flex-direction: column; + > div { + margin-top: 30px; + > div { + margin-left: 20px; + } + } + // >div { + // width: 100%; + // flex: 1; + // margin-top: 10px; + // display: flex; + // flex-direction: column; + // justify-content: space-evenly; + // align-items: flex-start; + + // span:last-child { + // color: #fff; + // font-size: 14px; + // font-weight: 600; + // } + // } +} +.swapper_order1 { + height: calc(100vh - 755px); + margin-top: 30px; + + color: #fff; + // display: flex; + flex-direction: column; + > div { + margin-top: 30px; + > div { + margin-left: 20px; + } + } + +} +// +.tops_title { + color: #fff; + display: flex; + justify-content: center; + align-items: center; + line-height: 35px; + border: 1px solid #fff; + box-sizing: border-box; + + span { + // flex: 1; + width: 11.11%; + text-align: center; + // border: 1px solid #fff; + // border-top: 1px solid #fff; + border-right: 1px solid #fff; + box-sizing: border-box; + } +} +.eq_box_table { + height: calc(100% - 35px); + display: flex; + color: #fff; + .left_titles { + width: 11.2%; + // height: 100%; + display: flex; + flex-direction: column; + // border-left: 1px solid #fff; + // border-right: 1px solid #fff; + // box-sizing: border-box; + > div { + display: flex; + justify-content: center; + align-items: center; + border: 1px solid #fff; + border-top: unset; + box-sizing: border-box; + } + } + .main_content { + flex: 1; + height: 100%; + display: flex; + flex-direction: column; + > div { + color: #fff; + display: flex; + height: 11.11%; + border: 1px solid #fff; + border-bottom: 1px solid #fff; + box-sizing: border-box; + + span { + color: #fff; + flex: 1; + display: flex; + justify-content: center; + align-items: center; + + border-left: 1px solid #fff; + box-sizing: border-box; + } + span:last-child { + border-right: 1px solid #fff; + } + span:first-child { + border-left: unset; + } + } + } +} + \ No newline at end of file diff --git a/src/views/home/swapping/index.less b/src/views/home/swapping/index.less index df33cac..66103ba 100644 --- a/src/views/home/swapping/index.less +++ b/src/views/home/swapping/index.less @@ -4,7 +4,13 @@ box-sizing: border-box; padding: 10px; } - +.contents{ + height: calc(100vh - 90px); + // padding: 10px 0; + box-sizing: border-box; + padding: 10px; + color: white; +} .title_header { background: #28353f; height: 120px; @@ -74,7 +80,7 @@ .bot_maininfo { - height: calc(100% - 340px); + height: 100%; margin-top: 10px; .el-col {