fix(packages): 修复时间筛选未重置问题,调整search.vue.vm模板文件

This commit is contained in:
AN
2026-05-08 18:12:26 +08:00
parent 3198ea4cd3
commit e0c3062302
7 changed files with 59 additions and 55 deletions
+13
View File
@@ -26,6 +26,19 @@ const model = defineModel<Api.$ModuleName.${BusinessName}SearchParams>('model',
const defaultModel = jsonClone(toRaw(model.value));
#foreach ($column in $columns)
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
function onDateRange${AttrName}Update(value: [string, string] | null) {
model.value.params = {
...model.value.params,
begin${AttrName}: value?.[0],
end${AttrName}: value?.[1]
};
}
#end
#end
function resetModel() {
#foreach ($column in $columns)
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN")