ss-component-new 1.1.261 → 1.1.262
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-CGcjUVKX.cjs → array-BdJe1Isx.cjs} +1 -1
- package/dist/{array-BKq3BIQz.js → array-DnpEPYrW.js} +2 -2
- package/dist/{cloneDeep-B7uQBoFQ.cjs → cloneDeep-CuzxIr2L.cjs} +1 -1
- package/dist/{cloneDeep-C2Kxf4cz.js → cloneDeep-E3wKN3B0.js} +1 -1
- package/dist/{index-CW3K0wJl.cjs → index-1hfdjpZa.cjs} +1 -1
- package/dist/{index-LztiiC8W.js → index-B2gB_eHu.js} +13 -13
- package/dist/{index-BTE2McnW.cjs → index-BCgmgSo6.cjs} +1 -1
- package/dist/{index-DiqIaffC.js → index-BDiy9l4J.js} +6 -6
- package/dist/{index-DJt9epxc.js → index-BIxHHxhy.js} +3 -3
- package/dist/{index-CcWrPjiF.js → index-BM5XhVdC.js} +1 -1
- package/dist/{index-SuPnthkA.cjs → index-BQz6TAOh.cjs} +1 -1
- package/dist/{index-CPLQkq0l.cjs → index-BR6ludiV.cjs} +1 -1
- package/dist/{index-BxNkT68g.js → index-BYgVh4wp.js} +31 -31
- package/dist/{index-BEUHy5vT.js → index-B_SWF15M.js} +5 -5
- package/dist/{index-DqW6UiIO.cjs → index-BaKNxwnN.cjs} +1 -1
- package/dist/{index-Clc0UQZs.cjs → index-BcWsVwmK.cjs} +1 -1
- package/dist/{index-JlAZlJSa.js → index-BkSpEp24.js} +6 -6
- package/dist/{index-BNRMWt2X.cjs → index-Bkz-wtWG.cjs} +1 -1
- package/dist/{index-DJXxlOVw.cjs → index-Bmd4CfMk.cjs} +1 -1
- package/dist/{index-CRA36cu_.js → index-BoVzh91B.js} +4 -4
- package/dist/{index-BEMqiaE4.cjs → index-BszuOV6x.cjs} +1 -1
- package/dist/{index-C4WiBNX7.cjs → index-BtBTtGCV.cjs} +1 -1
- package/dist/{index-XGNOqMia.cjs → index-C5CWOGoQ.cjs} +1 -1
- package/dist/{index-C99sTbLR.cjs → index-C8cVwYL_.cjs} +1 -1
- package/dist/{index-k1B4X854.js → index-CAqt6-um.js} +4 -4
- package/dist/{index-BpRK84YO.js → index-CCJN0WUL.js} +9 -9
- package/dist/{index-BPc4Eac7.cjs → index-CMNXbrgU.cjs} +1 -1
- package/dist/{index-DMxFp_J8.js → index-CQT8T6Du.js} +7 -7
- package/dist/{index-B5JYLkwE.js → index-CT57Kiyw.js} +5 -5
- package/dist/{index-D5iqPx4_.cjs → index-CTb7K2Bk.cjs} +1 -1
- package/dist/{index-P8qnw1yi.js → index-CYpllCLZ.js} +5 -5
- package/dist/{index-DrgtDDgh.js → index-Cly4yemp.js} +1 -1
- package/dist/{index-DBUg3cD4.js → index-CnSWuvbR.js} +5 -5
- package/dist/{index-BKkSFReI.cjs → index-ConK7kqd.cjs} +1 -1
- package/dist/{index-CUS5J9_e.js → index-CrhFsTrF.js} +3 -3
- package/dist/{index-BePWixJ7.cjs → index-Cx6JU0mX.cjs} +1 -1
- package/dist/{index-1FDUIkCX.cjs → index-D-m5syTd.cjs} +1 -1
- package/dist/{index-BPDeDTcT.js → index-D1I_FANs.js} +8 -8
- package/dist/{index-CbAVZYKT.cjs → index-D78i8R3T.cjs} +1 -1
- package/dist/{index-BSvAtDik.js → index-DA1g69WH.js} +7 -7
- package/dist/{index-Dqq6ANsR.js → index-DPhNWMWt.js} +1 -1
- package/dist/{index-ChDUVY4O.cjs → index-DPqX5NOD.cjs} +1 -1
- package/dist/{index-DSHdwrIv.js → index-DV_n4TRj.js} +4 -4
- package/dist/{index-B2U6bRXC.js → index-DZr5ivXe.js} +1 -1
- package/dist/{index-BDeQhlHq.cjs → index-DjT9EKHk.cjs} +1 -1
- package/dist/{index-kzgPDfJF.cjs → index-DjVsDHMd.cjs} +1 -1
- package/dist/{index-i7I_BwC_.js → index-Gu7G-roX.js} +4 -4
- package/dist/index-Hhjfw8oQ.cjs +1 -0
- package/dist/{index-CV8NL82B.js → index-K_gfyAlX.js} +1 -1
- package/dist/{index-CU_Jx-5J.cjs → index-Oj115_Py.cjs} +1 -1
- package/dist/{index-CtNApXqx.js → index-Qhs8qV0Q.js} +1 -1
- package/dist/{index-B-UH_ubV.js → index-Vyzu845m.js} +8 -8
- package/dist/{index-CdbyfD9T.cjs → index-WrUPpyn7.cjs} +1 -1
- package/dist/{index-Dz-F31F9.js → index-_c4rtHYx.js} +66 -67
- package/dist/{index-BuzU8y87.js → index-ce6eGEEn.js} +3 -3
- package/dist/{index-BqjnsqxM.cjs → index-g9LQfTOA.cjs} +1 -1
- package/dist/{index-CaEGsvtY.cjs → index-hmwwoDCP.cjs} +1 -1
- package/dist/{index-BSHYuItV.cjs → index-o8ssqTcl.cjs} +1 -1
- package/dist/{index-BXTWkSfY.js → index-oInxtbp2.js} +3 -3
- package/dist/{index-ChrvsNKe.cjs → index-q1VJsIJM.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-GU5YecI_.js → index.vue_vue_type_script_setup_true_lang-I_efsWj8.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CsELnqsB.cjs → index.vue_vue_type_script_setup_true_lang-MiZbv3kB.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-HXVPBHSR.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BUnbO0RO.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CiQLJOHK.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Cn95BsEm.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BP1ltJdK.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BB6kJ34L.js} +12 -12
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Dhxd_sQH.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DjU3k4mS.cjs} +1 -1
- package/dist/{login-f0ZOWhgZ.js → login-B9vlP2b5.js} +2 -2
- package/dist/{login-MRZ_aZ2l.cjs → login-Duwt6-x6.cjs} +1 -1
- package/dist/{main-CD7tAcIb.js → main-5iPo1p9a.js} +7 -7
- package/dist/{main-CpGTA5Qv.cjs → main-XmfoFrF9.cjs} +1 -1
- package/dist/{menu-PjSpUL7w.cjs → menu-BnL2_TmY.cjs} +1 -1
- package/dist/{menu-uQv0bEzE.js → menu-Mo-2vv7x.js} +1 -1
- package/dist/{modelComp-BavIqTd8.js → modelComp-CucEweH7.js} +1 -1
- package/dist/{modelComp-qapurFEA.cjs → modelComp-D4sttzBW.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 +1 -1
- package/dist/index-CrY9cebv.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as t, reactive as o, onMounted as r, createElementBlock as n, openBlock as s, createVNode as a } from "vue";
|
|
2
|
-
import { a as c } from "./index-
|
|
3
|
-
import { s as m } from "./index-
|
|
4
|
-
import { S as i } from "./index-
|
|
5
|
-
import { g as l } from "./index-
|
|
2
|
+
import { a as c } from "./index-CT57Kiyw.js";
|
|
3
|
+
import { s as m } from "./index-DA1g69WH.js";
|
|
4
|
+
import { S as i } from "./index-BIxHHxhy.js";
|
|
5
|
+
import { g as l } from "./index-DV_n4TRj.js";
|
|
6
6
|
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const d = { class: "role-wrapper" }, _ = /* @__PURE__ */ t({
|
|
8
8
|
__name: "index",
|
|
@@ -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-_c4rtHYx.js";
|
|
3
|
+
import "./index-Cly4yemp.js";
|
|
4
|
+
import "./array-DnpEPYrW.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-BUnbO0RO.js";
|
|
7
|
+
import "./menu-Mo-2vv7x.js";
|
|
8
|
+
import "./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BB6kJ34L.js";
|
|
9
|
+
import "./index-DA1g69WH.js";
|
|
10
|
+
import "./login-B9vlP2b5.js";
|
|
11
11
|
import "./index-BHtNKL1L.js";
|
|
12
|
-
import "./index-
|
|
12
|
+
import "./index-BYgVh4wp.js";
|
|
13
13
|
const d = {
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),B=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./index-Hhjfw8oQ.cjs"),y=require("./index-CTb7K2Bk.cjs"),V=require("./modelComp-D4sttzBW.cjs"),g=require("./menu-BnL2_TmY.cjs");require("./array-BdJe1Isx.cjs");const E=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v=require("./cloneDeep-CuzxIr2L.cjs"),O=require("./index-C31XRLFj.cjs"),R=require("./index-DjVsDHMd.cjs"),b=require("./index-BszuOV6x.cjs"),L={class:"type-select"},U=["onClick"],z={class:"list-icon"},H={__name:"index",setup(N){const m=V.useModelComp(y.pinia),{itemData:i}=g.storeToRefs(m),C=_=>{const p=v.cloneDeep(i.value);p.push({comp:_.comp,name:_.name,compData:[]}),m.setItemData(p)};return(_,p)=>{const s=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(B.slotContent),(f,u)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:u},[e.createElementVNode("div",{class:"list-content",onClick:k=>C(f)},[e.createElementVNode("div",z,[e.createVNode(s,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,U)]))),128))])}}},j=E._export_sfc(H,[["__scopeId","data-v-1f87163f"]]),A={class:"fill-content"},G={class:"operate-content"},J={class:"collapse-title-content"},K={class:"collapse-title-item"},P={key:1},Q=["onClick"],W={class:"icon-content"},X={key:0,class:"edit-content"},Y=["onClick"],Z={class:"comp-child"},ee={__name:"index",setup(N){const m=V.useModelComp(y.pinia),{itemData:i,originalData:C}=g.storeToRefs(m),_=e.ref([]);e.ref([]);const p=e.ref([]),s=e.ref([]),f=a=>{var n;let c=(n=v.cloneDeep(s.value))==null?void 0:n.map((t,o)=>(a===o&&(t.content=!0),t));s.value=c},u=a=>{var n;let c=(n=v.cloneDeep(s.value))==null?void 0:n.map((t,o)=>(a===o&&(t.content=!1),t));s.value=c,_.value=v.cloneDeep(i.value)},k=(a,c)=>{var h;let n=(h=v.cloneDeep(s.value))==null?void 0:h.map((l,d)=>(a===d&&(l.content=!1),l));s.value=n;const t=v.cloneDeep(i.value),o=t==null?void 0:t.filter((l,d)=>(d===a&&(l.name=c),l));m.setOriginalData(o),m.setItemData(o)};e.watch(()=>i.value,()=>{var a,c,n;!i.value||((a=i.value)==null?void 0:a.length)===0?_.value=[]:_.value=(c=v.cloneDeep(i.value))==null?void 0:c.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),p.value=_.value,s.value=(n=v.cloneDeep(p.value))==null?void 0:n.map((t,o)=>({id:o,content:!1}))},{deep:!0,immediate:!0});const M=a=>B.getComponent(a),T=(a,c,n)=>{var o,h;if(!a)return;let t=v.cloneDeep(i.value);t=(o=t==null?void 0:t.map((l,d)=>(d===n&&(l.compData=a),l)))==null?void 0:o.filter(l=>(l==null?void 0:l.comp)!=="methodButton"),s.value=(h=v.cloneDeep(t))==null?void 0:h.map((l,d)=>({id:d,content:!1})),m.setOriginalData(t),m.setItemData(t)},F=a=>{b.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const c=v.cloneDeep(i.value),n=c==null?void 0:c.filter((t,o)=>o!==a);m.setOriginalData(n),m.setItemData(n),g.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(a,c)=>{const n=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",A,[c[1]||(c[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",G,[e.createVNode(O.default,{class:"collapse-content",collapseContents:_.value},{title:e.withCtx(({item:t,index:o})=>{var h,l,d,D,w,x,$,I,q,S;return[e.createElementVNode("div",J,[e.createElementVNode("div",K,[(l=(h=s.value)==null?void 0:h.find(r=>r.id===o))!=null&&l.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:t.name&&t.name!==""?"8px":"0px"})},e.toDisplayString(t.name),5)),(D=(d=s.value)==null?void 0:d.find(r=>r.id===o))!=null&&D.content?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(R._sfc_main,{modelValue:t.name,"onUpdate:modelValue":r=>t.name=r,onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(x=(w=s.value)==null?void 0:w.find(r=>r.id===o))!=null&&x.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(r=>f(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Edit",style:{width:"16px",height:"16px"}})],8,Q))]),e.createElementVNode("div",W,[(I=($=s.value)==null?void 0:$.find(r=>r.id===o))!=null&&I.content?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(n,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(r=>u(o),["stop"])},null,8,["onClick"]),e.createVNode(n,{name:"Save",onClick:e.withModifiers(r=>k(o,t.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(S=(q=s.value)==null?void 0:q.find(r=>r.id===o))!=null&&S.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(r=>F(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Delete",style:{width:"16px",height:"16px"}})],8,Y))])])]}),content:e.withCtx(({item:t,index:o})=>{var h,l;return[e.createElementVNode("div",Z,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(M(t.comp+"Operate")),{itemContents:t==null?void 0:t.compData,originalItemContents:(l=(h=p.value)==null?void 0:h.find((d,D)=>D===o))==null?void 0:l.compData,onChange:d=>T(d,t,o)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},te=E._export_sfc(ee,[["__scopeId","data-v-27bd1564"]]),oe={key:0,class:"show-content"},ne={style:{display:"flex"}},le={__name:"index",setup(N){const m=V.useModelComp(y.pinia),{itemData:i}=g.storeToRefs(m),C=e.ref([]);e.watch(()=>i.value,()=>{var p;!i.value||((p=i.value)==null?void 0:p.length)===0?C.value=[]:C.value=v.cloneDeep(i.value)},{deep:!0,immediate:!0});const _=p=>B.getComponent(p);return(p,s)=>{var f;return((f=C.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(u,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.createElementVNode("div",ne,e.toDisplayString(u.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(u.comp)),{itemData:u==null?void 0:u.compData,childItemData:u==null?void 0:u.itemChildData,key:k},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},ce=E._export_sfc(le,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=te;exports.modelSelect=j;exports.modelShow=ce;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as _, ref as n, reactive as y, nextTick as m, defineComponent as V, onMounted as H, resolveComponent as C, createElementBlock as P, openBlock as j, createVNode as u, withCtx as p, createElementVNode as f, createTextVNode as k } from "vue";
|
|
2
|
-
import { s as D, u as w } from "./menu-
|
|
3
|
-
import { u as K } from "./modelComp-
|
|
4
|
-
import { p as g } from "./index-
|
|
5
|
-
import { a as z, s as U } from "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import { c as T } from "./cloneDeep-
|
|
8
|
-
import { s as W, a as $ } from "./index-
|
|
2
|
+
import { s as D, u as w } from "./menu-Mo-2vv7x.js";
|
|
3
|
+
import { u as K } from "./modelComp-CucEweH7.js";
|
|
4
|
+
import { p as g } from "./index-Cly4yemp.js";
|
|
5
|
+
import { a as z, s as U } from "./index-DA1g69WH.js";
|
|
6
|
+
import "./index-BYgVh4wp.js";
|
|
7
|
+
import { c as T } from "./cloneDeep-E3wKN3B0.js";
|
|
8
|
+
import { s as W, a as $ } from "./index-CT57Kiyw.js";
|
|
9
9
|
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const M = K(g), S = z(g), d = w(g), { menus: A, configMenu: x, cacheStructures: G } = D(d), J = _(() => {
|
|
11
11
|
var t, e;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as L, resolveComponent as j, createBlock as U, openBlock as _, defineComponent as Qe, onMounted as et, withCtx as N, createVNode as re, createElementVNode as oe, createElementBlock as F, Fragment as ce, renderList as le, createTextVNode as Ue, toDisplayString as me, watch as xe, renderSlot as ue, createCommentVNode as ee, resolveDynamicComponent as ht, createSlots as Je, mergeProps as Jt, normalizeProps as Gn, guardReactiveProps as Yn, nextTick as qe, normalizeStyle as _e, computed as jt, unref as Gt, h as rn, reactive as En, onBeforeUnmount as qn, toRefs as Xn, withDirectives as ln, vShow as sn, normalizeClass as Kn } from "vue";
|
|
2
2
|
import { S as cn } from "./index-BHtNKL1L.js";
|
|
3
3
|
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import { c as ye } from "./cloneDeep-
|
|
5
|
-
import { E as Cn, g as Zt, a as Jn } from "./menu-
|
|
6
|
-
import Zn from "./index-
|
|
7
|
-
import { _ as Qn } from "./index.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { c as un } from "./index-
|
|
4
|
+
import { c as ye } from "./cloneDeep-E3wKN3B0.js";
|
|
5
|
+
import { E as Cn, g as Zt, a as Jn } from "./menu-Mo-2vv7x.js";
|
|
6
|
+
import Zn from "./index-Qhs8qV0Q.js";
|
|
7
|
+
import { _ as Qn } from "./index.vue_vue_type_script_setup_true_lang-I_efsWj8.js";
|
|
8
|
+
import { c as un } from "./index-Vyzu845m.js";
|
|
9
9
|
function eo(o) {
|
|
10
10
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const w=require("./menu-
|
|
1
|
+
"use strict";const w=require("./menu-BnL2_TmY.cjs"),O=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,$=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,E=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function P(r,t){if(r==="__proto__"||r==="constructor"&&t&&typeof t=="object"&&"prototype"in t){h(r);return}return t}function h(r){console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)}function z(r,t={}){if(typeof r!="string")return r;if(r[0]==='"'&&r[r.length-1]==='"'&&r.indexOf("\\")===-1)return r.slice(1,-1);const e=r.trim();if(e.length<=9)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!E.test(r)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return r}try{if(O.test(r)||$.test(r)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(r,P)}return JSON.parse(r)}catch(n){if(t.strict)throw n;return r}}function F(r,t){if(r==null)return;let e=r;for(let n=0;n<t.length;n++){if(e==null||e[t[n]]==null)return;e=e[t[n]]}return e}function d(r,t,e){if(e.length===0)return t;const n=e[0];return e.length>1&&(t=d(typeof r!="object"||r===null||!Object.prototype.hasOwnProperty.call(r,n)?Number.isInteger(Number(e[1]))?[]:{}:r[n],t,Array.prototype.slice.call(e,1))),Number.isInteger(Number(n))&&Array.isArray(r)?r.slice()[n]:Object.assign({},r,{[n]:t})}function N(r,t){if(r==null||t.length===0)return r;if(t.length===1){if(r==null)return r;if(Number.isInteger(t[0])&&Array.isArray(r))return Array.prototype.slice.call(r,0).splice(t[0],1);const e={};for(const n in r)e[n]=r[n];return delete e[t[0]],e}if(r[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(r))return Array.prototype.concat.call([],r);const e={};for(const n in r)e[n]=r[n];return e}return d(r,N(r[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function I(r,t){return t.map(e=>e.split(".")).map(e=>[e,F(r,e)]).filter(e=>e[1]!==void 0).reduce((e,n)=>d(e,n[1],n[0]),{})}function S(r,t){return t.map(e=>e.split(".")).reduce((e,n)=>N(e,n),r)}function g(r,{storage:t,serializer:e,key:n,debug:s,pick:u,omit:f,beforeHydrate:c,afterHydrate:i},o,l=!0){try{l&&(c==null||c(o));const a=t.getItem(n);if(a){const p=e.deserialize(a),y=u?I(p,u):p,A=f?S(y,f):y;r.$patch(A)}l&&(i==null||i(o))}catch(a){s&&console.error("[pinia-plugin-persistedstate]",a)}}function m(r,{storage:t,serializer:e,key:n,debug:s,pick:u,omit:f}){try{const c=u?I(r,u):r,i=f?S(c,f):c,o=e.serialize(i);t.setItem(n,o)}catch(c){s&&console.error("[pinia-plugin-persistedstate]",c)}}function k(r,t,e){const{pinia:n,store:s,options:{persist:u=e}}=r;if(!u)return;if(!(s.$id in n.state.value)){const i=n._s.get(s.$id.replace("__hot:",""));i&&Promise.resolve().then(()=>i.$persist());return}const c=(Array.isArray(u)?u:u===!0?[{}]:[u]).map(t);s.$hydrate=({runHooks:i=!0}={})=>{c.forEach(o=>{g(s,o,r,i)})},s.$persist=()=>{c.forEach(i=>{m(s.$state,i)})},c.forEach(i=>{g(s,i,r),s.$subscribe((o,l)=>m(l,i),{detached:!0})})}function J(r={}){return function(t){k(t,e=>({key:(r.key?r.key:n=>n)(e.key??t.store.$id),debug:e.debug??r.debug??!1,serializer:e.serializer??r.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>z(n)},storage:e.storage??r.storage??window.localStorage,beforeHydrate:e.beforeHydrate,afterHydrate:e.afterHydrate,pick:e.pick,omit:e.omit}),r.auto??!1)}}var T=J();const _=w.createPinia();_.use(T);exports.pinia=_;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createElementBlock as L, openBlock as j, createElementVNode as Q, renderSlot as d, defineComponent as Z, ref as h, resolveComponent as u, createVNode as e, withCtx as i, reactive as T, watch as N, unref as l, toDisplayString as x, createTextVNode as v } from "vue";
|
|
2
2
|
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { u as AA, l as EA } from "./index-
|
|
3
|
+
import { u as AA, l as EA } from "./index-Vyzu845m.js";
|
|
4
4
|
import { useRouter as IA } from "vue-router";
|
|
5
|
-
import { u as gA } from "./login-
|
|
6
|
-
import { a as CA, E as K, g as b } from "./menu-
|
|
7
|
-
import { p as BA } from "./index-
|
|
8
|
-
import { v as QA } from "./index-
|
|
5
|
+
import { u as gA } from "./login-B9vlP2b5.js";
|
|
6
|
+
import { a as CA, E as K, g as b } from "./menu-Mo-2vv7x.js";
|
|
7
|
+
import { p as BA } from "./index-Cly4yemp.js";
|
|
8
|
+
import { v as QA } from "./index-ce6eGEEn.js";
|
|
9
9
|
import { d as iA } from "./crypto-BRyGpjGR.js";
|
|
10
10
|
const oA = {}, wA = { class: "header-wrapper" }, RA = { class: "header-horizontal" }, nA = { class: "header-logo" }, eA = { class: "header-cTitle" }, cA = { class: "header-horizontal" }, sA = { class: "header-eTitle" };
|
|
11
11
|
function JA(t, Y) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as A } from "./menu-
|
|
1
|
+
import { h as A } from "./menu-Mo-2vv7x.js";
|
|
2
2
|
const w = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, O = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, $ = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
3
3
|
function h(r, t) {
|
|
4
4
|
if (r === "__proto__" || r === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as B, reactive as v, onMounted as V, watch as S, nextTick as M, resolveComponent as c, createElementBlock as _, openBlock as h, Fragment as f, createElementVNode as i, createVNode as l, withCtx as n, toDisplayString as p, renderList as z, createBlock as T, createTextVNode as g } from "vue";
|
|
2
|
-
import { a as A } from "./index-
|
|
3
|
-
import { s as N } from "./index-
|
|
4
|
-
import { S as k } from "./index-
|
|
5
|
-
import { u as R, s as E } from "./menu-
|
|
6
|
-
import { c as F } from "./cloneDeep-
|
|
2
|
+
import { a as A } from "./index-CT57Kiyw.js";
|
|
3
|
+
import { s as N } from "./index-DA1g69WH.js";
|
|
4
|
+
import { S as k } from "./index-DV_n4TRj.js";
|
|
5
|
+
import { u as R, s as E } from "./menu-Mo-2vv7x.js";
|
|
6
|
+
import { c as F } from "./cloneDeep-E3wKN3B0.js";
|
|
7
7
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const U = { class: "role-wrapper" }, O = { class: "role-dialog-header" }, q = { class: "node-text" }, L = { class: "dialog-footer" }, P = /* @__PURE__ */ B({
|
|
9
9
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./menu-
|
|
1
|
+
"use strict";const o=require("./menu-BnL2_TmY.cjs");function a(t){const e=sessionStorage.getItem("loginToken")??"123456";return o.service({url:"/api/sysFile/uploadAvatar",method:"post",data:t,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function i(t){const e=sessionStorage.getItem("loginToken")??"123456";return o.service({url:"/api/sysFile/downloadFile",method:"post",data:t,headers:{Authorization:e,Accept:"application/octet-stream"},responseType:"blob"})}exports.downloadAvatarApi=i;exports.uploadAvatarApi=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as n, watch as b } from "vue";
|
|
2
|
-
import { g as y, s as d } from "./menu-
|
|
3
|
-
import { s as g, h as m } from "./index-
|
|
4
|
-
import { u as D } from "./modelComp-
|
|
2
|
+
import { g as y, s as d } from "./menu-Mo-2vv7x.js";
|
|
3
|
+
import { s as g, h as m } from "./index-BDiy9l4J.js";
|
|
4
|
+
import { u as D } from "./modelComp-CucEweH7.js";
|
|
5
5
|
const f = D(), { itemData: i } = d(f), c = n(0), h = n([
|
|
6
6
|
{
|
|
7
7
|
label: "机构名称",
|
|
@@ -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-MiZbv3kB.cjs");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DjVsDHMd.cjs"),a=require("./index-BaKNxwnN.cjs"),r=require("./index-BtBTtGCV.cjs"),o=require("./index-DPqX5NOD.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...r.State});return e.onMounted(async()=>{t.structureId=await o.getActivePageStructureId()}),(l,_)=>(e.openBlock(),e.createElementBlock("div",c,[e.createVNode(n.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(a.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),u=s._export_sfc(i,[["__scopeId","data-v-c1856cfa"]]);exports.default=u;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { resolveComponent as L, createElementBlock as _, openBlock as r, Fragment as j, renderList as q, unref as W, createElementVNode as C, createVNode as D, toDisplayString as E, ref as I, watch as A, withCtx as z, createBlock as G, resolveDynamicComponent as H, createCommentVNode as y, normalizeStyle as X, withModifiers as w } from "vue";
|
|
2
|
-
import { s as Y, g as J } from "./index-
|
|
3
|
-
import { p as B } from "./index-
|
|
4
|
-
import { u as V } from "./modelComp-
|
|
5
|
-
import { s as S, E as Z } from "./menu-
|
|
6
|
-
import "./array-
|
|
2
|
+
import { s as Y, g as J } from "./index-_c4rtHYx.js";
|
|
3
|
+
import { p as B } from "./index-Cly4yemp.js";
|
|
4
|
+
import { u as V } from "./modelComp-CucEweH7.js";
|
|
5
|
+
import { s as S, E as Z } from "./menu-Mo-2vv7x.js";
|
|
6
|
+
import "./array-DnpEPYrW.js";
|
|
7
7
|
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
import { c as v } from "./cloneDeep-
|
|
8
|
+
import { c as v } from "./cloneDeep-E3wKN3B0.js";
|
|
9
9
|
import ee from "./index-CZtXRS3l.js";
|
|
10
|
-
import { _ as te } from "./index-
|
|
11
|
-
import { E as ne } from "./index-
|
|
10
|
+
import { _ as te } from "./index-CT57Kiyw.js";
|
|
11
|
+
import { E as ne } from "./index-oInxtbp2.js";
|
|
12
12
|
const oe = { class: "type-select" }, se = ["onClick"], ae = { class: "list-icon" }, le = {
|
|
13
13
|
__name: "index",
|
|
14
14
|
setup(O) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-DjVsDHMd.cjs"),c=require("./index-BaKNxwnN.cjs"),s=require("./index-Bmd4CfMk.cjs"),n=require("./menu-BnL2_TmY.cjs"),i=require("./login-Duwt6-x6.cjs"),u=require("./index-DPqX5NOD.cjs"),l=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),d={class:"role-wrapper"},g=t.defineComponent({__name:"index",setup(h){const o=n.useMenuState(),{activeMenuPath:p}=n.storeToRefs(o),a=i.useLoginState(),e=t.reactive({...s.State});return t.onMounted(async()=>{a.getModelSecretAsync(),e.structureId=await u.getActivePageStructureId()}),(C,m)=>(t.openBlock(),t.createElementBlock("div",d,[t.createVNode(r.ssForm,{class:"role-header",rowContents:e.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:e.handleQueryChange},null,8,["rowContents","onChange"]),t.createVNode(c.ssTable,{class:"role-body",itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]))}}),_=l._export_sfc(g,[["__scopeId","data-v-1ff46e50"]]);exports.default=_;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as Ct, watch as Ks, nextTick as bd, resolveComponent as gh, createBlock as kl, openBlock as jt, withCtx as ri, createElementVNode as xt, renderSlot as mc, onMounted as Bl, createElementBlock as nn, createCommentVNode as cs, Fragment as zl, renderList as Hl, normalizeStyle as _h, toDisplayString as ii, createVNode as Wi, unref as Vi, computed as Ed, onBeforeUnmount as Ad, normalizeClass as gc, withDirectives as wd, isRef as Rd, vModelCheckbox as Cd, createSlots as Pd } from "vue";
|
|
2
|
-
import { p as yr } from "./index-
|
|
3
|
-
import { u as yh } from "./modelComp-
|
|
4
|
-
import { a2 as Ld, S as _c, a3 as Dd, i as yc, a4 as vc, a5 as Id } from "./index-
|
|
5
|
-
import { a as vh, g as La, j as xc, k as Nd, l as Ud, s as Mc } from "./index-
|
|
2
|
+
import { p as yr } from "./index-Cly4yemp.js";
|
|
3
|
+
import { u as yh } from "./modelComp-CucEweH7.js";
|
|
4
|
+
import { a2 as Ld, S as _c, a3 as Dd, i as yc, a4 as vc, a5 as Id } from "./index-Vyzu845m.js";
|
|
5
|
+
import { a as vh, g as La, j as xc, k as Nd, l as Ud, s as Mc } from "./index-CT57Kiyw.js";
|
|
6
6
|
import { _ as Vl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { U as Sc, g as Tc, h as bc, j as Ec, S as Qa, k as Fd, c as rt } from "./cloneDeep-
|
|
8
|
-
import { e as Gl, s as ks, E as Ac, c as Si, g as fs, b as Da, u as xh, d as Od } from "./menu-
|
|
9
|
-
import { d as Mh } from "./index-
|
|
7
|
+
import { U as Sc, g as Tc, h as bc, j as Ec, S as Qa, k as Fd, c as rt } from "./cloneDeep-E3wKN3B0.js";
|
|
8
|
+
import { e as Gl, s as ks, E as Ac, c as Si, g as fs, b as Da, u as xh, d as Od } from "./menu-Mo-2vv7x.js";
|
|
9
|
+
import { d as Mh } from "./index-DZr5ivXe.js";
|
|
10
10
|
var kd = "__lodash_hash_undefined__";
|
|
11
11
|
function Bd(s) {
|
|
12
12
|
return this.__data__.set(s, kd), this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),r=require("./menu-
|
|
1
|
+
"use strict";const o=require("vue"),r=require("./menu-BnL2_TmY.cjs"),F=require("./login-Duwt6-x6.cjs"),q=require("./modelComp-D4sttzBW.cjs"),D=require("./cloneDeep-CuzxIr2L.cjs"),z=r.useMenuState(),{activeMenuPath:b}=r.storeToRefs(z),w=F.useLoginState(),{structureData:O}=r.storeToRefs(w),_=q.useModelComp(),{itemData:j}=r.storeToRefs(_),H=o.ref([{label:"角色名称",value:"",name:"roleName"}]),L=o.ref([{label:"查询"},{label:"重置"}]),S=o.reactive({isFilter:!1,filterForm:{}}),Q=o.ref(!1),U=a=>{console.log("handleQueryChange",a),S.isFilter=!0,S.filterForm=a},f=o.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=o.computed(()=>f.value),$=a=>{B(a.singleContent,a.buttonName)},m=o.ref({}),k=o.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(m.value=D.cloneDeep(e),a){case"授权":u.title=`【${e.roleName}】授权`,u.show=!0,await o.nextTick(),e.roleAuthority&&Array.isArray(e.roleAuthority)&&I(p.value,e.roleAuthority);break}},J=()=>{u.show=!1},d=o.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((c,y)=>{s[`a${y}`]=c}),s}else return{...t.tableData,id:t.id}})},B=(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={...m.value,roleAuthority:K(p.value)},o.nextTick(()=>{console.log("clickSubmitAuthority",d.value,f.value),B(d.value,"编辑")})},u=o.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=o.ref(0),M=async()=>{var l,t,n,s,c;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=(c=(s=e==null?void 0:e.data.result)==null?void 0:s[0])==null?void 0:c.id),a},p=o.ref([]),Z=o.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=o.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))};o.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])});o.watch(()=>u.show,a=>{a||(p.value=T(p.value))});const P=o.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 c,y,C,A;const n=/button/i;let s=(C=(y=(c=t==null?void 0:t.value)==null?void 0:c.pageData)==null?void 0:y.compData)==null?void 0:C.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(x=>x.label)))),{path:(A=t==null?void 0:t.key)==null?void 0:A.pageKey,buttons:s}}),...E.value]}),E=o.ref([]),N=(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(c=>(c==null?void 0:c.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(c=>({title:c,path:l.path+"/"+c})):[],checkedButtons:[],children:N(l.children,P.value)}:{...l,renderButtons:l.carryData?(s=t==null?void 0:t.buttons)==null?void 0:s.map(c=>({title:c,path:l.path+"/"+c})):[],checkedButtons:[]}})},R={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:f.value,name:""}]}]};o.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:N,authorizeDialog:u,buttonValue:L,changedRow:d,clickRow:m,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:B,tempRolePageData:R,tempSysMenus:E,treeRef:k},Symbol.toStringTag,{value:"Module"}));exports.State=ae;exports.authorizeDialog=u;exports.getActivePageStructureId=M;exports.tempRolePageData=R;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as c, computed as K, reactive as T, nextTick as N, watch as v } from "vue";
|
|
2
|
-
import { g as x, s as B, E as f, c as z, b as H, d as L, u as Q } from "./menu-
|
|
3
|
-
import { u as U } from "./login-
|
|
4
|
-
import { u as V } from "./modelComp-
|
|
5
|
-
import { c as D } from "./cloneDeep-
|
|
2
|
+
import { g as x, s as B, E as f, c as z, b as H, d as L, u as Q } from "./menu-Mo-2vv7x.js";
|
|
3
|
+
import { u as U } from "./login-B9vlP2b5.js";
|
|
4
|
+
import { u as V } from "./modelComp-CucEweH7.js";
|
|
5
|
+
import { c as D } from "./cloneDeep-E3wKN3B0.js";
|
|
6
6
|
const $ = Q(), { activeMenuPath: b } = B($), P = U(), { structureData: q } = B(P), G = V(), { itemData: J } = B(G), W = c([
|
|
7
7
|
{
|
|
8
8
|
label: "角色名称",
|
|
@@ -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-Hhjfw8oQ.cjs");require("./index-CTb7K2Bk.cjs");require("./array-BdJe1Isx.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Cn95BsEm.cjs");require("./menu-BnL2_TmY.cjs");require("./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DjU3k4mS.cjs");require("./index-BaKNxwnN.cjs");require("./login-Duwt6-x6.cjs");require("./index-BpPyaNFa.cjs");require("./index-hmwwoDCP.cjs");const u={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""}},setup(n){const e=n;return(c,d)=>{const o=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(o,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev},null,8,["mode","content","jsonContents","showButton","nodeDev"])])}}},i=r._export_sfc(u,[["__scopeId","data-v-6d9cffc6"]]);exports.default=i;
|