ss-component-new 1.1.262 → 1.1.264

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.
Files changed (91) hide show
  1. package/dist/{array-BdJe1Isx.cjs → array-D3xioWc3.cjs} +1 -1
  2. package/dist/{array-DnpEPYrW.js → array-De6v-7c8.js} +2 -2
  3. package/dist/{cloneDeep-E3wKN3B0.js → cloneDeep-B2ByQP-n.js} +1 -1
  4. package/dist/{cloneDeep-CuzxIr2L.cjs → cloneDeep-fJrTDzM4.cjs} +1 -1
  5. package/dist/{index-BDiy9l4J.js → index--0pthhoG.js} +35 -35
  6. package/dist/{index-BszuOV6x.cjs → index-08aCULjy.cjs} +1 -1
  7. package/dist/{index-g9LQfTOA.cjs → index-0TcXp8mH.cjs} +1 -1
  8. package/dist/index-B4jC_LC5.cjs +1 -0
  9. package/dist/{index-BR6ludiV.cjs → index-B6yeLC4B.cjs} +1 -1
  10. package/dist/{index-C5CWOGoQ.cjs → index-BCLA1nYG.cjs} +1 -1
  11. package/dist/{index-CT57Kiyw.js → index-BDIP3GvE.js} +5 -5
  12. package/dist/{index-BkSpEp24.js → index-BLC8ydIr.js} +6 -6
  13. package/dist/{index-DA1g69WH.js → index-BRdg4IiT.js} +3308 -3297
  14. package/dist/{index-o8ssqTcl.cjs → index-BRkdObg7.cjs} +1 -1
  15. package/dist/{index-q1VJsIJM.cjs → index-BRkvuCrS.cjs} +1 -1
  16. package/dist/index-BYUhFGra.cjs +1 -0
  17. package/dist/{index-BCgmgSo6.cjs → index-BjJJGDlr.cjs} +1 -1
  18. package/dist/{index-DPhNWMWt.js → index-BwYoB3zY.js} +1 -1
  19. package/dist/{index-Qhs8qV0Q.js → index-ByD0b4gQ.js} +1 -1
  20. package/dist/{index-BaKNxwnN.cjs → index-BzfDFTVJ.cjs} +32 -32
  21. package/dist/{index-D1I_FANs.js → index-C4k05bGp.js} +8 -8
  22. package/dist/{index-DPqX5NOD.cjs → index-C7u1PeVA.cjs} +1 -1
  23. package/dist/{index-oInxtbp2.js → index-CACJUJNK.js} +3 -3
  24. package/dist/{index-BIxHHxhy.js → index-CAMfVOTJ.js} +3 -3
  25. package/dist/index-CCxjdgET.js +289 -0
  26. package/dist/{index-ConK7kqd.cjs → index-CGmFed4r.cjs} +1 -1
  27. package/dist/{index-Oj115_Py.cjs → index-CINFGcYo.cjs} +1 -1
  28. package/dist/{index-ce6eGEEn.js → index-CKwpRhPM.js} +3 -3
  29. package/dist/{index-CYpllCLZ.js → index-CMMc21DE.js} +5 -5
  30. package/dist/{index-DZr5ivXe.js → index-CUmxELcB.js} +1 -1
  31. package/dist/{index-DV_n4TRj.js → index-CZ2mVLUS.js} +4 -4
  32. package/dist/{index-Bkz-wtWG.cjs → index-Ca-dN5Cs.cjs} +1 -1
  33. package/dist/index-CiPPPWoz.js +457 -0
  34. package/dist/index-ClFJDxkW.js +704 -0
  35. package/dist/{index-Cly4yemp.js → index-CmiwbsGe.js} +1 -1
  36. package/dist/{index-Cx6JU0mX.cjs → index-CophBMbH.cjs} +1 -1
  37. package/dist/{index-DjT9EKHk.cjs → index-Ctjc6Jcq.cjs} +1 -1
  38. package/dist/{index-BtBTtGCV.cjs → index-CvvmJuAB.cjs} +1 -1
  39. package/dist/{index-BM5XhVdC.js → index-CwB7I565.js} +1 -1
  40. package/dist/{index-CAqt6-um.js → index-DCGzAKWd.js} +4 -4
  41. package/dist/{index-BQz6TAOh.cjs → index-DDPAMlSG.cjs} +1 -1
  42. package/dist/index-DEv2DOlH.cjs +1 -0
  43. package/dist/{index-B_SWF15M.js → index-DMCUh24w.js} +5 -5
  44. package/dist/{index-D-m5syTd.cjs → index-DSxBLvAT.cjs} +1 -1
  45. package/dist/{index-CnSWuvbR.js → index-DXd7EQps.js} +5 -5
  46. package/dist/index-Dcpfhw1L.cjs +1 -0
  47. package/dist/{index-Vyzu845m.js → index-DfKXP07X.js} +13 -8
  48. package/dist/{index-CrhFsTrF.js → index-Dn9ZzQw9.js} +3 -3
  49. package/dist/{index-CMNXbrgU.cjs → index-DymcJtj4.cjs} +1 -1
  50. package/dist/{index-D78i8R3T.cjs → index-ERfBi-RP.cjs} +1 -1
  51. package/dist/{index-BoVzh91B.js → index-EmmO21uK.js} +4 -4
  52. package/dist/{index-Gu7G-roX.js → index-GG9AAJSa.js} +4 -4
  53. package/dist/index-GtWRkXjP.js +133 -0
  54. package/dist/{index-K_gfyAlX.js → index-Pzfiy_pl.js} +1 -1
  55. package/dist/index-SYAZCe_x.js +3579 -0
  56. package/dist/{index-CTb7K2Bk.cjs → index-_rARCgTs.cjs} +1 -1
  57. package/dist/index-cj-WHGF0.cjs +1 -0
  58. package/dist/{index-WrUPpyn7.cjs → index-hRwcFNhM.cjs} +1 -1
  59. package/dist/{index-CCJN0WUL.js → index-qofx0IRr.js} +9 -9
  60. package/dist/index-sFDoFhGY.cjs +1 -0
  61. package/dist/{index-C8cVwYL_.cjs → index-sVlKvvQZ.cjs} +1 -1
  62. package/dist/{index-DjVsDHMd.cjs → index-u6rAowW4.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_script_setup_true_lang-I_efsWj8.js → index.vue_vue_type_script_setup_true_lang-CwRRfUhq.js} +1 -1
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-MiZbv3kB.cjs → index.vue_vue_type_script_setup_true_lang-HIAfOHHq.cjs} +1 -1
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Cn95BsEm.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Be6r7R3U.cjs} +1 -1
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BUnbO0RO.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-dyax8Dv5.js} +6 -6
  67. package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BB6kJ34L.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DUY9SJBE.js} +12 -12
  68. package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DjU3k4mS.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DYSNP688.cjs} +1 -1
  69. package/dist/{login-Duwt6-x6.cjs → login-Wrj9nSOa.cjs} +1 -1
  70. package/dist/{login-B9vlP2b5.js → login-o8x8Nxaf.js} +2 -2
  71. package/dist/{main-5iPo1p9a.js → main-DWoD0Vdp.js} +7 -7
  72. package/dist/{main-XmfoFrF9.cjs → main-rSkhpXGR.cjs} +1 -1
  73. package/dist/{menu-Mo-2vv7x.js → menu-CFLAcuA-.js} +39 -25
  74. package/dist/{menu-BnL2_TmY.cjs → menu-cQfDaGL1.cjs} +7 -7
  75. package/dist/{modelComp-D4sttzBW.cjs → modelComp-4oAkv2ok.cjs} +1 -1
  76. package/dist/{modelComp-CucEweH7.js → modelComp-B7C56fRv.js} +1 -1
  77. package/dist/ss-component.cjs +1 -1
  78. package/dist/ss-component.css +1 -1
  79. package/dist/ss-component.js +7 -7
  80. package/dist/ss-component3.cjs +1 -1
  81. package/dist/ss-component3.js +1 -1
  82. package/package.json +1 -1
  83. package/dist/index-1hfdjpZa.cjs +0 -1
  84. package/dist/index-B2gB_eHu.js +0 -683
  85. package/dist/index-BYgVh4wp.js +0 -271
  86. package/dist/index-BcWsVwmK.cjs +0 -1
  87. package/dist/index-Bmd4CfMk.cjs +0 -1
  88. package/dist/index-CQT8T6Du.js +0 -301
  89. package/dist/index-Hhjfw8oQ.cjs +0 -1
  90. package/dist/index-_c4rtHYx.js +0 -3474
  91. package/dist/index-hmwwoDCP.cjs +0 -1
