diff --git a/src/api/common.js b/src/api/common.js index 87c582b..d1bb14a 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -25,3 +25,11 @@ data: param }) } + +// 根据部门找其默认人员 +export function getDictByType(type) { + return request({ + url: 'dict/code/' + type, + method: 'get' + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..d1bb14a 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -25,3 +25,11 @@ data: param }) } + +// 根据部门找其默认人员 +export function getDictByType(type) { + return request({ + url: 'dict/code/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/stuff.js b/src/api/sanitation/stuff.js new file mode 100644 index 0000000..7a49f54 --- /dev/null +++ b/src/api/sanitation/stuff.js @@ -0,0 +1,49 @@ +/** + * 人员管理接口 + */ +import request from '@/utils/request' +// 人员查询 +export function getStuffListPage(params) { + return request({ + url: 'area/listPage', + method: 'get', + params + }) +} +// 人员查询 +export function getStuffList(pid) { + return request({ + url: 'area/list', + method: 'get', + params: { + pid: pid + } + }) +} + +// 添加人员 +export function addStuff(params) { + return request({ + url: 'area/add', + method: 'post', + params + }) +} +// 修改人员机构 +export function updateStuff(params) { + return request({ + url: 'area/update', + method: 'post', + params + }) +} +// 删除人员机构 +export function delStuff(id) { + return request({ + url: 'area/delete', + method: 'post', + params: { + id: id + } + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..d1bb14a 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -25,3 +25,11 @@ data: param }) } + +// 根据部门找其默认人员 +export function getDictByType(type) { + return request({ + url: 'dict/code/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/stuff.js b/src/api/sanitation/stuff.js new file mode 100644 index 0000000..7a49f54 --- /dev/null +++ b/src/api/sanitation/stuff.js @@ -0,0 +1,49 @@ +/** + * 人员管理接口 + */ +import request from '@/utils/request' +// 人员查询 +export function getStuffListPage(params) { + return request({ + url: 'area/listPage', + method: 'get', + params + }) +} +// 人员查询 +export function getStuffList(pid) { + return request({ + url: 'area/list', + method: 'get', + params: { + pid: pid + } + }) +} + +// 添加人员 +export function addStuff(params) { + return request({ + url: 'area/add', + method: 'post', + params + }) +} +// 修改人员机构 +export function updateStuff(params) { + return request({ + url: 'area/update', + method: 'post', + params + }) +} +// 删除人员机构 +export function delStuff(id) { + return request({ + url: 'area/delete', + method: 'post', + params: { + id: id + } + }) +} diff --git a/src/assets/global_images/photo.png b/src/assets/global_images/photo.png new file mode 100644 index 0000000..7d1e905 --- /dev/null +++ b/src/assets/global_images/photo.png Binary files differ diff --git a/src/api/common.js b/src/api/common.js index 87c582b..d1bb14a 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -25,3 +25,11 @@ data: param }) } + +// 根据部门找其默认人员 +export function getDictByType(type) { + return request({ + url: 'dict/code/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/stuff.js b/src/api/sanitation/stuff.js new file mode 100644 index 0000000..7a49f54 --- /dev/null +++ b/src/api/sanitation/stuff.js @@ -0,0 +1,49 @@ +/** + * 人员管理接口 + */ +import request from '@/utils/request' +// 人员查询 +export function getStuffListPage(params) { + return request({ + url: 'area/listPage', + method: 'get', + params + }) +} +// 人员查询 +export function getStuffList(pid) { + return request({ + url: 'area/list', + method: 'get', + params: { + pid: pid + } + }) +} + +// 添加人员 +export function addStuff(params) { + return request({ + url: 'area/add', + method: 'post', + params + }) +} +// 修改人员机构 +export function updateStuff(params) { + return request({ + url: 'area/update', + method: 'post', + params + }) +} +// 删除人员机构 +export function delStuff(id) { + return request({ + url: 'area/delete', + method: 'post', + params: { + id: id + } + }) +} diff --git a/src/assets/global_images/photo.png b/src/assets/global_images/photo.png new file mode 100644 index 0000000..7d1e905 --- /dev/null +++ b/src/assets/global_images/photo.png Binary files differ diff --git a/src/router/index.js b/src/router/index.js index 44cba3b..fecd889 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,7 +9,8 @@ /* Layout */ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' -import { exampleRouters } from './modules/example' +// import { exampleRouters } from './modules/example' +import { sanitationRouters } from './modules/sanitation' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -40,7 +41,7 @@ ] }, // 登录页面 - { path: '/login', component: () => import('@/views/login/index'), hidden: true }, + { path: '/login', component: () => import('@/views/login/index_2'), hidden: true }, // 404错误页面 { path: '/404', component: () => import('@/views/errorPage/404'), hidden: true }, // 401 错误页面 @@ -70,7 +71,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - ...exampleRouters, + ...sanitationRouters, ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/api/common.js b/src/api/common.js index 87c582b..d1bb14a 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -25,3 +25,11 @@ data: param }) } + +// 根据部门找其默认人员 +export function getDictByType(type) { + return request({ + url: 'dict/code/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/stuff.js b/src/api/sanitation/stuff.js new file mode 100644 index 0000000..7a49f54 --- /dev/null +++ b/src/api/sanitation/stuff.js @@ -0,0 +1,49 @@ +/** + * 人员管理接口 + */ +import request from '@/utils/request' +// 人员查询 +export function getStuffListPage(params) { + return request({ + url: 'area/listPage', + method: 'get', + params + }) +} +// 人员查询 +export function getStuffList(pid) { + return request({ + url: 'area/list', + method: 'get', + params: { + pid: pid + } + }) +} + +// 添加人员 +export function addStuff(params) { + return request({ + url: 'area/add', + method: 'post', + params + }) +} +// 修改人员机构 +export function updateStuff(params) { + return request({ + url: 'area/update', + method: 'post', + params + }) +} +// 删除人员机构 +export function delStuff(id) { + return request({ + url: 'area/delete', + method: 'post', + params: { + id: id + } + }) +} diff --git a/src/assets/global_images/photo.png b/src/assets/global_images/photo.png new file mode 100644 index 0000000..7d1e905 --- /dev/null +++ b/src/assets/global_images/photo.png Binary files differ diff --git a/src/router/index.js b/src/router/index.js index 44cba3b..fecd889 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,7 +9,8 @@ /* Layout */ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' -import { exampleRouters } from './modules/example' +// import { exampleRouters } from './modules/example' +import { sanitationRouters } from './modules/sanitation' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -40,7 +41,7 @@ ] }, // 登录页面 - { path: '/login', component: () => import('@/views/login/index'), hidden: true }, + { path: '/login', component: () => import('@/views/login/index_2'), hidden: true }, // 404错误页面 { path: '/404', component: () => import('@/views/errorPage/404'), hidden: true }, // 401 错误页面 @@ -70,7 +71,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - ...exampleRouters, + ...sanitationRouters, ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/sanitation.js b/src/router/modules/sanitation.js new file mode 100644 index 0000000..65930ad --- /dev/null +++ b/src/router/modules/sanitation.js @@ -0,0 +1,21 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const sanitationRouters = [{ + path: 'stuff', + component: Layout, + redirect: '/stufflist', + name: 'Stuff', + alwaysShow: true, + meta: { + title: '人员管理', + icon: 'icon-config' // 图标 + }, + children: [ + { + path: '/stufflist', + name: 'StuffList', + component: () => import('@/views/stuffManage/stuffList'), + meta: { title: '人员列表', icon: '' } + } + ] +}] diff --git a/src/api/common.js b/src/api/common.js index 87c582b..d1bb14a 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -25,3 +25,11 @@ data: param }) } + +// 根据部门找其默认人员 +export function getDictByType(type) { + return request({ + url: 'dict/code/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/stuff.js b/src/api/sanitation/stuff.js new file mode 100644 index 0000000..7a49f54 --- /dev/null +++ b/src/api/sanitation/stuff.js @@ -0,0 +1,49 @@ +/** + * 人员管理接口 + */ +import request from '@/utils/request' +// 人员查询 +export function getStuffListPage(params) { + return request({ + url: 'area/listPage', + method: 'get', + params + }) +} +// 人员查询 +export function getStuffList(pid) { + return request({ + url: 'area/list', + method: 'get', + params: { + pid: pid + } + }) +} + +// 添加人员 +export function addStuff(params) { + return request({ + url: 'area/add', + method: 'post', + params + }) +} +// 修改人员机构 +export function updateStuff(params) { + return request({ + url: 'area/update', + method: 'post', + params + }) +} +// 删除人员机构 +export function delStuff(id) { + return request({ + url: 'area/delete', + method: 'post', + params: { + id: id + } + }) +} diff --git a/src/assets/global_images/photo.png b/src/assets/global_images/photo.png new file mode 100644 index 0000000..7d1e905 --- /dev/null +++ b/src/assets/global_images/photo.png Binary files differ diff --git a/src/router/index.js b/src/router/index.js index 44cba3b..fecd889 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,7 +9,8 @@ /* Layout */ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' -import { exampleRouters } from './modules/example' +// import { exampleRouters } from './modules/example' +import { sanitationRouters } from './modules/sanitation' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -40,7 +41,7 @@ ] }, // 登录页面 - { path: '/login', component: () => import('@/views/login/index'), hidden: true }, + { path: '/login', component: () => import('@/views/login/index_2'), hidden: true }, // 404错误页面 { path: '/404', component: () => import('@/views/errorPage/404'), hidden: true }, // 401 错误页面 @@ -70,7 +71,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - ...exampleRouters, + ...sanitationRouters, ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/sanitation.js b/src/router/modules/sanitation.js new file mode 100644 index 0000000..65930ad --- /dev/null +++ b/src/router/modules/sanitation.js @@ -0,0 +1,21 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const sanitationRouters = [{ + path: 'stuff', + component: Layout, + redirect: '/stufflist', + name: 'Stuff', + alwaysShow: true, + meta: { + title: '人员管理', + icon: 'icon-config' // 图标 + }, + children: [ + { + path: '/stufflist', + name: 'StuffList', + component: () => import('@/views/stuffManage/stuffList'), + meta: { title: '人员列表', icon: '' } + } + ] +}] diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js index 1f4fa38..c7f23b0 100644 --- a/src/utils/baseConfig.js +++ b/src/utils/baseConfig.js @@ -1,5 +1,5 @@ const project = { - title: '后台管理系统前端基础框架' + title: '智慧环卫系统' } export function getProject() { return project diff --git a/src/api/common.js b/src/api/common.js index 87c582b..d1bb14a 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -25,3 +25,11 @@ data: param }) } + +// 根据部门找其默认人员 +export function getDictByType(type) { + return request({ + url: 'dict/code/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/stuff.js b/src/api/sanitation/stuff.js new file mode 100644 index 0000000..7a49f54 --- /dev/null +++ b/src/api/sanitation/stuff.js @@ -0,0 +1,49 @@ +/** + * 人员管理接口 + */ +import request from '@/utils/request' +// 人员查询 +export function getStuffListPage(params) { + return request({ + url: 'area/listPage', + method: 'get', + params + }) +} +// 人员查询 +export function getStuffList(pid) { + return request({ + url: 'area/list', + method: 'get', + params: { + pid: pid + } + }) +} + +// 添加人员 +export function addStuff(params) { + return request({ + url: 'area/add', + method: 'post', + params + }) +} +// 修改人员机构 +export function updateStuff(params) { + return request({ + url: 'area/update', + method: 'post', + params + }) +} +// 删除人员机构 +export function delStuff(id) { + return request({ + url: 'area/delete', + method: 'post', + params: { + id: id + } + }) +} diff --git a/src/assets/global_images/photo.png b/src/assets/global_images/photo.png new file mode 100644 index 0000000..7d1e905 --- /dev/null +++ b/src/assets/global_images/photo.png Binary files differ diff --git a/src/router/index.js b/src/router/index.js index 44cba3b..fecd889 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,7 +9,8 @@ /* Layout */ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' -import { exampleRouters } from './modules/example' +// import { exampleRouters } from './modules/example' +import { sanitationRouters } from './modules/sanitation' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -40,7 +41,7 @@ ] }, // 登录页面 - { path: '/login', component: () => import('@/views/login/index'), hidden: true }, + { path: '/login', component: () => import('@/views/login/index_2'), hidden: true }, // 404错误页面 { path: '/404', component: () => import('@/views/errorPage/404'), hidden: true }, // 401 错误页面 @@ -70,7 +71,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - ...exampleRouters, + ...sanitationRouters, ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/sanitation.js b/src/router/modules/sanitation.js new file mode 100644 index 0000000..65930ad --- /dev/null +++ b/src/router/modules/sanitation.js @@ -0,0 +1,21 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const sanitationRouters = [{ + path: 'stuff', + component: Layout, + redirect: '/stufflist', + name: 'Stuff', + alwaysShow: true, + meta: { + title: '人员管理', + icon: 'icon-config' // 图标 + }, + children: [ + { + path: '/stufflist', + name: 'StuffList', + component: () => import('@/views/stuffManage/stuffList'), + meta: { title: '人员列表', icon: '' } + } + ] +}] diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js index 1f4fa38..c7f23b0 100644 --- a/src/utils/baseConfig.js +++ b/src/utils/baseConfig.js @@ -1,5 +1,5 @@ const project = { - title: '后台管理系统前端基础框架' + title: '智慧环卫系统' } export function getProject() { return project diff --git a/src/views/stuffManage/editStuff.vue b/src/views/stuffManage/editStuff.vue new file mode 100644 index 0000000..f63efc6 --- /dev/null +++ b/src/views/stuffManage/editStuff.vue @@ -0,0 +1,436 @@ + + + + + diff --git a/src/api/common.js b/src/api/common.js index 87c582b..d1bb14a 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -25,3 +25,11 @@ data: param }) } + +// 根据部门找其默认人员 +export function getDictByType(type) { + return request({ + url: 'dict/code/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/stuff.js b/src/api/sanitation/stuff.js new file mode 100644 index 0000000..7a49f54 --- /dev/null +++ b/src/api/sanitation/stuff.js @@ -0,0 +1,49 @@ +/** + * 人员管理接口 + */ +import request from '@/utils/request' +// 人员查询 +export function getStuffListPage(params) { + return request({ + url: 'area/listPage', + method: 'get', + params + }) +} +// 人员查询 +export function getStuffList(pid) { + return request({ + url: 'area/list', + method: 'get', + params: { + pid: pid + } + }) +} + +// 添加人员 +export function addStuff(params) { + return request({ + url: 'area/add', + method: 'post', + params + }) +} +// 修改人员机构 +export function updateStuff(params) { + return request({ + url: 'area/update', + method: 'post', + params + }) +} +// 删除人员机构 +export function delStuff(id) { + return request({ + url: 'area/delete', + method: 'post', + params: { + id: id + } + }) +} diff --git a/src/assets/global_images/photo.png b/src/assets/global_images/photo.png new file mode 100644 index 0000000..7d1e905 --- /dev/null +++ b/src/assets/global_images/photo.png Binary files differ diff --git a/src/router/index.js b/src/router/index.js index 44cba3b..fecd889 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,7 +9,8 @@ /* Layout */ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' -import { exampleRouters } from './modules/example' +// import { exampleRouters } from './modules/example' +import { sanitationRouters } from './modules/sanitation' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -40,7 +41,7 @@ ] }, // 登录页面 - { path: '/login', component: () => import('@/views/login/index'), hidden: true }, + { path: '/login', component: () => import('@/views/login/index_2'), hidden: true }, // 404错误页面 { path: '/404', component: () => import('@/views/errorPage/404'), hidden: true }, // 401 错误页面 @@ -70,7 +71,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - ...exampleRouters, + ...sanitationRouters, ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/sanitation.js b/src/router/modules/sanitation.js new file mode 100644 index 0000000..65930ad --- /dev/null +++ b/src/router/modules/sanitation.js @@ -0,0 +1,21 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const sanitationRouters = [{ + path: 'stuff', + component: Layout, + redirect: '/stufflist', + name: 'Stuff', + alwaysShow: true, + meta: { + title: '人员管理', + icon: 'icon-config' // 图标 + }, + children: [ + { + path: '/stufflist', + name: 'StuffList', + component: () => import('@/views/stuffManage/stuffList'), + meta: { title: '人员列表', icon: '' } + } + ] +}] diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js index 1f4fa38..c7f23b0 100644 --- a/src/utils/baseConfig.js +++ b/src/utils/baseConfig.js @@ -1,5 +1,5 @@ const project = { - title: '后台管理系统前端基础框架' + title: '智慧环卫系统' } export function getProject() { return project diff --git a/src/views/stuffManage/editStuff.vue b/src/views/stuffManage/editStuff.vue new file mode 100644 index 0000000..f63efc6 --- /dev/null +++ b/src/views/stuffManage/editStuff.vue @@ -0,0 +1,436 @@ + + + + + diff --git a/src/views/stuffManage/stuffList.vue b/src/views/stuffManage/stuffList.vue new file mode 100644 index 0000000..616f2cd --- /dev/null +++ b/src/views/stuffManage/stuffList.vue @@ -0,0 +1,354 @@ + + + + +