diff --git a/.env.development b/.env.development index 9079ea9..4546e14 100644 --- a/.env.development +++ b/.env.development @@ -3,7 +3,7 @@ ENV = development # 本地环境接口地址 # VITE_API_URL = http://localhost:5034 -VITE_API_URL = http://192.168.2.7:5036 +VITE_API_URL = http://192.168.2.7:5034 # VITE_API_URL = http://192.168.2.13:5036 # VITE_API_URL = http://33055a1c.r11.cpolar.top # VITE_API_URL = http://192.168.2.17:5034 diff --git a/package-lock.json b/package-lock.json index f33403f..912746c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "dependencies": { "@element-plus/icons-vue": "^2.3.1", + "@kjgl77/datav-vue3": "^1.7.3", "@microsoft/signalr": "^8.0.0", "@vue-office/docx": "^1.6.1", "@vue-office/excel": "^1.7.7", @@ -1356,6 +1357,47 @@ "url": "https://github.com/sponsors/kazupon" } }, + "node_modules/@jiaminghi/bezier-curve": { + "version": "0.0.9", + "resolved": "https://registry.npmmirror.com/@jiaminghi/bezier-curve/-/bezier-curve-0.0.9.tgz", + "integrity": "sha512-u9xJPOEl6Dri2E9FfmJoGxYQY7vYJkURNX04Vj64tdi535tPrpkuf9Sm0lNr3QTKdHQh0DdNRsaa62FLQNQEEw==", + "dependencies": { + "@babel/runtime": "^7.5.5" + } + }, + "node_modules/@jiaminghi/c-render": { + "version": "0.4.3", + "resolved": "https://registry.npmmirror.com/@jiaminghi/c-render/-/c-render-0.4.3.tgz", + "integrity": "sha512-FJfzj5hGj7MLqqqI2D7vEzHKbQ1Ynnn7PJKgzsjXaZpJzTqs2Yw5OSeZnm6l7Qj7jyPAP53lFvEQNH4o4j6s+Q==", + "dependencies": { + "@babel/runtime": "^7.5.5", + "@jiaminghi/bezier-curve": "*", + "@jiaminghi/color": "*", + "@jiaminghi/transition": "*" + } + }, + "node_modules/@jiaminghi/charts": { + "version": "0.2.18", + "resolved": "https://registry.npmmirror.com/@jiaminghi/charts/-/charts-0.2.18.tgz", + "integrity": "sha512-K+HXaOOeWG9OOY1VG6M4mBreeeIAPhb9X+khG651AbnwEwL6G2UtcAQ8GWCq6GzhczcLwwhIhuaHqRygwHC0sA==", + "dependencies": { + "@babel/runtime": "^7.5.5", + "@jiaminghi/c-render": "^0.4.3" + } + }, + "node_modules/@jiaminghi/color": { + "version": "1.1.3", + "resolved": "https://registry.npmmirror.com/@jiaminghi/color/-/color-1.1.3.tgz", + "integrity": "sha512-ZY3hdorgODk4OSTbxyXBPxAxHPIVf9rPlKJyK1C1db46a50J0reFKpAvfZG8zMG3lvM60IR7Qawgcu4ZDO3+Hg==" + }, + "node_modules/@jiaminghi/transition": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/@jiaminghi/transition/-/transition-1.1.11.tgz", + "integrity": "sha512-owBggipoHMikDHHDW5Gc7RZYlVuvxHADiU4bxfjBVkHDAmmck+fCkm46n2JzC3j33hWvP9nSCAeh37t6stgWeg==", + "dependencies": { + "@babel/runtime": "^7.5.5" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.5", "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", @@ -1413,6 +1455,17 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@kjgl77/datav-vue3": { + "version": "1.7.3", + "resolved": "https://registry.npmmirror.com/@kjgl77/datav-vue3/-/datav-vue3-1.7.3.tgz", + "integrity": "sha512-8zNu2zDXylDS6aL8SNDR7/h4ccO2LnBg/KbTwOeF7p9hqiRW9TR7Zd/e8baYnJPb9tAwYOubzWTQnjUTdtE8dA==", + "dependencies": { + "@jiaminghi/c-render": "^0.4.3", + "@jiaminghi/charts": "^0.2.18", + "@jiaminghi/color": "^1.1.3", + "@vueuse/core": "^10.9.0" + } + }, "node_modules/@microsoft/signalr": { "version": "8.0.7", "resolved": "https://registry.npmmirror.com/@microsoft/signalr/-/signalr-8.0.7.tgz", diff --git a/src/api-services/api.ts b/src/api-services/api.ts index 401356c..c877760 100644 --- a/src/api-services/api.ts +++ b/src/api-services/api.ts @@ -66,7 +66,8 @@ export * from './apis/sys-repairedInfo-api';//zz export * from './apis/sys-com-state-start-info-api';//zz export * from './apis/sys-com-state-end-info-api';//zz export * from './apis/sys-replace-status-log-api';//zz -export * from './apis/sys-day-swap-run-result-api'; +export * from './apis/sys-replace-status-log-api';//zz +export * from './apis/sys-homepage-api';//zz export * from './apis/sys-side-basis-api'; export * from './apis/sys-electricity-api'; export * from './apis/sys-system-baseconfig-api'; @@ -74,5 +75,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'; +export * from './apis/sys-charg-capacity-api'; diff --git a/src/api-services/apis/sys-charg-capacity-api.ts b/src/api-services/apis/sys-charg-capacity-api.ts new file mode 100644 index 0000000..09783eb --- /dev/null +++ b/src/api-services/apis/sys-charg-capacity-api.ts @@ -0,0 +1,560 @@ +/* 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 { PageEmeterDayEnergyInput } from '../models'; + +/** + * SysChargCapacityApi - axios parameter creator + * @export + */ + +export const SysChargCapacityApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary 查询直流分页数据 🔖 + * @param {PageEmeterDayEnergyInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiTEgEmeterTotalEnergyValuePageGet: async (body?: PageEmeterDayEnergyInput, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/Home/GetElectricityConsumption`; + // 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 {PageEmeterDayEnergyInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGetAllEmeterEnergyChangeGet: async (body?: PageEmeterDayEnergyInput, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/Home/GetElectricityChargerNoConsumption`; + // 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} + */ + apiGetGetTodayMinutelyElectricalData: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/Ammeter/GetTodayMinutelyElectricalData`; + // 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} + */ + apiGetLastDayMeterData: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/Ammeter/GetLastDayMeterData`; + // 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. + * * @param {Array} [body] + * @throws {RequiredError} + */ + apiBatchDeleteTEgEmeterTotalEnergyValuePost: async (body?: Array, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/Ammeter/TEgEmeterTotalEnergyValue/BatchDelete`; + // 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} + */ + apiDeleteTEgEmeterTotalEnergyValueGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `api/Ammeter/TEgEmeterTotalEnergyValue/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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, + }; + }, + } +} +export const SysChargCapacityApiFp = function (configuration?: Configuration) { + return { + /** + * + * @summary 查询分页数据 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @param {PageEmeterDayEnergyInput} [body] + * + */ + async apiTEgEmeterTotalEnergyValuePageGet(body?: PageEmeterDayEnergyInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysChargCapacityApiAxiosParamCreator(configuration).apiTEgEmeterTotalEnergyValuePageGet(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 {PageEmeterDayEnergyInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetAllEmeterEnergyChangeGet(body?: PageEmeterDayEnergyInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysChargCapacityApiAxiosParamCreator(configuration).apiGetAllEmeterEnergyChangeGet(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 apiGetGetTodayMinutelyElectricalData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysChargCapacityApiAxiosParamCreator(configuration).apiGetGetTodayMinutelyElectricalData(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 apiGetLastDayMeterData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysChargCapacityApiAxiosParamCreator(configuration).apiGetLastDayMeterData(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 apiBatchDeleteTEgEmeterTotalEnergyValuePost(body?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysChargCapacityApiAxiosParamCreator(configuration).apiBatchDeleteTEgEmeterTotalEnergyValuePost(body, options); + const second_url = 'http://192.168.2.3:5034' + + 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 apiDeleteTEgEmeterTotalEnergyValueGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await SysChargCapacityApiAxiosParamCreator(configuration).apiDeleteTEgEmeterTotalEnergyValueGet(id, options); + + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; + return axios.request(axiosRequestArgs); + }; + }, + + } +} +export const SysChargCapacityFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + return { + /** + * + * @summary 查询分页数据 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * * @param {PageEmeterDayEnergyInput} [body] + + */ + async apiTEgEmeterTotalEnergyValuePageGet(body?: PageEmeterDayEnergyInput, options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(configuration).apiTEgEmeterTotalEnergyValuePageGet(body, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 查询分页数据 🔖 + * @param {PageEmeterDayEnergyInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetAllEmeterEnergyChangeGet(body?: PageEmeterDayEnergyInput, options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(configuration).apiGetAllEmeterEnergyChangeGet(body, options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 获取分钟能耗值 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetGetTodayMinutelyElectricalData(options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(configuration).apiGetGetTodayMinutelyElectricalData(options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 获取小时能耗值 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetLastDayMeterData(options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(configuration).apiGetLastDayMeterData(options).then((request) => request(axios, basePath)); + }, + + /** + * + * @summary 批量删除数据 🔖 + * @param {Array} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiBatchDeleteTEgEmeterTotalEnergyValuePost(body?: Array, options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(configuration).apiBatchDeleteTEgEmeterTotalEnergyValuePost(body, options).then((request) => request(axios, basePath)); + }, + + + /** + * + * @summary 删除 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiDeleteTEgEmeterTotalEnergyValueGet(id: string, options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(configuration).apiDeleteTEgEmeterTotalEnergyValueGet(id, options).then((request) => request(axios, basePath)); + }, + } +} + +/** + * SysUserApi - object-oriented interface + * @export + * @class SysUserApi + * @extends {BaseAPI} + */ +export class SysChargCapacityApi extends BaseAPI { + /** + * + * @summary 查询分页数据 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysChargCapacityApi + * * @param {PageEmeterDayEnergyInput} [body] + + */ + public async apiTEgEmeterTotalEnergyValuePageGet(body?: PageEmeterDayEnergyInput, options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(this.configuration).apiTEgEmeterTotalEnergyValuePageGet(body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 查询分页数据 🔖 + * @param {PageEmeterDayEnergyInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysChargCapacityApi + */ + public async apiGetAllEmeterEnergyChangeGet(body: PageEmeterDayEnergyInput, options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(this.configuration).apiGetAllEmeterEnergyChangeGet(body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 获取分钟能耗值 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysChargCapacityApi + */ + public async apiGetGetTodayMinutelyElectricalData(options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(this.configuration).apiGetGetTodayMinutelyElectricalData(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 获取小时能耗值 🔖 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysChargCapacityApi + */ + public async apiGetLastDayMeterData(options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(this.configuration).apiGetLastDayMeterData(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 批量删除数据 🔖 + * @param {Array} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysChargCapacityApi + */ + public async apiBatchDeleteTEgEmeterTotalEnergyValuePost(body?: Array, options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(this.configuration).apiBatchDeleteTEgEmeterTotalEnergyValuePost(body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary 删除 🔖 // 接口后面直接跟参数 + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SysMonitorApi + */ + public async apiDeleteTEgEmeterTotalEnergyValueGet(id: string, options?: AxiosRequestConfig): Promise> { + return SysChargCapacityApiFp(this.configuration).apiDeleteTEgEmeterTotalEnergyValueGet(id, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/api-services/apis/sys-chargemonitor-api.ts b/src/api-services/apis/sys-chargemonitor-api.ts index 0773cd5..bdefdce 100644 --- a/src/api-services/apis/sys-chargemonitor-api.ts +++ b/src/api-services/apis/sys-chargemonitor-api.ts @@ -1050,7 +1050,7 @@ export const SysChargeMonitorApiFp = function (configuration?: Configuration) { */ async apiSendPowerRegulationGet(code: string, power: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysChargeMonitorApiAxiosParamCreator(configuration).apiSendPowerRegulationGet(code, power, options); - const second_url = 'http://localhost:5035' + 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 }; @@ -1082,7 +1082,7 @@ export const SysChargeMonitorApiFp = function (configuration?: Configuration) { */ async apiGetChargerCodeListGET(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysChargeMonitorApiAxiosParamCreator(configuration).apiGetChargerCodeListGET(options); - const second_url = 'http://localhost:5035' + 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 }; @@ -1113,7 +1113,7 @@ export const SysChargeMonitorApiFp = function (configuration?: Configuration) { */ async apiSetStartChargeByBinNoGet(binNo: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysChargeMonitorApiAxiosParamCreator(configuration).apiSetStartChargeByBinNoGet(binNo, options); - const second_url = 'http://localhost:5035' + 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 }; @@ -1129,7 +1129,7 @@ export const SysChargeMonitorApiFp = function (configuration?: Configuration) { */ async apiSetStopChargeByBinNoGet(binNo: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysChargeMonitorApiAxiosParamCreator(configuration).apiSetStopChargeByBinNoGet(binNo, options); - const second_url = 'http://localhost:5035' + 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 }; @@ -1160,7 +1160,7 @@ export const SysChargeMonitorApiFp = function (configuration?: Configuration) { */ async apiDistributeElecPriceForChargeGet(ceid: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysChargeMonitorApiAxiosParamCreator(configuration).apiDistributeElecPriceForChargeGet(ceid, options); - const second_url = 'http://localhost:5035' + 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 }; @@ -1176,7 +1176,7 @@ export const SysChargeMonitorApiFp = function (configuration?: Configuration) { */ async apiChargerSendAuthGet(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysChargeMonitorApiAxiosParamCreator(configuration).apiChargerSendAuthGet(code, options); - const second_url = 'http://localhost:5035' + 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 }; @@ -1193,7 +1193,7 @@ export const SysChargeMonitorApiFp = function (configuration?: Configuration) { async apiGetBattPerStatusCountGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysChargeMonitorApiAxiosParamCreator(configuration).apiGetBattPerStatusCountGet(options); - const second_url = 'http://localhost:5035' + 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 }; @@ -1210,7 +1210,7 @@ export const SysChargeMonitorApiFp = function (configuration?: Configuration) { async apiBatteryStatusInfoGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysChargeMonitorApiAxiosParamCreator(configuration).apiBatteryStatusInfoGet(options); - const second_url = 'http://localhost:5035' + 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 }; @@ -1227,7 +1227,7 @@ export const SysChargeMonitorApiFp = function (configuration?: Configuration) { async apiGetChargMonitorChargBinData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysChargeMonitorApiAxiosParamCreator(configuration).apiGetChargMonitorChargBinData(options); - const second_url = 'http://localhost:5035' + 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 }; diff --git a/src/assets/imgs/battery_one.png b/src/assets/imgs/battery_one.png new file mode 100644 index 0000000..a6e1942 Binary files /dev/null and b/src/assets/imgs/battery_one.png differ diff --git a/src/assets/imgs/battery_three.png b/src/assets/imgs/battery_three.png new file mode 100644 index 0000000..002064d Binary files /dev/null and b/src/assets/imgs/battery_three.png differ diff --git a/src/assets/imgs/battery_two.png b/src/assets/imgs/battery_two.png new file mode 100644 index 0000000..d7884a0 Binary files /dev/null and b/src/assets/imgs/battery_two.png differ diff --git a/src/assets/imgs/充电顶部框_dark.png b/src/assets/imgs/充电顶部框_dark.png new file mode 100644 index 0000000..23fe4d4 Binary files /dev/null and b/src/assets/imgs/充电顶部框_dark.png differ diff --git a/src/i18n/pages/login/zh-cn.ts b/src/i18n/pages/login/zh-cn.ts index decb394..4d7adb7 100644 --- a/src/i18n/pages/login/zh-cn.ts +++ b/src/i18n/pages/login/zh-cn.ts @@ -249,7 +249,7 @@ export default { noBattery: "无电池", disabled: "禁用", chargingCompleted: "充电完成", - chargerConnectionStatus: "充电机连接状态", + chargerConnectionStatus: "充电机状态", connected: "已连接", disconnected: "未连接", chargingTime: "充电时间", diff --git a/src/stores/themeConfig.ts b/src/stores/themeConfig.ts index 4b8df6c..9de2235 100644 --- a/src/stores/themeConfig.ts +++ b/src/stores/themeConfig.ts @@ -10,7 +10,55 @@ import { defineStore } from 'pinia'; */ export const useThemeConfig = defineStore('themeConfig', { state: (): ThemeConfigState => ({ - themeConfig: { "isDrawer": false, "primary": "#131a1f", "isIsDark": false, "topBar": "#131a1f", "topBarColor": "#28353f", "isTopBarColorGradual": false, "menuBar": "#131a1f", "menuBarColor": "#FFFFFF", "menuBarActiveColor": "var(--el-color-primary-light-7)", "isMenuBarColorGradual": false, "columnsMenuBar": "#2C3A49", "columnsMenuBarColor": "#F0F0F0", "isColumnsMenuBarColorGradual": false, "isColumnsMenuHoverPreload": false, "isCollapse": false, "isUniqueOpened": true, "isFixedHeader": true, "isFixedHeaderChange": false, "isClassicSplitMenu": false, "isLockScreen": false, "lockScreenTime": 300, "isShowLogo": true, "isShowLogoChange": false, "isBreadcrumb": true, "isTagsview": true, "isBreadcrumbIcon": false, "isTagsviewIcon": false, "isCacheTagsView": false, "isSortableTagsView": true, "isShareTagsView": false, "isFooter": true, "isGrayscale": false, "isInvert": false, "isWatermark": false, "watermarkText": "青拓", "tagsStyle": "tags-style-one", "animation": "fadeLeft", "columnsAsideStyle": "columns-round", "columnsAsideLayout": "columns-vertical", "layout": "defaults", "isRequestRoutes": true, "globalTitle": "青拓", "globalViceTitle": "青拓", "globalViceTitleMsg": "换电站", "copyright": "----", "globalI18n": "zh-cn", "globalComponentSize": "small" } + themeConfig: { + "isDrawer": false, + "primary": "#131a1f", + "isIsDark": false, + "topBar": "#131a1f", + "topBarColor": "#28353f", + "isTopBarColorGradual": false, + "menuBar": "#131a1f", + "menuBarColor": "#FFFFFF", + "menuBarActiveColor": "var(--el-color-primary-light-7)", + "isMenuBarColorGradual": false, + "columnsMenuBar": "#2C3A49", + "columnsMenuBarColor": "#F0F0F0", + "isColumnsMenuBarColorGradual": false, + "isColumnsMenuHoverPreload": false, + "isCollapse": false, + "isUniqueOpened": true, + "isFixedHeader": true, + "isFixedHeaderChange": false, + "isClassicSplitMenu": false, + "isLockScreen": false, + "lockScreenTime": 300, + "isShowLogo": true, + "isShowLogoChange": false, + "isBreadcrumb": true, + "isTagsview": true, + "isBreadcrumbIcon": false, + "isTagsviewIcon": false, + "isCacheTagsView": false, + "isSortableTagsView": true, + "isShareTagsView": false, + "isFooter": false, + "isGrayscale": false, + "isInvert": false, + "isWatermark": false, + "watermarkText": "青拓", + "tagsStyle": "tags-style-one", + "animation": "fadeLeft", + "columnsAsideStyle": "columns-round", + "columnsAsideLayout": "columns-vertical", + "layout": "defaults", + "isRequestRoutes": true, + "globalTitle": "青拓", + "globalViceTitle": "青拓", + "globalViceTitleMsg": "换电站", + "copyright": "----", + "globalI18n": "zh-cn", + "globalComponentSize": "small" + } }), actions: { setThemeConfig(data: ThemeConfigState) { diff --git a/src/views/heat/warehouses/index.vue b/src/views/heat/warehouses/index.vue index e476f74..661bc82 100644 --- a/src/views/heat/warehouses/index.vue +++ b/src/views/heat/warehouses/index.vue @@ -1,6 +1,6 @@ +