@@ -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-_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";
2
+ import { s as Y, g as J } from "./index-SYAZCe_x.js";
3
+ import { p as B } from "./index-CmiwbsGe.js";
4
+ import { u as V } from "./modelComp-B7C56fRv.js";
5
+ import { s as S, E as Z } from "./menu-CFLAcuA-.js";
6
+ import "./array-De6v-7c8.js";
7
7
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { c as v } from "./cloneDeep-E3wKN3B0.js";
8
+ import { c as v } from "./cloneDeep-B2ByQP-n.js";
9
9
  import ee from "./index-CZtXRS3l.js";
10
- import { _ as te } from "./index-CT57Kiyw.js";
11
- import { E as ne } from "./index-oInxtbp2.js";
10
+ import { _ as te } from "./index-BDIP3GvE.js";
11
+ import { E as ne } from "./index-CACJUJNK.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";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
+ "use strict";const o=require("vue"),r=require("./menu-cQfDaGL1.cjs"),F=require("./login-Wrj9nSOa.cjs"),q=require("./modelComp-4oAkv2ok.cjs"),D=require("./cloneDeep-fJrTDzM4.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 { computed as b, getCurrentInstance as qe, inject as ve, unref as u, ref as x, onMounted as ie, watch as Y, toRef as Ke, onUnmounted as Vn, shallowRef as Ve, nextTick as D, defineComponent as Z, useAttrs as Dn, useSlots as un, createElementBlock as O, openBlock as g, normalizeStyle as Ye, normalizeClass as E, createCommentVNode as T, Fragment as De, createElementVNode as F, renderSlot as K, createBlock as M, withCtx as N, resolveDynamicComponent as U, mergeProps as lt, withModifiers as ke, createVNode as oe, toDisplayString as J, onBeforeUnmount as xe, provide as cn, Text as _n, reactive as dn, h as Un, watchEffect as Kn, isRef as Yn, onScopeDispose as Wn, markRaw as ut, toRefs as Gn, resolveComponent as Ce, Transition as qn, withDirectives as et, withKeys as Re, createTextVNode as tt, vShow as nt, isVNode as fn, render as vn } from "vue";
2
- import { S as Ft, i as pn, d as gt, t as hn, f as Pt, g as Xn, h as re, j as Ht, k as Xe, m as de, n as ye, o as We, p as mn, q as fe, s as jn, v as Jn, w as Zn, x as Qn, y as Te, z as Ie, A as Me, _ as Be, B as pe, V as eo, C as to, D as no, F as oo, G as ae, N as _e, H as ao, I as Ge, J as gn, K as bt, L as so, M as ct, O as ro, P as $t, Q as io, R as zt, T as lo, U as uo, W as co, X as fo, Y as vo, Z as po, $ as Vt, a0 as Dt, a1 as ho } from "./index-Vyzu845m.js";
2
+ import { S as Ft, i as pn, d as gt, t as hn, f as Pt, g as Xn, h as re, j as Ht, k as Xe, m as de, n as ye, o as We, p as mn, q as fe, s as jn, v as Jn, w as Zn, x as Qn, y as Te, z as Ie, A as Me, _ as Be, B as pe, V as eo, C as to, D as no, F as oo, G as ae, N as _e, H as ao, I as Ge, J as gn, K as bt, L as so, M as ct, O as ro, P as $t, Q as io, R as zt, T as lo, U as uo, W as co, X as fo, Y as vo, Z as po, $ as Vt, a0 as Dt, a1 as ho } from "./index-DfKXP07X.js";
3
3
  import { m as mo } from "./typescript-BpuhIBuJ.js";
4
- import { d as _t, i as bn, a as go, b as bo, e as yn, f as yo } from "./cloneDeep-E3wKN3B0.js";
5
- import { i as En } from "./index.vue_vue_type_script_setup_true_lang-I_efsWj8.js";
4
+ import { d as _t, i as bn, a as go, b as bo, e as yn, f as yo } from "./cloneDeep-B2ByQP-n.js";
5
+ import { i as En } from "./index.vue_vue_type_script_setup_true_lang-CwRRfUhq.js";
6
6
  function Eo(e) {
7
7
  return e;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import { ref as l, watch as b } from "vue";
2
- import { g as y, s as m } from "./menu-Mo-2vv7x.js";
3
- import { s as d, h as g } from "./index-BDiy9l4J.js";
4
- import { u as D } from "./modelComp-CucEweH7.js";
2
+ import { g as y, s as m } from "./menu-CFLAcuA-.js";
3
+ import { s as d, h as g } from "./index--0pthhoG.js";
4
+ import { u as D } from "./modelComp-B7C56fRv.js";
5
5
  const f = D(), { itemData: h } = m(f), c = l(0), k = l([
6
6
  {
7
7
  label: "机构名称",
@@ -0,0 +1,289 @@
1
+ import { u as z } from "./modelComp-B7C56fRv.js";
2
+ import { p as N } from "./index-CmiwbsGe.js";
3
+ import { s as b, E as K, u as G, c as H, b as Q, d as V, g as W } from "./menu-CFLAcuA-.js";
4
+ import { g as X } from "./index-SYAZCe_x.js";
5
+ import { g as E, a as Y, f as Z, h as _, i as $, j as c } from "./index-BRdg4IiT.js";
6
+ import { ref as L, watch as M } from "vue";
7
+ import { v as m } from "./index-CKwpRhPM.js";
8
+ import { g as U } from "./index--0pthhoG.js";
9
+ import { d as F } from "./crypto-BRyGpjGR.js";
10
+ import { u as ee } from "./login-o8x8Nxaf.js";
11
+ import { c as A } from "./cloneDeep-B2ByQP-n.js";
12
+ const ae = ee(), { loginUserInfo: j, cryptoInfo: w } = b(ae), S = z(N), { itemData: se, curStructureCompIds: B, isSubmitCurStructure: re, isRefreshCurStructure: le } = b(S), q = G(N), { activeMenuPath: h, buttonTriggerType: te, cacheStructures: ue } = b(q), C = Y(N), { selectTitle: I } = b(C), ke = () => {
13
+ S.setIsEdit("edit"), S.setSubmitCurStructure(h.value !== "/平台管理/菜单管理");
14
+ }, Ie = () => {
15
+ S.setIsEdit("view"), S.setRefreshCurStructure(!0);
16
+ }, we = async (e) => {
17
+ var l;
18
+ if ((e == null ? void 0 : e.key) === "main" || I.value.length === 1)
19
+ d.value = await E(h.value, sessionStorage.getItem("systemKey")), C.setSelectIndex(""), C.setSelectMenu(""), C.setSelectTitle([]);
20
+ else {
21
+ const n = [], g = (e == null ? void 0 : e.key) === "" || !(e != null && e.key) ? "" : parseInt(e == null ? void 0 : e.key);
22
+ d.value = await E(h.value, sessionStorage.getItem("systemKey"), g);
23
+ let y = -1;
24
+ (l = I.value) == null || l.forEach((u, t) => {
25
+ (u == null ? void 0 : u.key) === (e == null ? void 0 : e.key) && (y = t), (y === -1 || y >= t) && n.push(u);
26
+ }), C.setSelectTitle(n), g !== "" ? C.setSelectMenu(e == null ? void 0 : e.key) : (C.setSelectIndex(""), C.setSelectMenu(""));
27
+ }
28
+ S.setItemData(d.value), S.setOriginalData(d.value);
29
+ }, p = async (e, l, n, g = "contentConfig") => {
30
+ var y, u, t;
31
+ try {
32
+ let i, o;
33
+ l === "create" ? (i = {
34
+ key: {
35
+ systemKey: sessionStorage.getItem("systemKey"),
36
+ pageKey: n,
37
+ type: "structure",
38
+ structureBelong: g,
39
+ parentTable: "",
40
+ version: 1
41
+ },
42
+ value: {
43
+ pageData: {
44
+ ...e,
45
+ compData: (y = e == null ? void 0 : e.compData) == null ? void 0 : y.filter((a) => (a == null ? void 0 : a.key) !== "tableContents")
46
+ }
47
+ }
48
+ }, o = H) : l === "update" ? (i = {
49
+ id: e == null ? void 0 : e.id,
50
+ key: {
51
+ systemKey: sessionStorage.getItem("systemKey"),
52
+ pageKey: n,
53
+ type: "structure",
54
+ structureBelong: g,
55
+ parentTable: "",
56
+ version: 1
57
+ },
58
+ value: {
59
+ pageData: {
60
+ ...e,
61
+ compData: (u = e == null ? void 0 : e.compData) == null ? void 0 : u.filter((a) => (a == null ? void 0 : a.key) !== "tableContents")
62
+ }
63
+ }
64
+ }, o = Q) : l === "delete" && (i = {
65
+ id: e,
66
+ key: {
67
+ systemKey: sessionStorage.getItem("systemKey"),
68
+ pageKey: n,
69
+ type: "structure",
70
+ structureBelong: g,
71
+ parentTable: "",
72
+ version: 1
73
+ }
74
+ }, o = V);
75
+ const f = await o(i);
76
+ if (((t = f == null ? void 0 : f.data) == null ? void 0 : t.code) === 200)
77
+ return f.data.result;
78
+ throw K.error("保存响应失败"), new Error("保存响应失败");
79
+ } catch {
80
+ K.error("保存响应失败");
81
+ }
82
+ }, P = L([]), xe = async (e) => {
83
+ var f;
84
+ const l = JSON.parse(A(JSON.stringify(se.value)));
85
+ if (!re.value)
86
+ return P.value.push({
87
+ key: te.value,
88
+ data: l
89
+ }), K.success("已暂存");
90
+ const n = l == null ? void 0 : l.map((a) => a.id), g = n.filter((a) => {
91
+ var r;
92
+ return !((r = B.value) != null && r.includes(a));
93
+ }), y = (f = B.value) == null ? void 0 : f.filter((a) => !n.includes(a)), u = [...g, ...y], t = l == null ? void 0 : l.filter((a) => !a.id), i = l == null ? void 0 : l.filter((a) => a.id);
94
+ let o = [];
95
+ u && (u == null ? void 0 : u.length) > 0 && (u == null || u.forEach((a) => {
96
+ a && o.push(p(a, "delete", e));
97
+ })), t && (t == null ? void 0 : t.length) > 0 && (t == null || t.forEach((a) => {
98
+ a && o.push(p(a, "create", e));
99
+ })), i && (i == null ? void 0 : i.length) > 0 && (i == null || i.forEach((a) => {
100
+ n != null && n.includes(a.id) && (console.log("clickSavePage5", "包含"), a && o.push(p(a, "update", e)));
101
+ })), Promise.all(o).then(() => {
102
+ K.success("保存成功"), S.setRefreshCurStructure(!0);
103
+ }).catch((a) => {
104
+ K.success(a);
105
+ });
106
+ };
107
+ M(() => {
108
+ var e;
109
+ return (e = P.value) == null ? void 0 : e.length;
110
+ }, (e) => {
111
+ e && q.setCacheStructures(P.value);
112
+ }, { immediate: !0 });
113
+ M(() => {
114
+ var e;
115
+ return (e = ue.value) == null ? void 0 : e.length;
116
+ }, (e) => {
117
+ e === 0 && P.value.splice(0);
118
+ }, { immediate: !0 });
119
+ const Te = (e) => X(e), d = L([]), Ke = async (e, l = "data") => {
120
+ var g, y, u, t, i, o;
121
+ if ((e == null ? void 0 : e.type) === "delete")
122
+ await _((g = e == null ? void 0 : e.singleContent) == null ? void 0 : g.id);
123
+ else if ((e == null ? void 0 : e.buttonName) === "新增") {
124
+ let f = {};
125
+ for (let a in e == null ? void 0 : e.singleContent)
126
+ a !== "id" && a !== "index" && (f[a] = e == null ? void 0 : e.singleContent[a]);
127
+ await $(
128
+ l,
129
+ h.value,
130
+ e == null ? void 0 : e.index,
131
+ sessionStorage.getItem("systemKey"),
132
+ Object.values(f),
133
+ e == null ? void 0 : e.column
134
+ );
135
+ } else if ((e == null ? void 0 : e.buttonName) === "编辑") {
136
+ let f = {}, a = (y = e == null ? void 0 : e.singleContent) == null ? void 0 : y.id;
137
+ for (let r in e == null ? void 0 : e.singleContent)
138
+ r !== "id" && r !== "index" && (f[r] = e == null ? void 0 : e.singleContent[r]);
139
+ await c(
140
+ l,
141
+ h.value,
142
+ e == null ? void 0 : e.index,
143
+ a,
144
+ sessionStorage.getItem("systemKey"),
145
+ Object.values(f),
146
+ e == null ? void 0 : e.column
147
+ );
148
+ }
149
+ let n = (t = (u = I.value) == null ? void 0 : u[I.value.length - 1]) != null && t.key ? parseInt((o = (i = I.value) == null ? void 0 : i[I.value.length - 1]) == null ? void 0 : o.key) : "";
150
+ d.value = await E(h.value, sessionStorage.getItem("systemKey"), n), S.setItemData(d.value), S.setOriginalData(d.value);
151
+ }, ie = async (e) => {
152
+ var n, g, y, u, t;
153
+ const l = await W({
154
+ id: e
155
+ });
156
+ return (t = (u = (y = (g = (n = l == null ? void 0 : l.data) == null ? void 0 : n.result) == null ? void 0 : g[0]) == null ? void 0 : y.value) == null ? void 0 : u.pageData) == null ? void 0 : t.name;
157
+ }, Ee = async (e) => {
158
+ var g, y;
159
+ const l = await ie(e == null ? void 0 : e.index);
160
+ await Z(e == null ? void 0 : e.index, {
161
+ comp: "Form",
162
+ compData: (g = A(e == null ? void 0 : e.contents)) == null ? void 0 : g.filter((u) => u.contents),
163
+ name: l
164
+ });
165
+ const n = (y = A(d.value)) == null ? void 0 : y.map((u) => ((u == null ? void 0 : u.id) === (e == null ? void 0 : e.index) && (u.compData = e == null ? void 0 : e.contents), u));
166
+ S.setItemData(n), S.setOriginalData(n);
167
+ }, Pe = (e) => {
168
+ d.value = e, S.setItemData(d.value), S.setOriginalData(d.value);
169
+ }, J = (e) => {
170
+ var l, n, g;
171
+ return ((n = (l = j.value) == null ? void 0 : l.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? !0 : ((g = j.value) == null ? void 0 : g.account) === (e == null ? void 0 : e.account);
172
+ }, R = async (e, l, n) => {
173
+ const g = U("/系统管理/角色管理"), y = U("/系统管理/部门管理");
174
+ return await Promise.all([g, y]).then((t) => {
175
+ var f, a;
176
+ const i = (f = t == null ? void 0 : t[0]) == null ? void 0 : f.map((r) => ({
177
+ label: r == null ? void 0 : r.roleName,
178
+ value: r == null ? void 0 : r.roleName
179
+ })), o = (a = t == null ? void 0 : t[1]) == null ? void 0 : a.map((r) => ({
180
+ label: r == null ? void 0 : r.deptName,
181
+ value: r == null ? void 0 : r.deptName
182
+ }));
183
+ return n ? e == null ? void 0 : e.map((r) => {
184
+ var k;
185
+ return {
186
+ ...r,
187
+ compData: (k = r == null ? void 0 : r.compData) == null ? void 0 : k.map((s) => {
188
+ var x, T;
189
+ return (s == null ? void 0 : s.key) === "header" ? {
190
+ ...s,
191
+ contents: (x = s == null ? void 0 : s.contents) == null ? void 0 : x.map((D) => D.prop === "userDept" ? {
192
+ ...D,
193
+ options: o
194
+ } : D.prop === "userRoles" ? {
195
+ ...D,
196
+ options: i
197
+ } : D)
198
+ } : (s == null ? void 0 : s.key) === "tableContents" ? {
199
+ ...s,
200
+ contents: (T = s == null ? void 0 : s.contents) == null ? void 0 : T.map((D) => {
201
+ var v;
202
+ return {
203
+ ...D,
204
+ password: J(D) ? F(D == null ? void 0 : D.password, (v = w == null ? void 0 : w.value) == null ? void 0 : v.privateKey) : D == null ? void 0 : D.password
205
+ };
206
+ })
207
+ } : s;
208
+ })
209
+ };
210
+ }) : e == null ? void 0 : e.map((r) => {
211
+ var k;
212
+ return {
213
+ ...r,
214
+ compData: (k = r == null ? void 0 : r.compData) == null ? void 0 : k.map((s) => {
215
+ var x, T, D;
216
+ return (s == null ? void 0 : s.key) === "rowButton" || (s == null ? void 0 : s.key) === "extraButton" ? {
217
+ ...s,
218
+ contents: (x = s == null ? void 0 : s.contents) == null ? void 0 : x.filter((v) => l == null ? void 0 : l.includes(v == null ? void 0 : v.label))
219
+ } : (s == null ? void 0 : s.key) === "header" ? {
220
+ ...s,
221
+ contents: (T = s == null ? void 0 : s.contents) == null ? void 0 : T.map((v) => v.prop === "userDept" ? {
222
+ ...v,
223
+ options: o
224
+ } : v.prop === "userRoles" ? {
225
+ ...v,
226
+ options: i
227
+ } : v)
228
+ } : (s == null ? void 0 : s.key) === "tableContents" ? {
229
+ ...s,
230
+ contents: (D = s == null ? void 0 : s.contents) == null ? void 0 : D.map((v) => {
231
+ var O;
232
+ return {
233
+ ...v,
234
+ password: J(v) ? F(v == null ? void 0 : v.password, (O = w == null ? void 0 : w.value) == null ? void 0 : O.privateKey) : v == null ? void 0 : v.password
235
+ };
236
+ })
237
+ } : s;
238
+ })
239
+ };
240
+ });
241
+ });
242
+ };
243
+ M(
244
+ () => [h.value, le.value],
245
+ async (e) => {
246
+ var g;
247
+ const l = e == null ? void 0 : e[0], n = e == null ? void 0 : e[1];
248
+ if (d.value = [], l || n) {
249
+ m(), sessionStorage.setItem("pageKey", h.value);
250
+ const y = await E(l, sessionStorage.getItem("systemKey"), "", h.value);
251
+ S.setExtraContents([]);
252
+ const u = sessionStorage.getItem("authority"), t = JSON.parse(u || "");
253
+ if (Array.isArray(t)) {
254
+ const i = Array.isArray(t) && (t == null ? void 0 : t.filter((f) => f == null ? void 0 : f.includes(l))), o = i == null ? void 0 : i.map((f) => {
255
+ var a;
256
+ return ((a = f == null ? void 0 : f.split("/")) == null ? void 0 : a.pop()) || "";
257
+ });
258
+ d.value = l === "/系统管理/用户管理" ? await R(y, o, !1) : y == null ? void 0 : y.map((f) => {
259
+ var a;
260
+ return {
261
+ ...f,
262
+ compData: (a = f == null ? void 0 : f.compData) == null ? void 0 : a.map((r) => {
263
+ var k;
264
+ return (r == null ? void 0 : r.key) === "rowButton" || (r == null ? void 0 : r.key) === "extraButton" ? {
265
+ ...r,
266
+ contents: (k = r == null ? void 0 : r.contents) == null ? void 0 : k.filter((s) => o == null ? void 0 : o.includes(s == null ? void 0 : s.label))
267
+ } : r;
268
+ })
269
+ };
270
+ });
271
+ } else typeof t == "string" && (t == null ? void 0 : t.toUpperCase()) === "SUPERADMIN" ? d.value = l === "/系统管理/用户管理" ? await R(y, null, !0) : y : d.value = [];
272
+ C.setSelectTitle([]), C.setSelectIndex(""), C.setSelectMenu(""), S.setItemData(d.value), S.setOriginalData(d.value), S.setCurStructureCompIds((g = d.value) == null ? void 0 : g.map((i) => i == null ? void 0 : i.id)), S.setRefreshCurStructure(!1), I.value = h.value.split("/").filter((i) => i !== "").map((i) => ({ value: i.trim() }));
273
+ }
274
+ },
275
+ {
276
+ immediate: !0
277
+ }
278
+ );
279
+ export {
280
+ we as a,
281
+ ke as b,
282
+ xe as c,
283
+ Pe as d,
284
+ Ee as e,
285
+ Ke as f,
286
+ Te as g,
287
+ Ie as o,
288
+ d as s
289
+ };
@@ -1 +1 @@
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
+ "use strict";const o=require("./menu-cQfDaGL1.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),S=require("./index-C8cVwYL_.cjs"),U=require("./login-Duwt6-x6.cjs"),g=require("./menu-BnL2_TmY.cjs"),R=require("./crypto-CRbcEKIz.cjs"),A=require("./index-WrUPpyn7.cjs"),T=require("./index-DjVsDHMd.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=U.useLoginState(),{loginUserInfo:u,cryptoInfo:m}=g.storeToRefs(V),j=g.useMenuState(),{activeMenuPath:h}=g.storeToRefs(j),D=n.ref(0);var k,E,N,B;const W=n.ref([{label:"",name:"account",value:(k=u.value)==null?void 0:k.account},{label:"",name:"userDept",value:(E=u.value)==null?void 0:E.userDept},{label:"",name:"userRoles",value:(B=(N=u.value)==null?void 0:N.userRoles)==null?void 0:B.join("、")}]),H=()=>{},b=n.ref(!1),w=n.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),I=n.ref([{label:"签字版",icon:S.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:S.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:S.upload_filled_default,type:"buttonUpload",disabled:!1}]),q=n.ref(!1),K=n.computed(()=>{var t;const s=sessionStorage.getItem("authority"),e=JSON.parse(s||"");return Array.isArray(e)?(q.value=!(e!=null&&e.includes(`${h.value}/上传头像`)),(t=I.value)==null?void 0:t.map(r=>({...r,disabled:!(e!=null&&e.includes(`${h.value}/签名`))}))):typeof e=="string"&&(e==null?void 0:e.toUpperCase())==="SUPERADMIN"?I.value:[]}),z=n.computed(()=>[{key:"signConfig",contents:w},{key:"signTypeList",contents:K.value}]),J=s=>{w.dialogShow=s.label==="电子签名"},x=()=>{w.dialogShow=!1},M=async s=>{var t,r,l,o,a,i,c,p,f;const e=await g.getInsofDataApi({id:s,key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:"/系统管理/用户管理"}});if(((t=e==null?void 0:e.data)==null?void 0:t.code)===200&&e.data.result&&Array.isArray(e.data.result)&&e.data.result.length>0){const y={...(o=(l=(r=e.data.result)==null?void 0:r[0])==null?void 0:l.value)==null?void 0:o.tableData,id:(i=(a=e.data.result)==null?void 0:a[0])==null?void 0:i.id,layer:(f=(p=(c=e.data.result)==null?void 0:c[0])==null?void 0:p.key)==null?void 0:f.layer};V.setLoginUserInfo(y)}},P=async s=>{var e,t,r,l;try{const o=await g.updateInsofDataApi({id:(e=u.value)==null?void 0:e.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/系统管理/用户管理",layer:(t=u.value)==null?void 0:t.layer},value:{tableData:s}});((r=o==null?void 0:o.data)==null?void 0:r.code)===200&&(x(),g.ElMessage.success("修改成功"),await M((l=u.value)==null?void 0:l.id),b.value=!1)}catch{g.ElMessage.error("修改响应失败"),b.value=!1}},Z=async(s,e)=>{var r;const t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",[s]:e};b.value=!0,console.log(3434,u.value),await P(t)},v=n.reactive({baseCols:[],otherCols:[]}),$=n.ref([]),L=n.ref(),G=(s,e,t)=>{var o,a,i,c,p;let r;const l=e;((a=(o=u.value)==null?void 0:o.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?r=R.decryptData((i=u.value)==null?void 0:i.password,(c=m==null?void 0:m.value)==null?void 0:c.privateKey):r=(p=u.value)==null?void 0:p.password,r===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},Q=(s,e,t)=>{e?/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{6,}$/.test(e)?t():t(new Error("密码必须包含大写字母、小写字母、数字和特殊字符,并且长度至少为6个字符")):t(new Error("请输入密码"))},X=(s,e,t)=>{var r;e!==((r=L.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},Y=async()=>{var e,t,r,l,o,a,i,c,p;const s=await g.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"/系统管理/用户管理"}});if(((e=s==null?void 0:s.data)==null?void 0:e.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const f=(i=(a=(o=(l=(r=s.data.result)==null?void 0:r[0])==null?void 0:l.value)==null?void 0:o.pageData)==null?void 0:a.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="header"),y=["password","status","userDept","avatar","signature","account","userRoles","layer"];v.baseCols=f&&((c=f.contents)==null?void 0:c.map(d=>({...d,isFormColHidden:(y==null?void 0:y.includes(d==null?void 0:d.prop))||(d==null?void 0:d.label)==="操作"})));const C=(p=f.contents)==null?void 0:p.find(d=>(d==null?void 0:d.prop)==="password"),F=[{...C,label:"当前密码",prop:"currentPass",validator:G},{...C,label:"新密码",prop:"newtPass",validator:Q},{...C,label:"确认密码",prop:"confirmNewPass",validator:X}];v.otherCols=F,ae(u.value)}},ee=s=>{L.value=s},te=async({content:s,buttonName:e})=>{var r,l,o,a,i;let t;e==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((o=(l=u.value)==null?void 0:l.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:R.encryptData(s==null?void 0:s.confirmNewPass,(a=m.value)==null?void 0:a.publicKey)}),e==="保存基本信息"&&(t={...u.value,...s,status:((i=u.value)==null?void 0:i.status)??"启用"}),b.value=!0,await P(t)},_=()=>{const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},e=sessionStorage.getItem("authority"),t=JSON.parse(e||"");if(Array.isArray(t)){const r=t!=null&&t.includes(`${h.value}/基本信息`)?s==null?void 0:s.base:[],l=t!=null&&t.includes(`${h.value}/修改密码`)?s==null?void 0:s.other:[];return{base:r,other:l}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},ae=s=>{var e,t,r,l,o;_(),$.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(e=v.baseCols)==null?void 0:e.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:s[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=_())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=v.otherCols)==null?void 0:r.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=v.otherCols)==null?void 0:l.reduce((a,i)=>(a[i.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(c,p,f)=>i.validator(c,p,f),trigger:"blur"}],a),{}),buttonValue:(o=_())==null?void 0:o.other,isEnableWrap:!1},value:""}]}]},se=Object.freeze(Object.defineProperty({__proto__:null,beforeSignDestroy:x,changeFormTrigger:ee,clickFormButton:H,clickSignButton:J,clickTabButton:te,getUserTableHeadersAsync:Y,itemData:z,loading:b,refreshLoginUserInfoAsync:M,rowContents:W,signPadInfo:w,signTypes:K,submitImageAsync:Z,tabKey:D,tabsContents:$,tempSignTypes:I,uploadDisabled:q},Symbol.toStringTag,{value:"Module"})),re={class:"personal-wrapper"},ne={class:"personal-box left"},oe={class:"base-avatar"},le={class:"center-avatar"},ie={class:"base-info"},ue={class:"base-signature"},de={class:"personal-box right"},ce=n.defineComponent({__name:"index",setup(s){const e=n.reactive({...se}),t=U.useLoginState(),{loginUserInfo:r}=g.storeToRefs(t);return n.onMounted(()=>{var l;e.getUserTableHeadersAsync(),e.refreshLoginUserInfoAsync((l=r==null?void 0:r.value)==null?void 0:l.id),D.value++}),(l,o)=>{const a=n.resolveDirective("loading");return n.openBlock(),n.createElementBlock("div",re,[n.createElementVNode("div",ne,[n.createElementVNode("div",oe,[n.withDirectives((n.openBlock(),n.createElementBlock("div",le,[n.createVNode(A.ssAvatar,{disabled:e.uploadDisabled,userInfo:n.unref(r),onSubmitImage:o[0]||(o[0]=i=>e.submitImageAsync("avatarUrl",i))},null,8,["disabled","userInfo"])])),[[a,e.loading]])]),n.createElementVNode("div",ie,[n.createVNode(T.ssForm,{rowContents:e.rowContents,isEnableWrap:!1,isButtonRow:!0,isEdit:!1},null,8,["rowContents"])]),n.createElementVNode("div",ue,[n.createVNode(A.ssSignature,{userInfo:n.unref(r),itemData:e.itemData,onClickSignButton:e.clickSignButton,onBeforeDestroy:e.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=i=>e.submitImageAsync("signature",i))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"])])]),n.createElementVNode("div",de,[(n.openBlock(),n.createBlock(T.ssTab,{key:n.unref(D),tabsContents:e.tabsContents,onChangeTrigger:e.changeFormTrigger,onClickTrigger:e.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])])}}}),pe=O._export_sfc(ce,[["__scopeId","data-v-a55e627c"]]);exports.default=pe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),S=require("./index-sVlKvvQZ.cjs"),U=require("./login-Wrj9nSOa.cjs"),g=require("./menu-cQfDaGL1.cjs"),R=require("./crypto-CRbcEKIz.cjs"),A=require("./index-hRwcFNhM.cjs"),T=require("./index-u6rAowW4.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=U.useLoginState(),{loginUserInfo:u,cryptoInfo:m}=g.storeToRefs(V),j=g.useMenuState(),{activeMenuPath:h}=g.storeToRefs(j),D=n.ref(0);var k,E,N,B;const W=n.ref([{label:"",name:"account",value:(k=u.value)==null?void 0:k.account},{label:"",name:"userDept",value:(E=u.value)==null?void 0:E.userDept},{label:"",name:"userRoles",value:(B=(N=u.value)==null?void 0:N.userRoles)==null?void 0:B.join("、")}]),H=()=>{},b=n.ref(!1),w=n.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),I=n.ref([{label:"签字版",icon:S.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:S.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:S.upload_filled_default,type:"buttonUpload",disabled:!1}]),q=n.ref(!1),K=n.computed(()=>{var t;const s=sessionStorage.getItem("authority"),e=JSON.parse(s||"");return Array.isArray(e)?(q.value=!(e!=null&&e.includes(`${h.value}/上传头像`)),(t=I.value)==null?void 0:t.map(r=>({...r,disabled:!(e!=null&&e.includes(`${h.value}/签名`))}))):typeof e=="string"&&(e==null?void 0:e.toUpperCase())==="SUPERADMIN"?I.value:[]}),z=n.computed(()=>[{key:"signConfig",contents:w},{key:"signTypeList",contents:K.value}]),J=s=>{w.dialogShow=s.label==="电子签名"},x=()=>{w.dialogShow=!1},M=async s=>{var t,r,l,o,a,i,c,p,f;const e=await g.getInsofDataApi({id:s,key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:"/系统管理/用户管理"}});if(((t=e==null?void 0:e.data)==null?void 0:t.code)===200&&e.data.result&&Array.isArray(e.data.result)&&e.data.result.length>0){const y={...(o=(l=(r=e.data.result)==null?void 0:r[0])==null?void 0:l.value)==null?void 0:o.tableData,id:(i=(a=e.data.result)==null?void 0:a[0])==null?void 0:i.id,layer:(f=(p=(c=e.data.result)==null?void 0:c[0])==null?void 0:p.key)==null?void 0:f.layer};V.setLoginUserInfo(y)}},P=async s=>{var e,t,r,l;try{const o=await g.updateInsofDataApi({id:(e=u.value)==null?void 0:e.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/系统管理/用户管理",layer:(t=u.value)==null?void 0:t.layer},value:{tableData:s}});((r=o==null?void 0:o.data)==null?void 0:r.code)===200&&(x(),g.ElMessage.success("修改成功"),await M((l=u.value)==null?void 0:l.id),b.value=!1)}catch{g.ElMessage.error("修改响应失败"),b.value=!1}},Z=async(s,e)=>{var r;const t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",[s]:e};b.value=!0,console.log(3434,u.value),await P(t)},v=n.reactive({baseCols:[],otherCols:[]}),$=n.ref([]),L=n.ref(),G=(s,e,t)=>{var o,a,i,c,p;let r;const l=e;((a=(o=u.value)==null?void 0:o.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?r=R.decryptData((i=u.value)==null?void 0:i.password,(c=m==null?void 0:m.value)==null?void 0:c.privateKey):r=(p=u.value)==null?void 0:p.password,r===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},Q=(s,e,t)=>{e?/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{6,}$/.test(e)?t():t(new Error("密码必须包含大写字母、小写字母、数字和特殊字符,并且长度至少为6个字符")):t(new Error("请输入密码"))},X=(s,e,t)=>{var r;e!==((r=L.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},Y=async()=>{var e,t,r,l,o,a,i,c,p;const s=await g.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"/系统管理/用户管理"}});if(((e=s==null?void 0:s.data)==null?void 0:e.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const f=(i=(a=(o=(l=(r=s.data.result)==null?void 0:r[0])==null?void 0:l.value)==null?void 0:o.pageData)==null?void 0:a.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="header"),y=["password","status","userDept","avatar","signature","account","userRoles","layer"];v.baseCols=f&&((c=f.contents)==null?void 0:c.map(d=>({...d,isFormColHidden:(y==null?void 0:y.includes(d==null?void 0:d.prop))||(d==null?void 0:d.label)==="操作"})));const C=(p=f.contents)==null?void 0:p.find(d=>(d==null?void 0:d.prop)==="password"),F=[{...C,label:"当前密码",prop:"currentPass",validator:G},{...C,label:"新密码",prop:"newtPass",validator:Q},{...C,label:"确认密码",prop:"confirmNewPass",validator:X}];v.otherCols=F,ae(u.value)}},ee=s=>{L.value=s},te=async({content:s,buttonName:e})=>{var r,l,o,a,i;let t;e==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((o=(l=u.value)==null?void 0:l.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:R.encryptData(s==null?void 0:s.confirmNewPass,(a=m.value)==null?void 0:a.publicKey)}),e==="保存基本信息"&&(t={...u.value,...s,status:((i=u.value)==null?void 0:i.status)??"启用"}),b.value=!0,await P(t)},_=()=>{const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},e=sessionStorage.getItem("authority"),t=JSON.parse(e||"");if(Array.isArray(t)){const r=t!=null&&t.includes(`${h.value}/基本信息`)?s==null?void 0:s.base:[],l=t!=null&&t.includes(`${h.value}/修改密码`)?s==null?void 0:s.other:[];return{base:r,other:l}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},ae=s=>{var e,t,r,l,o;_(),$.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(e=v.baseCols)==null?void 0:e.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:s[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=_())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=v.otherCols)==null?void 0:r.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=v.otherCols)==null?void 0:l.reduce((a,i)=>(a[i.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(c,p,f)=>i.validator(c,p,f),trigger:"blur"}],a),{}),buttonValue:(o=_())==null?void 0:o.other,isEnableWrap:!1},value:""}]}]},se=Object.freeze(Object.defineProperty({__proto__:null,beforeSignDestroy:x,changeFormTrigger:ee,clickFormButton:H,clickSignButton:J,clickTabButton:te,getUserTableHeadersAsync:Y,itemData:z,loading:b,refreshLoginUserInfoAsync:M,rowContents:W,signPadInfo:w,signTypes:K,submitImageAsync:Z,tabKey:D,tabsContents:$,tempSignTypes:I,uploadDisabled:q},Symbol.toStringTag,{value:"Module"})),re={class:"personal-wrapper"},ne={class:"personal-box left"},oe={class:"base-avatar"},le={class:"center-avatar"},ie={class:"base-info"},ue={class:"base-signature"},de={class:"personal-box right"},ce=n.defineComponent({__name:"index",setup(s){const e=n.reactive({...se}),t=U.useLoginState(),{loginUserInfo:r}=g.storeToRefs(t);return n.onMounted(()=>{var l;e.getUserTableHeadersAsync(),e.refreshLoginUserInfoAsync((l=r==null?void 0:r.value)==null?void 0:l.id),D.value++}),(l,o)=>{const a=n.resolveDirective("loading");return n.openBlock(),n.createElementBlock("div",re,[n.createElementVNode("div",ne,[n.createElementVNode("div",oe,[n.withDirectives((n.openBlock(),n.createElementBlock("div",le,[n.createVNode(A.ssAvatar,{disabled:e.uploadDisabled,userInfo:n.unref(r),onSubmitImage:o[0]||(o[0]=i=>e.submitImageAsync("avatarUrl",i))},null,8,["disabled","userInfo"])])),[[a,e.loading]])]),n.createElementVNode("div",ie,[n.createVNode(T.ssForm,{rowContents:e.rowContents,isEnableWrap:!1,isButtonRow:!0,isEdit:!1},null,8,["rowContents"])]),n.createElementVNode("div",ue,[n.createVNode(A.ssSignature,{userInfo:n.unref(r),itemData:e.itemData,onClickSignButton:e.clickSignButton,onBeforeDestroy:e.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=i=>e.submitImageAsync("signature",i))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"])])]),n.createElementVNode("div",de,[(n.openBlock(),n.createBlock(T.ssTab,{key:n.unref(D),tabsContents:e.tabsContents,onChangeTrigger:e.changeFormTrigger,onClickTrigger:e.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])])}}}),pe=O._export_sfc(ce,[["__scopeId","data-v-a55e627c"]]);exports.default=pe;
@@ -1,6 +1,6 @@
1
- import { g as S, u as P, E as v } from "./menu-Mo-2vv7x.js";
2
- import { p as K } from "./index-Cly4yemp.js";
3
- import { u as k } from "./login-B9vlP2b5.js";
1
+ import { g as S, u as P, E as v } from "./menu-CFLAcuA-.js";
2
+ import { p as K } from "./index-CmiwbsGe.js";
3
+ import { u as k } from "./login-o8x8Nxaf.js";
4
4
  import { ref as h } from "vue";
5
5
  const A = P(K), E = k(K), x = h(!1), D = h(!1), q = async () => {
6
6
  const I = S({
@@ -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-Vyzu845m.js";
3
+ import { u as AA, l as EA } from "./index-DfKXP07X.js";
4
4
  import { useRouter as IA } from "vue-router";
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";
5
+ import { u as gA } from "./login-o8x8Nxaf.js";
6
+ import { a as CA, E as K, g as b } from "./menu-CFLAcuA-.js";
7
+ import { p as BA } from "./index-CmiwbsGe.js";
8
+ import { v as QA } from "./index-CKwpRhPM.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 { a as e } from "./menu-Mo-2vv7x.js";
1
+ import { a as e } from "./menu-CFLAcuA-.js";
2
2
  function r(t) {
3
3
  const o = sessionStorage.getItem("loginToken") ?? "123456";
4
4
  return e({
@@ -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-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";
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-CFLAcuA-.js";
3
+ import { u as U } from "./login-o8x8Nxaf.js";
4
+ import { u as V } from "./modelComp-B7C56fRv.js";
5
+ import { c as D } from "./cloneDeep-B2ByQP-n.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";const l=require("vue"),c=require("./menu-BnL2_TmY.cjs"),u=require("./index-Bmd4CfMk.cjs"),D=require("./modelComp-D4sttzBW.cjs"),g=D.useModelComp(),{itemData:i}=c.storeToRefs(g),p=l.ref(0),f=l.ref([{label:"机构名称",value:"",name:"deptName"}]),m=e=>{console.log("handleQueryChange",e)},s=l.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),C=e=>{u.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},h=e=>{console.log("onDoubleClick",e)},k=(e,t)=>{console.log("onButtonClick",e,t)},S=async e=>{const t=await u.handleSubmitAsync(c.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(a=>{var o;return{id:a.id,tableData:(o=a==null?void 0:a.value)==null?void 0:o.tableData}});return n==null?void 0:n.map(a=>{var o;if(Array.isArray(a==null?void 0:a.tableData)){let r={id:a.id};return(o=a==null?void 0:a.tableData)==null||o.forEach((y,d)=>{r[`a${d}`]=y}),r}else return{...a.tableData,id:a.id}})},b={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:s.value,name:""}]}]};l.watch(()=>i.value,e=>{var t;e&&(e==null?void 0:e.length)>0&&(s.value=(t=e==null?void 0:e[0])==null?void 0:t.compData)});const T=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:S,handleItemDataChange:C,handleQueryChange:m,onButtonClick:k,onDoubleClick:h,pageData:s,queryFormData:f,structureId:p,tempDeptPageData:b},Symbol.toStringTag,{value:"Module"}));exports.State=T;exports.tempDeptPageData=b;
1
+ "use strict";const l=require("vue"),c=require("./menu-cQfDaGL1.cjs"),u=require("./index-DEv2DOlH.cjs"),D=require("./modelComp-4oAkv2ok.cjs"),g=D.useModelComp(),{itemData:i}=c.storeToRefs(g),p=l.ref(0),f=l.ref([{label:"机构名称",value:"",name:"deptName"}]),m=e=>{console.log("handleQueryChange",e)},s=l.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),C=e=>{u.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},h=e=>{console.log("onDoubleClick",e)},k=(e,t)=>{console.log("onButtonClick",e,t)},S=async e=>{const t=await u.handleSubmitAsync(c.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(a=>{var o;return{id:a.id,tableData:(o=a==null?void 0:a.value)==null?void 0:o.tableData}});return n==null?void 0:n.map(a=>{var o;if(Array.isArray(a==null?void 0:a.tableData)){let r={id:a.id};return(o=a==null?void 0:a.tableData)==null||o.forEach((y,d)=>{r[`a${d}`]=y}),r}else return{...a.tableData,id:a.id}})},b={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:s.value,name:""}]}]};l.watch(()=>i.value,e=>{var t;e&&(e==null?void 0:e.length)>0&&(s.value=(t=e==null?void 0:e[0])==null?void 0:t.compData)});const T=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:S,handleItemDataChange:C,handleQueryChange:m,onButtonClick:k,onDoubleClick:h,pageData:s,queryFormData:f,structureId:p,tempDeptPageData:b},Symbol.toStringTag,{value:"Module"}));exports.State=T;exports.tempDeptPageData=b;