fix: 修复代码生成模板时间查询问题 #28
This commit is contained in:
@@ -426,8 +426,8 @@ export default {
|
||||
{% if column.html_type == "datetime" and column.query_type == "BETWEEN" %}
|
||||
{% set AttrName = column.python_field[0] | upper + column.python_field[1:] %}
|
||||
if (null != this.daterange{{ AttrName }} && '' != this.daterange{{ AttrName }}) {
|
||||
this.queryParams.params["begin{{ AttrName }}"] = this.daterange{{ AttrName }}[0];
|
||||
this.queryParams.params["end{{ AttrName }}"] = this.daterange{{ AttrName }}[1];
|
||||
this.queryParams.begin{{ AttrName }} = this.daterange{{ AttrName }}[0];
|
||||
this.queryParams.end{{ AttrName }} = this.daterange{{ AttrName }}[1];
|
||||
}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user