fix(custom): \!
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-12 01:40:25 +08:00
parent 7d379fa03c
commit 82211679f9
2 changed files with 27 additions and 22 deletions

View File

@@ -654,28 +654,33 @@ const clear = () => {
} }
const veeify = async () => { const veeify = async () => {
let data = {} try {
if (nowKey.value === 1 || nowKey.value === 2) { let data = {}
data = { if (nowKey.value === 1 || nowKey.value === 2) {
gid: [nowRow.value.gid], data = {
status: nowKey.value, gid: [nowRow.value.gid],
notes: notesVal.value, 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()
} }
}) 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', align: 'center',
slot: 'game_name', slot: 'game_name',
render: (row) => { 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, { return h('span', null, {
default: () => res?.label || '', default: () => res?.label || '',
}) })