@ozdao/prometheus-framework 0.2.51 → 0.2.53
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-0a2437f4.js +91 -0
- package/dist/main-482dc398.mjs +13626 -0
- package/dist/main-4fnApBsF.js +91 -0
- package/dist/main-b2JI9sFg.js +91 -0
- package/dist/main-c56d4c09.js +91 -0
- package/dist/main-cdd0be68.mjs +13628 -0
- package/dist/main-kjbLXQEa.mjs +13606 -0
- package/dist/main-x-9D8zvb.mjs +13604 -0
- package/dist/main.css +1 -1
- package/dist/organizations.server.js +2 -2
- package/dist/organizations.server.mjs +2 -2
- package/dist/products.server.js +81 -56
- package/dist/products.server.mjs +81 -56
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +18 -20
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +19 -19
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +28 -26
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +2 -2
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +35 -2
- package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue2.js +2 -35
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +37 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -14
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSearch.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSearch.vue.js +24 -0
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +49 -101
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +25 -25
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +68 -39
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +38 -48
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +69 -62
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +131 -126
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +117 -146
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +22 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js +45 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +79 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +193 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +43 -43
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +65 -55
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +64 -51
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +35 -33
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +2 -2
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +39 -27
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +23 -23
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-0066fd51.mjs +55 -0
- package/dist/web-6b9fa713.js +1 -0
- package/dist/web-6dcbb74b.mjs +55 -0
- package/dist/web-caJAdsxy.js +1 -0
- package/dist/web-ee302c1d.js +1 -0
- package/dist/web-i08OVMw9.mjs +55 -0
- package/dist/web-ngl7bNhF.js +1 -0
- package/dist/web-t91TrxXa.mjs +55 -0
- package/package.json +1 -1
- package/src/components/Button/Button.vue +4 -6
- package/src/components/Feed/Feed.vue +2 -1
- package/src/components/Field/Field.vue +3 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -0
- package/src/modules/applications/applications.client.js +0 -1
- package/src/modules/globals/components/blocks/BlockSearch.vue +42 -0
- package/src/modules/icons/entities/IconProfile.vue +10 -1
- package/src/modules/icons/entities/IconShopcart.vue +12 -2
- package/src/modules/marketplace/components/layouts/Marketplace.vue +7 -14
- package/src/modules/marketplace/components/sections/Filters.vue +7 -1
- package/src/modules/mobile/components/NavigationBar/NavigationBar.vue +27 -7
- package/src/modules/orders/components/partials/ShopCart.vue +4 -1
- package/src/modules/organizations/components/blocks/CardDepartment.vue +34 -66
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +50 -13
- package/src/modules/organizations/components/blocks/User.vue +18 -9
- package/src/modules/organizations/components/pages/Department.vue +19 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +14 -10
- package/src/modules/organizations/components/pages/Organization.vue +38 -71
- package/src/modules/organizations/components/sections/Feed.vue +1 -1
- package/src/modules/organizations/controllers/memberships.controller.js +2 -2
- package/src/modules/organizations/controllers/organizations.controller.js +0 -1
- package/src/modules/organizations/router/products.router.js +24 -4
- package/src/modules/products/components/blocks/CardCategory.vue +53 -0
- package/src/modules/products/components/pages/Categories.vue +90 -0
- package/src/modules/products/components/pages/CategoryEdit.vue +214 -0
- package/src/modules/products/components/pages/EditLeftover.vue +6 -4
- package/src/modules/products/components/pages/ProductEdit.vue +9 -1
- package/src/modules/products/components/pages/Products.vue +58 -38
- package/src/modules/products/components/sections/FilterProducts.vue +9 -6
- package/src/modules/products/controllers/categories.controller.js +30 -13
- package/src/modules/products/controllers/leftovers.controller.js +12 -5
- package/src/modules/products/controllers/products.controller.js +18 -0
- package/src/modules/products/models/category.model.js +42 -32
- package/src/modules/products/products.client.js +4 -2
- package/src/modules/products/store/categories.js +17 -3
- package/src/modules/products/store/products.js +4 -0
- package/src/modules/backoffice/components/admin/Categories.vue +0 -53
- package/src/modules/backoffice/components/admin/CategoryEdit.vue +0 -98
- package/src/modules/products/components/blocks/CategoryCard.vue +0 -42
- package/src/modules/products/router/products.router.js +0 -48
- /package/src/modules/{products → organizations}/components/pages/OrganizationCreate.vue +0 -0
- /package/src/modules/{products → organizations}/components/pages/OrganizationDetails.vue +0 -0
- /package/src/modules/{products → organizations}/components/pages/OrganizationDocuments.vue +0 -0
- /package/src/modules/{products → organizations}/components/pages/OrganizationPeople.vue +0 -0
package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js
CHANGED
@@ -1,73 +1,80 @@
|
|
1
|
-
import { withAsyncContext as
|
2
|
-
import { useRouter as
|
1
|
+
import { withAsyncContext as y, resolveComponent as p, openBlock as t, createElementBlock as n, createElementVNode as e, toDisplayString as w, createVNode as c, unref as u, withCtx as C, createCommentVNode as a, Fragment as _, renderList as h, createBlock as b } from "vue";
|
2
|
+
import { useRouter as v, useRoute as $ } from "vue-router";
|
3
3
|
import "../../../../components/Spoiler/Spoiler.vue.js";
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import { actions as
|
7
|
-
const
|
4
|
+
import x from "../blocks/DepartmentSub.vue.js";
|
5
|
+
import E from "../blocks/User.vue.js";
|
6
|
+
import { actions as D, state as s } from "../../store/departments.js";
|
7
|
+
const B = { class: "for-transition w-100" }, L = {
|
8
8
|
key: 0,
|
9
9
|
id: "dash",
|
10
10
|
class: "pd-medium bg-grey"
|
11
|
-
},
|
12
|
-
d: "M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",
|
13
|
-
fill: "rgb(var(--black))"
|
14
|
-
}, null, -1), D = [
|
15
|
-
Z
|
16
|
-
], H = ["innerHTML"], z = { class: "mn-b-medium radius-medium pd-semi bg-white" }, E = /* @__PURE__ */ e("h3", { class: "mn-b-regular" }, "Команда", -1), N = { key: 0 }, R = { class: "mn-b-medium radius-medium pd-semi bg-white" }, S = /* @__PURE__ */ e("h3", { class: "mn-b-regular" }, "Подотделы", -1), T = { key: 0 }, G = {
|
11
|
+
}, N = { class: "mn-b-medium radius-medium pd-semi bg-white" }, V = { class: "flex-nowrap flex mn-b-small" }, H = { class: "w-100" }, I = ["innerHTML"], M = { class: "mn-b-medium radius-medium pd-semi bg-white" }, R = /* @__PURE__ */ e("h3", { class: "mn-b-regular" }, "Команда", -1), S = { key: 0 }, T = { class: "mn-b-medium radius-medium pd-semi bg-white" }, z = /* @__PURE__ */ e("h3", { class: "mn-b-regular" }, "Подотделы", -1), A = { key: 0 }, P = {
|
17
12
|
__name: "Department",
|
18
|
-
async setup(
|
19
|
-
let m,
|
20
|
-
|
21
|
-
const o =
|
22
|
-
return [m,
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
(
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
13
|
+
async setup(F) {
|
14
|
+
let m, l;
|
15
|
+
v();
|
16
|
+
const o = $();
|
17
|
+
return [m, l] = y(() => D.readOne(o.params.department)), await m, l(), (d, O) => {
|
18
|
+
const g = p("IconEdit"), f = p("router-link");
|
19
|
+
return t(), n("div", B, [
|
20
|
+
s.department ? (t(), n("div", L, [
|
21
|
+
e("section", N, [
|
22
|
+
e("div", V, [
|
23
|
+
e("h2", H, w(s.department.profile.name), 1),
|
24
|
+
c(f, {
|
25
|
+
to: {
|
26
|
+
name: "Department Edit",
|
27
|
+
params: {
|
28
|
+
_id: u(o).params._id,
|
29
|
+
department: u(o).params.department
|
30
|
+
}
|
31
|
+
},
|
32
|
+
class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
|
33
|
+
}, {
|
34
|
+
default: C(() => [
|
35
|
+
c(g, {
|
36
|
+
class: "i-regular",
|
37
|
+
classes: "fill-white"
|
38
|
+
})
|
39
|
+
]),
|
40
|
+
_: 1
|
41
|
+
}, 8, ["to"])
|
42
|
+
]),
|
43
|
+
e("p", {
|
44
|
+
class: "t-transp p-big",
|
45
|
+
innerHTML: s.department.description
|
46
|
+
}, null, 8, I)
|
36
47
|
]),
|
37
|
-
e("
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
key: a,
|
62
|
-
class: "br-b br-solid br-grey",
|
63
|
-
department: s
|
64
|
-
}, null, 8, ["onClick", "department"]))), 128))
|
48
|
+
e("section", M, [
|
49
|
+
R,
|
50
|
+
e("ul", null, [
|
51
|
+
s.department.members.length < 1 ? (t(), n("li", S, "В отделе еще нет участников")) : a("", !0),
|
52
|
+
(t(!0), n(_, null, h(s.department.members, (r, i) => (t(), b(E, {
|
53
|
+
class: "br-b br-solid br-grey",
|
54
|
+
key: i,
|
55
|
+
user: r,
|
56
|
+
position: r.position,
|
57
|
+
onClick: (k) => d.$router.push(`/app/profile/${r.user._id}`)
|
58
|
+
}, null, 8, ["user", "position", "onClick"]))), 128))
|
59
|
+
])
|
60
|
+
]),
|
61
|
+
e("section", T, [
|
62
|
+
z,
|
63
|
+
e("ul", null, [
|
64
|
+
s.department.subdepartments.length < 1 ? (t(), n("li", A, "В отделе еще нет подотделов")) : a("", !0),
|
65
|
+
(t(!0), n(_, null, h(s.department.subdepartments, (r, i) => (t(), b(x, {
|
66
|
+
onClick: (k) => d.$router.push(`/app/organization/departments/${r._id}`),
|
67
|
+
key: i,
|
68
|
+
class: "br-b br-solid br-grey",
|
69
|
+
department: r
|
70
|
+
}, null, 8, ["onClick", "department"]))), 128))
|
71
|
+
])
|
65
72
|
])
|
66
|
-
])
|
67
|
-
])
|
68
|
-
|
73
|
+
])) : a("", !0)
|
74
|
+
]);
|
75
|
+
};
|
69
76
|
}
|
70
77
|
};
|
71
78
|
export {
|
72
|
-
|
79
|
+
P as default
|
73
80
|
};
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const P=require("../../../../components/UploadImage/UploadImage.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const N=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");const S=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),o=require("../../../../components/Checkbox/Checkbox.vue.cjs");require("../../../../components/Address/Address.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/LocationMarker/LocationMarker.vue.cjs");const V=require("../../../../components/Button/Button.vue2.cjs"),k=require("../../../../components/Popup/Popup.vue2.cjs"),w=require("../../../../components/Block/Block.vue.cjs");require("../../../../../../node_modules/vue-select/dist/vue-select.es.cjs");require("../blocks/EditArray.vue2.cjs");const O=require("../blocks/DepartmentSub.vue.cjs"),y=require("../blocks/DepartmentMemberModify.vue.cjs"),M=require("../blocks/User.vue.cjs"),t=require("../../store/departments.cjs"),f=require("../../store/memberships.cjs");require("./DepartmentEdit.vue2.cjs");const n=i=>(e.pushScopeId("data-v-7ec9277b"),i=i(),e.popScopeId(),i),T={class:"for-transition pd-thin w-100"},I={class:"mn-b-thin flex-nowrap flex bg-grey pd-medium radius-big"},U={key:0,class:"mn-r-auto"},z={key:1,class:"mn-r-auto"},F={class:"flex-nowrap flex pd-thin"},R={class:"cols-2-fit-content"},$={class:"w-100 flex-child-grow-1 flex-child"},A={class:"cols-2 gap-thin"},H={class:"bg-grey pd-medium o-hidden radius-big"},L=n(()=>e.createElementVNode("h3",{class:"mn-b-semi"},"Department Settings",-1)),j=n(()=>e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please settings for your department:",-1)),G={class:"cols-1 gap-thin"},J=n(()=>e.createElementVNode("h4",null,"Products",-1)),K={class:"bg-grey pd-medium o-hidden radius-big"},Q=n(()=>e.createElementVNode("h3",{class:"mn-b-semi"},"Acessess",-1)),W=n(()=>e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select organization accesses for user in department:",-1)),X={class:"cols-1 gap-thin"},Y=n(()=>e.createElementVNode("h4",null,"Products",-1)),Z=n(()=>e.createElementVNode("h4",null,"Orders",-1)),ee={key:1,class:"flex-nowrap flex pd-thin"},te={id:"dash",class:"pd-medium bg-white"},ae={class:"mn-b-regular flex-v-center flex-nowrap flex"},le=n(()=>e.createElementVNode("h3",{class:"mn-r-small"},"Подотделы ",-1)),re={class:"mn-b-small"},se={key:0},ne={__name:"DepartmentEdit",setup(i){const E=g.useRouter(),l=g.useRoute();async function D(){l.params.department&&await f.actions.read({target:l.params._id}),e.ref(f.state.memberships),await t.actions.read(l.params._id),l.params.department&&await t.actions.readOne(l.params.department)}D();const m=e.ref(!1),c=e.ref(null);function h(r){m.value=!0,typeof r=="number"&&(c.value=r)}function b(){m.value=!1,c.value=null}const p=e.ref(!1),u=e.ref(null);function _(r){p.value=!0,typeof r=="number"&&(u.value=r)}function v(){p.value=!1,u.value=null}async function q(){l.params.department&&await t.actions.update(l.params._id,t.state.department),l.params.department||await t.actions.create(l.params._id,t.state.department)}function B(){E.replace({name:"Department",params:{_id:l.params._id,department:t.state.department._id}})}async function x(){await t.actions.delete(l.params._id,t.state.department)}return(r,s)=>(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("header",I,[e.unref(l).params.department?(e.openBlock(),e.createElementBlock("h1",U,"Edit Department")):(e.openBlock(),e.createElementBlock("h1",z,"Create Department")),e.createElementVNode("section",F,[e.createVNode(V.default,{submit:q,callback:B,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode("Save Department")]),_:1})])]),t.state.department.profile?(e.openBlock(),e.createBlock(w.default,{key:0,title:"Profile",class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("div",R,[e.createVNode(P.default,{photo:t.state.department.profile.photo,"onUpdate:photo":s[0]||(s[0]=a=>t.state.department.profile.photo=a),uploadPath:"organizations/"+t.state.department.name+"/avatars",class:"w-8r aspect-1x1 o-hidden mn-r-small radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",$,[e.createVNode(N.default,{field:t.state.department.profile.name,"onUpdate:field":s[1]||(s[1]=a=>t.state.department.profile.name=a),label:"Name",placeholder:"Department Name",class:"mn-b-small bg-white radius-small pd-medium",validation:r.organizationName},null,8,["field","validation"]),e.createVNode(N.default,{field:t.state.department.profile.description,"onUpdate:field":s[2]||(s[2]=a=>t.state.department.profile.description=a),label:"Description",placeholder:"Department description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:r.organizationName},null,8,["field","validation"])])])]),_:1})):e.createCommentVNode("",!0),e.createVNode(w.default,{title:"Team",placeholder:"No members added yet",actions:[{label:"+",function:()=>h()}],class:"cols-1 gap-thin mn-b-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.department.members,(a,d)=>(e.openBlock(),e.createBlock(M.default,{class:"bg-grey o-hidden radius-small mn-b-thin",key:d,user:a.user,photo:a.user.profile.photo,name:a.user.profile.name||a.user.phone||a.user.email||a.user._id,position:a.position,onClick:C=>h(d)},null,8,["user","photo","name","position","onClick"]))),128))]),_:1},8,["actions"]),e.createVNode(k.default,{title:"Добавить участника",onClosePopup:b,isPopupOpen:m.value,class:"bg-white w-max-30r radius-big pd-big"},{default:e.withCtx(()=>[e.createVNode(y.default,{members:t.state.department.members,member:c.value,users:f.state.memberships,onCallback:b},null,8,["members","member","users"])]),_:1},8,["isPopupOpen"]),e.createElementVNode("div",A,[e.createElementVNode("div",H,[L,j,e.createElementVNode("div",G,[J,e.createVNode(o.default,{label:"Hidden department",name:"Delivery",value:"pickup",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"])])]),e.createElementVNode("div",K,[Q,W,e.createElementVNode("div",X,[Y,e.createVNode(o.default,{label:"See products",name:"Delivery",value:"pickup",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"]),e.createVNode(o.default,{label:"Edit products",name:"Delivery",value:"courier",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"]),e.createVNode(o.default,{label:"Delete orders",name:"Delivery",value:"post",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"]),Z,e.createVNode(o.default,{label:"See orders",name:"Delivery",value:"pickup",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"]),e.createVNode(o.default,{label:"Confirm orders",name:"Delivery",value:"courier",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"]),e.createVNode(o.default,{label:"Delete orders",name:"Delivery",value:"post",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"])])])]),e.unref(l).params.department?(e.openBlock(),e.createElementBlock("section",ee,[e.createVNode(V.default,{submit:x,callback:r.redirectToDash,class:"bg-grey"},{default:e.withCtx(()=>[e.createTextVNode("Delete Department")]),_:1},8,["callback"])])):e.createCommentVNode("",!0),e.createElementVNode("div",te,[e.createVNode(k.default,{title:"Добавить подотдел",onClosePopup:v,isPopupOpen:p.value},{default:e.withCtx(()=>[e.createVNode(y.default,{departments:t.state.department.subdepartments,department:u.value,maindepartment:t.state.department,alldepartments:t.state.departments,onCallback:v},null,8,["departments","department","maindepartment","alldepartments"])]),_:1},8,["isPopupOpen"]),e.createElementVNode("div",ae,[le,e.createElementVNode("div",null,[e.createElementVNode("a",{class:"t-main h5",onClick:s[3]||(s[3]=a=>_())},"+")])]),e.createElementVNode("ul",re,[t.state.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",se,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.department.subdepartments,(a,d)=>(e.openBlock(),e.createBlock(O.default,{key:d,class:"bg-grey o-hidden radius-small mn-b-thin",department:a,onClick:C=>_(d)},null,8,["department","onClick"]))),128))])])]))}},oe=S.default(ne,[["__scopeId","data-v-7ec9277b"]]);exports.default=oe;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js
CHANGED
@@ -1,172 +1,177 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRouter as
|
1
|
+
import { ref as c, openBlock as r, createElementBlock as m, createElementVNode as t, unref as C, createVNode as a, withCtx as p, createTextVNode as S, createBlock as y, createCommentVNode as w, Fragment as N, renderList as $, pushScopeId as H, popScopeId as L } from "vue";
|
2
|
+
import { useRouter as j, useRoute as q } from "vue-router";
|
3
3
|
import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
4
4
|
import "vue-i18n";
|
5
5
|
import "../../../globals/localization/vue-i18n.js";
|
6
6
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
7
|
-
import
|
7
|
+
import G from "../../../../components/UploadImage/UploadImage.vue.js";
|
8
8
|
import "../../../../components/Tab/Tab.vue.js";
|
9
9
|
import O from "../../../../components/Field/Field.vue2.js";
|
10
10
|
import "../../../../components/Select/Select.vue.js";
|
11
|
-
import
|
12
|
-
import
|
11
|
+
import J from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
12
|
+
import d from "../../../../components/Checkbox/Checkbox.vue.js";
|
13
13
|
import "../../../../components/Address/Address.vue.js";
|
14
14
|
import "../../../../components/Loader/Loader.vue.js";
|
15
15
|
import "../../../../components/LocationMarker/LocationMarker.vue.js";
|
16
16
|
import E from "../../../../components/Button/Button.vue2.js";
|
17
17
|
import M from "../../../../components/Popup/Popup.vue2.js";
|
18
|
-
import
|
18
|
+
import z from "../../../../components/Block/Block.vue.js";
|
19
19
|
import "../../../../../../node_modules/vue-select/dist/vue-select.es.js";
|
20
20
|
import "../blocks/EditArray.vue2.js";
|
21
21
|
import K from "../blocks/DepartmentSub.vue.js";
|
22
|
-
import
|
22
|
+
import I from "../blocks/DepartmentMemberModify.vue.js";
|
23
23
|
import Q from "../blocks/User.vue.js";
|
24
24
|
import { state as e, actions as f } from "../../store/departments.js";
|
25
|
-
import { state as
|
25
|
+
import { state as T, actions as W } from "../../store/memberships.js";
|
26
26
|
import "./DepartmentEdit.vue2.js";
|
27
|
-
const
|
27
|
+
const o = (h) => (H("data-v-7ec9277b"), h = h(), L(), h), X = { class: "for-transition pd-thin w-100" }, Y = { class: "mn-b-thin flex-nowrap flex bg-grey pd-medium radius-big" }, Z = {
|
28
28
|
key: 0,
|
29
29
|
class: "mn-r-auto"
|
30
30
|
}, ee = {
|
31
31
|
key: 1,
|
32
32
|
class: "mn-r-auto"
|
33
|
-
}, te = { class: "flex-nowrap flex pd-thin" }, ae = { class: "mn-b-thin bg-grey pd-medium o-hidden radius-big" },
|
34
|
-
key:
|
35
|
-
class: "radius-small flex-nowrap flex"
|
36
|
-
}, re = { class: "w-100 flex-child-grow-1 flex-child" }, ie = { class: "cols-2 gap-thin" }, ne = { class: "bg-grey pd-medium o-hidden radius-big" }, oe = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h3", { class: "mn-b-semi" }, "Department Settings", -1)), me = /* @__PURE__ */ n(() => /* @__PURE__ */ t("p", { class: "p-medium mn-b-small" }, "Please settings for your department:", -1)), de = { class: "cols-1 gap-thin" }, pe = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h4", null, "Products", -1)), ue = { class: "bg-grey pd-medium o-hidden radius-big" }, ce = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h3", { class: "mn-b-semi" }, "Acessess", -1)), fe = /* @__PURE__ */ n(() => /* @__PURE__ */ t("p", { class: "p-medium mn-b-small" }, "Please select organization accesses for user in department:", -1)), he = { class: "cols-1 gap-thin" }, be = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h4", null, "Products", -1)), _e = /* @__PURE__ */ n(() => /* @__PURE__ */ t("h4", null, "Orders", -1)), ve = {
|
37
|
-
key: 0,
|
33
|
+
}, te = { class: "flex-nowrap flex pd-thin" }, ae = { class: "cols-2-fit-content" }, se = { class: "w-100 flex-child-grow-1 flex-child" }, le = { class: "cols-2 gap-thin" }, re = { class: "bg-grey pd-medium o-hidden radius-big" }, ie = /* @__PURE__ */ o(() => /* @__PURE__ */ t("h3", { class: "mn-b-semi" }, "Department Settings", -1)), ne = /* @__PURE__ */ o(() => /* @__PURE__ */ t("p", { class: "p-medium mn-b-small" }, "Please settings for your department:", -1)), oe = { class: "cols-1 gap-thin" }, me = /* @__PURE__ */ o(() => /* @__PURE__ */ t("h4", null, "Products", -1)), de = { class: "bg-grey pd-medium o-hidden radius-big" }, pe = /* @__PURE__ */ o(() => /* @__PURE__ */ t("h3", { class: "mn-b-semi" }, "Acessess", -1)), ue = /* @__PURE__ */ o(() => /* @__PURE__ */ t("p", { class: "p-medium mn-b-small" }, "Please select organization accesses for user in department:", -1)), ce = { class: "cols-1 gap-thin" }, fe = /* @__PURE__ */ o(() => /* @__PURE__ */ t("h4", null, "Products", -1)), he = /* @__PURE__ */ o(() => /* @__PURE__ */ t("h4", null, "Orders", -1)), _e = {
|
34
|
+
key: 1,
|
38
35
|
class: "flex-nowrap flex pd-thin"
|
39
|
-
},
|
36
|
+
}, be = {
|
40
37
|
id: "dash",
|
41
38
|
class: "pd-medium bg-white"
|
42
|
-
},
|
39
|
+
}, ve = { class: "mn-b-regular flex-v-center flex-nowrap flex" }, ge = /* @__PURE__ */ o(() => /* @__PURE__ */ t("h3", { class: "mn-r-small" }, "Подотделы ", -1)), ye = { class: "mn-b-small" }, we = { key: 0 }, De = {
|
43
40
|
__name: "DepartmentEdit",
|
44
41
|
setup(h) {
|
45
|
-
const
|
46
|
-
|
47
|
-
|
48
|
-
s.params.department && await W.read({ target: s.params._id }), d(I.memberships), await f.read(s.params._id), s.params.department && await f.readOne(s.params.department);
|
42
|
+
const U = j(), l = q();
|
43
|
+
async function V() {
|
44
|
+
l.params.department && await W.read({ target: l.params._id }), c(T.memberships), await f.read(l.params._id), l.params.department && await f.readOne(l.params.department);
|
49
45
|
}
|
50
|
-
|
51
|
-
const
|
52
|
-
function
|
53
|
-
|
46
|
+
V();
|
47
|
+
const _ = c(!1), b = c(null);
|
48
|
+
function D(i) {
|
49
|
+
_.value = !0, typeof i == "number" && (b.value = i);
|
54
50
|
}
|
55
|
-
function
|
56
|
-
|
51
|
+
function k() {
|
52
|
+
_.value = !1, b.value = null;
|
57
53
|
}
|
58
|
-
const v =
|
59
|
-
function
|
54
|
+
const v = c(!1), g = c(null);
|
55
|
+
function P(i) {
|
60
56
|
v.value = !0, typeof i == "number" && (g.value = i);
|
61
57
|
}
|
62
|
-
function
|
58
|
+
function x() {
|
63
59
|
v.value = !1, g.value = null;
|
64
60
|
}
|
65
|
-
async function
|
66
|
-
|
67
|
-
|
61
|
+
async function B() {
|
62
|
+
l.params.department && await f.update(
|
63
|
+
l.params._id,
|
68
64
|
e.department
|
69
|
-
),
|
70
|
-
|
65
|
+
), l.params.department || await f.create(
|
66
|
+
l.params._id,
|
71
67
|
e.department
|
72
68
|
);
|
73
69
|
}
|
74
|
-
function
|
75
|
-
|
70
|
+
function A() {
|
71
|
+
U.replace({ name: "Department", params: { _id: l.params._id, department: e.department._id } });
|
76
72
|
}
|
77
|
-
async function
|
73
|
+
async function F() {
|
78
74
|
await f.delete(
|
79
|
-
|
75
|
+
l.params._id,
|
80
76
|
e.department
|
81
77
|
);
|
82
78
|
}
|
83
|
-
return (i,
|
79
|
+
return (i, n) => (r(), m("div", X, [
|
84
80
|
t("header", Y, [
|
85
|
-
|
81
|
+
C(l).params.department ? (r(), m("h1", Z, "Edit Department")) : (r(), m("h1", ee, "Create Department")),
|
86
82
|
t("section", te, [
|
87
83
|
a(E, {
|
88
|
-
submit:
|
89
|
-
callback:
|
84
|
+
submit: B,
|
85
|
+
callback: A,
|
90
86
|
class: "bg-main"
|
91
87
|
}, {
|
92
|
-
default:
|
93
|
-
|
88
|
+
default: p(() => [
|
89
|
+
S("Save Department")
|
94
90
|
]),
|
95
91
|
_: 1
|
96
92
|
})
|
97
93
|
])
|
98
94
|
]),
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
95
|
+
e.department.profile ? (r(), y(z, {
|
96
|
+
key: 0,
|
97
|
+
title: "Profile",
|
98
|
+
class: "mn-b-thin"
|
99
|
+
}, {
|
100
|
+
default: p(() => [
|
101
|
+
t("div", ae, [
|
102
|
+
a(G, {
|
103
|
+
photo: e.department.profile.photo,
|
104
|
+
"onUpdate:photo": n[0] || (n[0] = (s) => e.department.profile.photo = s),
|
105
|
+
uploadPath: "organizations/" + e.department.name + "/avatars",
|
106
|
+
class: "w-8r aspect-1x1 o-hidden mn-r-small radius-extra"
|
107
|
+
}, null, 8, ["photo", "uploadPath"]),
|
108
|
+
t("div", se, [
|
109
|
+
a(O, {
|
110
|
+
field: e.department.profile.name,
|
111
|
+
"onUpdate:field": n[1] || (n[1] = (s) => e.department.profile.name = s),
|
112
|
+
label: "Name",
|
113
|
+
placeholder: "Department Name",
|
114
|
+
class: "mn-b-small bg-white radius-small pd-medium",
|
115
|
+
validation: i.organizationName
|
116
|
+
}, null, 8, ["field", "validation"]),
|
117
|
+
a(O, {
|
118
|
+
field: e.department.profile.description,
|
119
|
+
"onUpdate:field": n[2] || (n[2] = (s) => e.department.profile.description = s),
|
120
|
+
label: "Description",
|
121
|
+
placeholder: "Department description (max 120 symbols)",
|
122
|
+
class: "bg-white radius-small pd-medium",
|
123
|
+
validation: i.organizationName
|
124
|
+
}, null, 8, ["field", "validation"])
|
125
|
+
])
|
125
126
|
])
|
126
|
-
])
|
127
|
-
|
128
|
-
|
127
|
+
]),
|
128
|
+
_: 1
|
129
|
+
})) : w("", !0),
|
130
|
+
a(z, {
|
129
131
|
title: "Team",
|
130
132
|
placeholder: "No members added yet",
|
131
133
|
actions: [{
|
132
134
|
label: "+",
|
133
|
-
function: () =>
|
135
|
+
function: () => D()
|
134
136
|
}],
|
135
137
|
class: "cols-1 gap-thin mn-b-thin"
|
136
138
|
}, {
|
137
|
-
default:
|
138
|
-
(r(!0), m(
|
139
|
+
default: p(() => [
|
140
|
+
(r(!0), m(N, null, $(e.department.members, (s, u) => (r(), y(Q, {
|
139
141
|
class: "bg-grey o-hidden radius-small mn-b-thin",
|
140
142
|
key: u,
|
141
|
-
user:
|
142
|
-
|
143
|
-
|
144
|
-
|
143
|
+
user: s.user,
|
144
|
+
photo: s.user.profile.photo,
|
145
|
+
name: s.user.profile.name || s.user.phone || s.user.email || s.user._id,
|
146
|
+
position: s.position,
|
147
|
+
onClick: (R) => D(u)
|
148
|
+
}, null, 8, ["user", "photo", "name", "position", "onClick"]))), 128))
|
145
149
|
]),
|
146
150
|
_: 1
|
147
151
|
}, 8, ["actions"]),
|
148
152
|
a(M, {
|
149
153
|
title: "Добавить участника",
|
150
|
-
onClosePopup:
|
151
|
-
isPopupOpen:
|
154
|
+
onClosePopup: k,
|
155
|
+
isPopupOpen: _.value,
|
156
|
+
class: "bg-white w-max-30r radius-big pd-big"
|
152
157
|
}, {
|
153
|
-
default:
|
154
|
-
a(
|
158
|
+
default: p(() => [
|
159
|
+
a(I, {
|
155
160
|
members: e.department.members,
|
156
|
-
member:
|
157
|
-
users:
|
158
|
-
onCallback:
|
161
|
+
member: b.value,
|
162
|
+
users: T.memberships,
|
163
|
+
onCallback: k
|
159
164
|
}, null, 8, ["members", "member", "users"])
|
160
165
|
]),
|
161
166
|
_: 1
|
162
167
|
}, 8, ["isPopupOpen"]),
|
163
|
-
t("div",
|
164
|
-
t("div",
|
165
|
-
|
166
|
-
|
167
|
-
t("div",
|
168
|
-
|
169
|
-
a(
|
168
|
+
t("div", le, [
|
169
|
+
t("div", re, [
|
170
|
+
ie,
|
171
|
+
ne,
|
172
|
+
t("div", oe, [
|
173
|
+
me,
|
174
|
+
a(d, {
|
170
175
|
label: "Hidden department",
|
171
176
|
name: "Delivery",
|
172
177
|
value: "pickup",
|
@@ -175,48 +180,48 @@ const n = (h) => (R("data-v-e983b0b2"), h = h(), H(), h), X = { class: "for-tran
|
|
175
180
|
}, null, 8, ["radio"])
|
176
181
|
])
|
177
182
|
]),
|
178
|
-
t("div",
|
179
|
-
|
180
|
-
|
181
|
-
t("div",
|
182
|
-
|
183
|
-
a(
|
183
|
+
t("div", de, [
|
184
|
+
pe,
|
185
|
+
ue,
|
186
|
+
t("div", ce, [
|
187
|
+
fe,
|
188
|
+
a(d, {
|
184
189
|
label: "See products",
|
185
190
|
name: "Delivery",
|
186
191
|
value: "pickup",
|
187
192
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
188
193
|
radio: e.department.delivery
|
189
194
|
}, null, 8, ["radio"]),
|
190
|
-
a(
|
195
|
+
a(d, {
|
191
196
|
label: "Edit products",
|
192
197
|
name: "Delivery",
|
193
198
|
value: "courier",
|
194
199
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
195
200
|
radio: e.department.delivery
|
196
201
|
}, null, 8, ["radio"]),
|
197
|
-
a(
|
202
|
+
a(d, {
|
198
203
|
label: "Delete orders",
|
199
204
|
name: "Delivery",
|
200
205
|
value: "post",
|
201
206
|
class: "w-100 bg-white radius-small pd-small",
|
202
207
|
radio: e.department.delivery
|
203
208
|
}, null, 8, ["radio"]),
|
204
|
-
|
205
|
-
a(
|
209
|
+
he,
|
210
|
+
a(d, {
|
206
211
|
label: "See orders",
|
207
212
|
name: "Delivery",
|
208
213
|
value: "pickup",
|
209
214
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
210
215
|
radio: e.department.delivery
|
211
216
|
}, null, 8, ["radio"]),
|
212
|
-
a(
|
217
|
+
a(d, {
|
213
218
|
label: "Confirm orders",
|
214
219
|
name: "Delivery",
|
215
220
|
value: "courier",
|
216
221
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
217
222
|
radio: e.department.delivery
|
218
223
|
}, null, 8, ["radio"]),
|
219
|
-
a(
|
224
|
+
a(d, {
|
220
225
|
label: "Delete orders",
|
221
226
|
name: "Delivery",
|
222
227
|
value: "post",
|
@@ -226,57 +231,57 @@ const n = (h) => (R("data-v-e983b0b2"), h = h(), H(), h), X = { class: "for-tran
|
|
226
231
|
])
|
227
232
|
])
|
228
233
|
]),
|
229
|
-
|
234
|
+
C(l).params.department ? (r(), m("section", _e, [
|
230
235
|
a(E, {
|
231
|
-
submit:
|
236
|
+
submit: F,
|
232
237
|
callback: i.redirectToDash,
|
233
238
|
class: "bg-grey"
|
234
239
|
}, {
|
235
|
-
default:
|
236
|
-
|
240
|
+
default: p(() => [
|
241
|
+
S("Delete Department")
|
237
242
|
]),
|
238
243
|
_: 1
|
239
244
|
}, 8, ["callback"])
|
240
|
-
])) :
|
241
|
-
t("div",
|
245
|
+
])) : w("", !0),
|
246
|
+
t("div", be, [
|
242
247
|
a(M, {
|
243
248
|
title: "Добавить подотдел",
|
244
|
-
onClosePopup:
|
249
|
+
onClosePopup: x,
|
245
250
|
isPopupOpen: v.value
|
246
251
|
}, {
|
247
|
-
default:
|
248
|
-
a(
|
252
|
+
default: p(() => [
|
253
|
+
a(I, {
|
249
254
|
departments: e.department.subdepartments,
|
250
255
|
department: g.value,
|
251
256
|
maindepartment: e.department,
|
252
257
|
alldepartments: e.departments,
|
253
|
-
onCallback:
|
258
|
+
onCallback: x
|
254
259
|
}, null, 8, ["departments", "department", "maindepartment", "alldepartments"])
|
255
260
|
]),
|
256
261
|
_: 1
|
257
262
|
}, 8, ["isPopupOpen"]),
|
258
|
-
t("div",
|
259
|
-
|
263
|
+
t("div", ve, [
|
264
|
+
ge,
|
260
265
|
t("div", null, [
|
261
266
|
t("a", {
|
262
267
|
class: "t-main h5",
|
263
|
-
onClick:
|
268
|
+
onClick: n[3] || (n[3] = (s) => P())
|
264
269
|
}, "+")
|
265
270
|
])
|
266
271
|
]),
|
267
|
-
t("ul",
|
268
|
-
e.department.subdepartments.length < 1 ? (r(), m("li",
|
269
|
-
(r(!0), m(
|
272
|
+
t("ul", ye, [
|
273
|
+
e.department.subdepartments.length < 1 ? (r(), m("li", we, "В отделе еще нет подотделов")) : w("", !0),
|
274
|
+
(r(!0), m(N, null, $(e.department.subdepartments, (s, u) => (r(), y(K, {
|
270
275
|
key: u,
|
271
276
|
class: "bg-grey o-hidden radius-small mn-b-thin",
|
272
|
-
department:
|
273
|
-
onClick: (
|
277
|
+
department: s,
|
278
|
+
onClick: (R) => P(u)
|
274
279
|
}, null, 8, ["department", "onClick"]))), 128))
|
275
280
|
])
|
276
281
|
])
|
277
282
|
]));
|
278
283
|
}
|
279
|
-
},
|
284
|
+
}, Qe = /* @__PURE__ */ J(De, [["__scopeId", "data-v-7ec9277b"]]);
|
280
285
|
export {
|
281
|
-
|
286
|
+
Qe as default
|
282
287
|
};
|