From 1e2067726c2fd7696450c4bcc35ba540f968b0cb Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Fri, 18 Oct 2024 10:41:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/userInfo.js | 19 ++++++- src/views/process/outApply/index.vue | 5 ++ src/views/process/outExam/index.vue | 2 + src/views/process/restApply/index.vue | 5 ++ src/views/process/restExam/index.vue | 2 + src/views/setting/devices/index.vue | 4 +- src/views/setting/rules/index.vue | 12 +++-- src/views/system/dept/index.vue | 76 ++++++++++++++++++++++++++- src/views/system/userInfo/index.vue | 35 +++++++++--- 9 files changed, 143 insertions(+), 17 deletions(-) diff --git a/src/api/system/userInfo.js b/src/api/system/userInfo.js index e389108..7cde7dd 100644 --- a/src/api/system/userInfo.js +++ b/src/api/system/userInfo.js @@ -37,6 +37,15 @@ export function updateUser(data) { }) } +// 重置密码 +export function resetPwd(data) { + return request({ + url: '/system/user/resetPwd', + method: 'post', + data: data + }) +} + // 删除用户 export function delUser(data) { return request({ @@ -53,8 +62,14 @@ export function exportUser(data) { data: data }) } - - +//模板下载 +export function userTempFile(query) { + return request({ + url: '/system/user/userFile', + method: 'get', + params: query + }) +} // 角色下拉 export function getSelectRole(query) { return request({ diff --git a/src/views/process/outApply/index.vue b/src/views/process/outApply/index.vue index ff121f8..a0c739d 100644 --- a/src/views/process/outApply/index.vue +++ b/src/views/process/outApply/index.vue @@ -34,6 +34,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" + v-hasPermi="['flow:holiday:add']" >新增 @@ -88,20 +89,24 @@ 编辑 详情 撤回 删除 diff --git a/src/views/process/outExam/index.vue b/src/views/process/outExam/index.vue index b56a981..70b310d 100644 --- a/src/views/process/outExam/index.vue +++ b/src/views/process/outExam/index.vue @@ -66,10 +66,12 @@ 审核 详情 diff --git a/src/views/process/restApply/index.vue b/src/views/process/restApply/index.vue index e59b8ff..1b8b7a1 100644 --- a/src/views/process/restApply/index.vue +++ b/src/views/process/restApply/index.vue @@ -34,6 +34,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" + v-hasPermi="['flow:holiday:add']" >新增 @@ -90,20 +91,24 @@ type="primary" v-if="scope.row.examineStatus==3" @click="handleUpdate(scope.row)" + v-hasPermi="['flow:holiday:edit']" >编辑 详情 撤回 删除 diff --git a/src/views/process/restExam/index.vue b/src/views/process/restExam/index.vue index 7241661..91cbaf1 100644 --- a/src/views/process/restExam/index.vue +++ b/src/views/process/restExam/index.vue @@ -68,10 +68,12 @@ 审核 详情 diff --git a/src/views/setting/devices/index.vue b/src/views/setting/devices/index.vue index 1f83bf8..019abce 100644 --- a/src/views/setting/devices/index.vue +++ b/src/views/setting/devices/index.vue @@ -33,7 +33,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - + v-hasPermi="['att:machine:add']" >新增 @@ -73,11 +73,13 @@ 编辑 删除 diff --git a/src/views/setting/rules/index.vue b/src/views/setting/rules/index.vue index 3699094..547bb2e 100644 --- a/src/views/setting/rules/index.vue +++ b/src/views/setting/rules/index.vue @@ -33,7 +33,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - + v-hasPermi="['att:group:add']" >新增 @@ -44,7 +44,7 @@ icon="el-icon-download" size="mini" @click="handleExport" - + >导出 @@ -83,11 +83,13 @@ 编辑 删除 @@ -548,9 +550,9 @@ }, /** 导出按钮操作 */ handleExport() { - this.download('system/dict/type/export', { - ...this.queryParams - }, `type_${new Date().getTime()}.xlsx`) + // this.download('system/dict/type/export', { + // ...this.queryParams + // }, `type_${new Date().getTime()}.xlsx`) }, } diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index b746144..4985bd3 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -31,8 +31,13 @@ icon="el-icon-plus" size="mini" @click="handleAdd" + v-hasPermi="['system:org:add']" >新增 + + 导入 + 修改 新增 删除 @@ -191,12 +199,37 @@ 取 消 + + + + + + + 将文件拖到此处,或点击上传 + + + 仅允许导入xls、xlsx格式文件。 + 下载模板 + + + + +