台桌管理-台桌列表修复
修复状态不存在时页面报错导致白屏
This commit is contained in:
@@ -91,6 +91,7 @@ export default {
|
|||||||
try {
|
try {
|
||||||
let res = await tbShopTable({
|
let res = await tbShopTable({
|
||||||
...this.form,
|
...this.form,
|
||||||
|
qrcode:this.form.tableId,
|
||||||
shopId: localStorage.getItem('shopId')
|
shopId: localStorage.getItem('shopId')
|
||||||
}, this.form.id ? 'put' : 'post')
|
}, this.form.id ? 'put' : 'post')
|
||||||
this.$emit('success', res)
|
this.$emit('success', res)
|
||||||
|
|||||||
@@ -50,9 +50,9 @@
|
|||||||
<div class="state">
|
<div class="state">
|
||||||
<span
|
<span
|
||||||
class="dot"
|
class="dot"
|
||||||
:style="{ backgroundColor: status[item.status].type }"
|
:style="{ backgroundColor: status[item.status]?status[item.status].type:'' }"
|
||||||
></span>
|
></span>
|
||||||
{{ status[item.status].label }}
|
{{ status[item.status]?status[item.status].label:'' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Reference in New Issue
Block a user