diff --git a/src/api/community/listRoomDecorationRecordApi.js b/src/api/community/listRoomDecorationRecordApi.js new file mode 100644 index 000000000..a91e58338 --- /dev/null +++ b/src/api/community/listRoomDecorationRecordApi.js @@ -0,0 +1,88 @@ +import request from '@/utils/request' + +// 查询装修跟踪记录列表 +export function queryRoomRenovationRecord(params) { + return new Promise((resolve, reject) => { + request({ + url: '/roomRenovation/queryRoomRenovationRecord', + method: 'get', + params + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 更新装修跟踪记录 +export function updateRoomDecorationRecord(data) { + return new Promise((resolve, reject) => { + request({ + url: '/roomRenovation/updateRoomDecorationRecord', + method: 'post', + data + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 删除装修跟踪记录 +export function deleteRoomRenovationRecord(data) { + return new Promise((resolve, reject) => { + request({ + url: '/roomRenovation/deleteRoomRenovationRecord', + method: 'post', + data + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 上传图片 +export function uploadImage(data) { + return new Promise((resolve, reject) => { + request({ + url: '/uploadImage', + method: 'post', + data, + headers: { + 'Content-Type': 'multipart/form-data' + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 上传视频 +export function uploadVedio(data, config) { + return new Promise((resolve, reject) => { + request({ + url: '/uploadVedio', + method: 'post', + data, + headers: { + 'Content-Type': 'multipart/form-data' + }, + ...config + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/community/listRoomRenovationRecordDetailsApi.js b/src/api/community/listRoomRenovationRecordDetailsApi.js new file mode 100644 index 000000000..30314e2fa --- /dev/null +++ b/src/api/community/listRoomRenovationRecordDetailsApi.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +/** + * 查询房屋装修记录详情 + * @param {Object} params 查询参数 + * @param {string} params.recordId 记录ID + * @param {string} params.roomName 房间名称 + * @param {string} params.state 状态 + * @param {string} params.roomId 房间ID + * @param {number} params.page 页码 + * @param {number} params.row 每页条数 + * @returns {Promise} 返回Promise对象 + */ +export function queryRoomRenovationRecordDetail(params) { + return new Promise((resolve, reject) => { + // 确保有communityId + const queryParams = { + ...params, + communityId: params.communityId || getCommunityId() + } + + request({ + url: '/roomRenovation/queryRoomRenovationRecordDetail', + method: 'get', + params: queryParams + }).then(response => { + const res = response.data + resolve({ + data: res.data, + total: res.total, + records: res.records + }) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/components/community/DeleteRoomDecorationRecord.vue b/src/components/community/DeleteRoomDecorationRecord.vue new file mode 100644 index 000000000..9d3aa3e33 --- /dev/null +++ b/src/components/community/DeleteRoomDecorationRecord.vue @@ -0,0 +1,63 @@ + + + + {{ $t('deleteRoomDecorationRecord.confirm') }} + + + + + + + + \ No newline at end of file diff --git a/src/components/community/RoomDecorationRecord.vue b/src/components/community/RoomDecorationRecord.vue new file mode 100644 index 000000000..bfceca8dc --- /dev/null +++ b/src/components/community/RoomDecorationRecord.vue @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/community/RoomToExamine.vue b/src/components/community/RoomToExamine.vue index 1b977755b..c4a331dd0 100644 --- a/src/components/community/RoomToExamine.vue +++ b/src/components/community/RoomToExamine.vue @@ -1,39 +1,22 @@ - + - + - + - - + + - + - + - +