diff --git a/src/api/system.ts b/src/api/system.ts index 5566a15..2b02ef4 100644 --- a/src/api/system.ts +++ b/src/api/system.ts @@ -34,3 +34,105 @@ export const createSubLibrary = (data?: object) => { data }); }; + +/** + * + * @returns 修改子库 + */ +export const updateSubLibrary = (data?: object) => { + return http.request( + "post", + "/know-sub/applicationSubLibrary/update", + { + data + } + ); +}; + +/** + * + * @returns 查看用户信息列表 + */ +export const getUserList = (data?: object) => { + return http.request("get", "/know-sub/user/list", { + params: data + }); +}; + +/** + * + * @returns 新增用户信息 + */ +export const saveUserInfo = (data?: object) => { + return http.request("post", "/know-sub/user/saveUserInfo", { + data + }); +}; + +/** + * + * @returns 修改用户信息 + */ +export const updateUserInfo = (data?: object) => { + return http.request("post", "/know-sub/user/update", { + data + }); +}; + +/** + * + * @returns 下载文件 + */ +export function downloadFile(id) { + return `/know-sub/file/downloadFile?fileId=${id}`; +} + +/** + * + * @returns 重置用户密码 + */ +export const resetPW = (data?: object) => { + return http.request("get", "/know-sub/user/resetPW", { + params: data + }); +}; + +/** + * + * @returns 删除用户 + */ +export const deletePW = (data?: object) => { + return http.request("delete", "/know-sub/user/delete", { + params: data + }); +}; + +/** + * + * @returns 新建部门 + */ +export const createDeptManage = (data?: object) => { + return http.request("post", "/know-sub/deptManage/save", { + data + }); +}; + +/** + * + * @returns 修改部门 + */ +export const updateDeptManage = (data?: object) => { + return http.request("post", "/know-sub/deptManage/update", { + data + }); +}; + +/** + * + * @returns 删除用户 + */ +export const deleteDeptManage = (data?: object) => { + return http.request("delete", "/know-sub/deptManage/delete", { + params: data + }); +}; diff --git a/src/assets/home/tishi@2x.png b/src/assets/home/tishi@2x.png new file mode 100644 index 0000000..9e96054 Binary files /dev/null and b/src/assets/home/tishi@2x.png differ diff --git a/src/views/businessManagement/processConfiguration/index.vue b/src/views/businessManagement/processConfiguration/index.vue index 4378cf3..9751e33 100644 --- a/src/views/businessManagement/processConfiguration/index.vue +++ b/src/views/businessManagement/processConfiguration/index.vue @@ -100,6 +100,12 @@ const handleEdit = (value: any) => { // const changeStatus = item => { // seachForm.status = item.id; // }; +function onCurrentChange(page: number) { + // console.log("onCurrentChange", page); + pagination.currentPage = page; + pagination.pageSize = 10; + getTableData(); +} onMounted(() => { search(); }); @@ -135,6 +141,7 @@ onMounted(() => { color: 'var(--el-text-color-primary)' }" :pagination="pagination" + @page-current-change="onCurrentChange" >