mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-05-11 18:09:50 +08:00
add logic to show common-job-condition-config window in ui
This commit is contained in:
@@ -287,10 +287,17 @@
|
||||
</el-dropdown>
|
||||
</div>
|
||||
<div w-full>
|
||||
<div>
|
||||
<div flex flex-items-center>
|
||||
<el-checkbox v-model="formContent.fieldsForUseCommonConfig.expectCompanies"
|
||||
>使用在“公共职位筛选条件”中设置的值</el-checkbox
|
||||
>
|
||||
<el-button
|
||||
v-if="formContent.fieldsForUseCommonConfig.expectCompanies"
|
||||
size="small"
|
||||
ml-10px
|
||||
@click="handleClickConfigCommonJobCondition({ entry: 'expect-company-field' })"
|
||||
>编辑公共职位筛选条件</el-button
|
||||
>
|
||||
</div>
|
||||
<el-input
|
||||
v-if="!formContent.fieldsForUseCommonConfig.expectCompanies"
|
||||
@@ -374,11 +381,22 @@
|
||||
}"
|
||||
>
|
||||
<div w-full>
|
||||
<div>
|
||||
<div flex flex-items-center>
|
||||
<el-checkbox
|
||||
v-model="formContent.fieldsForUseCommonConfig.blockCompanyNameRegExpStr"
|
||||
>使用在“公共职位筛选条件”中设置的值</el-checkbox
|
||||
>
|
||||
<el-button
|
||||
v-if="formContent.fieldsForUseCommonConfig.blockCompanyNameRegExpStr"
|
||||
size="small"
|
||||
ml-10px
|
||||
@click="
|
||||
handleClickConfigCommonJobCondition({
|
||||
entry: 'block-company-name-reg-exp-field'
|
||||
})
|
||||
"
|
||||
>编辑公共职位筛选条件</el-button
|
||||
>
|
||||
</div>
|
||||
<el-form-item prop="blockCompanyNameRegExpStr" mb0 w-full>
|
||||
<el-input
|
||||
@@ -467,10 +485,21 @@
|
||||
width: '100%'
|
||||
}"
|
||||
>
|
||||
<div>
|
||||
<div flex flex-items-center>
|
||||
<el-checkbox v-model="formContent.fieldsForUseCommonConfig.city"
|
||||
>使用在“公共职位筛选条件”中设置的值</el-checkbox
|
||||
>
|
||||
<el-button
|
||||
v-if="formContent.fieldsForUseCommonConfig.city"
|
||||
size="small"
|
||||
ml-10px
|
||||
@click="
|
||||
handleClickConfigCommonJobCondition({
|
||||
entry: 'city-field'
|
||||
})
|
||||
"
|
||||
>编辑公共职位筛选条件</el-button
|
||||
>
|
||||
</div>
|
||||
<city-chooser
|
||||
v-if="!formContent.fieldsForUseCommonConfig.city"
|
||||
@@ -618,10 +647,21 @@
|
||||
}"
|
||||
>
|
||||
<div>
|
||||
<div>
|
||||
<div flex flex-items-center>
|
||||
<el-checkbox v-model="formContent.fieldsForUseCommonConfig.salary"
|
||||
>使用在“公共职位筛选条件”中设置的值</el-checkbox
|
||||
>
|
||||
<el-button
|
||||
v-if="formContent.fieldsForUseCommonConfig.salary"
|
||||
size="small"
|
||||
ml-10px
|
||||
@click="
|
||||
handleClickConfigCommonJobCondition({
|
||||
entry: 'salary-field'
|
||||
})
|
||||
"
|
||||
>编辑公共职位筛选条件</el-button
|
||||
>
|
||||
</div>
|
||||
<template v-if="!formContent.fieldsForUseCommonConfig.salary">
|
||||
<el-form-item prop="expectSalaryLow" mb10px>
|
||||
@@ -1173,10 +1213,21 @@
|
||||
}"
|
||||
>
|
||||
<div flex-1>
|
||||
<div>
|
||||
<div flex flex-items-center>
|
||||
<el-checkbox v-model="formContent.fieldsForUseCommonConfig.jobDetail"
|
||||
>使用在“公共职位筛选条件”中设置的值</el-checkbox
|
||||
>
|
||||
<el-button
|
||||
v-if="formContent.fieldsForUseCommonConfig.jobDetail"
|
||||
size="small"
|
||||
ml-10px
|
||||
@click="
|
||||
handleClickConfigCommonJobCondition({
|
||||
entry: 'job-detail-field'
|
||||
})
|
||||
"
|
||||
>编辑公共职位筛选条件</el-button
|
||||
>
|
||||
</div>
|
||||
<el-form-item
|
||||
v-if="!formContent.fieldsForUseCommonConfig.jobDetail"
|
||||
@@ -2244,6 +2295,15 @@ const unListenCommonJobConditionConfig = ipcRenderer.on(
|
||||
onUnmounted(() => {
|
||||
unListenCommonJobConditionConfig()
|
||||
})
|
||||
|
||||
const handleClickConfigCommonJobCondition = async ({ entry }) => {
|
||||
gtagRenderer('config_cjc_clicked', { entry })
|
||||
try {
|
||||
await electron.ipcRenderer.invoke('common-job-condition-config')
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@@ -74,7 +74,7 @@ const handleClickConfigLlm = async () => {
|
||||
}
|
||||
|
||||
const handleClickConfigCommonJobCondition = async () => {
|
||||
gtagRenderer('config_cjc_clicked')
|
||||
gtagRenderer('config_cjc_clicked', { entry: 'left-nav' })
|
||||
try {
|
||||
await electron.ipcRenderer.invoke('common-job-condition-config')
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user