ss-component-new 1.1.426 → 1.1.428
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-BjHMzNh1.cjs → array-C4Es3IJl.cjs} +1 -1
- package/dist/{array-DU3pJOEN.js → array-CfYKb4Nd.js} +1 -1
- package/dist/{index-D-p0xBKO.cjs → index-6I-wNfSX.cjs} +1 -1
- package/dist/{index-BVSumW0m.js → index-AELMbDVd.js} +7 -7
- package/dist/index-B0jpwR-h.cjs +1 -0
- package/dist/{index-u-fKZQwk.cjs → index-B1B8QwCz.cjs} +1 -1
- package/dist/{index-V9ACjhoX.cjs → index-B4PppAMz.cjs} +1 -1
- package/dist/index-B5T_VqYF.js +394 -0
- package/dist/{index-DsVaQDEl.cjs → index-B8_cYT3O.cjs} +1 -1
- package/dist/{index-DnypCg-Z.js → index-BBCbfygK.js} +4 -4
- package/dist/{index-DMmDtUCZ.js → index-BJ4skhum.js} +3 -3
- package/dist/{index-xXSQujfM.cjs → index-BN5V2XDK.cjs} +1 -1
- package/dist/{index-DyskKN1M.cjs → index-BNZtQgpp.cjs} +1 -1
- package/dist/{index-C_o1ym2f.js → index-BSQfr-21.js} +6 -6
- package/dist/{index-BMNB4Rwd.cjs → index-BTQXT09h.cjs} +1 -1
- package/dist/{index-DfIrI7A-.js → index-Bp9OCGp9.js} +5 -5
- package/dist/{index-BvTOgf-f.js → index-BqXldRGs.js} +76 -76
- package/dist/index-BshhtCGw.cjs +1 -0
- package/dist/{index-g4V6dpUC.cjs → index-C6jLxi8v.cjs} +1 -1
- package/dist/{index-BVaHY31C.cjs → index-C76WZoJF.cjs} +1 -1
- package/dist/{index-BBTVuHU1.cjs → index-C8hk7atl.cjs} +1 -1
- package/dist/{index-BoYMUhO1.js → index-CHHBmFWf.js} +3 -3
- package/dist/{index-B_-tZ890.cjs → index-CMYViTL8.cjs} +1 -1
- package/dist/{index-Bwck4ISM.cjs → index-CRfrrpPf.cjs} +1 -1
- package/dist/{index-BAbIS1Y2.cjs → index-CTvJr4hu.cjs} +1 -1
- package/dist/{index-Drk2yg6y.js → index-CYd3fvF0.js} +4 -4
- package/dist/{index-Cjji5wap.cjs → index-CiC0L55k.cjs} +1 -1
- package/dist/{index-2SGc6M-t.js → index-CiiImREt.js} +256 -256
- package/dist/{index-B3JO-uYV.js → index-CjSdK9n3.js} +9 -9
- package/dist/{index-D8mAd3FI.cjs → index-CjUuYXN_.cjs} +1 -1
- package/dist/{index-C9KkalTU.cjs → index-CkZ55Trw.cjs} +2 -2
- package/dist/{index-DF4Z9D9A.js → index-Ct43M3Ia.js} +52 -52
- package/dist/{index-DB_zlP1l.js → index-Ct6CbWll.js} +7021 -7051
- package/dist/index-Cz3Bar44.cjs +1 -0
- package/dist/{index-B_j3Nnyc.js → index-D55Us6td.js} +55 -54
- package/dist/{index-NDct6F06.js → index-D7yRWMe9.js} +3 -3
- package/dist/{index-BaBukNyT.cjs → index-DGftdu10.cjs} +1 -1
- package/dist/{index-CyEK7pbL.js → index-DMQYdu7x.js} +2 -2
- package/dist/{index-LvyumXdy.js → index-DN77Gqf7.js} +4 -4
- package/dist/{index-Bx8A65y6.js → index-DNxPzGNN.js} +5 -5
- package/dist/{index-ChJHVYUd.js → index-DdlG0SsL.js} +1 -1
- package/dist/index-Dn-Jaifm.cjs +1 -0
- package/dist/{index-CNO28CqN.js → index-DnL48cUW.js} +6 -6
- package/dist/{index-SC612SQV.js → index-Ds17eX5X.js} +1 -1
- package/dist/{index-DIy01Dgu.cjs → index-DxH1id_m.cjs} +1 -1
- package/dist/{index-B8O_gkG5.js → index-Dxporpi3.js} +399 -398
- package/dist/index-EYlNG37M.cjs +1 -0
- package/dist/{index-DlobtzlV.cjs → index-HOLtxrWE.cjs} +1 -1
- package/dist/{index-B-xm6TfZ.js → index-Lr-jM5BD.js} +7 -7
- package/dist/index-UZsDwc9I.cjs +74 -0
- package/dist/{index-DzzZj7ZW.js → index-UiIVwT0x.js} +4 -4
- package/dist/{index-U_BXiUU1.cjs → index-W-mzocaB.cjs} +2 -2
- package/dist/{index-DWuNhxDw.js → index-jteGdz9o.js} +10 -10
- package/dist/{index-BI7HyBP0.js → index-l4f4Ksrs.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DTxE-5X4.cjs → index.vue_vue_type_script_setup_true_lang-3lAQFpGt.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-zY8j_-X7.js → index.vue_vue_type_script_setup_true_lang-AQDB--lA.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DyuJCRJs.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C2oFMwa6.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B8r1fNhC.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-XVUNtATu.js} +2 -2
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-D684C3wt.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-iXOYIk8v.js +1929 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-DKi_INqg.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-CPssMJ2M.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-CIWAy-ea.cjs → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-DuQ2lr1u.cjs} +1 -1
- package/dist/{login-BDT2IOVo.js → login-CcYUrJ0A.js} +1 -1
- package/dist/{login-BOtbOeXm.cjs → login-Cf3T6tgq.cjs} +1 -1
- package/dist/{main-CxOzD-BJ.cjs → main-3IJiaVcX.cjs} +1 -1
- package/dist/{main-ac7fUxCq.js → main-B3iC_GFY.js} +6 -6
- package/dist/{menu-B6-mrvXR.cjs → menu-DBX0QxSF.cjs} +8 -8
- package/dist/{menu-BKuuswPk.js → menu-DBnQNYlq.js} +5 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +12 -12
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-Sv0-DuuK.js → threeModel-BJTtjg6F.js} +865 -794
- package/dist/threeModel-nm_sKExW.cjs +1 -0
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_e40973ee_lang-Df9vtI4i.cjs → threeModel.vue_vue_type_style_index_0_scoped_e7dd7d83_lang-C3w6_nGz.cjs} +143 -143
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_e40973ee_lang-CDijgF1U.js → threeModel.vue_vue_type_style_index_0_scoped_e7dd7d83_lang-bdUv7Wu8.js} +4640 -4570
- package/package.json +1 -1
- package/dist/index-CBFk8on7.cjs +0 -1
- package/dist/index-CJYIMVku.js +0 -373
- package/dist/index-CSWenYQ7.cjs +0 -1
- package/dist/index-CZydRqwx.cjs +0 -87
- package/dist/index-Cy1dCGEB.cjs +0 -1
- package/dist/index-DYAZNJQV.cjs +0 -1
- package/dist/index-Di-5dA1z.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-BId80THd.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-D6BotwTh.js +0 -1868
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threeModel-CSxigizz.cjs +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const x=require("vue"),c=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const x=require("vue"),c=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C2oFMwa6.cjs"),D=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],b=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}];x.ref(0);const I=l=>{var t,r;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(r=Object.entries(l))==null||r.forEach(([s,n])=>{var f,$;let a=[];if(a.push(s),((f=Object.keys(n))==null?void 0:f.length)>0){let y=[];($=I(n))==null||$.forEach(_=>{y.push(_)}),y==null||y.forEach(_=>{a.push(_)})}e.push(a)}),e}},R=(l,t)=>{var e;let r=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([s,n])=>{let a=[s];if(typeof n=="object"&&n!==null){let f=I(n);f==null||f.forEach($=>{a.push($)})}r.push(a)})),r},X=l=>{const t={};return l.forEach(e=>{const s=e.split("/");let n=t;s.forEach(a=>{n[a]||(n[a]={}),n=n[a]})}),R(t,[])},Y=l=>X(l);x.ref(0);x.ref(1);const q=l=>{let t;l.replaceAll(" ",`\r
|
|
2
2
|
`).includes(`\r
|
|
3
3
|
`)?t=l.replaceAll(" ",`\r
|
|
4
4
|
`).split(`\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C2oFMwa6.cjs");const n=require("./menu-DBX0QxSF.cjs"),c=require("./index-BshhtCGw.cjs"),r=require("./index-Dn-Jaifm.cjs"),u=require("./login-Cf3T6tgq.cjs"),i=require("./index-B0jpwR-h.cjs"),s=e.defineComponent({__name:"index",setup(l){const o=n.useMenuState(),{activeMenuPath:d}=n.storeToRefs(o),a=u.useLoginState(),t=e.reactive({...r.State});return e.onMounted(async()=>{a.getModelSecretAsync(),t.structureId=await i.getActivePageStructureId()}),(g,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(c.ssTable,{itemData:t.pageData,changedContent:t.changedRow,onChange:t.handleItemDataChange,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=s;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { m as Dl, a as fl, f as rl, n as Il, o as Tl, p as $l, q as El, r as tl, s as Bl, v as Fl, w as Al, x as Sl } from "./index-
|
|
1
|
+
import { m as Dl, a as fl, f as rl, n as Il, o as Tl, p as $l, q as El, r as tl, s as Bl, v as Fl, w as Al, x as Sl } from "./index-CiiImREt.js";
|
|
2
2
|
import { ref as B, watch as Ie, createElementBlock as H, openBlock as R, createVNode as E, resolveComponent as ye, Fragment as be, renderList as _e, createElementVNode as f, createCommentVNode as Pe, toDisplayString as oe, withCtx as K, createBlock as ke, createTextVNode as fe, defineComponent as qe, reactive as nl, resolveDynamicComponent as Xe, unref as ml, computed as ol, renderSlot as Ye, createSlots as Ll, mergeProps as Ol, normalizeStyle as Rl, withModifiers as Qe } from "vue";
|
|
3
|
-
import { i as hl, p as Ue, s as Je, E as Me, u as Vl, g as ll, b as cl } from "./menu-
|
|
4
|
-
import {
|
|
5
|
-
import { c as d, F as dl, g as jl, b as De, m as He, s as We, f as Ge, d as al } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { i as hl, p as Ue, s as Je, E as Me, u as Vl, g as ll, b as cl } from "./menu-DBnQNYlq.js";
|
|
4
|
+
import { c as Be, b as Fe, d as yl, _ as Nl, e as Pl, f as Ul, a as Wl } from "./index-D55Us6td.js";
|
|
5
|
+
import { c as d, F as dl, g as jl, b as De, m as He, s as We, f as Ge, d as al } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-XVUNtATu.js";
|
|
6
6
|
import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { E as Ke } from "./index-
|
|
8
|
-
import { u as bl } from "./threeModel.
|
|
9
|
-
import { s as zl, a as Ml } from "./index-
|
|
7
|
+
import { E as Ke } from "./index-CYd3fvF0.js";
|
|
8
|
+
import { u as bl } from "./threeModel.vue_vue_type_style_index_0_scoped_e7dd7d83_lang-bdUv7Wu8.js";
|
|
9
|
+
import { s as zl, a as Ml } from "./index-UiIVwT0x.js";
|
|
10
10
|
import Kl from "./index-CZtXRS3l.js";
|
|
11
11
|
const Jl = (k) => k.match(/\((.*)\)/)[1], Gl = hl("formComp", {
|
|
12
12
|
state: () => ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("vue"),r=require("./menu-DBX0QxSF.cjs"),q=require("./login-Cf3T6tgq.cjs"),F=require("./threeModel.vue_vue_type_style_index_0_scoped_e7dd7d83_lang-C3w6_nGz.cjs"),A=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C2oFMwa6.cjs"),M=r.defineStore("authorityState",{state:()=>({roleStructures:[],userStructures:[],deptStructures:[],postStructures:[],personalStructures:[]}),actions:{setRoleStructures(t){this.roleStructures=t},setUserStructures(t){this.userStructures=t}}}),z=r.useMenuState(r.pinia),{activeMenuPath:v}=r.storeToRefs(z),K=q.useLoginState(r.pinia),{structureData:U}=r.storeToRefs(K),j=F.useModelComp(r.pinia),{itemData:L}=r.storeToRefs(j),O=M(r.pinia),{roleStructures:Q}=r.storeToRefs(O),V=l.ref([{label:"角色名称",value:"",name:"roleName"}]),$=l.ref([{label:"查询"},{label:"重置"}]),I=l.reactive({isFilter:!1,filterForm:{}}),G=l.ref(!1),H=t=>{console.log("handleQueryChange",t),I.isFilter=!0,I.filterForm=t},h=l.ref([]),J=l.computed(()=>h.value);l.watch(()=>Q.value,t=>{(t==null?void 0:t.find(s=>{var a;return((a=s==null?void 0:s.comp)==null?void 0:a.toUpperCase())==="TABLE"}))&&console.log(1234,h.value)},{immediate:!0,deep:!0});const W=t=>{_(t.singleContent,t.buttonName)},B=l.ref({}),S=l.ref(),d=async(t,e,s)=>{var a,n;try{const c=await t(e);return((a=c==null?void 0:c.data)==null?void 0:a.code)===200?(s!=="查询"&&await K.setLogRecordAsync({type:s,data:e},v.value),c.data.result||((n=c==null?void 0:c.data)==null?void 0:n.code)===200):null}catch(c){r.ElMessage.error(c)}},m=(t,e)=>{e==null||e.forEach(s=>{t==null||t.forEach(a=>{var n;a.path==s.path&&(a.checkedButtons=s.checkedButtons),a.children&&((n=a.children)==null?void 0:n.length)>0&&m(a.children,e)})})},T=t=>t==null?void 0:t.map(e=>{var a;const s={...e,checkedButtons:[]};return s.children&&((a=s.children)==null?void 0:a.length)>0&&(s.children=T(s.children)),s}),X=async(t,e)=>{switch(B.value=A.cloneDeep(e),t){case"授权":o.title=`【${e.roleName}】授权`,o.show=!0,await l.nextTick(),e.roleAuthority&&Array.isArray(e.roleAuthority)&&m(p.value,e.roleAuthority);break}},Y=()=>{o.show=!1},f=l.ref(),Z=async t=>{const e=await d(r.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:t}},"查询"),s=e==null?void 0:e.map(a=>{var n;return{id:a.id,tableData:(n=a==null?void 0:a.value)==null?void 0:n.tableData}});return s==null?void 0:s.map(a=>{var n;if(Array.isArray(a==null?void 0:a.tableData)){let c={id:a.id};return(n=a==null?void 0:a.tableData)==null||n.forEach((u,y)=>{c[`a${y}`]=u}),c}else return{...a.tableData,id:a.id}})},_=(t,e)=>{const s=A.cloneDeep(t);s!=null&&s.id&&delete s.id,e==="新增"?d(r.createInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:v.value,tableId:k.value},value:{tableData:s}},e).then(a=>{f.value={...t,newId:a},e&&a&&r.ElMessage.success(e+"成功")}):e==="编辑"?(console.log("编辑角色",s),d(r.updateInsofDataApi,{id:t.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:v.value,tableId:k.value},value:{tableData:s}},e).then(a=>{e&&a&&r.ElMessage.success(e+"成功"),o.show=!1})):e==="删除"&&d(r.deleteInsofDataApi,{id:t.id},e).then(a=>{e&&a&&r.ElMessage.success(e+"成功")})},E=t=>{let e=[];return t==null||t.forEach(s=>{var a;if(s.checkedButtons&&((a=s.checkedButtons)==null?void 0:a.length)>0){const n={path:s.path,checkedButtons:s.checkedButtons};e=e.concat(n)}s.children&&(e=e.concat(E(s.children)))}),e},ee=()=>{f.value={...B.value,roleAuthority:E(p.value)},l.nextTick(()=>{console.log("clickSubmitAuthority",f.value,h.value),_(f.value,"编辑")})},o=l.reactive({show:!1,title:"角色授权",width:"35%",draggable:!0}),te=({isPenultimate:t},e)=>{var s,a;return console.log("isPenultimate",t,e),((a=(s=e==null?void 0:e.data)==null?void 0:s.renderButtons)==null?void 0:a.length)>0?"is-penultimate":""},k=l.ref(0),P=async()=>{var s,a,n,c,u;let t;const e=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:v.value}});return((s=e==null?void 0:e.data)==null?void 0:s.code)===200&&(a=e==null?void 0:e.data)!=null&&a.result&&((n=e==null?void 0:e.data)==null?void 0:n.result.length)>0&&(t=(u=(c=e==null?void 0:e.data.result)==null?void 0:c[0])==null?void 0:u.id),t},p=l.ref([]),ae=l.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),se=(t,e)=>{var s;t.checkedButtons=e?(s=t.renderButtons)==null?void 0:s.map(a=>a.path):[],console.log("handleNodeCheckChange",t,e)},i=l.ref([]),ce=(t,e)=>{var s,a,n;e.checkedButtons=t,((s=e.checkedButtons)==null?void 0:s.length)===((a=e.renderButtons)==null?void 0:a.length)?i.value.push(e.path):(t==null?void 0:t.length)===0&&(i.value=(n=i.value)==null?void 0:n.filter(c=>c!==e.path))};l.watch(()=>i.value.length,()=>{var e,s;const t=(e=S.value)==null?void 0:e.getCheckedKeys();console.log(112,i.value,t),(s=S.value)==null||s.setCheckedKeys([...i.value])});l.watch(()=>o.show,t=>{t||(p.value=T(p.value))});const D=l.computed(()=>{var s;const t=(s=A.cloneDeep(U.value))==null?void 0:s.filter(a=>{var n,c;return((c=(n=a==null?void 0:a.key)==null?void 0:n.pageKey)==null?void 0:c.toUpperCase())!=="MENU"});return[...t==null?void 0:t.map(a=>{var u,y,w,C;const n=/button/i;let c=(w=(y=(u=a==null?void 0:a.value)==null?void 0:u.pageData)==null?void 0:y.compData)==null?void 0:w.filter(g=>n.test(g==null?void 0:g.key));return c=Array.from(new Set(c==null?void 0:c.flatMap(g=>g.contents.map(N=>N.label)))),{path:(C=a==null?void 0:a.key)==null?void 0:C.pageKey,buttons:c}}),...R.value]}),R=l.ref([]),b=(t,e)=>{if(Array.isArray(t))return t==null?void 0:t.map(s=>{var n,c;const a=e==null?void 0:e.find(u=>(u==null?void 0:u.path)===(s==null?void 0:s.path));return s.childMenus&&s.childMenus.length>0?{...s,renderButtons:s.carryData?(n=a==null?void 0:a.buttons)==null?void 0:n.map(u=>({title:u,path:s.path+"/"+u})):[],checkedButtons:[],children:b(s.childMenus,D.value),childMenus:b(s.childMenus,D.value)}:{...s,renderButtons:s.carryData?(c=a==null?void 0:a.buttons)==null?void 0:c.map(u=>({title:u,path:s.path+"/"+u})):[],checkedButtons:[]}})},x={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:h.value,name:""}]}]};l.watch(()=>L.value,t=>{var e;t&&(t==null?void 0:t.length)>0&&(h.value=(e=t==null?void 0:t[0])==null?void 0:e.compData,console.log(12346,t))});const ne=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:b,authorizeDialog:o,buttonValue:$,changedRow:f,clickRow:B,clickRowButton:X,clickSubmitAuthority:ee,closeAuthorizeDialog:Y,customNodeClass:te,getActivePageStructureId:P,getPageDataAsync:Z,handleItemDataChange:W,handleNodeBtnChange:ce,handleNodeCheckChange:se,handleQueryChange:H,handleSubmitAsync:d,isPageDataExist:G,menuData:p,menusButtons:ae,pageData:h,pageDataFiltered:J,queryFormData:V,structureButtons:D,structureId:k,submitTableAsyncByVerify:_,tempRolePageData:x,tempSysMenus:R,treeRef:S},Symbol.toStringTag,{value:"Module"}));exports.State=ne;exports.authorizeDialog=o;exports.getActivePageStructureId=P;exports.tempRolePageData=x;exports.useAuthorityState=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-DuQ2lr1u.cjs"),e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=["title"],p={key:0,class:"menu-operate-icon"},_={class:"menu-config-wrap"},C=["onClick"],f={class:"module-dialog-content"};function k(n,l,v,h,B,V){const r=e.resolveComponent("svg-icon"),s=e.resolveComponent("el-popover"),a=e.resolveComponent("ssMenu"),i=e.resolveComponent("el-button"),d=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(a,{mode:n.mode,menuList:n.renderMenuList,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:e.withCtx(({menu:t})=>[e.createVNode(r,{name:t.icon??"",class:"menu-icon"},null,8,["name"]),e.createElementVNode("span",{title:t.title,class:"menu-title"},e.toDisplayString(t.title??""),9,g),t!=null&&t.config?(e.openBlock(),e.createElementBlock("span",p,[e.createVNode(s,{title:"菜单操作",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(r,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,o=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:o.id,onClick:y=>n.clickMenuIcon(t,o)},[e.createVNode(r,{name:o==null?void 0:o.menuIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(o==null?void 0:o.operateType),1)],8,C))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"]),e.createVNode(d,{class:"module-dialog",title:n.dialogInfo.title,visible:n.dialogInfo.show,width:n.dialogInfo.width,onBeforeDestroy:n.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",f,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:n.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(i,{id:"themeBorderButton",onClick:n.beforeDialogDestroy},{default:e.withCtx(()=>l[0]||(l[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(i,{id:"themeButton",onClick:n.clickSubmitForm},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const m=u._export_sfc(c._sfc_main,[["render",k],["__scopeId","data-v-ed9fe0f5"]]);exports.default=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-3lAQFpGt.cjs"),k=require("./index-C76WZoJF.cjs"),x=require("./menu-DBX0QxSF.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-W-mzocaB.cjs"),B=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(i,{emit:y}){const u=i,c=y,h=e.computed(()=>"http://139.196.154.85:20013"),p=e.ref(""),d=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.avatarUrl},o=>{d.value=o},{immediate:!0});const w=async()=>{if(!(u!=null&&u.disabled))try{const o=await k.downloadAvatarApi({url:p.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},S=async o=>{var f,g,t,n,l;try{const r=await k.uploadAvatarApi(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(d.value=h.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),p.value=(l=(n=r.data)==null?void 0:n.result)==null?void 0:l.url,c("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},b=async()=>{try{if(!d.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t,n;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I._sfc_main,{avatarUrl:d.value,avatarBlob:_.value,onClickAvatar:w,onSubmitImage:S,onDeleteImage:b},{avatarDefault:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString(((l=i.userInfo)==null?void 0:l.account)??"未知"),1)]}),_:1},8,["avatarUrl","avatarBlob"]),e.createElementVNode("span",null,e.toDisplayString((g=i.userInfo)!=null&&g.userName?(t=i.userInfo)==null?void 0:t.userName:(n=i.userInfo)==null?void 0:n.account),1)])}}}),E=C._export_sfc(V,[["__scopeId","data-v-bcb7a17f"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:y}){const u=i,c=e.ref({}),h=e.ref([]),p=y,d=t=>{c.value.dialogShow=(t==null?void 0:t.label)==="电子签名",p("clickSignButton",t)},_=()=>{c.value.dialogShow=!1,p("beforeDestroy")},w=e.computed(()=>"http://139.196.154.85:20013"),S=t=>{var a;const n=t.split(","),l=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let s=r.length;const v=new Uint8Array(s);for(;s--;)v[s]=r.charCodeAt(s);return new Blob([v],{type:l})},b=async t=>{var n,l,r;try{const s=await k.uploadAvatarApi(t);((n=s==null?void 0:s.data)==null?void 0:n.code)===200&&p("clickSubmitSign",w.value+"/"+((r=(l=s.data)==null?void 0:l.result)==null?void 0:r.url))}catch(s){x.ElMessage.error(s)}},o=e.ref(""),f=t=>{o.value=t,c.value.dialogShow=!1;const n=new FormData,l=S(t);n.append("file",l,"image.png"),b(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),b(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var l,r,s,v;o.value="",(l=c.value)!=null&&l.dialogShow&&(c.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),c.value=(s=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:s.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const l=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),s=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:c.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=c.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:(m=i.userInfo)==null?void 0:m.signature,fit:"contain"},{error:e.withCtx(()=>[e.createVNode(l,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(B.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(s,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(B.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(s,{key:1,id:"themeButton",disabled:a.disabled,onClick:q=>d(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(B.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),T=C._export_sfc(U,[["__scopeId","data-v-b9bd887d"]]);exports.ssAvatar=E;exports.ssSignature=T;
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import { ref as u, computed as E, reactive as P, nextTick as N, watch as k } from "vue";
|
|
2
|
+
import { i as L, g as R, s as v, E as y, f as O, d as Q, h as V, u as $, p as b } from "./menu-DBnQNYlq.js";
|
|
3
|
+
import { u as q } from "./login-CcYUrJ0A.js";
|
|
4
|
+
import { u as G } from "./threeModel.vue_vue_type_style_index_0_scoped_e7dd7d83_lang-bdUv7Wu8.js";
|
|
5
|
+
import { c as C } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-XVUNtATu.js";
|
|
6
|
+
const H = L("authorityState", {
|
|
7
|
+
state: () => ({
|
|
8
|
+
roleStructures: [],
|
|
9
|
+
userStructures: [],
|
|
10
|
+
deptStructures: [],
|
|
11
|
+
postStructures: [],
|
|
12
|
+
personalStructures: []
|
|
13
|
+
}),
|
|
14
|
+
actions: {
|
|
15
|
+
setRoleStructures(e) {
|
|
16
|
+
this.roleStructures = e;
|
|
17
|
+
},
|
|
18
|
+
setUserStructures(e) {
|
|
19
|
+
this.userStructures = e;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}), J = $(b), { activeMenuPath: S } = v(J), F = q(b), { structureData: W } = v(F), X = G(b), { itemData: Y } = v(X), Z = H(b), { roleStructures: tt } = v(Z), et = u([
|
|
23
|
+
{
|
|
24
|
+
label: "角色名称",
|
|
25
|
+
value: "",
|
|
26
|
+
name: "roleName"
|
|
27
|
+
}
|
|
28
|
+
]), at = u([
|
|
29
|
+
{
|
|
30
|
+
label: "查询"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: "重置"
|
|
34
|
+
}
|
|
35
|
+
]), T = P({
|
|
36
|
+
isFilter: !1,
|
|
37
|
+
filterForm: {}
|
|
38
|
+
}), st = u(!1), ct = (e) => {
|
|
39
|
+
console.log("handleQueryChange", e), T.isFilter = !0, T.filterForm = e;
|
|
40
|
+
}, h = u([
|
|
41
|
+
// {
|
|
42
|
+
// key: "extraButton",
|
|
43
|
+
// contents: [
|
|
44
|
+
// {
|
|
45
|
+
// label: "新增"
|
|
46
|
+
// }
|
|
47
|
+
// ]
|
|
48
|
+
// },
|
|
49
|
+
// {
|
|
50
|
+
// key: "rowButton",
|
|
51
|
+
// contents: [
|
|
52
|
+
// {
|
|
53
|
+
// label: "授权",
|
|
54
|
+
// textColor: `blue`
|
|
55
|
+
// }, {
|
|
56
|
+
// label: "编辑"
|
|
57
|
+
// },
|
|
58
|
+
// {
|
|
59
|
+
// label: "删除",
|
|
60
|
+
// textColor: 'red'
|
|
61
|
+
// }
|
|
62
|
+
// ]
|
|
63
|
+
// },
|
|
64
|
+
// // {
|
|
65
|
+
// // key: "tableIndex",
|
|
66
|
+
// // contents: []
|
|
67
|
+
// // },
|
|
68
|
+
// {
|
|
69
|
+
// key: "header",
|
|
70
|
+
// contents: [
|
|
71
|
+
// {
|
|
72
|
+
// label: "角色名称",
|
|
73
|
+
// prop: 'roleName'
|
|
74
|
+
// },
|
|
75
|
+
// {
|
|
76
|
+
// label: "角色状态",
|
|
77
|
+
// formType: 'Radio',
|
|
78
|
+
// prop: 'roleStatus',
|
|
79
|
+
// options: [
|
|
80
|
+
// {
|
|
81
|
+
// label: "启用",
|
|
82
|
+
// value: "启用"
|
|
83
|
+
// },
|
|
84
|
+
// {
|
|
85
|
+
// label: "禁用",
|
|
86
|
+
// value: "禁用"
|
|
87
|
+
// }
|
|
88
|
+
// ]
|
|
89
|
+
// },
|
|
90
|
+
// {
|
|
91
|
+
// label: "角色排序",
|
|
92
|
+
// prop: 'roleOrder',
|
|
93
|
+
// formType: 'Number',
|
|
94
|
+
// }, {
|
|
95
|
+
// label: "备注",
|
|
96
|
+
// prop: 'remark',
|
|
97
|
+
// formType: 'TextArea',
|
|
98
|
+
// }, {
|
|
99
|
+
// label: "权限",
|
|
100
|
+
// prop: 'roleAuthority',
|
|
101
|
+
// isTableColHidden: true,
|
|
102
|
+
// isFormColHidden: true,
|
|
103
|
+
// },
|
|
104
|
+
// {
|
|
105
|
+
// label: "操作"
|
|
106
|
+
// }
|
|
107
|
+
// ]
|
|
108
|
+
// },
|
|
109
|
+
// {
|
|
110
|
+
// key: "tableContents",
|
|
111
|
+
// contents: []
|
|
112
|
+
// // contents: [
|
|
113
|
+
// // [
|
|
114
|
+
// // "超级管理员",
|
|
115
|
+
// // "启动",
|
|
116
|
+
// // 1,
|
|
117
|
+
// // []
|
|
118
|
+
// // // ['元元模型/系统/查询', '元元模型/系统/新增', '元元模型/系统/编辑']
|
|
119
|
+
// // ], [
|
|
120
|
+
// // "普通管理员",
|
|
121
|
+
// // "启动",
|
|
122
|
+
// // 2,
|
|
123
|
+
// // []
|
|
124
|
+
// // // ['元元模型/系统/查询', '元元模型/系统/新增', '元元模型/系统/编辑']
|
|
125
|
+
// // ],
|
|
126
|
+
// // ]
|
|
127
|
+
// }
|
|
128
|
+
]), lt = E(() => h.value);
|
|
129
|
+
k(() => tt.value, (e) => {
|
|
130
|
+
(e == null ? void 0 : e.find((s) => {
|
|
131
|
+
var a;
|
|
132
|
+
return ((a = s == null ? void 0 : s.comp) == null ? void 0 : a.toUpperCase()) === "TABLE";
|
|
133
|
+
})) && console.log(1234, h.value);
|
|
134
|
+
}, { immediate: !0, deep: !0 });
|
|
135
|
+
const nt = (e) => {
|
|
136
|
+
K(e.singleContent, e.buttonName);
|
|
137
|
+
}, I = u({}), B = u(), g = async (e, t, s) => {
|
|
138
|
+
var a, l;
|
|
139
|
+
try {
|
|
140
|
+
const c = await e(t);
|
|
141
|
+
return ((a = c == null ? void 0 : c.data) == null ? void 0 : a.code) === 200 ? (s !== "查询" && await F.setLogRecordAsync({
|
|
142
|
+
type: s,
|
|
143
|
+
data: t
|
|
144
|
+
}, S.value), c.data.result || ((l = c == null ? void 0 : c.data) == null ? void 0 : l.code) === 200) : null;
|
|
145
|
+
} catch (c) {
|
|
146
|
+
y.error(c);
|
|
147
|
+
}
|
|
148
|
+
}, x = (e, t) => {
|
|
149
|
+
t == null || t.forEach((s) => {
|
|
150
|
+
e == null || e.forEach((a) => {
|
|
151
|
+
var l;
|
|
152
|
+
a.path == s.path && (a.checkedButtons = s.checkedButtons), a.children && ((l = a.children) == null ? void 0 : l.length) > 0 && x(a.children, t);
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
}, U = (e) => e == null ? void 0 : e.map((t) => {
|
|
156
|
+
var a;
|
|
157
|
+
const s = {
|
|
158
|
+
...t,
|
|
159
|
+
checkedButtons: []
|
|
160
|
+
};
|
|
161
|
+
return s.children && ((a = s.children) == null ? void 0 : a.length) > 0 && (s.children = U(s.children)), s;
|
|
162
|
+
}), ut = async (e, t) => {
|
|
163
|
+
switch (I.value = C(t), e) {
|
|
164
|
+
case "授权":
|
|
165
|
+
o.title = `【${t.roleName}】授权`, o.show = !0, await N(), t.roleAuthority && Array.isArray(t.roleAuthority) && x(p.value, t.roleAuthority);
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
}, rt = () => {
|
|
169
|
+
o.show = !1;
|
|
170
|
+
}, d = u(), ot = async (e) => {
|
|
171
|
+
const t = await g(R, {
|
|
172
|
+
key: {
|
|
173
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
174
|
+
type: "data",
|
|
175
|
+
pageKey: e
|
|
176
|
+
}
|
|
177
|
+
}, "查询"), s = t == null ? void 0 : t.map((a) => {
|
|
178
|
+
var l;
|
|
179
|
+
return {
|
|
180
|
+
id: a.id,
|
|
181
|
+
tableData: (l = a == null ? void 0 : a.value) == null ? void 0 : l.tableData
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
return s == null ? void 0 : s.map((a) => {
|
|
185
|
+
var l;
|
|
186
|
+
if (Array.isArray(a == null ? void 0 : a.tableData)) {
|
|
187
|
+
let c = { id: a.id };
|
|
188
|
+
return (l = a == null ? void 0 : a.tableData) == null || l.forEach((n, f) => {
|
|
189
|
+
c[`a${f}`] = n;
|
|
190
|
+
}), c;
|
|
191
|
+
} else
|
|
192
|
+
return {
|
|
193
|
+
...a.tableData,
|
|
194
|
+
id: a.id
|
|
195
|
+
};
|
|
196
|
+
});
|
|
197
|
+
}, K = (e, t) => {
|
|
198
|
+
const s = C(e);
|
|
199
|
+
s != null && s.id && delete s.id, t === "新增" ? g(O, {
|
|
200
|
+
key: {
|
|
201
|
+
type: "data",
|
|
202
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
203
|
+
pageKey: S.value,
|
|
204
|
+
tableId: D.value
|
|
205
|
+
},
|
|
206
|
+
value: {
|
|
207
|
+
tableData: s
|
|
208
|
+
}
|
|
209
|
+
}, t).then((a) => {
|
|
210
|
+
d.value = {
|
|
211
|
+
...e,
|
|
212
|
+
newId: a
|
|
213
|
+
}, t && a && y.success(t + "成功");
|
|
214
|
+
}) : t === "编辑" ? (console.log("编辑角色", s), g(Q, {
|
|
215
|
+
id: e.id,
|
|
216
|
+
key: {
|
|
217
|
+
type: "data",
|
|
218
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
219
|
+
pageKey: S.value,
|
|
220
|
+
tableId: D.value
|
|
221
|
+
},
|
|
222
|
+
value: {
|
|
223
|
+
tableData: s
|
|
224
|
+
}
|
|
225
|
+
}, t).then((a) => {
|
|
226
|
+
t && a && y.success(t + "成功"), o.show = !1;
|
|
227
|
+
})) : t === "删除" && g(V, {
|
|
228
|
+
id: e.id
|
|
229
|
+
}, t).then((a) => {
|
|
230
|
+
t && a && y.success(t + "成功");
|
|
231
|
+
});
|
|
232
|
+
}, _ = (e) => {
|
|
233
|
+
let t = [];
|
|
234
|
+
return e == null || e.forEach((s) => {
|
|
235
|
+
var a;
|
|
236
|
+
if (s.checkedButtons && ((a = s.checkedButtons) == null ? void 0 : a.length) > 0) {
|
|
237
|
+
const l = {
|
|
238
|
+
path: s.path,
|
|
239
|
+
checkedButtons: s.checkedButtons
|
|
240
|
+
// isCheckedAll: node.checkedButtons?.length === node.renderButtons?.length
|
|
241
|
+
};
|
|
242
|
+
t = t.concat(l);
|
|
243
|
+
}
|
|
244
|
+
s.children && (t = t.concat(_(s.children)));
|
|
245
|
+
}), t;
|
|
246
|
+
}, ht = () => {
|
|
247
|
+
d.value = {
|
|
248
|
+
...I.value,
|
|
249
|
+
roleAuthority: _(p.value)
|
|
250
|
+
// ['a' + authorityIndex]: checkedKeys
|
|
251
|
+
}, N(() => {
|
|
252
|
+
console.log("clickSubmitAuthority", d.value, h.value), K(d.value, "编辑");
|
|
253
|
+
});
|
|
254
|
+
}, o = P({
|
|
255
|
+
show: !1,
|
|
256
|
+
title: "角色授权",
|
|
257
|
+
width: "35%",
|
|
258
|
+
draggable: !0
|
|
259
|
+
}), it = ({ isPenultimate: e }, t) => {
|
|
260
|
+
var s, a;
|
|
261
|
+
return console.log("isPenultimate", e, t), ((a = (s = t == null ? void 0 : t.data) == null ? void 0 : s.renderButtons) == null ? void 0 : a.length) > 0 ? "is-penultimate" : "";
|
|
262
|
+
}, D = u(0), gt = async () => {
|
|
263
|
+
var s, a, l, c, n;
|
|
264
|
+
let e;
|
|
265
|
+
const t = await R({
|
|
266
|
+
key: {
|
|
267
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
268
|
+
type: "structure",
|
|
269
|
+
pageKey: S.value
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
return ((s = t == null ? void 0 : t.data) == null ? void 0 : s.code) === 200 && (a = t == null ? void 0 : t.data) != null && a.result && ((l = t == null ? void 0 : t.data) == null ? void 0 : l.result.length) > 0 && (e = (n = (c = t == null ? void 0 : t.data.result) == null ? void 0 : c[0]) == null ? void 0 : n.id), e;
|
|
273
|
+
}, p = u([]), dt = u([
|
|
274
|
+
{
|
|
275
|
+
path: "资源管理",
|
|
276
|
+
buttons: ["查询", "新增", "编辑", "删除"]
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
path: "资源管理/人员",
|
|
280
|
+
buttons: ["查询", "新增", "编辑", "删除"]
|
|
281
|
+
}
|
|
282
|
+
]), pt = (e, t) => {
|
|
283
|
+
var s;
|
|
284
|
+
e.checkedButtons = t ? (s = e.renderButtons) == null ? void 0 : s.map((a) => a.path) : [], console.log("handleNodeCheckChange", e, t);
|
|
285
|
+
}, r = u([]), ft = (e, t) => {
|
|
286
|
+
var s, a, l;
|
|
287
|
+
t.checkedButtons = e, ((s = t.checkedButtons) == null ? void 0 : s.length) === ((a = t.renderButtons) == null ? void 0 : a.length) ? r.value.push(t.path) : (e == null ? void 0 : e.length) === 0 && (r.value = (l = r.value) == null ? void 0 : l.filter((c) => c !== t.path));
|
|
288
|
+
};
|
|
289
|
+
k(() => r.value.length, () => {
|
|
290
|
+
var t, s;
|
|
291
|
+
const e = (t = B.value) == null ? void 0 : t.getCheckedKeys();
|
|
292
|
+
console.log(112, r.value, e), (s = B.value) == null || s.setCheckedKeys([...r.value]);
|
|
293
|
+
});
|
|
294
|
+
k(() => o.show, (e) => {
|
|
295
|
+
e || (p.value = U(p.value));
|
|
296
|
+
});
|
|
297
|
+
const m = E(() => {
|
|
298
|
+
var s;
|
|
299
|
+
const e = (s = C(W.value)) == null ? void 0 : s.filter((a) => {
|
|
300
|
+
var l, c;
|
|
301
|
+
return ((c = (l = a == null ? void 0 : a.key) == null ? void 0 : l.pageKey) == null ? void 0 : c.toUpperCase()) !== "MENU";
|
|
302
|
+
});
|
|
303
|
+
return [...e == null ? void 0 : e.map((a) => {
|
|
304
|
+
var n, f, w, M;
|
|
305
|
+
const l = /button/i;
|
|
306
|
+
let c = (w = (f = (n = a == null ? void 0 : a.value) == null ? void 0 : n.pageData) == null ? void 0 : f.compData) == null ? void 0 : w.filter((i) => l.test(i == null ? void 0 : i.key));
|
|
307
|
+
return c = Array.from(
|
|
308
|
+
new Set(c == null ? void 0 : c.flatMap((i) => i.contents.map((z) => z.label)))
|
|
309
|
+
), {
|
|
310
|
+
path: (M = a == null ? void 0 : a.key) == null ? void 0 : M.pageKey,
|
|
311
|
+
buttons: c
|
|
312
|
+
};
|
|
313
|
+
}), ...j.value];
|
|
314
|
+
}), j = u([]), A = (e, t) => {
|
|
315
|
+
if (Array.isArray(e))
|
|
316
|
+
return e == null ? void 0 : e.map((s) => {
|
|
317
|
+
var l, c;
|
|
318
|
+
const a = t == null ? void 0 : t.find((n) => (n == null ? void 0 : n.path) === (s == null ? void 0 : s.path));
|
|
319
|
+
return s.childMenus && s.childMenus.length > 0 ? {
|
|
320
|
+
...s,
|
|
321
|
+
renderButtons: s.carryData ? (l = a == null ? void 0 : a.buttons) == null ? void 0 : l.map((n) => ({
|
|
322
|
+
title: n,
|
|
323
|
+
path: s.path + "/" + n
|
|
324
|
+
})) : [],
|
|
325
|
+
checkedButtons: [],
|
|
326
|
+
children: A(s.childMenus, m.value),
|
|
327
|
+
childMenus: A(s.childMenus, m.value)
|
|
328
|
+
} : {
|
|
329
|
+
...s,
|
|
330
|
+
renderButtons: s.carryData ? (c = a == null ? void 0 : a.buttons) == null ? void 0 : c.map((n) => ({
|
|
331
|
+
title: n,
|
|
332
|
+
path: s.path + "/" + n
|
|
333
|
+
})) : [],
|
|
334
|
+
checkedButtons: []
|
|
335
|
+
};
|
|
336
|
+
});
|
|
337
|
+
}, yt = {
|
|
338
|
+
comp: "Group",
|
|
339
|
+
name: "/系统管理/角色管理",
|
|
340
|
+
compData: [
|
|
341
|
+
{
|
|
342
|
+
key: "groupContents",
|
|
343
|
+
contents: [
|
|
344
|
+
{
|
|
345
|
+
comp: "Table",
|
|
346
|
+
compData: h.value,
|
|
347
|
+
name: ""
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
};
|
|
353
|
+
k(() => Y.value, (e) => {
|
|
354
|
+
var t;
|
|
355
|
+
e && (e == null ? void 0 : e.length) > 0 && (h.value = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.compData, console.log(12346, e));
|
|
356
|
+
});
|
|
357
|
+
const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
358
|
+
__proto__: null,
|
|
359
|
+
addButtonsToTree: A,
|
|
360
|
+
authorizeDialog: o,
|
|
361
|
+
buttonValue: at,
|
|
362
|
+
changedRow: d,
|
|
363
|
+
clickRow: I,
|
|
364
|
+
clickRowButton: ut,
|
|
365
|
+
clickSubmitAuthority: ht,
|
|
366
|
+
closeAuthorizeDialog: rt,
|
|
367
|
+
customNodeClass: it,
|
|
368
|
+
getActivePageStructureId: gt,
|
|
369
|
+
getPageDataAsync: ot,
|
|
370
|
+
handleItemDataChange: nt,
|
|
371
|
+
handleNodeBtnChange: ft,
|
|
372
|
+
handleNodeCheckChange: pt,
|
|
373
|
+
handleQueryChange: ct,
|
|
374
|
+
handleSubmitAsync: g,
|
|
375
|
+
isPageDataExist: st,
|
|
376
|
+
menuData: p,
|
|
377
|
+
menusButtons: dt,
|
|
378
|
+
pageData: h,
|
|
379
|
+
pageDataFiltered: lt,
|
|
380
|
+
queryFormData: et,
|
|
381
|
+
structureButtons: m,
|
|
382
|
+
structureId: D,
|
|
383
|
+
submitTableAsyncByVerify: K,
|
|
384
|
+
tempRolePageData: yt,
|
|
385
|
+
tempSysMenus: j,
|
|
386
|
+
treeRef: B
|
|
387
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
388
|
+
export {
|
|
389
|
+
Dt as S,
|
|
390
|
+
o as a,
|
|
391
|
+
gt as g,
|
|
392
|
+
yt as t,
|
|
393
|
+
H as u
|
|
394
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),B=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./index-HOLtxrWE.cjs"),k=require("./menu-DBX0QxSF.cjs"),y=require("./threeModel.vue_vue_type_style_index_0_scoped_e7dd7d83_lang-C3w6_nGz.cjs");require("./array-C4Es3IJl.cjs");const V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C2oFMwa6.cjs"),F=require("./index-C31XRLFj.cjs"),O=require("./index-W-mzocaB.cjs"),R=require("./index-CTvJr4hu.cjs"),b={class:"type-select"},L=["onClick"],U={class:"list-icon"},z={__name:"index",setup(E){const m=y.useModelComp(k.pinia),{itemData:i}=k.storeToRefs(m),C=v=>{const d=_.cloneDeep(i.value);d.push({comp:v.comp,name:v.name,compData:[]}),m.setItemData(d)};return(v,d)=>{const s=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",b,[(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:g=>C(f)},[e.createElementVNode("div",U,[e.createVNode(s,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,L)]))),128))])}}},H=V._export_sfc(z,[["__scopeId","data-v-1f87163f"]]),j={class:"fill-content"},A={class:"operate-content"},G={class:"collapse-title-content"},J={class:"collapse-title-item"},K={key:1},P=["onClick"],Q={class:"icon-content"},W={key:0,class:"edit-content"},X=["onClick"],Y={class:"comp-child"},Z={__name:"index",setup(E){const m=y.useModelComp(k.pinia),{itemData:i,originalData:C}=k.storeToRefs(m),v=e.ref([]);e.ref([]);const d=e.ref([]),s=e.ref([]),f=a=>{var n;let c=(n=_.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=_.cloneDeep(s.value))==null?void 0:n.map((t,o)=>(a===o&&(t.content=!1),t));s.value=c,v.value=_.cloneDeep(i.value)},g=(a,c)=>{var h;let n=(h=_.cloneDeep(s.value))==null?void 0:h.map((l,p)=>(a===p&&(l.content=!1),l));s.value=n;const t=_.cloneDeep(i.value),o=t==null?void 0:t.filter((l,p)=>(p===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?v.value=[]:v.value=(c=_.cloneDeep(i.value))==null?void 0:c.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),d.value=v.value,s.value=(n=_.cloneDeep(d.value))==null?void 0:n.map((t,o)=>({id:o,content:!1}))},{deep:!0,immediate:!0});const S=a=>B.getComponent(a),q=(a,c,n)=>{var o,h;if(!a)return;let t=_.cloneDeep(i.value);t=(o=t==null?void 0:t.map((l,p)=>(p===n&&(l.compData=a),l)))==null?void 0:o.filter(l=>(l==null?void 0:l.comp)!=="methodButton"),s.value=(h=_.cloneDeep(t))==null?void 0:h.map((l,p)=>({id:p,content:!1})),m.setOriginalData(t),m.setItemData(t)},T=a=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const c=_.cloneDeep(i.value),n=c==null?void 0:c.filter((t,o)=>o!==a);m.setOriginalData(n),m.setItemData(n),k.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(a,c)=>{const n=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",j,[c[1]||(c[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",A,[e.createVNode(F.default,{class:"collapse-content",collapseContents:v.value},{title:e.withCtx(({item:t,index:o})=>{var h,l,p,D,N,x,w,$,I,M;return[e.createElementVNode("div",G,[e.createElementVNode("div",J,[(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=(p=s.value)==null?void 0:p.find(r=>r.id===o))!=null&&D.content?(e.openBlock(),e.createElementBlock("div",K,[e.createVNode(O._sfc_main$1,{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=(N=s.value)==null?void 0:N.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,P))]),e.createElementVNode("div",Q,[($=(w=s.value)==null?void 0:w.find(r=>r.id===o))!=null&&$.content?(e.openBlock(),e.createElementBlock("div",W,[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=>g(o,t.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(M=(I=s.value)==null?void 0:I.find(r=>r.id===o))!=null&&M.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(r=>T(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Delete",style:{width:"16px",height:"16px"}})],8,X))])])]}),content:e.withCtx(({item:t,index:o})=>{var h,l;return[e.createElementVNode("div",Y,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S(t.comp+"Operate")),{itemContents:t==null?void 0:t.compData,originalItemContents:(l=(h=d.value)==null?void 0:h.find((p,D)=>D===o))==null?void 0:l.compData,onChange:p=>q(p,t,o)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},ee=V._export_sfc(Z,[["__scopeId","data-v-27bd1564"]]),te={key:0,class:"show-content"},oe={style:{display:"flex"}},ne={__name:"index",setup(E){const m=y.useModelComp(k.pinia),{itemData:i}=k.storeToRefs(m),C=e.ref([]);e.watch(()=>i.value,()=>{var d;!i.value||((d=i.value)==null?void 0:d.length)===0?C.value=[]:C.value=_.cloneDeep(i.value)},{deep:!0,immediate:!0});const v=d=>B.getComponent(d);return(d,s)=>{var f;return((f=C.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(u,g)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:g},[e.createElementVNode("div",oe,e.toDisplayString(u.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v(u.comp)),{itemData:u==null?void 0:u.compData,childItemData:u==null?void 0:u.itemChildData,key:g},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},le=V._export_sfc(ne,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=ee;exports.modelSelect=H;exports.modelShow=le;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createElementBlock as M, openBlock as L, createElementVNode as Q, renderSlot as u, defineComponent as Z, ref as m, resolveComponent as r, createVNode as S, withCtx as i, reactive as T, watch as N, unref as v, toDisplayString as k, createTextVNode as j } from "vue";
|
|
2
2
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { u as EA, l as IA } from "./index-
|
|
3
|
+
import { u as EA, l as IA } from "./index-jteGdz9o.js";
|
|
4
4
|
import { useRouter as gA } from "vue-router";
|
|
5
|
-
import { u as CA } from "./login-
|
|
6
|
-
import { a as BA, p as QA, E as Y, b as iA, g as G } from "./menu-
|
|
7
|
-
import { v as oA } from "./index-
|
|
5
|
+
import { u as CA } from "./login-CcYUrJ0A.js";
|
|
6
|
+
import { a as BA, p as QA, E as Y, b as iA, g as G } from "./menu-DBnQNYlq.js";
|
|
7
|
+
import { v as oA } from "./index-DMQYdu7x.js";
|
|
8
8
|
import { d as cA } from "./crypto-BRyGpjGR.js";
|
|
9
9
|
const RA = {}, nA = { class: "header-wrapper" }, wA = { class: "header-horizontal" }, eA = { class: "header-logo" }, sA = { class: "header-cTitle" }, SA = { class: "header-horizontal" }, tA = { class: "header-eTitle" };
|
|
10
10
|
function JA(J, l) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as g, ref as C, onMounted as _, createElementBlock as h, openBlock as v, createVNode as D } from "vue";
|
|
2
|
-
import { f as c, h as k, d as x, u as I, p as K, s as M, g as S } from "./menu-
|
|
3
|
-
import { x as T } from "./index-
|
|
4
|
-
import { c as y } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { f as c, h as k, d as x, u as I, p as K, s as M, g as S } from "./menu-DBnQNYlq.js";
|
|
3
|
+
import { x as T } from "./index-CiiImREt.js";
|
|
4
|
+
import { c as y } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-XVUNtATu.js";
|
|
5
5
|
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const q = (a) => {
|
|
7
7
|
const s = {};
|