|
|
@ -10,8 +10,11 @@ import { |
|
|
addteamcont, |
|
|
addteamcont, |
|
|
eiteteamcont, |
|
|
eiteteamcont, |
|
|
} from "@/api/hr/org/index"; |
|
|
} from "@/api/hr/org/index"; |
|
|
|
|
|
import { govthree } from "@/api/opk/opk/api"; |
|
|
|
|
|
|
|
|
import BatchImportTimePeople from "@/views/hr/teams/batchImportTimePeople.vue"; |
|
|
import BatchImportTimePeople from "@/views/hr/teams/batchImportTimePeople.vue"; |
|
|
|
|
|
const downloadUrlStis = |
|
|
|
|
|
import.meta.env.VITE_APP_BASE_API + "/systemapi/rongxin/downLoadTearms"; |
|
|
|
|
|
|
|
|
const searchFormRef = ref(ElForm); |
|
|
const searchFormRef = ref(ElForm); |
|
|
const addFormRef = ref(ElForm); |
|
|
const addFormRef = ref(ElForm); |
|
|
@ -26,6 +29,8 @@ const tiemList = ref([]); |
|
|
const selectTableLength = ref(0); |
|
|
const selectTableLength = ref(0); |
|
|
const tableIds = ref<string[]>([]); //已选择的行政组织ID数组 |
|
|
const tableIds = ref<string[]>([]); //已选择的行政组织ID数组 |
|
|
|
|
|
|
|
|
|
|
|
const daochuOpen = ref(false); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
@ 作者: 秦东 |
|
|
@ 作者: 秦东 |
|
|
@ 时间: 2025-01-13 13:48:00 |
|
|
@ 时间: 2025-01-13 13:48:00 |
|
|
@ -42,7 +47,17 @@ const gainTimeList = () => { |
|
|
loadLing.value = false; |
|
|
loadLing.value = false; |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
/** |
|
|
|
|
|
@ 作者: 秦东 |
|
|
|
|
|
@ 时间: 2025-02-27 10:47:14 |
|
|
|
|
|
@ 功能: 获取公司信息 |
|
|
|
|
|
*/ |
|
|
|
|
|
const orgList = ref<any>([]); |
|
|
|
|
|
const govthrees = () => { |
|
|
|
|
|
govthree({ id: 309, all: 1 }).then((data) => { |
|
|
|
|
|
orgList.value = data.data; |
|
|
|
|
|
}); |
|
|
|
|
|
}; |
|
|
/** |
|
|
/** |
|
|
@ 作者: 秦东 |
|
|
@ 作者: 秦东 |
|
|
@ 时间: 2025-01-13 13:54:15 |
|
|
@ 时间: 2025-01-13 13:54:15 |
|
|
@ -50,6 +65,7 @@ const gainTimeList = () => { |
|
|
*/ |
|
|
*/ |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
gainTimeList(); |
|
|
gainTimeList(); |
|
|
|
|
|
govthrees(); |
|
|
}); |
|
|
}); |
|
|
/** |
|
|
/** |
|
|
@ 作者: 秦东 |
|
|
@ 作者: 秦东 |
|
|
@ -253,6 +269,26 @@ const closeBatchImport = () => { |
|
|
setupTeimTitle.value = ""; |
|
|
setupTeimTitle.value = ""; |
|
|
setupOpen.value = false; |
|
|
setupOpen.value = false; |
|
|
}; |
|
|
}; |
|
|
|
|
|
/** |
|
|
|
|
|
@ 作者: 秦东 |
|
|
|
|
|
@ 时间: 2025-02-27 10:34:02 |
|
|
|
|
|
@ 功能: 打开导出页面 |
|
|
|
|
|
*/ |
|
|
|
|
|
const upLoadOrg = reactive({ |
|
|
|
|
|
orgId: "", |
|
|
|
|
|
}); |
|
|
|
|
|
const openUploadPage = () => { |
|
|
|
|
|
daochuOpen.value = true; |
|
|
|
|
|
}; |
|
|
|
|
|
const closeUploadPeople = () => { |
|
|
|
|
|
daochuOpen.value = false; |
|
|
|
|
|
}; |
|
|
|
|
|
const orgTreeProps = { |
|
|
|
|
|
label: "name", |
|
|
|
|
|
children: "child", |
|
|
|
|
|
}; |
|
|
|
|
|
//执行下载 |
|
|
|
|
|
const downloadPage = () => {}; |
|
|
</script> |
|
|
</script> |
|
|
<template> |
|
|
<template> |
|
|
<div class="app-container"> |
|
|
<div class="app-container"> |
|
|
@ -289,16 +325,16 @@ const closeBatchImport = () => { |
|
|
<i-ep-plus /> |
|
|
<i-ep-plus /> |
|
|
新增 |
|
|
新增 |
|
|
</el-button> |
|
|
</el-button> |
|
|
<!-- <el-button |
|
|
<el-button |
|
|
v-hasPerm="['339372760021086208']" |
|
|
v-hasPerm="['339372760021086208']" |
|
|
plain |
|
|
plain |
|
|
type="primary" |
|
|
type="primary" |
|
|
:disabled="tiemList.length === 0" |
|
|
:disabled="tiemList.length === 0" |
|
|
@click="handleDeleteOrgClass()" |
|
|
@click="openUploadPage()" |
|
|
> |
|
|
> |
|
|
<i-ep-delete />删除 |
|
|
<i class="fa fa-upload" />导出人员 |
|
|
</el-button> |
|
|
</el-button> |
|
|
<span class="select-text">已选 {{ selectTableLength }} 条</span> --> |
|
|
<!--<span class="select-text">已选 {{ selectTableLength }} 条</span> --> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<el-table |
|
|
<el-table |
|
|
@ -425,6 +461,39 @@ const closeBatchImport = () => { |
|
|
@closeOpen="closeBatchImport" |
|
|
@closeOpen="closeBatchImport" |
|
|
/> |
|
|
/> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog |
|
|
|
|
|
v-model="daochuOpen" |
|
|
|
|
|
title="导出班组人员" |
|
|
|
|
|
width="250" |
|
|
|
|
|
:before-close="closeUploadPeople" |
|
|
|
|
|
> |
|
|
|
|
|
<el-form ref="addFormRef" :model="upLoadOrg"> |
|
|
|
|
|
<el-form-item label="行政组织" prop="orgId"> |
|
|
|
|
|
<el-tree-select |
|
|
|
|
|
v-model="upLoadOrg.orgId" |
|
|
|
|
|
:data="orgList" |
|
|
|
|
|
filterable |
|
|
|
|
|
check-strictly |
|
|
|
|
|
style="width: 240px" |
|
|
|
|
|
:props="orgTreeProps" |
|
|
|
|
|
node-key="id" |
|
|
|
|
|
clearable |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-link |
|
|
|
|
|
type="primary" |
|
|
|
|
|
:underline="false" |
|
|
|
|
|
:href="downloadUrlStis + '?org=' + upLoadOrg.orgId" |
|
|
|
|
|
target="_blank" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button type="primary"> 确定下载 </el-button> |
|
|
|
|
|
</el-link> |
|
|
|
|
|
<el-button @click="closeUploadPeople"> 取消 </el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
|