This commit is contained in:
张成
2025-11-28 16:38:46 +08:00
parent 37acdd48b0
commit e77f004dcc
4 changed files with 65 additions and 7 deletions

View File

@@ -29,8 +29,8 @@ const developmentConfig = {
// apiUrl: 'http://localhost:9097/admin_api/', // apiUrl: 'http://localhost:9097/admin_api/',
// uploadUrl: 'http://localhost:9097/admin_api/upload', // uploadUrl: 'http://localhost:9097/admin_api/upload',
apiUrl: 'http://work.light120.com/admin_api/', apiUrl: 'https://work.light120.com/admin_api/',
uploadUrl: 'http://work.light120.com/admin_api/upload', uploadUrl: 'https://work.light120.com/admin_api/upload',
// 开发环境显示更多调试信息 // 开发环境显示更多调试信息
debug: true debug: true
} }
@@ -38,8 +38,8 @@ const developmentConfig = {
// 生产环境配置 // 生产环境配置
const productionConfig = { const productionConfig = {
...baseConfig, ...baseConfig,
apiUrl: 'http://work.light120.com/admin_api/', apiUrl: 'https://work.light120.com/admin_api/',
uploadUrl: 'http://work.light120.com/admin_api/upload', uploadUrl: 'https://work.light120.com/admin_api/upload',
debug: false debug: false
} }

View File

@@ -189,6 +189,28 @@
<span class="value">{{ deliverConfig.exclude_keywords || '-' }}</span> <span class="value">{{ deliverConfig.exclude_keywords || '-' }}</span>
</div> </div>
</Col> </Col>
<Col span="8">
<div class="detail-item">
<span class="label">投递开始时间</span>
<span class="value">{{ deliverConfig.deliver_start_time || '-' }}</span>
</div>
</Col>
<Col span="8">
<div class="detail-item">
<span class="label">投递结束时间</span>
<span class="value">{{ deliverConfig.deliver_end_time || '-' }}</span>
</div>
</Col>
<Col span="8">
<div class="detail-item">
<span class="label">是否仅工作日</span>
<span class="value">
<Tag :color="deliverConfig.deliver_workdays_only === 1 ? 'success' : 'default'">
{{ deliverConfig.deliver_workdays_only === 1 ? '仅工作日' : '包含周末' }}
</Tag>
</span>
</div>
</Col>
</Row> </Row>
</Card> </Card>
@@ -795,7 +817,10 @@ export default {
: (deliverConfig.filter_keywords || ''), : (deliverConfig.filter_keywords || ''),
exclude_keywords: Array.isArray(deliverConfig.exclude_keywords) exclude_keywords: Array.isArray(deliverConfig.exclude_keywords)
? deliverConfig.exclude_keywords.join(',') ? deliverConfig.exclude_keywords.join(',')
: (deliverConfig.exclude_keywords || '') : (deliverConfig.exclude_keywords || ''),
deliver_start_time: deliverConfig.time_range?.start_time || '09:00',
deliver_end_time: deliverConfig.time_range?.end_time || '18:00',
deliver_workdays_only: deliverConfig.time_range?.workdays_only !== undefined ? deliverConfig.time_range.workdays_only : 1
} }
} else { } else {
this.deliverConfig = { this.deliverConfig = {
@@ -806,7 +831,10 @@ export default {
page_count: 3, page_count: 3,
max_deliver: 10, max_deliver: 10,
filter_keywords: '', filter_keywords: '',
exclude_keywords: '' exclude_keywords: '',
deliver_start_time: '09:00',
deliver_end_time: '18:00',
deliver_workdays_only: 1
} }
} }

View File

