From 4cf7ea494fc8da62356864ac28a7e0562c258b19 Mon Sep 17 00:00:00 2001
From: ffr <492210217@qq.com>
Date: Mon, 1 Apr 2024 21:17:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=91=98=E5=B7=A5=E7=AE=A1=E7=90=86=E5=89=8D?=
=?UTF-8?q?=E5=8F=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/couplet/employes.js | 9 +
src/api/{system => couplet}/manage.js | 9 +-
src/views/couplet/employee/index.vue | 701 ++++++++++++++++++++++++++
src/views/couplet/manage/index.vue | 4 +-
4 files changed, 716 insertions(+), 7 deletions(-)
create mode 100644 src/api/couplet/employes.js
rename src/api/{system => couplet}/manage.js (88%)
create mode 100644 src/views/couplet/employee/index.vue
diff --git a/src/api/couplet/employes.js b/src/api/couplet/employes.js
new file mode 100644
index 0000000..a9df6c5
--- /dev/null
+++ b/src/api/couplet/employes.js
@@ -0,0 +1,9 @@
+import request from "@/utils/request";
+
+export function listEmployes(query) {
+ return request({
+ url: '/coupletEnterprisemanagement/employee/employeeList',
+ method: 'post',
+ data: query
+ })
+}
diff --git a/src/api/system/manage.js b/src/api/couplet/manage.js
similarity index 88%
rename from src/api/system/manage.js
rename to src/api/couplet/manage.js
index 2eb13aa..0e91562 100644
--- a/src/api/system/manage.js
+++ b/src/api/couplet/manage.js
@@ -4,7 +4,7 @@ import request from '@/utils/request'
export function listManage(query) {
return request({
url: '/coupletEnterprisemanagement/manage/manageList',
- method: 'get',
+ method: 'POST',
params: query
})
}
@@ -20,7 +20,7 @@ export function listManageExcludeChild(deptId) {
// 查询部门详细
export function getManage(deptId) {
return request({
- url: '/coupletEnterprisemanagement/dept/' + deptId,
+ url: '/coupletEnterprisemanagement/manage/' + deptId,
method: 'get'
})
}
@@ -28,16 +28,15 @@ export function getManage(deptId) {
// 新增部门
export function addManage(data) {
return request({
- url: '/coupletEnterprisemanagement/dept',
+ url: '/coupletEnterprisemanagement/manage',
method: 'post',
data: data
})
}
-
// 修改部门
export function updateManage(data) {
return request({
- url: '/coupletEnterprisemanagement/manage',
+ url: '/coupletEnterprisemanagement/manage ',
method: 'put',
data: data
})
diff --git a/src/views/couplet/employee/index.vue b/src/views/couplet/employee/index.vue
new file mode 100644
index 0000000..e269286
--- /dev/null
+++ b/src/views/couplet/employee/index.vue
@@ -0,0 +1,701 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+
+ 修改
+
+
+
+ 删除
+
+
+
+ 导入
+
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+
+ 删除
+
+ handleCommand(command, scope.row)">
+ 更多
+
+ 重置密码
+
+ 分配角色
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ dict.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+
+ 是否更新已经存在的用户数据
+
+
仅允许导入xls、xlsx格式文件。
+
下载模板
+
+
+
+
+
+
+
+
+
diff --git a/src/views/couplet/manage/index.vue b/src/views/couplet/manage/index.vue
index 8ce4474..d2b27d3 100644
--- a/src/views/couplet/manage/index.vue
+++ b/src/views/couplet/manage/index.vue
@@ -168,7 +168,7 @@
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
-import {addManage, delManage, getManage, listManage, listManageExcludeChild} from "@/api/system/manage";
+import {addManage, delManage, getManage, listManage, listManageExcludeChild, updateManage} from "@/api/couplet/manage";
export default {
name: "Dept",
dicts: ['sys_normal_disable'],
@@ -314,7 +314,7 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.deptId != undefined) {
- updateDept(this.form).then(response => {
+ updateManage(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();