diff --git a/src/api/staff/aStaffCommunityApi.js b/src/api/staff/aStaffCommunityApi.js new file mode 100644 index 000000000..35837534b --- /dev/null +++ b/src/api/staff/aStaffCommunityApi.js @@ -0,0 +1,55 @@ +import request from '@/utils/request' + +// 获取员工列表 +export function getStaffInfos(params) { + return request({ + url: '/query.staff.infos', + method: 'get', + params + }) +} + +// 获取员工关联的小区列表 +export function listAStaffCommunity(params) { + return request({ + url: '/role.listAStaffCommunity', + method: 'get', + params + }) +} + +// 获取待关联的小区列表 +export function listWaitAStaffCommunity(params) { + return request({ + url: '/role.listWaitAStaffCommunity', + method: 'get', + params + }) +} + +// 保存员工小区关联 +export function saveStaffCommunity(data) { + return request({ + url: '/role.saveStaffCommunity', + method: 'post', + data + }) +} + +// 删除员工小区关联 +export function deleteStaffCommunity(data) { + return request({ + url: '/role.deleteStaffCommunity', + method: 'post', + data + }) +} + +// 获取组织树 +export function listOrgTree(params) { + return request({ + url: '/org.listOrgTree', + method: 'get', + params + }) +} \ No newline at end of file diff --git a/src/i18n/index.js b/src/i18n/index.js index 6bfbb1905..55072b282 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -114,6 +114,7 @@ import { messages as supplierCouponMessages } from '../views/scm/supplierCouponL import { messages as supplierCouponBuyMessages } from '../views/scm/supplierCouponBuyLang' import { messages as aStaffMessages } from '../views/staff/aStaffLang' import { messages as aStaffDetailMessages } from '../views/staff/aStaffDetailLang' +import { messages as aStaffCommunityMessages } from '../views/staff/aStaffCommunityLang' Vue.use(VueI18n) @@ -232,6 +233,7 @@ const messages = { ...supplierCouponBuyMessages.en, ...aStaffMessages.en, ...aStaffDetailMessages.en, + ...aStaffCommunityMessages.en, }, zh: { ...loginMessages.zh, @@ -346,6 +348,7 @@ const messages = { ...supplierCouponBuyMessages.zh, ...aStaffMessages.zh, ...aStaffDetailMessages.zh, + ...aStaffCommunityMessages.zh, } } diff --git a/src/router/index.js b/src/router/index.js index ad062e2cf..43eace4ff 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -556,6 +556,11 @@ const routes = [ name: '/views/staff/aStaffDetail', component: () => import('@/views/staff/aStaffDetailList.vue') }, + { + path:'/pages/staff/aStaffCommunity', + name:'/pages/staff/aStaffCommunity', + component: () => import('@/views/staff/aStaffCommunityList.vue') + }, // 其他子路由可以在这里添加 ] }, diff --git a/src/views/staff/aStaffCommunityLang.js b/src/views/staff/aStaffCommunityLang.js new file mode 100644 index 000000000..59e8d06bb --- /dev/null +++ b/src/views/staff/aStaffCommunityLang.js @@ -0,0 +1,26 @@ +export const messages = { + en: { + aStaffCommunity: { + orgPlaceholder: 'Select organization', + staffPlaceholder: 'Enter staff name', + linkCommunity: 'Link Community', + staffName: 'Staff Name', + staffId: 'Staff ID', + communityId: 'Community ID', + communityName: 'Community Name', + selectStaffFirst: 'Please select a staff first' + } + }, + zh: { + aStaffCommunity: { + orgPlaceholder: '选择组织', + staffPlaceholder: '填写员工名称', + linkCommunity: '关联小区', + staffName: '员工名称', + staffId: '员工编号', + communityId: '小区编号', + communityName: '小区名称', + selectStaffFirst: '请先选择员工' + } + } +} \ No newline at end of file diff --git a/src/views/staff/aStaffCommunityList.vue b/src/views/staff/aStaffCommunityList.vue new file mode 100644 index 000000000..90cbf6c49 --- /dev/null +++ b/src/views/staff/aStaffCommunityList.vue @@ -0,0 +1,222 @@ + + + + + \ No newline at end of file