This commit is contained in:
张成
2025-12-24 23:17:22 +08:00
parent 6b7ce7c9aa
commit cde30bbd59
3 changed files with 9 additions and 6 deletions

View File

@@ -190,8 +190,8 @@
<div class="detail-item">
<span class="label">自动投递</span>
<span class="value">
<Tag :color="deliverConfig.auto_deliver === 1 ? 'success' : 'default'">
{{ deliverConfig.auto_deliver === 1 ? '开启' : '关闭' }}
<Tag :color="deliverConfig.auto_deliver ? 'success' : 'default'">
{{ deliverConfig.auto_deliver ? '开启' : '关闭' }}
</Tag>
</span>
</div>

View File

@@ -127,8 +127,8 @@
<Card title="自动投递配置" style="margin-bottom: 16px;">
<FormItem label="自动投递">
<RadioGroup v-model="formData.auto_deliver">
<Radio :label="1">开启</Radio>
<Radio :label="0">关闭</Radio>
<Radio :label="true">开启</Radio>
<Radio :label="false">关闭</Radio>
</RadioGroup>
</FormItem>
<FormItem label="投递间隔(分钟)">
@@ -260,7 +260,7 @@ export default {
job_type_id: null,
user_address: '',
is_salary_priority: '',
auto_deliver: 0,
auto_deliver: false,
deliver_interval: 30,
min_salary: 0,
max_salary: 0,
@@ -376,6 +376,8 @@ export default {
? JSON.parse(row.deliver_config)
: row.deliver_config
// 保存原有配置以便合并
this.formData.auto_deliver = deliverConfig.auto_deliver !== undefined ? deliverConfig.auto_deliver : false
this.formData.original_deliver_config = deliverConfig
this.formData.deliver_interval = deliverConfig.deliver_interval || 30
this.formData.min_salary = deliverConfig.min_salary || 0
@@ -437,7 +439,7 @@ export default {
job_type_id: null,
user_address: '',
is_salary_priority: '',
auto_deliver: 0,
auto_deliver: false,
deliver_interval: 30,
min_salary: 0,
max_salary: 0,