update research
This commit is contained in:
parent
947af21d6d
commit
702ffbc782
|
@ -40,7 +40,7 @@
|
|||
|
||||
<script>
|
||||
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
import { useResearchStore } from "../../../stores/researchStore";
|
||||
|
||||
import { mapState } from "pinia";
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import researchApi from "~/apis/researchApi";
|
||||
import { mapActions, mapState } from "pinia";
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
import { useResearchStore } from "../../../stores/researchStore";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
|
|
@ -189,7 +189,7 @@ import favoriteApi from "~/apis/favoriteApi";
|
|||
import researchApi from "~/apis/researchApi";
|
||||
|
||||
import { mapState, mapActions } from "pinia";
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
import { useResearchStore } from "../../../stores/researchStore";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
@ -165,7 +165,7 @@
|
|||
import favoriteApi from "~/apis/favoriteApi";
|
||||
|
||||
import { mapState, mapActions } from "pinia";
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
import { useResearchStore } from "../../../stores/researchStore";
|
||||
|
||||
export default {
|
||||
props: [
|
||||
|
|
|
@ -80,8 +80,7 @@
|
|||
<script>
|
||||
import { mapState, mapActions } from "pinia";
|
||||
import { useSearchStore } from "~/stores/searchStore";
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
|
||||
import { useResearchStore } from "../../../stores/researchStore";
|
||||
export default {
|
||||
name: "FilterList",
|
||||
props: ["changePageFilter", "listAggregations", "selectedFilterItems"],
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
import researchApi from "~/apis/researchApi";
|
||||
|
||||
import { mapActions, mapState } from "pinia";
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
import { useResearchStore } from "../../../stores/researchStore";
|
||||
|
||||
/**
|
||||
* @vue-event {Number} increment - Emit counter's value after increment
|
||||
|
|
|
@ -153,7 +153,7 @@
|
|||
import repoApi from "~/apis/repoApi";
|
||||
import listApis from "~/apis/listApi";
|
||||
import { mapState, mapActions } from "pinia";
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
import { useResearchStore } from "../../../stores/researchStore";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
import researchApi from "~/apis/researchApi";
|
||||
import { mapActions, mapState } from "pinia";
|
||||
import { VueEditor } from "vue2-editor";
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
import { useResearchStore } from "../../../stores/researchStore";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
|
|
@ -380,7 +380,7 @@ import searchLineMixin from "~/research/mixins/searchLineMixin.js";
|
|||
import { mapActions, mapState } from "pinia";
|
||||
import researchApi from "~/apis/researchApi";
|
||||
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
import { useResearchStore } from "../stores/researchStore";
|
||||
|
||||
export default {
|
||||
mixins: [searchLineMixin],
|
||||
|
|
|
@ -182,7 +182,7 @@
|
|||
import { mapState, mapActions } from "pinia";
|
||||
import researchApi from "~/apis/researchApi";
|
||||
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
import { useResearchStore } from "../stores/researchStore";
|
||||
|
||||
export default {
|
||||
beforeMount() {
|
||||
|
|
|
@ -387,7 +387,7 @@
|
|||
<script lang="ts">
|
||||
import apis from "~/apis/researchApi";
|
||||
import apis2 from "~/apis/searchApi";
|
||||
import { useResearchStore } from "~/stores/researchStore";
|
||||
import { useResearchStore } from "../stores/researchStore";
|
||||
import {clearBodyClass} from "@manuals/utilities"
|
||||
|
||||
import { useCommonStore } from "~/stores/commonStore";
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import type {
|
||||
domain,
|
||||
researchActiveSchema,
|
||||
researchTerms,
|
||||
searchActiveTab,
|
||||
selectionFilterItems,
|
||||
} from "~/types/researchTypes";
|
||||
|
@ -10,14 +9,13 @@ import { defineStore } from "pinia";
|
|||
export const useResearchStore = defineStore("researchStore", {
|
||||
persist: {
|
||||
storage: piniaPluginPersistedstate.localStorage(),
|
||||
|
||||
}, state: () => ({
|
||||
},
|
||||
state: () => ({
|
||||
researchActiveSchema: [] as researchActiveSchema[],
|
||||
researchSchema: [] as researchActiveSchema[],
|
||||
researchDomainActive: {} as domain,
|
||||
searchActiveTab: undefined as searchActiveTab | undefined,
|
||||
selectionFilterItems: [] as selectionFilterItems,
|
||||
researchTerms: undefined as researchTerms | undefined,
|
||||
// dataForTreeMap: undefined,
|
||||
// activeTab: undefined,
|
||||
// navigateListActiveTab: undefined,
|
||||
|
@ -43,9 +41,7 @@ export const useResearchStore = defineStore("researchStore", {
|
|||
selectionFilterItemsGetter(state) {
|
||||
return state.selectionFilterItems;
|
||||
},
|
||||
researchTermsGetter(state) {
|
||||
return state.researchTerms;
|
||||
},
|
||||
|
||||
// dataForTreeMapGetter(state) {
|
||||
// return state.dataForTreeMap;
|
||||
// },
|
||||
|
@ -72,10 +68,6 @@ export const useResearchStore = defineStore("researchStore", {
|
|||
// },
|
||||
},
|
||||
actions: {
|
||||
researchTermsSetter( researchTerms = undefined) {
|
||||
this.researchTerms = researchTerms;
|
||||
},
|
||||
|
||||
researchSchemaSetter(researchSchema = undefined) {
|
||||
this.researchSchema = researchSchema;
|
||||
},
|
||||
|
@ -89,7 +81,9 @@ export const useResearchStore = defineStore("researchStore", {
|
|||
searchActiveTabSetter(searchActiveTab = undefined) {
|
||||
this.searchActiveTab = searchActiveTab;
|
||||
},
|
||||
selectionFilterItemsSetter( selectionFilterItems: selectionFilterItems = []) {
|
||||
selectionFilterItemsSetter(
|
||||
selectionFilterItems: selectionFilterItems = []
|
||||
) {
|
||||
this.selectionFilterItems = selectionFilterItems;
|
||||
},
|
||||
// dataForTreeMapSetter(state, dataForTreeMap = undefined) {
|
||||
|
@ -110,7 +104,5 @@ export const useResearchStore = defineStore("researchStore", {
|
|||
// ) {
|
||||
// state.activeNavigateChartSchema = activeNavigateChartSchema;
|
||||
// },
|
||||
|
||||
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user