diff --git a/.gitea/workflows/dev.yml b/.gitea/workflows/dev.yml index b0900e97..416b395c 100644 --- a/.gitea/workflows/dev.yml +++ b/.gitea/workflows/dev.yml @@ -10,28 +10,39 @@ jobs: - name: 拉取代码仓库 uses: http://git.missmoc.top/mocheng/checkout@v4 - - name: Set up Node.js ${{ matrix.node-version }} + - name: Set up Node.js uses: http://git.missmoc.top/mocheng/setup-node@v3 with: node-version: 20.x - - name: pnpm + + - name: 安装pnpm run: npm i pnpm -g - - name: node - run: | - pnpm config set registry https://registry.npmmirror.com - pnpm install - - - name: Build + + - name: 安装依赖 + run: pnpm install + continue-on-error: false # 依赖安装失败则终止工作流 + + - name: 构建项目 run: pnpm build:antd - - name: copy file via ssh password + continue-on-error: false # 构建失败则终止工作流 + + - name: 检查构建结果 + run: | + if [ ! -d "./apps/web-antd/dist" ]; then + echo "构建目录不存在,构建失败" + exit 1 + fi + if [ -z "$(ls -A ./apps/web-antd/dist)" ]; then + echo "构建目录为空,构建失败" + exit 1 + fi + + - name: 通过SSH复制文件 uses: http://git.missmoc.top/mocheng/scp-action@v0.1.7 with: host: 127.0.0.1 - username: ${ { SERVER_NAME } } - password: ${{ SERVER_PWD}} + 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" - - - diff --git a/apps/web-antd/src/api/property/customerService/activities/index.ts b/apps/web-antd/src/api/property/customerService/activities/index.ts new file mode 100644 index 00000000..7e997c18 --- /dev/null +++ b/apps/web-antd/src/api/property/customerService/activities/index.ts @@ -0,0 +1,61 @@ +import type { ActivitiesVO, ActivitiesForm, ActivitiesQuery } 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 activitiesList(params?: ActivitiesQuery) { + return requestClient.get>('/property/activities/list', { params }); +} + +/** + * 导出热门活动列表 + * @param params + * @returns 热门活动列表 + */ +export function activitiesExport(params?: ActivitiesQuery) { + return commonExport('/property/activities/export', params ?? {}); +} + +/** + * 查询热门活动详情 + * @param id id + * @returns 热门活动详情 + */ +export function activitiesInfo(id: ID) { + return requestClient.get(`/property/activities/${id}`); +} + +/** + * 新增热门活动 + * @param data + * @returns void + */ +export function activitiesAdd(data: ActivitiesForm) { + return requestClient.postWithMsg('/property/activities', data); +} + +/** + * 更新热门活动 + * @param data + * @returns void + */ +export function activitiesUpdate(data: ActivitiesForm) { + return requestClient.putWithMsg('/property/activities', data); +} + +/** + * 删除热门活动 + * @param id id + * @returns void + */ +export function activitiesRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/activities/${id}`); +} diff --git a/apps/web-antd/src/api/property/customerService/activities/model.d.ts b/apps/web-antd/src/api/property/customerService/activities/model.d.ts new file mode 100644 index 00000000..247cb203 --- /dev/null +++ b/apps/web-antd/src/api/property/customerService/activities/model.d.ts @@ -0,0 +1,129 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface ActivitiesVO { + /** + * 主键 + */ + id: string | number; + + /** + * 标题 + */ + title: string; + + /** + * 头部照片 + */ + headImgUrl: string; + + /** + * 开始时间 + */ + startTime: string; + + /** + * 结束时间 + */ + endTime: string; + + /** + * 活动内容 + */ + activeContent: string; + + /** + * 状态(1.未开始 2.进行中 3.已结束) + */ + status: string; + + /** + * 搜索值 + */ + searchValue: string; + +} + +export interface ActivitiesForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 标题 + */ + title?: string; + + /** + * 头部照片 + */ + headImgUrl?: string; + + /** + * 开始时间 + */ + startTime?: string; + + /** + * 结束时间 + */ + endTime?: string; + + /** + * 活动内容 + */ + activeContent?: string; + + /** + * 状态(1.未开始 2.进行中 3.已结束) + */ + status?: string; + + /** + * 搜索值 + */ + searchValue?: string; + +} + +export interface ActivitiesQuery extends PageQuery { + /** + * 标题 + */ + title?: string; + + /** + * 头部照片 + */ + headImgUrl?: string; + + /** + * 开始时间 + */ + startTime?: string; + + /** + * 结束时间 + */ + endTime?: string; + + /** + * 活动内容 + */ + activeContent?: string; + + /** + * 状态(1.未开始 2.进行中 3.已结束) + */ + status?: string; + + /** + * 搜索值 + */ + searchValue?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/customerService/feedbacks/model.d.ts b/apps/web-antd/src/api/property/customerService/feedbacks/model.d.ts index c3d31a77..62b1abd1 100644 --- a/apps/web-antd/src/api/property/customerService/feedbacks/model.d.ts +++ b/apps/web-antd/src/api/property/customerService/feedbacks/model.d.ts @@ -10,6 +10,7 @@ export interface FeedbacksVO { * 反馈类型(0保修1保洁2会议) */ feedbackType: string; + feedbackTypeName: string; /** * 反馈人 @@ -21,6 +22,11 @@ export interface FeedbacksVO { */ feedbackPersionPhone: string; + /** + * 反馈人名称 + */ + feedbackPersionName: string; + /** * 反馈内容 */ @@ -50,6 +56,10 @@ export interface FeedbacksVO { * 客服电话 */ serviceName: string; + /** + * 工单id + */ + orderId: string; } diff --git a/apps/web-antd/src/api/property/meter/lightInfo/index.ts b/apps/web-antd/src/api/property/meter/lightInfo/index.ts new file mode 100644 index 00000000..967d8973 --- /dev/null +++ b/apps/web-antd/src/api/property/meter/lightInfo/index.ts @@ -0,0 +1,79 @@ +import type { LightInfoVO, LightInfoForm, LightInfoQuery } 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 lightInfoList(params?: LightInfoQuery) { + return requestClient.get>('/property/lightInfo/list', { params }); +} + +/** + * 导出灯控开关信息列表 + * @param params + * @returns 灯控开关信息列表 + */ +export function lightInfoExport(params?: LightInfoQuery) { + return commonExport('/property/lightInfo/export', params ?? {}); +} + +/** + * 查询灯控开关信息详情 + * @param id id + * @returns 灯控开关信息详情 + */ +export function lightInfoInfo(id: ID) { + return requestClient.get(`/property/lightInfo/${id}`); +} + +/** + * 新增灯控开关信息 + * @param data + * @returns void + */ +export function lightInfoAdd(data: LightInfoForm) { + return requestClient.postWithMsg('/property/lightInfo', data); +} + +/** + * 更新灯控开关信息 + * @param data + * @returns void + */ +export function lightInfoUpdate(data: LightInfoForm) { + return requestClient.putWithMsg('/property/lightInfo', data); +} + +/** + * 删除灯控开关信息 + * @param id id + * @returns void + */ +export function lightInfoRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/lightInfo/${id}`); +} + +/** + * 更新灯控开关状态 + * @param data + * @returns void + */ +export function switchSingleLight(data: LightInfoForm) { + return requestClient.postWithMsg('/property/lightInfo/switch', data); +} + +/** + * 批量更新灯控开关状态 + * @param data + * @returns void + */ +export function switchBatchLight(data: LightInfoForm) { + return requestClient.postWithMsg('/property/lightInfo/switch', data); +} diff --git a/apps/web-antd/src/api/property/meter/lightInfo/model.d.ts b/apps/web-antd/src/api/property/meter/lightInfo/model.d.ts new file mode 100644 index 00000000..8afa0016 --- /dev/null +++ b/apps/web-antd/src/api/property/meter/lightInfo/model.d.ts @@ -0,0 +1,134 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface LightInfoVO { + /** + * 主键id + */ + id: string | number; + + /** + * 位置描述 + */ + locationRemark: string; + + /** + * 开关状态(0:关,1:开) + */ + isOn: boolean; + + /** + * 灯控模块编码 + */ + code: number; + + /** + * 园区编码 + */ + communityId: string | number; + + /** + * 建筑名称 + */ + buildingId: string | number; + + /** + * 单元编码 + */ + unitId: string | number; + + /** + * 所属楼层ID + */ + floorId: string | number; + + /** + * 楼层 + */ + floorName: string; + +} + +export interface LightInfoForm extends BaseEntity { + /** + * 主键id + */ + id?: string | number; + + /** + * 位置描述 + */ + locationRemark?: string; + + /** + * 开关状态(0:关,1:开) + */ + isOn: boolean; + + /** + * 灯控模块编码 + */ + code?: number; + + /** + * 园区编码 + */ + communityId?: string | number; + + /** + * 建筑名称 + */ + buildingId?: string | number; + + /** + * 单元编码 + */ + unitId?: string | number; + + /** + * 所属楼层ID + */ + floorId?: string | number; + +} + +export interface LightInfoQuery extends PageQuery { + /** + * 位置描述 + */ + locationRemark?: string; + + /** + * 开关状态(0:关,1:开) + */ + isOn?: number; + + /** + * 灯控模块编码 + */ + code?: number; + + /** + * 园区编码 + */ + communityId?: string | number; + + /** + * 建筑名称 + */ + buildingId?: string | number; + + /** + * 单元编码 + */ + unitId?: string | number; + + /** + * 所属楼层ID + */ + floorId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/roomBooking/conferenceSettings/index.ts b/apps/web-antd/src/api/property/roomBooking/conferenceSettings/index.ts index 8799428e..2090bf48 100644 --- a/apps/web-antd/src/api/property/roomBooking/conferenceSettings/index.ts +++ b/apps/web-antd/src/api/property/roomBooking/conferenceSettings/index.ts @@ -61,5 +61,5 @@ export function meetRemove(id: ID | IDS) { } export function notlist(params?: MeetBo) { - return requestClient.get>('/property/meet/notlist', { params }); + return requestClient.get('/property/meet/notlist', { params }); } 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 3766063a..10b65829 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,14 @@ export interface MeetVO { * 图片 */ picture: string; + /** + * 开放时段开始时间 + */ + openStartHours: string; + /** + * 开放时段结束时间 + */ + openEndHours: string; } export interface MeetForm extends BaseEntity { @@ -153,6 +161,15 @@ export interface MeetForm extends BaseEntity { */ picture: string; + /** + * 开放时段开始时间 + */ + openStartHours: string; + /** + * 开放时段结束时间 + */ + openEndHours: string; + } export interface MeetQuery extends PageQuery { @@ -240,7 +257,7 @@ export interface MeetQuery extends PageQuery { picture: string; } -export interface conferenceSettingsDetail extends BaseEntity { +export interface ConferenceSettingsDetail{ /** * 主键 */ @@ -329,6 +346,16 @@ export interface conferenceSettingsDetail extends BaseEntity { * 图片 */ picture: string; + + /** + * 开放时段开始时间 + */ + openStartHours: string; + /** + * 开放时段结束时间 + */ + openEndHours: string; + } export interface MeetBo{ 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();