diff --git a/.env.development b/.env.development index 103c85d..6785ab0 100644 --- a/.env.development +++ b/.env.development @@ -3,7 +3,8 @@ ENV = 'development' # base api #VUE_APP_BASE_API = '/dev-api' -VUE_APP_BASE_API = 'http://app.rt.xianci.info/' +#VUE_APP_BASE_API = 'http://app.rt.xianci.info/' +VUE_APP_BASE_API = 'http://office.xianci.info:18904/' #VUE_APP_BASE_API = 'http://api.rt.myntv.cn/' # base url diff --git a/src/api/dept.js b/src/api/dept.js new file mode 100644 index 0000000..7425341 --- /dev/null +++ b/src/api/dept.js @@ -0,0 +1,41 @@ +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/api/convenience/dept/list', + method: 'post', + data + }) +} + +export function add(data) { + return request({ + url: '/api/convenience/dept/add', + method: 'post', + data + }) +} + +export function del(params) { + return request({ + url: '/api/convenience/dept', + method: 'DELETE', + params + }) +} + +export function updateStaffIds(data) { + return request({ + url: '/api/convenience/dept/updateStaffIds', + method: 'PUT', + data + }) +} + +export function getStaffListByDeptId(params) { + return request({ + url: '/api/convenience/dept/getStaffListByDeptId', + method: 'GET', + params + }) +} diff --git a/src/router/index.js b/src/router/index.js index 151a516..f0e820b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -330,6 +330,43 @@ export const asyncRoutes = [ } ] }, + { + path: "/dept", + component: Layout, + name: "Dept", + redirect: "/dept/list", + meta: { + title: "县级部门管理", + icon: "townRanking", + roles: ["SSS"] + }, + hidden: false, + children: [ + { + path: "list", + component: () => import("@/views/dept/list"), + name: "DeptList", + meta: { + title: "部门列表", + icon: "townRanking", + affix: true, + parentTitle: "县级部门管理" + } + }, + { + path: "staff", + component: () => import("@/views/dept/staff"), + name: "DeptStaff", + meta: { + title: "人员列表", + icon: "townRanking", + affix: true, + parentTitle: "县级部门管理" + }, + hidden: true + } + ] + }, // { // path: '/permission', // component: Layout, diff --git a/src/views/dept/list.vue b/src/views/dept/list.vue new file mode 100644 index 0000000..0d5acbd --- /dev/null +++ b/src/views/dept/list.vue @@ -0,0 +1,217 @@ + + + 新增部门 + + + + + + + + {{ + scope.row.createDate | parseTime("{y}-{m}-{d} {h}:{i}:{s}") + }} + + + + + + {{ + scope.row.lastUpdateDate | parseTime("{y}-{m}-{d} {h}:{i}:{s}") + }} + + + + + + 人员管理 + 编辑 + 删除 + + + + + + + + + + + + + + + + + + + 取消 + 提交 + + + + + + + + diff --git a/src/views/dept/staff.vue b/src/views/dept/staff.vue new file mode 100644 index 0000000..3ba2d26 --- /dev/null +++ b/src/views/dept/staff.vue @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + 搜索 + + + + + + {{ scope.row.name }} + + + + + + {{ scope.row.nameZ }} + + + + + + {{ scope.row.phone }} + + + + + + {{ scope.row.idCard }} + + + + + + + + + 移出 + 添加 + + + + + + + + + + + +