تغییرات
This commit is contained in:
parent
1c9ea2ed11
commit
cc55ac6684
|
@ -856,10 +856,24 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
TaskForm: () => import("@task/components/TaskForm"),
|
TaskForm: defineAsyncComponent(() =>
|
||||||
HoursForm: () => import("@task/components/HoursForm"),
|
import("@task/components/TaskForm")
|
||||||
|
),
|
||||||
|
HoursForm: defineAsyncComponent(() =>
|
||||||
|
import("@task/components/HoursForm")
|
||||||
|
),
|
||||||
|
Multiselect: defineAsyncComponent(() =>
|
||||||
|
import("vue-multiselect")
|
||||||
|
),
|
||||||
|
|
||||||
Multiselect: () => import("vue-multiselect"),
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// TaskForm: () => import("@task/components/TaskForm"),
|
||||||
|
// HoursForm: () => import("@task/components/HoursForm"),
|
||||||
|
|
||||||
|
// Multiselect: () => import("vue-multiselect"),
|
||||||
// datePicker: VuePersianDatetimePicker,
|
// datePicker: VuePersianDatetimePicker,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -192,10 +192,11 @@ export default {
|
||||||
beforeMount() {
|
beforeMount() {
|
||||||
// this.httpService = new HttpService(this.taskMicroServiceName);
|
// this.httpService = new HttpService(this.taskMicroServiceName);
|
||||||
this.httpService = useNuxtApp()["$http"];
|
this.httpService = useNuxtApp()["$http"];
|
||||||
|
const { $eventBus } = useNuxtApp();
|
||||||
|
|
||||||
this.activeUserId = this.currentUser.user_id;
|
this.activeUserId = this.currentUser.user_id;
|
||||||
// event fired from MainSection.vue.
|
// event fired from MainSection.vue.
|
||||||
this.$root.$on("request-based-on-new-user-data", (userId) => {
|
$eventBus.on("request-based-on-new-user-data", (userId) => {
|
||||||
this.activeUserId = userId;
|
this.activeUserId = userId;
|
||||||
this.getWorkingHoursInformation();
|
this.getWorkingHoursInformation();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user