diff --git a/pages/workingtimes/index.vue b/pages/workingtimes/index.vue index 5ecf5d4..eb5aa6e 100644 --- a/pages/workingtimes/index.vue +++ b/pages/workingtimes/index.vue @@ -53,7 +53,12 @@ const filteredRows = computed(() => { times = [] }*/ - return times + return times/*.map(i => { + return { + ...i, + disabledExpand: i.approved + } + })*/ }) @@ -171,6 +176,17 @@ const getDuration = (time) => { } } +const updateWorkingTime = async (data) => { + await dataStore.updateItem('workingtimes',data) + await setupPage() +} + + +const expand = ref({ + openedRows: [], + row: {} +}) +