-
+
+
Hier kannst du dich zum Bardienst eintragen.
-
-
-
- Eintragen
-
-
-
-
-
- {{ jobkinddateitem.job_kind.name }}
-
-
-
-
+
+
+
+
+
+ Eintragen
+
+
+
+
+
+ {{ jobkinddateitem.job_kind.name }}
+
+
+
+
+
+
+
+
+
+ Einladen
+ Abgeben
@@ -188,7 +193,6 @@ export default {
setTimeout(() => {
this.update += 1
}, 200)
- console.log('after adding Job', this.day.jobkinddate)
},
userInWorker() {
var jobkinddate = this.day.jobkinddate.find(item => {
@@ -196,7 +200,6 @@ export default {
return workeritem.id === this.activeUser.id
})
})
- console.log('userin', !!jobkinddate, !jobkinddate)
return !!jobkinddate
}
},
@@ -227,6 +230,16 @@ export default {
})
return test
},
+ jobkindWithSpace() {
+ var retVal = this.day.jobkinddate.filter(item => {
+ if (item.maxpersons <= item.worker.length)
+ return false
+ else
+ return true
+ })
+ return retVal
+ }
+ ,
filterAddJob() {
var retVal = this.day.jobkinddate.filter(item => {
if (item.maxpersons <= item.worker.length) {
@@ -242,7 +255,6 @@ export default {
}
}
})
- console.log('filterAddJob', retVal, retVal.length > 0, this.user.workgroups)
return retVal
}
}
diff --git a/src/components/user/UserNavigation.vue b/src/components/user/UserNavigation.vue
index a9aa1b0..2ea94ca 100644
--- a/src/components/user/UserNavigation.vue
+++ b/src/components/user/UserNavigation.vue
@@ -14,7 +14,7 @@
Finanzübersicht
-
+
{{ briefcase }}
diff --git a/src/components/vorstand/ManagementNavigation.vue b/src/components/vorstand/ManagementNavigation.vue
index 46ffe61..026e900 100644
--- a/src/components/vorstand/ManagementNavigation.vue
+++ b/src/components/vorstand/ManagementNavigation.vue
@@ -1,7 +1,6 @@
-
-
+
{{ work }}
diff --git a/src/components/vorstand/ServiceManagement.vue b/src/components/vorstand/ServiceManagement.vue
index f49de24..cd28cf6 100644
--- a/src/components/vorstand/ServiceManagement.vue
+++ b/src/components/vorstand/ServiceManagement.vue
@@ -4,7 +4,7 @@
Dienstverwaltung
-
+
{{ keyboard_arrow_left }}
@@ -13,7 +13,7 @@
{{ date.getFullYear() }}
-
+
{{ keyboard_arrow_right }}
@@ -57,7 +57,7 @@ export default {
keyboard_arrow_left: mdiChevronLeft,
keyboard_arrow_right: mdiChevronRight,
id: 0,
- date: new Date(),
+ date: new Date(this.$route.params.year, this.$route.params.month -1, 1),
monthArray: [
'Januar',
'Februar',
@@ -75,17 +75,6 @@ export default {
}
},
created() {
- for (let intDate = 1; intDate < 7; intDate++) {
- if (
- new Date(
- this.date.getFullYear(),
- this.date.getMonth(),
- intDate
- ).getDay() === 3
- )
- if (this.date.getDate() < intDate)
- this.date = new Date(this.date.getFullYear(), this.date.getMonth(), 0)
- }
this.getAllJobKinds()
this.createMonth(this.date)
this.getAllUsers()
@@ -152,6 +141,27 @@ export default {
startDate: 'sm/getStartDate',
endDate: 'sm/getEndDate'
})
+ },
+ watch: {
+ $route() {
+ this.date = new Date(this.$route.params.year, this.$route.params.month - 1, 1)
+ this.getAllJobKinds()
+ this.createMonth(this.date)
+ this.getAllUsers()
+ this.getDBUsers()
+ this.getUsers({
+ from_date: {
+ year: this.startDate.getFullYear(),
+ month: this.startDate.getMonth() + 1,
+ day: this.startDate.getDate()
+ },
+ to_date: {
+ year: this.endDate.getFullYear(),
+ month: this.endDate.getMonth() + 1,
+ day: this.endDate.getDate()
+ }
+ })
+ }
}
}
diff --git a/src/plugins/routes.js b/src/plugins/routes.js
index a746b8a..f78b094 100644
--- a/src/plugins/routes.js
+++ b/src/plugins/routes.js
@@ -1,7 +1,7 @@
//const main = 'https://192.168.5.128:5000/'
//const main = 'http://localhost:5000/'
-const main = 'http://192.168.5.118:5000/'
-//const main = 'https://groeger-clan.duckdns.org:5000/'
+//const main = 'http://192.168.5.118:5000/'
+const main = 'https://groeger-clan.duckdns.org:5000/'
const url = {
login: main + 'login',
diff --git a/src/router/index.js b/src/router/index.js
index c7a8f16..8f12010 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -54,7 +54,8 @@ const routes = [
components: { nav: ManagementNavigation, default: BarView },
children: [
{
- path: 'servicemanagement',
+ name: 'serviceManagement',
+ path: 'servicemanagement/:year/:month',
component: ServiceManagement
},
{
@@ -92,7 +93,7 @@ const routes = [
component: Config
},
{
- path: 'jobs',
+ path: 'jobs/:year/:month',
name: 'userJobs',
component: Jobs
},