diff --git a/src/api/hr/org/index.ts b/src/api/hr/org/index.ts index 581b309..6e25906 100644 --- a/src/api/hr/org/index.ts +++ b/src/api/hr/org/index.ts @@ -295,3 +295,13 @@ export function getpositioncont(data: getContId){ data: data }); } +/** + * 获取职位(岗位)详情 + */ +export function jiechuUserLock(data: getContId){ + return request({ + url: '/hrapi/staff/jiechuUserLock', + method: 'post', + data: data + }); +} diff --git a/src/views/hr/archives/index.vue b/src/views/hr/archives/index.vue index 803c549..47a6171 100644 --- a/src/views/hr/archives/index.vue +++ b/src/views/hr/archives/index.vue @@ -14,6 +14,7 @@ import { editUserTemplateInfo, gainTempleateOrgList, teamcontlist, + jiechuUserLock, } from "@/api/hr/org/index"; import { archivesCont, searchCriteriaForPeople } from "@/api/hr/people/type"; import { emptypeOptions } from "@/api/hr/people/datacont"; @@ -690,6 +691,52 @@ const gainTimeList = () => { tiemList.value = data.data.list; }); }; +//清楚锁定 +const unLockUSer = (val: any) => { + console.log("解说-jiechuUserLock--》", val); + jiechuUserLock({ userId: val.number }).then((res: any) => { + getArchivesPage(); + }); +}; +const ruleFormRefLock = ref(null); +const ubLockPage = ref(false); +const unLockForm = reactive({ + numText: "", +}); +const closeLock = () => { + ubLockPage.value = false; +}; +const openUnlico = () => { + ubLockPage.value = true; +}; +const resetForm = () => { + closeLock(); + ruleFormRefLock.value.resetFields(); +}; +const editTitleRules = reactive({ + numText: [ + { required: true, message: "请输入工号;以英文逗号隔开(,)", trigger: "blur" }, + ], +}); +var butLoad = ref(false); +//提交数据 +const picksubus = () => { + butLoad.value = true; + ruleFormRefLock.value.validate((isValid: boolean) => { + if (isValid) { + jiechuUserLock({ userId: unLockForm.numText }) + .then((res: any) => { + butLoad.value = false; + getArchivesPage(); + }) + .finally(() => { + butLoad.value = false; + }); + } else { + butLoad.value = false; + } + }); +};