Merge branch 'test'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-12 01:43:11 +08:00
3 changed files with 28 additions and 23 deletions

View File

@@ -290,7 +290,7 @@ const columns = ref([
},
},
{
title: '积分',
title: '余额',
align: 'center',
key: 'integral',
},

View File

@@ -654,28 +654,33 @@ const clear = () => {
}
const veeify = async () => {
let data = {}
if (nowKey.value === 1 || nowKey.value === 2) {
data = {
gid: [nowRow.value.gid],
status: nowKey.value,
notes: notesVal.value,
}
await api.getHotStatus(data)
await getList()
clear()
} else {
formRef.value?.validate(async (errors) => {
if (!errors) {
data = {
...nowRow.value,
gid: [nowRow.value.gid],
}
await api.getHotStatus(data)
await getList()
clear()
try {
let data = {}
if (nowKey.value === 1 || nowKey.value === 2) {
data = {
gid: [nowRow.value.gid],
status: nowKey.value,
notes: notesVal.value,
}
})
await api.getHotStatus(data)
await getList()
// clear()
} else {
formRef.value?.validate(async (errors) => {
if (!errors) {
data = {
...nowRow.value,
gid: [nowRow.value.gid],
}
await api.getHotStatus(data)
await getList()
// clear()
}
})
}
} finally {
isNoteModel.value = false
isDzModel.value = false
}
}

View File

@@ -157,7 +157,7 @@ const columns = ref([
align: 'center',
slot: 'game_name',
render: (row) => {
const res = gamelist.value.find((item) => item.value === row.hall_id)
const res = gamelist.value.find((item) => item.value === Number(row.hall_id))
return h('span', null, {
default: () => res?.label || '',
})