From 5760f7b94d36c6912ac19168b219c2a340826784 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Mon, 30 Jun 2025 14:16:15 +0800 Subject: [PATCH] 小区下的功能修改完成 --- src/api/community/addCommunityPublicityApi.js | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/api/community/communityPublicityManageApi.js | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/api/community/editCommunityPublicityApi.js | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/api/work/addItemReleaseViewApi.js | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/api/work/itemReleaseManageApi.js | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/api/work/itemReleaseTypeManageApi.js | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/community/deleteCommunityPublicity.vue | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/community/uploadImageUrl.vue | 203 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------- src/components/community/viewImage.vue | 67 +++++++++++++++++++++++++++++++++++++++++-------------------------- src/components/work/addItemReleaseType.vue | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/work/deleteItemRelease.vue | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/work/deleteItemReleaseType.vue | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/work/editItemRelease.vue | 284 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/work/editItemReleaseType.vue | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/work/orgTreeShow.vue | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/work/selectStaff.vue | 158 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/work/viewItemReleaseRes.vue | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/i18n/communityI18n.js | 9 +++++++++ src/i18n/index.js | 3 +++ src/i18n/workI18n.js | 16 ++++++++++++++++ src/router/communityRouter.js | 15 +++++++++++++++ src/router/index.js | 2 ++ src/router/workRouter.js | 17 +++++++++++++++++ src/views/community/addCommunityPublicityLang.js | 30 ++++++++++++++++++++++++++++++ src/views/community/addCommunityPublicityList.vue | 158 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/community/communityPublicityManageLang.js | 34 ++++++++++++++++++++++++++++++++++ src/views/community/communityPublicityManageList.vue | 226 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/community/editCommunityPublicityLang.js | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/community/editCommunityPublicityList.vue | 204 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/work/addItemReleaseViewLang.js | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/work/addItemReleaseViewList.vue | 333 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/work/itemReleaseManageLang.js | 158 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/work/itemReleaseManageList.vue | 369 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/work/itemReleaseTypeManageLang.js | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/work/itemReleaseTypeManageList.vue | 197 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 35 files changed, 3680 insertions(+), 97 deletions(-) create mode 100644 src/api/community/addCommunityPublicityApi.js create mode 100644 src/api/community/communityPublicityManageApi.js create mode 100644 src/api/community/editCommunityPublicityApi.js create mode 100644 src/api/work/addItemReleaseViewApi.js create mode 100644 src/api/work/itemReleaseManageApi.js create mode 100644 src/api/work/itemReleaseTypeManageApi.js create mode 100644 src/components/community/deleteCommunityPublicity.vue create mode 100644 src/components/work/addItemReleaseType.vue create mode 100644 src/components/work/deleteItemRelease.vue create mode 100644 src/components/work/deleteItemReleaseType.vue create mode 100644 src/components/work/editItemRelease.vue create mode 100644 src/components/work/editItemReleaseType.vue create mode 100644 src/components/work/orgTreeShow.vue create mode 100644 src/components/work/selectStaff.vue create mode 100644 src/components/work/viewItemReleaseRes.vue create mode 100644 src/i18n/workI18n.js create mode 100644 src/router/workRouter.js create mode 100644 src/views/community/addCommunityPublicityLang.js create mode 100644 src/views/community/addCommunityPublicityList.vue create mode 100644 src/views/community/communityPublicityManageLang.js create mode 100644 src/views/community/communityPublicityManageList.vue create mode 100644 src/views/community/editCommunityPublicityLang.js create mode 100644 src/views/community/editCommunityPublicityList.vue create mode 100644 src/views/work/addItemReleaseViewLang.js create mode 100644 src/views/work/addItemReleaseViewList.vue create mode 100644 src/views/work/itemReleaseManageLang.js create mode 100644 src/views/work/itemReleaseManageList.vue create mode 100644 src/views/work/itemReleaseTypeManageLang.js create mode 100644 src/views/work/itemReleaseTypeManageList.vue diff --git a/src/api/community/addCommunityPublicityApi.js b/src/api/community/addCommunityPublicityApi.js new file mode 100644 index 0000000..5edd714 --- /dev/null +++ b/src/api/community/addCommunityPublicityApi.js @@ -0,0 +1,55 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取公示类型字典 +export function getPublicityTypes() { + return new Promise((resolve, reject) => { + request({ + url: '/dict/getDict', + method: 'get', + params: { + dictType: 'community_publicity', + dictCode: 'pub_type' + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 保存社区公示 +export function saveCommunityPublicity(data) { + data.communityId = getCommunityId() + return new Promise((resolve, reject) => { + request({ + url: '/publicity.saveCommunityPublicity', + method: 'post', + data + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 上传图片 +export function uploadImage(data) { + data.communityId = getCommunityId() + return new Promise((resolve, reject) => { + request({ + url: '/uploadFile/uploadImage', + method: 'post', + data, + headers: { + 'Content-Type': 'multipart/form-data' + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/community/communityPublicityManageApi.js b/src/api/community/communityPublicityManageApi.js new file mode 100644 index 0000000..772b278 --- /dev/null +++ b/src/api/community/communityPublicityManageApi.js @@ -0,0 +1,59 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取小区公示列表 +export function getCommunityPublicityList(params) { + return new Promise((resolve, reject) => { + request({ + url: '/publicity.listCommunityPublicity', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 删除小区公示 +export function deleteCommunityPublicity(data) { + return new Promise((resolve, reject) => { + request({ + url: '/publicity.deleteCommunityPublicity', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取字典数据 +export function getDict(dictType, dictName) { + return new Promise((resolve, reject) => { + request({ + url: '/dict.getDict', + method: 'get', + params: { + dictType, + dictName + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/community/editCommunityPublicityApi.js b/src/api/community/editCommunityPublicityApi.js new file mode 100644 index 0000000..d93ad1c --- /dev/null +++ b/src/api/community/editCommunityPublicityApi.js @@ -0,0 +1,87 @@ +import request from '@/utils/request' + +/** + * 更新社区公示信息 + * @param {Object} data 公示信息 + * @returns {Promise} + */ +export function updateCommunityPublicity(data) { + return new Promise((resolve, reject) => { + request({ + url: '/publicity.updateCommunityPublicity', + method: 'post', + data + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +/** + * 获取社区公示列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export function listCommunityPublicity(params) { + return new Promise((resolve, reject) => { + request({ + url: '/publicity.listCommunityPublicity', + method: 'get', + params + }).then(response => { + const res = response.data + resolve({ + data: res.data || [], + total: res.total || 0 + }) + }).catch(error => { + reject(error) + }) + }) +} + +/** + * 上传文件 + * @param {FormData} formData 文件表单数据 + * @returns {Promise} + */ +export function uploadFile(formData) { + return new Promise((resolve, reject) => { + request({ + url: '/uploadFile', + method: 'post', + data: formData, + headers: { + 'Content-Type': 'multipart/form-data' + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +/** + * 获取单个公示详情 + * @param {String} pubId 公示ID + * @returns {Promise} + */ +export function getCommunityPublicityDetail(pubId) { + return new Promise((resolve, reject) => { + request({ + url: '/publicity.getCommunityPublicity', + method: 'get', + params: { pubId } + }).then(response => { + const res = response.data + resolve(res.data) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/work/addItemReleaseViewApi.js b/src/api/work/addItemReleaseViewApi.js new file mode 100644 index 0000000..28b6667 --- /dev/null +++ b/src/api/work/addItemReleaseViewApi.js @@ -0,0 +1,92 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 保存放行信息 +export function saveItemRelease(data) { + return new Promise((resolve, reject) => { + request({ + url: '/itemRelease.saveItemRelease', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取放行类型列表 +export function listItemReleaseType(params) { + return new Promise((resolve, reject) => { + request({ + url: '/itemRelease.listItemReleaseType', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 查询审批人信息 +export function queryFirstAuditStaff(params) { + return new Promise((resolve, reject) => { + request({ + url: '/oaWorkflow.queryFirstAuditStaff', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 查询员工信息 +export function queryStaffInfos(params) { + return new Promise((resolve, reject) => { + request({ + url: '/query.staff.infos', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取组织树 +export function listOrgTree(params) { + return new Promise((resolve, reject) => { + request({ + url: '/org.listOrgTree', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + resolve(response.data) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/work/itemReleaseManageApi.js b/src/api/work/itemReleaseManageApi.js new file mode 100644 index 0000000..01ec231 --- /dev/null +++ b/src/api/work/itemReleaseManageApi.js @@ -0,0 +1,102 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取物品放行列表 +export function listItemRelease(params) { + return new Promise((resolve, reject) => { + const communityId = getCommunityId() + request({ + url: '/itemRelease.listItemRelease', + method: 'get', + params: { + ...params, + communityId + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取物品放行类型列表 +export function listItemReleaseType(params) { + return new Promise((resolve, reject) => { + const communityId = getCommunityId() + request({ + url: '/itemRelease.listItemReleaseType', + method: 'get', + params: { + ...params, + communityId + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 更新物品放行信息 +export function updateItemRelease(data) { + return new Promise((resolve, reject) => { + const communityId = getCommunityId() + request({ + url: '/itemRelease.updateItemRelease', + method: 'post', + data: { + ...data, + communityId + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 删除物品放行 +export function deleteItemRelease(data) { + return new Promise((resolve, reject) => { + const communityId = getCommunityId() + request({ + url: '/itemRelease.deleteItemRelease', + method: 'post', + data: { + ...data, + communityId + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 获取物品放行物品列表 +export function listItemReleaseRes(params) { + return new Promise((resolve, reject) => { + const communityId = getCommunityId() + request({ + url: '/itemRelease.listItemReleaseRes', + method: 'get', + params: { + ...params, + communityId + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/work/itemReleaseTypeManageApi.js b/src/api/work/itemReleaseTypeManageApi.js new file mode 100644 index 0000000..af1b909 --- /dev/null +++ b/src/api/work/itemReleaseTypeManageApi.js @@ -0,0 +1,94 @@ +import request from '@/utils/request' +import { getCommunityId } from '@/api/community/communityApi' + +// 获取放行类型列表 +export function listItemReleaseType(params) { + return new Promise((resolve, reject) => { + request({ + url: '/itemRelease.listItemReleaseType', + method: 'get', + params: { + ...params, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 添加放行类型 +export function saveItemReleaseType(data) { + return new Promise((resolve, reject) => { + request({ + url: '/itemRelease.saveItemReleaseType', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 修改放行类型 +export function updateItemReleaseType(data) { + return new Promise((resolve, reject) => { + request({ + url: '/itemRelease.updateItemReleaseType', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 删除放行类型 +export function deleteItemReleaseType(data) { + return new Promise((resolve, reject) => { + request({ + url: '/itemRelease.deleteItemReleaseType', + method: 'post', + data: { + ...data, + communityId: getCommunityId() + } + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} + +// 部署流程 +export function deployModel(data) { + return new Promise((resolve, reject) => { + request({ + url: '/workflow/deployModel', + method: 'post', + data + }).then(response => { + const res = response.data + resolve(res) + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/components/community/deleteCommunityPublicity.vue b/src/components/community/deleteCommunityPublicity.vue new file mode 100644 index 0000000..45e0473 --- /dev/null +++ b/src/components/community/deleteCommunityPublicity.vue @@ -0,0 +1,73 @@ + + + + + \ No newline at end of file diff --git a/src/components/community/uploadImageUrl.vue b/src/components/community/uploadImageUrl.vue index 6c3a6a7..1a4cbef 100644 --- a/src/components/community/uploadImageUrl.vue +++ b/src/components/community/uploadImageUrl.vue @@ -1,23 +1,55 @@ - \ No newline at end of file diff --git a/src/components/community/viewImage.vue b/src/components/community/viewImage.vue index 555b49c..58b0a5f 100644 --- a/src/components/community/viewImage.vue +++ b/src/components/community/viewImage.vue @@ -1,8 +1,15 @@ @@ -23,20 +30,24 @@ export default { this.imageUrl = url this.visible = true this.enterFullscreen() + + // 计算图片宽高比例 const img = new Image() img.src = url img.onload = () => { - const imgScale = img.width / img.height - this.imageWidth = 800 - this.imageHeight = 800 / imgScale + const ratio = img.width / img.height + this.imageHeight = this.imageWidth / ratio } }, close() { this.exitFullscreen() this.visible = false }, + handleImageError(e) { + e.target.src = '/img/noPhoto.jpg' + }, enterFullscreen() { - const element = document.getElementById('view-image') + const element = this.$el if (element.requestFullscreen) { element.requestFullscreen() } else if (element.mozRequestFullScreen) { @@ -55,16 +66,13 @@ export default { } else if (document.webkitExitFullscreen) { document.webkitExitFullscreen() } - }, - handleImageError(e) { - e.target.src = '/img/noPhoto.jpg' } } } - \ No newline at end of file diff --git a/src/components/work/addItemReleaseType.vue b/src/components/work/addItemReleaseType.vue new file mode 100644 index 0000000..ca1b1ee --- /dev/null +++ b/src/components/work/addItemReleaseType.vue @@ -0,0 +1,101 @@ + + + \ No newline at end of file diff --git a/src/components/work/deleteItemRelease.vue b/src/components/work/deleteItemRelease.vue new file mode 100644 index 0000000..93beddf --- /dev/null +++ b/src/components/work/deleteItemRelease.vue @@ -0,0 +1,61 @@ + + + \ No newline at end of file diff --git a/src/components/work/deleteItemReleaseType.vue b/src/components/work/deleteItemReleaseType.vue new file mode 100644 index 0000000..84ad730 --- /dev/null +++ b/src/components/work/deleteItemReleaseType.vue @@ -0,0 +1,57 @@ + + + \ No newline at end of file diff --git a/src/components/work/editItemRelease.vue b/src/components/work/editItemRelease.vue new file mode 100644 index 0000000..a85010c --- /dev/null +++ b/src/components/work/editItemRelease.vue @@ -0,0 +1,284 @@ + + + \ No newline at end of file diff --git a/src/components/work/editItemReleaseType.vue b/src/components/work/editItemReleaseType.vue new file mode 100644 index 0000000..78b0e02 --- /dev/null +++ b/src/components/work/editItemReleaseType.vue @@ -0,0 +1,107 @@ + + + \ No newline at end of file diff --git a/src/components/work/orgTreeShow.vue b/src/components/work/orgTreeShow.vue new file mode 100644 index 0000000..e16e2bf --- /dev/null +++ b/src/components/work/orgTreeShow.vue @@ -0,0 +1,67 @@ + + + + + \ No newline at end of file diff --git a/src/components/work/selectStaff.vue b/src/components/work/selectStaff.vue new file mode 100644 index 0000000..b3b0c00 --- /dev/null +++ b/src/components/work/selectStaff.vue @@ -0,0 +1,158 @@ + + + + + \ No newline at end of file diff --git a/src/components/work/viewItemReleaseRes.vue b/src/components/work/viewItemReleaseRes.vue new file mode 100644 index 0000000..1583eee --- /dev/null +++ b/src/components/work/viewItemReleaseRes.vue @@ -0,0 +1,73 @@ + + + \ No newline at end of file diff --git a/src/i18n/communityI18n.js b/src/i18n/communityI18n.js index 7452e97..88343c8 100644 --- a/src/i18n/communityI18n.js +++ b/src/i18n/communityI18n.js @@ -2,17 +2,26 @@ import { messages as roomStructureMessages } from '../views/room/roomStructureLa import { messages as carStructureMessages } from '../views/car/carStructureLang' import { messages as propertyRightRegistrationManageMessages } from '../views/room/propertyRightRegistrationManageLang' import { messages as listPropertyRightRegistrationDetailMessages } from '../views/room/listPropertyRightRegistrationDetailLang' +import { messages as communityPublicityManageMessages } from '../views/community/communityPublicityManageLang' +import { messages as addCommunityPublicityMessages } from '../views/community/addCommunityPublicityLang' +import { messages as editCommunityPublicityMessages } from '../views/community/editCommunityPublicityLang' export const messages = { en: { ...roomStructureMessages.en, ...carStructureMessages.en, ...propertyRightRegistrationManageMessages.en, ...listPropertyRightRegistrationDetailMessages.en, + ...communityPublicityManageMessages.en, + ...addCommunityPublicityMessages.en, + ...editCommunityPublicityMessages.en, }, zh: { ...roomStructureMessages.zh, ...carStructureMessages.zh, ...propertyRightRegistrationManageMessages.zh, ...listPropertyRightRegistrationDetailMessages.zh, + ...communityPublicityManageMessages.zh, + ...addCommunityPublicityMessages.zh, + ...editCommunityPublicityMessages.zh, } } \ No newline at end of file diff --git a/src/i18n/index.js b/src/i18n/index.js index 516b087..c33c45f 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -145,6 +145,7 @@ import { messages as scmI18n } from './scmI18n' import { messages as userI18n } from './userI18n' import { messages as systemI18n } from './systemI18n' import { messages as communityI18n } from './communityI18n' +import { messages as workI18n } from './workI18n' Vue.use(VueI18n) @@ -288,6 +289,7 @@ const messages = { ...userI18n.en, ...systemI18n.en, ...communityI18n.en, + ...workI18n.en, }, zh: { ...loginMessages.zh, @@ -425,6 +427,7 @@ const messages = { ...userI18n.zh, ...systemI18n.zh, ...communityI18n.zh, + ...workI18n.zh, } } diff --git a/src/i18n/workI18n.js b/src/i18n/workI18n.js new file mode 100644 index 0000000..9abe894 --- /dev/null +++ b/src/i18n/workI18n.js @@ -0,0 +1,16 @@ +import { messages as itemReleaseTypeManageMessages } from '../views/work/itemReleaseTypeManageLang' +import { messages as itemReleaseManageMessages } from '../views/work/itemReleaseManageLang' + +import { messages as addItemReleaseViewMessages } from '../views/work/addItemReleaseViewLang' +export const messages = { + zh: { + ...itemReleaseTypeManageMessages.zh, + ...itemReleaseManageMessages.zh, + ...addItemReleaseViewMessages.zh, + }, + en: { + ...itemReleaseTypeManageMessages.en, + ...itemReleaseManageMessages.en, + ...addItemReleaseViewMessages.en, + } +} \ No newline at end of file diff --git a/src/router/communityRouter.js b/src/router/communityRouter.js index bb47a5c..4c31990 100644 --- a/src/router/communityRouter.js +++ b/src/router/communityRouter.js @@ -19,4 +19,19 @@ export default [ name: '/views/room/listPropertyRightRegistrationDetail', component: () => import('@/views/room/listPropertyRightRegistrationDetailList.vue') }, + { + path: '/pages/community/communityPublicityManage', + name: '/pages/community/communityPublicityManage', + component: () => import('@/views/community/communityPublicityManageList.vue') + }, + { + path: '/views/community/addCommunityPublicity', + name: '/views/community/addCommunityPublicity', + component: () => import('@/views/community/addCommunityPublicityList.vue') + }, + { + path: '/views/community/editCommunityPublicity', + name: '/views/community/editCommunityPublicity', + component: () => import('@/views/community/editCommunityPublicityList.vue') + }, ] \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index a747129..03b8263 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -15,6 +15,7 @@ import scmRouter from './scmRouter' import userRouter from './userRouter' import systemRouter from './systemRouter' import communityRouter from './communityRouter' +import workRouter from './workRouter' Vue.use(VueRouter) @@ -638,6 +639,7 @@ const routes = [ ...userRouter, ...systemRouter, ...communityRouter, + ...workRouter, // 其他子路由可以在这里添加 ] }, diff --git a/src/router/workRouter.js b/src/router/workRouter.js new file mode 100644 index 0000000..144b821 --- /dev/null +++ b/src/router/workRouter.js @@ -0,0 +1,17 @@ +export default [ + { + path: '/pages/property/itemReleaseTypeManage', + name: '/pages/property/itemReleaseTypeManage', + component: () => import('@/views/work/itemReleaseTypeManageList.vue') + }, + { + path: '/pages/property/itemReleaseManage', + name: '/pages/property/itemReleaseManage', + component: () => import('@/views/work/itemReleaseManageList.vue') + }, + { + path: '/views/work/addItemReleaseView', + name: '/views/work/addItemReleaseView', + component: () => import('@/views/work/addItemReleaseViewList.vue') + }, +] \ No newline at end of file diff --git a/src/views/community/addCommunityPublicityLang.js b/src/views/community/addCommunityPublicityLang.js new file mode 100644 index 0000000..d1166ca --- /dev/null +++ b/src/views/community/addCommunityPublicityLang.js @@ -0,0 +1,30 @@ +export const messages = { + en: { + addCommunityPublicity: { + title: 'Add Community Publicity', + pubTitle: 'Publicity Title', + pubType: 'Publicity Type', + headerPhoto: 'Header Photo', + activityContent: 'Activity Content', + back: 'Back', + submit: 'Submit', + requiredTitle: 'Required, please fill in the publicity title', + requiredType: 'Required, please select publicity type', + requiredContent: 'Required, please enter announcement content' + } + }, + zh: { + addCommunityPublicity: { + title: '添加社区公示', + pubTitle: '公示标题', + pubType: '公示类型', + headerPhoto: '头部照片', + activityContent: '活动内容', + back: '返回', + submit: '提交', + requiredTitle: '必填,请填写公示标题', + requiredType: '必填,请选择公示类型', + requiredContent: '必填,请输入公告内容' + } + } +} \ No newline at end of file diff --git a/src/views/community/addCommunityPublicityList.vue b/src/views/community/addCommunityPublicityList.vue new file mode 100644 index 0000000..6d88e50 --- /dev/null +++ b/src/views/community/addCommunityPublicityList.vue @@ -0,0 +1,158 @@ + + + + + \ No newline at end of file diff --git a/src/views/community/communityPublicityManageLang.js b/src/views/community/communityPublicityManageLang.js new file mode 100644 index 0000000..e22d7db --- /dev/null +++ b/src/views/community/communityPublicityManageLang.js @@ -0,0 +1,34 @@ +export const messages = { + en: { + communityPublicityManage: { + searchTitle: 'Search Conditions', + titlePlaceholder: 'Please enter publicity title', + tableTitle: 'Community Publicity List', + headerImg: 'Header Image', + title: 'Publicity Title', + pubType: 'Publicity Type', + createTime: 'Publicity Time', + publisher: 'Publisher', + deleteTitle: 'Confirm Delete', + deleteConfirm: 'Are you sure to delete this community publicity?', + deleteSuccess: 'Delete successfully', + deleteError: 'Delete failed' + } + }, + zh: { + communityPublicityManage: { + searchTitle: '查询条件', + titlePlaceholder: '请输入公示标题', + tableTitle: '小区公示列表', + headerImg: '头部照片', + title: '公示标题', + pubType: '公示类型', + createTime: '公示时间', + publisher: '发布人', + deleteTitle: '确认删除', + deleteConfirm: '确定要删除这条小区公示吗?', + deleteSuccess: '删除成功', + deleteError: '删除失败' + } + } +} \ No newline at end of file diff --git a/src/views/community/communityPublicityManageList.vue b/src/views/community/communityPublicityManageList.vue new file mode 100644 index 0000000..8bfa140 --- /dev/null +++ b/src/views/community/communityPublicityManageList.vue @@ -0,0 +1,226 @@ + + + + + \ No newline at end of file diff --git a/src/views/community/editCommunityPublicityLang.js b/src/views/community/editCommunityPublicityLang.js new file mode 100644 index 0000000..f5087f8 --- /dev/null +++ b/src/views/community/editCommunityPublicityLang.js @@ -0,0 +1,58 @@ +export const messages = { + en: { + editCommunityPublicity: { + title: 'Edit Publicity', + publicityTitle: 'Publicity Title', + publicityTitlePlaceholder: 'Required, please enter publicity title', + publicityType: 'Publicity Type', + publicityTypePlaceholder: 'Required, please select publicity type', + headerImage: 'Header Image', + activityContent: 'Activity Content', + activityContentPlaceholder: 'Required, please enter activity content', + validate: { + titleRequired: 'Publicity title is required', + typeRequired: 'Publicity type is required', + imageRequired: 'Header image is required', + contentRequired: 'Activity content is required' + }, + message: { + updateSuccess: 'Update publicity successfully', + updateFailed: 'Update publicity failed' + } + }, + uploadImage: { + message: { + sizeLimit: 'Image size cannot exceed 2MB', + uploadFailed: 'Upload image failed' + } + } + }, + zh: { + editCommunityPublicity: { + title: '修改公示', + publicityTitle: '公示标题', + publicityTitlePlaceholder: '必填,请填写公示标题', + publicityType: '公示类型', + publicityTypePlaceholder: '必填,请选择公示类型', + headerImage: '头部照片', + activityContent: '活动内容', + activityContentPlaceholder: '必填,请输入活动内容', + validate: { + titleRequired: '公示标题不能为空', + typeRequired: '公示类型不能为空', + imageRequired: '头部照片不能为空', + contentRequired: '活动内容不能为空' + }, + message: { + updateSuccess: '修改公示成功', + updateFailed: '修改公示失败' + } + }, + uploadImage: { + message: { + sizeLimit: '图片大小不能超过2MB', + uploadFailed: '图片上传失败' + } + } + } +} \ No newline at end of file diff --git a/src/views/community/editCommunityPublicityList.vue b/src/views/community/editCommunityPublicityList.vue new file mode 100644 index 0000000..6ec521f --- /dev/null +++ b/src/views/community/editCommunityPublicityList.vue @@ -0,0 +1,204 @@ + + + + + \ No newline at end of file diff --git a/src/views/work/addItemReleaseViewLang.js b/src/views/work/addItemReleaseViewLang.js new file mode 100644 index 0000000..6057e80 --- /dev/null +++ b/src/views/work/addItemReleaseViewLang.js @@ -0,0 +1,98 @@ +export const messages = { + en: { + addItemReleaseView: { + title: 'Apply for Release', + releaseType: 'Release Type', + requiredSelectReleaseType: 'Required, please select release type', + applyCompany: 'Application Company', + requiredApplyCompany: 'Required, please fill in application company', + applyPerson: 'Applicant', + requiredApplyPerson: 'Required, please fill in applicant', + idCard: 'ID Card', + requiredIdCard: 'Required, please fill in ID card', + phone: 'Phone', + requiredPhone: 'Required, please fill in phone', + passTime: 'Pass Time', + requiredPassTime: 'Required, please fill in pass time', + carNum: 'License Plate', + optionalCarNum: 'Optional, please fill in license plate', + remark: 'Remark', + optionalRemark: 'Optional, please fill in remark', + releaseItems: 'Release Items', + addItem: 'Add Item', + itemName: 'Item Name', + requiredItemName: 'Required, please fill in item name', + itemAmount: 'Item Amount', + requiredItemAmount: 'Required, please fill in amount', + approverInfo: 'Approver Information', + approver: 'Approver', + requiredApprover: 'Required, please select approver', + validate: { + releaseType: 'Release type cannot be empty', + applyCompany: 'Application company cannot be empty', + applyPerson: 'Applicant cannot be empty', + idCard: 'ID card cannot be empty', + phone: 'Phone cannot be empty', + passTime: 'Pass time cannot be empty', + itemsRequired: 'At least one item is required', + itemInfoRequired: 'Item name and amount are required', + approverRequired: 'Approver is required' + } + }, + selectStaff: { + title: 'Select Staff', + orgInfo: 'Organization Information', + staffInfo: 'Staff Information', + submitter: 'Submitter', + dynamicAssign: 'Dynamic Assignment' + } + }, + zh: { + addItemReleaseView: { + title: '申请放行', + releaseType: '放行类型', + requiredSelectReleaseType: '必填,请选择放行类型', + applyCompany: '申请单位', + requiredApplyCompany: '必填,请填写申请单位', + applyPerson: '申请人', + requiredApplyPerson: '必填,请填写申请人', + idCard: '身份证', + requiredIdCard: '必填,请填写身份证', + phone: '手机号', + requiredPhone: '必填,请填写手机号', + passTime: '通行时间', + requiredPassTime: '必填,请填写通行时间', + carNum: '车牌号', + optionalCarNum: '选填,请填写车牌号', + remark: '备注', + optionalRemark: '选填,请填写备注', + releaseItems: '放行物品', + addItem: '添加物品', + itemName: '物品名称', + requiredItemName: '必填,请填写物品名称', + itemAmount: '物品数量', + requiredItemAmount: '必填,请填写数量', + approverInfo: '审批人信息', + approver: '审批人', + requiredApprover: '必填,请选择审批人', + validate: { + releaseType: '放行类型不能为空', + applyCompany: '申请单位不能为空', + applyPerson: '申请人不能为空', + idCard: '身份证不能为空', + phone: '手机号不能为空', + passTime: '通行时间不能为空', + itemsRequired: '至少需要一个放行物品', + itemInfoRequired: '物品名称和数量不能为空', + approverRequired: '审批人不能为空' + } + }, + selectStaff: { + title: '选择员工', + orgInfo: '组织信息', + staffInfo: '员工信息', + submitter: '提交者', + dynamicAssign: '动态指定' + } + } +} \ No newline at end of file diff --git a/src/views/work/addItemReleaseViewList.vue b/src/views/work/addItemReleaseViewList.vue new file mode 100644 index 0000000..3638af1 --- /dev/null +++ b/src/views/work/addItemReleaseViewList.vue @@ -0,0 +1,333 @@ + + + + + \ No newline at end of file diff --git a/src/views/work/itemReleaseManageLang.js b/src/views/work/itemReleaseManageLang.js new file mode 100644 index 0000000..318067d --- /dev/null +++ b/src/views/work/itemReleaseManageLang.js @@ -0,0 +1,158 @@ +export const messages = { + en: { + itemReleaseManage: { + search: { + title: 'Search Conditions', + more: 'More', + hide: 'Hide' + }, + list: { + title: 'Item Release' + }, + form: { + releaseType: 'Release Type', + applyCompany: 'Apply Company', + applyPerson: 'Applicant', + idCard: 'ID Card', + phone: 'Phone', + passTime: 'Pass Time', + releaseItems: 'Release Items', + itemAmount: 'Item Amount', + status: 'Status', + carNumber: 'Car Number', + remark: 'Remark' + }, + table: { + orderNo: 'Order No', + releaseType: 'Release Type', + applyCompany: 'Apply Company', + applyPerson: 'Applicant', + idCard: 'ID Card', + phone: 'Phone', + passTime: 'Pass Time', + items: 'Items', + status: 'Status', + carNumber: 'Car Number' + }, + button: { + applyRelease: 'Apply Release', + viewItems: 'View Items' + }, + placeholder: { + selectReleaseType: 'Please select release type', + selectApplyCompany: 'Please select apply company', + selectApplyPerson: 'Please select applicant', + selectIdCard: 'Please input ID card', + selectPhone: 'Please input phone', + selectStatus: 'Please select status', + requiredSelect: 'Required, please select', + requiredInput: 'Required, please input', + optionalInput: 'Optional, please input' + }, + status: { + waiting: 'Waiting', + processing: 'Processing', + completed: 'Completed', + failed: 'Failed' + }, + validate: { + required: 'Cannot be empty', + maxLength30: 'Cannot exceed 30 characters', + maxLength64: 'Cannot exceed 64 characters', + maxLength18: 'Cannot exceed 18 characters', + maxLength11: 'Cannot exceed 11 characters', + maxLength12: 'Cannot exceed 12 characters', + maxLength512: 'Cannot exceed 512 characters' + }, + edit: { + title: 'Edit Item Release' + }, + delete: { + confirmDelete: 'Confirm to delete item release?' + }, + viewItems: { + title: 'Release Items', + itemName: 'Item Name', + amount: 'Amount' + } + } + }, + zh: { + itemReleaseManage: { + search: { + title: '查询条件', + more: '更多', + hide: '隐藏' + }, + list: { + title: '物品放行' + }, + form: { + releaseType: '放行类型', + applyCompany: '申请单位', + applyPerson: '申请人', + idCard: '身份证', + phone: '手机号', + passTime: '通行时间', + releaseItems: '放行物品', + itemAmount: '物品数量', + status: '状态', + carNumber: '车牌号', + remark: '备注' + }, + table: { + orderNo: '单号', + releaseType: '放行类型', + applyCompany: '申请单位', + applyPerson: '申请人', + idCard: '身份证', + phone: '手机号', + passTime: '通行时间', + items: '物品', + status: '状态', + carNumber: '车牌号' + }, + button: { + applyRelease: '申请放行', + viewItems: '查看物品' + }, + placeholder: { + selectReleaseType: '请选择放行类型', + selectApplyCompany: '请选择申请单位', + selectApplyPerson: '请选择申请人', + selectIdCard: '请输入身份证', + selectPhone: '请输入手机号', + selectStatus: '请选择状态', + requiredSelect: '必填,请选择', + requiredInput: '必填,请输入', + optionalInput: '选填,请输入' + }, + status: { + waiting: '待审核', + processing: '审核中', + completed: '审核完成', + failed: '审核失败' + }, + validate: { + required: '不能为空', + maxLength30: '不能超过30个字符', + maxLength64: '不能超过64个字符', + maxLength18: '不能超过18个字符', + maxLength11: '不能超过11个字符', + maxLength12: '不能超过12个字符', + maxLength512: '不能超过512个字符' + }, + edit: { + title: '修改物品放行' + }, + delete: { + confirmDelete: '确定删除物品放行?' + }, + viewItems: { + title: '放行物品', + itemName: '物品名称', + amount: '数量' + } + } + } +} \ No newline at end of file diff --git a/src/views/work/itemReleaseManageList.vue b/src/views/work/itemReleaseManageList.vue new file mode 100644 index 0000000..75ef08b --- /dev/null +++ b/src/views/work/itemReleaseManageList.vue @@ -0,0 +1,369 @@ + + + + + \ No newline at end of file diff --git a/src/views/work/itemReleaseTypeManageLang.js b/src/views/work/itemReleaseTypeManageLang.js new file mode 100644 index 0000000..e8491ea --- /dev/null +++ b/src/views/work/itemReleaseTypeManageLang.js @@ -0,0 +1,110 @@ +export const messages = { + en: { + itemReleaseTypeManage: { + search: { + title: 'Search Conditions', + typeNamePlaceholder: 'Please enter type name' + }, + list: { + title: 'Release Types' + }, + table: { + typeId: 'ID', + typeName: 'Type Name', + flowName: 'Flow Name', + setFlow: 'Set Flow', + state: 'Status', + deployed: 'Deployed', + pendingDeploy: 'Pending Deploy', + remark: 'Remark', + deploy: 'Deploy' + }, + form: { + typeName: 'Type Name', + typeNamePlaceholder: 'Required, please enter type name', + remark: 'Remark', + remarkPlaceholder: 'Required, please enter remark' + }, + validate: { + typeNameRequired: 'Type name is required', + typeNameMaxLength: 'Type name cannot exceed 30 characters', + remarkRequired: 'Remark is required', + remarkMaxLength: 'Remark cannot exceed 512 characters', + typeIdRequired: 'Type ID is required' + }, + add: { + title: 'Add Release Type', + success: 'Add successfully', + error: 'Add failed' + }, + edit: { + title: 'Edit Release Type', + success: 'Edit successfully', + error: 'Edit failed' + }, + delete: { + title: 'Delete Confirmation', + confirmText: 'Are you sure to delete this release type?', + success: 'Delete successfully', + error: 'Delete failed' + }, + fetchError: 'Failed to fetch data', + deploySuccess: 'Deploy successfully', + deployError: 'Deploy failed' + } + }, + zh: { + itemReleaseTypeManage: { + search: { + title: '查询条件', + typeNamePlaceholder: '请输入类型名称' + }, + list: { + title: '放行类型' + }, + table: { + typeId: '编号', + typeName: '类型名称', + flowName: '流程名称', + setFlow: '设置流程', + state: '状态', + deployed: '已部署', + pendingDeploy: '待部署', + remark: '备注', + deploy: '部署' + }, + form: { + typeName: '类型名称', + typeNamePlaceholder: '必填,请填写类型名称', + remark: '备注', + remarkPlaceholder: '必填,请填写备注' + }, + validate: { + typeNameRequired: '类型名称不能为空', + typeNameMaxLength: '类型名称不能超过30个字符', + remarkRequired: '备注不能为空', + remarkMaxLength: '备注不能超过512个字符', + typeIdRequired: '编号不能为空' + }, + add: { + title: '添加放行类型', + success: '添加成功', + error: '添加失败' + }, + edit: { + title: '修改放行类型', + success: '修改成功', + error: '修改失败' + }, + delete: { + title: '删除确认', + confirmText: '确定删除该放行类型吗?', + success: '删除成功', + error: '删除失败' + }, + fetchError: '获取数据失败', + deploySuccess: '部署成功', + deployError: '部署失败' + } + } +} \ No newline at end of file diff --git a/src/views/work/itemReleaseTypeManageList.vue b/src/views/work/itemReleaseTypeManageList.vue new file mode 100644 index 0000000..65cb5ee --- /dev/null +++ b/src/views/work/itemReleaseTypeManageList.vue @@ -0,0 +1,197 @@ + + + + + \ No newline at end of file -- libgit2 0.21.4