ss-component-new 1.1.165 → 1.1.166

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 (68) hide show
  1. package/dist/{array-jR-WStUM.cjs → array-CIOBvBsr.cjs} +1 -1
  2. package/dist/{array-Ci6eXFKY.js → array-CnBDdPwL.js} +9 -9
  3. package/dist/{cloneDeep-DqZ7vz8g.cjs → cloneDeep-DER--uPX.cjs} +1 -1
  4. package/dist/{cloneDeep-CtBjgcpB.js → cloneDeep-DMsBqhn5.js} +1 -1
  5. package/dist/{formToTable-onAmzVvu.js → formToTable-BprbRq5I.js} +1 -1
  6. package/dist/{formToTable-56xI7i3Y.cjs → formToTable-CPTKd-HF.cjs} +1 -1
  7. package/dist/{index-BwGEUSpL.cjs → index--ytG3uBV.cjs} +1 -1
  8. package/dist/{index-B3bEmnU0.js → index-B3AXhk6a.js} +7 -7
  9. package/dist/{index-DZBNbrIF.cjs → index-BO5yvJdI.cjs} +1 -1
  10. package/dist/{index-OSlsRln2.cjs → index-BOy1bSzZ.cjs} +1 -1
  11. package/dist/{index-DBHZzTLc.cjs → index-BYJinY8s.cjs} +1 -1
  12. package/dist/{index-Ci2xKRX4.cjs → index-BZRBLz0M.cjs} +1 -1
  13. package/dist/{index-CORLgKVr.cjs → index-Bd5g9LEC.cjs} +1 -1
  14. package/dist/{index-DMrvCMF9.js → index-BfHrf1hL.js} +1 -1
  15. package/dist/{index-Ds_GjEDa.js → index-BmybC1PC.js} +4 -4
  16. package/dist/{index-fu0h1_ni.cjs → index-Bo2sy1wW.cjs} +1 -1
  17. package/dist/{index-DFzX1RK_.cjs → index-BqfAMO-Q.cjs} +1 -1
  18. package/dist/{index-CqHY2J0U.cjs → index-BtZGSmE4.cjs} +173 -173
  19. package/dist/{index-DTPyngs2.cjs → index-BuQvkTC_.cjs} +1 -1
  20. package/dist/{index-73rIUJUQ.js → index-BxBYHLiW.js} +7 -7
  21. package/dist/{index-2SPwxf_d.js → index-CFL6MQle.js} +4 -4
  22. package/dist/{index-DNw1ScH3.cjs → index-CN2ZUKVm.cjs} +1 -1
  23. package/dist/{index-DEC1RcSA.cjs → index-CYAB6IVO.cjs} +1 -1
  24. package/dist/{index-B2nxlcI_.cjs → index-CfIwdKoW.cjs} +1 -1
  25. package/dist/{index-BecJMgVd.js → index-CoXgajIp.js} +1 -1
  26. package/dist/{index-D7LCH2B4.js → index-CsjzuSwd.js} +6 -6
  27. package/dist/{index-BSPYod0d.cjs → index-DFCAJ9Vo.cjs} +1 -1
  28. package/dist/{index-Dmt_YJ-1.cjs → index-DJd5gmh4.cjs} +1 -1
  29. package/dist/{index-D8yyJ4ij.cjs → index-DLKFHZHb.cjs} +1 -1
  30. package/dist/{index-D9rcnCGb.js → index-DMiJKhwz.js} +12 -12
  31. package/dist/{index-D_fwjS3z.js → index-DP3w07QU.js} +6 -6
  32. package/dist/{index-Dlqzwxr_.cjs → index-DU0GCFYu.cjs} +1 -1
  33. package/dist/{index-DG_CHlTj.cjs → index-DXihJydq.cjs} +1 -1
  34. package/dist/{index-D4svf93S.js → index-Dh422bH4.js} +5 -5
  35. package/dist/{index-BPloVtg3.js → index-DirLeh5R.js} +1 -1
  36. package/dist/{index-CziQLmHE.js → index-DlI_21OF.js} +11 -11
  37. package/dist/{index-cEOEpnKF.cjs → index-Doa6hpwh.cjs} +1 -1
  38. package/dist/{index-B5pn4_ea.js → index-DuqflGdi.js} +7 -7
  39. package/dist/{index-BxepHo5i.js → index-FHEhYs1w.js} +7 -7
  40. package/dist/{index-C9dGaAQO.js → index-Q7uuScWY.js} +1 -1
  41. package/dist/{index-tGUdrgeK.js → index-RPUNFmDf.js} +6 -6
  42. package/dist/{index-CwZRdwOR.js → index-d4ishmsH.js} +1 -1
  43. package/dist/{index-CfwqNQ75.js → index-lndc-1oJ.js} +6 -6
  44. package/dist/{index-Btu_-lir.js → index-mCQ6tP78.js} +7 -7
  45. package/dist/{index-D9bMhrzO.cjs → index-t_aIEfXB.cjs} +1 -1
  46. package/dist/{index-DVmX1hed.js → index-xQOBDZGG.js} +1 -1
  47. package/dist/{index.vue_vue_type_script_setup_true_lang-DT3NTRN-.cjs → index.vue_vue_type_script_setup_true_lang-CXer2HjG.cjs} +1 -1
  48. package/dist/{index.vue_vue_type_script_setup_true_lang-iarHIbVB.js → index.vue_vue_type_script_setup_true_lang-za18XehF.js} +6 -6
  49. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-DZ_ULnx2.cjs → index.vue_vue_type_style_index_0_scoped_baf99455_lang-Bm0jQQqv.cjs} +1 -1
  50. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-CohOVVBU.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-CV4aFeR1.js} +6 -6
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-COwlVzFK.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Dn-j2icF.cjs} +1 -1
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DPpt3VZM.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-ndUp7SCU.js} +6 -6
  53. package/dist/{login-CCZDJWfU.cjs → login-BuwvcSrn.cjs} +1 -1
  54. package/dist/{login-l3-TQ4Nv.js → login-DnO6sJwP.js} +3 -3
  55. package/dist/{main-CTnl0Xy9.js → main-CHqAouMK.js} +6 -6
  56. package/dist/{main-CyMc3Ucn.cjs → main-CcF1b8Di.cjs} +1 -1
  57. package/dist/{menu-C5E_B2Yb.js → menu-C1zU-rc-.js} +1 -1
  58. package/dist/{menu-DUn9J6ja.cjs → menu-CwoHmZYg.cjs} +1 -1
  59. package/dist/{modelComp-DV6uSzBz.js → modelComp-CUZjjNBE.js} +1 -1
  60. package/dist/{modelComp-C4S5aP2f.cjs → modelComp-DH63MmzP.cjs} +1 -1
  61. package/dist/{request-DYjZLCB4.cjs → request-DRcIFNRO.cjs} +1 -1
  62. package/dist/{request-Dx56pt7_.js → request-EMSstqMr.js} +1 -1
  63. package/dist/ss-component.cjs +1 -1
  64. package/dist/ss-component.css +1 -1
  65. package/dist/ss-component.js +7 -7
  66. package/dist/ss-component2.cjs +1 -1
  67. package/dist/ss-component2.js +1 -1
  68. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";const y=require("./index-D9bMhrzO.cjs"),S=require("./request-DYjZLCB4.cjs"),D=require("./login-CCZDJWfU.cjs"),a=require("./menu-DUn9J6ja.cjs"),q=a.useMenuState(S.pinia),m=D.useLoginState(S.pinia),I=()=>{const d=y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});Promise.all([d,p]).then(t=>{var r,o,u,n,i,c,g,l;const e=t==null?void 0:t[0],s=t==null?void 0:t[1];if(e.data.code===200){const f=(g=(c=(i=(n=(u=(o=(r=e==null?void 0:e.data)==null?void 0:r.result)==null?void 0:o[0])==null?void 0:u.value)==null?void 0:n.pageData)==null?void 0:i.compData)==null?void 0:c[0])==null?void 0:g.contents;q.setRawMenus(f??[])}else a.ElMessage.error("获取模型菜单响应失败");s.data.code===200?s.data.result&&((l=s.data.result)==null?void 0:l.length)>0&&(m.setStructureData(s.data.result),m.setIsStructureExist(!0)):a.ElMessage.error("获取模型结构响应失败")})};exports.verifyStructureDataToStore=I;
1
+ "use strict";const y=require("./index-t_aIEfXB.cjs"),S=require("./request-DRcIFNRO.cjs"),D=require("./login-BuwvcSrn.cjs"),a=require("./menu-CwoHmZYg.cjs"),q=a.useMenuState(S.pinia),m=D.useLoginState(S.pinia),I=()=>{const d=y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});Promise.all([d,p]).then(t=>{var r,o,u,n,i,c,g,l;const e=t==null?void 0:t[0],s=t==null?void 0:t[1];if(e.data.code===200){const f=(g=(c=(i=(n=(u=(o=(r=e==null?void 0:e.data)==null?void 0:r.result)==null?void 0:o[0])==null?void 0:u.value)==null?void 0:n.pageData)==null?void 0:i.compData)==null?void 0:c[0])==null?void 0:g.contents;q.setRawMenus(f??[])}else a.ElMessage.error("获取模型菜单响应失败");s.data.code===200?s.data.result&&((l=s.data.result)==null?void 0:l.length)>0&&(m.setStructureData(s.data.result),m.setIsStructureExist(!0)):a.ElMessage.error("获取模型结构响应失败")})};exports.verifyStructureDataToStore=I;
@@ -1,12 +1,12 @@
1
1
  import { ref as g, defineComponent as y, reactive as f, onMounted as D, createElementBlock as h, openBlock as C, createVNode as d } from "vue";
2
- import { a as _ } from "./index-D4svf93S.js";
3
- import { s as v } from "./index-CziQLmHE.js";
4
- import { g as k } from "./index-CwZRdwOR.js";
5
- import { s as w, h as S } from "./index-CfwqNQ75.js";
2
+ import { a as _ } from "./index-Dh422bH4.js";
3
+ import { s as v } from "./index-DlI_21OF.js";
4
+ import { g as k } from "./index-d4ishmsH.js";
5
+ import { s as w, h as S } from "./index-lndc-1oJ.js";
6
6
  import { useRoute as I } from "vue-router";
