1
This commit is contained in:
@@ -190,8 +190,8 @@
|
|||||||
<div class="detail-item">
|
<div class="detail-item">
|
||||||
<span class="label">自动投递:</span>
|
<span class="label">自动投递:</span>
|
||||||
<span class="value">
|
<span class="value">
|
||||||
<Tag :color="deliverConfig.auto_deliver === 1 ? 'success' : 'default'">
|
<Tag :color="deliverConfig.auto_deliver ? 'success' : 'default'">
|
||||||
{{ deliverConfig.auto_deliver === 1 ? '开启' : '关闭' }}
|
{{ deliverConfig.auto_deliver ? '开启' : '关闭' }}
|
||||||
</Tag>
|
</Tag>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -127,8 +127,8 @@
|
|||||||
<Card title="自动投递配置" style="margin-bottom: 16px;">
|
<Card title="自动投递配置" style="margin-bottom: 16px;">
|
||||||
<FormItem label="自动投递">
|
<FormItem label="自动投递">
|
||||||
<RadioGroup v-model="formData.auto_deliver">
|
<RadioGroup v-model="formData.auto_deliver">
|
||||||
<Radio :label="1">开启</Radio>
|
<Radio :label="true">开启</Radio>
|
||||||
<Radio :label="0">关闭</Radio>
|
<Radio :label="false">关闭</Radio>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="投递间隔(分钟)">
|
<FormItem label="投递间隔(分钟)">
|
||||||
@@ -260,7 +260,7 @@ export default {
|
|||||||
job_type_id: null,
|
job_type_id: null,
|
||||||
user_address: '',
|
user_address: '',
|
||||||
is_salary_priority: '',
|
is_salary_priority: '',
|
||||||
auto_deliver: 0,
|
auto_deliver: false,
|
||||||
deliver_interval: 30,
|
deliver_interval: 30,
|
||||||
min_salary: 0,
|
min_salary: 0,
|
||||||
max_salary: 0,
|
max_salary: 0,
|
||||||
@@ -376,6 +376,8 @@ export default {
|
|||||||
? JSON.parse(row.deliver_config)
|
? JSON.parse(row.deliver_config)
|
||||||
: 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.original_deliver_config = deliverConfig
|
||||||
this.formData.deliver_interval = deliverConfig.deliver_interval || 30
|
this.formData.deliver_interval = deliverConfig.deliver_interval || 30
|
||||||
this.formData.min_salary = deliverConfig.min_salary || 0
|
this.formData.min_salary = deliverConfig.min_salary || 0
|
||||||
@@ -437,7 +439,7 @@ export default {
|
|||||||
job_type_id: null,
|
job_type_id: null,
|
||||||
user_address: '',
|
user_address: '',
|
||||||
is_salary_priority: '',
|
is_salary_priority: '',
|
||||||
auto_deliver: 0,
|
auto_deliver: false,
|
||||||
deliver_interval: 30,
|
deliver_interval: 30,
|
||||||
min_salary: 0,
|
min_salary: 0,
|
||||||
max_salary: 0,
|
max_salary: 0,
|
||||||
|
|||||||
@@ -447,6 +447,7 @@ module.exports = {
|
|||||||
|
|
||||||
console.log('[保存投递配置成功]', {
|
console.log('[保存投递配置成功]', {
|
||||||
sn_code,
|
sn_code,
|
||||||
|
deliver_config:new_deliver_config,
|
||||||
auto_deliver: auto_deliver_value,
|
auto_deliver: auto_deliver_value,
|
||||||
timestamp: new Date().toISOString()
|
timestamp: new Date().toISOString()
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user