update: 分屏展示优化

This commit is contained in:
JiangQiming 2023-03-04 10:49:33 +08:00
parent 5790ea6064
commit 94bef052bc
1 changed files with 6 additions and 2 deletions

View File

@ -61,7 +61,10 @@
保存 保存
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-empty v-if="!historyList.length" /> <a-empty
v-if="!historyList.length"
description="暂无数据"
/>
<a-menu-item <a-menu-item
v-for="(item, index) in historyList" v-for="(item, index) in historyList"
:key="`his${index}`" :key="`his${index}`"
@ -301,7 +304,7 @@ const saveHistory = async () => {
const param = { const param = {
name: formData.value.name, name: formData.value.name,
content: JSON.stringify({ content: JSON.stringify({
screen: screen, screen: screen.value,
players: players.value.map((item: any) => ({ players: players.value.map((item: any) => ({
deviceId: item.id, deviceId: item.id,
channelId: item.channelId, channelId: item.channelId,
@ -315,6 +318,7 @@ const saveHistory = async () => {
visible.value = false; visible.value = false;
getHistory(); getHistory();
message.success('保存成功'); message.success('保存成功');
formRef.value.resetFields();
} else { } else {
message.error('保存失败'); message.error('保存失败');
} }