更新密码管理
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
const resource = '/backend/passwordStore'
|
||||
export const getPasswordStoreList = (params) => request({ url: `${resource}/list`, method: 'get', params })
|
||||
export const getPasswordStoreDetail = (id) => request({ url: `${resource}/detail/${id}`, method: 'get' })
|
||||
export const createPasswordStore = (data) => request({ url: `${resource}/create`, method: 'post', data })
|
||||
export const updatePasswordStore = (id, data) => request({ url: `${resource}/update/${id}`, method: 'post', data })
|
||||
export const deletePasswordStore = (id) => request({ url: `${resource}/delete/${id}`, method: 'delete' })
|
||||
@@ -76,6 +76,12 @@ const staticMainChildren = [
|
||||
component: () => import("@/views/apps/oa/organization/index.vue"),
|
||||
meta: { requiresAuth: true, title: "组织架构", modulePath: "/apps/oa" }
|
||||
},
|
||||
{
|
||||
path: "/tools/passwordStore",
|
||||
name: "BackendPasswordStore",
|
||||
component: () => import("@/views/tools/passwordStore/index.vue"),
|
||||
meta: { requiresAuth: true, title: "密码存储" }
|
||||
},
|
||||
// 兼容拼写错误的路径重定向
|
||||
{
|
||||
path: "/apps/erp/dashborad",
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<div class="node-content">
|
||||
<span class="node-icon">
|
||||
<el-icon v-if="data.is_company">
|
||||
<Office />
|
||||
<OfficeBuilding />
|
||||
</el-icon>
|
||||
<el-icon v-else>
|
||||
<Folder />
|
||||
@@ -203,7 +203,7 @@ import {
|
||||
Plus,
|
||||
Refresh,
|
||||
Setting,
|
||||
Office,
|
||||
OfficeBuilding,
|
||||
Folder,
|
||||
Expand,
|
||||
Fold
|
||||
@@ -220,7 +220,7 @@ import {
|
||||
getEmployeeList,
|
||||
createEmployee,
|
||||
updateEmployee,
|
||||
deleteEmployee,
|
||||
deleteEmployee as apiDeleteEmployee,
|
||||
getOrgSettings
|
||||
} from "@/api/organization";
|
||||
|
||||
@@ -437,7 +437,7 @@ const deleteEmployee = async (data) => {
|
||||
await ElMessageBox.confirm('确认删除这个员工吗?删除后将无法恢复。', '删除确认', {
|
||||
type: 'warning',
|
||||
});
|
||||
await deleteEmployee(data.id);
|
||||
await apiDeleteEmployee(data.id);
|
||||
ElMessage.success('删除成功');
|
||||
await loadEmployeeList(selectedOrg.value.id);
|
||||
} catch (error) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user