style: 💄 方法命名、样式风格优化
This commit is contained in:
@@ -17,9 +17,11 @@
|
|||||||
allow-same-day
|
allow-same-day
|
||||||
@confirm="handleConfirm"
|
@confirm="handleConfirm"
|
||||||
/>
|
/>
|
||||||
<view class="flex flex-row items-center mb-20rpx">
|
<view class="flex-between mb-20rpx">
|
||||||
<wd-button class="mt-20rpx mb-20rpx" size="medium" @click="search()">查询</wd-button>
|
<wd-button class="mt-20rpx mb-20rpx" size="medium" @click="handleSearch">
|
||||||
<wd-button size="medium" type="info" @click="reset">重置</wd-button>
|
查询
|
||||||
|
</wd-button>
|
||||||
|
<wd-button size="medium" type="info" @click="handleReset">重置</wd-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</wd-drop-menu-item>
|
</wd-drop-menu-item>
|
||||||
@@ -90,7 +92,7 @@ function handleConfirm({ value }: Ref<number[]>) {
|
|||||||
* 搜索栏
|
* 搜索栏
|
||||||
*/
|
*/
|
||||||
const dropMenu = ref<DropMenuItemExpose>();
|
const dropMenu = ref<DropMenuItemExpose>();
|
||||||
function search() {
|
function handleSearch() {
|
||||||
pageData.value = [];
|
pageData.value = [];
|
||||||
dropMenu.value?.close();
|
dropMenu.value?.close();
|
||||||
handleQuery();
|
handleQuery();
|
||||||
@@ -99,7 +101,7 @@ function search() {
|
|||||||
/**
|
/**
|
||||||
* 重置搜索条件
|
* 重置搜索条件
|
||||||
*/
|
*/
|
||||||
function reset() {
|
function handleReset() {
|
||||||
queryParams.pageNum = 1;
|
queryParams.pageNum = 1;
|
||||||
queryParams.keywords = "";
|
queryParams.keywords = "";
|
||||||
queryParams.createTime = ["", ""];
|
queryParams.createTime = ["", ""];
|
||||||
|
|||||||
Reference in New Issue
Block a user