ss-component-new 1.1.210 → 1.1.211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-nk5VwQg0.js → array-5QxNXcTQ.js} +8 -8
- package/dist/{array-BURQk_eL.cjs → array-Rm84oXmE.cjs} +2 -2
- package/dist/{cloneDeep-CKM-tytV.cjs → cloneDeep-BvDRsxdz.cjs} +1 -1
- package/dist/{cloneDeep-BBMmhdSi.js → cloneDeep-DwX3emA_.js} +1 -1
- package/dist/{index-EaXw8YlS.cjs → index-B-C7RC-2.cjs} +1 -1
- package/dist/{index-B2EgM_RO.cjs → index-BD-HSe0o.cjs} +1 -1
- package/dist/{index-CwgPtl0o.cjs → index-BDjk1unE.cjs} +1 -1
- package/dist/{index-CCktrzDY.cjs → index-BELu8hOU.cjs} +1 -1
- package/dist/{index-FE-eTNRl.cjs → index-BG9Fgs9M.cjs} +1 -1
- package/dist/{index-kF67a0No.cjs → index-BQ1SDlen.cjs} +1 -1
- package/dist/{index-DN8qqqbZ.cjs → index-BQGuPIy3.cjs} +1 -1
- package/dist/{index-AYhR_AlT.js → index-BUWGBMF0.js} +5 -5
- package/dist/{index-ylpyigKq.cjs → index-BjFOAFCD.cjs} +1 -1
- package/dist/{index-DMWVcjZj.js → index-BlNV_ehx.js} +1 -1
- package/dist/{index-C1VNp7cN.cjs → index-BpJD4V4R.cjs} +1 -1
- package/dist/{index-CnK79Acw.js → index-Bq2YRqpX.js} +5 -5
- package/dist/{index-BiDtKnEb.js → index-C8DyQfqg.js} +1 -1
- package/dist/{index-CEO0vcuz.js → index-C8U0rSQH.js} +4 -4
- package/dist/{index-Dg7RzGPc.cjs → index-CF_eppSK.cjs} +1 -1
- package/dist/{index-BsVVRJ44.cjs → index-CMPOgoKS.cjs} +1 -1
- package/dist/{index-IK11lWlP.js → index-CSfWWl_d.js} +1 -1
- package/dist/{index-DOmpBPZH.cjs → index-CoUGwpcR.cjs} +1 -1
- package/dist/{index-BmTdK13d.cjs → index-CskUTt3G.cjs} +1 -1
- package/dist/{index-CthCEMov.js → index-CzPK07L1.js} +6 -6
- package/dist/{index-Dggw9p1o.js → index-D29IXeH6.js} +11 -11
- package/dist/{index-nosFlu5o.cjs → index-D5rY52ZQ.cjs} +1 -1
- package/dist/{index-WW-g718c.cjs → index-D9WYDFxi.cjs} +1 -1
- package/dist/{index-T32fv4xY.cjs → index-DDM0FfRt.cjs} +1 -1
- package/dist/{index-H9TFA0k3.js → index-DGN5uaie.js} +5 -5
- package/dist/{index-C2E5EoQA.js → index-DOGwXewk.js} +6 -6
- package/dist/{index-F1hnYyXv.cjs → index-DWKl_DgK.cjs} +1 -1
- package/dist/{index-DE-SJK_a.cjs → index-DaPGjXvK.cjs} +1 -1
- package/dist/{index-B68dDhJk.js → index-Dacf_ZIy.js} +1 -1
- package/dist/{index-BUAKVbTb.js → index-DgRo67K-.js} +3 -3
- package/dist/{index-B3obqldU.cjs → index-DgesSQng.cjs} +1 -1
- package/dist/{index-DUOxOiWJ.js → index-DjuVEoVE.js} +7 -7
- package/dist/{index-BXYWBodT.js → index-DkG1Ebki.js} +3 -3
- package/dist/{index-C1XdRILw.cjs → index-DoP2CURq.cjs} +1 -1
- package/dist/{index-wxOSeHXU.js → index-DrutW1iS.js} +6 -6
- package/dist/{index-PCcoPPQx.js → index-DuDfLnba.js} +6 -6
- package/dist/{index-NUwajgrh.cjs → index-DuWoI-c0.cjs} +1 -1
- package/dist/{index-BXJLRQIb.js → index-Dv2vGaNh.js} +3 -3
- package/dist/{index-Xi9Wdgdw.js → index-Dw6RkrBI.js} +5 -5
- package/dist/{index-DhKWFXCc.js → index-Lay1yAXH.js} +1 -1
- package/dist/{index-D0IP99NG.cjs → index-MBIMM_ad.cjs} +1 -1
- package/dist/{index-ClocteNe.js → index-TV8ZUYRm.js} +7 -7
- package/dist/{index-C8amTbWE.cjs → index-cTGqRce7.cjs} +1 -1
- package/dist/{index-LaphiLZe.js → index-iWFyX6xE.js} +8 -8
- package/dist/{index-BnNkBs1F.js → index-mU0TXBjP.js} +5 -5
- package/dist/{index-gtzHVnNO.js → index-witiDqI7.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CNLH1CiF.js → index.vue_vue_type_script_setup_true_lang-BSOQxwkF.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DX6aS_xn.cjs → index.vue_vue_type_script_setup_true_lang-BVU3XR-Q.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dmk-QJgr.js → index.vue_vue_type_script_setup_true_lang-DbDg57sK.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-rvwTDFq8.cjs → index.vue_vue_type_script_setup_true_lang-xMjx7NXU.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_997b1786_lang-u799cwhY.js → index.vue_vue_type_style_index_0_scoped_997b1786_lang-BMbtiXnw.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_997b1786_lang-CiqedHaV.cjs → index.vue_vue_type_style_index_0_scoped_997b1786_lang-C2WaZ3if.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_fb273504_lang-B9VsfLBA.js → index.vue_vue_type_style_index_0_scoped_fb273504_lang-BhsOIFke.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_fb273504_lang-DsD8y1xS.cjs → index.vue_vue_type_style_index_0_scoped_fb273504_lang-DTN2rUHv.cjs} +1 -1
- package/dist/{login-fCjzVJLr.cjs → login-8A7jExoo.cjs} +1 -1
- package/dist/{login-CIfQQlIu.js → login-BfyKbJ4u.js} +2 -2
- package/dist/{main-CeoacaBB.cjs → main-BoJ8Vr74.cjs} +1 -1
- package/dist/{main-BHl-FQ9n.js → main-CF-rK9HL.js} +5 -5
- package/dist/{menu-Bk68Sehy.cjs → menu-BG4Pdw44.cjs} +1 -1
- package/dist/{menu-CzCBm0tj.js → menu-BoJy4Bts.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as p, onMounted as u, createElementBlock as i, openBlock as d, createVNode as s } from "vue";
|
|
2
|
-
import { s as f } from "./index-
|
|
3
|
-
import { s as _ } from "./index-
|
|
4
|
-
import { S as h } from "./index-
|
|
5
|
-
import { u as g } from "./index-
|
|
6
|
-
import { s as r, u as C } from "./menu-
|
|
2
|
+
import { s as f } from "./index-BUWGBMF0.js";
|
|
3
|
+
import { s as _ } from "./index-DrutW1iS.js";
|
|
4
|
+
import { S as h } from "./index-DkG1Ebki.js";
|
|
5
|
+
import { u as g } from "./index-BlNV_ehx.js";
|
|
6
|
+
import { s as r, u as C } from "./menu-BoJy4Bts.js";
|
|
7
7
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const v = { class: "role-wrapper" }, x = /* @__PURE__ */ l({
|
|
9
9
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as r, computed as w, reactive as T, nextTick as K, watch as v } from "vue";
|
|
2
|
-
import { s as B, E as f, u as O } from "./menu-
|
|
3
|
-
import { g as _, c as j, a as z, d as H, u as L } from "./index-
|
|
4
|
-
import { u as Q } from "./login-
|
|
5
|
-
import { c as D } from "./cloneDeep-
|
|
2
|
+
import { s as B, E as f, u as O } from "./menu-BoJy4Bts.js";
|
|
3
|
+
import { g as _, c as j, a as z, d as H, u as L } from "./index-BlNV_ehx.js";
|
|
4
|
+
import { u as Q } from "./login-BfyKbJ4u.js";
|
|
5
|
+
import { c as D } from "./cloneDeep-DwX3emA_.js";
|
|
6
6
|
const U = O(), { activeMenuPath: b } = B(U), I = Q(), { structureData: V } = B(I), $ = L(), { itemData: q } = B($), G = r([
|
|
7
7
|
{
|
|
8
8
|
label: "角色名称",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),u=require("./menu-
|
|
1
|
+
"use strict";const o=require("vue"),u=require("./menu-BG4Pdw44.cjs"),p=require("./index-CMPOgoKS.cjs"),N=require("./login-8A7jExoo.cjs"),v=require("./cloneDeep-BvDRsxdz.cjs"),P=u.useMenuState(),{activeMenuPath:k}=u.storeToRefs(P),S=N.useLoginState(),{structureData:F}=u.storeToRefs(S),q=p.useModelComp(),{itemData:z}=u.storeToRefs(q),O=o.ref([{label:"角色名称",value:"",name:"roleName"}]),_=o.ref([{label:"查询"},{label:"重置"}]),w=o.reactive({isFilter:!1,filterForm:{}}),j=o.ref(!1),H=t=>{console.log("handleQueryChange",t),w.isFilter=!0,w.filterForm=t},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:[]}]),L=o.computed(()=>f.value),Q=t=>{C(t.singleContent,t.buttonName)},B=o.ref({}),D=o.ref(),d=async(t,e,l)=>{var a,s;try{const n=await t(e);return((a=n==null?void 0:n.data)==null?void 0:a.code)===200?(l!=="查询"&&await S.setLogRecordAsync({type:l,data:e},k.value),n.data.result||((s=n==null?void 0:n.data)==null?void 0:s.code)===200):null}catch(n){u.ElMessage.error(n)}},T=(t,e)=>{e==null||e.forEach(l=>{t==null||t.forEach(a=>{var s;a.path==l.path&&(a.checkedButtons=l.checkedButtons),a.children&&((s=a.children)==null?void 0:s.length)>0&&T(a.children,e)})})},m=t=>t==null?void 0:t.map(e=>{var a;const l={...e,checkedButtons:[]};return l.children&&((a=l.children)==null?void 0:a.length)>0&&(l.children=m(l.children)),l}),U=async(t,e)=>{switch(B.value=v.cloneDeep(e),t){case"授权":console.log("角色的权限",e.roleAuthority),console.log("角色的tree",g.value),console.log("角色的pageData",f.value),h.title=`【${e.roleName}】授权`,h.show=!0,await o.nextTick(),e.roleAuthority&&Array.isArray(e.roleAuthority)&&T(g.value,e.roleAuthority);break}},V=()=>{h.show=!1},y=o.ref(),$=async t=>{const e=await d(p.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:t}},"查询"),l=e==null?void 0:e.map(a=>{var s;return{id:a.id,tableData:(s=a==null?void 0:a.value)==null?void 0:s.tableData}});return l==null?void 0:l.map(a=>{var s;if(Array.isArray(a==null?void 0:a.tableData)){let n={id:a.id};return(s=a==null?void 0:a.tableData)==null||s.forEach((r,b)=>{n[`a${b}`]=r}),n}else return{...a.tableData,id:a.id}})},C=(t,e)=>{if(e==="新增"){const l=v.cloneDeep(t);delete l.id,d(p.createInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:k.value},value:{tableData:l}},e).then(a=>{y.value={...t,newId:a},e&&a&&u.ElMessage.success(e+"成功")})}else e==="编辑"?d(p.updateInsofDataApi,{id:t.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:k.value},value:{tableData:t}},e).then(l=>{e&&l&&u.ElMessage.success(e+"成功"),h.show=!1}):e==="删除"&&d(p.deleteInsofDataApi,{id:t.id},e).then(l=>{e&&l&&u.ElMessage.success(e+"成功")})},K=t=>{let e=[];return t==null||t.forEach(l=>{var a;if(l.checkedButtons&&((a=l.checkedButtons)==null?void 0:a.length)>0){const s={path:l.path,checkedButtons:l.checkedButtons};e=e.concat(s)}l.children&&(e=e.concat(K(l.children)))}),e},G=()=>{y.value={...B.value,roleAuthority:K(g.value)},o.nextTick(()=>{console.log("clickSubmitAuthority",y.value,f.value),C(y.value,"编辑")})},h=o.reactive({show:!1,title:"角色授权",width:"35%",draggable:!0}),J=({isPenultimate:t},e)=>{var l,a;return console.log("isPenultimate",t,e),((a=(l=e==null?void 0:e.data)==null?void 0:l.renderButtons)==null?void 0:a.length)>0?"is-penultimate":""},g=o.ref([]),W=o.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),X=(t,e)=>{var l;t.checkedButtons=e?(l=t.renderButtons)==null?void 0:l.map(a=>a.path):[],console.log("handleNodeCheckChange",t,e)},i=o.ref([]),Y=(t,e)=>{var l,a,s;e.checkedButtons=t,((l=e.checkedButtons)==null?void 0:l.length)===((a=e.renderButtons)==null?void 0:a.length)?i.value.push(e.path):(t==null?void 0:t.length)===0&&(i.value=(s=i.value)==null?void 0:s.filter(n=>n!==e.path))};o.watch(()=>i.value.length,()=>{var e,l;const t=(e=D.value)==null?void 0:e.getCheckedKeys();console.log(112,i.value,t),(l=D.value)==null||l.setCheckedKeys([...i.value])});o.watch(()=>h.show,t=>{t||(g.value=m(g.value))});const R=o.computed(()=>{var l;const t=(l=v.cloneDeep(F.value))==null?void 0:l.filter(a=>{var s,n;return((n=(s=a==null?void 0:a.key)==null?void 0:s.pageKey)==null?void 0:n.toUpperCase())!=="MENU"});return[...t==null?void 0:t.map(a=>{var n,r,b,A;let s=(b=(r=(n=a==null?void 0:a.value)==null?void 0:n.pageData)==null?void 0:r.compData)==null?void 0:b.filter(c=>(c==null?void 0:c.key)==="extraButton"||(c==null?void 0:c.key)==="rowButton");return s=Array.from(new Set(s==null?void 0:s.flatMap(c=>c.contents.map(E=>E.label)))),{path:(A=a==null?void 0:a.key)==null?void 0:A.pageKey,buttons:s}}),...I.value]}),I=o.ref([]),M=(t,e)=>{if(Array.isArray(t))return t==null?void 0:t.map(l=>{var s,n;const a=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?(s=a==null?void 0:a.buttons)==null?void 0:s.map(r=>({title:r,path:l.path+"/"+r})):[],checkedButtons:[],children:M(l.children,R.value)}:{...l,renderButtons:l.carryData?(n=a==null?void 0:a.buttons)==null?void 0:n.map(r=>({title:r,path:l.path+"/"+r})):[],checkedButtons:[]}})},x={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:f.value,name:""}]}]};o.watch(()=>z.value,t=>{var e;t&&(t==null?void 0:t.length)>0&&(f.value=(e=t==null?void 0:t[0])==null?void 0:e.compData)});const Z=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:M,authorizeDialog:h,buttonValue:_,changedRow:y,clickRow:B,clickRowButton:U,clickSubmitAuthority:G,closeAuthorizeDialog:V,customNodeClass:J,getPageDataAsync:$,handleItemDataChange:Q,handleNodeBtnChange:Y,handleNodeCheckChange:X,handleQueryChange:H,handleSubmitAsync:d,isPageDataExist:j,menuData:g,menusButtons:W,pageData:f,pageDataFiltered:L,queryFormData:O,structureButtons:R,submitTableAsyncByVerify:C,tempRolePageData:x,tempSysMenus:I,treeRef:D},Symbol.toStringTag,{value:"Module"}));exports.State=Z;exports.authorizeDialog=h;exports.tempRolePageData=x;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const F=require("./menu-Bk68Sehy.cjs"),dt=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,pt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ht=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function mt(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){yt(e);return}return t}function yt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function wt(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!ht.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(dt.test(e)||pt.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,mt)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function gt(e,t){if(e==null)return;let r=e;for(let n=0;n<t.length;n++){if(r==null||r[t[n]]==null)return;r=r[t[n]]}return r}function ye(e,t,r){if(r.length===0)return t;const n=r[0];return r.length>1&&(t=ye(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,n)?Number.isInteger(Number(r[1]))?[]:{}:e[n],t,Array.prototype.slice.call(r,1))),Number.isInteger(Number(n))&&Array.isArray(e)?e.slice()[n]:Object.assign({},e,{[n]:t})}function Be(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const r={};for(const n in e)r[n]=e[n];return delete r[t[0]],r}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const r={};for(const n in e)r[n]=e[n];return r}return ye(e,Be(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Ie(e,t){return t.map(r=>r.split(".")).map(r=>[r,gt(e,r)]).filter(r=>r[1]!==void 0).reduce((r,n)=>ye(r,n[1],n[0]),{})}function qe(e,t){return t.map(r=>r.split(".")).reduce((r,n)=>Be(r,n),e)}function Re(e,{storage:t,serializer:r,key:n,debug:s,pick:o,omit:i,beforeHydrate:c,afterHydrate:f},u,l=!0){try{l&&(c==null||c(u));const d=t.getItem(n);if(d){const w=r.deserialize(d),g=o?Ie(w,o):w,p=i?qe(g,i):g;e.$patch(p)}l&&(f==null||f(u))}catch(d){s&&console.error("[pinia-plugin-persistedstate]",d)}}function Se(e,{storage:t,serializer:r,key:n,debug:s,pick:o,omit:i}){try{const c=o?Ie(e,o):e,f=i?qe(c,i):c,u=r.serialize(f);t.setItem(n,u)}catch(c){s&&console.error("[pinia-plugin-persistedstate]",c)}}function Et(e,t,r){const{pinia:n,store:s,options:{persist:o=r}}=e;if(!o)return;if(!(s.$id in n.state.value)){const f=n._s.get(s.$id.replace("__hot:",""));f&&Promise.resolve().then(()=>f.$persist());return}const c=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(t);s.$hydrate=({runHooks:f=!0}={})=>{c.forEach(u=>{Re(s,u,e,f)})},s.$persist=()=>{c.forEach(f=>{Se(s.$state,f)})},c.forEach(f=>{Re(s,f,e),s.$subscribe((u,l)=>Se(l,f),{detached:!0})})}function bt(e={}){return function(t){Et(t,r=>({key:(e.key?e.key:n=>n)(r.key??t.store.$id),debug:r.debug??e.debug??!1,serializer:r.serializer??e.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>wt(n)},storage:r.storage??e.storage??window.localStorage,beforeHydrate:r.beforeHydrate,afterHydrate:r.afterHydrate,pick:r.pick,omit:r.omit}),e.auto??!1)}}var Rt=bt();const je=F.createPinia();je.use(Rt);const St=F.defineStore("modelComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:""}),actions:{setItemData(e){this.itemData=e==null?void 0:e.reduce((t,r)=>(t.some(n=>n.name===r.name)||t.push(r),t),[])},setOriginalData(e){this.originalData=e},setExtraContents(e){this.extraContents=e},setNodeDev(e){this.nodeDev=e}}});function Me(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ot}=Object.prototype,{getPrototypeOf:we}=Object,{iterator:Y,toStringTag:$e}=Symbol,Z=(e=>t=>{const r=Ot.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>Z(t)===e),ee=e=>t=>typeof t===e,{isArray:q}=Array,$=ee("undefined");function At(e){return e!==null&&!$(e)&&e.constructor!==null&&!$(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ze=C("ArrayBuffer");function Tt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ze(e.buffer),t}const xt=ee("string"),T=ee("function"),ve=ee("number"),te=e=>e!==null&&typeof e=="object",Ct=e=>e===!0||e===!1,K=e=>{if(Z(e)!=="object")return!1;const t=we(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!($e in e)&&!(Y in e)},Nt=C("Date"),Pt=C("File"),Dt=C("Blob"),_t=C("FileList"),Ft=e=>te(e)&&T(e.pipe),Ut=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=Z(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},kt=C("URLSearchParams"),[Lt,Bt,It,qt]=["ReadableStream","Request","Response","Headers"].map(C),jt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function z(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),q(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(n=0;n<i;n++)c=o[n],t.call(null,e[c],c,e)}}function He(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Je=e=>!$(e)&&e!==U;function ce(){const{caseless:e}=Je(this)&&this||{},t={},r=(n,s)=>{const o=e&&He(t,s)||s;K(t[o])&&K(n)?t[o]=ce(t[o],n):K(n)?t[o]=ce({},n):q(n)?t[o]=n.slice():t[o]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&z(arguments[n],r);return t}const Mt=(e,t,r,{allOwnKeys:n}={})=>(z(t,(s,o)=>{r&&T(s)?e[o]=Me(s,r):e[o]=s},{allOwnKeys:n}),e),$t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zt=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},vt=(e,t,r,n)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!n||n(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=r!==!1&&we(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ht=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Jt=e=>{if(!e)return null;if(q(e))return e;let t=e.length;if(!ve(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Kt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&we(Uint8Array)),Vt=(e,t)=>{const n=(e&&e[Y]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Wt=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Xt=C("HTMLFormElement"),Gt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Oe=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Qt=C("RegExp"),Ke=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};z(r,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(n[o]=i||s)}),Object.defineProperties(e,n)},Yt=e=>{Ke(e,(t,r)=>{if(T(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(T(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Zt=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return q(e)?n(e):n(String(e).split(t)),r},er=()=>{},tr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rr(e){return!!(e&&T(e.append)&&e[$e]==="FormData"&&e[Y])}const nr=e=>{const t=new Array(10),r=(n,s)=>{if(te(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const o=q(n)?[]:{};return z(n,(i,c)=>{const f=r(i,s+1);!$(f)&&(o[c]=f)}),t[s]=void 0,o}}return n};return r(e,0)},sr=C("AsyncFunction"),or=e=>e&&(te(e)||T(e))&&T(e.then)&&T(e.catch),Ve=((e,t)=>e?setImmediate:t?((r,n)=>(U.addEventListener("message",({source:s,data:o})=>{s===U&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),U.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",T(U.postMessage)),ir=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||Ve,ar=e=>e!=null&&T(e[Y]),a={isArray:q,isArrayBuffer:ze,isBuffer:At,isFormData:Ut,isArrayBufferView:Tt,isString:xt,isNumber:ve,isBoolean:Ct,isObject:te,isPlainObject:K,isReadableStream:Lt,isRequest:Bt,isResponse:It,isHeaders:qt,isUndefined:$,isDate:Nt,isFile:Pt,isBlob:Dt,isRegExp:Qt,isFunction:T,isStream:Ft,isURLSearchParams:kt,isTypedArray:Kt,isFileList:_t,forEach:z,merge:ce,extend:Mt,trim:jt,stripBOM:$t,inherits:zt,toFlatObject:vt,kindOf:Z,kindOfTest:C,endsWith:Ht,toArray:Jt,forEachEntry:Vt,matchAll:Wt,isHTMLForm:Xt,hasOwnProperty:Oe,hasOwnProp:Oe,reduceDescriptors:Ke,freezeMethods:Yt,toObjectSet:Zt,toCamelCase:Gt,noop:er,toFiniteNumber:tr,findKey:He,global:U,isContextDefined:Je,isSpecCompliantForm:rr,toJSONObject:nr,isAsyncFn:sr,isThenable:or,setImmediate:Ve,asap:ir,isIterable:ar};function m(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const We=m.prototype,Xe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Xe[e]={value:e}});Object.defineProperties(m,Xe);Object.defineProperty(We,"isAxiosError",{value:!0});m.from=(e,t,r,n,s,o)=>{const i=Object.create(We);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,r,n,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const cr=null;function ue(e){return a.isPlainObject(e)||a.isArray(e)}function Ge(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ae(e,t,r){return e?e.concat(t).map(function(s,o){return s=Ge(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function ur(e){return a.isArray(e)&&!e.some(ue)}const lr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function re(e,t,r){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=a.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const n=r.metaTokens,s=r.visitor||l,o=r.dots,i=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let b=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=n?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&ur(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(b=a.toArray(p)))return y=Ge(y),b.forEach(function(S,P){!(a.isUndefined(S)||S===null)&&t.append(i===!0?Ae([y],P,o):i===null?y:y+"[]",u(S))}),!1}return ue(p)?!0:(t.append(Ae(h,y,o),u(p)),!1)}const d=[],w=Object.assign(lr,{defaultVisitor:l,convertValue:u,isVisitable:ue});function g(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(b,R){(!(a.isUndefined(b)||b===null)&&s.call(t,b,a.isString(R)?R.trim():R,y,w))===!0&&g(b,y?y.concat(R):[R])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ge(e,t){this._pairs=[],e&&re(e,this,t)}const Qe=ge.prototype;Qe.append=function(t,r){this._pairs.push([t,r])};Qe.toString=function(t){const r=t?function(n){return t.call(this,n,Te)}:Te;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function fr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ye(e,t,r){if(!t)return e;const n=r&&r.encode||fr;a.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let o;if(s?o=s(t,r):o=a.isURLSearchParams(t)?t.toString():new ge(t,r).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class xe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ze={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dr=typeof URLSearchParams<"u"?URLSearchParams:ge,pr=typeof FormData<"u"?FormData:null,hr=typeof Blob<"u"?Blob:null,mr={isBrowser:!0,classes:{URLSearchParams:dr,FormData:pr,Blob:hr},protocols:["http","https","file","blob","url","data"]},Ee=typeof window<"u"&&typeof document<"u",le=typeof navigator=="object"&&navigator||void 0,yr=Ee&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),wr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gr=Ee&&window.location.href||"http://localhost",Er=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ee,hasStandardBrowserEnv:yr,hasStandardBrowserWebWorkerEnv:wr,navigator:le,origin:gr},Symbol.toStringTag,{value:"Module"})),O={...Er,...mr};function br(e,t){return re(e,new O.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,o){return O.isNode&&a.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Rr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sr(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function et(e){function t(r,n,s,o){let i=r[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=r.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],n]:s[i]=n,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(r,n,s[i],o)&&a.isArray(s[i])&&(s[i]=Sr(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const r={};return a.forEachEntry(e,(n,s)=>{t(Rr(n),s,r,0)}),r}return null}function Or(e,t,r){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const v={transitional:Ze,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(et(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return br(t,this.formSerializer).toString();if((c=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return re(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(r.setContentType("application/json",!1),Or(t)):t}],transformResponse:[function(t){const r=this.transitional||v.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||s)){const i=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{v.headers[e]={}});const Ar=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Tr=e=>{const t={};let r,n,s;return e&&e.split(`
|
|
1
|
+
"use strict";const F=require("./menu-BG4Pdw44.cjs"),dt=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,pt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ht=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function mt(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){yt(e);return}return t}function yt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function wt(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!ht.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(dt.test(e)||pt.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,mt)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function gt(e,t){if(e==null)return;let r=e;for(let n=0;n<t.length;n++){if(r==null||r[t[n]]==null)return;r=r[t[n]]}return r}function ye(e,t,r){if(r.length===0)return t;const n=r[0];return r.length>1&&(t=ye(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,n)?Number.isInteger(Number(r[1]))?[]:{}:e[n],t,Array.prototype.slice.call(r,1))),Number.isInteger(Number(n))&&Array.isArray(e)?e.slice()[n]:Object.assign({},e,{[n]:t})}function Be(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const r={};for(const n in e)r[n]=e[n];return delete r[t[0]],r}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const r={};for(const n in e)r[n]=e[n];return r}return ye(e,Be(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Ie(e,t){return t.map(r=>r.split(".")).map(r=>[r,gt(e,r)]).filter(r=>r[1]!==void 0).reduce((r,n)=>ye(r,n[1],n[0]),{})}function qe(e,t){return t.map(r=>r.split(".")).reduce((r,n)=>Be(r,n),e)}function Re(e,{storage:t,serializer:r,key:n,debug:s,pick:o,omit:i,beforeHydrate:c,afterHydrate:f},u,l=!0){try{l&&(c==null||c(u));const d=t.getItem(n);if(d){const w=r.deserialize(d),g=o?Ie(w,o):w,p=i?qe(g,i):g;e.$patch(p)}l&&(f==null||f(u))}catch(d){s&&console.error("[pinia-plugin-persistedstate]",d)}}function Se(e,{storage:t,serializer:r,key:n,debug:s,pick:o,omit:i}){try{const c=o?Ie(e,o):e,f=i?qe(c,i):c,u=r.serialize(f);t.setItem(n,u)}catch(c){s&&console.error("[pinia-plugin-persistedstate]",c)}}function Et(e,t,r){const{pinia:n,store:s,options:{persist:o=r}}=e;if(!o)return;if(!(s.$id in n.state.value)){const f=n._s.get(s.$id.replace("__hot:",""));f&&Promise.resolve().then(()=>f.$persist());return}const c=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(t);s.$hydrate=({runHooks:f=!0}={})=>{c.forEach(u=>{Re(s,u,e,f)})},s.$persist=()=>{c.forEach(f=>{Se(s.$state,f)})},c.forEach(f=>{Re(s,f,e),s.$subscribe((u,l)=>Se(l,f),{detached:!0})})}function bt(e={}){return function(t){Et(t,r=>({key:(e.key?e.key:n=>n)(r.key??t.store.$id),debug:r.debug??e.debug??!1,serializer:r.serializer??e.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>wt(n)},storage:r.storage??e.storage??window.localStorage,beforeHydrate:r.beforeHydrate,afterHydrate:r.afterHydrate,pick:r.pick,omit:r.omit}),e.auto??!1)}}var Rt=bt();const je=F.createPinia();je.use(Rt);const St=F.defineStore("modelComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:""}),actions:{setItemData(e){this.itemData=e==null?void 0:e.reduce((t,r)=>(t.some(n=>n.name===r.name)||t.push(r),t),[])},setOriginalData(e){this.originalData=e},setExtraContents(e){this.extraContents=e},setNodeDev(e){this.nodeDev=e}}});function Me(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ot}=Object.prototype,{getPrototypeOf:we}=Object,{iterator:Y,toStringTag:$e}=Symbol,Z=(e=>t=>{const r=Ot.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>Z(t)===e),ee=e=>t=>typeof t===e,{isArray:q}=Array,$=ee("undefined");function At(e){return e!==null&&!$(e)&&e.constructor!==null&&!$(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ze=C("ArrayBuffer");function Tt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ze(e.buffer),t}const xt=ee("string"),T=ee("function"),ve=ee("number"),te=e=>e!==null&&typeof e=="object",Ct=e=>e===!0||e===!1,K=e=>{if(Z(e)!=="object")return!1;const t=we(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!($e in e)&&!(Y in e)},Nt=C("Date"),Pt=C("File"),Dt=C("Blob"),_t=C("FileList"),Ft=e=>te(e)&&T(e.pipe),Ut=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=Z(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},kt=C("URLSearchParams"),[Lt,Bt,It,qt]=["ReadableStream","Request","Response","Headers"].map(C),jt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function z(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),q(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(n=0;n<i;n++)c=o[n],t.call(null,e[c],c,e)}}function He(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Je=e=>!$(e)&&e!==U;function ce(){const{caseless:e}=Je(this)&&this||{},t={},r=(n,s)=>{const o=e&&He(t,s)||s;K(t[o])&&K(n)?t[o]=ce(t[o],n):K(n)?t[o]=ce({},n):q(n)?t[o]=n.slice():t[o]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&z(arguments[n],r);return t}const Mt=(e,t,r,{allOwnKeys:n}={})=>(z(t,(s,o)=>{r&&T(s)?e[o]=Me(s,r):e[o]=s},{allOwnKeys:n}),e),$t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zt=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},vt=(e,t,r,n)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!n||n(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=r!==!1&&we(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ht=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Jt=e=>{if(!e)return null;if(q(e))return e;let t=e.length;if(!ve(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Kt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&we(Uint8Array)),Vt=(e,t)=>{const n=(e&&e[Y]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Wt=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Xt=C("HTMLFormElement"),Gt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Oe=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Qt=C("RegExp"),Ke=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};z(r,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(n[o]=i||s)}),Object.defineProperties(e,n)},Yt=e=>{Ke(e,(t,r)=>{if(T(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(T(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Zt=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return q(e)?n(e):n(String(e).split(t)),r},er=()=>{},tr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rr(e){return!!(e&&T(e.append)&&e[$e]==="FormData"&&e[Y])}const nr=e=>{const t=new Array(10),r=(n,s)=>{if(te(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const o=q(n)?[]:{};return z(n,(i,c)=>{const f=r(i,s+1);!$(f)&&(o[c]=f)}),t[s]=void 0,o}}return n};return r(e,0)},sr=C("AsyncFunction"),or=e=>e&&(te(e)||T(e))&&T(e.then)&&T(e.catch),Ve=((e,t)=>e?setImmediate:t?((r,n)=>(U.addEventListener("message",({source:s,data:o})=>{s===U&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),U.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",T(U.postMessage)),ir=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||Ve,ar=e=>e!=null&&T(e[Y]),a={isArray:q,isArrayBuffer:ze,isBuffer:At,isFormData:Ut,isArrayBufferView:Tt,isString:xt,isNumber:ve,isBoolean:Ct,isObject:te,isPlainObject:K,isReadableStream:Lt,isRequest:Bt,isResponse:It,isHeaders:qt,isUndefined:$,isDate:Nt,isFile:Pt,isBlob:Dt,isRegExp:Qt,isFunction:T,isStream:Ft,isURLSearchParams:kt,isTypedArray:Kt,isFileList:_t,forEach:z,merge:ce,extend:Mt,trim:jt,stripBOM:$t,inherits:zt,toFlatObject:vt,kindOf:Z,kindOfTest:C,endsWith:Ht,toArray:Jt,forEachEntry:Vt,matchAll:Wt,isHTMLForm:Xt,hasOwnProperty:Oe,hasOwnProp:Oe,reduceDescriptors:Ke,freezeMethods:Yt,toObjectSet:Zt,toCamelCase:Gt,noop:er,toFiniteNumber:tr,findKey:He,global:U,isContextDefined:Je,isSpecCompliantForm:rr,toJSONObject:nr,isAsyncFn:sr,isThenable:or,setImmediate:Ve,asap:ir,isIterable:ar};function m(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const We=m.prototype,Xe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Xe[e]={value:e}});Object.defineProperties(m,Xe);Object.defineProperty(We,"isAxiosError",{value:!0});m.from=(e,t,r,n,s,o)=>{const i=Object.create(We);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,r,n,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const cr=null;function ue(e){return a.isPlainObject(e)||a.isArray(e)}function Ge(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ae(e,t,r){return e?e.concat(t).map(function(s,o){return s=Ge(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function ur(e){return a.isArray(e)&&!e.some(ue)}const lr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function re(e,t,r){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=a.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const n=r.metaTokens,s=r.visitor||l,o=r.dots,i=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let b=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=n?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&ur(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(b=a.toArray(p)))return y=Ge(y),b.forEach(function(S,P){!(a.isUndefined(S)||S===null)&&t.append(i===!0?Ae([y],P,o):i===null?y:y+"[]",u(S))}),!1}return ue(p)?!0:(t.append(Ae(h,y,o),u(p)),!1)}const d=[],w=Object.assign(lr,{defaultVisitor:l,convertValue:u,isVisitable:ue});function g(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(b,R){(!(a.isUndefined(b)||b===null)&&s.call(t,b,a.isString(R)?R.trim():R,y,w))===!0&&g(b,y?y.concat(R):[R])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ge(e,t){this._pairs=[],e&&re(e,this,t)}const Qe=ge.prototype;Qe.append=function(t,r){this._pairs.push([t,r])};Qe.toString=function(t){const r=t?function(n){return t.call(this,n,Te)}:Te;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function fr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ye(e,t,r){if(!t)return e;const n=r&&r.encode||fr;a.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let o;if(s?o=s(t,r):o=a.isURLSearchParams(t)?t.toString():new ge(t,r).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class xe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ze={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dr=typeof URLSearchParams<"u"?URLSearchParams:ge,pr=typeof FormData<"u"?FormData:null,hr=typeof Blob<"u"?Blob:null,mr={isBrowser:!0,classes:{URLSearchParams:dr,FormData:pr,Blob:hr},protocols:["http","https","file","blob","url","data"]},Ee=typeof window<"u"&&typeof document<"u",le=typeof navigator=="object"&&navigator||void 0,yr=Ee&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),wr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gr=Ee&&window.location.href||"http://localhost",Er=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ee,hasStandardBrowserEnv:yr,hasStandardBrowserWebWorkerEnv:wr,navigator:le,origin:gr},Symbol.toStringTag,{value:"Module"})),O={...Er,...mr};function br(e,t){return re(e,new O.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,o){return O.isNode&&a.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Rr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sr(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function et(e){function t(r,n,s,o){let i=r[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=r.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],n]:s[i]=n,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(r,n,s[i],o)&&a.isArray(s[i])&&(s[i]=Sr(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const r={};return a.forEachEntry(e,(n,s)=>{t(Rr(n),s,r,0)}),r}return null}function Or(e,t,r){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const v={transitional:Ze,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(et(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return br(t,this.formSerializer).toString();if((c=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return re(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(r.setContentType("application/json",!1),Or(t)):t}],transformResponse:[function(t){const r=this.transitional||v.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||s)){const i=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{v.headers[e]={}});const Ar=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Tr=e=>{const t={};let r,n,s;return e&&e.split(`
|
|
2
2
|
`).forEach(function(i){s=i.indexOf(":"),r=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!r||t[r]&&Ar[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ce=Symbol("internals");function M(e){return e&&String(e).trim().toLowerCase()}function V(e){return e===!1||e==null?e:a.isArray(e)?e.map(V):String(e)}function xr(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Cr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oe(e,t,r,n,s){if(a.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!a.isString(t)){if(a.isString(n))return t.indexOf(n)!==-1;if(a.isRegExp(n))return n.test(t)}}function Nr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Pr(e,t){const r=a.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,o,i){return this[n].call(this,t,s,o,i)},configurable:!0})})}let x=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function o(c,f,u){const l=M(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=V(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(a.isString(t)&&(t=t.trim())&&!Cr(t))i(Tr(t),r);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,u;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(f=c[u])?a.isArray(f)?[...f,l[1]]:[f,l[1]]:l[1]}i(c,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=M(t),t){const n=a.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return xr(s);if(a.isFunction(r))return r.call(this,s,n);if(a.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=M(t),t){const n=a.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||oe(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function o(i){if(i=M(i),i){const c=a.findKey(n,i);c&&(!r||oe(n,n[c],c,r))&&(delete n[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const o=r[n];(!t||oe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const r=this,n={};return a.forEach(this,(s,o)=>{const i=a.findKey(n,o);if(i){r[i]=V(s),delete r[o];return}const c=t?Nr(o):String(o).trim();c!==o&&delete r[o],r[c]=V(s),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return a.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&a.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
3
3
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[Ce]=this[Ce]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=M(i);n[c]||(Pr(s,i),n[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(x.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});a.freezeMethods(x);function ie(e,t){const r=this||v,n=t||r,s=x.from(n.headers);let o=n.data;return a.forEach(e,function(c){o=c.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function tt(e){return!!(e&&e.__CANCEL__)}function j(e,t,r){m.call(this,e??"canceled",m.ERR_CANCELED,t,r),this.name="CanceledError"}a.inherits(j,m,{__CANCEL__:!0});function rt(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new m("Request failed with status code "+r.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Dr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _r(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=n[o];i||(i=u),r[s]=f,n[s]=u;let d=o,w=0;for(;d!==s;)w+=r[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const g=l&&u-l;return g?Math.round(w*1e3/g):void 0}}function Fr(e,t){let r=0,n=1e3/t,s,o;const i=(u,l=Date.now())=>{r=l,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-r;d>=n?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},n-d)))},()=>s&&i(s)]}const X=(e,t,r=3)=>{let n=0;const s=_r(50,250);return Fr(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-n,u=s(f),l=i<=c;n=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},r)},Ne=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Pe=e=>(...t)=>a.asap(()=>e(...t)),Ur=O.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,O.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,kr=O.hasStandardBrowserEnv?{write(e,t,r,n,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),a.isString(n)&&i.push("path="+n),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Lr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Br(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function nt(e,t,r){let n=!Lr(t);return e&&(n||r==!1)?Br(e,t):t}const De=e=>e instanceof x?{...e}:e;function B(e,t){t=t||{};const r={};function n(u,l,d,w){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:w},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d,w){if(a.isUndefined(l)){if(!a.isUndefined(u))return n(void 0,u,d,w)}else return n(u,l,d,w)}function o(u,l){if(!a.isUndefined(l))return n(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function c(u,l,d){if(d in t)return n(u,l);if(d in e)return n(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,l,d)=>s(De(u),De(l),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=f[l]||s,w=d(e[l],t[l],l);a.isUndefined(w)&&d!==c||(r[l]=w)}),r}const st=e=>{const t=B({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=x.from(i),t.url=Ye(nt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(r)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(O.hasStandardBrowserEnv&&(n&&a.isFunction(n)&&(n=n(t)),n||n!==!1&&Ur(t.url))){const u=s&&o&&kr.read(o);u&&i.set(s,u)}return t},Ir=typeof XMLHttpRequest<"u",qr=Ir&&function(e){return new Promise(function(r,n){const s=st(e);let o=s.data;const i=x.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,w,g,p;function y(){g&&g(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function b(){if(!h)return;const S=x.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),A={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};rt(function(_){r(_),y()},function(_){n(_),y()},A),h=null}"onloadend"in h?h.onloadend=b:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(b)},h.onabort=function(){h&&(n(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const A=s.transitional||Ze;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),n(new m(P,A.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,A){h.setRequestHeader(A,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([w,p]=X(u,!0),h.addEventListener("progress",w)),f&&h.upload&&([d,g]=X(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(l=S=>{h&&(n(!S||S.type?new j(null,e,h):S),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const R=Dr(s.url);if(R&&O.protocols.indexOf(R)===-1){n(new m("Unsupported protocol "+R+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},jr=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;n.abort(l instanceof m?l:new j(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=n;return f.unsubscribe=()=>a.asap(c),f}},Mr=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},$r=async function*(e,t){for await(const r of zr(e))yield*Mr(r,t)},zr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},_e=(e,t,r,n)=>{const s=$r(e,t);let o=0,i,c=f=>{i||(i=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(r){let w=o+=d;r(w)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},ne=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ot=ne&&typeof ReadableStream=="function",vr=ne&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),it=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Hr=ot&&it(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Fe=64*1024,fe=ot&&it(()=>a.isReadableStream(new Response("").body)),G={stream:fe&&(e=>e.body)};ne&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!G[t]&&(G[t]=a.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,n)})})})(new Response);const Jr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await vr(e)).byteLength},Kr=async(e,t)=>{const r=a.toFiniteNumber(e.getContentLength());return r??Jr(t)},Vr=ne&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:w}=st(e);u=u?(u+"").toLowerCase():"text";let g=jr([s,o&&o.toAbortSignal()],i),p;const y=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let h;try{if(f&&Hr&&r!=="get"&&r!=="head"&&(h=await Kr(l,n))!==0){let A=new Request(t,{method:"POST",body:n,duplex:"half"}),D;if(a.isFormData(n)&&(D=A.headers.get("content-type"))&&l.setContentType(D),A.body){const[_,H]=Ne(h,X(Pe(f)));n=_e(A.body,Fe,_,H)}}a.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;p=new Request(t,{...w,signal:g,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:b?d:void 0});let R=await fetch(p);const S=fe&&(u==="stream"||u==="response");if(fe&&(c||S&&y)){const A={};["status","statusText","headers"].forEach(be=>{A[be]=R[be]});const D=a.toFiniteNumber(R.headers.get("content-length")),[_,H]=c&&Ne(D,X(Pe(c),!0))||[];R=new Response(_e(R.body,Fe,_,()=>{H&&H(),y&&y()}),A)}u=u||"text";let P=await G[a.findKey(G,u)||"text"](R,e);return!S&&y&&y(),await new Promise((A,D)=>{rt(A,D,{data:P,headers:x.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:p})})}catch(b){throw y&&y(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,p),{cause:b.cause||b}):m.from(b,b&&b.code,e,p)}}),de={http:cr,xhr:qr,fetch:Vr};a.forEach(de,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ue=e=>`- ${e}`,Wr=e=>a.isFunction(e)||e===null||e===!1,at={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let o=0;o<t;o++){r=e[o];let i;if(n=r,!Wr(r)&&(n=de[(i=String(r)).toLowerCase()],n===void 0))throw new m(`Unknown adapter '${i}'`);if(n)break;s[i||"#"+o]=n}if(!n){const o=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
4
4
|
`+o.map(Ue).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_997b1786_lang-
|
|
1
|
+
import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_997b1786_lang-BMbtiXnw.js";
|
|
2
2
|
import { resolveComponent as o, createBlock as a, openBlock as u, withCtx as r, createVNode as l, createElementVNode as i, toDisplayString as p } from "vue";
|
|
3
3
|
import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
function M(e, _, d, f, C, y) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),J=require("./index-D0IP99NG.cjs"),L=require("./index-CCktrzDY.cjs"),I=require("./index-BsVVRJ44.cjs"),w=require("./menu-Bk68Sehy.cjs"),N=require("./array-BURQk_eL.cjs"),k=require("./index-DN8qqqbZ.cjs"),z=require("./index.vue_vue_type_style_index_0_scoped_fb273504_lang-DsD8y1xS.cjs"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=require("./index-T32fv4xY.cjs"),W=require("./login-fCjzVJLr.cjs"),G=require("./index-C1VNp7cN.cjs"),Q=require("./cloneDeep-CKM-tytV.cjs"),X={class:"bread-content"},Y=["onClick"],Z={key:0},ee={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(T,{emit:$}){const l=T,C=e.ref([]),r=$;e.onMounted(()=>{C.value=l==null?void 0:l.breadArray}),e.watch(()=>l==null?void 0:l.breadArray,()=>{C.value=l==null?void 0:l.breadArray},{deep:!0,immediate:!0});const m=B=>{r("click",B)};return(B,V)=>(e.openBlock(),e.createElementBlock("div",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(S,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:p=>m(S)},e.toDisplayString(S.value),9,Y),g!==C.value.length-1&&Array.isArray(C.value)?(e.openBlock(),e.createElementBlock("div",Z,e.toDisplayString("/"))):e.createCommentVNode("",!0)]))),128))]))}},te=P._export_sfc(ee,[["__scopeId","data-v-b51f2c22"]]),ae={class:"system-wrap"},ne={class:"item-menu-content"},oe={class:"avatar"},le={key:0,class:"show-main-content"},re={class:"show-content"},se={class:"item-view-group"},ce={class:"show-item-content"},ie={class:"item-view-group"},ue={__name:"index",props:{content:String,jsonContents:Array},emits:["change","contentChange"],setup(T,{emit:$}){const l=W.useLoginState(),{loginUserInfo:C}=w.storeToRefs(l);e.onMounted(()=>{G.ElNotification({title:"温馨提示:",type:"success",message:"欢迎使用系统",duration:1e3})});const r=T,m=I.useModelComp(I.pinia);k.useFormToTableComp(I.pinia);const B=e.ref(!0),V=w.useMenuState();e.ref(!0);const{itemData:S}=w.storeToRefs(m),g=k.useUnit(I.pinia),{activeMenuPath:p,activeMenuOpenPaths:R,menuTriggerType:U,menus:F}=w.storeToRefs(V),{selectIndex:q,selectTitle:f}=w.storeToRefs(g);e.ref([]);const E=e.ref(!1),d=e.ref([]),b=async(t,a="data")=>{var n,c,i,s,h,v;if((t==null?void 0:t.type)==="delete")await k.deleteTableContents((n=t==null?void 0:t.singleContent)==null?void 0:n.id);else if((t==null?void 0:t.buttonName)==="新增"){let y={};for(let _ in t==null?void 0:t.singleContent)_!=="id"&&_!=="index"&&(y[_]=t==null?void 0:t.singleContent[_]);await k.addTableContents(a,p.value,t==null?void 0:t.index,sessionStorage.getItem("systemKey"),Object.values(y))}else if((t==null?void 0:t.buttonName)==="编辑"){let y={},_=(c=t==null?void 0:t.singleContent)==null?void 0:c.id;for(let x in t==null?void 0:t.singleContent)x!=="id"&&x!=="index"&&(y[x]=t==null?void 0:t.singleContent[x]);await k.fixTableContents(a,p.value,t==null?void 0:t.index,_,sessionStorage.getItem("systemKey"),Object.values(y))}let u=(s=(i=f.value)==null?void 0:i[f.value.length-1])!=null&&s.key?parseInt((v=(h=f.value)==null?void 0:h[f.value.length-1])==null?void 0:v.key):"";d.value=await k.getItemData(p.value,sessionStorage.getItem("systemKey"),u),m.setItemData(d.value)},A=t=>{d.value=t,m.setItemData(d.value)},M=t=>{},O=async t=>{var a;if(console.log(t),(t==null?void 0:t.key)==="main"||f.value.length===1)d.value=await k.getItemData(p.value,sessionStorage.getItem("systemKey")),g.setSelectIndex(""),g.setSelectMenu(""),g.setSelectTitle([]);else{const u=[];d.value=await k.getItemData(p.value,sessionStorage.getItem("systemKey"),t==null?void 0:t.key);let n=-1;(a=f.value)==null||a.forEach((c,i)=>{(c==null?void 0:c.key)===(t==null?void 0:t.key)&&(n=i),(n===-1||n>=i)&&u.push(c)}),g.setSelectTitle(u),g.setSelectMenu(t==null?void 0:t.key)}m.setItemData(d.value)};e.watch(()=>p.value,async t=>{if(t){H.verifyStructureDataToStore();const a=await k.getItemData(t,sessionStorage.getItem("systemKey"));m.setExtraContents([]);const u=sessionStorage.getItem("authority"),n=JSON.parse(u||"");if(Array.isArray(n)){const c=Array.isArray(n)&&(n==null?void 0:n.filter(s=>s==null?void 0:s.includes(t))),i=c==null?void 0:c.map(s=>{var h;return((h=s==null?void 0:s.split("/"))==null?void 0:h.pop())||""});d.value=a==null?void 0:a.map(s=>{var h;return{...s,compData:(h=s==null?void 0:s.compData)==null?void 0:h.map(v=>{var y;return(v==null?void 0:v.key)==="rowButton"||(v==null?void 0:v.key)==="extraButton"?{...v,contents:(y=v==null?void 0:v.contents)==null?void 0:y.filter(_=>i==null?void 0:i.includes(_==null?void 0:_.label))}:v})}})}else typeof n=="string"&&(n==null?void 0:n.toUpperCase())==="SUPERADMIN"?d.value=a:d.value=[];m.setItemData(d.value),g.setSelectTitle([]),g.setSelectIndex(""),g.setSelectMenu(""),f.value=p.value.split("/").map(c=>({value:c.trim()}))}},{immediate:!0}),e.watch(()=>[r==null?void 0:r.content,r==null?void 0:r.jsonContents],async()=>{var u,n,c,i;if(((u=r==null?void 0:r.jsonContents)==null?void 0:u.length)>0){m.setOriginalData(r==null?void 0:r.jsonContents);return}if(!(r!=null&&r.content)||((n=r==null?void 0:r.content)==null?void 0:n.length)===0)return;E.value=!0,B.value=!0;let t=[],a=[];g.setSelectTitle([]),g.setSelectIndex(""),g.setSelectMenu(""),(i=(c=r==null?void 0:r.content)==null?void 0:c.filter(s=>s!==""))==null||i.forEach(s=>{N.isExpandStringToJson(s)?a.push(N.expandStringToJson(s)):N.expandNewStringToJson(s)?a.push(N.expandNewStringToJson(s)):a.push(N.expandContentStringToJson(s))}),t=a==null?void 0:a[0],await z.savePageDataAsync(t),m.setOriginalData(t),E.value=!1},{deep:!0,immediate:!0});const j=t=>N.getComponent(t);return(t,a)=>{const u=e.resolveComponent("el-aside"),n=e.resolveComponent("el-avatar"),c=e.resolveComponent("el-header"),i=e.resolveComponent("router-view"),s=e.resolveComponent("el-main"),h=e.resolveComponent("el-container"),v=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",ae,[e.withDirectives((e.openBlock(),e.createBlock(h,{"element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(u,{width:"250px"},{default:e.withCtx(()=>[e.createVNode(L.default)]),_:1}),e.createVNode(h,null,{default:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>{var y,_;return[e.createElementVNode("div",ne,[(e.openBlock(),e.createBlock(te,{key:e.unref(f),breadArray:e.unref(f),onClick:O},null,8,["breadArray"])),e.createElementVNode("div",oe,[e.renderSlot(t.$slots,"default",{},void 0,!0),e.createVNode(n,{size:35,src:(y=e.unref(C))==null?void 0:y.avatarUrl},null,8,["src"]),e.createElementVNode("span",null,e.toDisplayString(((_=e.unref(C))==null?void 0:_.account)??"欢迎"),1)])])]}),_:3}),e.createVNode(s,null,{default:e.withCtx(()=>{var y,_,x,K;return[t.$route.path==="/"&&((y=d.value)==null?void 0:y.length)>0?(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",re,[(_=d.value)!=null&&_.find(o=>o.comp==="FormTop")?(e.openBlock(),e.createElementBlock("div",{class:"show-header",key:t.index},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((x=d.value)==null?void 0:x.filter(o=>o.comp==="FormTop"),(o,D)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:D},[e.createElementVNode("div",se,e.toDisplayString(o.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(o.comp)),{itemData:o==null?void 0:o.compData,childItemData:o==null?void 0:o.itemChildData,key:(o==null?void 0:o.id)??D,onChange:b,index:(o==null?void 0:o.id)??D,onContentChange:M,onPageChange:A},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((K=d.value)==null?void 0:K.filter(o=>o.comp!=="FormTop"),(o,D)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:D},[e.createElementVNode("div",ie,e.toDisplayString(o.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(o.comp)),{itemData:o==null?void 0:o.compData,childItemData:o==null?void 0:o.itemChildData,key:(o==null?void 0:o.id)??D,onChange:b,index:(o==null?void 0:o.id)??D,onContentChange:M,onPageChange:A},null,40,["itemData","childItemData","index"]))]))),128))])])])):(e.openBlock(),e.createBlock(i,{key:1}))]}),_:1})]),_:3})]),_:3})),[[v,E.value]])])}}},de=P._export_sfc(ue,[["__scopeId","data-v-e039c5c8"]]),me={class:"add-model-content"},ge={key:0,class:"model-operate"},ve={class:"model-select"},_e={class:"model-fill"},fe={key:1,class:"model-view"},ye={key:0,class:"model-import-data"},he={class:"import-button"},Ce={key:0},pe={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change","contentChange"],setup(T,{emit:$}){const l=T,C=$,r=e.ref([]),m=e.ref([]),B=e.ref([]),V=e.ref(0),S=I.useModelComp(I.pinia),g=w.useMenuState(I.pinia),{itemData:p,originalData:R}=w.storeToRefs(S),{activeMenuPath:U}=w.storeToRefs(g),F=e.ref(null),q=e.ref(0),f=e.ref([]),E=e.ref(""),d=e.ref(0),b=t=>{C("contentChange",t)},A=t=>{var u;const a=(u=Q.cloneDeep(t==null?void 0:t.wholeValue))==null?void 0:u.map(n=>{var c;return(n==null?void 0:n.comp)==="Form"&&(n.compData=(c=n.compData)==null?void 0:c.map(i=>((i==null?void 0:i.key)==="formContent"&&(i.contents=N.arrayToNumberArray(i==null?void 0:i.contents)),i))),n});C("change",{originalContents:R.value,currentContents:t==null?void 0:t.wholeValue,editContent:t==null?void 0:t.editValue,arrayToContents:a})};e.watch(()=>m.value,()=>{d.value===m.value.length&&m.value.length!==0&&(r.value=m.value)},{deep:!0,immediate:!0});const M=()=>{F.value.click()},O=async t=>{const a=t.target.files;if(!a)return;new FileReader,r.value=[],m.value=[],d.value=a.length;const u=Array.from(a).map(async n=>await new Promise(c=>{const i=new FileReader;i.onload=s=>{try{m.value.push(s.target.result),f.value=j(s.target.result),q.value++}catch(h){console.error("解析失败:",h);return}},i.onerror=()=>c(`读取 ${n.name} 失败`),i.readAsText(n)}));await Promise.all(u)};e.watch(()=>[l==null?void 0:l.content,l==null?void 0:l.jsonContents],()=>{r.value=l.content,B.value=l==null?void 0:l.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>q.value,()=>{var t;((t=f.value)==null?void 0:t.length)!==0&&(S.setOriginalData(f.value),S.setItemData(f.value))},{deep:!0,immediate:!0});const j=t=>{let a=t.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");a=a.replace(/(\w+)\s*:/g,"$1:"),a=a.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),a=a.replace(/,\s*([}\]])/g,"$1"),a=a.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(a)}catch(u){try{const c=new Function(`return ${a}`)();if(Array.isArray(c)||typeof c=="object")return c;throw new Error(`解析结果不是有效的数组或对象: ${u}`)}catch(n){throw new Error(`无法解析JSON: ${n.message}`)}}};return(t,a)=>{const u=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",me,[(l==null?void 0:l.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",ve,[e.createVNode(J.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:V.value},[e.createVNode(J.modelShow)])),e.createElementVNode("div",_e,[e.createVNode(J.modelFill)])])):e.createCommentVNode("",!0),(l==null?void 0:l.mode)==="view"?(e.openBlock(),e.createElementBlock("div",fe,[(e.openBlock(),e.createBlock(de,{content:r.value,onChange:A,jsonContents:B.value,onContentChange:b,key:V.value},{default:e.withCtx(()=>{var n;return[((n=l==null?void 0:l.jsonContents)==null?void 0:n.length)===0&&(l!=null&&l.showButton)?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",he,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:F,accept:".txt, .inm",onChange:O,style:{display:"none"},multiple:""},null,544),e.createVNode(u,{onClick:M,type:"primary"},{default:e.withCtx(()=>a[0]||(a[0]=[e.createTextVNode("导入文件")])),_:1,__:[0]}),E.value?(e.openBlock(),e.createElementBlock("span",Ce,e.toDisplayString(E.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]}),_:1},8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},ke=P._export_sfc(pe,[["__scopeId","data-v-fb273504"]]);exports.default=ke;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),J=require("./index-MBIMM_ad.cjs"),L=require("./index-BELu8hOU.cjs"),I=require("./index-CMPOgoKS.cjs"),w=require("./menu-BG4Pdw44.cjs"),N=require("./array-Rm84oXmE.cjs"),k=require("./index-BQGuPIy3.cjs"),z=require("./index.vue_vue_type_style_index_0_scoped_fb273504_lang-DTN2rUHv.cjs"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=require("./index-DDM0FfRt.cjs"),W=require("./login-8A7jExoo.cjs"),G=require("./index-BpJD4V4R.cjs"),Q=require("./cloneDeep-BvDRsxdz.cjs"),X={class:"bread-content"},Y=["onClick"],Z={key:0},ee={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(T,{emit:$}){const l=T,C=e.ref([]),r=$;e.onMounted(()=>{C.value=l==null?void 0:l.breadArray}),e.watch(()=>l==null?void 0:l.breadArray,()=>{C.value=l==null?void 0:l.breadArray},{deep:!0,immediate:!0});const m=B=>{r("click",B)};return(B,V)=>(e.openBlock(),e.createElementBlock("div",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(S,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:p=>m(S)},e.toDisplayString(S.value),9,Y),g!==C.value.length-1&&Array.isArray(C.value)?(e.openBlock(),e.createElementBlock("div",Z,e.toDisplayString("/"))):e.createCommentVNode("",!0)]))),128))]))}},te=P._export_sfc(ee,[["__scopeId","data-v-b51f2c22"]]),ae={class:"system-wrap"},ne={class:"item-menu-content"},oe={class:"avatar"},le={key:0,class:"show-main-content"},re={class:"show-content"},se={class:"item-view-group"},ce={class:"show-item-content"},ie={class:"item-view-group"},ue={__name:"index",props:{content:String,jsonContents:Array},emits:["change","contentChange"],setup(T,{emit:$}){const l=W.useLoginState(),{loginUserInfo:C}=w.storeToRefs(l);e.onMounted(()=>{G.ElNotification({title:"温馨提示:",type:"success",message:"欢迎使用系统",duration:1e3})});const r=T,m=I.useModelComp(I.pinia);k.useFormToTableComp(I.pinia);const B=e.ref(!0),V=w.useMenuState();e.ref(!0);const{itemData:S}=w.storeToRefs(m),g=k.useUnit(I.pinia),{activeMenuPath:p,activeMenuOpenPaths:R,menuTriggerType:U,menus:F}=w.storeToRefs(V),{selectIndex:q,selectTitle:f}=w.storeToRefs(g);e.ref([]);const E=e.ref(!1),d=e.ref([]),b=async(t,a="data")=>{var n,c,i,s,h,v;if((t==null?void 0:t.type)==="delete")await k.deleteTableContents((n=t==null?void 0:t.singleContent)==null?void 0:n.id);else if((t==null?void 0:t.buttonName)==="新增"){let y={};for(let _ in t==null?void 0:t.singleContent)_!=="id"&&_!=="index"&&(y[_]=t==null?void 0:t.singleContent[_]);await k.addTableContents(a,p.value,t==null?void 0:t.index,sessionStorage.getItem("systemKey"),Object.values(y))}else if((t==null?void 0:t.buttonName)==="编辑"){let y={},_=(c=t==null?void 0:t.singleContent)==null?void 0:c.id;for(let x in t==null?void 0:t.singleContent)x!=="id"&&x!=="index"&&(y[x]=t==null?void 0:t.singleContent[x]);await k.fixTableContents(a,p.value,t==null?void 0:t.index,_,sessionStorage.getItem("systemKey"),Object.values(y))}let u=(s=(i=f.value)==null?void 0:i[f.value.length-1])!=null&&s.key?parseInt((v=(h=f.value)==null?void 0:h[f.value.length-1])==null?void 0:v.key):"";d.value=await k.getItemData(p.value,sessionStorage.getItem("systemKey"),u),m.setItemData(d.value)},A=t=>{d.value=t,m.setItemData(d.value)},M=t=>{},O=async t=>{var a;if(console.log(t),(t==null?void 0:t.key)==="main"||f.value.length===1)d.value=await k.getItemData(p.value,sessionStorage.getItem("systemKey")),g.setSelectIndex(""),g.setSelectMenu(""),g.setSelectTitle([]);else{const u=[];d.value=await k.getItemData(p.value,sessionStorage.getItem("systemKey"),t==null?void 0:t.key);let n=-1;(a=f.value)==null||a.forEach((c,i)=>{(c==null?void 0:c.key)===(t==null?void 0:t.key)&&(n=i),(n===-1||n>=i)&&u.push(c)}),g.setSelectTitle(u),g.setSelectMenu(t==null?void 0:t.key)}m.setItemData(d.value)};e.watch(()=>p.value,async t=>{if(t){H.verifyStructureDataToStore();const a=await k.getItemData(t,sessionStorage.getItem("systemKey"));m.setExtraContents([]);const u=sessionStorage.getItem("authority"),n=JSON.parse(u||"");if(Array.isArray(n)){const c=Array.isArray(n)&&(n==null?void 0:n.filter(s=>s==null?void 0:s.includes(t))),i=c==null?void 0:c.map(s=>{var h;return((h=s==null?void 0:s.split("/"))==null?void 0:h.pop())||""});d.value=a==null?void 0:a.map(s=>{var h;return{...s,compData:(h=s==null?void 0:s.compData)==null?void 0:h.map(v=>{var y;return(v==null?void 0:v.key)==="rowButton"||(v==null?void 0:v.key)==="extraButton"?{...v,contents:(y=v==null?void 0:v.contents)==null?void 0:y.filter(_=>i==null?void 0:i.includes(_==null?void 0:_.label))}:v})}})}else typeof n=="string"&&(n==null?void 0:n.toUpperCase())==="SUPERADMIN"?d.value=a:d.value=[];m.setItemData(d.value),g.setSelectTitle([]),g.setSelectIndex(""),g.setSelectMenu(""),f.value=p.value.split("/").map(c=>({value:c.trim()}))}},{immediate:!0}),e.watch(()=>[r==null?void 0:r.content,r==null?void 0:r.jsonContents],async()=>{var u,n,c,i;if(((u=r==null?void 0:r.jsonContents)==null?void 0:u.length)>0){m.setOriginalData(r==null?void 0:r.jsonContents);return}if(!(r!=null&&r.content)||((n=r==null?void 0:r.content)==null?void 0:n.length)===0)return;E.value=!0,B.value=!0;let t=[],a=[];g.setSelectTitle([]),g.setSelectIndex(""),g.setSelectMenu(""),(i=(c=r==null?void 0:r.content)==null?void 0:c.filter(s=>s!==""))==null||i.forEach(s=>{N.isExpandStringToJson(s)?a.push(N.expandStringToJson(s)):N.expandNewStringToJson(s)?a.push(N.expandNewStringToJson(s)):a.push(N.expandContentStringToJson(s))}),t=a==null?void 0:a[0],await z.savePageDataAsync(t),m.setOriginalData(t),E.value=!1},{deep:!0,immediate:!0});const j=t=>N.getComponent(t);return(t,a)=>{const u=e.resolveComponent("el-aside"),n=e.resolveComponent("el-avatar"),c=e.resolveComponent("el-header"),i=e.resolveComponent("router-view"),s=e.resolveComponent("el-main"),h=e.resolveComponent("el-container"),v=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",ae,[e.withDirectives((e.openBlock(),e.createBlock(h,{"element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(u,{width:"250px"},{default:e.withCtx(()=>[e.createVNode(L.default)]),_:1}),e.createVNode(h,null,{default:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>{var y,_;return[e.createElementVNode("div",ne,[(e.openBlock(),e.createBlock(te,{key:e.unref(f),breadArray:e.unref(f),onClick:O},null,8,["breadArray"])),e.createElementVNode("div",oe,[e.renderSlot(t.$slots,"default",{},void 0,!0),e.createVNode(n,{size:35,src:(y=e.unref(C))==null?void 0:y.avatarUrl},null,8,["src"]),e.createElementVNode("span",null,e.toDisplayString(((_=e.unref(C))==null?void 0:_.account)??"欢迎"),1)])])]}),_:3}),e.createVNode(s,null,{default:e.withCtx(()=>{var y,_,x,K;return[t.$route.path==="/"&&((y=d.value)==null?void 0:y.length)>0?(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",re,[(_=d.value)!=null&&_.find(o=>o.comp==="FormTop")?(e.openBlock(),e.createElementBlock("div",{class:"show-header",key:t.index},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((x=d.value)==null?void 0:x.filter(o=>o.comp==="FormTop"),(o,D)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:D},[e.createElementVNode("div",se,e.toDisplayString(o.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(o.comp)),{itemData:o==null?void 0:o.compData,childItemData:o==null?void 0:o.itemChildData,key:(o==null?void 0:o.id)??D,onChange:b,index:(o==null?void 0:o.id)??D,onContentChange:M,onPageChange:A},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((K=d.value)==null?void 0:K.filter(o=>o.comp!=="FormTop"),(o,D)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:D},[e.createElementVNode("div",ie,e.toDisplayString(o.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(o.comp)),{itemData:o==null?void 0:o.compData,childItemData:o==null?void 0:o.itemChildData,key:(o==null?void 0:o.id)??D,onChange:b,index:(o==null?void 0:o.id)??D,onContentChange:M,onPageChange:A},null,40,["itemData","childItemData","index"]))]))),128))])])])):(e.openBlock(),e.createBlock(i,{key:1}))]}),_:1})]),_:3})]),_:3})),[[v,E.value]])])}}},de=P._export_sfc(ue,[["__scopeId","data-v-e039c5c8"]]),me={class:"add-model-content"},ge={key:0,class:"model-operate"},ve={class:"model-select"},_e={class:"model-fill"},fe={key:1,class:"model-view"},ye={key:0,class:"model-import-data"},he={class:"import-button"},Ce={key:0},pe={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change","contentChange"],setup(T,{emit:$}){const l=T,C=$,r=e.ref([]),m=e.ref([]),B=e.ref([]),V=e.ref(0),S=I.useModelComp(I.pinia),g=w.useMenuState(I.pinia),{itemData:p,originalData:R}=w.storeToRefs(S),{activeMenuPath:U}=w.storeToRefs(g),F=e.ref(null),q=e.ref(0),f=e.ref([]),E=e.ref(""),d=e.ref(0),b=t=>{C("contentChange",t)},A=t=>{var u;const a=(u=Q.cloneDeep(t==null?void 0:t.wholeValue))==null?void 0:u.map(n=>{var c;return(n==null?void 0:n.comp)==="Form"&&(n.compData=(c=n.compData)==null?void 0:c.map(i=>((i==null?void 0:i.key)==="formContent"&&(i.contents=N.arrayToNumberArray(i==null?void 0:i.contents)),i))),n});C("change",{originalContents:R.value,currentContents:t==null?void 0:t.wholeValue,editContent:t==null?void 0:t.editValue,arrayToContents:a})};e.watch(()=>m.value,()=>{d.value===m.value.length&&m.value.length!==0&&(r.value=m.value)},{deep:!0,immediate:!0});const M=()=>{F.value.click()},O=async t=>{const a=t.target.files;if(!a)return;new FileReader,r.value=[],m.value=[],d.value=a.length;const u=Array.from(a).map(async n=>await new Promise(c=>{const i=new FileReader;i.onload=s=>{try{m.value.push(s.target.result),f.value=j(s.target.result),q.value++}catch(h){console.error("解析失败:",h);return}},i.onerror=()=>c(`读取 ${n.name} 失败`),i.readAsText(n)}));await Promise.all(u)};e.watch(()=>[l==null?void 0:l.content,l==null?void 0:l.jsonContents],()=>{r.value=l.content,B.value=l==null?void 0:l.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>q.value,()=>{var t;((t=f.value)==null?void 0:t.length)!==0&&(S.setOriginalData(f.value),S.setItemData(f.value))},{deep:!0,immediate:!0});const j=t=>{let a=t.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");a=a.replace(/(\w+)\s*:/g,"$1:"),a=a.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),a=a.replace(/,\s*([}\]])/g,"$1"),a=a.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(a)}catch(u){try{const c=new Function(`return ${a}`)();if(Array.isArray(c)||typeof c=="object")return c;throw new Error(`解析结果不是有效的数组或对象: ${u}`)}catch(n){throw new Error(`无法解析JSON: ${n.message}`)}}};return(t,a)=>{const u=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",me,[(l==null?void 0:l.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",ve,[e.createVNode(J.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:V.value},[e.createVNode(J.modelShow)])),e.createElementVNode("div",_e,[e.createVNode(J.modelFill)])])):e.createCommentVNode("",!0),(l==null?void 0:l.mode)==="view"?(e.openBlock(),e.createElementBlock("div",fe,[(e.openBlock(),e.createBlock(de,{content:r.value,onChange:A,jsonContents:B.value,onContentChange:b,key:V.value},{default:e.withCtx(()=>{var n;return[((n=l==null?void 0:l.jsonContents)==null?void 0:n.length)===0&&(l!=null&&l.showButton)?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",he,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:F,accept:".txt, .inm",onChange:O,style:{display:"none"},multiple:""},null,544),e.createVNode(u,{onClick:M,type:"primary"},{default:e.withCtx(()=>a[0]||(a[0]=[e.createTextVNode("导入文件")])),_:1,__:[0]}),E.value?(e.openBlock(),e.createElementBlock("span",Ce,e.toDisplayString(E.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]}),_:1},8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},ke=P._export_sfc(pe,[["__scopeId","data-v-fb273504"]]);exports.default=ke;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),d=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),d=require("./index-BpJD4V4R.cjs"),C=require("./login-8A7jExoo.cjs"),l=require("./menu-BG4Pdw44.cjs"),w=require("./index-CMPOgoKS.cjs"),f=require("./index-cTGqRce7.cjs"),B=require("./cloneDeep-BvDRsxdz.cjs"),g=require("./index.vue_vue_type_script_setup_true_lang-xMjx7NXU.cjs"),y=require("./index-D5rY52ZQ.cjs"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=C.useLoginState(),{loginUserInfo:i}=l.storeToRefs(k);var _,m;const x=s.ref([{label:"",name:"account",value:(_=i.value)==null?void 0:_.account},{label:"",name:"userRoles",value:(m=i.value)==null?void 0:m.userRoles}]),q=()=>{},u=s.ref(!1),p=s.reactive({dialogTitle:"电子签名",dialogWidth:"30%",dialogShow:!1,url:""}),A=s.ref([{label:"签字版",icon:d.edit_pen_default},{label:"电子签名",icon:d.edit_default},{label:"上传手写签名",icon:d.upload_filled_default}]),V=n=>{p.dialogShow=n.label==="电子签名"},D=()=>{p.dialogShow=!1},N=async n=>{var o,a,e,r;const t=await w.getInsofDataApi({id:n,key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:"/系统管理/用户管理"}});((o=t==null?void 0:t.data)==null?void 0:o.code)===200&&t.data.result&&Array.isArray(t.data.result)&&t.data.result.length>0&&k.setLoginUserInfo((r=(e=(a=t.data.result)==null?void 0:a[0])==null?void 0:e.value)==null?void 0:r.tableData)},K=async n=>{var t,o,a,e;try{const r=await w.updateInsofDataApi({id:(t=i.value)==null?void 0:t.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/系统管理/用户管理",layer:(o=i.value)==null?void 0:o.layer},value:{tableData:n}});((a=r==null?void 0:r.data)==null?void 0:a.code)===200&&(D(),l.ElMessage.success("修改成功"),await N((e=i.value)==null?void 0:e.id),u.value=!1)}catch{l.ElMessage.error("修改响应失败"),u.value=!1}},P=async(n,t)=>{var a;const o={...i.value,status:((a=i.value)==null?void 0:a.status)??"启用",[n]:t};u.value=!0,await K(o)},v=s.computed(()=>{var t,o,a;const n=(t=B.cloneDeep(f.pageData.value))==null?void 0:t.find(e=>e.key==="header");return console.log(1212,f.pageData.value),{baseCols:(o=n.contents)==null?void 0:o.filter(e=>(e==null?void 0:e.prop)!=="password"&&(e==null?void 0:e.prop)!=="status"&&(e==null?void 0:e.prop)!=="account"&&(e==null?void 0:e.prop)!=="userRoles"&&(e==null?void 0:e.label)!=="操作"),otherCols:[(a=n.contents)==null?void 0:a.find(e=>(e==null?void 0:e.prop)==="password")]}});var b,h,I,S;const U=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(h=(b=v.value)==null?void 0:b.baseCols)==null?void 0:h.map(n=>({...n,width:2,type:n.formType})),isEnableWrap:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(S=(I=v.value)==null?void 0:I.otherCols)==null?void 0:S.map(n=>({...n,width:2,type:n.formType})),isEnableWrap:!1},value:""}]}],L=Object.freeze(Object.defineProperty({__proto__:null,beforeSignDestroy:D,clickFormButton:q,clickSignButton:V,loading:u,rowContents:x,signPadInfo:p,signTypes:A,submitImageAsync:P,tabsContents:U},Symbol.toStringTag,{value:"Module"})),M={class:"personal-wrapper"},R={class:"personal-box left"},W={class:"base-avatar"},j={class:"center-avatar"},F={class:"base-info"},O={class:"base-signature"},$={class:"personal-box right"},z=s.defineComponent({__name:"index",setup(n){const t=s.reactive({...L}),o=C.useLoginState(),{loginUserInfo:a}=l.storeToRefs(o);return s.onMounted(async()=>{}),(e,r)=>{const E=s.resolveDirective("loading");return s.openBlock(),s.createElementBlock("div",M,[s.createElementVNode("div",R,[s.createElementVNode("div",W,[s.withDirectives((s.openBlock(),s.createElementBlock("div",j,[s.createVNode(g.ssAvatar,{userInfo:s.unref(a),onSubmitImage:r[0]||(r[0]=c=>t.submitImageAsync("avatarUrl",c))},null,8,["userInfo"])])),[[E,t.loading]])]),s.createElementVNode("div",F,[s.createVNode(y.ssForm,{rowContents:t.rowContents,isEnableWrap:!1,onChange:t.clickFormButton,isEdit:!1},null,8,["rowContents","onChange"])]),s.createElementVNode("div",O,[s.createVNode(g._sfc_main,{userInfo:s.unref(a),signPadInfo:t.signPadInfo,signTypes:t.signTypes,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:r[1]||(r[1]=c=>t.submitImageAsync("signature",c))},null,8,["userInfo","signPadInfo","signTypes","onClickSignButton","onBeforeDestroy"])])]),s.createElementVNode("div",$,[s.createVNode(y.ssTab,{tabsContents:t.tabsContents},null,8,["tabsContents"])])])}}}),H=T._export_sfc(z,[["__scopeId","data-v-b7ec193f"]]);exports.default=H;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as T, getCurrentInstance as Re, inject as Rt, unref as p, ref as k, onMounted as wt, watch as tt, toRef as Ee, onUnmounted as Xr, shallowRef as ve, nextTick as Q, defineComponent as ct, useAttrs as Jr, useSlots as dr, createElementBlock as j, openBlock as x, normalizeStyle as we, normalizeClass as I, createCommentVNode as C, Fragment as ge, createElementVNode as Y, renderSlot as nt, createBlock as O, withCtx as U, resolveDynamicComponent as et, mergeProps as Ge, withModifiers as qt, createVNode as gt, toDisplayString as ft, onBeforeUnmount as Qt, provide as pr, Text as Qr, reactive as on, h as ti, watchEffect as ei, isRef as ni, onScopeDispose as ri, resolveComponent as zt, Transition as ii, withDirectives as Pe, withKeys as ne, createTextVNode as Fe, vShow as Le, markRaw as Ye, toRefs as si, isVNode as vr, render as gr } from "vue";
|
|
2
|
-
import { g as yr, c as oi, a as ai, d as ui, u as li } from "./index-
|
|
3
|
-
import { E as Gt, s as an, u as fi } from "./menu-
|
|
4
|
-
import { a as ci } from "./index-
|
|
5
|
-
import { u as hi } from "./login-
|
|
6
|
-
import { S as Rn, i as mr, g as un, t as br, h as Bn, j as di, k as Et, m as Cn, n as Be, o as At, p as Ft, q as Te, s as Sr, v as It, w as pi, x as vi, y as gi, z as yi, A as $t, B as Wt, C as Zt, _ as te, D as Bt, V as mi, F as bi, G as Si, H as Ei, I as yt, N as ye, J as wi, K as xe, L as Er, O as ln, P as Ti, Q as We, R as xi, T as On, U as Di, W as kn, X as Ai, Y as Ii, Z as Ri, $ as Bi, a0 as Ci, a1 as Oi, a2 as Mn, a3 as Nn, a4 as ki } from "./index-
|
|
2
|
+
import { g as yr, c as oi, a as ai, d as ui, u as li } from "./index-BlNV_ehx.js";
|
|
3
|
+
import { E as Gt, s as an, u as fi } from "./menu-BoJy4Bts.js";
|
|
4
|
+
import { a as ci } from "./index-C8U0rSQH.js";
|
|
5
|
+
import { u as hi } from "./login-BfyKbJ4u.js";
|
|
6
|
+
import { S as Rn, i as mr, g as un, t as br, h as Bn, j as di, k as Et, m as Cn, n as Be, o as At, p as Ft, q as Te, s as Sr, v as It, w as pi, x as vi, y as gi, z as yi, A as $t, B as Wt, C as Zt, _ as te, D as Bt, V as mi, F as bi, G as Si, H as Ei, I as yt, N as ye, J as wi, K as xe, L as Er, O as ln, P as Ti, Q as We, R as xi, T as On, U as Di, W as kn, X as Ai, Y as Ii, Z as Ri, $ as Bi, a0 as Ci, a1 as Oi, a2 as Mn, a3 as Nn, a4 as ki } from "./index-TV8ZUYRm.js";
|
|
7
7
|
import { m as Mi } from "./typescript-BpuhIBuJ.js";
|
|
8
|
-
import { d as Vn, e as wr, f as Ni, h as Vi, j as Tr, k as Pi, c as Fi } from "./cloneDeep-
|
|
8
|
+
import { d as Vn, e as wr, f as Ni, h as Vi, j as Tr, k as Pi, c as Fi } from "./cloneDeep-DwX3emA_.js";
|
|
9
9
|
import { i as xr } from "./isNil-CjWwlQS3.js";
|
|
10
10
|
function Li(e) {
|
|
11
11
|
return e;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as f, onMounted as ne, watch as E, createElementBlock as m, openBlock as u, Fragment as Q, renderList as X, createElementVNode as w, createCommentVNode as M, toDisplayString as B, resolveComponent as $, resolveDirective as re, withDirectives as ie, createBlock as j, withCtx as A, createVNode as S, unref as z, renderSlot as ue, resolveDynamicComponent as te, createTextVNode as ce } from "vue";
|
|
2
|
-
import { m as de, a as ve, b as ge } from "./index-
|
|
3
|
-
import me from "./index-
|
|
4
|
-
import { u as se, p as P } from "./index-
|
|
5
|
-
import { s as F, u as le } from "./menu-
|
|
6
|
-
import { i as _e, e as ye, b as ae, c as fe, g as he, a as Ce } from "./array-
|
|
7
|
-
import { u as pe, a as we, g as W, d as ke, b as Se, f as De } from "./index-
|
|
8
|
-
import { s as Ie } from "./index.vue_vue_type_style_index_0_scoped_fb273504_lang-
|
|
2
|
+
import { m as de, a as ve, b as ge } from "./index-Dw6RkrBI.js";
|
|
3
|
+
import me from "./index-CSfWWl_d.js";
|
|
4
|
+
import { u as se, p as P } from "./index-BlNV_ehx.js";
|
|
5
|
+
import { s as F, u as le } from "./menu-BoJy4Bts.js";
|
|
6
|
+
import { i as _e, e as ye, b as ae, c as fe, g as he, a as Ce } from "./array-5QxNXcTQ.js";
|
|
7
|
+
import { u as pe, a as we, g as W, d as ke, b as Se, f as De } from "./index-DrutW1iS.js";
|
|
8
|
+
import { s as Ie } from "./index.vue_vue_type_style_index_0_scoped_fb273504_lang-BhsOIFke.js";
|
|
9
9
|
import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { v as xe } from "./index-
|
|
11
|
-
import { u as Te } from "./login-
|
|
12
|
-
import { E as be } from "./index-
|
|
13
|
-
import { c as $e } from "./cloneDeep-
|
|
10
|
+
import { v as xe } from "./index-Dv2vGaNh.js";
|
|
11
|
+
import { u as Te } from "./login-BfyKbJ4u.js";
|
|
12
|
+
import { E as be } from "./index-TV8ZUYRm.js";
|
|
13
|
+
import { c as $e } from "./cloneDeep-DwX3emA_.js";
|
|
14
14
|
const Ae = { class: "bread-content" }, Ne = ["onClick"], je = { key: 0 }, Me = {
|
|
15
15
|
__name: "index",
|
|
16
16
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),it=require("./cloneDeep-CKM-tytV.cjs"),Lt=require("./menu-Bk68Sehy.cjs"),an=require("./index-C1XdRILw.cjs"),ln=require("./index.vue_vue_type_script_setup_true_lang-DX6aS_xn.cjs"),$t=require("./index-C1VNp7cN.cjs");function sn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Je={exports:{}},un=Je.exports,Tt;function cn(){return Tt||(Tt=1,function(n,t){(function(e,r){n.exports=r()})(un,function(){var e=1e3,r=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",c="day",p="week",d="month",E="quarter",v="year",h="date",D="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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(S){var b=["th","st","nd","rd"],m=S%100;return"["+S+(b[(m-20)%10]||b[m]||b[0])+"]"}},x=function(S,b,m){var k=String(S);return!k||k.length>=b?S:""+Array(b+1-k.length).join(m)+S},L={s:x,z:function(S){var b=-S.utcOffset(),m=Math.abs(b),k=Math.floor(m/60),y=m%60;return(b<=0?"+":"-")+x(k,2,"0")+":"+x(y,2,"0")},m:function S(b,m){if(b.date()<m.date())return-S(m,b);var k=12*(m.year()-b.year())+(m.month()-b.month()),y=b.clone().add(k,d),O=m-y<0,N=b.clone().add(k+(O?-1:1),d);return+(-(k+(m-y)/(O?y-N:N-y))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:v,w:p,d:c,D:h,h:u,m:s,s:i,ms:l,Q:E}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},Y="en",_={};_[Y]=P;var j="$isDayjsObject",w=function(S){return S instanceof ee||!(!S||!S[j])},B=function S(b,m,k){var y;if(!b)return Y;if(typeof b=="string"){var O=b.toLowerCase();_[O]&&(y=O),m&&(_[O]=m,y=O);var N=b.split("-");if(!y&&N.length>1)return S(N[0])}else{var R=b.name;_[R]=b,y=R}return!k&&y&&(Y=y),y||!k&&Y},I=function(S,b){if(w(S))return S.clone();var m=typeof b=="object"?b:{};return m.date=S,m.args=arguments,new ee(m)},V=L;V.l=B,V.i=w,V.w=function(S,b){return I(S,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var ee=function(){function S(m){this.$L=B(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[j]=!0}var b=S.prototype;return b.parse=function(m){this.$d=function(k){var y=k.date,O=k.utc;if(y===null)return new Date(NaN);if(V.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var N=y.match(C);if(N){var R=N[2]-1||0,W=(N[7]||"0").substring(0,3);return O?new Date(Date.UTC(N[1],R,N[3]||1,N[4]||0,N[5]||0,N[6]||0,W)):new Date(N[1],R,N[3]||1,N[4]||0,N[5]||0,N[6]||0,W)}}return new Date(y)}(m),this.init()},b.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},b.$utils=function(){return V},b.isValid=function(){return this.$d.toString()!==D},b.isSame=function(m,k){var y=I(m);return this.startOf(k)<=y&&y<=this.endOf(k)},b.isAfter=function(m,k){return I(m)<this.startOf(k)},b.isBefore=function(m,k){return this.endOf(k)<I(m)},b.$g=function(m,k,y){return V.u(m)?this[k]:this.set(y,m)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(m,k){var y=this,O=!!V.u(k)||k,N=V.p(m),R=function(Ee,ne){var ge=V.w(y.$u?Date.UTC(y.$y,ne,Ee):new Date(y.$y,ne,Ee),y);return O?ge:ge.endOf(c)},W=function(Ee,ne){return V.w(y.toDate()[Ee].apply(y.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(ne)),y)},J=this.$W,K=this.$M,ie=this.$D,Ce="set"+(this.$u?"UTC":"");switch(N){case v:return O?R(1,0):R(31,11);case d:return O?R(1,K):R(0,K+1);case p:var we=this.$locale().weekStart||0,Ne=(J<we?J+7:J)-we;return R(O?ie-Ne:ie+(6-Ne),K);case c:case h:return W(Ce+"Hours",0);case u:return W(Ce+"Minutes",1);case s:return W(Ce+"Seconds",2);case i:return W(Ce+"Milliseconds",3);default:return this.clone()}},b.endOf=function(m){return this.startOf(m,!1)},b.$set=function(m,k){var y,O=V.p(m),N="set"+(this.$u?"UTC":""),R=(y={},y[c]=N+"Date",y[h]=N+"Date",y[d]=N+"Month",y[v]=N+"FullYear",y[u]=N+"Hours",y[s]=N+"Minutes",y[i]=N+"Seconds",y[l]=N+"Milliseconds",y)[O],W=O===c?this.$D+(k-this.$W):k;if(O===d||O===v){var J=this.clone().set(h,1);J.$d[R](W),J.init(),this.$d=J.set(h,Math.min(this.$D,J.daysInMonth())).$d}else R&&this.$d[R](W);return this.init(),this},b.set=function(m,k){return this.clone().$set(m,k)},b.get=function(m){return this[V.p(m)]()},b.add=function(m,k){var y,O=this;m=Number(m);var N=V.p(k),R=function(K){var ie=I(O);return V.w(ie.date(ie.date()+Math.round(K*m)),O)};if(N===d)return this.set(d,this.$M+m);if(N===v)return this.set(v,this.$y+m);if(N===c)return R(1);if(N===p)return R(7);var W=(y={},y[s]=r,y[u]=a,y[i]=e,y)[N]||1,J=this.$d.getTime()+m*W;return V.w(J,this)},b.subtract=function(m,k){return this.add(-1*m,k)},b.format=function(m){var k=this,y=this.$locale();if(!this.isValid())return y.invalidDate||D;var O=m||"YYYY-MM-DDTHH:mm:ssZ",N=V.z(this),R=this.$H,W=this.$m,J=this.$M,K=y.weekdays,ie=y.months,Ce=y.meridiem,we=function(ne,ge,Ie,Ue){return ne&&(ne[ge]||ne(k,O))||Ie[ge].slice(0,Ue)},Ne=function(ne){return V.s(R%12||12,ne,"0")},Ee=Ce||function(ne,ge,Ie){var Ue=ne<12?"AM":"PM";return Ie?Ue.toLowerCase():Ue};return O.replace(f,function(ne,ge){return ge||function(Ie){switch(Ie){case"YY":return String(k.$y).slice(-2);case"YYYY":return V.s(k.$y,4,"0");case"M":return J+1;case"MM":return V.s(J+1,2,"0");case"MMM":return we(y.monthsShort,J,ie,3);case"MMMM":return we(ie,J);case"D":return k.$D;case"DD":return V.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return we(y.weekdaysMin,k.$W,K,2);case"ddd":return we(y.weekdaysShort,k.$W,K,3);case"dddd":return K[k.$W];case"H":return String(R);case"HH":return V.s(R,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return Ee(R,W,!0);case"A":return Ee(R,W,!1);case"m":return String(W);case"mm":return V.s(W,2,"0");case"s":return String(k.$s);case"ss":return V.s(k.$s,2,"0");case"SSS":return V.s(k.$ms,3,"0");case"Z":return N}return null}(ne)||N.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(m,k,y){var O,N=this,R=V.p(k),W=I(m),J=(W.utcOffset()-this.utcOffset())*r,K=this-W,ie=function(){return V.m(N,W)};switch(R){case v:O=ie()/12;break;case d:O=ie();break;case E:O=ie()/3;break;case p:O=(K-J)/6048e5;break;case c:O=(K-J)/864e5;break;case u:O=K/a;break;case s:O=K/r;break;case i:O=K/e;break;default:O=K}return y?O:V.a(O)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return _[this.$L]},b.locale=function(m,k){if(!m)return this.$L;var y=this.clone(),O=B(m,k,!0);return O&&(y.$L=O),y},b.clone=function(){return V.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()},S}(),q=ee.prototype;return I.prototype=q,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",v],["$D",h]].forEach(function(S){q[S[1]]=function(b){return this.$g(b,S[0],S[1])}}),I.extend=function(S,b){return S.$i||(S(b,ee,I),S.$i=!0),I},I.locale=B,I.isDayjs=w,I.unix=function(S){return I(1e3*S)},I.en=_[Y],I.Ls=_,I.p={},I})}(Je)),Je.exports}var dn=cn();const Yt=sn(dn),fn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-switch");return o.openBlock(),o.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},pn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-input");return o.openBlock(),o.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),disabled:!(t!=null&&t.isEdit),clearable:""},null,8,["modelValue","disabled"])}}},hn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-input");return o.openBlock(),o.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),disabled:!(t!=null&&t.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},mn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-color-picker");return o.openBlock(),o.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),"show-alpha":""},null,8,["modelValue"])}}},gn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-input");return o.openBlock(),o.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},vn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n;return console.log("props.content",t.content),(e,r)=>{var a,l,i,s,u,c;return o.openBlock(),o.createBlock(rn,{rowContents:((a=t==null?void 0:t.content)==null?void 0:a.rowContents)??[],buttonValue:((l=t==null?void 0:t.content)==null?void 0:l.buttonValue)??[],isEnableWrap:(i=t==null?void 0:t.content)==null?void 0:i.isEnableWrap,isRowFlex:(s=t==null?void 0:t.content)==null?void 0:s.isRowFlex,isButtonRow:(u=t==null?void 0:t.content)==null?void 0:u.isButtonRow,rowValues:((c=t==null?void 0:t.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},bn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-radio"),i=o.resolveComponent("el-radio-group");return o.openBlock(),o.createBlock(i,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=s=>e.value=s),style:{height:"100%"}},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.content,(s,u)=>(o.openBlock(),o.createBlock(l,{key:u,label:s.label},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s==null?void 0:s.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},yn=["onDblclick"],_n={key:1,class:"tabs-label"},wn={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(n,{emit:t}){var c;const e=n,r=t,a=o.ref([]),l=o.ref((c=e==null?void 0:e.tabsContents[0])==null?void 0:c.value),i=p=>Bt(p),s=p=>{r("dblClick",p)},u=p=>{r("dbChange",p)};return o.watch(()=>e.tabsContents,()=>{a.value=it.cloneDeep(e.tabsContents)},{deep:!0,immediate:!0}),(p,d)=>{const E=o.resolveComponent("el-tab-pane"),v=o.resolveComponent("el-tabs");return o.openBlock(),o.createBlock(v,{type:"card",modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=h=>l.value=h)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(h,D)=>(o.openBlock(),o.createBlock(E,{key:D,name:h==null?void 0:h.value},{label:o.withCtx(()=>{var C;return[h!=null&&h.label?(o.openBlock(),o.createElementBlock("div",{key:0,onDblclick:f=>s(h)},o.toDisplayString(h==null?void 0:h.label),41,yn)):o.createCommentVNode("",!0),h!=null&&h.contents&&((C=h==null?void 0:h.contents)==null?void 0:C.length)>0?(o.openBlock(),o.createElementBlock("div",_n,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h==null?void 0:h.contents,(f,P)=>(o.openBlock(),o.createElementBlock("div",{key:P,class:"tabs-children"},[f!=null&&f.value||(f==null?void 0:f.value)===""?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i(f==null?void 0:f.type)),{key:0,modelValue:f.value,"onUpdate:modelValue":x=>f.value=x,content:(f==null?void 0:f.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):o.createCommentVNode("",!0)]))),128))])):o.createCommentVNode("",!0),o.renderSlot(p.$slots,`${(h==null?void 0:h.value)??""}_header`,{},void 0,!0)]}),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h==null?void 0:h.children,(C,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"tabs-contents"},[o.renderSlot(p.$slots,`${(C==null?void 0:C.value)??""}_operateButtons`,{},void 0,!0),C!=null&&C.value||(C==null?void 0:C.value)===""?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i(C==null?void 0:C.type)),{key:0,modelValue:C.value,"onUpdate:modelValue":P=>C.value=P,onDbChange:u,content:C==null?void 0:C.content},o.createSlots({_:2},[o.renderList(p.$slots,(P,x)=>({name:x,fn:o.withCtx(L=>[o.renderSlot(p.$slots,x,o.mergeProps({ref_for:!0},L||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):o.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},Et=_e._export_sfc(wn,[["__scopeId","data-v-c1c693d0"]]),En=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"})),Sn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n;return o.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(r=>{r.style.display="block"})}),(e,r)=>{var a;return o.openBlock(),o.createBlock(Et,{tabsContents:((a=t==null?void 0:t.content)==null?void 0:a.tabsContents)??[]},o.createSlots({_:2},[o.renderList(e.$slots,(l,i)=>({name:i,fn:o.withCtx(s=>[o.renderSlot(e.$slots,i,o.normalizeProps(o.guardReactiveProps(s||{})))])}))]),1032,["tabsContents"])}}};/**!
|
|
1
|
+
"use strict";const o=require("vue"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),it=require("./cloneDeep-BvDRsxdz.cjs"),Lt=require("./menu-BG4Pdw44.cjs"),an=require("./index-DoP2CURq.cjs"),ln=require("./index.vue_vue_type_script_setup_true_lang-BVU3XR-Q.cjs"),$t=require("./index-BpJD4V4R.cjs");function sn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Je={exports:{}},un=Je.exports,Tt;function cn(){return Tt||(Tt=1,function(n,t){(function(e,r){n.exports=r()})(un,function(){var e=1e3,r=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",c="day",p="week",d="month",E="quarter",v="year",h="date",D="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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(S){var b=["th","st","nd","rd"],m=S%100;return"["+S+(b[(m-20)%10]||b[m]||b[0])+"]"}},x=function(S,b,m){var k=String(S);return!k||k.length>=b?S:""+Array(b+1-k.length).join(m)+S},L={s:x,z:function(S){var b=-S.utcOffset(),m=Math.abs(b),k=Math.floor(m/60),y=m%60;return(b<=0?"+":"-")+x(k,2,"0")+":"+x(y,2,"0")},m:function S(b,m){if(b.date()<m.date())return-S(m,b);var k=12*(m.year()-b.year())+(m.month()-b.month()),y=b.clone().add(k,d),O=m-y<0,N=b.clone().add(k+(O?-1:1),d);return+(-(k+(m-y)/(O?y-N:N-y))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:v,w:p,d:c,D:h,h:u,m:s,s:i,ms:l,Q:E}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},Y="en",_={};_[Y]=P;var j="$isDayjsObject",w=function(S){return S instanceof ee||!(!S||!S[j])},B=function S(b,m,k){var y;if(!b)return Y;if(typeof b=="string"){var O=b.toLowerCase();_[O]&&(y=O),m&&(_[O]=m,y=O);var N=b.split("-");if(!y&&N.length>1)return S(N[0])}else{var R=b.name;_[R]=b,y=R}return!k&&y&&(Y=y),y||!k&&Y},I=function(S,b){if(w(S))return S.clone();var m=typeof b=="object"?b:{};return m.date=S,m.args=arguments,new ee(m)},V=L;V.l=B,V.i=w,V.w=function(S,b){return I(S,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var ee=function(){function S(m){this.$L=B(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[j]=!0}var b=S.prototype;return b.parse=function(m){this.$d=function(k){var y=k.date,O=k.utc;if(y===null)return new Date(NaN);if(V.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var N=y.match(C);if(N){var R=N[2]-1||0,W=(N[7]||"0").substring(0,3);return O?new Date(Date.UTC(N[1],R,N[3]||1,N[4]||0,N[5]||0,N[6]||0,W)):new Date(N[1],R,N[3]||1,N[4]||0,N[5]||0,N[6]||0,W)}}return new Date(y)}(m),this.init()},b.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},b.$utils=function(){return V},b.isValid=function(){return this.$d.toString()!==D},b.isSame=function(m,k){var y=I(m);return this.startOf(k)<=y&&y<=this.endOf(k)},b.isAfter=function(m,k){return I(m)<this.startOf(k)},b.isBefore=function(m,k){return this.endOf(k)<I(m)},b.$g=function(m,k,y){return V.u(m)?this[k]:this.set(y,m)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(m,k){var y=this,O=!!V.u(k)||k,N=V.p(m),R=function(Ee,ne){var ge=V.w(y.$u?Date.UTC(y.$y,ne,Ee):new Date(y.$y,ne,Ee),y);return O?ge:ge.endOf(c)},W=function(Ee,ne){return V.w(y.toDate()[Ee].apply(y.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(ne)),y)},J=this.$W,K=this.$M,ie=this.$D,Ce="set"+(this.$u?"UTC":"");switch(N){case v:return O?R(1,0):R(31,11);case d:return O?R(1,K):R(0,K+1);case p:var we=this.$locale().weekStart||0,Ne=(J<we?J+7:J)-we;return R(O?ie-Ne:ie+(6-Ne),K);case c:case h:return W(Ce+"Hours",0);case u:return W(Ce+"Minutes",1);case s:return W(Ce+"Seconds",2);case i:return W(Ce+"Milliseconds",3);default:return this.clone()}},b.endOf=function(m){return this.startOf(m,!1)},b.$set=function(m,k){var y,O=V.p(m),N="set"+(this.$u?"UTC":""),R=(y={},y[c]=N+"Date",y[h]=N+"Date",y[d]=N+"Month",y[v]=N+"FullYear",y[u]=N+"Hours",y[s]=N+"Minutes",y[i]=N+"Seconds",y[l]=N+"Milliseconds",y)[O],W=O===c?this.$D+(k-this.$W):k;if(O===d||O===v){var J=this.clone().set(h,1);J.$d[R](W),J.init(),this.$d=J.set(h,Math.min(this.$D,J.daysInMonth())).$d}else R&&this.$d[R](W);return this.init(),this},b.set=function(m,k){return this.clone().$set(m,k)},b.get=function(m){return this[V.p(m)]()},b.add=function(m,k){var y,O=this;m=Number(m);var N=V.p(k),R=function(K){var ie=I(O);return V.w(ie.date(ie.date()+Math.round(K*m)),O)};if(N===d)return this.set(d,this.$M+m);if(N===v)return this.set(v,this.$y+m);if(N===c)return R(1);if(N===p)return R(7);var W=(y={},y[s]=r,y[u]=a,y[i]=e,y)[N]||1,J=this.$d.getTime()+m*W;return V.w(J,this)},b.subtract=function(m,k){return this.add(-1*m,k)},b.format=function(m){var k=this,y=this.$locale();if(!this.isValid())return y.invalidDate||D;var O=m||"YYYY-MM-DDTHH:mm:ssZ",N=V.z(this),R=this.$H,W=this.$m,J=this.$M,K=y.weekdays,ie=y.months,Ce=y.meridiem,we=function(ne,ge,Ie,Ue){return ne&&(ne[ge]||ne(k,O))||Ie[ge].slice(0,Ue)},Ne=function(ne){return V.s(R%12||12,ne,"0")},Ee=Ce||function(ne,ge,Ie){var Ue=ne<12?"AM":"PM";return Ie?Ue.toLowerCase():Ue};return O.replace(f,function(ne,ge){return ge||function(Ie){switch(Ie){case"YY":return String(k.$y).slice(-2);case"YYYY":return V.s(k.$y,4,"0");case"M":return J+1;case"MM":return V.s(J+1,2,"0");case"MMM":return we(y.monthsShort,J,ie,3);case"MMMM":return we(ie,J);case"D":return k.$D;case"DD":return V.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return we(y.weekdaysMin,k.$W,K,2);case"ddd":return we(y.weekdaysShort,k.$W,K,3);case"dddd":return K[k.$W];case"H":return String(R);case"HH":return V.s(R,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return Ee(R,W,!0);case"A":return Ee(R,W,!1);case"m":return String(W);case"mm":return V.s(W,2,"0");case"s":return String(k.$s);case"ss":return V.s(k.$s,2,"0");case"SSS":return V.s(k.$ms,3,"0");case"Z":return N}return null}(ne)||N.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(m,k,y){var O,N=this,R=V.p(k),W=I(m),J=(W.utcOffset()-this.utcOffset())*r,K=this-W,ie=function(){return V.m(N,W)};switch(R){case v:O=ie()/12;break;case d:O=ie();break;case E:O=ie()/3;break;case p:O=(K-J)/6048e5;break;case c:O=(K-J)/864e5;break;case u:O=K/a;break;case s:O=K/r;break;case i:O=K/e;break;default:O=K}return y?O:V.a(O)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return _[this.$L]},b.locale=function(m,k){if(!m)return this.$L;var y=this.clone(),O=B(m,k,!0);return O&&(y.$L=O),y},b.clone=function(){return V.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()},S}(),q=ee.prototype;return I.prototype=q,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",v],["$D",h]].forEach(function(S){q[S[1]]=function(b){return this.$g(b,S[0],S[1])}}),I.extend=function(S,b){return S.$i||(S(b,ee,I),S.$i=!0),I},I.locale=B,I.isDayjs=w,I.unix=function(S){return I(1e3*S)},I.en=_[Y],I.Ls=_,I.p={},I})}(Je)),Je.exports}var dn=cn();const Yt=sn(dn),fn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-switch");return o.openBlock(),o.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},pn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-input");return o.openBlock(),o.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),disabled:!(t!=null&&t.isEdit),clearable:""},null,8,["modelValue","disabled"])}}},hn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-input");return o.openBlock(),o.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),disabled:!(t!=null&&t.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},mn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-color-picker");return o.openBlock(),o.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),"show-alpha":""},null,8,["modelValue"])}}},gn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-input");return o.openBlock(),o.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},vn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n;return console.log("props.content",t.content),(e,r)=>{var a,l,i,s,u,c;return o.openBlock(),o.createBlock(rn,{rowContents:((a=t==null?void 0:t.content)==null?void 0:a.rowContents)??[],buttonValue:((l=t==null?void 0:t.content)==null?void 0:l.buttonValue)??[],isEnableWrap:(i=t==null?void 0:t.content)==null?void 0:i.isEnableWrap,isRowFlex:(s=t==null?void 0:t.content)==null?void 0:s.isRowFlex,isButtonRow:(u=t==null?void 0:t.content)==null?void 0:u.isButtonRow,rowValues:((c=t==null?void 0:t.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},bn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n,e=o.ref(t.value);return(r,a)=>{const l=o.resolveComponent("el-radio"),i=o.resolveComponent("el-radio-group");return o.openBlock(),o.createBlock(i,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=s=>e.value=s),style:{height:"100%"}},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.content,(s,u)=>(o.openBlock(),o.createBlock(l,{key:u,label:s.label},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s==null?void 0:s.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},yn=["onDblclick"],_n={key:1,class:"tabs-label"},wn={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(n,{emit:t}){var c;const e=n,r=t,a=o.ref([]),l=o.ref((c=e==null?void 0:e.tabsContents[0])==null?void 0:c.value),i=p=>Bt(p),s=p=>{r("dblClick",p)},u=p=>{r("dbChange",p)};return o.watch(()=>e.tabsContents,()=>{a.value=it.cloneDeep(e.tabsContents)},{deep:!0,immediate:!0}),(p,d)=>{const E=o.resolveComponent("el-tab-pane"),v=o.resolveComponent("el-tabs");return o.openBlock(),o.createBlock(v,{type:"card",modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=h=>l.value=h)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(h,D)=>(o.openBlock(),o.createBlock(E,{key:D,name:h==null?void 0:h.value},{label:o.withCtx(()=>{var C;return[h!=null&&h.label?(o.openBlock(),o.createElementBlock("div",{key:0,onDblclick:f=>s(h)},o.toDisplayString(h==null?void 0:h.label),41,yn)):o.createCommentVNode("",!0),h!=null&&h.contents&&((C=h==null?void 0:h.contents)==null?void 0:C.length)>0?(o.openBlock(),o.createElementBlock("div",_n,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h==null?void 0:h.contents,(f,P)=>(o.openBlock(),o.createElementBlock("div",{key:P,class:"tabs-children"},[f!=null&&f.value||(f==null?void 0:f.value)===""?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i(f==null?void 0:f.type)),{key:0,modelValue:f.value,"onUpdate:modelValue":x=>f.value=x,content:(f==null?void 0:f.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):o.createCommentVNode("",!0)]))),128))])):o.createCommentVNode("",!0),o.renderSlot(p.$slots,`${(h==null?void 0:h.value)??""}_header`,{},void 0,!0)]}),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h==null?void 0:h.children,(C,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"tabs-contents"},[o.renderSlot(p.$slots,`${(C==null?void 0:C.value)??""}_operateButtons`,{},void 0,!0),C!=null&&C.value||(C==null?void 0:C.value)===""?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i(C==null?void 0:C.type)),{key:0,modelValue:C.value,"onUpdate:modelValue":P=>C.value=P,onDbChange:u,content:C==null?void 0:C.content},o.createSlots({_:2},[o.renderList(p.$slots,(P,x)=>({name:x,fn:o.withCtx(L=>[o.renderSlot(p.$slots,x,o.mergeProps({ref_for:!0},L||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):o.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},Et=_e._export_sfc(wn,[["__scopeId","data-v-c1c693d0"]]),En=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"})),Sn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const t=n;return o.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(r=>{r.style.display="block"})}),(e,r)=>{var a;return o.openBlock(),o.createBlock(Et,{tabsContents:((a=t==null?void 0:t.content)==null?void 0:a.tabsContents)??[]},o.createSlots({_:2},[o.renderList(e.$slots,(l,i)=>({name:i,fn:o.withCtx(s=>[o.renderSlot(e.$slots,i,o.normalizeProps(o.guardReactiveProps(s||{})))])}))]),1032,["tabsContents"])}}};/**!
|
|
2
2
|
* Sortable 1.15.6
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),D=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),D=require("./index-D5rY52ZQ.cjs"),b=require("./index-BQGuPIy3.cjs"),i=require("./index-cTGqRce7.cjs"),r=require("./menu-BG4Pdw44.cjs"),v=require("./index-CMPOgoKS.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y={class:"role-wrapper"},q=t.defineComponent({__name:"index",setup(S){const g=r.useMenuState(),{activeMenuPath:h}=r.storeToRefs(g),_=v.useModelComp(),{itemData:k}=r.storeToRefs(_),n=t.reactive({...i.State});return t.onMounted(()=>{if(i.getModelSecretAsync(),h.value){n.refreshUserTableData();const s=n.getPageDataAsync("/系统管理/角色管理"),c=n.getPageDataAsync("/系统管理/部门管理");Promise.all([s,c]).then(a=>{var l,u,d;const C=(l=a==null?void 0:a[0])==null?void 0:l.map(e=>({label:e==null?void 0:e.roleName,value:e==null?void 0:e.roleName})),f=(u=a==null?void 0:a[1])==null?void 0:u.map(e=>({label:e==null?void 0:e.deptName,value:e==null?void 0:e.deptName}));n.pageData=(d=n.pageData)==null?void 0:d.map(e=>{var p;return e.key==="header"?{...e,contents:(p=e.contents)==null?void 0:p.map(o=>o.label==="所属机构"?{...o,options:f}:o.label==="角色"?{...o,options:C}:o)}:e})})}}),(s,c)=>(t.openBlock(),t.createElementBlock("div",y,[t.createVNode(D.ssForm,{class:"role-header",rowContents:n.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:n.handleQueryChange},null,8,["rowContents","onChange"]),t.createVNode(b.ssTable,{class:"role-body",itemData:n.pageData,changedContent:n.changedRow,onChange:n.handleItemDataChange,onOnButtonClick:n.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]))}}),P=x._export_sfc(q,[["__scopeId","data-v-6ceec3ee"]]);exports.default=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-CMPOgoKS.cjs"),f=require("./login-8A7jExoo.cjs"),o=require("./menu-BG4Pdw44.cjs"),D=o.useMenuState(a.pinia),m=f.useLoginState(a.pinia),I=()=>{const S=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),d=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});Promise.all([S,d]).then(t=>{var r,u,n,i,c,g,l,y;const e=t==null?void 0:t[0],s=t==null?void 0:t[1];if(e.data.code===200){const p=(l=(g=(c=(i=(n=(u=(r=e==null?void 0:e.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:n.value)==null?void 0:i.pageData)==null?void 0:c.compData)==null?void 0:g[0])==null?void 0:l.contents;D.setRawMenus(p??[])}else o.ElMessage.error("获取模型菜单响应失败");s.data.code===200?s.data.result&&((y=s.data.result)==null?void 0:y.length)>0&&(m.setStructureData(s.data.result),m.setIsStructureExist(!0)):o.ElMessage.error("获取模型结构响应失败")})};exports.verifyStructureDataToStore=I;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as p, onMounted as u, createElementBlock as i, openBlock as d, createVNode as s } from "vue";
|
|
2
|
-
import { s as f } from "./index-
|
|
3
|
-
import { s as _ } from "./index-
|
|
4
|
-
import { S as h } from "./index-
|
|
5
|
-
import { u as g } from "./index-
|
|
6
|
-
import { s as r, u as C } from "./menu-
|
|
2
|
+
import { s as f } from "./index-BUWGBMF0.js";
|
|
3
|
+
import { s as _ } from "./index-DrutW1iS.js";
|
|
4
|
+
import { S as h } from "./index-DgRo67K-.js";
|
|
5
|
+
import { u as g } from "./index-BlNV_ehx.js";
|
|
6
|
+
import { s as r, u as C } from "./menu-BoJy4Bts.js";
|
|
7
7
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const b = { class: "role-wrapper" }, v = /* @__PURE__ */ l({
|
|
9
9
|
__name: "index",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createElementBlock as O, openBlock as P, createElementVNode as i, renderSlot as l, defineComponent as W, ref as z, resolveComponent as x, createVNode as c, withCtx as R, reactive as y, watch as p, unref as m, toDisplayString as D, createTextVNode as G } from "vue";
|
|
2
2
|
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { u as AA, l as EA } from "./index-
|
|
3
|
+
import { u as AA, l as EA } from "./index-TV8ZUYRm.js";
|
|
4
4
|
import { useRouter as IA } from "vue-router";
|
|
5
|
-
import { u as gA } from "./login-
|
|
6
|
-
import { p as CA, g as b } from "./index-
|
|
7
|
-
import { v as BA } from "./index-
|
|
8
|
-
import { d as QA } from "./index-
|
|
9
|
-
import { E as f } from "./menu-
|
|
5
|
+
import { u as gA } from "./login-BfyKbJ4u.js";
|
|
6
|
+
import { p as CA, g as b } from "./index-BlNV_ehx.js";
|
|
7
|
+
import { v as BA } from "./index-Dv2vGaNh.js";
|
|
8
|
+
import { d as QA } from "./index-CzPK07L1.js";
|
|
9
|
+
import { E as f } from "./menu-BoJy4Bts.js";
|
|
10
10
|
const iA = {}, oA = { class: "header-wrapper" }, RA = { class: "header-horizontal" }, eA = { class: "header-logo" }, cA = { class: "header-cTitle" }, nA = { class: "header-horizontal" }, JA = { class: "header-eTitle" };
|
|
11
11
|
function wA(F, Y) {
|
|
12
12
|
return P(), O("div", oA, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const I=require("./index-
|
|
1
|
+
"use strict";const I=require("./index-CMPOgoKS.cjs");function o(i){return I.service({url:"/api/sysFile/uploadAvatar",method:"post",data:i,headers:{Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMDEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50Ijoic3VwZXJhZG1pbiIsIlJlYWxOYW1lIjoi6LaF57qn566h55CG5ZGYIiwiQWNjb3VudFR5cGUiOjk5OSwiT3JnSWQiOjAsIk9yZ05hbWUiOm51bGwsIk9yZ1R5cGUiOm51bGwsImlhdCI6MTc0OTcwOTM0NCwibmJmIjoxNzQ5NzA5MzQ0LCJleHAiOjE3NTAzMTQxNDQsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.ITuVhBJHidiyS-D-3suoiot2YtjgKbj6x_YcN1NquW4","Content-Type":"multipart/form-data"}})}function t(i){return I.service({url:"/api/sysFile/downloadFile",method:"post",data:i,headers:{Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMDEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50Ijoic3VwZXJhZG1pbiIsIlJlYWxOYW1lIjoi6LaF57qn566h55CG5ZGYIiwiQWNjb3VudFR5cGUiOjk5OSwiT3JnSWQiOjAsIk9yZ05hbWUiOm51bGwsIk9yZ1R5cGUiOm51bGwsImlhdCI6MTc0OTcwOTM0NCwibmJmIjoxNzQ5NzA5MzQ0LCJleHAiOjE3NTAzMTQxNDQsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.ITuVhBJHidiyS-D-3suoiot2YtjgKbj6x_YcN1NquW4",Accept:"application/octet-stream"},responseType:"blob"})}exports.downloadAvatarApi=t;exports.uploadAvatarApi=o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Ab=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ji=require("./cloneDeep-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Ab=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ji=require("./cloneDeep-BvDRsxdz.cjs");/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -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 g, createSlots as b, renderSlot as u, mergeProps as O, computed as S } from "vue";
|
|
2
|
-
import { u as q, s as E } from "./menu-
|
|
2
|
+
import { u as q, s as E } from "./menu-BoJy4Bts.js";
|
|
3
3
|
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const R = /* @__PURE__ */ w({
|
|
5
5
|
__name: "menuItem",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as r, watch as u } from "vue";
|
|
2
|
-
import { g as b, u as y } from "./index-
|
|
3
|
-
import { s as d, h as m } from "./index-
|
|
2
|
+
import { g as b, u as y } from "./index-BlNV_ehx.js";
|
|
3
|
+
import { s as d, h as m } from "./index-CzPK07L1.js";
|
|
4
4
|
import { useRoute as g } from "vue-router";
|
|
5
|
-
import { s as D } from "./menu-
|
|
5
|
+
import { s as D } from "./menu-BoJy4Bts.js";
|
|
6
6
|
g();
|
|
7
7
|
const f = y(), { itemData: i } = D(f), h = r([
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index-D5rY52ZQ.cjs"),l=require("./index-BQGuPIy3.cjs"),d=require("./index-BjFOAFCD.cjs"),p=require("./index-CMPOgoKS.cjs"),o=require("./menu-BG4Pdw44.cjs"),_=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m={class:"role-wrapper"},g=t.defineComponent({__name:"index",setup(C){const e=t.reactive({...d.State}),c=p.useModelComp(),{itemData:f}=o.storeToRefs(c),u=o.useMenuState(),{menus:x,activeMenuPath:r}=o.storeToRefs(u);return t.onMounted(()=>{r.value&&e.getPageDataAsync(r.value).then(s=>{var n;e.pageData=(n=e.pageData)==null?void 0:n.map(a=>a.key==="tableContents"?{...a,contents:s}:a)})}),(s,n)=>(t.openBlock(),t.createElementBlock("div",m,[t.createVNode(i.ssForm,{class:"role-header",rowContents:e.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:e.handleQueryChange},null,8,["rowContents","onChange"]),t.createVNode(l.ssTable,{class:"role-body",itemData:e.pageData,onChange:e.handleItemDataChange},null,8,["itemData","onChange"])]))}}),h=_._export_sfc(g,[["__scopeId","data-v-91a3e340"]]);exports.default=h;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { resolveComponent as n, createElementBlock as r, openBlock as c, createVNode as d } from "vue";
|
|
2
|
-
import "./array-
|
|
3
|
-
import "./index-
|
|
2
|
+
import "./array-5QxNXcTQ.js";
|
|
3
|
+
import "./index-BlNV_ehx.js";
|
|
4
4
|
import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import "./index.vue_vue_type_style_index_0_scoped_997b1786_lang-
|
|
6
|
-
import "./menu-
|
|
7
|
-
import "./index.vue_vue_type_style_index_0_scoped_fb273504_lang-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./login-
|
|
5
|
+
import "./index.vue_vue_type_style_index_0_scoped_997b1786_lang-BMbtiXnw.js";
|
|
6
|
+
import "./menu-BoJy4Bts.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_0_scoped_fb273504_lang-BhsOIFke.js";
|
|
8
|
+
import "./index-Dv2vGaNh.js";
|
|
9
|
+
import "./login-BfyKbJ4u.js";
|
|
10
10
|
const i = {
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|