|
@@ -476,7 +476,8 @@ const deptOption = ref([])
|
|
|
const userOption = ref([])
|
|
|
const getUserOption = async () => {
|
|
|
try {
|
|
|
- const data = await statisticAnalysisApi.getAnalysisEnterpriseUserList(queryParams)
|
|
|
+ const params ={ enterpriseId: queryParams.enterpriseId }
|
|
|
+ const data = await statisticAnalysisApi.getAnalysisEnterpriseUserList(params)
|
|
|
userOption.value = data || []
|
|
|
} catch (error) {
|
|
|
console.log(error)
|
|
@@ -484,11 +485,16 @@ const getUserOption = async () => {
|
|
|
}
|
|
|
getUserOption()
|
|
|
|
|
|
-// 用户
|
|
|
+// 职位
|
|
|
const jobOption = ref([])
|
|
|
const getJobOption = async () => {
|
|
|
try {
|
|
|
- const data = await statisticAnalysisApi.getAnalysisJobAdvertisedList(queryParams)
|
|
|
+ const params ={
|
|
|
+ enterpriseId: queryParams.enterpriseId,
|
|
|
+ deptId: queryParams.deptId,
|
|
|
+ status: 0,
|
|
|
+ }
|
|
|
+ const data = await statisticAnalysisApi.getAnalysisJobAdvertisedList(params)
|
|
|
jobOption.value = data || []
|
|
|
} catch (error) {
|
|
|
console.log(error)
|
|
@@ -497,10 +503,13 @@ const getJobOption = async () => {
|
|
|
getJobOption()
|
|
|
|
|
|
const enterpriseIdSelectChange = (val) => {
|
|
|
+ queryParams.deptId = undefined
|
|
|
+ queryParams.jobId = undefined
|
|
|
getUserOption()
|
|
|
getJobOption()
|
|
|
}
|
|
|
const userIdSelectChange = (val) => {
|
|
|
+ queryParams.jobId = undefined
|
|
|
getJobOption()
|
|
|
}
|
|
|
|