|
|
@@ -5,6 +5,7 @@
|
|
|
<b-col class="content-header-left mb-2" cols="12" md="9">
|
|
|
<b-row class="breadcrumbs-top">
|
|
|
<b-col cols="12">
|
|
|
+ <h1>{{ activity_name }}</h1>
|
|
|
<h2 class="content-header-title float-left pr-1 mb-0">
|
|
|
{{ $route.meta.pageTitle }}
|
|
|
</h2>
|
|
|
@@ -89,6 +90,7 @@ import {
|
|
|
import Ripple from 'vue-ripple-directive'
|
|
|
import { useUtils as useI18nUtils } from '@core/libs/i18n'
|
|
|
import { getUserData } from '@/auth/utils'
|
|
|
+import useJwt from '@/auth/jwt/useJwt'
|
|
|
|
|
|
export default {
|
|
|
setup() {
|
|
|
@@ -106,6 +108,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
userData: getUserData(),
|
|
|
+ activity_name: "",
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
@@ -117,5 +120,26 @@ export default {
|
|
|
BDropdownItem,
|
|
|
BButton,
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.activityName(this.$route.params.activity_id)
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ activityName(activity_id) {
|
|
|
+ useJwt.postData('/api/activity/show', { activity_id: activity_id }).then(response => {
|
|
|
+ this.activity_name = response.data.activity_name;
|
|
|
+ }).catch(error => {
|
|
|
+ console.log("error: " + error);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ '$route.params.activity_id': function (newValue) {
|
|
|
+ this.activityName(newValue)
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|