更新台桌模块
This commit is contained in:
@@ -128,9 +128,12 @@
|
|||||||
|
|
||||||
|
|
||||||
function diancan() {
|
function diancan() {
|
||||||
|
const useType=props.status=='using'?props.data.useType:undefined
|
||||||
go.to('PAGES_CREATE_ORDER', {
|
go.to('PAGES_CREATE_ORDER', {
|
||||||
tableId: props.data.tableId,
|
tableId: props.data.tableId,
|
||||||
name: props.data.name
|
name: props.data.name,
|
||||||
|
maxCapacity: props.data.maxCapacity,
|
||||||
|
status: props.data.status,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,7 @@
|
|||||||
ref,
|
ref,
|
||||||
reactive,
|
reactive,
|
||||||
computed,
|
computed,
|
||||||
|
onBeforeUnmount,
|
||||||
watch
|
watch
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
const refMoreSheet = ref(null)
|
const refMoreSheet = ref(null)
|
||||||
@@ -376,7 +377,12 @@
|
|||||||
watch(() => times.active, (newval) => {
|
watch(() => times.active, (newval) => {
|
||||||
setTimer()
|
setTimer()
|
||||||
})
|
})
|
||||||
|
onBeforeUnmount(()=>{
|
||||||
|
console.log('table page onBeforeUnmount');
|
||||||
|
clearInterval(timer)
|
||||||
|
})
|
||||||
onHide(() => {
|
onHide(() => {
|
||||||
|
console.log('table page hide');
|
||||||
clearInterval(timer)
|
clearInterval(timer)
|
||||||
})
|
})
|
||||||
onShow(opt => {
|
onShow(opt => {
|
||||||
|
|||||||
Reference in New Issue
Block a user