},
searchHeader(){
+ this.$refs.spinner.show()
this.$apollo.queries.todo_header.refetch()
.then(() => {
this.$refs.selectPanel.show()
}).catch((error) => {
- this.$refs.snackBar.setMessageAndshow('add error!')
+ this.$refs.snackBar.setMessageAndshow('db error?')
console.error(error)
+ }).finally(() => {
+ this.$refs.spinner.close()
})
},
header_id
}
}`
+ this.$refs.spinner.show()
this.$apollo.mutate({
mutation: UPDATE_DONE,
variables: {
.catch((error) => {
this.$refs.snackBar.setMessageAndshow('update error!')
console.error(error)
+ }).finally(() => {
+ this.$refs.spinner.close()
})
},
onDelete(data){
id
}
}`
-
+ this.$refs.spinner.show()
this.mutateApollo(DELETE_TODO, {
header_id: data.header_id
, id: data.id
}).catch((error) => {
this.$refs.snackBar.setMessageAndshow('delete error!')
console.error(error)
- });
+ }).finally(() => {
+ this.$refs.spinner.close()
+ })
},
onAdd(){
const now = this.getNowFormatted()
}
}`
+ this.$refs.spinner.show()
this.$apollo.queries.todo_list_aggregate.refetch({
selectedHeadrId: this.selectedHeadrId
}).then(() => {
}).catch((error) => {
this.$refs.snackBar.setMessageAndshow('add error!')
console.error(error)
+ }).finally(() => {
+ this.$refs.spinner.close()
})
},
loading(){