mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-08 17:09:07 +08:00
refactor the ui of ReadNoReplyReminder
This commit is contained in:
@@ -6,40 +6,59 @@
|
|||||||
:model="formContent.autoReminder"
|
:model="formContent.autoReminder"
|
||||||
label-position="top"
|
label-position="top"
|
||||||
>
|
>
|
||||||
<el-form-item label="BOSS直聘 Cookie">
|
<el-form-item>
|
||||||
<el-button size="small" type="primary" font-size-inherit @click="handleClickLaunchLogin"
|
<div>
|
||||||
>编辑Cookie</el-button
|
<div>BOSS直聘 Cookie</div>
|
||||||
|
<el-button size="small" type="primary" font-size-inherit @click="handleClickLaunchLogin"
|
||||||
|
>编辑Cookie</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="mb-0">
|
||||||
|
<div>
|
||||||
|
<div>跟进话术 - 当发现已读不回的Boss时,将要向Boss发出:</div>
|
||||||
|
<el-radio-group v-model="formContent.autoReminder.rechatContentSource">
|
||||||
|
<div>
|
||||||
|
<el-radio :label="RECHAT_CONTENT_SOURCE.LOOK_FORWARD_EMOTION">
|
||||||
|
“[盼回复]” 表情
|
||||||
|
</el-radio>
|
||||||
|
<br />
|
||||||
|
<el-radio :label="RECHAT_CONTENT_SOURCE.GEMINI_WITH_CHAT_CONTEXT">
|
||||||
|
由 AI(根据你的简历及和当前Boss聊天的上下文)生成的内容
|
||||||
|
</el-radio>
|
||||||
|
</div>
|
||||||
|
</el-radio-group>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<div class="ml-30px">
|
||||||
|
<el-form-item
|
||||||
|
v-if="
|
||||||
|
formContent.autoReminder.rechatContentSource ===
|
||||||
|
RECHAT_CONTENT_SOURCE.GEMINI_WITH_CHAT_CONTEXT
|
||||||
|
"
|
||||||
|
prop="geminiApiKey"
|
||||||
>
|
>
|
||||||
</el-form-item>
|
<div class="flex">
|
||||||
<el-form-item
|
Gemini API 密钥 <el-button type="text" @click.prevent="goToGeminiNanoApiKeyPage">
|
||||||
label="跟进话术 - 当发现已读不回的Boss时,将要向Boss发出:"
|
没有密钥?点击此处申请一个
|
||||||
class="color-orange"
|
</el-button>
|
||||||
>
|
|
||||||
<el-radio-group v-model="formContent.autoReminder.rechatContentSource">
|
|
||||||
<div>
|
|
||||||
<el-radio :label="RECHAT_CONTENT_SOURCE.LOOK_FORWARD_EMOTION">
|
|
||||||
“[盼回复]” 表情
|
|
||||||
</el-radio>
|
|
||||||
<br />
|
|
||||||
<el-radio :label="RECHAT_CONTENT_SOURCE.GEMINI_WITH_CHAT_CONTEXT">
|
|
||||||
由 AI(根据你的简历及和当前Boss聊天的上下文)生成的内容
|
|
||||||
</el-radio>
|
|
||||||
</div>
|
</div>
|
||||||
</el-radio-group>
|
<el-input v-model="formContent.autoReminder.geminiApiKey" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-if="
|
v-if="
|
||||||
formContent.autoReminder.rechatContentSource ===
|
formContent.autoReminder.rechatContentSource ===
|
||||||
RECHAT_CONTENT_SOURCE.GEMINI_WITH_CHAT_CONTEXT
|
RECHAT_CONTENT_SOURCE.GEMINI_WITH_CHAT_CONTEXT
|
||||||
"
|
"
|
||||||
label="Gemini API 密钥"
|
prop="resumeAbstract"
|
||||||
prop="geminiApiKey"
|
>
|
||||||
>
|
<div class="w-full">
|
||||||
<el-button type="text" @click.prevent="goToGeminiNanoApiKeyPage">
|
<div class="flex">简历、求职期望摘要 <el-button type="text">例子</el-button></div>
|
||||||
没有密钥?点击此处申请一个吧
|
<el-input type="textarea" v-model="formContent.autoReminder.resumeAbstract" />
|
||||||
</el-button>
|
</div>
|
||||||
<el-input v-model="formContent.autoReminder.geminiApiKey" />
|
<el-button class="mt-8px">预览Prompt</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
<el-form-item label="跟进间隔(分钟)" prop="throttleIntervalMinutes">
|
<el-form-item label="跟进间隔(分钟)" prop="throttleIntervalMinutes">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="formContent.autoReminder.throttleIntervalMinutes"
|
v-model="formContent.autoReminder.throttleIntervalMinutes"
|
||||||
@@ -85,7 +104,8 @@ const formContent = ref({
|
|||||||
throttleIntervalMinutes: 10,
|
throttleIntervalMinutes: 10,
|
||||||
rechatLimitDay: 21,
|
rechatLimitDay: 21,
|
||||||
geminiApiKey: '',
|
geminiApiKey: '',
|
||||||
rechatContentSource: 1
|
rechatContentSource: 1,
|
||||||
|
resumeAbstract: ''
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -108,6 +128,7 @@ electron.ipcRenderer.invoke('fetch-config-file-content').then((res) => {
|
|||||||
conf.rechatLimitDay = conf.rechatLimitDay ?? 21
|
conf.rechatLimitDay = conf.rechatLimitDay ?? 21
|
||||||
conf.geminiApiKey = conf.geminiApiKey ?? ''
|
conf.geminiApiKey = conf.geminiApiKey ?? ''
|
||||||
conf.rechatContentSource = conf.rechatContentSource ?? 1
|
conf.rechatContentSource = conf.rechatContentSource ?? 1
|
||||||
|
conf.resumeAbstract = conf.resumeAbstract ?? ''
|
||||||
|
|
||||||
formContent.value.autoReminder = conf
|
formContent.value.autoReminder = conf
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user