Compare commits
2 Commits
221b4f1b32
...
e7bbe4d628
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e7bbe4d628 | ||
![]() |
48320d52af |
|
@ -63,8 +63,8 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-6 mb-2 mb-sm-0 col-md mb-sm-2 mb-md-0">
|
<div class="col-sm-6 mb-2 mb-sm-0 col-md mb-sm-2 mb-md-0">
|
||||||
<div class="link-item-container">
|
<div class="link-item-container">
|
||||||
<a
|
<NuxtLink
|
||||||
:href="urlResolver('qq309202')"
|
:to="urlResolver('qq309202')"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="btn link-item"
|
class="btn link-item"
|
||||||
>
|
>
|
||||||
|
@ -80,13 +80,13 @@
|
||||||
<div class="more-text-container">
|
<div class="more-text-container">
|
||||||
<span class="more-text"> مشاهده بیشتر </span>
|
<span class="more-text"> مشاهده بیشتر </span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6 mb-2 mb-sm-0 col-md mb-sm-2 mb-md-0">
|
<div class="col-sm-6 mb-2 mb-sm-0 col-md mb-sm-2 mb-md-0">
|
||||||
<div class="link-item-container">
|
<div class="link-item-container">
|
||||||
<a
|
<NuxtLink
|
||||||
:href="urlResolver('qq308235')"
|
:to="urlResolver('qq308235')"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="btn link-item"
|
class="btn link-item"
|
||||||
>
|
>
|
||||||
|
@ -100,13 +100,13 @@
|
||||||
<div class="more-text-container">
|
<div class="more-text-container">
|
||||||
<span class="more-text"> مشاهده بیشتر </span>
|
<span class="more-text"> مشاهده بیشتر </span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6 mb-2 mb-sm-0 col-md">
|
<div class="col-sm-6 mb-2 mb-sm-0 col-md">
|
||||||
<div class="link-item-container">
|
<div class="link-item-container">
|
||||||
<a
|
<NuxtLink
|
||||||
:href="urlResolver('qq38162')"
|
:to="urlResolver('qq38162')"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="btn link-item"
|
class="btn link-item"
|
||||||
>
|
>
|
||||||
|
@ -120,13 +120,13 @@
|
||||||
<div class="more-text-container">
|
<div class="more-text-container">
|
||||||
<span class="more-text"> مشاهده بیشتر </span>
|
<span class="more-text"> مشاهده بیشتر </span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6 mb-2 mb-sm-0 col-md">
|
<div class="col-sm-6 mb-2 mb-sm-0 col-md">
|
||||||
<div class="link-item-container">
|
<div class="link-item-container">
|
||||||
<a
|
<NuxtLink
|
||||||
:href="urlResolver('qq233930')"
|
:to="urlResolver('qq233930')"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="btn link-item"
|
class="btn link-item"
|
||||||
>
|
>
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
<div class="more-text-container">
|
<div class="more-text-container">
|
||||||
<span class="more-text"> مشاهده بیشتر </span>
|
<span class="more-text"> مشاهده بیشتر </span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -156,7 +156,8 @@ import searchApi from "~/apis/searchApi";
|
||||||
import { mapState, mapActions } from "pinia";
|
import { mapState, mapActions } from "pinia";
|
||||||
import { useCommonStore } from "~/stores/commonStore";
|
import { useCommonStore } from "~/stores/commonStore";
|
||||||
import { useStorage } from "@vueuse/core";
|
import { useStorage } from "@vueuse/core";
|
||||||
import {clearBodyClass} from "@manuals/utilities"
|
import { clearBodyClass } from "@manuals/utilities";
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
beforeMount() {
|
beforeMount() {
|
||||||
|
@ -164,7 +165,7 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.setBodyClass("majles-user-panel");
|
this.setBodyClass("majles-user-panel");
|
||||||
let localStoageSearchSchema = useStorage("searchSchema",undefined).value;
|
let localStoageSearchSchema = useStorage("searchSchema", undefined).value;
|
||||||
if (localStoageSearchSchema) {
|
if (localStoageSearchSchema) {
|
||||||
let searchSchema = JSON.parse(localStoageSearchSchema);
|
let searchSchema = JSON.parse(localStoageSearchSchema);
|
||||||
this.schemasSetter(searchSchema);
|
this.schemasSetter(searchSchema);
|
||||||
|
@ -255,7 +256,9 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
urlResolver(_id) {
|
urlResolver(_id) {
|
||||||
return "";
|
const router = `search/qasection/${_id}/show`;
|
||||||
|
|
||||||
|
return router;
|
||||||
// const routeData = this.$router.resolve({
|
// const routeData = this.$router.resolve({
|
||||||
// path: "navigation",
|
// path: "navigation",
|
||||||
// params: {
|
// params: {
|
||||||
|
@ -272,7 +275,6 @@ export default {
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "../../../assets/majles/scss/majles";
|
@import "../../../assets/majles/scss/majles";
|
||||||
|
|
||||||
.custom-class {
|
.custom-class {
|
||||||
.dropdown-toggle {
|
.dropdown-toggle {
|
||||||
color: rgba(0, 0, 0, 0.5) !important;
|
color: rgba(0, 0, 0, 0.5) !important;
|
||||||
|
|
|
@ -86,13 +86,13 @@ import repoApi from "~/apis/repoApi";
|
||||||
import { mapState } from "pinia";
|
import { mapState } from "pinia";
|
||||||
import { useCommonStore } from "~/stores/commonStore";
|
import { useCommonStore } from "~/stores/commonStore";
|
||||||
|
|
||||||
import SelectComponentDefault from "~/components/SelectComponentDefault.vue";
|
import SelectComponentDefault from "~/components/other/SelectComponentDefault.vue";
|
||||||
import SelectComponent from "~/components/SelectComponent.vue";
|
import SelectComponent from "~/components/other/SelectComponent.vue";
|
||||||
import InputComponent from "~/components/InputComponent.vue";
|
import InputComponent from "~/components/other/InputComponent.vue";
|
||||||
import LabelComponent from "~/components/LabelComponent.vue";
|
import LabelComponent from "~/components/other/LabelComponent.vue";
|
||||||
import tagsComponent from "~/components/tagsComponent.vue";
|
import tagsComponent from "~/components/other/tagsComponent.vue";
|
||||||
import DateComponent from "~/components/DateComponent.vue";
|
import DateComponent from "~/components/other/DateComponent.vue";
|
||||||
import TextareaComponent from "~/components/TextareaComponent.vue";
|
import TextareaComponent from "~/components/other/TextareaComponent.vue";
|
||||||
/**
|
/**
|
||||||
* @vue-data {Object} [listUpdatedText = {}] - متنهای بهروزشده در لیست.
|
* @vue-data {Object} [listUpdatedText = {}] - متنهای بهروزشده در لیست.
|
||||||
* @vue-data {undefined} [httpService = undefined] - سرویس HTTP برای درخواستها.
|
* @vue-data {undefined} [httpService = undefined] - سرویس HTTP برای درخواستها.
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
<button
|
<button
|
||||||
class="navbar-toggler"
|
class="navbar-toggler"
|
||||||
type="button"
|
type="button"
|
||||||
data-toggle="collapse"
|
data-bs-toggle="collapse"
|
||||||
data-target="#navbarSupportedContent"
|
data-bs-target="#navbarSupportedContent"
|
||||||
aria-controls="navbarSupportedContent"
|
aria-controls="navbarSupportedContent"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
aria-label="Toggle navigation"
|
aria-label="Toggle navigation"
|
||||||
|
@ -50,10 +50,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="btn p-0 mr-auto"
|
class="btn p-0 me-auto"
|
||||||
type="button"
|
type="button"
|
||||||
data-toggle="collapse"
|
data-bs-toggle="collapse"
|
||||||
data-target="#navbarSupportedContent"
|
data-bs-target="#navbarSupportedContent"
|
||||||
aria-controls="navbarSupportedContent"
|
aria-controls="navbarSupportedContent"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
aria-label="Toggle navigation"
|
aria-label="Toggle navigation"
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<ul class="navbar-nav ml-auto mr-md-5">
|
<ul class="navbar-nav ms-auto me-md-5">
|
||||||
<!-- <li class="nav-item active">
|
<!-- <li class="nav-item active">
|
||||||
<a class="nav-link" href="#"
|
<a class="nav-link" href="#"
|
||||||
>پیشخوان <span class="sr-only">(current)</span></a
|
>پیشخوان <span class="sr-only">(current)</span></a
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
class="nav-link dropdown-toggle"
|
class="nav-link dropdown-toggle"
|
||||||
id="navbarDropdown"
|
id="navbarDropdown"
|
||||||
role="button"
|
role="button"
|
||||||
data-toggle="dropdown"
|
data-bs-toggle="dropdown"
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
>
|
>
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
href="#"
|
href="#"
|
||||||
id="navbarDropdown"
|
id="navbarDropdown"
|
||||||
role="button"
|
role="button"
|
||||||
data-toggle="dropdown"
|
data-bs-toggle="dropdown"
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
>
|
>
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul class="navbar-nav ml-md-3 mr-auto">
|
<ul class="navbar-nav ms-md-3 me-auto">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<notification></notification>
|
<notification></notification>
|
||||||
</li>
|
</li>
|
||||||
|
@ -151,12 +151,14 @@
|
||||||
<the-sidebar
|
<the-sidebar
|
||||||
:showUserAvatar="true"
|
:showUserAvatar="true"
|
||||||
:menu="$attrs.menu"
|
:menu="$attrs.menu"
|
||||||
|
@statusPag="statusPag"
|
||||||
></the-sidebar>
|
></the-sidebar>
|
||||||
|
|
||||||
<main class="main-page__content" :class="{ expanded: !isSidebarCollapsed }">
|
<main class="main-page__content" :class="{ expanded: !isSidebarCollapsed }">
|
||||||
<!-- <div class="pages list-page"> -->
|
<!-- <div class="pages list-page"> -->
|
||||||
<!-- <div class="pages-content align-items-stretch p-0"> -->
|
<!-- <div class="pages-content align-items-stretch p-0"> -->
|
||||||
<!-- <div class="flex-grow-1"> -->
|
<!-- <div class="flex-grow-1"> -->
|
||||||
|
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
|
@ -169,7 +171,7 @@
|
||||||
import { mapState, mapActions } from "pinia";
|
import { mapState, mapActions } from "pinia";
|
||||||
import { useCommonStore } from "~/stores/commonStore";
|
import { useCommonStore } from "~/stores/commonStore";
|
||||||
|
|
||||||
import {clearBodyClass} from "@manuals/utilities"
|
import { clearBodyClass } from "@manuals/utilities";
|
||||||
export default {
|
export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.setBodyClass("default-dashboard");
|
// this.setBodyClass("default-dashboard");
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<!-- majles dashbaord -->
|
<!-- majles dashbaord -->
|
||||||
<search-section v-if="buildName() == 'majles'"></search-section>
|
<search-section v-if="buildName() == 'majles'"></search-section>
|
||||||
<!-- monir dashboard -->
|
<!-- monir dashboard -->
|
||||||
<default-dashboard></default-dashboard>
|
<default-dashboard v-else></default-dashboard>
|
||||||
<!-- </ClientOnly> -->
|
<!-- </ClientOnly> -->
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,164 +0,0 @@
|
||||||
import type {
|
|
||||||
activeSearchChartSchema,
|
|
||||||
activeSearchListSchema,
|
|
||||||
Domain,
|
|
||||||
helpActiveSchema,
|
|
||||||
helpSchema,
|
|
||||||
searchActiveTab,
|
|
||||||
searchChartActiveTab,
|
|
||||||
searchListActiveTab,
|
|
||||||
searchSchema,
|
|
||||||
searchSynonymForm,
|
|
||||||
searchSynonymTitle,
|
|
||||||
selectionFilterItems,
|
|
||||||
} from "~/types/searchTypes";
|
|
||||||
|
|
||||||
export const useSearchStore = defineStore("searchStore", {
|
|
||||||
persist: {
|
|
||||||
storage: piniaPluginPersistedstate.localStorage(),
|
|
||||||
}, state: () => ({
|
|
||||||
domainActive: undefined as Domain | undefined,
|
|
||||||
// activeTab: undefined,
|
|
||||||
|
|
||||||
searchActiveTab: undefined as searchActiveTab | undefined,
|
|
||||||
searchSchema: undefined as searchSchema | undefined,
|
|
||||||
helpSchema: undefined as helpSchema | undefined,
|
|
||||||
searchActiveSchema: undefined as searchActiveTab | undefined,
|
|
||||||
helpActiveSchema: undefined as helpActiveSchema | undefined,
|
|
||||||
|
|
||||||
searchListActiveTab: undefined as searchListActiveTab | undefined,
|
|
||||||
searchListSchema: undefined as searchListActiveTab[] | undefined,
|
|
||||||
activeSearchListSchema: undefined as activeSearchListSchema | undefined,
|
|
||||||
|
|
||||||
searchChartActiveTab: undefined as searchChartActiveTab | undefined,
|
|
||||||
searchChartSchema: undefined as searchChartActiveTab[] | undefined,
|
|
||||||
activeSearchChartSchema: undefined as activeSearchChartSchema | undefined,
|
|
||||||
|
|
||||||
searchSynonymTitle: undefined as searchSynonymTitle | undefined,
|
|
||||||
searchSynonymForm: undefined as searchSynonymForm | undefined,
|
|
||||||
|
|
||||||
selectionFilterItems: [] as selectionFilterItems,
|
|
||||||
}),
|
|
||||||
getters: {
|
|
||||||
searchSynonymTitleGetter(state) {
|
|
||||||
return state.searchSynonymTitle;
|
|
||||||
},
|
|
||||||
searchSynonymFormGetter(state) {
|
|
||||||
return state.searchSynonymForm;
|
|
||||||
},
|
|
||||||
|
|
||||||
domainActiveGetter(state) {
|
|
||||||
return state.domainActive;
|
|
||||||
},
|
|
||||||
// activeTabGetter(state) {
|
|
||||||
// return state.activeTab;
|
|
||||||
// },
|
|
||||||
|
|
||||||
// search page
|
|
||||||
searchActiveTabGetter(state) {
|
|
||||||
return state.searchActiveTab;
|
|
||||||
},
|
|
||||||
searchSchemaGetter(state) {
|
|
||||||
return state.searchSchema;
|
|
||||||
},
|
|
||||||
helpSchemaGetter(state) {
|
|
||||||
return state.helpSchema;
|
|
||||||
},
|
|
||||||
helpActiveSchemaGetter(state) {
|
|
||||||
return state.helpActiveSchema;
|
|
||||||
},
|
|
||||||
searchActiveSchemaGetter(state) {
|
|
||||||
return state.searchActiveSchema;
|
|
||||||
},
|
|
||||||
|
|
||||||
// search list
|
|
||||||
searchListActiveTabGetter(state) {
|
|
||||||
return state.searchListActiveTab;
|
|
||||||
},
|
|
||||||
searchListSchemaGetter(state) {
|
|
||||||
return state.searchListSchema;
|
|
||||||
},
|
|
||||||
searchListActiveSchemaGetter(state) {
|
|
||||||
return state.activeSearchListSchema;
|
|
||||||
},
|
|
||||||
|
|
||||||
// search chart
|
|
||||||
searchChartActiveTabGetter(state) {
|
|
||||||
return state.searchChartActiveTab;
|
|
||||||
},
|
|
||||||
searchChartSchemaGetter(state) {
|
|
||||||
return state.searchChartSchema;
|
|
||||||
},
|
|
||||||
searchChartActiveSchemaGetter(state) {
|
|
||||||
return state.activeSearchChartSchema;
|
|
||||||
},
|
|
||||||
selectionFilterItemsGetter(state) {
|
|
||||||
return state.selectionFilterItems;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
actions: {
|
|
||||||
searchSynonymFormSetter(searchSynonymForm = undefined) {
|
|
||||||
this.searchSynonymForm = searchSynonymForm;
|
|
||||||
},
|
|
||||||
searchSynonymTitleSetter(searchSynonymTitle = undefined) {
|
|
||||||
this.searchSynonymTitle = searchSynonymTitle;
|
|
||||||
},
|
|
||||||
|
|
||||||
domainActiveSetter(domain = undefined) {
|
|
||||||
this.domainActive = domain;
|
|
||||||
},
|
|
||||||
// activeTabSetter(activeTab = undefined) {
|
|
||||||
// this.activeTab = activeTab;
|
|
||||||
// },
|
|
||||||
|
|
||||||
// search page
|
|
||||||
searchActiveTabSetter(searchActiveTab: searchActiveTab = undefined) {
|
|
||||||
this.searchActiveTab = searchActiveTab;
|
|
||||||
},
|
|
||||||
searchSchemaSetter(searchSchema = undefined) {
|
|
||||||
this.searchSchema = searchSchema;
|
|
||||||
},
|
|
||||||
helpSchemaSetter(helpSchema = undefined) {
|
|
||||||
this.helpSchema = helpSchema;
|
|
||||||
},
|
|
||||||
helpActiveSchemaSetter(helpActiveSchema = undefined) {
|
|
||||||
this.helpActiveSchema = helpActiveSchema;
|
|
||||||
},
|
|
||||||
searchActiveSchemaSetter(searchActiveSchema = undefined) {
|
|
||||||
this.searchActiveSchema = searchActiveSchema;
|
|
||||||
},
|
|
||||||
|
|
||||||
// search list
|
|
||||||
searchListActiveTabSetter(searchListActiveTab = undefined) {
|
|
||||||
this.searchListActiveTab = searchListActiveTab;
|
|
||||||
},
|
|
||||||
searchListSchemaSetter(searchListSchema = undefined) {
|
|
||||||
this.searchListSchema = searchListSchema;
|
|
||||||
},
|
|
||||||
searchListActiveSchemaSetter(activeSearchListSchema = undefined) {
|
|
||||||
this.activeSearchListSchema = activeSearchListSchema;
|
|
||||||
},
|
|
||||||
|
|
||||||
// search chart
|
|
||||||
searchChartActiveTabSetter(searchChartActiveTab = undefined) {
|
|
||||||
this.searchChartActiveTab = searchChartActiveTab;
|
|
||||||
},
|
|
||||||
searchChartSchemaSetter(searchChartSchema = undefined) {
|
|
||||||
this.searchChartSchema = searchChartSchema;
|
|
||||||
},
|
|
||||||
searchChartActiveSchemaSetter(activeSearchChartSchema = undefined) {
|
|
||||||
this.activeSearchChartSchema = activeSearchChartSchema;
|
|
||||||
},
|
|
||||||
selectionFilterItemsSetter(selectionFilterItems = []) {
|
|
||||||
this.selectionFilterItems = <selectionFilterItems>selectionFilterItems;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
// export default {
|
|
||||||
// namespaced:true,
|
|
||||||
|
|
||||||
// state,
|
|
||||||
// actions,
|
|
||||||
// mutations,
|
|
||||||
// getters
|
|
||||||
// };
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 79d854a9912878646da9eba6a06eedb0bbd0bf90
|
Subproject commit 6d8478f019fcc06b269a400c704cd6c4358f8caf
|
Loading…
Reference in New Issue
Block a user