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