强化前端格式检测

This commit is contained in:
yml2213
2026-06-08 06:46:47 +08:00
parent 500f511185
commit 04f42e5a96
23 changed files with 17 additions and 64 deletions
@@ -66,7 +66,7 @@ async function loadAnnouncements() {
})
announcements.value = result.items
total.value = result.total
} catch (err) {
} catch {
ElMessage.error('加载公告列表失败')
} finally {
loading.value = false
@@ -96,7 +96,7 @@ async function handleSave(data: CreateAnnouncementRequest | UpdateAnnouncementRe
}
dialogVisible.value = false
loadAnnouncements()
} catch (err) {
} catch {
ElMessage.error('保存失败')
}
}
@@ -161,11 +161,6 @@ async function handlePageChange() {
await loadAnnouncements()
}
async function handleSizeChange() {
currentPage.value = 1
await loadAnnouncements()
}
function getCategoryLabel(category: string) {
return categories.find(c => c.value === category)?.label || category
}
@@ -54,11 +54,6 @@ async function handlePageChange() {
await loadLogs()
}
async function handleSizeChange() {
currentPage.value = 1
await loadLogs()
}
function actorName(row: AdminAuditLog) {
return row.actor_nickname || row.actor_username || `${row.actor_type} ${row.actor_id}`
}
@@ -47,7 +47,7 @@ const activeMembers = computed(() => {
const participants = active.value?.participants || []
return participants
.map(item => {
const remark = getParticipantRemark(item)
const remark = getParticipantRemark()
const name = remark ? `${remark}(${item.display_name})` : item.display_name
return `${roleLabel(item.role)}${name}`
})
@@ -58,7 +58,7 @@ const canSend = computed(() => content.value.trim() !== '' || attachments.value.
// 桌面通知
const desktopNotification = useDesktopNotification('admin')
function getParticipantRemark(participant: any) {
function getParticipantRemark() {
if (!active.value) return ''
const myParticipant = active.value.participants?.find(
p => p.participant_type === 'admin' && p.participant_id === currentAdminId
@@ -37,11 +37,6 @@ async function handlePageChange() {
await loadDisputes()
}
async function handleSizeChange() {
currentPage.value = 1
await loadDisputes()
}
function openArbitration(row: Dispute) {
activeDispute.value = row
result.value = row.arbitration_result || 'release_deposit'
@@ -31,7 +31,6 @@ const {
currentPage,
currentPageSize,
load: loadAdmins,
handleSizeChange,
} = useAdminPaginatedTable<AdminMgrUser>({
fetchFn: fetchAdminMgrUsers,
})
@@ -24,7 +24,6 @@ const {
currentPage,
currentPageSize,
load: loadUsers,
handleSizeChange,
} = useAdminPaginatedTable<AdminUserItem>({
fetchFn: fetchAdminUsers,
})
@@ -63,11 +63,6 @@ async function handlePageChange() {
await loadLedger()
}
async function handleSizeChange() {
currentPage.value = 1
await loadLedger()
}
function money(value: number) {
return `¥${Math.round(Number(value || 0))}`
}