ss-component-new 1.1.364 → 1.1.366
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-BnmBbQPI.cjs → array-B4OYH6uL.cjs} +1 -1
- package/dist/{array-CoXgHY3i.js → array-EGWOD_Yi.js} +2 -2
- package/dist/{cloneDeep-Dy5dFCeS.cjs → cloneDeep-BPCav0OY.cjs} +1 -1
- package/dist/{cloneDeep-CwA9j1vy.js → cloneDeep-D3jWUY57.js} +1 -1
- package/dist/icons/svg//345/215/217/344/275/234/345/215/225/344/275/215.svg +1 -0
- package/dist/icons/svg//345/244/247/345/261/217.svg +1 -0
- package/dist/icons/svg//345/256/241/346/211/271/344/270/255/345/277/203.svg +1 -0
- package/dist/icons/svg//346/212/245/345/221/212/344/270/255/345/277/203.svg +1 -0
- package/dist/icons/svg//346/226/207/346/241/243/347/256/241/347/220/206.svg +1 -0
- package/dist/icons/svg//347/237/245/350/257/206/345/272/223.svg +1 -0
- package/dist/icons/svg//347/263/273/347/273/237/347/256/241/347/220/206.svg +1 -0
- package/dist/icons/svg//347/273/217/351/252/214/345/217/215/351/246/210.svg +1 -0
- package/dist/icons/svg//350/200/203/346/240/270.svg +1 -0
- package/dist/icons/svg//350/264/250/351/207/217/350/256/241/345/210/222.svg +1 -0
- package/dist/icons/svg//350/265/204/350/264/250/347/256/241/347/220/206.svg +1 -0
- package/dist/icons/svg//351/241/271/347/233/256/347/256/241/347/220/206.svg +1 -0
- package/dist/{index-NuqFpLyU.cjs → index-1LyKu48J.cjs} +1 -1
- package/dist/{index-DYl24oB8.js → index-1mb-R5LL.js} +8 -8
- package/dist/{index-Cbpq_gpB.cjs → index-9Kq2L6hA.cjs} +1 -1
- package/dist/{index-DP9P1892.cjs → index-B1KIGMDS.cjs} +1 -1
- package/dist/{index-BUqdg04C.js → index-B6D0Zmro.js} +1416 -1380
- package/dist/{index-52SvlRVs.js → index-B7rnt0a7.js} +3 -3
- package/dist/{index-Dz0nHrbF.cjs → index-B8PQq8Z4.cjs} +1 -1
- package/dist/{index-CQv3Jstw.cjs → index-BBvGttI3.cjs} +1 -1
- package/dist/{index-Dec8Y9Zf.cjs → index-BK34ZIUl.cjs} +1 -1
- package/dist/{index-D7mLmp83.js → index-BPLD6fuH.js} +8 -8
- package/dist/{index-BxNT3wgP.js → index-BQQE4RO9.js} +4 -4
- package/dist/{index-CV-BE9OE.js → index-BSd6lCCf.js} +3 -3
- package/dist/{index-Cwh1eSDP.js → index-BWoxDyyu.js} +1 -1
- package/dist/{index-BB0OtUe7.cjs → index-BXO1mk6t.cjs} +1 -1
- package/dist/{index-UquIDMOO.js → index-Bo8sDOPU.js} +4 -4
- package/dist/{index-XPenc98C.cjs → index-BovJtyyV.cjs} +1 -1
- package/dist/{index-wHMqAzUm.js → index-Bxt_jC-e.js} +3 -3
- package/dist/{index-ROFtYC6z.cjs → index-C67VR66n.cjs} +1 -1
- package/dist/index-CAfIBffc.cjs +9 -0
- package/dist/{index-oJADwY4m.cjs → index-CEVLI-tF.cjs} +1 -1
- package/dist/{index-BjNCwIeG.js → index-CMza6E0Y.js} +6 -6
- package/dist/{index-DS2sAuen.cjs → index-CN73stto.cjs} +1 -1
- package/dist/{index-Ch4krhRC.js → index-CTASWvkf.js} +9 -9
- package/dist/{index-9E81KAfo.js → index-C_zK0qeZ.js} +3 -3
- package/dist/{index-DcAqCNbe.js → index-Cal7dRFc.js} +4 -4
- package/dist/{index-D5mKWeDb.cjs → index-Cd0GOTJL.cjs} +1 -1
- package/dist/{index-B5T3LsC3.cjs → index-CdrtM6Jl.cjs} +1 -1
- package/dist/{index-dhBnWB5Z.cjs → index-Cj9Wq_7v.cjs} +1 -1
- package/dist/{index-B1u49T--.js → index-CkgqQw5c.js} +4 -4
- package/dist/{index-BCwNAD3A.js → index-Cks4xBFc.js} +7 -7
- package/dist/{index-Dr9lgXoc.cjs → index-Cnigg-Vb.cjs} +1 -1
- package/dist/{index-CfRWsPgM.cjs → index-CylVtJFa.cjs} +1 -1
- package/dist/{index-Dkm0wN4p.js → index-D0Xtu3c5.js} +4 -4
- package/dist/{index-DEm1LpWK.js → index-DPoMcIHZ.js} +7 -7
- package/dist/{index-3OpNclwG.js → index-DQXp-tQk.js} +1 -1
- package/dist/{index-DWZHhy_V.js → index-DQewAWSX.js} +5 -5
- package/dist/{index-xBPDr3sD.js → index-DXu2C7E2.js} +1 -1
- package/dist/{index-SHYlTVRh.cjs → index-D_80-VnL.cjs} +1 -1
- package/dist/{index-grf4gSFe.js → index-DgdlwjkF.js} +5 -5
- package/dist/{index-Ceqxw_cw.cjs → index-Dj7KpYhE.cjs} +1 -1
- package/dist/{index-OkDXopK2.js → index-DjI83upr.js} +6 -6
- package/dist/index-Dp7ftR-s.cjs +1 -0
- package/dist/{index-AurbPhHi.js → index-Dq0BnanX.js} +6 -6
- package/dist/{index-BVc75PbV.js → index-DsSqH7Ku.js} +5 -5
- package/dist/{index-pgYv9_PB.js → index-DxeIJqcl.js} +1 -1
- package/dist/{index-CMz0BmPv.js → index-Dy0Bjmrr.js} +887 -886
- package/dist/{index-sp9vf12b.cjs → index-EgiRVqNe.cjs} +1 -1
- package/dist/{index-Cte3A-ng.cjs → index-FipljzbJ.cjs} +1 -1
- package/dist/{index-DVPNA13U.cjs → index-FnUvbwkl.cjs} +1 -1
- package/dist/{index-De3R1PCZ.js → index-KKYTpn-0.js} +4 -4
- package/dist/{index-DuHV4sNg.cjs → index-Xd0gl2O5.cjs} +1 -1
- package/dist/{index-D6BQtw_W.cjs → index-h3vgrWAC.cjs} +1 -1
- package/dist/{index-pySbiIPm.cjs → index-qWPIXtmB.cjs} +1 -1
- package/dist/{index-CkpQldcX.cjs → index-r4-byc3l.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BZHXpauK.js → index.vue_vue_type_script_setup_true_lang-CE6ciJHv.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B_YhYlYV.cjs → index.vue_vue_type_script_setup_true_lang-CEx7p4se.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_14b5611b_lang-DQ97N26I.js → index.vue_vue_type_style_index_0_scoped_23015cb0_lang-BfO2BZm9.js} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_14b5611b_lang-CAG1GMeZ.cjs → index.vue_vue_type_style_index_0_scoped_23015cb0_lang-_1kiYpwh.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-BX_0yNEO.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_3b5a08f3_lang-DxqERf1u.js → index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-CpZkvXyX.js} +46 -30
- package/dist/{login-PGedYbj-.js → login-DKf6sQrA.js} +2 -2
- package/dist/{login-DTmViDym.cjs → login-cDG_pssN.cjs} +1 -1
- package/dist/{main-D0IMoIdE.cjs → main-BY1dJ_uK.cjs} +1 -1
- package/dist/{main-DFykne60.js → main-DnQRFkkz.js} +7 -7
- package/dist/{menu-CIMPolCv.cjs → menu-Bi2msF1Z.cjs} +1 -1
- package/dist/{menu-Ddb22jBf.js → menu-eau-OVSc.js} +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 +1 -1
- package/public/icons/svg//345/215/217/344/275/234/345/215/225/344/275/215.svg +1 -0
- package/public/icons/svg//345/244/247/345/261/217.svg +1 -0
- package/public/icons/svg//345/256/241/346/211/271/344/270/255/345/277/203.svg +1 -0
- package/public/icons/svg//346/212/245/345/221/212/344/270/255/345/277/203.svg +1 -0
- package/public/icons/svg//346/226/207/346/241/243/347/256/241/347/220/206.svg +1 -0
- package/public/icons/svg//347/237/245/350/257/206/345/272/223.svg +1 -0
- package/public/icons/svg//347/263/273/347/273/237/347/256/241/347/220/206.svg +1 -0
- package/public/icons/svg//347/273/217/351/252/214/345/217/215/351/246/210.svg +1 -0
- package/public/icons/svg//350/200/203/346/240/270.svg +1 -0
- package/public/icons/svg//350/264/250/351/207/217/350/256/241/345/210/222.svg +1 -0
- package/public/icons/svg//350/265/204/350/264/250/347/256/241/347/220/206.svg +1 -0
- package/public/icons/svg//351/241/271/347/233/256/347/256/241/347/220/206.svg +1 -0
- package/dist/index-BbfmLvrO.cjs +0 -9
- package/dist/index-DLMnf2bj.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_3b5a08f3_lang-Dq3rXz7I.cjs +0 -1
|
@@ -6017,12 +6017,12 @@ const I9 = N4(P, "$notify"), D9 = [
|
|
|
6017
6017
|
{
|
|
6018
6018
|
path: "/login",
|
|
6019
6019
|
name: "Login",
|
|
6020
|
-
component: async () => import("./index-
|
|
6020
|
+
component: async () => import("./index-DgdlwjkF.js")
|
|
6021
6021
|
},
|
|
6022
6022
|
{
|
|
6023
6023
|
path: "/",
|
|
6024
6024
|
name: "Model",
|
|
6025
|
-
component: async () => import("./index-
|
|
6025
|
+
component: async () => import("./index-Dy0Bjmrr.js"),
|
|
6026
6026
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
6027
6027
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
6028
6028
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
|
@@ -6030,37 +6030,37 @@ const I9 = N4(P, "$notify"), D9 = [
|
|
|
6030
6030
|
{
|
|
6031
6031
|
path: "平台管理/菜单管理",
|
|
6032
6032
|
name: "Menu",
|
|
6033
|
-
component: async () => import("./index-
|
|
6033
|
+
component: async () => import("./index-DPoMcIHZ.js")
|
|
6034
6034
|
},
|
|
6035
6035
|
{
|
|
6036
6036
|
path: "平台管理/主菜单管理",
|
|
6037
6037
|
name: "MainMenu",
|
|
6038
|
-
component: async () => import("./index-
|
|
6038
|
+
component: async () => import("./index-D0Xtu3c5.js")
|
|
6039
6039
|
},
|
|
6040
6040
|
{
|
|
6041
6041
|
path: "系统管理/个人中心",
|
|
6042
6042
|
name: "PersonalCenter",
|
|
6043
|
-
component: async () => import("./index-
|
|
6043
|
+
component: async () => import("./index-DQewAWSX.js")
|
|
6044
6044
|
},
|
|
6045
6045
|
{
|
|
6046
6046
|
path: "系统管理/职位管理",
|
|
6047
6047
|
name: "Post",
|
|
6048
|
-
component: async () => import("./index-
|
|
6048
|
+
component: async () => import("./index-BQQE4RO9.js")
|
|
6049
6049
|
},
|
|
6050
6050
|
{
|
|
6051
6051
|
path: "系统管理/用户管理",
|
|
6052
6052
|
name: "User",
|
|
6053
|
-
component: async () => import("./index-
|
|
6053
|
+
component: async () => import("./index-DjI83upr.js")
|
|
6054
6054
|
},
|
|
6055
6055
|
{
|
|
6056
6056
|
path: "系统管理/角色管理",
|
|
6057
6057
|
name: "Role",
|
|
6058
|
-
component: async () => import("./index-
|
|
6058
|
+
component: async () => import("./index-DsSqH7Ku.js")
|
|
6059
6059
|
},
|
|
6060
6060
|
{
|
|
6061
6061
|
path: "系统管理/部门管理",
|
|
6062
6062
|
name: "Dept",
|
|
6063
|
-
component: async () => import("./index-
|
|
6063
|
+
component: async () => import("./index-KKYTpn-0.js")
|
|
6064
6064
|
},
|
|
6065
6065
|
{
|
|
6066
6066
|
path: "priority",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed as b, getCurrentInstance as qe, inject as ve, unref as u, ref as A, onMounted as ie, watch as W, toRef as Ke, onUnmounted as Vn, shallowRef as Ve, nextTick as V, defineComponent as Z, useAttrs as _n, useSlots as un, createElementBlock as F, openBlock as E, normalizeStyle as Ye, normalizeClass as w, createCommentVNode as k, Fragment as _e, createElementVNode as P, renderSlot as Y, createBlock as M, withCtx as L, resolveDynamicComponent as K, mergeProps as ut, withModifiers as ke, createVNode as oe, toDisplayString as J, onBeforeUnmount as xe, provide as cn, Text as Dn, reactive as dn, h as Un, watchEffect as Kn, isRef as Yn, onScopeDispose as Wn, markRaw as ct, toRefs as Gn, resolveComponent as Ce, Transition as qn, withDirectives as tt, withKeys as Re, createTextVNode as nt, vShow as ot, isVNode as fn, render as vn } from "vue";
|
|
2
|
-
import { S as Ft, i as pn, c as bt, t as hn, d as Pt, f as Xn, g as se, h as Ht, j as Xe, k as de, m as ye, n as We, o as gn, p as fe, q 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 De, H as ao, I as Ge, J as mn, K as yt, L as ro, M as dt, O as so, 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 _t, a1 as ho } from "./index-
|
|
2
|
+
import { S as Ft, i as pn, c as bt, t as hn, d as Pt, f as Xn, g as se, h as Ht, j as Xe, k as de, m as ye, n as We, o as gn, p as fe, q 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 De, H as ao, I as Ge, J as mn, K as yt, L as ro, M as dt, O as so, 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 _t, a1 as ho } from "./index-CTASWvkf.js";
|
|
3
3
|
import { m as go } from "./typescript-BpuhIBuJ.js";
|
|
4
|
-
import { d as Dt, i as bn, a as mo, 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 Dt, i as bn, a as mo, b as bo, e as yn, f as yo } from "./cloneDeep-D3jWUY57.js";
|
|
5
|
+
import { i as En } from "./index.vue_vue_type_script_setup_true_lang-CE6ciJHv.js";
|
|
6
6
|
function Eo(e) {
|
|
7
7
|
return e;
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ } from "./index.
|
|
1
|
+
import { _ } from "./index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-CpZkvXyX.js";
|
|
2
2
|
import { resolveComponent as i, createElementBlock as s, openBlock as t, Fragment as l, createVNode as a, withCtx as u, createElementVNode as r, toDisplayString as c, renderList as g, createBlock as f, resolveDynamicComponent as h } from "vue";
|
|
3
3
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const D = ["title"], v = { class: "menu-operate-icon" }, y = { class: "module-dialog-content" };
|
|
5
|
-
function I(n, m, w, B, $,
|
|
5
|
+
function I(n, m, w, B, $, p) {
|
|
6
6
|
const d = i("svg-icon"), C = i("ssMenu"), M = i("ssDialog");
|
|
7
7
|
return t(), s(l, null, [
|
|
8
8
|
a(C, {
|
|
@@ -25,7 +25,7 @@ function I(n, m, w, B, $, b) {
|
|
|
25
25
|
(t(!0), s(l, null, g(e == null ? void 0 : e.config, (o) => (t(), f(d, {
|
|
26
26
|
key: o.id,
|
|
27
27
|
name: o == null ? void 0 : o.menuIcon,
|
|
28
|
-
onClick: (
|
|
28
|
+
onClick: (L) => n.clickMenuIcon(o)
|
|
29
29
|
}, null, 8, ["name", "onClick"]))), 128))
|
|
30
30
|
])
|
|
31
31
|
]),
|
|
@@ -57,7 +57,7 @@ function I(n, m, w, B, $, b) {
|
|
|
57
57
|
}, 8, ["title", "visible", "width", "onBeforeDestroy"])
|
|
58
58
|
], 64);
|
|
59
59
|
}
|
|
60
|
-
const N = /* @__PURE__ */ k(_, [["render", I], ["__scopeId", "data-v-
|
|
60
|
+
const N = /* @__PURE__ */ k(_, [["render", I], ["__scopeId", "data-v-3a02a8a3"]]);
|
|
61
61
|
export {
|
|
62
62
|
N as default
|
|
63
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./index-Cj9Wq_7v.cjs");require("./index-BovJtyyV.cjs");require("./array-B4OYH6uL.cjs");const l=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_3a02a8a3_lang-BX_0yNEO.cjs");require("./index.vue_vue_type_style_index_0_scoped_23015cb0_lang-_1kiYpwh.cjs");require("./login-cDG_pssN.cjs");require("./menu-Bi2msF1Z.cjs");require("./index-BpPyaNFa.cjs");require("./index-Dj7KpYhE.cjs");const w={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""}},setup(o){const e=o,i=()=>{var r;const d=e!=null&&e.windowConfig?(r=e==null?void 0:e.windowConfig)==null?void 0:r.width:window.innerWidth,u=1920,n=16,c=d/u,a=n*c;document.documentElement.style.fontSize=`${a}px`};return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),(d,u)=>{const n=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(n,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:o.windowConfig},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig"])])}}},s=l._export_sfc(w,[["__scopeId","data-v-62009028"]]);exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("vue"),r=require("./menu-
|
|
1
|
+
"use strict";const c=require("vue"),r=require("./menu-Bi2msF1Z.cjs"),F=require("./login-cDG_pssN.cjs"),q=require("./index-Dj7KpYhE.cjs"),D=require("./cloneDeep-BPCav0OY.cjs"),z=r.useMenuState(),{activeMenuPath:b}=r.storeToRefs(z),w=F.useLoginState(),{structureData:O}=r.storeToRefs(w),_=q.useModelComp(),{itemData:j}=r.storeToRefs(_),H=c.ref([{label:"角色名称",value:"",name:"roleName"}]),L=c.ref([{label:"查询"},{label:"重置"}]),S=c.reactive({isFilter:!1,filterForm:{}}),Q=c.ref(!1),U=a=>{console.log("handleQueryChange",a),S.isFilter=!0,S.filterForm=a},f=c.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"授权",textColor:"blue"},{label:"编辑"},{label:"删除",textColor:"red"}]},{key:"header",contents:[{label:"角色名称",prop:"roleName"},{label:"角色状态",formType:"Radio",prop:"roleStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"角色排序",prop:"roleOrder",formType:"Number"},{label:"备注",prop:"remark",formType:"TextArea"},{label:"权限",prop:"roleAuthority",isTableColHidden:!0,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:[]}]),V=c.computed(()=>f.value),$=a=>{m(a.singleContent,a.buttonName)},B=c.ref({}),k=c.ref(),g=async(a,e,l)=>{var t,n;try{const s=await a(e);return((t=s==null?void 0:s.data)==null?void 0:t.code)===200?(l!=="查询"&&await w.setLogRecordAsync({type:l,data:e},b.value),s.data.result||((n=s==null?void 0:s.data)==null?void 0:n.code)===200):null}catch(s){r.ElMessage.error(s)}},I=(a,e)=>{e==null||e.forEach(l=>{a==null||a.forEach(t=>{var n;t.path==l.path&&(t.checkedButtons=l.checkedButtons),t.children&&((n=t.children)==null?void 0:n.length)>0&&I(t.children,e)})})},T=a=>a==null?void 0:a.map(e=>{var t;const l={...e,checkedButtons:[]};return l.children&&((t=l.children)==null?void 0:t.length)>0&&(l.children=T(l.children)),l}),G=async(a,e)=>{switch(B.value=D.cloneDeep(e),a){case"授权":u.title=`【${e.roleName}】授权`,u.show=!0,await c.nextTick(),e.roleAuthority&&Array.isArray(e.roleAuthority)&&I(p.value,e.roleAuthority);break}},J=()=>{u.show=!1},d=c.ref(),W=async a=>{const e=await g(r.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:a}},"查询"),l=e==null?void 0:e.map(t=>{var n;return{id:t.id,tableData:(n=t==null?void 0:t.value)==null?void 0:n.tableData}});return l==null?void 0:l.map(t=>{var n;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(n=t==null?void 0:t.tableData)==null||n.forEach((o,y)=>{s[`a${y}`]=o}),s}else return{...t.tableData,id:t.id}})},m=(a,e)=>{const l=D.cloneDeep(a);l!=null&&l.id&&delete l.id,e==="新增"?g(r.createInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value,tableId:v.value},value:{tableData:l}},e).then(t=>{d.value={...a,newId:t},e&&t&&r.ElMessage.success(e+"成功")}):e==="编辑"?(console.log("编辑角色",l),g(r.updateInsofDataApi,{id:a.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value,tableId:v.value},value:{tableData:l}},e).then(t=>{e&&t&&r.ElMessage.success(e+"成功"),u.show=!1})):e==="删除"&&g(r.deleteInsofDataApi,{id:a.id},e).then(t=>{e&&t&&r.ElMessage.success(e+"成功")})},K=a=>{let e=[];return a==null||a.forEach(l=>{var t;if(l.checkedButtons&&((t=l.checkedButtons)==null?void 0:t.length)>0){const n={path:l.path,checkedButtons:l.checkedButtons};e=e.concat(n)}l.children&&(e=e.concat(K(l.children)))}),e},X=()=>{d.value={...B.value,roleAuthority:K(p.value)},c.nextTick(()=>{console.log("clickSubmitAuthority",d.value,f.value),m(d.value,"编辑")})},u=c.reactive({show:!1,title:"角色授权",width:"35%",draggable:!0}),Y=({isPenultimate:a},e)=>{var l,t;return console.log("isPenultimate",a,e),((t=(l=e==null?void 0:e.data)==null?void 0:l.renderButtons)==null?void 0:t.length)>0?"is-penultimate":""},v=c.ref(0),M=async()=>{var l,t,n,s,o;let a;const e=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:b.value}});return((l=e==null?void 0:e.data)==null?void 0:l.code)===200&&(t=e==null?void 0:e.data)!=null&&t.result&&((n=e==null?void 0:e.data)==null?void 0:n.result.length)>0&&(a=(o=(s=e==null?void 0:e.data.result)==null?void 0:s[0])==null?void 0:o.id),a},p=c.ref([]),Z=c.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),ee=(a,e)=>{var l;a.checkedButtons=e?(l=a.renderButtons)==null?void 0:l.map(t=>t.path):[],console.log("handleNodeCheckChange",a,e)},h=c.ref([]),te=(a,e)=>{var l,t,n;e.checkedButtons=a,((l=e.checkedButtons)==null?void 0:l.length)===((t=e.renderButtons)==null?void 0:t.length)?h.value.push(e.path):(a==null?void 0:a.length)===0&&(h.value=(n=h.value)==null?void 0:n.filter(s=>s!==e.path))};c.watch(()=>h.value.length,()=>{var e,l;const a=(e=k.value)==null?void 0:e.getCheckedKeys();console.log(112,h.value,a),(l=k.value)==null||l.setCheckedKeys([...h.value])});c.watch(()=>u.show,a=>{a||(p.value=T(p.value))});const P=c.computed(()=>{var l;const a=(l=D.cloneDeep(O.value))==null?void 0:l.filter(t=>{var n,s;return((s=(n=t==null?void 0:t.key)==null?void 0:n.pageKey)==null?void 0:s.toUpperCase())!=="MENU"});return[...a==null?void 0:a.map(t=>{var o,y,A,C;const n=/button/i;let s=(A=(y=(o=t==null?void 0:t.value)==null?void 0:o.pageData)==null?void 0:y.compData)==null?void 0:A.filter(i=>n.test(i==null?void 0:i.key));return s=Array.from(new Set(s==null?void 0:s.flatMap(i=>i.contents.map(R=>R.label)))),{path:(C=t==null?void 0:t.key)==null?void 0:C.pageKey,buttons:s}}),...x.value]}),x=c.ref([]),E=(a,e)=>{if(Array.isArray(a))return a==null?void 0:a.map(l=>{var n,s;const t=e==null?void 0:e.find(o=>(o==null?void 0:o.path)===(l==null?void 0:l.path));return l.children&&l.children.length>0?{...l,renderButtons:l.carryData?(n=t==null?void 0:t.buttons)==null?void 0:n.map(o=>({title:o,path:l.path+"/"+o})):[],checkedButtons:[],children:E(l.children,P.value)}:{...l,renderButtons:l.carryData?(s=t==null?void 0:t.buttons)==null?void 0:s.map(o=>({title:o,path:l.path+"/"+o})):[],checkedButtons:[]}})},N={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:f.value,name:""}]}]};c.watch(()=>j.value,a=>{var e;a&&(a==null?void 0:a.length)>0&&(f.value=(e=a==null?void 0:a[0])==null?void 0:e.compData)});const ae=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:E,authorizeDialog:u,buttonValue:L,changedRow:d,clickRow:B,clickRowButton:G,clickSubmitAuthority:X,closeAuthorizeDialog:J,customNodeClass:Y,getActivePageStructureId:M,getPageDataAsync:W,handleItemDataChange:$,handleNodeBtnChange:te,handleNodeCheckChange:ee,handleQueryChange:U,handleSubmitAsync:g,isPageDataExist:Q,menuData:p,menusButtons:Z,pageData:f,pageDataFiltered:V,queryFormData:H,structureButtons:P,structureId:v,submitTableAsyncByVerify:m,tempRolePageData:N,tempSysMenus:x,treeRef:k},Symbol.toStringTag,{value:"Module"}));exports.State=ae;exports.authorizeDialog=u;exports.getActivePageStructureId=M;exports.tempRolePageData=N;
|