[色子游戏]玩家钱包流水记录-优化样式

This commit is contained in:
2026-03-04 14:34:51 +08:00
parent 33e3603932
commit 00d964ad80
4 changed files with 46 additions and 3 deletions

View File

@@ -86,12 +86,19 @@
type: undefined,
username: undefined,
coin_min: undefined,
coin_max: undefined
coin_max: undefined,
create_time: undefined as [string, string] | undefined
})
// 搜索处理
// 搜索处理:将 create_time 区间转为 create_time_min / create_time_max
const handleSearch = (params: Record<string, any>) => {
Object.assign(searchParams, params)
const p = { ...params }
if (Array.isArray(p.create_time) && p.create_time.length === 2) {
p.create_time_min = p.create_time[0]
p.create_time_max = p.create_time[1]
}
delete p.create_time
Object.assign(searchParams, p)
getData()
}
@@ -139,6 +146,7 @@
{ prop: 'total_draw_count', label: '总抽奖次数' },
{ prop: 'paid_draw_count', label: '购买抽奖次数' },
{ prop: 'free_draw_count', label: '赠送抽奖次数' },
{ prop: 'create_time', label: '创建时间', width: 170 },
{ prop: 'operation', label: '操作', width: 100, fixed: 'right', useSlot: true }
]
}

View File

@@ -43,6 +43,19 @@
</div>
</el-form-item>
</el-col>
<el-col v-bind="setSpan(8)">
<el-form-item label="创建时间" prop="create_time">
<el-date-picker
v-model="formData.create_time"
type="datetimerange"
range-separator=""
start-placeholder="开始时间"
end-placeholder="结束时间"
value-format="YYYY-MM-DD HH:mm:ss"
style="width: 100%"
/>
</el-form-item>
</el-col>
</sa-search-bar>
</template>