7
- import { u as x } from "./modelComp-DV6uSzBz.js";
8
- import { s as b, u as A } from "./menu-C5E_B2Yb.js";
9
- import { c as B } from "./cloneDeep-CtBjgcpB.js";
7
+ import { u as x } from "./modelComp-CUZjjNBE.js";
8
+ import { s as b, u as A } from "./menu-C1zU-rc-.js";
9
+ import { c as B } from "./cloneDeep-DMsBqhn5.js";
10
10
  import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const M = g([
12
12
  {
@@ -1,8 +1,8 @@
1
1
  import { ref as r, computed as S, reactive as I, nextTick as T, watch as K } from "vue";
2
- import { s as m, E as y, u as M } from "./menu-C5E_B2Yb.js";
3
- import { g as O, c as _, u as j, d as z } from "./index-CwZRdwOR.js";
4
- import { u as H } from "./login-l3-TQ4Nv.js";
5
- import { c as w } from "./cloneDeep-CtBjgcpB.js";
2
+ import { s as m, E as y, u as M } from "./menu-C1zU-rc-.js";
3
+ import { g as O, c as _, u as j, d as z } from "./index-d4ishmsH.js";
4
+ import { u as H } from "./login-DnO6sJwP.js";
5
+ import { c as w } from "./cloneDeep-DMsBqhn5.js";
6
6
  const L = M(), { activeMenuPath: v } = m(L), x = H(), { structureData: Q } = m(x), U = r([
7
7
  {
8
8
  label: "角色名称",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),x=require("./index-CORLgKVr.cjs"),xe=require("./isNil-x28vo2CT.cjs"),Ht=require("./typescript-PERVJsDy.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),De="ElUpload";class Ee extends Error{constructor(t,i,e,o){super(t),this.name="UploadAjaxError",this.status=i,this.method=e,this.url=o}}function Xt(a,t,i){let e;return i.response?e=`${i.response.error||i.response}`:i.responseText?e=`${i.responseText}`:e=`fail to ${t.method} ${a} ${i.status}`,new Ee(e,i.status,t.method,a)}function Ce(a){const t=a.responseText||a.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Me=a=>{typeof XMLHttpRequest>"u"&&x.throwError(De,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,i=a.action;t.upload&&t.upload.addEventListener("progress",r=>{const n=r;n.percent=r.total>0?r.loaded/r.total*100:0,a.onProgress(n)});const e=new FormData;if(a.data)for(const[r,n]of Object.entries(a.data))x.isArray$1(n)&&n.length?e.append(r,...n):e.append(r,n);e.append(a.filename,a.file,a.file.name),t.addEventListener("error",()=>{a.onError(Xt(i,a,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return a.onError(Xt(i,a,t));a.onSuccess(Ce(t))}),t.open(a.method,i,!0),a.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=a.headers||{};if(o instanceof Headers)o.forEach((r,n)=>t.setRequestHeader(n,r));else for(const[r,n]of Object.entries(o))xe.isNil(n)||t.setRequestHeader(r,String(n));return t.send(e),t},Te=["text","picture","picture-card"];let Ne=1;const Oe=()=>Date.now()+Ne++,_e=x.buildProps({action:{type:String,default:"#"},headers:{type:x.definePropType(Object)},method:{type:String,default:"post"},data:{type:x.definePropType([Object,Function,Promise]),default:()=>Ht.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:x.definePropType(Array),default:()=>Ht.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Te,default:"text"},httpRequest:{type:x.definePropType(Function),default:Me},disabled:Boolean,limit:Number});x.buildProps({..._e,beforeUpload:{type:x.definePropType(Function),default:x.NOOP},beforeRemove:{type:x.definePropType(Function)},onRemove:{type:x.definePropType(Function),default:x.NOOP},onChange:{type:x.definePropType(Function),default:x.NOOP},onPreview:{type:x.definePropType(Function),default:x.NOOP},onSuccess:{type:x.definePropType(Function),default:x.NOOP},onProgress:{type:x.definePropType(Function),default:x.NOOP},onError:{type:x.definePropType(Function),default:x.NOOP},onExceed:{type:x.definePropType(Function),default:x.NOOP},crossorigin:{type:x.definePropType(String)}});/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),x=require("./index-Bd5g9LEC.cjs"),xe=require("./isNil-x28vo2CT.cjs"),Ht=require("./typescript-PERVJsDy.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),De="ElUpload";class Ee extends Error{constructor(t,i,e,o){super(t),this.name="UploadAjaxError",this.status=i,this.method=e,this.url=o}}function Xt(a,t,i){let e;return i.response?e=`${i.response.error||i.response}`:i.responseText?e=`${i.responseText}`:e=`fail to ${t.method} ${a} ${i.status}`,new Ee(e,i.status,t.method,a)}function Ce(a){const t=a.responseText||a.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Me=a=>{typeof XMLHttpRequest>"u"&&x.throwError(De,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,i=a.action;t.upload&&t.upload.addEventListener("progress",r=>{const n=r;n.percent=r.total>0?r.loaded/r.total*100:0,a.onProgress(n)});const e=new FormData;if(a.data)for(const[r,n]of Object.entries(a.data))x.isArray$1(n)&&n.length?e.append(r,...n):e.append(r,n);e.append(a.filename,a.file,a.file.name),t.addEventListener("error",()=>{a.onError(Xt(i,a,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return a.onError(Xt(i,a,t));a.onSuccess(Ce(t))}),t.open(a.method,i,!0),a.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=a.headers||{};if(o instanceof Headers)o.forEach((r,n)=>t.setRequestHeader(n,r));else for(const[r,n]of Object.entries(o))xe.isNil(n)||t.setRequestHeader(r,String(n));return t.send(e),t},Te=["text","picture","picture-card"];let Ne=1;const Oe=()=>Date.now()+Ne++,_e=x.buildProps({action:{type:String,default:"#"},headers:{type:x.definePropType(Object)},method:{type:String,default:"post"},data:{type:x.definePropType([Object,Function,Promise]),default:()=>Ht.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:x.definePropType(Array),default:()=>Ht.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Te,default:"text"},httpRequest:{type:x.definePropType(Function),default:Me},disabled:Boolean,limit:Number});x.buildProps({..._e,beforeUpload:{type:x.definePropType(Function),default:x.NOOP},beforeRemove:{type:x.definePropType(Function)},onRemove:{type:x.definePropType(Function),default:x.NOOP},onChange:{type:x.definePropType(Function),default:x.NOOP},onPreview:{type:x.definePropType(Function),default:x.NOOP},onSuccess:{type:x.definePropType(Function),default:x.NOOP},onProgress:{type:x.definePropType(Function),default:x.NOOP},onError:{type:x.definePropType(Function),default:x.NOOP},onExceed:{type:x.definePropType(Function),default:x.NOOP},crossorigin:{type:x.definePropType(String)}});/*!
2
2
  * Cropper.js v1.6.2
3
3
  * https://fengyuanchen.github.io/cropperjs
4
4
  *
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-COwlVzFK.cjs"),e=require("vue"),c=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function l(n,i,a,p,_,M){const t=e.resolveComponent("DynamicIcon"),s=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(s,{menuList:n.renderMenuList,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu,onChangeMenuStyle:n.changeMenuStyle,class:"menuList-wrap"},{title:e.withCtx(({menu:o})=>[e.createVNode(t,{name:o.icon??""},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(o.title??""),1)]),_:1},8,["menuList","onClickMenu","onOpenMenu","onCloseMenu","onChangeMenuStyle"])}const r=c._export_sfc(u._sfc_main,[["render",l],["__scopeId","data-v-bbb8ace9"]]);exports.default=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Dn-j2icF.cjs"),e=require("vue"),c=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function l(n,i,a,p,_,M){const t=e.resolveComponent("DynamicIcon"),s=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(s,{menuList:n.renderMenuList,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu,onChangeMenuStyle:n.changeMenuStyle,class:"menuList-wrap"},{title:e.withCtx(({menu:o})=>[e.createVNode(t,{name:o.icon??""},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(o.title??""),1)]),_:1},8,["menuList","onClickMenu","onOpenMenu","onCloseMenu","onChangeMenuStyle"])}const r=c._export_sfc(u._sfc_main,[["render",l],["__scopeId","data-v-bbb8ace9"]]);exports.default=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),q=require("./index-Dmt_YJ-1.cjs"),y=require("./index-CqHY2J0U.cjs"),m=require("./index-Ci2xKRX4.cjs"),r=require("./menu-DUn9J6ja.cjs"),x=require("./modelComp-C4S5aP2f.cjs"),P=require("vue-router"),S=require("./cloneDeep-DqZ7vz8g.cjs"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M={class:"role-wrapper"},N=n.defineComponent({__name:"index",setup(w){const g=r.useMenuState(),{activeMenuPath:h}=r.storeToRefs(g),s=x.useModelComp(),{itemData:D}=r.storeToRefs(s),_=P.useRoute(),e=n.reactive({...m.State});return n.onMounted(()=>{m.getModelSecretAsync();const c=S.cloneDeep(D.value),l={comp:"Group",name:_.path,compData:e.pageData};if(s.setItemData([...c,l]),h.value){e.refreshUserTableData();const C=e.getPageDataAsync("/role"),f=e.getPageDataAsync("/dept");Promise.all([C,f]).then(o=>{var u,i,p;const v=(u=o==null?void 0:o[0])==null?void 0:u.map(t=>({label:t.roleName,value:t.roleName})),b=(i=o==null?void 0:o[1])==null?void 0:i.map(t=>({label:t.deptName,value:t.deptName}));e.pageData=(p=e.pageData)==null?void 0:p.map(t=>{var d;return t.key==="header"?{...t,contents:(d=t.contents)==null?void 0:d.map(a=>a.label==="所属机构"?{...a,options:b}:a.label==="角色"?{...a,options:v}:a)}:t})})}}),(c,l)=>(n.openBlock(),n.createElementBlock("div",M,[n.createVNode(q.ssForm,{class:"role-header",rowContents:e.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:e.handleQueryChange},null,8,["rowContents","onChange"]),n.createVNode(y.ssTable,{class:"role-body",itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]))}}),R=k._export_sfc(N,[["__scopeId","data-v-81d36540"]]);exports.default=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),q=require("./index-DJd5gmh4.cjs"),y=require("./index-BtZGSmE4.cjs"),m=require("./index-BZRBLz0M.cjs"),r=require("./menu-CwoHmZYg.cjs"),x=require("./modelComp-DH63MmzP.cjs"),P=require("vue-router"),S=require("./cloneDeep-DER--uPX.cjs"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M={class:"role-wrapper"},N=n.defineComponent({__name:"index",setup(w){const g=r.useMenuState(),{activeMenuPath:h}=r.storeToRefs(g),s=x.useModelComp(),{itemData:D}=r.storeToRefs(s),_=P.useRoute(),e=n.reactive({...m.State});return n.onMounted(()=>{m.getModelSecretAsync();const c=S.cloneDeep(D.value),l={comp:"Group",name:_.path,compData:e.pageData};if(s.setItemData([...c,l]),h.value){e.refreshUserTableData();const C=e.getPageDataAsync("/role"),f=e.getPageDataAsync("/dept");Promise.all([C,f]).then(o=>{var u,i,p;const v=(u=o==null?void 0:o[0])==null?void 0:u.map(t=>({label:t.roleName,value:t.roleName})),b=(i=o==null?void 0:o[1])==null?void 0:i.map(t=>({label:t.deptName,value:t.deptName}));e.pageData=(p=e.pageData)==null?void 0:p.map(t=>{var d;return t.key==="header"?{...t,contents:(d=t.contents)==null?void 0:d.map(a=>a.label==="所属机构"?{...a,options:b}:a.label==="角色"?{...a,options:v}:a)}:t})})}}),(c,l)=>(n.openBlock(),n.createElementBlock("div",M,[n.createVNode(q.ssForm,{class:"role-header",rowContents:e.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:e.handleQueryChange},null,8,["rowContents","onChange"]),n.createVNode(y.ssTable,{class:"role-body",itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]))}}),R=k._export_sfc(N,[["__scopeId","data-v-81d36540"]]);exports.default=R;
@@ -1,5 +1,5 @@
1
1
  import { ref as a, defineComponent as l, reactive as i, onMounted as c, createElementBlock as d, openBlock as _, createElementVNode as e, createVNode as n } from "vue";
2
- import { _ as p, s as m } from "./index.vue_vue_type_script_setup_true_lang-iarHIbVB.js";
2
+ import { _ as p, s as m } from "./index.vue_vue_type_script_setup_true_lang-za18XehF.js";
3
3
  import { _ as u } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const v = a(""), f = a([]), b = a([
5
5
  {
@@ -1,11 +1,11 @@
1
1
  import { resolveComponent as n, createElementBlock as r, openBlock as c, createVNode as m } from "vue";
2
- import "./array-Ci6eXFKY.js";
3
- import "./request-Dx56pt7_.js";
2
+ import "./array-CnBDdPwL.js";
3
+ import "./request-EMSstqMr.js";
4
4
  import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DPpt3VZM.js";
6
- import "./menu-C5E_B2Yb.js";
7
- import "./index.vue_vue_type_style_index_0_scoped_baf99455_lang-CohOVVBU.js";
8
- import "./index-Ds_GjEDa.js";
5
+ import "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-ndUp7SCU.js";
6
+ import "./menu-C1zU-rc-.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_baf99455_lang-CV4aFeR1.js";
8
+ import "./index-BmybC1PC.js";
9
9
  const i = {
10
10
  __name: "index",
11
11
  props: {
@@ -1 +1 @@
1
- "use strict";const o=require("vue"),h=require("./menu-DUn9J6ja.cjs"),p=require("./index-D9bMhrzO.cjs"),R=require("./login-CCZDJWfU.cjs"),D=require("./cloneDeep-DqZ7vz8g.cjs"),M=h.useMenuState(),{activeMenuPath:b}=h.storeToRefs(M),T=R.useLoginState(),{structureData:F}=h.storeToRefs(T),P=o.ref([{label:"角色名称",value:"",name:"roleName"}]),q=o.ref([{label:"查询"},{label:"重置"}]),S=o.reactive({isFilter:!1,filterForm:{}}),z=o.ref(!1),O=a=>{console.log("handleQueryChange",a),S.isFilter=!0,S.filterForm=a},v=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"授权",textColor:"blue"},{label:"编辑"},{label:"删除",textColor:"red"}]},{key:"tableIndex",contents:[]},{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"}]),_=o.computed(()=>v.value),j=a=>{console.log("handleItemDataChange",a),C(a.singleContent,a.buttonName)},k=o.ref({}),B=o.ref(),f=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 T.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){h.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)})})},K=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=K(l.children)),l}),m=async(a,e)=>{switch(console.log("clickRowButton",a,e,c.value),k.value=D.cloneDeep(e),a){case"授权":console.log("角色的权限",e.roleAuthority),console.log("角色的tree",c.value),console.log("角色的pageData",v.value),i.title=`【${e.roleName}】授权`,i.show=!0,await o.nextTick(),e.roleAuthority&&Array.isArray(e.roleAuthority)&&I(c.value,e.roleAuthority);break}},H=()=>{i.show=!1},d=o.ref(),L=async a=>{const e=await f(p.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a}},"查询"),l=e==null?void 0:e.map(t=>{var n;return{id:t.id,rowData:(n=t==null?void 0:t.value)==null?void 0:n.rowData}});return l==null?void 0:l.map(t=>{var n;if(Array.isArray(t==null?void 0:t.rowData)){let s={id:t.id};return(n=t==null?void 0:t.rowData)==null||n.forEach((r,y)=>{s[`a${y}`]=r}),s}else return{...t.rowData,id:t.id}})},C=(a,e)=>{if(e==="新增"){const l=D.cloneDeep(a);delete l.id,f(p.createInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value},value:{rowData:l}},e).then(t=>{d.value={...a,newId:t},e&&t&&h.ElMessage.success(e+"成功")})}else e==="编辑"?f(p.updateInsofDataApi,{id:a.id,key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value},value:{rowData:a}},e).then(l=>{e&&l&&h.ElMessage.success(e+"成功"),i.show=!1}):e==="删除"&&(console.log(222,a),f(p.deleteInsofDataApi,{id:a.id},e).then(l=>{e&&l&&h.ElMessage.success(e+"成功")}))},w=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(w(l.children)))}),e},Q=()=>{console.log(122,k.value,w(c.value)),d.value={...k.value,roleAuthority:w(c.value)},o.nextTick(()=>{console.log("clickSubmitAuthority",d.value,v.value),C(d.value,"编辑")})},i=o.reactive({show:!1,title:"角色授权",width:"35%",draggable:!0}),U=({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":""},c=o.ref([]),V=o.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),$=(a,e)=>{var l;a.checkedButtons=e?(l=a.renderButtons)==null?void 0:l.map(t=>t.path):[],console.log("handleNodeCheckChange",a,e)},g=o.ref([]),J=(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)?g.value.push(e.path):(a==null?void 0:a.length)===0&&(g.value=(n=g.value)==null?void 0:n.filter(s=>s!==e.path)),console.log("角色的按钮点击",e,a)};o.watch(()=>g.value.length,()=>{var e,l;const a=(e=B.value)==null?void 0:e.getCheckedKeys();console.log(112,g.value,a),(l=B.value)==null||l.setCheckedKeys([...g.value])});o.watch(()=>i.show,a=>{a||(c.value=K(c.value),console.log("角色的resetCheckedButtonsInTree",c.value))});const x=o.computed(()=>{var l;const a=(l=D.cloneDeep(F.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 s,r,y,A;let n=(y=(r=(s=t==null?void 0:t.value)==null?void 0:s.pageData)==null?void 0:r.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)==="extraButton"||(u==null?void 0:u.key)==="rowButton");return n=Array.from(new Set(n==null?void 0:n.flatMap(u=>u.contents.map(N=>N.label)))),{path:(A=t==null?void 0:t.key)==null?void 0:A.pageKey,buttons:n}})}),E=(a,e)=>{if(Array.isArray(a))return a==null?void 0:a.map(l=>{var n,s;const t=e==null?void 0:e.find(r=>(r==null?void 0:r.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(r=>({title:r,path:l.path+"/"+r})):[],checkedButtons:[],children:E(l.children,x.value)}:{...l,renderButtons:l.carryData?(s=t==null?void 0:t.buttons)==null?void 0:s.map(r=>({title:r,path:l.path+"/"+r})):[],checkedButtons:[]}})},W=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:E,authorizeDialog:i,buttonValue:q,changedRow:d,clickRow:k,clickRowButton:m,clickSubmitAuthority:Q,closeAuthorizeDialog:H,customNodeClass:U,getPageDataAsync:L,handleItemDataChange:j,handleNodeBtnChange:J,handleNodeCheckChange:$,handleQueryChange:O,handleSubmitAsync:f,isPageDataExist:z,menuData:c,menusButtons:V,pageData:v,pageDataFiltered:_,queryFormData:P,structureButtons:x,submitTableAsyncByVerify:C,treeRef:B},Symbol.toStringTag,{value:"Module"}));exports.State=W;exports.authorizeDialog=i;
1
+ "use strict";const o=require("vue"),h=require("./menu-CwoHmZYg.cjs"),p=require("./index-t_aIEfXB.cjs"),R=require("./login-BuwvcSrn.cjs"),D=require("./cloneDeep-DER--uPX.cjs"),M=h.useMenuState(),{activeMenuPath:b}=h.storeToRefs(M),T=R.useLoginState(),{structureData:F}=h.storeToRefs(T),P=o.ref([{label:"角色名称",value:"",name:"roleName"}]),q=o.ref([{label:"查询"},{label:"重置"}]),S=o.reactive({isFilter:!1,filterForm:{}}),z=o.ref(!1),O=a=>{console.log("handleQueryChange",a),S.isFilter=!0,S.filterForm=a},v=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"授权",textColor:"blue"},{label:"编辑"},{label:"删除",textColor:"red"}]},{key:"tableIndex",contents:[]},{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"}]),_=o.computed(()=>v.value),j=a=>{console.log("handleItemDataChange",a),C(a.singleContent,a.buttonName)},k=o.ref({}),B=o.ref(),f=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 T.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){h.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)})})},K=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=K(l.children)),l}),m=async(a,e)=>{switch(console.log("clickRowButton",a,e,c.value),k.value=D.cloneDeep(e),a){case"授权":console.log("角色的权限",e.roleAuthority),console.log("角色的tree",c.value),console.log("角色的pageData",v.value),i.title=`【${e.roleName}】授权`,i.show=!0,await o.nextTick(),e.roleAuthority&&Array.isArray(e.roleAuthority)&&I(c.value,e.roleAuthority);break}},H=()=>{i.show=!1},d=o.ref(),L=async a=>{const e=await f(p.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a}},"查询"),l=e==null?void 0:e.map(t=>{var n;return{id:t.id,rowData:(n=t==null?void 0:t.value)==null?void 0:n.rowData}});return l==null?void 0:l.map(t=>{var n;if(Array.isArray(t==null?void 0:t.rowData)){let s={id:t.id};return(n=t==null?void 0:t.rowData)==null||n.forEach((r,y)=>{s[`a${y}`]=r}),s}else return{...t.rowData,id:t.id}})},C=(a,e)=>{if(e==="新增"){const l=D.cloneDeep(a);delete l.id,f(p.createInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value},value:{rowData:l}},e).then(t=>{d.value={...a,newId:t},e&&t&&h.ElMessage.success(e+"成功")})}else e==="编辑"?f(p.updateInsofDataApi,{id:a.id,key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value},value:{rowData:a}},e).then(l=>{e&&l&&h.ElMessage.success(e+"成功"),i.show=!1}):e==="删除"&&(console.log(222,a),f(p.deleteInsofDataApi,{id:a.id},e).then(l=>{e&&l&&h.ElMessage.success(e+"成功")}))},w=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(w(l.children)))}),e},Q=()=>{console.log(122,k.value,w(c.value)),d.value={...k.value,roleAuthority:w(c.value)},o.nextTick(()=>{console.log("clickSubmitAuthority",d.value,v.value),C(d.value,"编辑")})},i=o.reactive({show:!1,title:"角色授权",width:"35%",draggable:!0}),U=({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":""},c=o.ref([]),V=o.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),$=(a,e)=>{var l;a.checkedButtons=e?(l=a.renderButtons)==null?void 0:l.map(t=>t.path):[],console.log("handleNodeCheckChange",a,e)},g=o.ref([]),J=(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)?g.value.push(e.path):(a==null?void 0:a.length)===0&&(g.value=(n=g.value)==null?void 0:n.filter(s=>s!==e.path)),console.log("角色的按钮点击",e,a)};o.watch(()=>g.value.length,()=>{var e,l;const a=(e=B.value)==null?void 0:e.getCheckedKeys();console.log(112,g.value,a),(l=B.value)==null||l.setCheckedKeys([...g.value])});o.watch(()=>i.show,a=>{a||(c.value=K(c.value),console.log("角色的resetCheckedButtonsInTree",c.value))});const x=o.computed(()=>{var l;const a=(l=D.cloneDeep(F.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 s,r,y,A;let n=(y=(r=(s=t==null?void 0:t.value)==null?void 0:s.pageData)==null?void 0:r.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)==="extraButton"||(u==null?void 0:u.key)==="rowButton");return n=Array.from(new Set(n==null?void 0:n.flatMap(u=>u.contents.map(N=>N.label)))),{path:(A=t==null?void 0:t.key)==null?void 0:A.pageKey,buttons:n}})}),E=(a,e)=>{if(Array.isArray(a))return a==null?void 0:a.map(l=>{var n,s;const t=e==null?void 0:e.find(r=>(r==null?void 0:r.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(r=>({title:r,path:l.path+"/"+r})):[],checkedButtons:[],children:E(l.children,x.value)}:{...l,renderButtons:l.carryData?(s=t==null?void 0:t.buttons)==null?void 0:s.map(r=>({title:r,path:l.path+"/"+r})):[],checkedButtons:[]}})},W=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:E,authorizeDialog:i,buttonValue:q,changedRow:d,clickRow:k,clickRowButton:m,clickSubmitAuthority:Q,closeAuthorizeDialog:H,customNodeClass:U,getPageDataAsync:L,handleItemDataChange:j,handleNodeBtnChange:J,handleNodeCheckChange:$,handleQueryChange:O,handleSubmitAsync:f,isPageDataExist:z,menuData:c,menusButtons:V,pageData:v,pageDataFiltered:_,queryFormData:P,structureButtons:x,submitTableAsyncByVerify:C,treeRef:B},Symbol.toStringTag,{value:"Module"}));exports.State=W;exports.authorizeDialog=i;
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("vue"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=require("./cloneDeep-DqZ7vz8g.cjs"),Ht=require("./menu-DUn9J6ja.cjs"),hn=require("./index-OSlsRln2.cjs"),fn=require("./index-DNw1ScH3.cjs"),At=require("./index-CORLgKVr.cjs");function pn(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Je={exports:{}},mn=Je.exports,Pt;function gn(){return Pt||(Pt=1,function(o,e){(function(t,n){o.exports=n()})(mn,function(){var t=1e3,n=6e4,r=36e5,i="millisecond",s="second",l="minute",u="hour",c="day",d="week",h="month",w="quarter",m="year",f="date",y="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var b=["th","st","nd","rd"],g=x%100;return"["+x+(b[(g-20)%10]||b[g]||b[0])+"]"}},k=function(x,b,g){var C=String(x);return!C||C.length>=b?x:""+Array(b+1-C.length).join(g)+x},V={s:k,z:function(x){var b=-x.utcOffset(),g=Math.abs(b),C=Math.floor(g/60),_=g%60;return(b<=0?"+":"-")+k(C,2,"0")+":"+k(_,2,"0")},m:function x(b,g){if(b.date()<g.date())return-x(g,b);var C=12*(g.year()-b.year())+(g.month()-b.month()),_=b.clone().add(C,h),M=g-_<0,I=b.clone().add(C+(M?-1:1),h);return+(-(C+(g-_)/(M?_-I:I-_))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:m,w:d,d:c,D:f,h:u,m:l,s,ms:i,Q:w}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},W="en",E={};E[W]=p;var j="$isDayjsObject",S=function(x){return x instanceof ee||!(!x||!x[j])},B=function x(b,g,C){var _;if(!b)return W;if(typeof b=="string"){var M=b.toLowerCase();E[M]&&(_=M),g&&(E[M]=g,_=M);var I=b.split("-");if(!_&&I.length>1)return x(I[0])}else{var L=b.name;E[L]=b,_=L}return!C&&_&&(W=_),_||!C&&W},O=function(x,b){if(S(x))return x.clone();var g=typeof b=="object"?b:{};return g.date=x,g.args=arguments,new ee(g)},P=V;P.l=B,P.i=S,P.w=function(x,b){return O(x,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var ee=function(){function x(g){this.$L=B(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[j]=!0}var b=x.prototype;return b.parse=function(g){this.$d=function(C){var _=C.date,M=C.utc;if(_===null)return new Date(NaN);if(P.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var I=_.match(D);if(I){var L=I[2]-1||0,U=(I[7]||"0").substring(0,3);return M?new Date(Date.UTC(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)):new Date(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)}}return new Date(_)}(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return P},b.isValid=function(){return this.$d.toString()!==y},b.isSame=function(g,C){var _=O(g);return this.startOf(C)<=_&&_<=this.endOf(C)},b.isAfter=function(g,C){return O(g)<this.startOf(C)},b.isBefore=function(g,C){return this.endOf(C)<O(g)},b.$g=function(g,C,_){return P.u(g)?this[C]:this.set(_,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,C){var _=this,M=!!P.u(C)||C,I=P.p(g),L=function(we,ne){var ge=P.w(_.$u?Date.UTC(_.$y,ne,we):new Date(_.$y,ne,we),_);return M?ge:ge.endOf(c)},U=function(we,ne){return P.w(_.toDate()[we].apply(_.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(ne)),_)},J=this.$W,Z=this.$M,le=this.$D,Ce="set"+(this.$u?"UTC":"");switch(I){case m:return M?L(1,0):L(31,11);case h:return M?L(1,Z):L(0,Z+1);case d:var _e=this.$locale().weekStart||0,Me=(J<_e?J+7:J)-_e;return L(M?le-Me:le+(6-Me),Z);case c:case f:return U(Ce+"Hours",0);case u:return U(Ce+"Minutes",1);case l:return U(Ce+"Seconds",2);case s:return U(Ce+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,C){var _,M=P.p(g),I="set"+(this.$u?"UTC":""),L=(_={},_[c]=I+"Date",_[f]=I+"Date",_[h]=I+"Month",_[m]=I+"FullYear",_[u]=I+"Hours",_[l]=I+"Minutes",_[s]=I+"Seconds",_[i]=I+"Milliseconds",_)[M],U=M===c?this.$D+(C-this.$W):C;if(M===h||M===m){var J=this.clone().set(f,1);J.$d[L](U),J.init(),this.$d=J.set(f,Math.min(this.$D,J.daysInMonth())).$d}else L&&this.$d[L](U);return this.init(),this},b.set=function(g,C){return this.clone().$set(g,C)},b.get=function(g){return this[P.p(g)]()},b.add=function(g,C){var _,M=this;g=Number(g);var I=P.p(C),L=function(Z){var le=O(M);return P.w(le.date(le.date()+Math.round(Z*g)),M)};if(I===h)return this.set(h,this.$M+g);if(I===m)return this.set(m,this.$y+g);if(I===c)return L(1);if(I===d)return L(7);var U=(_={},_[l]=n,_[u]=r,_[s]=t,_)[I]||1,J=this.$d.getTime()+g*U;return P.w(J,this)},b.subtract=function(g,C){return this.add(-1*g,C)},b.format=function(g){var C=this,_=this.$locale();if(!this.isValid())return _.invalidDate||y;var M=g||"YYYY-MM-DDTHH:mm:ssZ",I=P.z(this),L=this.$H,U=this.$m,J=this.$M,Z=_.weekdays,le=_.months,Ce=_.meridiem,_e=function(ne,ge,Ie,He){return ne&&(ne[ge]||ne(C,M))||Ie[ge].slice(0,He)},Me=function(ne){return P.s(L%12||12,ne,"0")},we=Ce||function(ne,ge,Ie){var He=ne<12?"AM":"PM";return Ie?He.toLowerCase():He};return M.replace(A,function(ne,ge){return ge||function(Ie){switch(Ie){case"YY":return String(C.$y).slice(-2);case"YYYY":return P.s(C.$y,4,"0");case"M":return J+1;case"MM":return P.s(J+1,2,"0");case"MMM":return _e(_.monthsShort,J,le,3);case"MMMM":return _e(le,J);case"D":return C.$D;case"DD":return P.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return _e(_.weekdaysMin,C.$W,Z,2);case"ddd":return _e(_.weekdaysShort,C.$W,Z,3);case"dddd":return Z[C.$W];case"H":return String(L);case"HH":return P.s(L,2,"0");case"h":return Me(1);case"hh":return Me(2);case"a":return we(L,U,!0);case"A":return we(L,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(C.$s);case"ss":return P.s(C.$s,2,"0");case"SSS":return P.s(C.$ms,3,"0");case"Z":return I}return null}(ne)||I.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,C,_){var M,I=this,L=P.p(C),U=O(g),J=(U.utcOffset()-this.utcOffset())*n,Z=this-U,le=function(){return P.m(I,U)};switch(L){case m:M=le()/12;break;case h:M=le();break;case w:M=le()/3;break;case d:M=(Z-J)/6048e5;break;case c:M=(Z-J)/864e5;break;case u:M=Z/r;break;case l:M=Z/n;break;case s:M=Z/t;break;default:M=Z}return _?M:P.a(M)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return E[this.$L]},b.locale=function(g,C){if(!g)return this.$L;var _=this.clone(),M=B(g,C,!0);return M&&(_.$L=M),_},b.clone=function(){return P.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},x}(),q=ee.prototype;return O.prototype=q,[["$ms",i],["$s",s],["$m",l],["$H",u],["$W",c],["$M",h],["$y",m],["$D",f]].forEach(function(x){q[x[1]]=function(b){return this.$g(b,x[0],x[1])}}),O.extend=function(x,b){return x.$i||(x(b,ee,O),x.$i=!0),O},O.locale=B,O.isDayjs=S,O.unix=function(x){return O(1e3*x)},O.en=E[W],O.Ls=E,O.p={},O})}(Je)),Je.exports}var vn=gn();const jt=pn(vn),yn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-switch");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},bn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},_n={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},wn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-color-picker");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"show-alpha":""},null,8,["modelValue"])}}},En={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Sn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return(t,n)=>{var r,i,s,l,u,c;return a.openBlock(),a.createBlock(dn,{rowContents:((r=e==null?void 0:e.content)==null?void 0:r.rowContents)??[],buttonValue:((i=e==null?void 0:e.content)==null?void 0:i.buttonValue)??[],isEnableWrap:(s=e==null?void 0:e.content)==null?void 0:s.isEnableWrap,isRowFlex:(l=e==null?void 0:e.content)==null?void 0:l.isRowFlex,isButtonRow:(u=e==null?void 0:e.content)==null?void 0:u.isButtonRow,rowValues:((c=e==null?void 0:e.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Dn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-radio"),s=a.resolveComponent("el-radio-group");return a.openBlock(),a.createBlock(s,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l),style:{height:"100%"}},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.content,(l,u)=>(a.openBlock(),a.createBlock(i,{key:u,label:l.label},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l==null?void 0:l.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},xn=["onDblclick"],Cn={key:1,class:"tabs-label"},kn={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(o,{emit:e}){var c;const t=o,n=e,r=a.ref([]),i=a.ref((c=t==null?void 0:t.tabsContents[0])==null?void 0:c.value),s=d=>$t(d),l=d=>{n("dblClick",d)},u=d=>{n("dbChange",d)};return a.watch(()=>t.tabsContents,()=>{r.value=ut.cloneDeep(t.tabsContents)},{deep:!0,immediate:!0}),(d,h)=>{const w=a.resolveComponent("el-tab-pane"),m=a.resolveComponent("el-tabs");return a.openBlock(),a.createBlock(m,{type:"card",modelValue:i.value,"onUpdate:modelValue":h[0]||(h[0]=f=>i.value=f)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(f,y)=>(a.openBlock(),a.createBlock(w,{key:y,name:f==null?void 0:f.value},{label:a.withCtx(()=>{var D;return[f!=null&&f.label?(a.openBlock(),a.createElementBlock("div",{key:0,onDblclick:A=>l(f)},a.toDisplayString(f==null?void 0:f.label),41,xn)):a.createCommentVNode("",!0),f!=null&&f.contents&&((D=f==null?void 0:f.contents)==null?void 0:D.length)>0?(a.openBlock(),a.createElementBlock("div",Cn,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.contents,(A,p)=>(a.openBlock(),a.createElementBlock("div",{key:p,class:"tabs-children"},[A!=null&&A.value||(A==null?void 0:A.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(A==null?void 0:A.type)),{key:0,modelValue:A.value,"onUpdate:modelValue":k=>A.value=k,content:(A==null?void 0:A.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))])):a.createCommentVNode("",!0),a.renderSlot(d.$slots,`${(f==null?void 0:f.value)??""}_header`,{},void 0,!0)]}),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.children,(D,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:"tabs-contents"},[a.renderSlot(d.$slots,`${(D==null?void 0:D.value)??""}_operateButtons`,{},void 0,!0),D!=null&&D.value||(D==null?void 0:D.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(D==null?void 0:D.type)),{key:0,modelValue:D.value,"onUpdate:modelValue":p=>D.value=p,onDbChange:u,content:D==null?void 0:D.content},a.createSlots({_:2},[a.renderList(d.$slots,(p,k)=>({name:k,fn:a.withCtx(V=>[a.renderSlot(d.$slots,k,a.mergeProps({ref_for:!0},V||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},Xt=xe._export_sfc(kn,[["__scopeId","data-v-c1c693d0"]]),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:Xt},Symbol.toStringTag,{value:"Module"})),Tn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return a.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(n=>{n.style.display="block"})}),(t,n)=>{var r;return a.openBlock(),a.createBlock(Xt,{tabsContents:((r=e==null?void 0:e.content)==null?void 0:r.tabsContents)??[]},a.createSlots({_:2},[a.renderList(t.$slots,(i,s)=>({name:s,fn:a.withCtx(l=>[a.renderSlot(t.$slots,s,a.normalizeProps(a.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}};/**!
1
+ "use strict";const a=require("vue"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=require("./cloneDeep-DER--uPX.cjs"),Ht=require("./menu-CwoHmZYg.cjs"),hn=require("./index-BOy1bSzZ.cjs"),fn=require("./index-CN2ZUKVm.cjs"),At=require("./index-Bd5g9LEC.cjs");function pn(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Je={exports:{}},mn=Je.exports,Pt;function gn(){return Pt||(Pt=1,function(o,e){(function(t,n){o.exports=n()})(mn,function(){var t=1e3,n=6e4,r=36e5,i="millisecond",s="second",l="minute",u="hour",c="day",d="week",h="month",w="quarter",m="year",f="date",y="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var b=["th","st","nd","rd"],g=x%100;return"["+x+(b[(g-20)%10]||b[g]||b[0])+"]"}},k=function(x,b,g){var C=String(x);return!C||C.length>=b?x:""+Array(b+1-C.length).join(g)+x},V={s:k,z:function(x){var b=-x.utcOffset(),g=Math.abs(b),C=Math.floor(g/60),_=g%60;return(b<=0?"+":"-")+k(C,2,"0")+":"+k(_,2,"0")},m:function x(b,g){if(b.date()<g.date())return-x(g,b);var C=12*(g.year()-b.year())+(g.month()-b.month()),_=b.clone().add(C,h),M=g-_<0,I=b.clone().add(C+(M?-1:1),h);return+(-(C+(g-_)/(M?_-I:I-_))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:m,w:d,d:c,D:f,h:u,m:l,s,ms:i,Q:w}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},W="en",E={};E[W]=p;var j="$isDayjsObject",S=function(x){return x instanceof ee||!(!x||!x[j])},B=function x(b,g,C){var _;if(!b)return W;if(typeof b=="string"){var M=b.toLowerCase();E[M]&&(_=M),g&&(E[M]=g,_=M);var I=b.split("-");if(!_&&I.length>1)return x(I[0])}else{var L=b.name;E[L]=b,_=L}return!C&&_&&(W=_),_||!C&&W},O=function(x,b){if(S(x))return x.clone();var g=typeof b=="object"?b:{};return g.date=x,g.args=arguments,new ee(g)},P=V;P.l=B,P.i=S,P.w=function(x,b){return O(x,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var ee=function(){function x(g){this.$L=B(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[j]=!0}var b=x.prototype;return b.parse=function(g){this.$d=function(C){var _=C.date,M=C.utc;if(_===null)return new Date(NaN);if(P.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var I=_.match(D);if(I){var L=I[2]-1||0,U=(I[7]||"0").substring(0,3);return M?new Date(Date.UTC(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)):new Date(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)}}return new Date(_)}(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return P},b.isValid=function(){return this.$d.toString()!==y},b.isSame=function(g,C){var _=O(g);return this.startOf(C)<=_&&_<=this.endOf(C)},b.isAfter=function(g,C){return O(g)<this.startOf(C)},b.isBefore=function(g,C){return this.endOf(C)<O(g)},b.$g=function(g,C,_){return P.u(g)?this[C]:this.set(_,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,C){var _=this,M=!!P.u(C)||C,I=P.p(g),L=function(we,ne){var ge=P.w(_.$u?Date.UTC(_.$y,ne,we):new Date(_.$y,ne,we),_);return M?ge:ge.endOf(c)},U=function(we,ne){return P.w(_.toDate()[we].apply(_.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(ne)),_)},J=this.$W,Z=this.$M,le=this.$D,Ce="set"+(this.$u?"UTC":"");switch(I){case m:return M?L(1,0):L(31,11);case h:return M?L(1,Z):L(0,Z+1);case d:var _e=this.$locale().weekStart||0,Me=(J<_e?J+7:J)-_e;return L(M?le-Me:le+(6-Me),Z);case c:case f:return U(Ce+"Hours",0);case u:return U(Ce+"Minutes",1);case l:return U(Ce+"Seconds",2);case s:return U(Ce+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,C){var _,M=P.p(g),I="set"+(this.$u?"UTC":""),L=(_={},_[c]=I+"Date",_[f]=I+"Date",_[h]=I+"Month",_[m]=I+"FullYear",_[u]=I+"Hours",_[l]=I+"Minutes",_[s]=I+"Seconds",_[i]=I+"Milliseconds",_)[M],U=M===c?this.$D+(C-this.$W):C;if(M===h||M===m){var J=this.clone().set(f,1);J.$d[L](U),J.init(),this.$d=J.set(f,Math.min(this.$D,J.daysInMonth())).$d}else L&&this.$d[L](U);return this.init(),this},b.set=function(g,C){return this.clone().$set(g,C)},b.get=function(g){return this[P.p(g)]()},b.add=function(g,C){var _,M=this;g=Number(g);var I=P.p(C),L=function(Z){var le=O(M);return P.w(le.date(le.date()+Math.round(Z*g)),M)};if(I===h)return this.set(h,this.$M+g);if(I===m)return this.set(m,this.$y+g);if(I===c)return L(1);if(I===d)return L(7);var U=(_={},_[l]=n,_[u]=r,_[s]=t,_)[I]||1,J=this.$d.getTime()+g*U;return P.w(J,this)},b.subtract=function(g,C){return this.add(-1*g,C)},b.format=function(g){var C=this,_=this.$locale();if(!this.isValid())return _.invalidDate||y;var M=g||"YYYY-MM-DDTHH:mm:ssZ",I=P.z(this),L=this.$H,U=this.$m,J=this.$M,Z=_.weekdays,le=_.months,Ce=_.meridiem,_e=function(ne,ge,Ie,He){return ne&&(ne[ge]||ne(C,M))||Ie[ge].slice(0,He)},Me=function(ne){return P.s(L%12||12,ne,"0")},we=Ce||function(ne,ge,Ie){var He=ne<12?"AM":"PM";return Ie?He.toLowerCase():He};return M.replace(A,function(ne,ge){return ge||function(Ie){switch(Ie){case"YY":return String(C.$y).slice(-2);case"YYYY":return P.s(C.$y,4,"0");case"M":return J+1;case"MM":return P.s(J+1,2,"0");case"MMM":return _e(_.monthsShort,J,le,3);case"MMMM":return _e(le,J);case"D":return C.$D;case"DD":return P.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return _e(_.weekdaysMin,C.$W,Z,2);case"ddd":return _e(_.weekdaysShort,C.$W,Z,3);case"dddd":return Z[C.$W];case"H":return String(L);case"HH":return P.s(L,2,"0");case"h":return Me(1);case"hh":return Me(2);case"a":return we(L,U,!0);case"A":return we(L,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(C.$s);case"ss":return P.s(C.$s,2,"0");case"SSS":return P.s(C.$ms,3,"0");case"Z":return I}return null}(ne)||I.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,C,_){var M,I=this,L=P.p(C),U=O(g),J=(U.utcOffset()-this.utcOffset())*n,Z=this-U,le=function(){return P.m(I,U)};switch(L){case m:M=le()/12;break;case h:M=le();break;case w:M=le()/3;break;case d:M=(Z-J)/6048e5;break;case c:M=(Z-J)/864e5;break;case u:M=Z/r;break;case l:M=Z/n;break;case s:M=Z/t;break;default:M=Z}return _?M:P.a(M)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return E[this.$L]},b.locale=function(g,C){if(!g)return this.$L;var _=this.clone(),M=B(g,C,!0);return M&&(_.$L=M),_},b.clone=function(){return P.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},x}(),q=ee.prototype;return O.prototype=q,[["$ms",i],["$s",s],["$m",l],["$H",u],["$W",c],["$M",h],["$y",m],["$D",f]].forEach(function(x){q[x[1]]=function(b){return this.$g(b,x[0],x[1])}}),O.extend=function(x,b){return x.$i||(x(b,ee,O),x.$i=!0),O},O.locale=B,O.isDayjs=S,O.unix=function(x){return O(1e3*x)},O.en=E[W],O.Ls=E,O.p={},O})}(Je)),Je.exports}var vn=gn();const jt=pn(vn),yn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-switch");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},bn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},_n={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},wn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-color-picker");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"show-alpha":""},null,8,["modelValue"])}}},En={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Sn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return(t,n)=>{var r,i,s,l,u,c;return a.openBlock(),a.createBlock(dn,{rowContents:((r=e==null?void 0:e.content)==null?void 0:r.rowContents)??[],buttonValue:((i=e==null?void 0:e.content)==null?void 0:i.buttonValue)??[],isEnableWrap:(s=e==null?void 0:e.content)==null?void 0:s.isEnableWrap,isRowFlex:(l=e==null?void 0:e.content)==null?void 0:l.isRowFlex,isButtonRow:(u=e==null?void 0:e.content)==null?void 0:u.isButtonRow,rowValues:((c=e==null?void 0:e.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Dn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-radio"),s=a.resolveComponent("el-radio-group");return a.openBlock(),a.createBlock(s,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l),style:{height:"100%"}},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.content,(l,u)=>(a.openBlock(),a.createBlock(i,{key:u,label:l.label},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l==null?void 0:l.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},xn=["onDblclick"],Cn={key:1,class:"tabs-label"},kn={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(o,{emit:e}){var c;const t=o,n=e,r=a.ref([]),i=a.ref((c=t==null?void 0:t.tabsContents[0])==null?void 0:c.value),s=d=>$t(d),l=d=>{n("dblClick",d)},u=d=>{n("dbChange",d)};return a.watch(()=>t.tabsContents,()=>{r.value=ut.cloneDeep(t.tabsContents)},{deep:!0,immediate:!0}),(d,h)=>{const w=a.resolveComponent("el-tab-pane"),m=a.resolveComponent("el-tabs");return a.openBlock(),a.createBlock(m,{type:"card",modelValue:i.value,"onUpdate:modelValue":h[0]||(h[0]=f=>i.value=f)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(f,y)=>(a.openBlock(),a.createBlock(w,{key:y,name:f==null?void 0:f.value},{label:a.withCtx(()=>{var D;return[f!=null&&f.label?(a.openBlock(),a.createElementBlock("div",{key:0,onDblclick:A=>l(f)},a.toDisplayString(f==null?void 0:f.label),41,xn)):a.createCommentVNode("",!0),f!=null&&f.contents&&((D=f==null?void 0:f.contents)==null?void 0:D.length)>0?(a.openBlock(),a.createElementBlock("div",Cn,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.contents,(A,p)=>(a.openBlock(),a.createElementBlock("div",{key:p,class:"tabs-children"},[A!=null&&A.value||(A==null?void 0:A.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(A==null?void 0:A.type)),{key:0,modelValue:A.value,"onUpdate:modelValue":k=>A.value=k,content:(A==null?void 0:A.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))])):a.createCommentVNode("",!0),a.renderSlot(d.$slots,`${(f==null?void 0:f.value)??""}_header`,{},void 0,!0)]}),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.children,(D,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:"tabs-contents"},[a.renderSlot(d.$slots,`${(D==null?void 0:D.value)??""}_operateButtons`,{},void 0,!0),D!=null&&D.value||(D==null?void 0:D.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(D==null?void 0:D.type)),{key:0,modelValue:D.value,"onUpdate:modelValue":p=>D.value=p,onDbChange:u,content:D==null?void 0:D.content},a.createSlots({_:2},[a.renderList(d.$slots,(p,k)=>({name:k,fn:a.withCtx(V=>[a.renderSlot(d.$slots,k,a.mergeProps({ref_for:!0},V||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},Xt=xe._export_sfc(kn,[["__scopeId","data-v-c1c693d0"]]),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:Xt},Symbol.toStringTag,{value:"Module"})),Tn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return a.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(n=>{n.style.display="block"})}),(t,n)=>{var r;return a.openBlock(),a.createBlock(Xt,{tabsContents:((r=e==null?void 0:e.content)==null?void 0:r.tabsContents)??[]},a.createSlots({_:2},[a.renderList(t.$slots,(i,s)=>({name:s,fn:a.withCtx(l=>[a.renderSlot(t.$slots,s,a.normalizeProps(a.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}};/**!
2
2
  * Sortable 1.15.6
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Iw=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ki=require("./cloneDeep-DqZ7vz8g.cjs");/*! *****************************************************************************
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Iw=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ki=require("./cloneDeep-DER--uPX.cjs");/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1,17 +1,17 @@
1
1
  import { ref as C, onMounted as H, watch as T, createElementBlock as f, openBlock as d, Fragment as Q, renderList as X, createElementVNode as I, createCommentVNode as b, toDisplayString as K, resolveComponent as O, createVNode as x, withCtx as U, createBlock as P, unref as k, resolveDynamicComponent as ae } from "vue";
2
- import { m as te, a as se, b as ne } from "./index-D_fwjS3z.js";
3
- import re from "./index-DMrvCMF9.js";
4
- import { p as N } from "./request-Dx56pt7_.js";
5
- import { u as Y } from "./modelComp-DV6uSzBz.js";
6
- import { u as Z, s as M } from "./menu-C5E_B2Yb.js";
7
- import { i as le, e as oe, b as G, c as ie, g as ue, a as de } from "./array-Ci6eXFKY.js";
8
- import { u as ce } from "./formToTable-onAmzVvu.js";
9
- import { s as me } from "./index.vue_vue_type_style_index_0_scoped_baf99455_lang-CohOVVBU.js";
2
+ import { m as te, a as se, b as ne } from "./index-DP3w07QU.js";
3
+ import re from "./index-BfHrf1hL.js";
4
+ import { p as N } from "./request-EMSstqMr.js";
5
+ import { u as Y } from "./modelComp-CUZjjNBE.js";
6
+ import { u as Z, s as M } from "./menu-C1zU-rc-.js";
7
+ import { i as le, e as oe, b as G, c as ie, g as ue, a as de } from "./array-CnBDdPwL.js";
8
+ import { u as ce } from "./formToTable-BprbRq5I.js";
9
+ import { s as me } from "./index.vue_vue_type_style_index_0_scoped_baf99455_lang-CV4aFeR1.js";
10
10
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { u as ge, g as J, f as ye, d as ve, a as fe, b as he } from "./index-CziQLmHE.js";
12
- import { v as Ce } from "./index-Ds_GjEDa.js";
13
- import { E as _e } from "./index-B5pn4_ea.js";
14
- import { c as L } from "./cloneDeep-CtBjgcpB.js";
11
+ import { u as ge, g as J, f as ye, d as ve, a as fe, b as he } from "./index-DlI_21OF.js";
12
+ import { v as Ce } from "./index-BmybC1PC.js";
13
+ import { E as _e } from "./index-DuqflGdi.js";
14
+ import { c as L } from "./cloneDeep-DMsBqhn5.js";
15
15
  const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
16
16
  __name: "index",
17
17
  props: {
@@ -1,11 +1,11 @@
1
1
  import { createElementBlock as r, openBlock as n, Fragment as k, renderList as y, unref as F, createElementVNode as c, createBlock as h, resolveDynamicComponent as $, toDisplayString as C, ref as I, watch as L, resolveComponent as b, createVNode as R, withCtx as g, createCommentVNode as T } from "vue";
2
- import { s as U, g as M } from "./array-Ci6eXFKY.js";
3
- import { p as V } from "./request-Dx56pt7_.js";
4
- import { a as j } from "./index-B5pn4_ea.js";
5
- import { u as w } from "./modelComp-DV6uSzBz.js";
6
- import { s as x } from "./menu-C5E_B2Yb.js";
2
+ import { s as U, g as M } from "./array-CnBDdPwL.js";
3
+ import { p as V } from "./request-EMSstqMr.js";
4
+ import { a as j } from "./index-DuqflGdi.js";
5
+ import { u as w } from "./modelComp-CUZjjNBE.js";
6
+ import { s as x } from "./menu-C1zU-rc-.js";
7
7
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { c as v } from "./cloneDeep-CtBjgcpB.js";
8
+ import { c as v } from "./cloneDeep-DMsBqhn5.js";
9
9
  const q = { class: "type-select" }, z = ["onClick"], A = { class: "list-icon" }, G = {
10
10
  __name: "index",
11
11
  setup(B) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index.vue_vue_type_script_setup_true_lang-DT3NTRN-.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),l=e.ref(""),c=e.ref([]),i=e.ref([{label:"",name:"",type:"Input",value:"",id:0,width:1,isFormColHidden:!1}]),d=()=>{},u=Object.freeze(Object.defineProperty({__proto__:null,avatarUrl:l,clickFormButton:d,pageData:c,rowContents:i},Symbol.toStringTag,{value:"Module"})),_={class:"personal-wrapper"},p={span:8,class:"personal-box left"},v={class:"base-avatar"},m={class:"center-avatar"},b={class:"base-info"},f=e.defineComponent({__name:"index",setup(E){const t=e.reactive({...u}),r=a=>{t.avatarUrl=a,console.log(1231,t.avatarUrl)};return e.onMounted(()=>{console.log(1233,t.avatarUrl)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",p,[e.createElementVNode("div",v,[e.createElementVNode("div",m,[e.createVNode(n._sfc_main,{avatarUrl:t.avatarUrl,onSubmitImage:r},null,8,["avatarUrl"])])]),e.createElementVNode("div",b,[e.createVNode(n.ssForm,{rowContents:t.rowContents,isEnableWrap:!1,onChange:t.clickFormButton,isEdit:!0},null,8,["rowContents","onChange"])]),o[0]||(o[0]=e.createElementVNode("div",{class:"base-signature"},null,-1))]),o[1]||(o[1]=e.createElementVNode("div",{span:16,class:"personal-box right"},null,-1))]))}}),g=s._export_sfc(f,[["__scopeId","data-v-b5688086"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index.vue_vue_type_script_setup_true_lang-CXer2HjG.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),l=e.ref(""),c=e.ref([]),i=e.ref([{label:"",name:"",type:"Input",value:"",id:0,width:1,isFormColHidden:!1}]),d=()=>{},u=Object.freeze(Object.defineProperty({__proto__:null,avatarUrl:l,clickFormButton:d,pageData:c,rowContents:i},Symbol.toStringTag,{value:"Module"})),_={class:"personal-wrapper"},p={span:8,class:"personal-box left"},v={class:"base-avatar"},m={class:"center-avatar"},b={class:"base-info"},f=e.defineComponent({__name:"index",setup(E){const t=e.reactive({...u}),r=a=>{t.avatarUrl=a,console.log(1231,t.avatarUrl)};return e.onMounted(()=>{console.log(1233,t.avatarUrl)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",p,[e.createElementVNode("div",v,[e.createElementVNode("div",m,[e.createVNode(n._sfc_main,{avatarUrl:t.avatarUrl,onSubmitImage:r},null,8,["avatarUrl"])])]),e.createElementVNode("div",b,[e.createVNode(n.ssForm,{rowContents:t.rowContents,isEnableWrap:!1,onChange:t.clickFormButton,isEdit:!0},null,8,["rowContents","onChange"])]),o[0]||(o[0]=e.createElementVNode("div",{class:"base-signature"},null,-1))]),o[1]||(o[1]=e.createElementVNode("div",{span:16,class:"personal-box right"},null,-1))]))}}),g=s._export_sfc(f,[["__scopeId","data-v-b5688086"]]);exports.default=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),b=require("./index-Dmt_YJ-1.cjs"),m=require("./index-CqHY2J0U.cjs"),h=require("./index-D9bMhrzO.cjs"),y=require("./index-Ci2xKRX4.cjs"),f=require("vue-router"),C=require("./modelComp-C4S5aP2f.cjs"),u=require("./menu-DUn9J6ja.cjs"),_=require("./cloneDeep-DqZ7vz8g.cjs"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v=n.ref([{label:"机构名称",value:"",name:"deptName"}]),q=a=>{console.log("handleQueryChange",a)},x=n.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"tableIndex",contents:[]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents"}]),w=a=>{console.log("handleItemDataChange",a),y.submitTableAsyncByVerify(a.singleContent,a.buttonName)},S=a=>{console.log("onDoubleClick",a)},I=(a,t)=>{console.log("onButtonClick",a,t)},T=async a=>{const t=await y.handleSubmitAsync(h.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a}},"查询"),r=t==null?void 0:t.map(e=>{var o;return{id:e.id,rowData:(o=e==null?void 0:e.value)==null?void 0:o.rowData}});return r==null?void 0:r.map(e=>{var o;if(Array.isArray(e==null?void 0:e.rowData)){let s={id:e.id};return(o=e==null?void 0:e.rowData)==null||o.forEach((p,l)=>{s[`a${l}`]=p}),s}else return{...e.rowData,id:e.id}})},A=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:T,handleItemDataChange:w,handleQueryChange:q,onButtonClick:I,onDoubleClick:S,pageData:x,queryFormData:v},Symbol.toStringTag,{value:"Module"})),B={class:"role-wrapper"},M=n.defineComponent({__name:"index",setup(a){const t=n.reactive({...A}),r=f.useRoute(),e=C.useModelComp(),{itemData:o}=u.storeToRefs(e),s=u.useMenuState(),{menus:p,activeMenuPath:l}=u.storeToRefs(s);return n.onMounted(()=>{const d=_.cloneDeep(o.value),i={comp:"Group",name:r.path,compData:t.pageData};e.setItemData([...d,i]),l.value&&t.getPageDataAsync(l.value).then(D=>{var g;t.pageData=(g=t.pageData)==null?void 0:g.map(c=>c.key==="tableContents"?{...c,contents:D}:c)})}),(d,i)=>(n.openBlock(),n.createElementBlock("div",B,[n.createVNode(b.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),n.createVNode(m.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),N=k._export_sfc(M,[["__scopeId","data-v-9f3189fe"]]);exports.default=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),b=require("./index-DJd5gmh4.cjs"),m=require("./index-BtZGSmE4.cjs"),h=require("./index-t_aIEfXB.cjs"),y=require("./index-BZRBLz0M.cjs"),f=require("vue-router"),C=require("./modelComp-DH63MmzP.cjs"),u=require("./menu-CwoHmZYg.cjs"),_=require("./cloneDeep-DER--uPX.cjs"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v=n.ref([{label:"机构名称",value:"",name:"deptName"}]),q=a=>{console.log("handleQueryChange",a)},x=n.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"tableIndex",contents:[]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents"}]),w=a=>{console.log("handleItemDataChange",a),y.submitTableAsyncByVerify(a.singleContent,a.buttonName)},S=a=>{console.log("onDoubleClick",a)},I=(a,t)=>{console.log("onButtonClick",a,t)},T=async a=>{const t=await y.handleSubmitAsync(h.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a}},"查询"),r=t==null?void 0:t.map(e=>{var o;return{id:e.id,rowData:(o=e==null?void 0:e.value)==null?void 0:o.rowData}});return r==null?void 0:r.map(e=>{var o;if(Array.isArray(e==null?void 0:e.rowData)){let s={id:e.id};return(o=e==null?void 0:e.rowData)==null||o.forEach((p,l)=>{s[`a${l}`]=p}),s}else return{...e.rowData,id:e.id}})},A=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:T,handleItemDataChange:w,handleQueryChange:q,onButtonClick:I,onDoubleClick:S,pageData:x,queryFormData:v},Symbol.toStringTag,{value:"Module"})),B={class:"role-wrapper"},M=n.defineComponent({__name:"index",setup(a){const t=n.reactive({...A}),r=f.useRoute(),e=C.useModelComp(),{itemData:o}=u.storeToRefs(e),s=u.useMenuState(),{menus:p,activeMenuPath:l}=u.storeToRefs(s);return n.onMounted(()=>{const d=_.cloneDeep(o.value),i={comp:"Group",name:r.path,compData:t.pageData};e.setItemData([...d,i]),l.value&&t.getPageDataAsync(l.value).then(D=>{var g;t.pageData=(g=t.pageData)==null?void 0:g.map(c=>c.key==="tableContents"?{...c,contents:D}:c)})}),(d,i)=>(n.openBlock(),n.createElementBlock("div",B,[n.createVNode(b.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),n.createVNode(m.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),N=k._export_sfc(M,[["__scopeId","data-v-9f3189fe"]]);exports.default=N;
@@ -1,10 +1,10 @@
1
1
  import { ref as H, resolveComponent as X, createBlock as L, openBlock as _, withCtx as Y, createElementBlock as B, Fragment as st, renderList as ot, createTextVNode as he, toDisplayString as bt, watch as It, renderSlot as ct, createCommentVNode as J, resolveDynamicComponent as ae, createSlots as jt, mergeProps as He, onMounted as Ce, normalizeProps as Mn, guardReactiveProps as In, defineComponent as ze, nextTick as Ae, createVNode as xt, normalizeStyle as pt, createElementVNode as Et, unref as Ze, h as Qe, normalizeClass as On } from "vue";
2
2
  import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { c as Te } from "./cloneDeep-CtBjgcpB.js";
4
- import { E as pn } from "./menu-C5E_B2Yb.js";
5
- import Rn from "./index-DVmX1hed.js";
6
- import Nn from "./index-C9dGaAQO.js";
7
- import { a3 as tn } from "./index-B5pn4_ea.js";
3
+ import { c as Te } from "./cloneDeep-DMsBqhn5.js";
4
+ import { E as pn } from "./menu-C1zU-rc-.js";
5
+ import Rn from "./index-xQOBDZGG.js";
6
+ import Nn from "./index-Q7uuScWY.js";
7
+ import { a3 as tn } from "./index-DuqflGdi.js";
8
8
  function Bn(o) {
9
9
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
10
10
  }
@@ -1,6 +1,6 @@
1
1
  import { ref as Sp, onMounted as Iw, watch as cL, onUnmounted as pL, createElementBlock as Lw, openBlock as Ew, createVNode as dL } from "vue";
2
2
  import { _ as Pw } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { c as qi } from "./cloneDeep-CtBjgcpB.js";
3
+ import { c as qi } from "./cloneDeep-DMsBqhn5.js";
4
4
  /*! *****************************************************************************
5
5
  Copyright (c) Microsoft Corporation.
6
6
 
@@ -1,13 +1,13 @@
1
1
  import { ref as nt, watch as vi, nextTick as Xl, resolveComponent as Yo, createBlock as ma, openBlock as Ht, withCtx as en, createElementVNode as qt, renderSlot as La, onMounted as _a, createElementBlock as pn, createCommentVNode as jo, Fragment as Ko, renderList as Zo, normalizeStyle as $o, toDisplayString as Ts, createVNode as Rn, unref as ql, onBeforeUnmount as Yl, createSlots as jl } from "vue";
2
- import { p as Xs } from "./request-Dx56pt7_.js";
3
- import { u as Kl } from "./modelComp-DV6uSzBz.js";
4
- import { a2 as Zl } from "./index-B5pn4_ea.js";
5
- import { a as Jo, s as $l, b as Ua } from "./index-D4svf93S.js";
6
- import { c as ut } from "./cloneDeep-CtBjgcpB.js";
2
+ import { p as Xs } from "./request-EMSstqMr.js";
3
+ import { u as Kl } from "./modelComp-CUZjjNBE.js";
4
+ import { a2 as Zl } from "./index-DuqflGdi.js";
5
+ import { a as Jo, s as $l, b as Ua } from "./index-Dh422bH4.js";
6
+ import { c as ut } from "./cloneDeep-DMsBqhn5.js";
7
7
  import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { u as Jl } from "./formToTable-onAmzVvu.js";
9
- import { d as Ql, u as ec, s as Zi } from "./menu-C5E_B2Yb.js";
10
- import { g as qs, u as Qo, d as tc, c as nc } from "./index-CwZRdwOR.js";
8
+ import { u as Jl } from "./formToTable-BprbRq5I.js";
9
+ import { d as Ql, u as ec, s as Zi } from "./menu-C1zU-rc-.js";
10
+ import { g as qs, u as Qo, d as tc, c as nc } from "./index-d4ishmsH.js";
11
11
  const ic = {
12
12
  __name: "index",
13
13
  props: {
@@ -21047,13 +21047,13 @@ const Jm = { class: "content-show" }, Qm = {
21047
21047
  m.position.set(1, 1, 1), n.add(m), c("model"), h();
21048
21048
  }, c = (f) => {
21049
21049
  new Fm().load(
21050
- "../../obj/" + f + ".mtl",
21050
+ new URL("../../obj/" + f + ".mtl", import.meta.url).href,
21051
21051
  // 替换为你的MTL文件路径
21052
21052
  (_) => {
21053
21053
  _.preload();
21054
21054
  const v = new Nm();
21055
21055
  v.setMaterials(_), v.load(
21056
- "../../obj/" + f + ".obj",
21056
+ new URL("../../obj/" + f + ".obj", import.meta.url).href,
21057
21057
  // 替换为你的OBJ文件路径
21058
21058
  (p) => {
21059
21059
  o = p, o.rotation.set(50, -20, 200), n.add(o);
@@ -21100,7 +21100,7 @@ const Jm = { class: "content-show" }, Qm = {
21100
21100
  }, null, 512)
21101
21101
  ]));
21102
21102
  }
21103
- }, e_ = /* @__PURE__ */ ga(Qm, [["__scopeId", "data-v-d82e7f98"]]), t_ = Ql("unit", {
21103
+ }, e_ = /* @__PURE__ */ ga(Qm, [["__scopeId", "data-v-2d6c2089"]]), t_ = Ql("unit", {
21104
21104
  state: () => ({
21105
21105
  selectIndex: "",
21106
21106
  selectMenu: "",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./array-jR-WStUM.cjs");require("./request-DYjZLCB4.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-COwlVzFK.cjs");require("./menu-DUn9J6ja.cjs");require("./index.vue_vue_type_style_index_0_scoped_baf99455_lang-DZ_ULnx2.cjs");require("./index-DTPyngs2.cjs");const u={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},setup(n){const e=n;return(i,d)=>{const o=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(o,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,showButton:e==null?void 0:e.showButton},null,8,["mode","content","jsonContents","showButton"])])}}},c=r._export_sfc(u,[["__scopeId","data-v-99eb8dd6"]]);exports.default=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./array-CIOBvBsr.cjs");require("./request-DRcIFNRO.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Dn-j2icF.cjs");require("./menu-CwoHmZYg.cjs");require("./index.vue_vue_type_style_index_0_scoped_baf99455_lang-Bm0jQQqv.cjs");require("./index-BuQvkTC_.cjs");const u={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},setup(n){const e=n;return(i,d)=>{const o=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(o,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,showButton:e==null?void 0:e.showButton},null,8,["mode","content","jsonContents","showButton"])])}}},c=r._export_sfc(u,[["__scopeId","data-v-99eb8dd6"]]);exports.default=c;
@@ -6017,12 +6017,12 @@ const I9 = N4(P, "$notify"), D9 = [
6017
6017
  {
6018
6018
  path: "/login",
6019
6019
  name: "Login",
6020
- component: async () => import("./index-BxepHo5i.js")
6020
+ component: async () => import("./index-FHEhYs1w.js")
6021
6021
  },
6022
6022
  {
6023
6023
  path: "/",
6024
6024
  name: "Model",
6025
- component: async () => import("./index-D9rcnCGb.js"),
6025
+ component: async () => import("./index-DMiJKhwz.js"),
6026
6026
  // component: async ()=>import('@/components/views/model/component/main.vue'),
6027
6027
  // component: async ()=>import('@/components/views/canvas/index.vue'),
6028
6028
  // component: async ()=>import('@/components/views/test/index.vue'),
@@ -6030,27 +6030,27 @@ const I9 = N4(P, "$notify"), D9 = [
6030
6030
  {
6031
6031
  path: "personalCenter",
6032
6032
  name: "PersonalCenter",
6033
- component: async () => import("./index-BecJMgVd.js")
6033
+ component: async () => import("./index-CoXgajIp.js")
6034
6034
  },
6035
6035
  {
6036
6036
  path: "post",
6037
6037
  name: "Post",
6038
- component: async () => import("./index-Btu_-lir.js")
6038
+ component: async () => import("./index-mCQ6tP78.js")
6039
6039
  },
6040
6040
  {
6041
6041
  path: "user",
6042
6042
  name: "User",
6043
- component: async () => import("./index-tGUdrgeK.js")
6043
+ component: async () => import("./index-RPUNFmDf.js")
6044
6044
  },
6045
6045
  {
6046
6046
  path: "role",
6047
6047
  name: "Role",
6048
- component: async () => import("./index-B3bEmnU0.js")
6048
+ component: async () => import("./index-B3AXhk6a.js")
6049
6049
  },
6050
6050
  {
6051
6051
  path: "dept",
6052
6052
  name: "Dept",
6053
- component: async () => import("./index-73rIUJUQ.js")
6053
+ component: async () => import("./index-BxBYHLiW.js")
6054
6054
  },
6055
6055
  {
6056
6056
  path: "priority",
@@ -1,14 +1,14 @@
1
1
  import { createElementBlock as z, openBlock as L, createElementVNode as B, renderSlot as k, defineComponent as G, ref as K, resolveComponent as x, createVNode as n, withCtx as i, reactive as T, watch as b, unref as M, toDisplayString as l, createTextVNode as H } from "vue";
2
2
  import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { u as $, l as AA } from "./index-B5pn4_ea.js";
3
+ import { u as $, l as AA } from "./index-DuqflGdi.js";
4
4
  import { useRouter as EA } from "vue-router";
5
- import { u as IA } from "./login-l3-TQ4Nv.js";
6
- import { g as h } from "./index-CwZRdwOR.js";
7
- import { p as gA } from "./request-Dx56pt7_.js";
8
- import { v as CA } from "./index-Ds_GjEDa.js";
5
+ import { u as IA } from "./login-DnO6sJwP.js";
6
+ import { g as h } from "./index-d4ishmsH.js";
7
+ import { p as gA } from "./request-EMSstqMr.js";
8
+ import { v as CA } from "./index-BmybC1PC.js";
9
9
  import { d as BA } from "./crypto-BRyGpjGR.js";
10
- import "./index-CfwqNQ75.js";
11
- import { E as j } from "./menu-C5E_B2Yb.js";
10
+ import "./index-lndc-1oJ.js";
11
+ import { E as j } from "./menu-C1zU-rc-.js";
12
12
  const QA = {}, iA = { class: "header-wrapper" }, oA = { class: "header-horizontal" }, RA = { class: "header-logo" }, nA = { class: "header-cTitle" }, eA = { class: "header-horizontal" }, cA = { class: "header-eTitle" };
13
13
  function JA(F, r) {
14
14
  return L(), z("div", iA, [
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as se, ref as he, reactive as Re, resolveComponent as it, createElementBlock as ce, openBlock as le, createVNode as Y, withCtx as H, createElementVNode as _, createTextVNode as gt, toDisplayString as Ae, nextTick as Ie, Fragment as Le, renderSlot as Be } from "vue";
2
- import { Q as ke, a4 as Pe, j as pe, m as R, N as V } from "./index-B5pn4_ea.js";
2
+ import { Q as ke, a4 as Pe, j as pe, m as R, N as V } from "./index-DuqflGdi.js";
3
3
  import { i as He } from "./isNil-CjWwlQS3.js";
4
4
  import { m as Wt } from "./typescript-BpuhIBuJ.js";
5
5
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as v, reactive as y, onMounted as P, createElementBlock as k, openBlock as S, createVNode as u } from "vue";
2
- import { a as w } from "./index-D4svf93S.js";
3
- import { s as x } from "./index-CziQLmHE.js";
4
- import { S as B, g as M } from "./index-CfwqNQ75.js";
5
- import { u as N, s as i } from "./menu-C5E_B2Yb.js";
6
- import { u as I } from "./modelComp-DV6uSzBz.js";
2
+ import { a as w } from "./index-Dh422bH4.js";
3
+ import { s as x } from "./index-DlI_21OF.js";
4
+ import { S as B, g as M } from "./index-lndc-1oJ.js";
5
+ import { u as N, s as i } from "./menu-C1zU-rc-.js";
6
+ import { u as I } from "./modelComp-CUZjjNBE.js";
7
7
  import { useRoute as O } from "vue-router";
8
- import { c as R } from "./cloneDeep-CtBjgcpB.js";
8
+ import { c as R } from "./cloneDeep-DMsBqhn5.js";
9
9
  import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const E = { class: "role-wrapper" }, T = /* @__PURE__ */ v({
11
11
  __name: "index",
@@ -1,4 +1,4 @@
1
- import { s as a } from "./request-Dx56pt7_.js";
1
+ import { s as a } from "./request-EMSstqMr.js";
2
2
  function o(t) {
3
3
  return a({
4
4
  url: "/api/insofData/add",
@@ -1,12 +1,12 @@
1
1
  import { computed as y, getCurrentInstance as et, inject as pe, unref as c, ref as A, onMounted as le, watch as G, toRef as je, onUnmounted as no, shallowRef as Ke, nextTick as D, defineComponent as Q, useAttrs as oo, useSlots as yn, createElementBlock as F, openBlock as E, normalizeStyle as qe, normalizeClass as w, createCommentVNode as I, Fragment as Ue, createElementVNode as P, renderSlot as W, createBlock as M, withCtx as R, resolveDynamicComponent as Y, mergeProps as ht, withModifiers as Ie, createVNode as ae, toDisplayString as Z, onBeforeUnmount as Re, provide as En, Text as ao, reactive as It, h as so, watchEffect as ro, isRef as io, onScopeDispose as lo, resolveComponent as Te, Transition as uo, withDirectives as it, withKeys as Pe, createTextVNode as lt, vShow as ut, markRaw as gt, toRefs as co, isVNode as Sn, render as wn } from "vue";
2
- import { g as Cn, c as fo, u as vo, d as po } from "./index-CwZRdwOR.js";
3
- import { E as Me, s as Tn, u as ho } from "./menu-C5E_B2Yb.js";
4
- import { a as go } from "./index-2SPwxf_d.js";
2
+ import { g as Cn, c as fo, u as vo, d as po } from "./index-d4ishmsH.js";
3
+ import { E as Me, s as Tn, u as ho } from "./menu-C1zU-rc-.js";
4
+ import { a as go } from "./index-CFL6MQle.js";
5
5
  import { d as kn, i as mo, e as Ut } from "./crypto-BRyGpjGR.js";
6
- import { u as bo } from "./login-l3-TQ4Nv.js";
7
- import { S as Yt, i as In, c as Mt, t as Mn, d as Wt, f as yo, g as ie, h as Gt, j as tt, k as fe, m as Ee, n as Xe, o as An, p as ve, q as Eo, s as So, v as wo, w as Co, x as ke, y as xe, z as Be, _ as Le, A as he, V as To, B as ko, C as Io, D as Mo, F as se, N as Ye, G as Ao, H as Je, I as xn, J as At, K as xo, L as mt, O as Bo, P as jt, Q as No, R as qt, T as Ro, U as Lo, W as Oo, X as Fo, Y as Po, Z as Ho, $ as Xt, a0 as Jt, a1 as $o } from "./index-B5pn4_ea.js";
6
+ import { u as bo } from "./login-DnO6sJwP.js";
7
+ import { S as Yt, i as In, c as Mt, t as Mn, d as Wt, f as yo, g as ie, h as Gt, j as tt, k as fe, m as Ee, n as Xe, o as An, p as ve, q as Eo, s as So, v as wo, w as Co, x as ke, y as xe, z as Be, _ as Le, A as he, V as To, B as ko, C as Io, D as Mo, F as se, N as Ye, G as Ao, H as Je, I as xn, J as At, K as xo, L as mt, O as Bo, P as jt, Q as No, R as qt, T as Ro, U as Lo, W as Oo, X as Fo, Y as Po, Z as Ho, $ as Xt, a0 as Jt, a1 as $o } from "./index-DuqflGdi.js";
8
8
  import { m as zo } from "./typescript-BpuhIBuJ.js";
9
- import { d as Zt, e as Bn, f as _o, h as Do, j as Nn, k as Vo, c as Ko } from "./cloneDeep-CtBjgcpB.js";
9
+ import { d as Zt, e as Bn, f as _o, h as Do, j as Nn, k as Vo, c as Ko } from "./cloneDeep-DMsBqhn5.js";
10
10
  import { i as Rn } from "./isNil-CjWwlQS3.js";
11
11
  function Uo(e) {
12
12
  return e;
@@ -1,12 +1,12 @@
1
1
  import { ref as f, defineComponent as i, reactive as D, onMounted as h, createElementBlock as b, openBlock as C, createVNode as d } from "vue";
2
- import { a as _ } from "./index-D4svf93S.js";
3
- import { s as k } from "./index-CziQLmHE.js";
4
- import { g as v } from "./index-CwZRdwOR.js";
5
- import { s as w, h as I } from "./index-CfwqNQ75.js";
2
+ import { a as _ } from "./index-Dh422bH4.js";
3
+ import { s as k } from "./index-DlI_21OF.js";
4
+ import { g as v } from "./index-d4ishmsH.js";
5
+ import { s as w, h as I } from "./index-lndc-1oJ.js";
6
6
  import { useRoute as x } from "vue-router";
7
- import { u as A } from "./modelComp-DV6uSzBz.js";
8
- import { s as g, u as S } from "./menu-C5E_B2Yb.js";
9
- import { c as B } from "./cloneDeep-CtBjgcpB.js";
7
+ import { u as A } from "./modelComp-CUZjjNBE.js";
8
+ import { s as g, u as S } from "./menu-C1zU-rc-.js";
9
+ import { c as B } from "./cloneDeep-DMsBqhn5.js";
10
10
  import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const M = f([
12
12
  {
@@ -1 +1 @@
1
- "use strict";const e=require("./request-DYjZLCB4.cjs");function a(t){return e.service({url:"/api/insofData/add",method:"post",data:t})}function i(t){return e.service({url:"/api/insofData/get",method:"post",data:t})}function n(t){return e.service({url:"/api/insofData/update",method:"post",data:t})}function o(t){return e.service({url:"/api/insofData/delete",method:"post",data:t})}exports.createInsofDataApi=a;exports.deleteInsofDataApi=o;exports.getInsofDataApi=i;exports.updateInsofDataApi=n;
1
+ "use strict";const e=require("./request-DRcIFNRO.cjs");function a(t){return e.service({url:"/api/insofData/add",method:"post",data:t})}function i(t){return e.service({url:"/api/insofData/get",method:"post",data:t})}function n(t){return e.service({url:"/api/insofData/update",method:"post",data:t})}function o(t){return e.service({url:"/api/insofData/delete",method:"post",data:t})}exports.createInsofDataApi=a;exports.deleteInsofDataApi=o;exports.getInsofDataApi=i;exports.updateInsofDataApi=n;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, onMounted as V, resolveComponent as l, createElementBlock as d, openBlock as o, Fragment as _, renderList as m, createBlock as r, createCommentVNode as I, withCtx as s, createVNode as b, createSlots as g, renderSlot as u, mergeProps as O, computed as S } from "vue";
2
- import { u as q, s as E } from "./menu-C5E_B2Yb.js";
2
+ import { u as q, s as E } from "./menu-C1zU-rc-.js";
3
3
  import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const R = /* @__PURE__ */ w({
5
5
  __name: "menuItem",