ss-component-new 1.1.259 → 1.1.261
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-BAR5vwN7.js → array-BKq3BIQz.js} +2 -2
- package/dist/{array-8L1AOBQp.cjs → array-CGcjUVKX.cjs} +1 -1
- package/dist/{cloneDeep-vy5d0U00.cjs → cloneDeep-B7uQBoFQ.cjs} +1 -1
- package/dist/{cloneDeep-DZzy1Il4.js → cloneDeep-C2Kxf4cz.js} +1 -1
- package/dist/{index-C-9bL2-I.cjs → index-1FDUIkCX.cjs} +1 -1
- package/dist/{index-DKiauCvh.js → index-B-UH_ubV.js} +8 -8
- package/dist/{index-TCyNl2MK.js → index-B2U6bRXC.js} +1 -1
- package/dist/{index-DVDdSL2R.js → index-B5JYLkwE.js} +984 -941
- package/dist/{index-B4Ev6tVX.cjs → index-BDeQhlHq.cjs} +1 -1
- package/dist/{index-7ptGWZXL.cjs → index-BEMqiaE4.cjs} +1 -1
- package/dist/{index-C4heMZb-.js → index-BEUHy5vT.js} +5 -5
- package/dist/{index-CG19P4G2.cjs → index-BKkSFReI.cjs} +1 -1
- package/dist/{index-C8YTwQ2U.cjs → index-BNRMWt2X.cjs} +1 -1
- package/dist/{index-DHZhHL1L.js → index-BPDeDTcT.js} +8 -8
- package/dist/{index-rAGiNKLH.cjs → index-BPc4Eac7.cjs} +1 -1
- package/dist/{index-D5VxsSYo.cjs → index-BSHYuItV.cjs} +1 -1
- package/dist/index-BSvAtDik.js +32149 -0
- package/dist/{index-B0eP9Dy6.cjs → index-BTE2McnW.cjs} +1 -1
- package/dist/{index-CP5-LufC.js → index-BXTWkSfY.js} +3 -3
- package/dist/{index-CPKoBUqk.cjs → index-BePWixJ7.cjs} +1 -1
- package/dist/{index-DlDk8iSi.js → index-BpRK84YO.js} +9 -9
- package/dist/{index-Bi7W_wF3.cjs → index-BqjnsqxM.cjs} +1 -1
- package/dist/{index-B_CuXQ8H.js → index-BuzU8y87.js} +3 -3
- package/dist/index-BxNkT68g.js +271 -0
- package/dist/{index-ChOzMlwd.cjs → index-C4WiBNX7.cjs} +1 -1
- package/dist/{index-CvyNoFpY.cjs → index-C99sTbLR.cjs} +1 -1
- package/dist/{index-D2NWcpdI.cjs → index-CPLQkq0l.cjs} +1 -1
- package/dist/{index-DBROy8Np.js → index-CRA36cu_.js} +4 -4
- package/dist/{index-BPVoFxu1.js → index-CUS5J9_e.js} +3 -3
- package/dist/{index-DfzZvWqB.cjs → index-CU_Jx-5J.cjs} +1 -1
- package/dist/{index-Cn8hBlVR.js → index-CV8NL82B.js} +1 -1
- package/dist/index-CW3K0wJl.cjs +1 -0
- package/dist/index-CaEGsvtY.cjs +1 -0
- package/dist/{index-dEcwBSrA.cjs → index-CbAVZYKT.cjs} +1 -1
- package/dist/{index-CO8isUR8.js → index-CcWrPjiF.js} +1 -1
- package/dist/{index-CEU_-vVQ.cjs → index-CdbyfD9T.cjs} +1 -1
- package/dist/{index-DchO-l9M.cjs → index-ChDUVY4O.cjs} +1 -1
- package/dist/{index-3YXTNfHi.cjs → index-ChrvsNKe.cjs} +1 -1
- package/dist/{index-DZK00p0U.cjs → index-Clc0UQZs.cjs} +1 -1
- package/dist/index-CrY9cebv.cjs +1 -0
- package/dist/{index-VEeZQyiv.js → index-CtNApXqx.js} +1 -1
- package/dist/{index-C0KdYFnu.cjs → index-D5iqPx4_.cjs} +1 -1
- package/dist/{index-BZW3cHEf.js → index-DBUg3cD4.js} +5 -5
- package/dist/{index-C67E6B-n.cjs → index-DJXxlOVw.cjs} +1 -1
- package/dist/{index-CcbQH9dl.js → index-DJt9epxc.js} +3 -3
- package/dist/{index-BMz8jBkf.js → index-DMxFp_J8.js} +7 -7
- package/dist/{index-D2ZusKzk.js → index-DSHdwrIv.js} +4 -4
- package/dist/{index-Ci50GJSS.js → index-DiqIaffC.js} +6 -6
- package/dist/index-DqW6UiIO.cjs +3839 -0
- package/dist/{index-C2rXdvLP.js → index-Dqq6ANsR.js} +1 -1
- package/dist/{index-DSOsbQ8m.js → index-DrgtDDgh.js} +1 -1
- package/dist/index-Dz-F31F9.js +3475 -0
- package/dist/{index-MAuxykeu.js → index-JlAZlJSa.js} +6 -6
- package/dist/index-LztiiC8W.js +683 -0
- package/dist/{index-vS7rFC3d.js → index-P8qnw1yi.js} +5 -5
- package/dist/{index-D9qxwyPB.cjs → index-SuPnthkA.cjs} +1 -1
- package/dist/{index-CaZgwKKu.cjs → index-XGNOqMia.cjs} +1 -1
- package/dist/{index-_lrJ_Z3S.js → index-i7I_BwC_.js} +4 -4
- package/dist/{index-0Rbq0r0Y.js → index-k1B4X854.js} +4 -4
- package/dist/index-kzgPDfJF.cjs +9 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-t_FbjOts.cjs → index.vue_vue_type_script_setup_true_lang-CsELnqsB.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CvTBmGDC.js → index.vue_vue_type_script_setup_true_lang-GU5YecI_.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BPrVtCUd.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CiQLJOHK.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-qsAIigHk.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-HXVPBHSR.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CdoqwUjR.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BP1ltJdK.js} +12 -12
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BQgHk7jY.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Dhxd_sQH.cjs} +1 -1
- package/dist/{login-B2FvC181.cjs → login-MRZ_aZ2l.cjs} +1 -1
- package/dist/{login-CN3w9WCz.js → login-f0ZOWhgZ.js} +2 -2
- package/dist/{main-BDgkyynt.js → main-CD7tAcIb.js} +7 -7
- package/dist/{main-DRa5LCF9.cjs → main-CpGTA5Qv.cjs} +1 -1
- package/dist/{menu-DjHQN1B-.cjs → menu-PjSpUL7w.cjs} +1 -1
- package/dist/{menu-B10MAns7.js → menu-uQv0bEzE.js} +1 -1
- package/dist/{modelComp-KS7VRV8A.js → modelComp-BavIqTd8.js} +1 -1
- package/dist/{modelComp-DqpOIkHs.cjs → modelComp-qapurFEA.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +2 -1
- package/dist/index-B69DGyLH.js +0 -264
- package/dist/index-B8XOc8ur.js +0 -673
- package/dist/index-BG7PNsqD.js +0 -22139
- package/dist/index-C-lzYeWw.cjs +0 -3832
- package/dist/index-CS8aeX_B.cjs +0 -1
- package/dist/index-CkaXBiAY.cjs +0 -1
- package/dist/index-DjZKWUq4.cjs +0 -1
- package/dist/index-DzzEJh49.cjs +0 -9
- package/dist/index-_eZMZ6DS.js +0 -3459
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CiQLJOHK.cjs"),e=require("vue"),c=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function r(n,l,p,a,_,d){const t=e.resolveComponent("DynamicIcon"),s=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(s,{mode:n.mode,menuList:n.renderMenuList,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:e.withCtx(({menu:o})=>[e.createVNode(t,{name:o.icon??""},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(o.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const i=c._export_sfc(u._sfc_main,[["render",r],["__scopeId","data-v-11a5120d"]]);exports.default=i;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed as b, getCurrentInstance as qe, inject as ve, unref as u, ref as x, onMounted as ie, watch as Y, toRef as Ke, onUnmounted as Vn, shallowRef as Ve, nextTick as D, defineComponent as Z, useAttrs as Dn, useSlots as un, createElementBlock as O, openBlock as g, normalizeStyle as Ye, normalizeClass as E, createCommentVNode as T, Fragment as De, createElementVNode as F, renderSlot as K, createBlock as M, withCtx as N, resolveDynamicComponent as U, mergeProps as lt, withModifiers as ke, createVNode as oe, toDisplayString as J, onBeforeUnmount as xe, provide as cn, Text as _n, reactive as dn, h as Un, watchEffect as Kn, isRef as Yn, onScopeDispose as Wn, markRaw as ut, toRefs as Gn, resolveComponent as Ce, Transition as qn, withDirectives as et, withKeys as Re, createTextVNode as tt, vShow as nt, isVNode as fn, render as vn } from "vue";
|
|
2
|
-
import { S as Ft, i as pn, d as gt, t as hn, f as Pt, g as Xn, h as re, j as Ht, k as Xe, m as de, n as ye, o as We, p as mn, q as fe, s as jn, v as Jn, w as Zn, x as Qn, y as Te, z as Ie, A as Me, _ as Be, B as pe, V as eo, C as to, D as no, F as oo, G as ae, N as _e, H as ao, I as Ge, J as gn, K as bt, L as so, M as ct, O as ro, P as $t, Q as io, R as zt, T as lo, U as uo, W as co, X as fo, Y as vo, Z as po, $ as Vt, a0 as Dt, a1 as ho } from "./index-
|
|
2
|
+
import { S as Ft, i as pn, d as gt, t as hn, f as Pt, g as Xn, h as re, j as Ht, k as Xe, m as de, n as ye, o as We, p as mn, q as fe, s as jn, v as Jn, w as Zn, x as Qn, y as Te, z as Ie, A as Me, _ as Be, B as pe, V as eo, C as to, D as no, F as oo, G as ae, N as _e, H as ao, I as Ge, J as gn, K as bt, L as so, M as ct, O as ro, P as $t, Q as io, R as zt, T as lo, U as uo, W as co, X as fo, Y as vo, Z as po, $ as Vt, a0 as Dt, a1 as ho } from "./index-B-UH_ubV.js";
|
|
3
3
|
import { m as mo } from "./typescript-BpuhIBuJ.js";
|
|
4
|
-
import { d as _t, i as bn, a as go, b as bo, e as yn, f as yo } from "./cloneDeep-
|
|
5
|
-
import { i as En } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { d as _t, i as bn, a as go, b as bo, e as yn, f as yo } from "./cloneDeep-C2Kxf4cz.js";
|
|
5
|
+
import { i as En } from "./index.vue_vue_type_script_setup_true_lang-GU5YecI_.js";
|
|
6
6
|
function Eo(e) {
|
|
7
7
|
return e;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-CsELnqsB.cjs");exports.default=e._sfc_main;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { resolveComponent as n, createElementBlock as r, openBlock as m, createVNode as i } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./array-
|
|
2
|
+
import "./index-Dz-F31F9.js";
|
|
3
|
+
import "./index-DrgtDDgh.js";
|
|
4
|
+
import "./array-BKq3BIQz.js";
|
|
5
5
|
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-
|
|
7
|
-
import "./menu-
|
|
8
|
-
import "./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./login-
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-HXVPBHSR.js";
|
|
7
|
+
import "./menu-uQv0bEzE.js";
|
|
8
|
+
import "./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BP1ltJdK.js";
|
|
9
|
+
import "./index-BSvAtDik.js";
|
|
10
|
+
import "./login-f0ZOWhgZ.js";
|
|
11
11
|
import "./index-BHtNKL1L.js";
|
|
12
|
-
import "./index-
|
|
12
|
+
import "./index-BxNkT68g.js";
|
|
13
13
|
const d = {
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./menu-
|
|
1
|
+
"use strict";const s=require("./menu-PjSpUL7w.cjs"),x=require("./index-D5iqPx4_.cjs"),q=require("./login-MRZ_aZ2l.cjs"),I=require("vue"),w=s.useMenuState(x.pinia),v=q.useLoginState(x.pinia),D=I.ref(!1),E=I.ref(!1),P=async()=>{const K=s.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),M=s.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([K,M]).then(a=>{var r,u,n,o,i,l,c,g,y,d,S,f,m,p;const t=a==null?void 0:a[0],e=a==null?void 0:a[1];if(t.data.code===200){const h=(c=(l=(i=(o=(n=(u=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:n.value)==null?void 0:o.pageData)==null?void 0:i.compData)==null?void 0:l[0])==null?void 0:c.contents;w.setRawMenus(h??[]),D.value=((g=t==null?void 0:t.data)==null?void 0:g.result)&&((d=(y=t==null?void 0:t.data)==null?void 0:y.result)==null?void 0:d.length)>0}else s.ElMessage.error("获取模型菜单响应失败");e.data.code===200?e.data.result&&((S=e.data.result)==null?void 0:S.length)>0&&(v.setStructureData(e.data.result),v.setIsStructureExist(!0),E.value=((f=e==null?void 0:e.data)==null?void 0:f.result)&&((p=(m=e==null?void 0:e.data)==null?void 0:m.result)==null?void 0:p.length)>0):s.ElMessage.error("获取模型结构响应失败")}),{menuExist:D.value,structureExist:E.value}};exports.verifyStructureDataToStore=P;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as S, u as P, E as v } from "./menu-
|
|
2
|
-
import { p as K } from "./index-
|
|
3
|
-
import { u as k } from "./login-
|
|
1
|
+
import { g as S, u as P, E as v } from "./menu-uQv0bEzE.js";
|
|
2
|
+
import { p as K } from "./index-DrgtDDgh.js";
|
|
3
|
+
import { u as k } from "./login-f0ZOWhgZ.js";
|
|
4
4
|
import { ref as h } from "vue";
|
|
5
5
|
const A = P(K), E = k(K), x = h(!1), D = h(!1), q = async () => {
|
|
6
6
|
const I = S({
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { u as R } from "./modelComp-BavIqTd8.js";
|
|
2
|
+
import { p as b } from "./index-DrgtDDgh.js";
|
|
3
|
+
import { s as P, u as L, E as T, c as q, b as z, d as G, g as H } from "./menu-uQv0bEzE.js";
|
|
4
|
+
import { g as Q } from "./index-Dz-F31F9.js";
|
|
5
|
+
import { g as E, a as V, f as W, h as X, i as Y, j as Z } from "./index-BSvAtDik.js";
|
|
6
|
+
import { ref as _, watch as $ } from "vue";
|
|
7
|
+
import { v as c } from "./index-BuzU8y87.js";
|
|
8
|
+
import { g as O } from "./index-DiqIaffC.js";
|
|
9
|
+
import { d as p } from "./crypto-BRyGpjGR.js";
|
|
10
|
+
import { u as m } from "./login-f0ZOWhgZ.js";
|
|
11
|
+
import { c as N } from "./cloneDeep-C2Kxf4cz.js";
|
|
12
|
+
const aa = m(), { loginUserInfo: U, cryptoInfo: w } = P(aa), S = R(b), { itemData: ea, curStructureCompIds: B, isSubmitCurStructure: sa, isRefreshCurStructure: ra } = P(S), J = L(b), { activeMenuPath: I } = P(J), C = V(b), { selectTitle: k } = P(C), Da = () => {
|
|
13
|
+
S.setIsEdit("edit"), S.setSubmitCurStructure(I.value !== "/平台管理/菜单管理");
|
|
14
|
+
}, Ca = () => {
|
|
15
|
+
S.setIsEdit("view"), S.setRefreshCurStructure(!0);
|
|
16
|
+
}, Ia = async (a) => {
|
|
17
|
+
var l;
|
|
18
|
+
if ((a == null ? void 0 : a.key) === "main" || k.value.length === 1)
|
|
19
|
+
D.value = await E(I.value, sessionStorage.getItem("systemKey")), C.setSelectIndex(""), C.setSelectMenu(""), C.setSelectTitle([]);
|
|
20
|
+
else {
|
|
21
|
+
const n = [], g = (a == null ? void 0 : a.key) === "" || !(a != null && a.key) ? "" : parseInt(a == null ? void 0 : a.key);
|
|
22
|
+
D.value = await E(I.value, sessionStorage.getItem("systemKey"), g);
|
|
23
|
+
let y = -1;
|
|
24
|
+
(l = k.value) == null || l.forEach((u, t) => {
|
|
25
|
+
(u == null ? void 0 : u.key) === (a == null ? void 0 : a.key) && (y = t), (y === -1 || y >= t) && n.push(u);
|
|
26
|
+
}), C.setSelectTitle(n), g !== "" ? C.setSelectMenu(a == null ? void 0 : a.key) : (C.setSelectIndex(""), C.setSelectMenu(""));
|
|
27
|
+
}
|
|
28
|
+
S.setItemData(D.value), S.setOriginalData(D.value);
|
|
29
|
+
}, A = async (a, l, n, g = "contentConfig") => {
|
|
30
|
+
var y, u, t;
|
|
31
|
+
try {
|
|
32
|
+
let i, o;
|
|
33
|
+
l === "create" ? (i = {
|
|
34
|
+
key: {
|
|
35
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
36
|
+
pageKey: n,
|
|
37
|
+
type: "structure",
|
|
38
|
+
structureBelong: g,
|
|
39
|
+
parentTable: "",
|
|
40
|
+
version: 1
|
|
41
|
+
},
|
|
42
|
+
value: {
|
|
43
|
+
pageData: {
|
|
44
|
+
...a,
|
|
45
|
+
compData: (y = a == null ? void 0 : a.compData) == null ? void 0 : y.filter((e) => (e == null ? void 0 : e.key) !== "tableContents")
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, o = q) : l === "update" ? (i = {
|
|
49
|
+
id: a == null ? void 0 : a.id,
|
|
50
|
+
key: {
|
|
51
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
52
|
+
pageKey: n,
|
|
53
|
+
type: "structure",
|
|
54
|
+
parentTable: "",
|
|
55
|
+
version: 1
|
|
56
|
+
},
|
|
57
|
+
value: {
|
|
58
|
+
pageData: {
|
|
59
|
+
...a,
|
|
60
|
+
compData: (u = a == null ? void 0 : a.compData) == null ? void 0 : u.filter((e) => (e == null ? void 0 : e.key) !== "tableContents")
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}, o = z) : l === "delete" && (i = {
|
|
64
|
+
id: a,
|
|
65
|
+
key: {
|
|
66
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
67
|
+
pageKey: n,
|
|
68
|
+
type: "structure",
|
|
69
|
+
parentTable: "",
|
|
70
|
+
version: 1
|
|
71
|
+
}
|
|
72
|
+
}, o = G);
|
|
73
|
+
const f = await o(i);
|
|
74
|
+
if (((t = f == null ? void 0 : f.data) == null ? void 0 : t.code) === 200)
|
|
75
|
+
return f.data.result;
|
|
76
|
+
throw T.error("保存响应失败"), new Error("保存响应失败");
|
|
77
|
+
} catch {
|
|
78
|
+
T.error("保存响应失败");
|
|
79
|
+
}
|
|
80
|
+
}, ha = async (a) => {
|
|
81
|
+
var f;
|
|
82
|
+
const l = JSON.parse(N(JSON.stringify(ea.value)));
|
|
83
|
+
if (!sa.value)
|
|
84
|
+
return J.setCacheStructures(l), T.success("已暂存");
|
|
85
|
+
const n = l == null ? void 0 : l.map((e) => e.id), g = n.filter((e) => {
|
|
86
|
+
var r;
|
|
87
|
+
return !((r = B.value) != null && r.includes(e));
|
|
88
|
+
}), y = (f = B.value) == null ? void 0 : f.filter((e) => !n.includes(e)), u = [...g, ...y], t = l == null ? void 0 : l.filter((e) => !e.id), i = l == null ? void 0 : l.filter((e) => e.id);
|
|
89
|
+
let o = [];
|
|
90
|
+
u && (u == null ? void 0 : u.length) > 0 && (u == null || u.forEach((e) => {
|
|
91
|
+
e && o.push(A(e, "delete", a));
|
|
92
|
+
})), t && (t == null ? void 0 : t.length) > 0 && (t == null || t.forEach((e) => {
|
|
93
|
+
e && o.push(A(e, "create", a));
|
|
94
|
+
})), i && (i == null ? void 0 : i.length) > 0 && (i == null || i.forEach((e) => {
|
|
95
|
+
n != null && n.includes(e.id) && (console.log("clickSavePage5", "包含"), e && o.push(A(e, "update", a)));
|
|
96
|
+
})), Promise.all(o).then(() => {
|
|
97
|
+
T.success("保存成功"), S.setRefreshCurStructure(!0);
|
|
98
|
+
}).catch((e) => {
|
|
99
|
+
T.success(e);
|
|
100
|
+
});
|
|
101
|
+
}, ka = (a) => Q(a), D = _([]), wa = async (a, l = "data") => {
|
|
102
|
+
var g, y, u, t, i, o;
|
|
103
|
+
if ((a == null ? void 0 : a.type) === "delete")
|
|
104
|
+
await X((g = a == null ? void 0 : a.singleContent) == null ? void 0 : g.id);
|
|
105
|
+
else if ((a == null ? void 0 : a.buttonName) === "新增") {
|
|
106
|
+
let f = {};
|
|
107
|
+
for (let e in a == null ? void 0 : a.singleContent)
|
|
108
|
+
e !== "id" && e !== "index" && (f[e] = a == null ? void 0 : a.singleContent[e]);
|
|
109
|
+
await Y(
|
|
110
|
+
l,
|
|
111
|
+
I.value,
|
|
112
|
+
a == null ? void 0 : a.index,
|
|
113
|
+
sessionStorage.getItem("systemKey"),
|
|
114
|
+
Object.values(f),
|
|
115
|
+
a == null ? void 0 : a.column
|
|
116
|
+
);
|
|
117
|
+
} else if ((a == null ? void 0 : a.buttonName) === "编辑") {
|
|
118
|
+
let f = {}, e = (y = a == null ? void 0 : a.singleContent) == null ? void 0 : y.id;
|
|
119
|
+
for (let r in a == null ? void 0 : a.singleContent)
|
|
120
|
+
r !== "id" && r !== "index" && (f[r] = a == null ? void 0 : a.singleContent[r]);
|
|
121
|
+
await Z(
|
|
122
|
+
l,
|
|
123
|
+
I.value,
|
|
124
|
+
a == null ? void 0 : a.index,
|
|
125
|
+
e,
|
|
126
|
+
sessionStorage.getItem("systemKey"),
|
|
127
|
+
Object.values(f),
|
|
128
|
+
a == null ? void 0 : a.column
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
let n = (t = (u = k.value) == null ? void 0 : u[k.value.length - 1]) != null && t.key ? parseInt((o = (i = k.value) == null ? void 0 : i[k.value.length - 1]) == null ? void 0 : o.key) : "";
|
|
132
|
+
D.value = await E(I.value, sessionStorage.getItem("systemKey"), n), S.setItemData(D.value), S.setOriginalData(D.value);
|
|
133
|
+
}, la = async (a) => {
|
|
134
|
+
var n, g, y, u, t;
|
|
135
|
+
const l = await H({
|
|
136
|
+
id: a
|
|
137
|
+
});
|
|
138
|
+
return (t = (u = (y = (g = (n = l == null ? void 0 : l.data) == null ? void 0 : n.result) == null ? void 0 : g[0]) == null ? void 0 : y.value) == null ? void 0 : u.pageData) == null ? void 0 : t.name;
|
|
139
|
+
}, xa = async (a) => {
|
|
140
|
+
var g, y;
|
|
141
|
+
const l = await la(a == null ? void 0 : a.index);
|
|
142
|
+
await W(a == null ? void 0 : a.index, {
|
|
143
|
+
comp: "Form",
|
|
144
|
+
compData: (g = N(a == null ? void 0 : a.contents)) == null ? void 0 : g.filter((u) => u.contents),
|
|
145
|
+
name: l
|
|
146
|
+
});
|
|
147
|
+
const n = (y = N(D.value)) == null ? void 0 : y.map((u) => ((u == null ? void 0 : u.id) === (a == null ? void 0 : a.index) && (u.compData = a == null ? void 0 : a.contents), u));
|
|
148
|
+
S.setItemData(n), S.setOriginalData(n);
|
|
149
|
+
}, Ka = (a) => {
|
|
150
|
+
D.value = a, S.setItemData(D.value), S.setOriginalData(D.value);
|
|
151
|
+
}, F = (a) => {
|
|
152
|
+
var l, n, g;
|
|
153
|
+
return ((n = (l = U.value) == null ? void 0 : l.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? !0 : ((g = U.value) == null ? void 0 : g.account) === (a == null ? void 0 : a.account);
|
|
154
|
+
}, j = async (a, l, n) => {
|
|
155
|
+
const g = O("/系统管理/角色管理"), y = O("/系统管理/部门管理");
|
|
156
|
+
return await Promise.all([g, y]).then((t) => {
|
|
157
|
+
var f, e;
|
|
158
|
+
const i = (f = t == null ? void 0 : t[0]) == null ? void 0 : f.map((r) => ({
|
|
159
|
+
label: r == null ? void 0 : r.roleName,
|
|
160
|
+
value: r == null ? void 0 : r.roleName
|
|
161
|
+
})), o = (e = t == null ? void 0 : t[1]) == null ? void 0 : e.map((r) => ({
|
|
162
|
+
label: r == null ? void 0 : r.deptName,
|
|
163
|
+
value: r == null ? void 0 : r.deptName
|
|
164
|
+
}));
|
|
165
|
+
return n ? a == null ? void 0 : a.map((r) => {
|
|
166
|
+
var h;
|
|
167
|
+
return {
|
|
168
|
+
...r,
|
|
169
|
+
compData: (h = r == null ? void 0 : r.compData) == null ? void 0 : h.map((s) => {
|
|
170
|
+
var x, K;
|
|
171
|
+
return (s == null ? void 0 : s.key) === "header" ? {
|
|
172
|
+
...s,
|
|
173
|
+
contents: (x = s == null ? void 0 : s.contents) == null ? void 0 : x.map((d) => d.prop === "userDept" ? {
|
|
174
|
+
...d,
|
|
175
|
+
options: o
|
|
176
|
+
} : d.prop === "userRoles" ? {
|
|
177
|
+
...d,
|
|
178
|
+
options: i
|
|
179
|
+
} : d)
|
|
180
|
+
} : (s == null ? void 0 : s.key) === "tableContents" ? {
|
|
181
|
+
...s,
|
|
182
|
+
contents: (K = s == null ? void 0 : s.contents) == null ? void 0 : K.map((d) => {
|
|
183
|
+
var v;
|
|
184
|
+
return {
|
|
185
|
+
...d,
|
|
186
|
+
password: F(d) ? p(d == null ? void 0 : d.password, (v = w == null ? void 0 : w.value) == null ? void 0 : v.privateKey) : d == null ? void 0 : d.password
|
|
187
|
+
};
|
|
188
|
+
})
|
|
189
|
+
} : s;
|
|
190
|
+
})
|
|
191
|
+
};
|
|
192
|
+
}) : a == null ? void 0 : a.map((r) => {
|
|
193
|
+
var h;
|
|
194
|
+
return {
|
|
195
|
+
...r,
|
|
196
|
+
compData: (h = r == null ? void 0 : r.compData) == null ? void 0 : h.map((s) => {
|
|
197
|
+
var x, K, d;
|
|
198
|
+
return (s == null ? void 0 : s.key) === "rowButton" || (s == null ? void 0 : s.key) === "extraButton" ? {
|
|
199
|
+
...s,
|
|
200
|
+
contents: (x = s == null ? void 0 : s.contents) == null ? void 0 : x.filter((v) => l == null ? void 0 : l.includes(v == null ? void 0 : v.label))
|
|
201
|
+
} : (s == null ? void 0 : s.key) === "header" ? {
|
|
202
|
+
...s,
|
|
203
|
+
contents: (K = s == null ? void 0 : s.contents) == null ? void 0 : K.map((v) => v.prop === "userDept" ? {
|
|
204
|
+
...v,
|
|
205
|
+
options: o
|
|
206
|
+
} : v.prop === "userRoles" ? {
|
|
207
|
+
...v,
|
|
208
|
+
options: i
|
|
209
|
+
} : v)
|
|
210
|
+
} : (s == null ? void 0 : s.key) === "tableContents" ? {
|
|
211
|
+
...s,
|
|
212
|
+
contents: (d = s == null ? void 0 : s.contents) == null ? void 0 : d.map((v) => {
|
|
213
|
+
var M;
|
|
214
|
+
return {
|
|
215
|
+
...v,
|
|
216
|
+
password: F(v) ? p(v == null ? void 0 : v.password, (M = w == null ? void 0 : w.value) == null ? void 0 : M.privateKey) : v == null ? void 0 : v.password
|
|
217
|
+
};
|
|
218
|
+
})
|
|
219
|
+
} : s;
|
|
220
|
+
})
|
|
221
|
+
};
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
$(
|
|
226
|
+
() => [I.value, ra.value],
|
|
227
|
+
async (a) => {
|
|
228
|
+
var g;
|
|
229
|
+
const l = a == null ? void 0 : a[0], n = a == null ? void 0 : a[1];
|
|
230
|
+
if (l || n) {
|
|
231
|
+
c(), sessionStorage.setItem("pageKey", I.value);
|
|
232
|
+
const y = await E(l, sessionStorage.getItem("systemKey"), "", I.value);
|
|
233
|
+
S.setExtraContents([]);
|
|
234
|
+
const u = sessionStorage.getItem("authority"), t = JSON.parse(u || "");
|
|
235
|
+
if (Array.isArray(t)) {
|
|
236
|
+
const i = Array.isArray(t) && (t == null ? void 0 : t.filter((f) => f == null ? void 0 : f.includes(l))), o = i == null ? void 0 : i.map((f) => {
|
|
237
|
+
var e;
|
|
238
|
+
return ((e = f == null ? void 0 : f.split("/")) == null ? void 0 : e.pop()) || "";
|
|
239
|
+
});
|
|
240
|
+
D.value = l === "/系统管理/用户管理" ? await j(y, o, !1) : y == null ? void 0 : y.map((f) => {
|
|
241
|
+
var e;
|
|
242
|
+
return {
|
|
243
|
+
...f,
|
|
244
|
+
compData: (e = f == null ? void 0 : f.compData) == null ? void 0 : e.map((r) => {
|
|
245
|
+
var h;
|
|
246
|
+
return (r == null ? void 0 : r.key) === "rowButton" || (r == null ? void 0 : r.key) === "extraButton" ? {
|
|
247
|
+
...r,
|
|
248
|
+
contents: (h = r == null ? void 0 : r.contents) == null ? void 0 : h.filter((s) => o == null ? void 0 : o.includes(s == null ? void 0 : s.label))
|
|
249
|
+
} : r;
|
|
250
|
+
})
|
|
251
|
+
};
|
|
252
|
+
});
|
|
253
|
+
} else typeof t == "string" && (t == null ? void 0 : t.toUpperCase()) === "SUPERADMIN" ? D.value = l === "/系统管理/用户管理" ? await j(y, null, !0) : y : D.value = [];
|
|
254
|
+
C.setSelectTitle([]), C.setSelectIndex(""), C.setSelectMenu(""), S.setItemData(D.value), S.setOriginalData(D.value), S.setCurStructureCompIds((g = D.value) == null ? void 0 : g.map((i) => i == null ? void 0 : i.id)), S.setRefreshCurStructure(!1), k.value = I.value.split("/").filter((i) => i !== "").map((i) => ({ value: i.trim() }));
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
immediate: !0
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
export {
|
|
262
|
+
Ia as a,
|
|
263
|
+
Da as b,
|
|
264
|
+
ha as c,
|
|
265
|
+
Ka as d,
|
|
266
|
+
xa as e,
|
|
267
|
+
wa as f,
|
|
268
|
+
ka as g,
|
|
269
|
+
Ca as o,
|
|
270
|
+
D as s
|
|
271
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),c=require("./menu-
|
|
1
|
+
"use strict";const n=require("vue"),c=require("./menu-PjSpUL7w.cjs"),u=require("./index-DJXxlOVw.cjs"),g=require("./modelComp-qapurFEA.cjs"),D=g.useModelComp(),{itemData:m}=c.storeToRefs(D),p=n.ref(0),f=n.ref([{label:"机构名称",value:"",name:"deptName"}]),i=e=>{console.log("handleQueryChange",e)},r=n.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),C=e=>{u.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},h=e=>{console.log("onDoubleClick",e)},k=(e,a)=>{console.log("onButtonClick",e,a)},A=async e=>{const a=await u.handleSubmitAsync(c.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var o;return{id:t.id,tableData:(o=t==null?void 0:t.value)==null?void 0:o.tableData}});return l==null?void 0:l.map(t=>{var o;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(o=t==null?void 0:t.tableData)==null||o.forEach((y,d)=>{s[`a${d}`]=y}),s}else return{...t.tableData,id:t.id}})},b={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:r.value,name:""}]}]};n.watch(()=>m.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(r.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:A,handleItemDataChange:C,handleQueryChange:i,onButtonClick:k,onDoubleClick:h,pageData:r,queryFormData:f,structureId:p,tempPostPageData:b},Symbol.toStringTag,{value:"Module"}));exports.State=S;exports.tempPostPageData=b;
|