台桌管理-台桌列表修复

修复状态不存在时页面报错导致白屏
This commit is contained in:
YeMingfei666 2024-08-29 09:24:27 +08:00
parent 9aaeb7f0d6
commit c887f48035
2 changed files with 5 additions and 4 deletions

View File

@ -55,8 +55,8 @@ export default {
{value:'idle',name:'空闲'},
{value:'subscribe',name:'预定'},
{value:'closed',name:'关台'},
{value:'opening ',name:'开台中'},
{value:'cleaning ',name:'台桌清理中'},
{value:'opening',name:'开台中'},
{value:'cleaning',name:'台桌清理中'},
],
form: {
id: '',
@ -91,6 +91,7 @@ export default {
try {
let res = await tbShopTable({
...this.form,
qrcode:this.form.tableId,
shopId: localStorage.getItem('shopId')
}, this.form.id ? 'put' : 'post')
this.$emit('success', res)

View File

@ -50,9 +50,9 @@
<div class="state">
<span
class="dot"
:style="{ backgroundColor: status[item.status].type }"
:style="{ backgroundColor: status[item.status]?status[item.status].type:'' }"
></span>
{{ status[item.status].label }}
{{ status[item.status]?status[item.status].label:'' }}
</div>
</div>
<div class="row">