diff --git a/.gitea/workflows/dev.yml b/.gitea/workflows/dev.yml index 416b395c..1ce95172 100644 --- a/.gitea/workflows/dev.yml +++ b/.gitea/workflows/dev.yml @@ -2,13 +2,15 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: push: branches: - - master + - prod jobs: Explore-Gitea-Actions: runs-on: ubuntu steps: - name: 拉取代码仓库 uses: http://git.missmoc.top/mocheng/checkout@v4 + with: + fetch-depth: 1 # 只拉取最新的1个提交(浅克隆) - name: Set up Node.js uses: http://git.missmoc.top/mocheng/setup-node@v3 @@ -37,12 +39,6 @@ jobs: exit 1 fi + - name: 通过SSH复制文件 - uses: http://git.missmoc.top/mocheng/scp-action@v0.1.7 - with: - host: 127.0.0.1 - username: ${{ secrets.SERVER_NAME }} # 使用secrets存储 - password: ${{ secrets.SERVER_PWD }} # 使用secrets存储 - port: 11001 - source: "./apps/web-antd/dist" - target: "/www/wwwroot/183.230.235.66_11010/property" + run: cp -rf ./apps/web-antd/dist/* /www/wwwroot/183.230.235.66_11010/property \ No newline at end of file diff --git a/apps/web-antd/src/api/property/attendanceManagement/attendanceArea/model.d.ts b/apps/web-antd/src/api/property/attendanceManagement/attendanceArea/model.d.ts index ffc7106b..1ebf4903 100644 --- a/apps/web-antd/src/api/property/attendanceManagement/attendanceArea/model.d.ts +++ b/apps/web-antd/src/api/property/attendanceManagement/attendanceArea/model.d.ts @@ -20,7 +20,7 @@ export interface AttendanceAreaVO { * 备注 */ reamark: string; - + areaDevice?: any[]; } export interface AttendanceAreaForm extends BaseEntity { @@ -43,7 +43,6 @@ export interface AttendanceAreaForm extends BaseEntity { * 备注 */ reamark?: string; - } export interface AttendanceAreaQuery extends PageQuery { @@ -63,7 +62,7 @@ export interface AttendanceAreaQuery extends PageQuery { reamark?: string; /** - * 日期范围参数 - */ + * 日期范围参数 + */ params?: any; } diff --git a/apps/web-antd/src/api/property/businessManagement/workOrders/index.ts b/apps/web-antd/src/api/property/businessManagement/workOrders/index.ts index d1148daa..5295f0b6 100644 --- a/apps/web-antd/src/api/property/businessManagement/workOrders/index.ts +++ b/apps/web-antd/src/api/property/businessManagement/workOrders/index.ts @@ -59,3 +59,19 @@ export function workOrdersUpdate(data: WorkOrdersForm) { export function workOrdersRemove(id: ID | IDS) { return requestClient.deleteWithMsg(`/property/workOrders/${id}`); } + +/** + * 派单 + * @param data + */ +export function workOrdersDispatch(data: WorkOrdersForm) { + return requestClient.putWithMsg('/property/workOrders/dispatch', data); +} + +/** + * 抢单 + * @param data + */ +export function workOrdersGrab(data: WorkOrdersForm) { + return requestClient.putWithMsg('/property/workOrders/grab', data); +} diff --git a/apps/web-antd/src/api/property/businessManagement/workOrders/model.d.ts b/apps/web-antd/src/api/property/businessManagement/workOrders/model.d.ts index 302bca92..215848fd 100644 --- a/apps/web-antd/src/api/property/businessManagement/workOrders/model.d.ts +++ b/apps/web-antd/src/api/property/businessManagement/workOrders/model.d.ts @@ -64,7 +64,7 @@ export interface WorkOrdersVO { /** * 评价 */ - serviceEvalua: string; + serviceEvalua: number; /** * 是否超时 @@ -82,6 +82,8 @@ export interface WorkOrdersVO { * 评价图片 */ imgUrl: string; + + evaluateImgPath: string[]; /** * 评价内容 */ @@ -99,6 +101,12 @@ export interface WorkOrdersVO { */ orderImgUrl: string; + orderImgPath: string[]; + + reportingType: string; + + processingWeight: string; + } export interface HandleRecords { diff --git a/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts b/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts index ce780780..65b12b3b 100644 --- a/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts +++ b/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts @@ -37,6 +37,11 @@ export interface WorkOrdersTypeVO { isTransfers: string; excludeId: string; + /** + * 处理优先级 + */ + processingWeight: string; + } export interface WorkOrdersTypeForm extends BaseEntity { @@ -79,6 +84,11 @@ export interface WorkOrdersTypeForm extends BaseEntity { * 上级类型id */ parentId?: string; + + /** + * 处理优先级 + */ + processingWeight: string; } export interface WorkOrdersTypeQuery extends PageQuery { diff --git a/apps/web-antd/src/api/property/clean_order/model.d.ts b/apps/web-antd/src/api/property/clean_order/model.d.ts index 74c0f48d..2b0b6751 100644 --- a/apps/web-antd/src/api/property/clean_order/model.d.ts +++ b/apps/web-antd/src/api/property/clean_order/model.d.ts @@ -144,6 +144,16 @@ export interface Clean_orderForm extends BaseEntity { */ phone?: string; + /** + * 签到图片 + */ + signImgUrl?: string; + + /** + * 评价图片 + */ + imgUrl?: string; + } export interface Clean_orderQuery extends PageQuery { diff --git a/apps/web-antd/src/api/property/meter/lightInfo/index.ts b/apps/web-antd/src/api/property/energyManagement/lightInfo/index.ts similarity index 100% rename from apps/web-antd/src/api/property/meter/lightInfo/index.ts rename to apps/web-antd/src/api/property/energyManagement/lightInfo/index.ts diff --git a/apps/web-antd/src/api/property/meter/lightInfo/model.d.ts b/apps/web-antd/src/api/property/energyManagement/lightInfo/model.d.ts similarity index 100% rename from apps/web-antd/src/api/property/meter/lightInfo/model.d.ts rename to apps/web-antd/src/api/property/energyManagement/lightInfo/model.d.ts diff --git a/apps/web-antd/src/api/property/meter/meterInfo/index.ts b/apps/web-antd/src/api/property/energyManagement/meterInfo/index.ts similarity index 100% rename from apps/web-antd/src/api/property/meter/meterInfo/index.ts rename to apps/web-antd/src/api/property/energyManagement/meterInfo/index.ts diff --git a/apps/web-antd/src/api/property/meter/meterInfo/model.d.ts b/apps/web-antd/src/api/property/energyManagement/meterInfo/model.d.ts similarity index 60% rename from apps/web-antd/src/api/property/meter/meterInfo/model.d.ts rename to apps/web-antd/src/api/property/energyManagement/meterInfo/model.d.ts index f3a1e640..557aaa70 100644 --- a/apps/web-antd/src/api/property/meter/meterInfo/model.d.ts +++ b/apps/web-antd/src/api/property/energyManagement/meterInfo/model.d.ts @@ -1,65 +1,65 @@ -import type { PageQuery, BaseEntity } from '#/api/common'; +import type { PageQuery, BaseEntity } from '#/api/common' export interface MeterInfoVO { /** * 主键id */ - id: string | number; + id: string | number /** * 仪表名称 */ - meterName: string; + meterName: string /** * 仪表编码 */ - meterCode: string; + meterCode: string /** * 设备厂商 */ - factoryNo: string; + factoryNo: string /** * 设备类型(1-电表,2-水表,3-气表) */ - meterType: number; + meterType: number | String /** * 计量单位(1-度,2-吨,3-立方米) */ - meterUnit: number; + meterUnit: number | String /** * 安装位置 */ - installLocation: string; + installLocation: string /** * 初始读数 */ - initReading: number; + initReading: number /** * 最大量程 */ - maxRang: number; + maxRang: number /** * 通信状态 */ - communicationState: number; + communicationState: number | String /** * 运行状态 */ - runningState: number; + runningState: number | String /** * 备注 */ - remark: string; + remark: string } @@ -67,62 +67,67 @@ export interface MeterInfoForm extends BaseEntity { /** * 主键id */ - id?: string | number; + id?: string | number /** * 仪表名称 */ - meterName?: string; + meterName?: string /** * 仪表编码 */ - meterCode?: string; + meterCode?: string /** * 设备厂商 */ - factoryNo?: string; + factoryNo?: string /** * 设备类型(1-电表,2-水表,3-气表) */ - meterType?: number; + meterType?: number /** * 计量单位(1-度,2-吨,3-立方米) */ - meterUnit?: number; + meterUnit?: number /** * 安装位置 */ - installLocation?: string; + installLocation?: string /** * 初始读数 */ - initReading?: number; + initReading?: number /** * 最大量程 */ - maxRang?: number; + maxRang?: number /** * 通信状态 */ - communicationState?: number; + communicationState?: number /** * 运行状态 */ - runningState?: number; + runningState?: number + + /** + * 采集器IP + */ + hostIp?: string /** * 备注 */ - remark?: string; + remark?: string } @@ -130,55 +135,55 @@ export interface MeterInfoQuery extends PageQuery { /** * 仪表名称 */ - meterName?: string; + meterName?: string /** * 仪表编码 */ - meterCode?: string; + meterCode?: string /** * 设备厂商 */ - factoryNo?: string; + factoryNo?: string /** * 设备类型(1-电表,2-水表,3-气表) */ - meterType?: number; + meterType?: number /** * 计量单位(1-度,2-吨,3-立方米) */ - meterUnit?: number; + meterUnit?: number /** * 安装位置 */ - installLocation?: string; + installLocation?: string /** * 初始读数 */ - initReading?: number; + initReading?: number /** * 最大量程 */ - maxRang?: number; + maxRang?: number /** * 通信状态 */ - communicationState?: number; + communicationState?: number /** * 运行状态 */ - runningState?: number; + runningState?: number /** * 日期范围参数 */ - params?: any; + params?: any } diff --git a/apps/web-antd/src/api/property/energyManagement/meterRecord/index.ts b/apps/web-antd/src/api/property/energyManagement/meterRecord/index.ts new file mode 100644 index 00000000..8074dadf --- /dev/null +++ b/apps/web-antd/src/api/property/energyManagement/meterRecord/index.ts @@ -0,0 +1,61 @@ +import type { MeterRecordVO, MeterRecordForm, MeterRecordQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询抄表记录列表 +* @param params +* @returns 抄表记录列表 +*/ +export function meterRecordList(params?: MeterRecordQuery) { + return requestClient.get>('/property/meterRecord/list', { params }); +} + +/** + * 导出抄表记录列表 + * @param params + * @returns 抄表记录列表 + */ +export function meterRecordExport(params?: MeterRecordQuery) { + return commonExport('/property/meterRecord/export', params ?? {}); +} + +/** + * 查询抄表记录详情 + * @param id id + * @returns 抄表记录详情 + */ +export function meterRecordInfo(id: ID) { + return requestClient.get(`/property/meterRecord/${id}`); +} + +/** + * 新增抄表记录 + * @param data + * @returns void + */ +export function meterRecordAdd(data: MeterRecordForm) { + return requestClient.postWithMsg('/property/meterRecord', data); +} + +/** + * 更新抄表记录 + * @param data + * @returns void + */ +export function meterRecordUpdate(data: MeterRecordForm) { + return requestClient.putWithMsg('/property/meterRecord', data); +} + +/** + * 删除抄表记录 + * @param id id + * @returns void + */ +export function meterRecordRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/meterRecord/${id}`); +} diff --git a/apps/web-antd/src/api/property/energyManagement/meterRecord/model.d.ts b/apps/web-antd/src/api/property/energyManagement/meterRecord/model.d.ts new file mode 100644 index 00000000..2ae4e5a9 --- /dev/null +++ b/apps/web-antd/src/api/property/energyManagement/meterRecord/model.d.ts @@ -0,0 +1,149 @@ +import type { PageQuery, BaseEntity } from '#/api/common' + +export interface MeterRecordVO { + /** + * 记录ID + */ + id: string | number + + /** + * 仪表编号 + */ + meterId: string | number + + /** + * 仪表类型 + */ + meterType: string | number + + /** + * 抄表员ID + */ + readerId: string | number + + /** + * 抄表时间 + */ + readingTime: string + + /** + * 当前读数 + */ + currentReading: number + + /** + * 上次读数 + */ + previousReading: number + + /** + * 用量 + */ + consumption: number + + /** + * 抄表方式(1手动 2自动 3用户上报) + */ + readingMethod: number + + /** + * 抄表照片 + */ + imgOssid: string | number + +} + +export interface MeterRecordForm extends BaseEntity { + /** + * 记录ID + */ + id?: string | number + + /** + * 仪表编号 + */ + meterId?: string | number + + /** + * 抄表员ID + */ + readerId?: string | number + + /** + * 抄表时间 + */ + readingTime?: string + + /** + * 当前读数 + */ + currentReading?: number + + /** + * 上次读数 + */ + previousReading?: number + + /** + * 用量 + */ + consumption?: number + + /** + * 抄表方式(1手动 2自动 3用户上报) + */ + readingMethod?: number + + /** + * 抄表照片 + */ + imgOssid?: string | number + +} + +export interface MeterRecordQuery extends PageQuery { + /** + * 仪表编号 + */ + meterId?: string | number + + /** + * 抄表员ID + */ + readerId?: string | number + + /** + * 抄表时间 + */ + readingTime?: string + + /** + * 当前读数 + */ + currentReading?: number + + /** + * 上次读数 + */ + previousReading?: number + + /** + * 用量 + */ + consumption?: number + + /** + * 抄表方式(1手动 2自动 3用户上报) + */ + readingMethod?: number + + /** + * 抄表照片 + */ + imgOssid?: string | number + + /** + * 日期范围参数 + */ + params?: any +} diff --git a/apps/web-antd/src/api/property/maintenance/knowledge/model.d.ts b/apps/web-antd/src/api/property/maintenance/knowledge/model.d.ts index 8f61d24e..2d0262b4 100644 --- a/apps/web-antd/src/api/property/maintenance/knowledge/model.d.ts +++ b/apps/web-antd/src/api/property/maintenance/knowledge/model.d.ts @@ -21,6 +21,8 @@ export interface KnowledgeVO { */ covers: string; + coversPath: string|undefined; + /** * 内容 */ diff --git a/apps/web-antd/src/api/property/productManagement/model.d.ts b/apps/web-antd/src/api/property/productManagement/model.d.ts index 5d611320..0019420c 100644 --- a/apps/web-antd/src/api/property/productManagement/model.d.ts +++ b/apps/web-antd/src/api/property/productManagement/model.d.ts @@ -26,6 +26,8 @@ export interface PropertyVO { */ imgPath: string; + plantImg: string; + /** * 规格 */ @@ -102,7 +104,6 @@ export interface PropertyForm extends BaseEntity { * 备注 */ remark?: string; - } export interface PropertyQuery extends PageQuery { @@ -178,6 +179,8 @@ export interface plantsProduct extends BaseEntity { */ imgPath?: string; + plantImg: string |undefined; + /** * 规格 */ diff --git a/apps/web-antd/src/api/property/resident/passRecordManagement/index.ts b/apps/web-antd/src/api/property/resident/passRecordManagement/index.ts new file mode 100644 index 00000000..92b2c5fd --- /dev/null +++ b/apps/web-antd/src/api/property/resident/passRecordManagement/index.ts @@ -0,0 +1,11 @@ +import { requestClient } from '#/api/request'; +import type { PageResult } from '#/api/common'; + +/** + * 通行记录列表 + * @param data + * @returns void + */ +export function getVisitorList(params?: any) { + return requestClient.get>('/sis/visitor/list', { params }); +} diff --git a/apps/web-antd/src/api/property/resident/person/model.d.ts b/apps/web-antd/src/api/property/resident/person/model.d.ts index 0e3d6e57..1fc4fa44 100644 --- a/apps/web-antd/src/api/property/resident/person/model.d.ts +++ b/apps/web-antd/src/api/property/resident/person/model.d.ts @@ -31,6 +31,8 @@ export interface PersonVO { */ img: string + imgPath?: string + /** * 所属单位id */ @@ -79,6 +81,10 @@ export interface PersonVO { rosterType?: string | number + email?: string + + idCard?: string + } export interface PersonForm extends BaseEntity { diff --git a/apps/web-antd/src/api/property/resident/unit/model.d.ts b/apps/web-antd/src/api/property/resident/unit/model.d.ts index 747ee0cc..259e2abe 100644 --- a/apps/web-antd/src/api/property/resident/unit/model.d.ts +++ b/apps/web-antd/src/api/property/resident/unit/model.d.ts @@ -35,6 +35,7 @@ export interface Resident_unitVO { * 入驻位置 */ location: string; + locations: string[]; /** * 入驻时间 @@ -65,6 +66,9 @@ export interface Resident_unitVO { * 权限组名称 */ authGroupName?: string; + // 授权期限 + authBegDate?:string;//开始 + authEndDate?:string;//结束 } diff --git a/apps/web-antd/src/api/property/roomBooking/conferenceSettings/model.d.ts b/apps/web-antd/src/api/property/roomBooking/conferenceSettings/model.d.ts index 10b65829..11d1e48a 100644 --- a/apps/web-antd/src/api/property/roomBooking/conferenceSettings/model.d.ts +++ b/apps/web-antd/src/api/property/roomBooking/conferenceSettings/model.d.ts @@ -67,6 +67,8 @@ export interface MeetVO { * 图片 */ picture: string; + + pictureArr: string[]; /** * 开放时段开始时间 */ @@ -75,6 +77,19 @@ export interface MeetVO { * 开放时段结束时间 */ openEndHours: string; + + /** + * 会议室类型 + */ + meetingRoomType: string; + /** + * 位置 + */ + locationName: string; + /** + * 负责人 + */ + principalsName: string; } export interface MeetForm extends BaseEntity { @@ -161,6 +176,8 @@ export interface MeetForm extends BaseEntity { */ picture: string; + pictureArr: string[]; + /** * 开放时段开始时间 */ diff --git a/apps/web-antd/src/layouts/basic.vue b/apps/web-antd/src/layouts/basic.vue index f87a5fbd..61256dab 100644 --- a/apps/web-antd/src/layouts/basic.vue +++ b/apps/web-antd/src/layouts/basic.vue @@ -84,13 +84,13 @@ const menus = computed(() => { // icon: CircleHelp, // text: $t('ui.widgets.qa'), // }, - { - handler: () => { - router.push('/navigation'); - }, - // icon: TagOutlined, - text: '返回导航', - }, + // { + // handler: () => { + // router.push('/navigation'); + // }, + // // icon: TagOutlined, + // text: '返回导航', + // }, ]; /** * 租户选中状态 不显示个人中心 diff --git a/apps/web-antd/src/store/auth.ts b/apps/web-antd/src/store/auth.ts index cdb33525..cd8c4b9f 100644 --- a/apps/web-antd/src/store/auth.ts +++ b/apps/web-antd/src/store/auth.ts @@ -56,9 +56,7 @@ export const useAuthStore = defineStore('auth', () => { if (accessStore.loginExpired) { accessStore.setLoginExpired(false); } else { - onSuccess - ? await onSuccess?.() - : await router.push('/navigation'); + onSuccess ? await onSuccess?.() : await router.push('/analytics'); } if (userInfo?.realName) { diff --git a/apps/web-antd/src/views/dashboard/analytics/analytics-visits-source.vue b/apps/web-antd/src/views/dashboard/analytics/analytics-visits-source.vue index d97c3c0f..fd3bf104 100644 --- a/apps/web-antd/src/views/dashboard/analytics/analytics-visits-source.vue +++ b/apps/web-antd/src/views/dashboard/analytics/analytics-visits-source.vue @@ -26,7 +26,7 @@ onMounted(() => { { name: '搜索引擎', value: 1048 }, { name: '直接访问', value: 735 }, { name: '邮件营销', value: 580 }, - { name: '联盟广告', value: 484 }, + // { name: '联盟广告', value: 484 }, ], emphasis: { label: { diff --git a/apps/web-antd/src/views/dashboard/analytics/index.vue b/apps/web-antd/src/views/dashboard/analytics/index.vue index 5e3d6d28..0236c92a 100644 --- a/apps/web-antd/src/views/dashboard/analytics/index.vue +++ b/apps/web-antd/src/views/dashboard/analytics/index.vue @@ -25,29 +25,29 @@ const overviewItems: AnalysisOverviewItem[] = [ icon: SvgCardIcon, title: '用户量', totalTitle: '总用户量', - totalValue: 120_000, - value: 2000, + totalValue: 78, + value: 15, }, { icon: SvgCakeIcon, title: '访问量', totalTitle: '总访问量', - totalValue: 500_000, - value: 20_000, + totalValue: 2_278, + value: 461, }, { icon: SvgDownloadIcon, title: '下载量', totalTitle: '总下载量', - totalValue: 120_000, - value: 8000, + totalValue: 17, + value: 2, }, { icon: SvgBellIcon, title: '使用量', totalTitle: '总使用量', - totalValue: 50_000, - value: 5000, + totalValue: 6_652, + value: 3_739, }, ]; diff --git a/apps/web-antd/src/views/property/assetManage/assetType/data.ts b/apps/web-antd/src/views/property/assetManage/assetType/data.ts index c844e2c5..2630040c 100644 --- a/apps/web-antd/src/views/property/assetManage/assetType/data.ts +++ b/apps/web-antd/src/views/property/assetManage/assetType/data.ts @@ -61,5 +61,11 @@ export const modalSchema: FormSchemaGetter = () => [ label: '排序', fieldName: 'sort', component: 'InputNumber', + rules:'required', + componentProps: { + min: 0, + precision: 0, + step: 1 + }, }, ]; diff --git a/apps/web-antd/src/views/property/assetManage/depot/index.vue b/apps/web-antd/src/views/property/assetManage/depot/index.vue index 561f666e..0c2cccbe 100644 --- a/apps/web-antd/src/views/property/assetManage/depot/index.vue +++ b/apps/web-antd/src/views/property/assetManage/depot/index.vue @@ -164,7 +164,7 @@ const { hasAccessByCodes } = useAccess();