From 24681c81c09022f584a57006f2534b5f74723414 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 30 六月 2026 09:27:31 +0800
Subject: [PATCH] 初始化项目
---
yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/components/search-form.vue.vm | 72 +++---------------------------------
1 files changed, 6 insertions(+), 66 deletions(-)
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 4008706..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 @@
/>
</view>
#elseif ($column.htmlType == "datetime" && $listOperationCondition == "BETWEEN")
- #set ($AttrName = $javaField.substring(0,1).toUpperCase() + ${javaField.substring(1)})
- <view class="yd-search-form-item">
- <view class="yd-search-form-label">
- ${comment}
- </view>
- <view class="yd-search-form-date-range-container">
- <view @click="visible${AttrName}[0] = true">
- <view class="yd-search-form-date-range-picker">
- {{ formatDate(formData.${javaField}?.[0]) || '寮�濮嬫棩鏈�' }}
- </view>
- </view>
- -
- <view @click="visible${AttrName}[1] = true">
- <view class="yd-search-form-date-range-picker">
- {{ formatDate(formData.${javaField}?.[1]) || '缁撴潫鏃ユ湡' }}
- </view>
- </view>
- </view>
- <wd-datetime-picker-view v-if="visible${AttrName}[0]" v-model="temp${AttrName}[0]" type="date" />
- <view v-if="visible${AttrName}[0]" class="yd-search-form-date-range-actions">
- <wd-button size="small" plain @click="visible${AttrName}[0] = false">
- 鍙栨秷
- </wd-button>
- <wd-button size="small" type="primary" @click="handle${AttrName}0Confirm">
- 纭畾
- </wd-button>
- </view>
- <wd-datetime-picker-view v-if="visible${AttrName}[1]" v-model="temp${AttrName}[1]" type="date" />
- <view v-if="visible${AttrName}[1]" class="yd-search-form-date-range-actions">
- <wd-button size="small" plain @click="visible${AttrName}[1] = false">
- 鍙栨秷
- </wd-button>
- <wd-button size="small" type="primary" @click="handle${AttrName}1Confirm">
- 纭畾
- </wd-button>
- </view>
- </view>
+ <yd-search-date-range v-model="formData.${javaField}" label="${comment}" />
#elseif (($column.htmlType == "select" || $column.htmlType == "radio") && $dictType && "" != $dictType)
<view class="yd-search-form-item">
<view class="yd-search-form-label">
${comment}
</view>
- <wd-radio-group v-model="formData.${javaField}" shape="button">
+ <wd-radio-group v-model="formData.${javaField}" type="button">
<wd-radio :value="-1">
鍏ㄩ儴
</wd-radio>
@@ -177,7 +141,7 @@
reset: []
}>()
-const visible = ref(false)
+const visible = ref(false) // 鎼滅储寮圭獥鏄剧ず鐘舵��
const formData = reactive({
#foreach($column in $columns)
#if ($column.listOperation)
@@ -201,7 +165,7 @@
#end
#end
#end
-})
+}) // 鎼滅储琛ㄥ崟鏁版嵁
/** 鎼滅储鏉′欢 placeholder 鎷兼帴 */
const placeholder = computed(() => {
@@ -236,31 +200,7 @@
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])
-const temp${AttrName} = ref<[number, number]>([Date.now(), Date.now()])
-
-/** ${column.columnComment}[0]纭 */
-function handle${AttrName}0Confirm() {
- formData.${javaField} = [temp${AttrName}.value[0], formData.${javaField}?.[1]]
- visible${AttrName}.value[0] = false
-}
-
-/** ${column.columnComment}[1]纭 */
-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
emit('search', {
@@ -277,7 +217,7 @@
})
}
-/** 閲嶇疆 */
+/** 閲嶇疆鎸夐挳鎿嶄綔 */
function handleReset() {
#foreach($column in $columns)
#if ($column.listOperation)
--
Gitblit v1.9.3