diff --git a/src/api/system/SdbElectricityDevice/index.ts b/src/api/system/SdbElectricityDevice/index.ts index 186099b..5fd84b6 100644 --- a/src/api/system/SdbElectricityDevice/index.ts +++ b/src/api/system/SdbElectricityDevice/index.ts @@ -85,3 +85,14 @@ export const getElectricityDeviceTimeRangeUsedWater = (data: { deviceCode: strin data }); }; + +/** + * 电表解绑房屋 + * @param { string } deviceCode + */ +export const ElectricityDeviceUnbind = (deviceCode: string) => { + return request({ + url: `/electricityDevice/unbind/${deviceCode}`, + method: 'PUT' + }); +}; diff --git a/src/api/system/SdbWaterDevice/index.ts b/src/api/system/SdbWaterDevice/index.ts index b8fa836..c113ac6 100644 --- a/src/api/system/SdbWaterDevice/index.ts +++ b/src/api/system/SdbWaterDevice/index.ts @@ -107,3 +107,14 @@ export const latestRecord = (deviceCodes: string) => { method: 'GET' }); }; + +/** + * 解绑设备绑定的房屋 + * @param deviceCode + */ +export const waterDeviceUnbind = (deviceCode: string) => { + return request({ + url: `/waterDevice/unbind/${deviceCode}`, + method: 'PUT' + }); +}; diff --git a/src/api/system/version/index.ts b/src/api/system/version/index.ts index faeceb7..37414d0 100644 --- a/src/api/system/version/index.ts +++ b/src/api/system/version/index.ts @@ -63,9 +63,9 @@ export const delVersion = (id: string | number | Array) => { }; /** 获取过往版本 */ -export const getPastVersion = (platform: string, channel: string) => { +export const getPastVersion = (platform: string, appChannel: string, channel: string = 'xiaomi') => { return request({ - url: `/api/app/getPastVersion?platform=${platform}&channel=${channel}`, + url: `/api/app/getPastVersion?platform=${platform}&appChannel=${appChannel}&channel=${channel}`, method: 'get' }); }; diff --git a/src/api/system/version/type.ts b/src/api/system/version/type.ts index a564347..433d34b 100644 --- a/src/api/system/version/type.ts +++ b/src/api/system/version/type.ts @@ -64,6 +64,12 @@ export interface VersionVO { } export interface VersionForm extends BaseEntity { + /** + * 更新app端 + * butler 管家端 + * resident 业主端 + */ + appChannel: string; /** * */ @@ -115,12 +121,6 @@ export interface VersionForm extends BaseEntity { * 0-禁用 1-启用 */ status?: number; - - /** - * 更新app端 - * butler 管家端 - * resident 业主端 - */ channel?: string; } @@ -140,11 +140,6 @@ export interface VersionQuery extends PageQuery { */ versionName?: string; - /** - * 最低支持版本 - */ - minVersionCode?: number; - /** * optional/force */ @@ -155,15 +150,6 @@ export interface VersionQuery extends PageQuery { */ downloadUrl?: string; - /** - * 更新日志 - */ - releaseNotes?: string; - - /** - * 文件大小(MB) - */ - fileSize?: string; /** * 0-禁用 1-启用 @@ -171,12 +157,14 @@ export interface VersionQuery extends PageQuery { status?: number; /** - * 更新app端 + * 更 */ channel?: string; /** - * 日期范围参数 + * 更新app端 + * butler 管家端 + * resident 业主端 */ - params?: any; + appChannel: string; } diff --git a/src/views/system/Sdb/SdbElectricityDevice/index.vue b/src/views/system/Sdb/SdbElectricityDevice/index.vue index d3a0f57..3e526b9 100644 --- a/src/views/system/Sdb/SdbElectricityDevice/index.vue +++ b/src/views/system/Sdb/SdbElectricityDevice/index.vue @@ -133,11 +133,15 @@ > --> 绑定房屋 + 解绑房屋 - 绑定房屋 + 解绑房屋 +
维修时间:
{{ form.repairTime }} diff --git a/src/views/system/statistics/Payment/index.vue b/src/views/system/statistics/Payment/index.vue index 83e9bcf..22b4344 100644 --- a/src/views/system/statistics/Payment/index.vue +++ b/src/views/system/statistics/Payment/index.vue @@ -222,7 +222,6 @@ function updatePayMethod(dataFrom: PayMentMethod): EChartsOption { ] }; } - // 【新增】定义12个月份 const monthX = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']; /** 欠费分布 散点图 */ @@ -637,6 +636,7 @@ onMounted(() => { onUnmounted(() => { open.value = false; }); +