diff --git a/src/views/commodity/hot_list/index.vue b/src/views/commodity/hot_list/index.vue index 8c267b7..6468a5e 100644 --- a/src/views/commodity/hot_list/index.vue +++ b/src/views/commodity/hot_list/index.vue @@ -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 } } diff --git a/src/views/finance/suyuan.vue b/src/views/finance/suyuan.vue index 80ef984..bbb339f 100644 --- a/src/views/finance/suyuan.vue +++ b/src/views/finance/suyuan.vue @@ -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 || '', })