diff --git a/src/api/DesignForm/index.ts b/src/api/DesignForm/index.ts index 5410828..f35bbe0 100644 --- a/src/api/DesignForm/index.ts +++ b/src/api/DesignForm/index.ts @@ -63,7 +63,9 @@ export const getRequest = (apiKey: string, data?: any, options: any = {}) => { return request(obj) } // export const uploadUrl = '/api/' + allApi.upload -export const uploadUrl = import.meta.env.VITE_APP_BASE_API+"/api/upordown" +// export const uploadUrl = import.meta.env.VITE_APP_BASE_API+"/api/upordown" +export const uploadUrl = import.meta.env.VITE_APP_BASE_API+"/setupFile/uploads/oneFileUpload" +export const uploadUrlNew = import.meta.env.VITE_APP_BASE_API+"/setupFile/uploads/oneFileUpload" export function uploadFiledTinymce(data:any, url:any) { return request({ url: url || '/api/upordown', diff --git a/src/api/system/roleapi/power.ts b/src/api/system/roleapi/power.ts index 6a3037c..39bbd92 100644 --- a/src/api/system/roleapi/power.ts +++ b/src/api/system/roleapi/power.ts @@ -23,3 +23,27 @@ export function authorizeOrgTree(data?: getSystemPower){ data:data }); } +/** +@ 作者: 秦东 +@ 时间: 2025-11-28 10:24:09 +@ 功能: 根据权限获取数据 +*/ +export function authorizePeopleList(data?: getSystemPower){ + return request({ + url: '/systemapi/hr/authorizePeopleList', + method: 'post', + data:data + }); +} +/** +@ 作者: 秦东 +@ 时间: 2025-11-28 10:24:09 +@ 功能: 新增人员 +*/ +export function addNewPeople(data?: getSystemPower){ + return request({ + url: '/systemapi/hr/addNewPeople', + method: 'post', + data:data + }); +} diff --git a/src/directive/permission/button.ts b/src/directive/permission/button.ts index d57d71c..b44d998 100644 --- a/src/directive/permission/button.ts +++ b/src/directive/permission/button.ts @@ -7,17 +7,17 @@ import { useUserStore } from "@/store/modules/user"; export const hasButton: Directive = { mounted(el: HTMLElement, binding: DirectiveBinding) { const userStore = useUserStore(); - // const { value,oldValue } = binding; - // console.log("按钮权限",el,"-->",binding,"-->",value,"-->",oldValue,"-->",userStore.myPower); - console.log("按钮权限",el,"-->",binding,"-->","-->",userStore.myPower); - // if (value) { - // const requiredPerms = value; // DOM绑定需要的按钮权限标识 - // const hasPerm = userStore.myPower.menuIdAry.some((perm: any) => { - // return requiredPerms.includes(perm); - // }); - // if (!hasPerm) { - // el.parentNode?.removeChild(el); - // } - // } + const { value } = binding; + // console.log("按钮权限",el,"-->",binding,"-->",value,"-->",userStore.myPower.menuButIdAry,"-->",userStore.myPower); + + if (value) { + const requiredPerms = value; // DOM绑定需要的按钮权限标识 + const hasPerm = userStore.myPower.menuButIdAry.some((perm: any) => { + return requiredPerms.includes(perm); + }); + if (!hasPerm) { + el.parentNode?.removeChild(el); + } + } } } diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index f8db4d3..4863bda 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -96,7 +96,7 @@ export const useUserStore = defineStore("user", () => { // }); getUserInfoIng() .then(({data})=>{ - console.log("获取用户信息:角色必须是非null数组!",data); + // console.log("获取用户信息:角色必须是非null数组!",data); // debugger; if (!data) { return reject("验证失败,请重新登录。"); diff --git a/src/views/hr/archives/archivescont.vue b/src/views/hr/archives/archivescont.vue index 1a0e2b4..34ef36f 100644 --- a/src/views/hr/archives/archivescont.vue +++ b/src/views/hr/archives/archivescont.vue @@ -57,7 +57,7 @@ const userIcon = ref(); //人员头像 const boxTitle = ref(); //弹出框标题 const userConting = ref(""); //人员信息 const rowLoading = ref(false); -const imgUploadApiUrl = import.meta.env.VITE_APP_BASE_API + "/api/upordown"; //图片上传地址 +const imgUploadApiUrl = import.meta.env.VITE_APP_BASE_API+"/setupFile/uploads/oneFileUpload";//图片上传地址 const editMyOrgCont = ref(false); //编辑行政组织 const editMyCont = ref(false); //编辑个人信息 /** @@ -134,11 +134,14 @@ const handleAvatarSuccess: UploadProps["onSuccess"] = ( uploadFiles ) => { userIcon.value = URL.createObjectURL(uploadFile.raw!); + // console.log("上传成功-------------------->", uploadFile); + // console.log("上传成功-------------------->", props.archivesdata.id); //修改人员头像 editMyInfoIcon({ id: props.archivesdata.id, iconpath: response.data.url, }).then((data) => { + fileUploadIng.value = false; ElMessage.success("编辑成功"); emits("getarchivespageclick"); }); diff --git a/src/views/hr/archives/index.vue b/src/views/hr/archives/index.vue index 9f44a36..013825e 100644 --- a/src/views/hr/archives/index.vue +++ b/src/views/hr/archives/index.vue @@ -1,40 +1,96 @@ diff --git a/src/views/hr/archives/index_20251202.vue b/src/views/hr/archives/index_20251202.vue new file mode 100644 index 0000000..6cddce0 --- /dev/null +++ b/src/views/hr/archives/index_20251202.vue @@ -0,0 +1,200 @@ + + + + diff --git a/src/views/hr/archives/unitpage/addUserPage.vue b/src/views/hr/archives/unitpage/addUserPage.vue new file mode 100644 index 0000000..329a616 --- /dev/null +++ b/src/views/hr/archives/unitpage/addUserPage.vue @@ -0,0 +1,274 @@ + + + + diff --git a/src/views/hr/archives/unitpage/batchImport.vue b/src/views/hr/archives/unitpage/batchImport.vue new file mode 100644 index 0000000..9d66ac7 --- /dev/null +++ b/src/views/hr/archives/unitpage/batchImport.vue @@ -0,0 +1,235 @@ + + + + diff --git a/src/views/hr/archives/unitpage/lockInfo.vue b/src/views/hr/archives/unitpage/lockInfo.vue new file mode 100644 index 0000000..44f79ef --- /dev/null +++ b/src/views/hr/archives/unitpage/lockInfo.vue @@ -0,0 +1,96 @@ + + + + diff --git a/src/views/hr/archives/unitpage/uploadTemplate.vue b/src/views/hr/archives/unitpage/uploadTemplate.vue new file mode 100644 index 0000000..3f93580 --- /dev/null +++ b/src/views/hr/archives/unitpage/uploadTemplate.vue @@ -0,0 +1,222 @@ + + + + + diff --git a/src/views/nested/.editorconfig b/src/views/nested/.editorconfig new file mode 100644 index 0000000..b9c127d --- /dev/null +++ b/src/views/nested/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = crlf +charset = utf-8 +trim_trailing_whitespace = false +insert_final_newline = false \ No newline at end of file diff --git a/src/views/sysworkflow/lowcodepage/appPage/appSetUp/setup.vue b/src/views/sysworkflow/lowcodepage/appPage/appSetUp/setup.vue index cd5b270..11676ae 100644 --- a/src/views/sysworkflow/lowcodepage/appPage/appSetUp/setup.vue +++ b/src/views/sysworkflow/lowcodepage/appPage/appSetUp/setup.vue @@ -85,6 +85,7 @@ const submitForm = () => { // console.log("提交数据",appSetupCont) appBasicSettings(appSetupCont) .then(() => { + // eslint-disable-next-line vue/no-mutating-props props.appCont.appName = appSetupCont.title; props.appCont.appSvg = appSetupCont.appSvg; props.appCont.describe = appSetupCont.appdescribe;