تغیرات اولیه
This commit is contained in:
parent
0e61ff5f8d
commit
ad470940f4
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"workbench.colorCustomizations": {
|
|
||||||
"activityBar.background": "#452236",
|
|
||||||
"titleBar.activeBackground": "#61304C",
|
|
||||||
"titleBar.activeForeground": "#FCF9FB"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
<template>
|
|
||||||
<router-view :key="$route.fullPath"></router-view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { mapActions } from "vuex";
|
|
||||||
import { clearBodyClass } from "@utilities/utilities";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
userLastStateIsLoaded: true,
|
|
||||||
modalComponentName: "",
|
|
||||||
actionMode: 1,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
...mapActions(["setBodyClass", "getState"]),
|
|
||||||
},
|
|
||||||
|
|
||||||
beforeCreate() {
|
|
||||||
ApiService.init(process.env.VUE_APP_LIST_BASE_URL);
|
|
||||||
},
|
|
||||||
beforeMount() {
|
|
||||||
clearBodyClass();
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.setBodyClass(process.env.VUE_APP_TASK_SYSTEM);
|
|
||||||
document.title = process.env.VUE_APP_CHAT_PAGE_TITLE;
|
|
||||||
},
|
|
||||||
destroyed() {
|
|
||||||
clearBodyClass();
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
@import "../../assets/task/scss/task";
|
|
||||||
</style>
|
|
|
@ -1,12 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<section>
|
<section>
|
||||||
<Navbar class="task-navbar"> </Navbar>
|
<Navbar class="task-navbar"> </Navbar>
|
||||||
<the-sidebar2
|
|
||||||
:showUserAvatar="true"
|
|
||||||
:menu="menu"
|
|
||||||
@statusPage="statusPage"
|
|
||||||
></the-sidebar2>
|
|
||||||
|
|
||||||
<main
|
<main
|
||||||
class="task-dashboard main-page__content"
|
class="task-dashboard main-page__content"
|
||||||
:class="{ expanded: !isSidebarCollapsed }"
|
:class="{ expanded: !isSidebarCollapsed }"
|
||||||
|
@ -78,29 +72,19 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import commentMixin from "@mixins/commentMixin";
|
|
||||||
// import apis from "@apis/listApi";
|
import { mapState, mapActions } from "pinia";
|
||||||
import { mapGetters, mapMutations, mapActions } from "vuex";
|
|
||||||
// import { handleErrors } from "@utilities/utilities";
|
import { useCommonStore } from "~/stores/commonStore";
|
||||||
// import HttpService from "@services/httpService";
|
import { useSearchStore } from "@search/stores/searchStore";
|
||||||
import menu from "@task/json/menu.json";
|
import { useAuthStore } from "~/stores/authStore";
|
||||||
import taskApi from "@apis/taskApi";
|
import taskApi from "@task/apis/taskApi";
|
||||||
import HttpService from "@services/httpService";
|
|
||||||
export default {
|
export default {
|
||||||
beforeMount() {
|
|
||||||
// const headers = {
|
|
||||||
// "app-id": process.env.VUE_APP_APP_ID,
|
|
||||||
// // "lang": process.env.VUE_APP_LANG,
|
|
||||||
// // "app-version-code": process.env.VUE_APP_APP_VERSION,
|
|
||||||
// };
|
|
||||||
// this.httpService = new HttpService(this.repoMicroServiceName);
|
|
||||||
},
|
|
||||||
// mixins: [commentMixin],
|
// mixins: [commentMixin],
|
||||||
beforeMount() {
|
|
||||||
this.httpService = new HttpService( this.taskMicroServiceName
|
|
||||||
);
|
|
||||||
},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.httpService = useNuxtApp()["$http"];
|
||||||
this.TOGGLE_PANEL(false);
|
this.TOGGLE_PANEL(false);
|
||||||
this.getvalueChartDonut();
|
this.getvalueChartDonut();
|
||||||
},
|
},
|
||||||
|
@ -123,43 +107,49 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
PieOptions: {
|
PieOptions: {
|
||||||
radius: ["40%", "70%"],
|
radius: ['40%', '70%'],
|
||||||
selectedMode: "single",
|
selectedMode: "single",
|
||||||
},
|
},
|
||||||
// #region mehdi
|
// #region mehdi
|
||||||
nomber: 0,
|
nomber: 0,
|
||||||
statusPagHedear: 1,
|
statusPagHedear: 1,
|
||||||
dataPie: [],
|
dataPie: [],
|
||||||
|
httpService: {},
|
||||||
// #endregion
|
// #endregion
|
||||||
rerenderChatList: 1,
|
rerenderChatList: 1,
|
||||||
showListPanel: false,
|
showListPanel: false,
|
||||||
menu: menu,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters([
|
...mapState(useAuthStore,[
|
||||||
|
"currentUser",
|
||||||
|
|
||||||
|
]),
|
||||||
|
...mapState(useCommonStore,[
|
||||||
"getPanelStatus",
|
"getPanelStatus",
|
||||||
"isSidebarCollapsed",
|
"isSidebarCollapsed",
|
||||||
"sidebarListStatusGetter",
|
"sidebarListStatusGetter",
|
||||||
]),
|
]),
|
||||||
...mapGetters("list", [
|
...mapState(useSearchStore, [
|
||||||
"listComponentNameGetter",
|
"listComponentNameGetter",
|
||||||
"selectedProjectGetter",
|
"selectedProjectGetter",
|
||||||
"listIdGetter",
|
"listIdGetter",
|
||||||
"selectedItemGetter",
|
"selectedItemGetter",
|
||||||
"listGetter",
|
"listGetter",
|
||||||
]),
|
]),
|
||||||
taskMicroServiceName() {
|
// taskUrl() {
|
||||||
return process.env.VUE_APP_TASK;
|
// return import.meta.env.VITE_TASK;
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations([
|
...mapActions(useCommonStore,[
|
||||||
"TOGGLE_PANEL",
|
"TOGGLE_PANEL",
|
||||||
"sidebarCollapsedSetter",
|
"sidebarCollapsedSetter",
|
||||||
"SET_SIDEBAR_LIST_STATUS",
|
"SET_SIDEBAR_LIST_STATUS",
|
||||||
|
"checkPermissions", "storeState", "getState"
|
||||||
]),
|
]),
|
||||||
...mapMutations("list", [
|
...mapActions(useSearchStore, [
|
||||||
"SET_LIST_COMPONENT_NAME",
|
"SET_LIST_COMPONENT_NAME",
|
||||||
"SET_SELECTED_ITEM",
|
"SET_SELECTED_ITEM",
|
||||||
"SET_SELECTED_PROJECT",
|
"SET_SELECTED_PROJECT",
|
||||||
|
@ -167,7 +157,7 @@ export default {
|
||||||
"SET_LIST",
|
"SET_LIST",
|
||||||
"SET_LIST_ID",
|
"SET_LIST_ID",
|
||||||
]),
|
]),
|
||||||
...mapActions(["checkPermissions", "storeState", "getState"]),
|
|
||||||
selectedListBackTitle(name) {
|
selectedListBackTitle(name) {
|
||||||
if (name == "groups") return "دانشتو با بقیه به اشتراک بزار.";
|
if (name == "groups") return "دانشتو با بقیه به اشتراک بزار.";
|
||||||
if (name == "privates") return "به هر کی دوست داری، پیام بده.";
|
if (name == "privates") return "به هر کی دوست داری، پیام بده.";
|
||||||
|
@ -212,11 +202,13 @@ export default {
|
||||||
// #endregion
|
// #endregion
|
||||||
getvalueChartDonut() {
|
getvalueChartDonut() {
|
||||||
let payload = {
|
let payload = {
|
||||||
user_id: this.$store.getters.currentUser.user_id,
|
user_id: this.currentUser.user_id,
|
||||||
};
|
};
|
||||||
let url = taskApi.taskChart.donut;
|
let url = taskUrl() + taskApi.taskChart.donut;
|
||||||
var vm = this;
|
var vm = this;
|
||||||
this.httpService.postRequest(url, payload).then((res) => {
|
this.httpService
|
||||||
|
.postRequest(url, payload)
|
||||||
|
.then((res) => {
|
||||||
vm.dataPie = [];
|
vm.dataPie = [];
|
||||||
res.data.forEach((element) => {
|
res.data.forEach((element) => {
|
||||||
vm.dataPie.push({
|
vm.dataPie.push({
|
||||||
|
@ -229,17 +221,12 @@ export default {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {
|
|
||||||
MainSection: () => import("@task/components/MainSection"),
|
|
||||||
RightSection: () => import("@task/components/RightSection"),
|
|
||||||
Navbar: () => import("@task/components/Navbar"),
|
|
||||||
Gantt: () => import("@components/charts/Gantt.vue"),
|
|
||||||
PieDonut: () => import("@components/charts/PieDonut.vue"),
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
50
pages/index.vue
Normal file
50
pages/index.vue
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
<template>
|
||||||
|
<NuxtLayout name="default" :menu="menu">
|
||||||
|
<router-view></router-view>
|
||||||
|
</NuxtLayout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { clearBodyClass } from "@manuals/utilities";
|
||||||
|
import menu from "@chat/json/menu.json";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "taskRouterView",
|
||||||
|
setup() {
|
||||||
|
useHead({
|
||||||
|
title: import.meta.env.VITE_TASK_PAGE_TITLE,
|
||||||
|
meta: [{ name: "description", content: "My page description" }],
|
||||||
|
bodyAttrs: {
|
||||||
|
class: import.meta.env.VITE_TASK_SYSTEM,
|
||||||
|
},
|
||||||
|
bodyAttrs: {
|
||||||
|
class: import.meta.env.VITE_TASK_SYSTEM,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
definePageMeta({
|
||||||
|
name: "taskRouterView",
|
||||||
|
layout: false,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
menu: menu,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
beforeMount() {
|
||||||
|
clearBodyClass();
|
||||||
|
},
|
||||||
|
|
||||||
|
destroyed() {
|
||||||
|
clearBodyClass();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@import "../assets/task/scss/task";
|
||||||
|
</style>
|
Loading…
Reference in New Issue
Block a user