fix: bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m9s

This commit is contained in:
sexygoat
2026-04-23 14:59:05 +08:00
parent a9467e8a0c
commit a5e76313cb
28 changed files with 1284 additions and 702 deletions

View File

@@ -6,6 +6,7 @@
v-model:filter="searchForm"
:items="searchFormItems"
:show-expand="false"
label-width="100"
@reset="handleReset"
@search="handleSearch"
></ArtSearchBar>
@@ -214,6 +215,7 @@
const initialSearchState: AgentRechargeQueryParams = {
shop_id: undefined,
status: undefined,
dateRange: [],
start_date: '',
end_date: ''
}
@@ -288,11 +290,12 @@
}
},
{
label: '创建时间',
label: '开始至结束',
prop: 'dateRange',
type: 'daterange',
type: 'date',
config: {
clearable: true,
type: 'daterange',
rangeSeparator: '至',
startPlaceholder: '开始日期',
endPlaceholder: '结束日期',
valueFormat: 'YYYY-MM-DD'
@@ -414,7 +417,7 @@
style: 'color: var(--el-color-primary); cursor: pointer; text-decoration: underline;',
onClick: (e: MouseEvent) => {
e.stopPropagation()
handleViewDetail(row)
handleNameClick(row)
}
},
row.recharge_no
@@ -733,6 +736,15 @@
})
}
// 处理名称点击
const handleNameClick = (row: AgentRecharge) => {
if (hasAuth('agent_recharge:detail_page')) {
handleViewDetail(row)
} else {
ElMessage.warning('您没有查看详情的权限')
}
}
// 查看详情
const handleViewDetail = (row: AgentRecharge) => {
router.push({