fix: 查询任务时间后,时间的select还保持之前的数据
This commit is contained in:
parent
ed16bd76a8
commit
8e0e78df23
|
@ -38,13 +38,17 @@ def get_start_datetime_options_by_job_id(job_id):
|
||||||
|
|
||||||
|
|
||||||
@app.callback(
|
@app.callback(
|
||||||
Output('task-log-start-datetime-select', 'options'),
|
[
|
||||||
|
Output('task-log-start-datetime-select', 'options'),
|
||||||
|
Output('task-log-start-datetime-select', 'value'),
|
||||||
|
],
|
||||||
Input('task-log-get-start-datetime-btn', 'nClicks'),
|
Input('task-log-get-start-datetime-btn', 'nClicks'),
|
||||||
State('task-log-job-id-select', 'value'),
|
State('task-log-job-id-select', 'value'),
|
||||||
prevent_initial_call=True,
|
prevent_initial_call=True,
|
||||||
)
|
)
|
||||||
def get_run_times(nClicks, job_id):
|
def get_run_times(nClicks, job_id):
|
||||||
return get_start_datetime_options_by_job_id(job_id)
|
all_time_of_job = get_start_datetime_options_by_job_id(job_id)
|
||||||
|
return all_time_of_job, all_time_of_job[0]['value']
|
||||||
|
|
||||||
|
|
||||||
# app.clientside_callback(
|
# app.clientside_callback(
|
||||||
|
|
Loading…
Reference in New Issue