ss-component-new 1.1.698 → 1.1.700
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/{index-DxrjllbF.js → index-0HVaDday.js} +5 -5
- package/dist/{index-mSiM08XO.cjs → index-3QcIIUEm.cjs} +1 -1
- package/dist/{index-BUOqmnr1.js → index-8xlKMpoE.js} +2 -2
- package/dist/{index-ChAZZ84C.js → index-93C8iyFE.js} +1 -1
- package/dist/{index-DaFNlkVn.cjs → index-B6mToQuG.cjs} +1 -1
- package/dist/{index-BsBeSNvj.cjs → index-BATTsE24.cjs} +1 -1
- package/dist/{index-CjTtH3iG.cjs → index-BHQVIwyk.cjs} +1 -1
- package/dist/{index-BeqjWwF2.cjs → index-BWEZHRoP.cjs} +1 -1
- package/dist/{index-CZ6oBUBt.cjs → index-BwFFWhXT.cjs} +2 -2
- package/dist/{index-BpvHGyf6.cjs → index-Byg_ytVM.cjs} +1 -1
- package/dist/index-CExnWkA_.js +4769 -0
- package/dist/index-CFKxyViV.cjs +1 -0
- package/dist/index-CFhcz74Q.cjs +1 -0
- package/dist/{index-B1S9Dzme.js → index-CHpug0AB.js} +2 -2
- package/dist/{index-F1x8EXXA.js → index-CKIdU8EK.js} +10 -10
- package/dist/{index-B_bn1wCC.js → index-CcqdORI3.js} +2 -2
- package/dist/{index-BZM2_zPc.cjs → index-CoWciNYv.cjs} +1 -1
- package/dist/{index-B8nJgkUa.js → index-CpVbq1-M.js} +3 -3
- package/dist/{index-DbHctCnv.js → index-CxaglDTy.js} +1861 -1821
- package/dist/{index-CYKhq8sw.cjs → index-D1XVwmSY.cjs} +1 -1
- package/dist/{index-Dn_QG3d2.js → index-D6qD21Ix.js} +2 -2
- package/dist/{index-Y_c9dFQj.js → index-D7H4IUAy.js} +27 -24
- package/dist/{index-BgRl1qMV.js → index-DEq7wJY1.js} +2 -2
- package/dist/{index-D1womnEA.cjs → index-DLjoqkdV.cjs} +1 -1
- package/dist/index-DN2QwSUK.js +125 -0
- package/dist/{index-CFVOgGj1.cjs → index-DXOWTqkQ.cjs} +1 -1
- package/dist/{index-mD27YMPM.cjs → index-De0Htvy7.cjs} +12 -12
- package/dist/{index-CIHvOoqd.js → index-DiQO9fWs.js} +1 -1
- package/dist/{index-Bzuv40wJ.cjs → index-DjE5Ysww.cjs} +1 -1
- package/dist/{index-ClgAgCpw.js → index-DoIEdw8s.js} +1 -1
- package/dist/{index-C9NcFtmZ.cjs → index-PQkyr0fX.cjs} +1 -1
- package/dist/{index-CLLCPIe1.cjs → index-Q1KFBEHT.cjs} +1 -1
- package/dist/{index-DP7baxDl.js → index-hV6DKDhA.js} +1 -1
- package/dist/{index-Duf7yQQ6.cjs → index-lidssfyt.cjs} +1 -1
- package/dist/{index-CZuhcyhp.js → index-taLX3PyV.js} +1 -1
- package/dist/{index-C_JNGkei.js → index-tvN7VQd9.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bdi7bQCG.js → index.vue_vue_type_script_setup_true_lang-BLoXxbh7.js} +14 -14
- package/dist/{index.vue_vue_type_script_setup_true_lang-CXeCyTKp.cjs → index.vue_vue_type_script_setup_true_lang-C5Da5wgR.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-2BcDac2G.js +112098 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BoeHjHvL.cjs +1467 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-Dt5qoOMc.js → index.vue_vue_type_style_index_0_scoped_8606206c_lang-BTJIrX9N.js} +6005 -5999
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-JS7kF5je.cjs → index.vue_vue_type_style_index_0_scoped_8606206c_lang-CSBgd-nK.cjs} +13 -13
- package/dist/index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CChyQerd.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BBkr1W1X.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-aXLz0m42.js} +33 -33
- package/dist/{main-Bi5NlT0c.js → main-CyQ4UF_Y.js} +2 -2
- package/dist/{main-CJ-1BktL.cjs → main-DeQ7S8rk.cjs} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-B0JK1Y9v.cjs → threeModel-D8WCN59B.cjs} +1 -1
- package/dist/{threeModel-BVqd798T.js → threeModel-eIUmTdU1.js} +1 -1
- package/package.json +2 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-BufGU2BU.js +0 -44011
- package/dist/index-CFMTZTDC.js +0 -4738
- package/dist/index-D8uS0jm3.cjs +0 -1
- package/dist/index-DD6f1KgD.cjs +0 -87
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CpTOpvSV.cjs +0 -1354
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-wNjXKsdd.js +0 -61914
- package/dist/index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BHIuNqQt.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("vue"),T=require("./menu-CfFgYmpV.cjs"),pe=require("./modelComp-BR-oztFR.cjs"),fe=require("./index-CZ6oBUBt.cjs"),ie=require("./index-BZkH2AYa.cjs"),y=require("./index-2p69g4HY.cjs"),de=require("./login-CViEGqhb.cjs"),E=pe.useModelComp(T.pinia),m=fe.useUnit(T.pinia),I=T.useMenuState(T.pinia),{menus:ee,configMenu:x,activeMenuPath:$,cacheStructures:F}=T.storeToRefs(I),_=d.ref(!1),te=d.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=T.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),j=d.ref([]),q=d.ref([{label:"新建"}]),ge=d.computed(()=>[{key:"extraButton",contents:q.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:j.value}]),J=d.ref([]),k=d.ref({}),ve=d.ref({}),R=d.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),O=e=>{var t;J.value=e?(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):R.value},ye=d.ref([{label:"查询"},{label:"重置"}]),be=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=d.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=d.ref([]),C=d.ref({}),h=d.ref(null),ae=d.ref([]),oe=d.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await y.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},he=async e=>{var t;_.value=!0,h.value={...e,rootNode:de.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?q.value.splice(0):(q.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await K(e)},Ce=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},Ie=async(e,t)=>{var l,u;if(!h.value)return y.ElMessage.warning("请先选择菜单");if(g.type=Ce(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=T.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":O(null),await I.setConfigMenu(null);break;case"update":O(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await d.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=d.ref(!0),ke=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};d.watch(()=>ue.value,async e=>{var t;await d.nextTick(),J.value=(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Te=d.ref(null),Me=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=F.value)==null?void 0:r.filter(i=>(i==null?void 0:i.key)===t))==null?void 0:p.flatMap(i=>i==null?void 0:i.data);E.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return y.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var i;return((i=a==null?void 0:a.data)==null?void 0:i.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(i=>{var M,D,N,P,A,o,B;return{id:(N=(D=(M=i==null?void 0:i.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(B=(o=(A=(P=i==null?void 0:i.data)==null?void 0:P.result)==null?void 0:A[0])==null?void 0:o.value)==null?void 0:B.pageData}});E.setItemData(a),I.setCacheStructures({key:t,data:a})}},De=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Me(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;g.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=x.value),await I.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},K=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:$.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&(j.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),_.value=!1},H=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:$.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.ElMessage.error("保存响应失败"),new Error("保存响应失败");const i=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:i,key:l}}}catch{y.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(H(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(H(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(H(s,"update",e))})),l},Se=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},we=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await d.nextTick();const a=(n=(u=(l=F.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let i=(p=(r=(c=F.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);i=[...i,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const M=Y(b,a),D=Y(s,i),N=Z("dialogConfig",M),P=Z("contentConfig",D),A=[...N,...P];await Promise.all(A).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const ce=Se(w);re({...t,isNotInitial:!0,structureIds:ce},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:$.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),ie.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&j.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),K(h.value)})},Ne=async()=>{var l,u,n,c,r;const e=JSON.parse(T.cloneDeep(JSON.stringify(F.value)));await d.nextTick();const t=g.type==="create"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await we(e,t),k.value={},g.show=!1,await K(h.value)},Pe=()=>{g.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},Ae=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Pe,buttonValue:ye,changeTrigger:ke,changedRow:ve,clickNodeTrigger:he,clickRowButton:Ie,clickSubmitForm:Ne,clickTrigger:De,dialogInfo:g,formatFormData:O,getInitialSubStructure:ne,getTableDataAsync:K,handleItemDataChange:be,inputForm:k,menuPageData:ge,operatingForm:Te,pageData:te,renderFormData:J,tableLoading:_,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=Ae;exports.tempMenuPageData=se;
|
|
1
|
+
"use strict";const d=require("vue"),T=require("./menu-CfFgYmpV.cjs"),pe=require("./modelComp-BR-oztFR.cjs"),fe=require("./index-BwFFWhXT.cjs"),ie=require("./index-BZkH2AYa.cjs"),y=require("./index-2p69g4HY.cjs"),de=require("./login-CViEGqhb.cjs"),E=pe.useModelComp(T.pinia),m=fe.useUnit(T.pinia),I=T.useMenuState(T.pinia),{menus:ee,configMenu:x,activeMenuPath:$,cacheStructures:F}=T.storeToRefs(I),_=d.ref(!1),te=d.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=T.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),j=d.ref([]),q=d.ref([{label:"新建"}]),ge=d.computed(()=>[{key:"extraButton",contents:q.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:j.value}]),J=d.ref([]),k=d.ref({}),ve=d.ref({}),R=d.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),O=e=>{var t;J.value=e?(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):R.value},ye=d.ref([{label:"查询"},{label:"重置"}]),be=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=d.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=d.ref([]),C=d.ref({}),h=d.ref(null),ae=d.ref([]),oe=d.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await y.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},he=async e=>{var t;_.value=!0,h.value={...e,rootNode:de.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?q.value.splice(0):(q.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await K(e)},Ce=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},Ie=async(e,t)=>{var l,u;if(!h.value)return y.ElMessage.warning("请先选择菜单");if(g.type=Ce(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=T.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":O(null),await I.setConfigMenu(null);break;case"update":O(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await d.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=d.ref(!0),ke=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};d.watch(()=>ue.value,async e=>{var t;await d.nextTick(),J.value=(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Te=d.ref(null),Me=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=F.value)==null?void 0:r.filter(i=>(i==null?void 0:i.key)===t))==null?void 0:p.flatMap(i=>i==null?void 0:i.data);E.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return y.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var i;return((i=a==null?void 0:a.data)==null?void 0:i.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(i=>{var M,D,N,P,A,o,B;return{id:(N=(D=(M=i==null?void 0:i.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(B=(o=(A=(P=i==null?void 0:i.data)==null?void 0:P.result)==null?void 0:A[0])==null?void 0:o.value)==null?void 0:B.pageData}});E.setItemData(a),I.setCacheStructures({key:t,data:a})}},De=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Me(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;g.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=x.value),await I.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},K=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:$.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&(j.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),_.value=!1},H=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:$.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.ElMessage.error("保存响应失败"),new Error("保存响应失败");const i=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:i,key:l}}}catch{y.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(H(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(H(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(H(s,"update",e))})),l},Se=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},we=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await d.nextTick();const a=(n=(u=(l=F.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let i=(p=(r=(c=F.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);i=[...i,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const M=Y(b,a),D=Y(s,i),N=Z("dialogConfig",M),P=Z("contentConfig",D),A=[...N,...P];await Promise.all(A).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const ce=Se(w);re({...t,isNotInitial:!0,structureIds:ce},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:$.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),ie.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&j.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),K(h.value)})},Ne=async()=>{var l,u,n,c,r;const e=JSON.parse(T.cloneDeep(JSON.stringify(F.value)));await d.nextTick();const t=g.type==="create"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await we(e,t),k.value={},g.show=!1,await K(h.value)},Pe=()=>{g.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},Ae=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Pe,buttonValue:ye,changeTrigger:ke,changedRow:ve,clickNodeTrigger:he,clickRowButton:Ie,clickSubmitForm:Ne,clickTrigger:De,dialogInfo:g,formatFormData:O,getInitialSubStructure:ne,getTableDataAsync:K,handleItemDataChange:be,inputForm:k,menuPageData:ge,operatingForm:Te,pageData:te,renderFormData:J,tableLoading:_,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=Ae;exports.tempMenuPageData=se;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as $, computed as F, ref as h, watch as P, createElementBlock as E, openBlock as p, createVNode as v, createElementVNode as j, withCtx as c, createTextVNode as T, toDisplayString as k, resolveComponent as B, createBlock as U, Fragment as V, renderList as z, normalizeStyle as R } from "vue";
|
|
2
|
-
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as H, u as L, S as M } from "./index-
|
|
2
|
+
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-BLoXxbh7.js";
|
|
3
|
+
import { d as H, u as L, S as M } from "./index-CxaglDTy.js";
|
|
4
4
|
import { E as N } from "./index-BCZ59Y4K.js";
|
|
5
5
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import { S as x } from "./index-BHtNKL1L.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as Ye, watch as fi, nextTick as Ir, resolveComponent as Jn, createBlock as ni, openBlock as Vt, withCtx as Yt, createElementVNode as _t, renderSlot as Wc, createElementBlock as cn, computed as Ms, onMounted as Hr, onUnmounted as Ju, Fragment as xs, renderList as er, createCommentVNode as ci, toDisplayString as bn, createVNode as Dt, defineComponent as fc, normalizeStyle as Ya, normalizeClass as Ja, onBeforeUnmount as Ku, withDirectives as ki, unref as wn, isRef as jr, vModelRadio as qr, vShow as $r, createTextVNode as gs, createSlots as Zu } from "vue";
|
|
2
2
|
import { s as _s, p as $i, c as st, f as oo, u as Qu } from "./menu-DznNubRA.js";
|
|
3
|
-
import { d as Pr, e as Ka, k as e2, s as yo, f as t2 } from "./index-
|
|
3
|
+
import { d as Pr, e as Ka, k as e2, s as yo, f as t2 } from "./index-CxaglDTy.js";
|
|
4
4
|
import { bp as n2, d as i2, bq as s2, a as tr, E as Za, b6 as r2, aR as a2, g as o2 } from "./index-BCZ59Y4K.js";
|
|
5
5
|
import { u as pc } from "./modelComp-BuMlc62t.js";
|
|
6
|
-
import {
|
|
6
|
+
import { B as Ba, M as l2, a as c2, N as Xc, O as h2, P as u2, F as jc, g as Ps, J as as, Q as d2, R as f2, T as p2 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-2BcDac2G.js";
|
|
7
7
|
import { _ as zi } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
import { u as m2 } from "./login-CA5LBy6E.js";
|
|
9
9
|
var g2 = "[object String]";
|
|
@@ -29831,7 +29831,7 @@ const L6 = { class: "panel-content" }, D6 = {
|
|
|
29831
29831
|
), (n, i) => {
|
|
29832
29832
|
var r, o, a;
|
|
29833
29833
|
return Vt(), cn("div", L6, [
|
|
29834
|
-
(Vt(), ni(
|
|
29834
|
+
(Vt(), ni(l8, {
|
|
29835
29835
|
itemData: (r = t.value) == null ? void 0 : r.compData,
|
|
29836
29836
|
key: (o = t.value) == null ? void 0 : o.id,
|
|
29837
29837
|
index: (a = t.value) == null ? void 0 : a.id,
|
|
@@ -30803,7 +30803,7 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30803
30803
|
};
|
|
30804
30804
|
}
|
|
30805
30805
|
}), L5 = /* @__PURE__ */ zi(P5, [["__scopeId", "data-v-73ec704e"]]), D5 = pc($i), { systemPath: q0 } = _s(D5), Oa = Ye(), $0 = /* @__PURE__ */ new Map();
|
|
30806
|
-
function
|
|
30806
|
+
function _8(s, e, t, n, i) {
|
|
30807
30807
|
const r = async (u) => {
|
|
30808
30808
|
try {
|
|
30809
30809
|
const h = await Pr({ url: u });
|
|
@@ -31419,10 +31419,10 @@ const F5 = oo("formToTableComp", {
|
|
|
31419
31419
|
}, J5 = ["onClick"], K5 = { title: "选择显示列信息" }, Z5 = {
|
|
31420
31420
|
class: "menu-config-wrap",
|
|
31421
31421
|
style: { padding: "0 0 0 16px", "box-sizing": "border-box", "max-height": "300px", width: "300px", overflow: "auto" }
|
|
31422
|
-
}, Q5 = { class: "file-list-pop" },
|
|
31422
|
+
}, Q5 = { class: "pop-view" }, e8 = { class: "pop-wrapper" }, t8 = { class: "file-list-pop" }, n8 = ["title", "onClick"], i8 = ["onClick"], s8 = { class: "form-content" }, r8 = {
|
|
31423
31423
|
key: 0,
|
|
31424
31424
|
class: "dialog-footer"
|
|
31425
|
-
},
|
|
31425
|
+
}, a8 = { class: "dialog-footer" }, o8 = {
|
|
31426
31426
|
__name: "index",
|
|
31427
31427
|
props: {
|
|
31428
31428
|
compName: {
|
|
@@ -32311,28 +32311,31 @@ const F5 = oo("formToTableComp", {
|
|
|
32311
32311
|
content: Yt((ee) => [
|
|
32312
32312
|
Cs(ee) ? (Vt(), ni(de, {
|
|
32313
32313
|
key: 0,
|
|
32314
|
+
"popper-class": "file-popover",
|
|
32314
32315
|
placement: "right",
|
|
32315
32316
|
trigger: "hover",
|
|
32316
32317
|
effect: "light",
|
|
32317
32318
|
width: "auto"
|
|
32318
32319
|
}, {
|
|
32319
32320
|
reference: Yt(() => [
|
|
32320
|
-
_t("span",
|
|
32321
|
+
_t("span", Q5, bn(rs(ee)), 1)
|
|
32321
32322
|
]),
|
|
32322
32323
|
default: Yt(() => {
|
|
32323
32324
|
var Be;
|
|
32324
32325
|
return [
|
|
32325
|
-
(
|
|
32326
|
-
|
|
32327
|
-
|
|
32328
|
-
|
|
32329
|
-
|
|
32330
|
-
|
|
32331
|
-
|
|
32332
|
-
|
|
32333
|
-
|
|
32334
|
-
|
|
32335
|
-
|
|
32326
|
+
_t("div", e8, [
|
|
32327
|
+
(Vt(!0), cn(xs, null, er(ee == null ? void 0 : ee.row[(Be = ee == null ? void 0 : ee.column) == null ? void 0 : Be.prop], (Ge) => (Vt(), cn("div", t8, [
|
|
32328
|
+
_t("div", {
|
|
32329
|
+
class: "prop-url",
|
|
32330
|
+
title: it(Ge),
|
|
32331
|
+
onClick: (ut) => Qt(Ge)
|
|
32332
|
+
}, bn(it(Ge)), 9, n8),
|
|
32333
|
+
_t("div", {
|
|
32334
|
+
class: "prop-download",
|
|
32335
|
+
onClick: (ut) => k(Ge)
|
|
32336
|
+
}, " 下载 ", 8, i8)
|
|
32337
|
+
]))), 256))
|
|
32338
|
+
])
|
|
32336
32339
|
];
|
|
32337
32340
|
}),
|
|
32338
32341
|
_: 2
|
|
@@ -32395,7 +32398,7 @@ const F5 = oo("formToTableComp", {
|
|
|
32395
32398
|
onBeforeDestroy: Fe
|
|
32396
32399
|
}, {
|
|
32397
32400
|
default: Yt(() => [
|
|
32398
|
-
_t("div",
|
|
32401
|
+
_t("div", s8, [
|
|
32399
32402
|
Dt(Ka, {
|
|
32400
32403
|
rowContents: K.value,
|
|
32401
32404
|
isEnableWrap: !1,
|
|
@@ -32407,7 +32410,7 @@ const F5 = oo("formToTableComp", {
|
|
|
32407
32410
|
])
|
|
32408
32411
|
]),
|
|
32409
32412
|
footer: Yt(() => [
|
|
32410
|
-
Z.value ? (Vt(), cn("div",
|
|
32413
|
+
Z.value ? (Vt(), cn("div", r8, [
|
|
32411
32414
|
Dt(Ee, {
|
|
32412
32415
|
onClick: G[4] || (G[4] = (ee) => L.value = !1),
|
|
32413
32416
|
id: "themeBorderButton"
|
|
@@ -32443,7 +32446,7 @@ const F5 = oo("formToTableComp", {
|
|
|
32443
32446
|
Dt(O5)
|
|
32444
32447
|
]),
|
|
32445
32448
|
footer: Yt(() => [
|
|
32446
|
-
_t("div",
|
|
32449
|
+
_t("div", a8, [
|
|
32447
32450
|
Dt(Ee, {
|
|
32448
32451
|
onClick: G[5] || (G[5] = (ee) => S.value = !1),
|
|
32449
32452
|
class: "cancel-button",
|
|
@@ -32492,7 +32495,7 @@ const F5 = oo("formToTableComp", {
|
|
|
32492
32495
|
]);
|
|
32493
32496
|
};
|
|
32494
32497
|
}
|
|
32495
|
-
},
|
|
32498
|
+
}, l8 = /* @__PURE__ */ zi(o8, [["__scopeId", "data-v-089309a6"]]);
|
|
32496
32499
|
export {
|
|
32497
32500
|
Z0 as A,
|
|
32498
32501
|
Hn as B,
|
|
@@ -32527,9 +32530,9 @@ export {
|
|
|
32527
32530
|
hi as p,
|
|
32528
32531
|
Tt as q,
|
|
32529
32532
|
Ji as r,
|
|
32530
|
-
|
|
32533
|
+
l8 as s,
|
|
32531
32534
|
M5 as t,
|
|
32532
32535
|
B5 as u,
|
|
32533
32536
|
Au as v,
|
|
32534
|
-
|
|
32537
|
+
_8 as w
|
|
32535
32538
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { resolveComponent as L, createElementBlock as _, openBlock as r, Fragment as j, renderList as q, unref as W, createElementVNode as C, createVNode as D, toDisplayString as E, ref as I, watch as A, withCtx as z, createBlock as G, resolveDynamicComponent as H, createCommentVNode as y, normalizeStyle as X, withModifiers as w } from "vue";
|
|
2
|
-
import { s as Y, g as J } from "./index-
|
|
2
|
+
import { s as Y, g as J } from "./index-CExnWkA_.js";
|
|
3
3
|
import { p as B, s as V, c as v } from "./menu-DznNubRA.js";
|
|
4
4
|
import { u as S } from "./modelComp-BuMlc62t.js";
|
|
5
5
|
import "./array-Tj9n22LW.js";
|
|
6
6
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import Z from "./index-CZtXRS3l.js";
|
|
8
|
-
import { b as ee } from "./index-
|
|
8
|
+
import { b as ee } from "./index-CxaglDTy.js";
|
|
9
9
|
import { E as te } from "./index-COhyHXFv.js";
|
|
10
10
|
import { E as ne } from "./index-BCZ59Y4K.js";
|
|
11
11
|
const oe = { class: "type-select" }, se = ["onClick"], ae = { class: "list-icon" }, le = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./index-BwFFWhXT.cjs"),p=require("./index-BZkH2AYa.cjs"),d=require("./menu-CfFgYmpV.cjs"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"role-wrapper"},V={class:"role-dialog-header"},v=["title"],B={class:"dialog-footer"},m=e.defineComponent({__name:"index",setup(N){const g=d.useMenuState(),{menus:_,activeMenuPath:C}=d.storeToRefs(g),o=e.reactive({...p.State$1}),{treeRef:k}=p.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(C.value)});const h=r=>r==null?void 0:r.map(t=>{var n,c,i;return t!=null&&t.childMenus&&((n=t==null?void 0:t.childMenus)==null?void 0:n.length)>0?{...t,childMenus:[],children:h(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(c=t==null?void 0:t.path)!=null&&c.startsWith("/")?(i=t==null?void 0:t.path)==null?void 0:i.substring(1):t.path}});return e.watch(()=>_.value,r=>{e.nextTick(()=>{const t=d.cloneDeep(r),n=h(t);o.tempSysMenus=o.handleAddSysMenusButtons(n),o.menuData=o.addButtonsToTree(n,o.structureButtons)})},{immediate:!0,deep:!0}),(r,t)=>{const n=e.resolveComponent("el-checkbox"),c=e.resolveComponent("el-checkbox-group"),i=e.resolveComponent("el-tree"),u=e.resolveComponent("el-button"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(f.ssTable,{compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(x,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=a=>o.authorizeDialog.show=a),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",V,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",B,[e.createVNode(u,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(u,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(i,{class:"role-tree",ref_key:"treeRef",ref:k,data:o.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"show-checkbox":"",onCheckChange:o.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:a,data:s})=>[e.createElementVNode("span",{class:"node-text",title:a==null?void 0:a.label},e.toDisplayString(a==null?void 0:a.label),9,v),e.createVNode(c,{modelValue:s.checkedButtons,"onUpdate:modelValue":l=>s.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,s),class:"node-buttons"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.renderButtons,l=>(e.openBlock(),e.createBlock(n,{key:l.title,label:l.title,value:l.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.title),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),D=b._export_sfc(m,[["__scopeId","data-v-4f41513d"]]);exports.default=D;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { ref as f, onMounted as v, watch as g, onUnmounted as b, createElementBlock as x, openBlock as y, createVNode as z } from "vue";
|
|
2
|
+
import { i as w } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-2BcDac2G.js";
|
|
3
|
+
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import { c as l } from "./menu-DznNubRA.js";
|
|
5
|
+
const k = {
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
optionContents: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: () => {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(s) {
|
|
15
|
+
const a = s;
|
|
16
|
+
let t = null, e = null;
|
|
17
|
+
const o = f({}), n = f(null), d = () => {
|
|
18
|
+
n.value && (e = new ResizeObserver(() => {
|
|
19
|
+
i();
|
|
20
|
+
}), e.observe(n.value));
|
|
21
|
+
};
|
|
22
|
+
v(() => {
|
|
23
|
+
o.value = a.optionContents, c(), window.addEventListener("resize", i), d();
|
|
24
|
+
}), g(
|
|
25
|
+
() => a.optionContents,
|
|
26
|
+
() => {
|
|
27
|
+
o.value = a.optionContents, c();
|
|
28
|
+
}
|
|
29
|
+
), b(() => {
|
|
30
|
+
e && e.disconnect(), window.addEventListener("resize", i);
|
|
31
|
+
});
|
|
32
|
+
const i = () => {
|
|
33
|
+
t.resize();
|
|
34
|
+
}, c = () => {
|
|
35
|
+
t && t.dispose(), t = w(document.getElementById("chartModelId"));
|
|
36
|
+
const r = o.value;
|
|
37
|
+
t.setOption(r), t.resize();
|
|
38
|
+
};
|
|
39
|
+
return (r, m) => (y(), x("div", {
|
|
40
|
+
id: "chartModelId",
|
|
41
|
+
class: "chart-model-class",
|
|
42
|
+
ref_key: "chartModelRef",
|
|
43
|
+
ref: n
|
|
44
|
+
}, null, 512));
|
|
45
|
+
}
|
|
46
|
+
}, E = /* @__PURE__ */ C(k, [["__scopeId", "data-v-798284db"]]), I = (s, a, t) => {
|
|
47
|
+
var n, d, i, c;
|
|
48
|
+
let e = a;
|
|
49
|
+
e.title.text = (t == null ? void 0 : t.chartName) ?? "", e.xAxis.data = (n = l(s)) == null ? void 0 : n.map((r) => r.x), e.legend.data = (i = (d = l(s)) == null ? void 0 : d[0]) != null && i.y ? Object.keys(l(s)[0].y) : [];
|
|
50
|
+
let o = [];
|
|
51
|
+
return ((c = e.legend.data) == null ? void 0 : c.length) > 0 && l(e.legend.data).forEach((r) => {
|
|
52
|
+
var h;
|
|
53
|
+
const m = (h = l(s)) == null ? void 0 : h.map((p) => {
|
|
54
|
+
var _;
|
|
55
|
+
return (_ = p == null ? void 0 : p.y) == null ? void 0 : _[r];
|
|
56
|
+
});
|
|
57
|
+
o.push({
|
|
58
|
+
name: r,
|
|
59
|
+
type: "line",
|
|
60
|
+
data: m
|
|
61
|
+
});
|
|
62
|
+
}), e.series = o, e;
|
|
63
|
+
}, u = [
|
|
64
|
+
{
|
|
65
|
+
key: "折线图",
|
|
66
|
+
value: {
|
|
67
|
+
title: {
|
|
68
|
+
text: "",
|
|
69
|
+
// 标题文本
|
|
70
|
+
left: "center",
|
|
71
|
+
// 水平居中
|
|
72
|
+
top: 25,
|
|
73
|
+
// 距离顶部距离
|
|
74
|
+
textStyle: {
|
|
75
|
+
// 文本样式
|
|
76
|
+
color: "#333",
|
|
77
|
+
fontSize: 18,
|
|
78
|
+
fontWeight: "bold"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
tooltip: {
|
|
82
|
+
trigger: "axis"
|
|
83
|
+
},
|
|
84
|
+
legend: {
|
|
85
|
+
data: []
|
|
86
|
+
},
|
|
87
|
+
grid: {
|
|
88
|
+
left: "6%",
|
|
89
|
+
right: "4%",
|
|
90
|
+
bottom: "3%",
|
|
91
|
+
containLabel: !0
|
|
92
|
+
},
|
|
93
|
+
xAxis: {
|
|
94
|
+
type: "category",
|
|
95
|
+
axisLabel: {
|
|
96
|
+
interval: 0
|
|
97
|
+
// 强制显示所有标签
|
|
98
|
+
},
|
|
99
|
+
data: []
|
|
100
|
+
},
|
|
101
|
+
yAxis: {
|
|
102
|
+
type: "value"
|
|
103
|
+
},
|
|
104
|
+
series: []
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
], O = { class: "eCharts" }, M = {
|
|
108
|
+
__name: "index",
|
|
109
|
+
props: {
|
|
110
|
+
eChartContents: Array
|
|
111
|
+
},
|
|
112
|
+
setup(s) {
|
|
113
|
+
const a = s, t = f({});
|
|
114
|
+
return v(() => {
|
|
115
|
+
var o;
|
|
116
|
+
const e = a == null ? void 0 : a.eChartContents;
|
|
117
|
+
t.value = I(l(e == null ? void 0 : e.compData), (o = u == null ? void 0 : u.find((n) => (n == null ? void 0 : n.key) === (e == null ? void 0 : e.name))) == null ? void 0 : o.value, e == null ? void 0 : e.extraContent);
|
|
118
|
+
}), (e, o) => (y(), x("div", O, [
|
|
119
|
+
z(E, { optionContents: t.value }, null, 8, ["optionContents"])
|
|
120
|
+
]));
|
|
121
|
+
}
|
|
122
|
+
}, R = /* @__PURE__ */ C(M, [["__scopeId", "data-v-0440fac3"]]);
|
|
123
|
+
export {
|
|
124
|
+
R as default
|
|
125
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BoeHjHvL.cjs");const n=require("./menu-CfFgYmpV.cjs");require("./index-2p69g4HY.cjs");const o=require("./index-BwFFWhXT.cjs"),u=require("./index-BK_gZgTv.cjs"),c=require("./index-BZkH2AYa.cjs"),s={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...u.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await c.getActivePageStructureId(r.value)}),(l,m)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(o.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|