Browse Source

人员上传

qin_25
herenshan112 2 months ago
parent
commit
ba83668ef6
  1. 31
      src/views/hr/archives/index.vue

31
src/views/hr/archives/index.vue

@ -29,6 +29,7 @@ import UserRole from "@/assets/icons/user.svg";
import { UploadFilled } from "@element-plus/icons-vue"; import { UploadFilled } from "@element-plus/icons-vue";
import { uploadUrl } from "@/api/DesignForm"; import { uploadUrl } from "@/api/DesignForm";
/** /**
* 引入页面 * 引入页面
*/ */
@ -65,6 +66,9 @@ const searchOrgFormRef = ref(ElForm);
const orgTreeRef = ref(ElTree); // const orgTreeRef = ref(ElTree); //
const orgTreeLoading = ref(false); // const orgTreeLoading = ref(false); //
const orgTreeList = ref<orgInfo[]>(); // const orgTreeList = ref<orgInfo[]>(); //
const orgTreeListNew = ref<any[]>([]); //
const orgTreeProps = { const orgTreeProps = {
children: "child", children: "child",
label: "name", label: "name",
@ -164,6 +168,8 @@ const haveOrgList = () => {
console.log("打开批量导入面板", data); console.log("打开批量导入面板", data);
orgListTemp.value = data.data; orgListTemp.value = data.data;
}); });
orgTreeListNew.value
}; };
let jiBuQiVal = 0; let jiBuQiVal = 0;
@ -339,7 +345,7 @@ const ruleForm = reactive({
fileUrl: "", fileUrl: "",
}); });
const tempForm = reactive({ const tempForm = reactive({
orgId: 0, orgId: 313,
}); });
const stafftempForm = reactive({ const stafftempForm = reactive({
orgId: 0, orgId: 0,
@ -510,7 +516,7 @@ const editUserTemp = (val: any) => {
@ 功能: 关闭上传弹窗 @ 功能: 关闭上传弹窗
*/ */
const closeUploadTemp = () => { const closeUploadTemp = () => {
tempForm.orgId = 0; tempForm.orgId = 313;
progressSize.value = 0; progressSize.value = 0;
piLiangBox.value = false; piLiangBox.value = false;
peopleMsg.value = []; peopleMsg.value = [];
@ -737,6 +743,12 @@ const picksubus = () => {
} }
}); });
}; };
const systemMenuTreeProps = {
children: "child",
label: "name",
value:"id"
}
</script> </script>
<template> <template>
<div class="app-container"> <div class="app-container">
@ -1009,11 +1021,16 @@ const picksubus = () => {
<el-col :span="24"> <el-col :span="24">
<el-form :model="tempForm" label-width="auto" style="max-width: 100%"> <el-form :model="tempForm" label-width="auto" style="max-width: 100%">
<el-form-item label="请选择上传那个公司的人员信息"> <el-form-item label="请选择上传那个公司的人员信息">
<el-radio-group v-model="tempForm.orgId">
<el-radio v-for="item in orgListTemp" :value="item.id">{{ <el-tree-select
item.name v-model="tempForm.orgId"
}}</el-radio> :data="orgTreeList"
</el-radio-group> check-strictly
:render-after-expand="false"
:props="systemMenuTreeProps"
style="width: 240px"
/>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-col> </el-col>

Loading…
Cancel
Save