时间控件
时间控件传参时,若无特殊设置,传输的结果是时间串(数字),需要修改为年月日等指定的时间格式。
【日期框格式化】
"format":"YYYY-MM-DD"
【时间范围控件对应接口用到的数据拆分sql】
{% set time_list = range|str_split(",") %}
select * from `演示数据`
where 1=1
{% if range %} and `销售日期`>='{{time_list[0]}}' and `销售日期`<= '{{time_list[1]}}' {% endif %}
【时间控件修改默认时间】
问题没有解决?请留言提问