@@ -113,6 +113,18 @@
<FormItem label="排除关键词"> <FormItem label="排除关键词">
<Input v-model="formData.exclude_keywords" placeholder="包含这些关键词的职位会被排除,多个用逗号分隔" /> <Input v-model="formData.exclude_keywords" placeholder="包含这些关键词的职位会被排除,多个用逗号分隔" />
</FormItem> </FormItem>
<FormItem label="投递开始时间">
<Input v-model="formData.deliver_start_time" placeholder="格式HH:mm09:00" />
</FormItem>
<FormItem label="投递结束时间">
<Input v-model="formData.deliver_end_time" placeholder="格式HH:mm18:00" />
</FormItem>
<FormItem label="是否仅工作日">
<RadioGroup v-model="formData.deliver_workdays_only">
<Radio :label="1">仅工作日</Radio>
<Radio :label="0">包含周末</Radio>
</RadioGroup>
</FormItem>
</Card> </Card>
<Card title="自动沟通配置" style="margin-bottom: 16px;"> <Card title="自动沟通配置" style="margin-bottom: 16px;">
@@ -207,6 +219,9 @@ export default {
max_deliver: 10, max_deliver: 10,
filter_keywords: '', filter_keywords: '',
exclude_keywords: '', exclude_keywords: '',
deliver_start_time: '09:00',
deliver_end_time: '18:00',
deliver_workdays_only: 1,
auto_chat: 0, auto_chat: 0,
chat_interval: 30, chat_interval: 30,
is_chat_outsourcing: 0, is_chat_outsourcing: 0,
@@ -307,6 +322,12 @@ export default {
this.formData.exclude_keywords = Array.isArray(deliverConfig.exclude_keywords) this.formData.exclude_keywords = Array.isArray(deliverConfig.exclude_keywords)
? deliverConfig.exclude_keywords.join(',') ? deliverConfig.exclude_keywords.join(',')
: (deliverConfig.exclude_keywords || '') : (deliverConfig.exclude_keywords || '')
// 处理时间区间配置
if (deliverConfig.time_range) {
this.formData.deliver_start_time = deliverConfig.time_range.start_time || '09:00'
this.formData.deliver_end_time = deliverConfig.time_range.end_time || '18:00'
this.formData.deliver_workdays_only = deliverConfig.time_range.workdays_only !== undefined ? deliverConfig.time_range.workdays_only : 1
}
} }
// chat_strategy 配置 // chat_strategy 配置
@@ -449,6 +470,12 @@ export default {
deliverConfig.exclude_keywords = typeof saveData.exclude_keywords === 'string' && saveData.exclude_keywords.trim() deliverConfig.exclude_keywords = typeof saveData.exclude_keywords === 'string' && saveData.exclude_keywords.trim()
? saveData.exclude_keywords.split(',').map(k => k.trim()).filter(k => k) ? saveData.exclude_keywords.split(',').map(k => k.trim()).filter(k => k)
: [] : []
// 处理时间区间配置
deliverConfig.time_range = {
start_time: saveData.deliver_start_time || '09:00',
end_time: saveData.deliver_end_time || '18:00',
workdays_only: saveData.deliver_workdays_only ? 1 : 0
}
saveData.deliver_config = deliverConfig saveData.deliver_config = deliverConfig
delete saveData.deliver_interval delete saveData.deliver_interval
delete saveData.min_salary delete saveData.min_salary
@@ -457,6 +484,9 @@ export default {
delete saveData.max_deliver delete saveData.max_deliver
delete saveData.filter_keywords delete saveData.filter_keywords
delete saveData.exclude_keywords delete saveData.exclude_keywords
delete saveData.deliver_start_time
delete saveData.deliver_end_time
delete saveData.deliver_workdays_only
// 处理 chat_strategy // 处理 chat_strategy
const chatStrategy = {} const chatStrategy = {}

View File

@@ -1,6 +1,6 @@
{ {
"name": "frameapi", "name": "frameapi",
"version": "1.0.0", "version": "1.0.2",
"author": "light22600", "author": "light22600",
"description": "a node webApi", "description": "a node webApi",
"main": "app.js", "main": "app.js",