diff --git a/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/components/search-form.vue.vm b/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/components/search-form.vue.vm
index 37aa315..3a009db 100644
--- a/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/components/search-form.vue.vm
+++ b/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/components/search-form.vue.vm
@@ -40,49 +40,13 @@
/>
#elseif ($column.htmlType == "datetime" && $listOperationCondition == "BETWEEN")
- #set ($AttrName = $javaField.substring(0,1).toUpperCase() + ${javaField.substring(1)})
-
-
- ${comment}
-
-
-
-
- {{ formatDate(formData.${javaField}?.[0]) || '开始日期' }}
-
-
- -
-
-
- {{ formatDate(formData.${javaField}?.[1]) || '结束日期' }}
-
-
-
-
-
-
- 取消
-
-
- 确定
-
-
-
-
-
- 取消
-
-
- 确定
-
-
-
+
#elseif (($column.htmlType == "select" || $column.htmlType == "radio") && $dictType && "" != $dictType)
${comment}
-
+
全部
@@ -236,29 +200,6 @@ const placeholder = computed(() => {
return conditions.length > 0 ? conditions.join(' | ') : '搜索${table.classComment}'
})
-#if ($hasDateTimeBetween == 1)
-#foreach($column in $columns)
- #if ($column.listOperation && $column.htmlType == "datetime" && $column.listOperationCondition == "BETWEEN")
- #set ($javaField = $column.javaField)
- #set ($AttrName = $javaField.substring(0,1).toUpperCase() + ${javaField.substring(1)})
-const visible${AttrName} = ref<[boolean, boolean]>([false, false]) // ${column.columnComment}选择器状态
-const temp${AttrName} = ref<[number, number]>([Date.now(), Date.now()]) // ${column.columnComment}临时值
-
-/** 确认${column.columnComment}开始日期 */
-function handle${AttrName}0Confirm() {
- formData.${javaField} = [temp${AttrName}.value[0], formData.${javaField}?.[1]]
- visible${AttrName}.value[0] = false
-}
-
-/** 确认${column.columnComment}结束日期 */
-function handle${AttrName}1Confirm() {
- formData.${javaField} = [formData.${javaField}?.[0], temp${AttrName}.value[1]]
- visible${AttrName}.value[1] = false
-}
- #end
-#end
-#end
-
/** 搜索按钮操作 */
function handleSearch() {
visible.value = false
diff --git a/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/views/detail/index.vue.vm b/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/views/detail/index.vue.vm
index 5a02a8b..7d50f3f 100644
--- a/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/views/detail/index.vue.vm
+++ b/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/views/detail/index.vue.vm
@@ -64,7 +64,7 @@
import type { ${simpleClassName} } from '@/api/${table.moduleName}/${table.businessName}'
import { onUnload } from '@dcloudio/uni-app'
import { onMounted, ref } from 'vue'
-import { useToast } from 'wot-design-uni'
+import { useToast } from '@wot-ui/ui/components/wd-toast'
import { delete${simpleClassName}, get${simpleClassName} } from '@/api/${table.moduleName}/${table.businessName}'
import { useAccess } from '@/hooks/useAccess'
import { navigateBackPlus } from '@/utils'
diff --git a/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/views/form/index.vue.vm b/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/views/form/index.vue.vm
index e9cb06f..6f49f86 100644
--- a/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/views/form/index.vue.vm
+++ b/yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/views/form/index.vue.vm
@@ -9,7 +9,7 @@
-
+
#foreach($column in $columns)
#if (($column.createOperation || $column.updateOperation) && !$column.primaryKey)
@@ -25,10 +25,23 @@
#elseif ($javaType == "Boolean")
#set ($dictMethod = "getBoolDictOptions")
#end
- ## 优先判断是否有字典,有字典则使用 radio-group
- #if (($column.htmlType == "select" || $column.htmlType == "radio") && $dictType && "" != $dictType)
-
-
+ ## 下拉选择(字典)→ yd-form-picker,内部按 dictType 解析选项,适合选项较多
+ #if ($column.htmlType == "select" && $dictType && "" != $dictType)
+
+ ## 单选(字典)→ radio-group,适合选项较少
+ #elseif ($column.htmlType == "radio" && $dictType && "" != $dictType)
+
+
-
+
## 数字类型(无字典)
#elseif (${javaType.toLowerCase()} == "long" || ${javaType.toLowerCase()} == "integer" || ${javaType.toLowerCase()} == "short" || ${javaType.toLowerCase()} == "double" || ${javaType.toLowerCase()} == "bigdecimal" || ${javaType.toLowerCase()} == "byte")
-
+
-
+
## 布尔类型
#elseif (${javaType.toLowerCase()} == "boolean")
-
+
-
+
## 日期时间类型
#elseif (${javaType.toLowerCase()} == "date" || ${javaType.toLowerCase()} == "localdate" || ${javaType.toLowerCase()} == "localdatetime")
#set ($pickerType = "date")
#if (${javaType.toLowerCase()} == "localdatetime")
#set ($pickerType = "datetime")
#end
+
## 文本域
#elseif ($column.htmlType == "textarea")
-
+
+
+
+ ## 图片上传 → yd-upload-img(包 wd-form-item 才能注册到 wd-form 做校验/错误展示)
+ #elseif ($column.htmlType == "imageUpload")
+
+
+
+ ## 文件上传 → yd-upload-file
+ #elseif ($column.htmlType == "fileUpload")
+
+
+
## 默认:文本输入
#else
-
+
+
+
#end
#end
#end
@@ -107,7 +144,7 @@