ss-component-new 1.3.435 → 1.3.437
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/{MTLLoader-p0GsbA2N.cjs → MTLLoader-BwkFVqL-.cjs} +1 -1
- package/dist/{MTLLoader-D7sNoLcK.js → MTLLoader-DNSv6X0i.js} +1 -1
- package/dist/{OrbitControls-xsAEcOQ0.js → OrbitControls-BYUrBNWv.js} +1 -1
- package/dist/{OrbitControls-BhtVNiz9.cjs → OrbitControls-DaZRnXU6.cjs} +1 -1
- package/dist/{URDFLoader-OhWW6Ghz.js → URDFLoader-BZBVqZws.js} +2 -2
- package/dist/{URDFLoader-DAb823an.cjs → URDFLoader-DYKZA4lN.cjs} +1 -1
- package/dist/{animationData-CM85S6tn.cjs → animationData-BJRWi-LU.cjs} +1 -1
- package/dist/{animationData-CZHPgZ5e.js → animationData-Zq5cH5C8.js} +12 -12
- package/dist/{array-wB3zPS0S.js → array-DAuSR2Ni.js} +2 -2
- package/dist/{array-luuLL6CX.cjs → array-DgoXmMOo.cjs} +1 -1
- package/dist/{iconfont-DvB947R2.cjs → iconfont-Bt2wRD-G.cjs} +1 -1
- package/dist/{iconfont-C5j4Td3D.js → iconfont-CY4Fa9KU.js} +2 -2
- package/dist/{index-CYnI31LU.js → index-3azkCJc2.js} +1 -1
- package/dist/index-5VQigHQ_.cjs +2 -0
- package/dist/{index-BF5SUWUn.js → index-5zBx2xab.js} +89 -83
- package/dist/{index-CgMsDp37.js → index-7G04es6G.js} +4 -4
- package/dist/{index-BZ3P1ll8.js → index-B7wW0wEg.js} +5 -5
- package/dist/{index-CMpvaYXO.cjs → index-BI1HZ_pA.cjs} +1 -1
- package/dist/{index-Lhh-KMx5.js → index-BMbjyksn.js} +1 -1
- package/dist/{index-B9MP9Z_h.cjs → index-BMofVGXk.cjs} +20 -20
- package/dist/{index-C4bA0jPu.cjs → index-BQmeIxCJ.cjs} +1 -1
- package/dist/{index-DTllcl_O.js → index-BRUxCmkT.js} +1 -1
- package/dist/{index-C3JpBKyN.cjs → index-BiwYTq-N.cjs} +1 -1
- package/dist/{index-CJow9MRO.js → index-BlWH1RtL.js} +3 -3
- package/dist/{index-DQD6jg8m.cjs → index-Bq9F_cM8.cjs} +1 -1
- package/dist/{index-D0FUzQhj.cjs → index-BxutmuA5.cjs} +1 -1
- package/dist/{index-wRPswAvQ.cjs → index-C8RnjyU4.cjs} +1 -1
- package/dist/{index-CFiyfU1X.js → index-CCUIg0kG.js} +27 -27
- package/dist/{index-BRqKT37j.cjs → index-CgVhGDn1.cjs} +1 -1
- package/dist/{index-L_BH-SIP.js → index-D4vCIHNh.js} +3226 -3226
- package/dist/{index-CljHDtk8.cjs → index-D7aAxcbI.cjs} +1 -1
- package/dist/{index-DxPKykuA.cjs → index-D8DyFGA3.cjs} +1 -1
- package/dist/{index-DkA3dv5l.js → index-DCm5o7Nl.js} +1 -1
- package/dist/{index-fsO0R02I.cjs → index-DEdBu96F.cjs} +1 -1
- package/dist/{index-BOz_MAHK.js → index-DFLr3nfs.js} +2196 -2194
- package/dist/{index-CynRFydr.js → index-DNwjqZ3_.js} +1 -1
- package/dist/{index-Bq7AQN37.js → index-DQi5ylnZ.js} +1 -1
- package/dist/{index-CiPgqhA6.cjs → index-DRuWw2N3.cjs} +1 -1
- package/dist/{index-C2qa2ljw.js → index-DShznhnR.js} +3 -3
- package/dist/{index-DbIRquOl.js → index-DX1AEXgQ.js} +6 -6
- package/dist/{index-B99I_vDk.cjs → index-DYJ5Wdmj.cjs} +5 -5
- package/dist/{index-DXbOEeAm.js → index-DrUNvbYv.js} +4 -4
- package/dist/{index-CLLeUa5o.cjs → index-FcjQa2OL.cjs} +1 -1
- package/dist/{index-D1kQL369.cjs → index-NFfnuLxo.cjs} +1 -1
- package/dist/{index-BTgKT-Kp.js → index-aaiRLVcp.js} +7 -7
- package/dist/{index-CZuPznao.cjs → index-dAoOU6TR.cjs} +1 -1
- package/dist/{index-fh5hS-5q.cjs → index-pTiemqvw.cjs} +1 -1
- package/dist/{index-Ca_pqbsS.js → index-sVk4LM6C.js} +27 -27
- package/dist/{index-DZ-jLFih.js → index-ykZXvnaX.js} +1 -1
- package/dist/{index-DnwoeTr-.cjs → index-zKgQ0JKd.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BGyDDkYS.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BzLhfrPk.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BUMDcqtn.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-PnEFT3X7.js} +1 -1
- package/dist/{main-G0V83rc_.cjs → main-AJmmvnvQ.cjs} +1 -1
- package/dist/{main-JSkTNHXB.js → main-CL6Cy_st.js} +3 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-CkZ94OPN.js → threeModel-D03I0p1-.js} +3 -3
- package/dist/{threeModel-Df9F-OvR.cjs → threeModel-SgKLCbEG.cjs} +1 -1
- package/dist/{threePreview-Bs-m2IAX.cjs → threePreview-9qfx_J15.cjs} +1 -1
- package/dist/{threePreview-BoiGO8RT.js → threePreview-Djh17gcq.js} +3 -3
- package/dist/{threeSceneView-BEoquzn3.js → threeSceneView-3GEMP21r.js} +10 -10
- package/dist/{threeSceneView-Blh_DkGZ.cjs → threeSceneView-Cj8n_qeP.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-c-Kv5yPO.js → threeSceneViewForCPMPIP-BfJgzGiF.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-BxzpG0Ns.cjs → threeSceneViewForCPMPIP-D-H-nZyF.cjs} +1 -1
- package/dist/{threeTrackPathView-DL3Fx1XR.cjs → threeTrackPathView-C8S1xa9M.cjs} +1 -1
- package/dist/{threeTrackPathView-C7MWmsr9.js → threeTrackPathView-CewpNc2B.js} +3 -3
- package/dist/{threeViewerHost-DBcfrh7A.js → threeViewerHost-DJSU2VXG.js} +2 -2
- package/dist/{threeViewerHost-D_4JNLXj.cjs → threeViewerHost-_8Zi81Q9.cjs} +1 -1
- package/dist/{urdfTree-BwPn5sja.js → urdfTree-BWSOyDd8.js} +1 -1
- package/dist/{urdfTree-B1vSZdxZ.cjs → urdfTree-tWRZTeGx.cjs} +1 -1
- package/dist/{workpieceTreePanel-DnVOjYQ2.js → workpieceTreePanel-C_zbYiB6.js} +4 -4
- package/dist/{workpieceTreePanel-zPR2Z6wa.cjs → workpieceTreePanel-cotaSjga.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-j5gKbJLv.cjs +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as p, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
|
|
2
|
-
import { S as I, t as x, s as w, a as L } from "./index-
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
2
|
+
import { S as I, t as x, s as w, a as L } from "./index-BlWH1RtL.js";
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-PnEFT3X7.js";
|
|
4
4
|
import "./index-BHtNKL1L.js";
|
|
5
|
-
import { e as E } from "./index-
|
|
6
|
-
import "./index-
|
|
5
|
+
import { e as E } from "./index-7G04es6G.js";
|
|
6
|
+
import "./index-5zBx2xab.js";
|
|
7
7
|
import { b as N, s as U } from "./index-BK-oz1IK.js";
|
|
8
8
|
import "./request-XJsZ4h2T.js";
|
|
9
9
|
/* empty css */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-D8DyFGA3.cjs"),r=require("./index-xN3pvlzo.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.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)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-pTiemqvw.cjs"),_=require("./index-DYJ5Wdmj.cjs"),m=require("./index-B-pflqKE.cjs"),h=require("./index-zKgQ0JKd.cjs"),l=require("./index-xN3pvlzo.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { watch as be, ref as w, computed as we } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { p as E, k as B, w as Le } from "./index-5zBx2xab.js";
|
|
3
3
|
import { s as Te, b as C, p as V, u as Re, r as De, c as A, C as N, E as Ee, j as Be, ae as Ae, af as Pe, ag as Ue, ah as xe, ai as Se, aj as ke } from "./index-BK-oz1IK.js";
|
|
4
4
|
import { s as z } from "./request-XJsZ4h2T.js";
|
|
5
5
|
const qe = C(V), { systemUrl: f } = Te(qe);
|
|
@@ -72,14 +72,14 @@ const Ve = (s) => {
|
|
|
72
72
|
TABLE: {
|
|
73
73
|
value: "Table"
|
|
74
74
|
}
|
|
75
|
-
},
|
|
75
|
+
}, Oe = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], We = () => {
|
|
76
76
|
const s = C(), r = Re(V), { isSuperAdmin: i, userId: L, userName: h, platId: c } = De(), u = w([]), I = (t) => {
|
|
77
77
|
const { propertyType: e } = t || {};
|
|
78
78
|
return e === ze.TABLE.value;
|
|
79
|
-
}, g = w({}),
|
|
79
|
+
}, g = w({}), O = we(() => {
|
|
80
80
|
var e;
|
|
81
81
|
return i.value ? !0 : ((e = g.value) == null ? void 0 : e.status) === d.EDITABLE.value;
|
|
82
|
-
}),
|
|
82
|
+
}), j = (t) => {
|
|
83
83
|
var o, l;
|
|
84
84
|
const e = N(Date.now()), { id: a = 0 } = s.loginUserInfo || {}, n = A(t);
|
|
85
85
|
return n.update_user_id = a, n.update_user_name = h.value, n.update_time = e, n.checked_ids = ((l = (o = n == null ? void 0 : n.main_ids) == null ? void 0 : o.map) == null ? void 0 : l.call(o, (p) => {
|
|
@@ -140,7 +140,7 @@ const Ve = (s) => {
|
|
|
140
140
|
l.main_ids = Ie, l.checked_ids = v.map((D) => D.id), l.params = G(v);
|
|
141
141
|
}
|
|
142
142
|
if (t) {
|
|
143
|
-
const v =
|
|
143
|
+
const v = j(t);
|
|
144
144
|
l = {
|
|
145
145
|
...l,
|
|
146
146
|
...v
|
|
@@ -250,7 +250,7 @@ const Ve = (s) => {
|
|
|
250
250
|
return (a == null ? void 0 : a.tag) || "info";
|
|
251
251
|
}, R = (t) => t === d.EDITABLE.value, ue = (t, e) => {
|
|
252
252
|
const { status: a } = t || {}, { tableOperate: n } = e || {};
|
|
253
|
-
return !!(R(a) || n &&
|
|
253
|
+
return !!(R(a) || n && Oe.includes(n));
|
|
254
254
|
}, pe = (t, e) => {
|
|
255
255
|
const { status: a } = t || {};
|
|
256
256
|
return R(a);
|
|
@@ -321,7 +321,7 @@ const Ve = (s) => {
|
|
|
321
321
|
getFeatureStatusTagByValue: ie,
|
|
322
322
|
hasEditable: de,
|
|
323
323
|
initRoleConfig: fe,
|
|
324
|
-
hasRoleEditAuth:
|
|
324
|
+
hasRoleEditAuth: O,
|
|
325
325
|
buildParamAuthTree: q,
|
|
326
326
|
initImport: ye,
|
|
327
327
|
initExport: _e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const v=require("vue"),g=require("./index-
|
|
1
|
+
"use strict";const v=require("vue"),g=require("./index-BMofVGXk.cjs"),r=require("./index-xN3pvlzo.cjs"),F=require("./request-Dl8yi2iS.cjs"),Le=r.useLoginState(r.pinia),{systemUrl:y}=r.storeToRefs(Le);let A=y.value===""||!y.value?"http://222.92.178.198:63002":y.value;v.watch(()=>y.value,()=>{A=y.value===""||!y.value?"http://222.92.178.198:63002":y.value},{deep:!0,immediate:!0});function N(s){return F.service({url:`${A}/platform/import_data`,method:"post",data:s})}function C(s){return F.service({url:`${A}/platform/export_data`,method:"post",data:s,responseType:"blob"})}function we(s=""){const l=s.match(/filename\*=UTF-8''([^;]+)/i);if(l)return decodeURIComponent(l[1]);const u=s.match(/filename=["']?([^"';]+)["']?/);return u?u[1]:"download.xlsx"}const V=s=>{var w,h;const l=((w=s==null?void 0:s.headers)==null?void 0:w["content-type"])||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",u=new Blob([s.data],{type:l}),D=(h=s==null?void 0:s.headers)==null?void 0:h["content-disposition"],I=we(D)||"数据.xlsx",i=window.URL.createObjectURL(u),d=document.createElement("a");d.href=i,d.setAttribute("download",I),document.body.appendChild(d),d.click(),document.body.removeChild(d),window.URL.revokeObjectURL(i)},Te=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],k="role",f={ENABLE:{value:"enable",label:"启用",tag:"primary"},DISABLED:{value:"disabled",label:"禁用",tag:"info"}},p={EDITABLE:{value:"editable",label:"可编辑",tag:"primary"},DISABLED:{value:"disabled",label:"不可编辑",tag:"info"}},De={TABLE:{value:"Table"}},Re=["查看","查看三维模型","导出paraform","导出","导出全部","导出选中"],Ee=()=>{const s=r.useLoginState(),l=r.useMenuState(r.pinia),{isSuperAdmin:u,userId:D,userName:I,platId:i}=r.useUserInfo(),d=v.ref([]),w=t=>{const{propertyType:e}=t||{};return e===De.TABLE.value},h=v.ref({}),z=v.computed(()=>{var e;return u.value?!0:((e=h.value)==null?void 0:e.status)===p.EDITABLE.value}),O=t=>{var o,c;const e=r.formatterTimeStr(Date.now()),{id:a=0}=s.loginUserInfo||{},n=r.cloneDeep(t);return n.update_user_id=a,n.update_user_name=I.value,n.update_time=e,n.checked_ids=((c=(o=n==null?void 0:n.main_ids)==null?void 0:o.map)==null?void 0:c.call(o,m=>{const{id:b}=m;return b}))||[],n},S=t=>{let e=[];return t.forEach(a=>{var n;if(a.isPropertyLeaf){const o=r.cloneDeep(a);e.push(o)}a.children&&((n=a.children)==null?void 0:n.length)>0&&(e=e.concat(S(a.children)))}),e},P=(t=[])=>{let e=[];for(let a=0;a<t.length;a++){const n=t[a],o=n.children||[];delete n.children,e.push(n),o&&o.length>0&&(e=e.concat(P(o)))}return e},$=t=>{let e=[];return t.forEach(a=>{if(a.isPropertyLeaf){const n=P(a.params);e=e.concat(n)}}),e},x=(t,e)=>{const a=s.loginUserInfo,{id:n=0}=a||{},o=r.formatterTimeStr(Date.now());let c={name:"",code:"",order_no:1,data_scope:1,remark:"",tenant_id:"",create_time:o,update_time:o,create_user_id:n,create_user_name:I.value,update_user_id:n,update_user_name:I.value,status:f.ENABLE.value,main_ids:[],checked_ids:[],params:[]};const{checkAll:m,tree:b}=e||{};if(m&&b){const L=S(b),be=L.map(B=>({...B,department_scope:"unlimited"}));c.main_ids=be,c.checked_ids=L.map(B=>B.id),c.params=$(L)}if(t){const L=O(t);c={...c,...L}}return c},R=t=>{const e=[t];return{platId:i.value,changeRoleData:e}},G=async t=>await r.getRoleList({platId:t}),M=async()=>{var e;l.setImportLoading(!0);const t=await G(i.value).finally(()=>{l.setImportLoading(!1)});return(e=t==null?void 0:t.data)==null?void 0:e.result},U=()=>({name:""}),T=v.ref(U()),j=()=>{T.value=U()},H=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),_=v.ref(H()),Q=t=>{_.value.pageNum=t},K=t=>{_.value.pageSize=t},W=()=>({platId:i.value,pageNum:_.value.pageNum,pageSize:_.value.pageSize,filter:{...T.value}}),J=async t=>{var a;const e=await r.getByPage(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},X=async()=>{const t=W(),e=await J(t),{total:a}=e||{};return _.value.total=a,e||{}},Y=async t=>{delete t.role_id;const e=R(t);await r.createRole(e)},Z=async t=>{l.setImportLoading(!0),await Y(t).finally(()=>{l.setImportLoading(!1)})},ee=async t=>{const e=R(t);await r.updateRole(e)},te=async t=>{l.setImportLoading(!0),await ee(t).finally(()=>{l.setImportLoading(!1)})},ae=async t=>{const{role_id:e}=t,a={platId:i.value,role_id:[e]};await r.deleteRole(a)},ne=async t=>{await r.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-role-message-modal",confirmButtonClass:"delete-role-confirm"}),l.setImportLoading(!0),await ae(t).finally(()=>{l.setImportLoading(!1)})},oe=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.label)||t},re=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.tag)||"info"},se=async t=>{var a;const e=await r.getPropertyAuthTree(t);return((a=e==null?void 0:e.data)==null?void 0:a.result)||[]},le=async t=>{const e={platId:i.value,includeHidden:!0,roleIds:t};l.setImportLoading(!0);const a=await se(e).finally(()=>{l.setImportLoading(!1)});d.value=a},ce=(t="")=>{const e=t.toUpperCase(),a=p==null?void 0:p[e];return(a==null?void 0:a.label)||t},ie=(t="")=>{const e=t.toUpperCase(),a=p==null?void 0:p[e];return(a==null?void 0:a.tag)||"info"},E=t=>t===p.EDITABLE.value,ue=(t,e)=>{const{status:a}=t||{},{tableOperate:n}=e||{};return!!(E(a)||n&&Re.includes(n))},pe=(t,e)=>{const{status:a}=t||{};return E(a)},de=(t,e)=>{if(u.value)return!0;const{type:a}=e||{};if(g.compType.TABLE===a)return ue(t,e);if(g.compType.FORM===a)return pe(t);const{status:n}=t||{};return E(n)},me=async()=>{var n,o;const e={pageName:"系统管理/角色管理",platId:i.value,userId:D.value},a=await r.getPageDataApi(e);return(o=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:o[0]},fe=async()=>{if(!u.value)return h.value=await me(),h},q=t=>{const e=r.cloneDeep(t);for(let a=0;a<e.length;a++){const n=e==null?void 0:e[a],{id:o,prop:c,children:m}=n||{};n.uniqueKey=`${o}_${c}`,m&&(n.children=q(m))}return e},ge=async t=>{var a;const e=await N(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},ye=async t=>{const e=new FormData,a=x(),{create_user_id:n,update_user_id:o,create_user_name:c,update_user_name:m}=a;return e.set("platId",i.value),e.set("file",t),e.set("tableType",k),e.set("create_user_id",n),e.set("update_user_id",o),e.set("create_user_name",c),e.set("update_user_name",m),await ge(e)},he=async t=>await C(t),_e=async()=>{const t={platId:i.value,tableType:k,filter:T.value},e=await he(t);return V(e),e},ve=[["名称","编码","备注","状态"]],Ie=async()=>{const t=g.utils.aoa_to_sheet(ve),e=g.utils.book_new();g.utils.book_append_sheet(e,t,"角色"),g.writeFileSync(e,"角色模板.xlsx")};return{compType:g.compType,isTableFeature:w,queryInfo:T,resetQuery:j,pageInfo:_,setPageNum:Q,setPageSize:K,initGetByPage:X,initRoleList:M,initCreate:Z,initUpdate:te,initDelete:ne,initRoleRequestData:R,initPropertyAuthTree:le,propertyAuthTree:d,initRoleItem:x,isSuperAdmin:u,getStatusLabelByValue:oe,getStatusTagByValue:re,getFeatureStatusLabelByValue:ce,getFeatureStatusTagByValue:ie,hasEditable:de,initRoleConfig:fe,hasRoleEditAuth:z,buildParamAuthTree:q,initImport:ye,initExport:_e,exportTemplate:Ie}};exports.exportData=C;exports.featureStatusConstants=p;exports.importData=N;exports.initDownloadFileByResponse=V;exports.operateList=Te;exports.statusConstants=f;exports.useRole=Ee;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("vue"),I=require("./index-xN3pvlzo.cjs"),pe=require("./index-B9MP9Z_h.cjs"),k=require("./index-DmwxzDGW.cjs"),fe=require("./menuIndex-8KYc1zS9.cjs"),w=require("./request-Dl8yi2iS.cjs"),F=I.useModelComp(I.pinia),ee=I.useUnit(I.pinia),C=I.useMenuState(I.pinia),{menus:te,configMenu:q,activeMenuPath:$,cacheStructures:K}=I.storeToRefs(C),j=i.ref(!1),le=i.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=I.cloneDeep(te.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),J=i.ref([]),R=i.ref([{label:"新建"}]),de=i.computed(()=>[{key:"extraButton",contents:R.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}]),U=i.ref([]),T=i.ref({}),ie=i.ref({}),O=i.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}]),_=e=>{var t;U.value=e?(t=O.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]:""}):O.value},ge=i.ref([{label:"查询"},{label:"重置"}]),ve=async()=>{},ae=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:ae(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),z=i.ref([]),h=i.ref({}),b=i.ref(null),oe=i.ref([]),ne=i.computed(()=>{var e;return(e=ae(te.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ue=async e=>{var l,u,n,c;const t=await k.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}});oe.value=r,C.setCacheStructures({key:"contentConfig",data:r})}},ye=async e=>{var t;j.value=!0,b.value={...e,rootNode:fe.findRootNodeByPath(ne.value,e.path)},C.setCacheStructures(null),(e==null?void 0:e.level)===0?R.value.splice(0):(R.value=[{label:"新建"}],z.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await C.setConfigMenu(null),await ue(e==null?void 0:e.path),await x(e)},be=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},he=async(e,t)=>{var l,u;if(!b.value)return w.ElMessage.warning("请先选择菜单");if(g.type=be(e),z.value=[],F.setSubmitCurStructure(!1),ee.setSelectTitle([]),h.value=I.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":_(null),await C.setConfigMenu(null);break;case"update":_(h.value),await C.setConfigMenu(h.value),console.log("clickRowButton",h.value);break}await i.nextTick(),g.title=`【${g.type==="create"?(l=b.value)==null?void 0:l.path:(u=h.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await se(h.value,g.type)},re=i.ref(!0),Ce=async e=>{var t;T.value=e,await C.setConfigMenu({...T.value,path:(t=b.value)==null?void 0:t.path}),re.value=(e==null?void 0:e.operateType)!=="新增"};i.watch(()=>re.value,async e=>{var t;await i.nextTick(),U.value=(t=O.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:T.value?T.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ie=i.ref(null),ke=async(e,t)=>{var r,p,f,s,y;if(g.type==="create"){const a=(p=(r=K.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);F.setItemData(a),C.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=(y=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:y.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return k.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.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(d=>{var M,D,A,P,E,o,B;return{id:(A=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:A.id,...(B=(o=(E=(P=d==null?void 0:d.data)==null?void 0:P.result)==null?void 0:E[0])==null?void 0:o.value)==null?void 0:B.pageData}});F.setItemData(a),C.setCacheStructures({key:t,data:a})}},Te=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";C.setButtonTriggerType(t),await ke(h.value,t);let l;(n=T.value)!=null&&n.subMenus&&((c=T.value)==null?void 0:c.subMenus.length)>0&&(l=(r=z.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=h.value)==null?void 0:p.title}));let u;g.type==="create"?u={...T.value,path:(f=b.value)==null?void 0:f.path}:g.type==="update"&&(u=q.value),await C.setConfigMenu(u),ee.setSelectTitle(l),F.setIsEdit("edit")},x=async e=>{var l,u,n,c,r,p;const t=await k.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}}):[]),j.value=!1},H=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,y;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:$.value+"/"+((u=b.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=b.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},y=k.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},y=k.updateInsofDataApi):t==="delete"&&(s={id:e},y=k.deleteInsofDataApi);const a=await y(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw w.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=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:d,key:l}}}catch{w.ElMessage.error("保存响应失败")}},Z=(e,t)=>{var f,s,y;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=(y=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:y.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},m=(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},Me=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},De=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"),y=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await i.nextTick();const a=(n=(u=(l=K.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 d=(p=(r=(c=K.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);d=[...d,...(f=oe.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const M=Z(y,a),D=Z(s,d),A=m("dialogConfig",M),P=m("contentConfig",D),E=[...A,...P];await Promise.all(E).then(o=>{var G,L,V,Q,W,X,Y;if(!(o==null?void 0:o.every(v=>v.status)))return;let N=(G=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:G.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((L=M==null?void 0:M.updateComps)==null?void 0:L.length)===0&&g.type==="update"){const v=(Q=(V=h.value)==null?void 0:V.structureIds)==null?void 0:Q.filter(S=>(S==null?void 0:S.key)==="dialogConfig");N=[...N,...v]}if(((W=D==null?void 0:D.updateComps)==null?void 0:W.length)===0&&g.type==="update"){const v=(Y=(X=h.value)==null?void 0:X.structureIds)==null?void 0:Y.filter(S=>(S==null?void 0:S.key)==="contentConfig");N=[...N,...v]}const ce=Me(N);se({...t,isNotInitial:!0,structureIds:ce},g.type)}).catch(o=>{w.ElMessage.error(o)})}catch(s){throw w.ElMessage.error(s),new Error(s)}},se=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:$.value+"/"+((n=b.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=k.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=k.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=k.batchDeleteInsofDataApi),pe.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&J.value.push({...e,id:r}),t&&r&&w.ElMessage.success("响应成功"),x(b.value)})},Se=async()=>{var l,u,n,c,r;const e=JSON.parse(I.cloneDeep(JSON.stringify(K.value)));await i.nextTick();const t=g.type==="create"?{...q.value,rootNodePath:(u=(l=b.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...q.value,rootNodePath:(c=(n=b.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=h.value)==null?void 0:r.id};await De(e,t),T.value={},g.show=!1,await x(b.value)},we=()=>{g.show=!1},Ne={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:le.value,name:""}]}]},Ae=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:we,buttonValue:ge,changeTrigger:Ce,changedRow:ie,clickNodeTrigger:ye,clickRowButton:he,clickSubmitForm:Se,clickTrigger:Te,dialogInfo:g,formatFormData:_,getInitialSubStructure:ue,getTableDataAsync:x,handleItemDataChange:ve,inputForm:T,menuPageData:de,operatingForm:Ie,pageData:le,renderFormData:U,tableLoading:j,tempMenuPageData:Ne,treeData:ne},Symbol.toStringTag,{value:"Module"}));exports.State=Ae;
|
|
1
|
+
"use strict";const i=require("vue"),I=require("./index-xN3pvlzo.cjs"),pe=require("./index-BMofVGXk.cjs"),k=require("./index-DmwxzDGW.cjs"),fe=require("./menuIndex-8KYc1zS9.cjs"),w=require("./request-Dl8yi2iS.cjs"),F=I.useModelComp(I.pinia),ee=I.useUnit(I.pinia),C=I.useMenuState(I.pinia),{menus:te,configMenu:q,activeMenuPath:$,cacheStructures:K}=I.storeToRefs(C),j=i.ref(!1),le=i.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=I.cloneDeep(te.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),J=i.ref([]),R=i.ref([{label:"新建"}]),de=i.computed(()=>[{key:"extraButton",contents:R.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}]),U=i.ref([]),T=i.ref({}),ie=i.ref({}),O=i.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}]),_=e=>{var t;U.value=e?(t=O.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]:""}):O.value},ge=i.ref([{label:"查询"},{label:"重置"}]),ve=async()=>{},ae=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:ae(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),z=i.ref([]),h=i.ref({}),b=i.ref(null),oe=i.ref([]),ne=i.computed(()=>{var e;return(e=ae(te.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ue=async e=>{var l,u,n,c;const t=await k.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}});oe.value=r,C.setCacheStructures({key:"contentConfig",data:r})}},ye=async e=>{var t;j.value=!0,b.value={...e,rootNode:fe.findRootNodeByPath(ne.value,e.path)},C.setCacheStructures(null),(e==null?void 0:e.level)===0?R.value.splice(0):(R.value=[{label:"新建"}],z.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await C.setConfigMenu(null),await ue(e==null?void 0:e.path),await x(e)},be=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},he=async(e,t)=>{var l,u;if(!b.value)return w.ElMessage.warning("请先选择菜单");if(g.type=be(e),z.value=[],F.setSubmitCurStructure(!1),ee.setSelectTitle([]),h.value=I.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":_(null),await C.setConfigMenu(null);break;case"update":_(h.value),await C.setConfigMenu(h.value),console.log("clickRowButton",h.value);break}await i.nextTick(),g.title=`【${g.type==="create"?(l=b.value)==null?void 0:l.path:(u=h.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await se(h.value,g.type)},re=i.ref(!0),Ce=async e=>{var t;T.value=e,await C.setConfigMenu({...T.value,path:(t=b.value)==null?void 0:t.path}),re.value=(e==null?void 0:e.operateType)!=="新增"};i.watch(()=>re.value,async e=>{var t;await i.nextTick(),U.value=(t=O.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:T.value?T.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ie=i.ref(null),ke=async(e,t)=>{var r,p,f,s,y;if(g.type==="create"){const a=(p=(r=K.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);F.setItemData(a),C.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=(y=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:y.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return k.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.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(d=>{var M,D,A,P,E,o,B;return{id:(A=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:A.id,...(B=(o=(E=(P=d==null?void 0:d.data)==null?void 0:P.result)==null?void 0:E[0])==null?void 0:o.value)==null?void 0:B.pageData}});F.setItemData(a),C.setCacheStructures({key:t,data:a})}},Te=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";C.setButtonTriggerType(t),await ke(h.value,t);let l;(n=T.value)!=null&&n.subMenus&&((c=T.value)==null?void 0:c.subMenus.length)>0&&(l=(r=z.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=h.value)==null?void 0:p.title}));let u;g.type==="create"?u={...T.value,path:(f=b.value)==null?void 0:f.path}:g.type==="update"&&(u=q.value),await C.setConfigMenu(u),ee.setSelectTitle(l),F.setIsEdit("edit")},x=async e=>{var l,u,n,c,r,p;const t=await k.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}}):[]),j.value=!1},H=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,y;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:$.value+"/"+((u=b.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=b.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},y=k.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},y=k.updateInsofDataApi):t==="delete"&&(s={id:e},y=k.deleteInsofDataApi);const a=await y(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw w.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=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:d,key:l}}}catch{w.ElMessage.error("保存响应失败")}},Z=(e,t)=>{var f,s,y;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=(y=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:y.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},m=(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},Me=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},De=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"),y=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await i.nextTick();const a=(n=(u=(l=K.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 d=(p=(r=(c=K.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);d=[...d,...(f=oe.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const M=Z(y,a),D=Z(s,d),A=m("dialogConfig",M),P=m("contentConfig",D),E=[...A,...P];await Promise.all(E).then(o=>{var G,L,V,Q,W,X,Y;if(!(o==null?void 0:o.every(v=>v.status)))return;let N=(G=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:G.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((L=M==null?void 0:M.updateComps)==null?void 0:L.length)===0&&g.type==="update"){const v=(Q=(V=h.value)==null?void 0:V.structureIds)==null?void 0:Q.filter(S=>(S==null?void 0:S.key)==="dialogConfig");N=[...N,...v]}if(((W=D==null?void 0:D.updateComps)==null?void 0:W.length)===0&&g.type==="update"){const v=(Y=(X=h.value)==null?void 0:X.structureIds)==null?void 0:Y.filter(S=>(S==null?void 0:S.key)==="contentConfig");N=[...N,...v]}const ce=Me(N);se({...t,isNotInitial:!0,structureIds:ce},g.type)}).catch(o=>{w.ElMessage.error(o)})}catch(s){throw w.ElMessage.error(s),new Error(s)}},se=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:$.value+"/"+((n=b.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=k.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=k.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=k.batchDeleteInsofDataApi),pe.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&J.value.push({...e,id:r}),t&&r&&w.ElMessage.success("响应成功"),x(b.value)})},Se=async()=>{var l,u,n,c,r;const e=JSON.parse(I.cloneDeep(JSON.stringify(K.value)));await i.nextTick();const t=g.type==="create"?{...q.value,rootNodePath:(u=(l=b.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...q.value,rootNodePath:(c=(n=b.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=h.value)==null?void 0:r.id};await De(e,t),T.value={},g.show=!1,await x(b.value)},we=()=>{g.show=!1},Ne={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:le.value,name:""}]}]},Ae=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:we,buttonValue:ge,changeTrigger:Ce,changedRow:ie,clickNodeTrigger:ye,clickRowButton:he,clickSubmitForm:Se,clickTrigger:Te,dialogInfo:g,formatFormData:_,getInitialSubStructure:ue,getTableDataAsync:x,handleItemDataChange:ve,inputForm:T,menuPageData:de,operatingForm:Ie,pageData:le,renderFormData:U,tableLoading:j,tempMenuPageData:Ne,treeData:ne},Symbol.toStringTag,{value:"Module"}));exports.State=Ae;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as i, computed as _, reactive as ie, nextTick as B, watch as ye } from "vue";
|
|
2
2
|
import { c as J, s as be, u as he, a as Ce, i as Ie, p as U } from "./index-BK-oz1IK.js";
|
|
3
|
-
import {
|
|
3
|
+
import { j as ke } from "./index-5zBx2xab.js";
|
|
4
4
|
import { g as $, c as ae, u as oe, d as Te, a as Me } from "./index-DUq4XELr.js";
|
|
5
5
|
import { e as Se } from "./menuIndex-CPrSvY9F.js";
|
|
6
6
|
import { E as S } from "./request-XJsZ4h2T.js";
|
|
7
|
-
const F = Ce(U), ne = Ie(U), C = he(U), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = be(C), z =
|
|
7
|
+
const F = Ce(U), ne = Ie(U), C = he(U), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = _(() => {
|
|
8
8
|
var e, t;
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
@@ -64,12 +64,12 @@ const F = Ce(U), ne = Ie(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
64
64
|
}))) == null ? void 0 : t.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
|
|
65
65
|
}
|
|
66
66
|
];
|
|
67
|
-
}), G =
|
|
67
|
+
}), G = i([]), O = i([
|
|
68
68
|
{
|
|
69
69
|
// label: "新增",
|
|
70
70
|
label: "新建"
|
|
71
71
|
}
|
|
72
|
-
]), we =
|
|
72
|
+
]), we = _(() => [
|
|
73
73
|
{
|
|
74
74
|
key: "extraButton",
|
|
75
75
|
contents: O.value
|
|
@@ -167,7 +167,7 @@ const F = Ce(U), ne = Ie(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
167
167
|
key: "tableContents",
|
|
168
168
|
contents: G.value
|
|
169
169
|
}
|
|
170
|
-
]), L =
|
|
170
|
+
]), L = i([]), I = i({}), De = i({}), x = i([
|
|
171
171
|
// {
|
|
172
172
|
// label: "配置菜单:",
|
|
173
173
|
// prop: 'menu',
|
|
@@ -265,13 +265,13 @@ const F = Ce(U), ne = Ie(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
265
265
|
],
|
|
266
266
|
value: !0
|
|
267
267
|
}
|
|
268
|
-
]),
|
|
268
|
+
]), j = (e) => {
|
|
269
269
|
var t;
|
|
270
270
|
L.value = e ? (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
|
|
271
271
|
...l,
|
|
272
272
|
value: e ? e[l == null ? void 0 : l.prop] : ""
|
|
273
273
|
}) : x.value;
|
|
274
|
-
}, Ne =
|
|
274
|
+
}, Ne = i([
|
|
275
275
|
{
|
|
276
276
|
label: "查询"
|
|
277
277
|
},
|
|
@@ -288,12 +288,12 @@ const F = Ce(U), ne = Ie(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
288
288
|
...t,
|
|
289
289
|
value: t == null ? void 0 : t.title,
|
|
290
290
|
label: t == null ? void 0 : t.title
|
|
291
|
-
}), g =
|
|
291
|
+
}), g = ie({
|
|
292
292
|
show: !1,
|
|
293
293
|
title: "菜单配置",
|
|
294
294
|
width: "30%",
|
|
295
295
|
type: "create"
|
|
296
|
-
}), V =
|
|
296
|
+
}), V = i([]), h = i({}), b = i(null), ce = i([]), pe = _(() => {
|
|
297
297
|
var e;
|
|
298
298
|
return (e = re(ue.value)) == null ? void 0 : e.filter((t) => t.title !== "系统管理" && t.title !== "平台管理");
|
|
299
299
|
}), fe = async (e) => {
|
|
@@ -340,16 +340,16 @@ const F = Ce(U), ne = Ie(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
340
340
|
if (g.type = Ke(e), V.value = [], F.setSubmitCurStructure(!1), ne.setSelectTitle([]), h.value = J(t), g.type !== "delete") {
|
|
341
341
|
switch (g.type) {
|
|
342
342
|
case "create":
|
|
343
|
-
|
|
343
|
+
j(null), await C.setConfigMenu(null);
|
|
344
344
|
break;
|
|
345
345
|
case "update":
|
|
346
|
-
|
|
346
|
+
j(h.value), await C.setConfigMenu(h.value), console.log("clickRowButton", h.value);
|
|
347
347
|
break;
|
|
348
348
|
}
|
|
349
349
|
await B(), g.title = `【${g.type === "create" ? (l = b.value) == null ? void 0 : l.path : (u = h.value) == null ? void 0 : u.path}】菜单配置${e}`, g.show = !0;
|
|
350
350
|
} else
|
|
351
351
|
await ge(h.value, g.type);
|
|
352
|
-
}, de =
|
|
352
|
+
}, de = i(!0), He = async (e) => {
|
|
353
353
|
var t;
|
|
354
354
|
I.value = e, await C.setConfigMenu({
|
|
355
355
|
...I.value,
|
|
@@ -366,7 +366,7 @@ ye(() => de.value, async (e) => {
|
|
|
366
366
|
value: I.value ? I.value[l == null ? void 0 : l.prop] : ""
|
|
367
367
|
});
|
|
368
368
|
}, { immediate: !0, deep: !0 });
|
|
369
|
-
const Ae =
|
|
369
|
+
const Ae = i(null), Ee = async (e, t) => {
|
|
370
370
|
var s, p, f, r, y;
|
|
371
371
|
if (g.type === "create") {
|
|
372
372
|
const a = (p = (s = K.value) == null ? void 0 : s.filter((d) => (d == null ? void 0 : d.key) === t)) == null ? void 0 : p.flatMap((d) => d == null ? void 0 : d.data);
|
|
@@ -513,21 +513,21 @@ const Ae = v(null), Ee = async (e, t) => {
|
|
|
513
513
|
const k = te(y, a), T = te(r, d), D = le("dialogConfig", k), N = le("contentConfig", T), P = [...D, ...N];
|
|
514
514
|
await Promise.all(P).then((o) => {
|
|
515
515
|
var Q, W, X, Y, Z, m, ee;
|
|
516
|
-
if (!(o == null ? void 0 : o.every((
|
|
517
|
-
let w = (Q = o == null ? void 0 : o.flatMap((
|
|
516
|
+
if (!(o == null ? void 0 : o.every((v) => v.status))) return;
|
|
517
|
+
let w = (Q = o == null ? void 0 : o.flatMap((v) => v == null ? void 0 : v.data)) == null ? void 0 : Q.filter((v) => (v == null ? void 0 : v.id) !== null && (v == null ? void 0 : v.id) !== void 0);
|
|
518
518
|
if (((W = k == null ? void 0 : k.updateComps) == null ? void 0 : W.length) === 0 && g.type === "update") {
|
|
519
|
-
const
|
|
520
|
-
w = [...w, ...
|
|
519
|
+
const v = (Y = (X = h.value) == null ? void 0 : X.structureIds) == null ? void 0 : Y.filter((M) => (M == null ? void 0 : M.key) === "dialogConfig");
|
|
520
|
+
w = [...w, ...v];
|
|
521
521
|
}
|
|
522
522
|
if (((Z = T == null ? void 0 : T.updateComps) == null ? void 0 : Z.length) === 0 && g.type === "update") {
|
|
523
|
-
const
|
|
524
|
-
w = [...w, ...
|
|
523
|
+
const v = (ee = (m = h.value) == null ? void 0 : m.structureIds) == null ? void 0 : ee.filter((M) => (M == null ? void 0 : M.key) === "contentConfig");
|
|
524
|
+
w = [...w, ...v];
|
|
525
525
|
}
|
|
526
|
-
const
|
|
526
|
+
const ve = Oe(w);
|
|
527
527
|
ge({
|
|
528
528
|
...t,
|
|
529
529
|
isNotInitial: !0,
|
|
530
|
-
structureIds:
|
|
530
|
+
structureIds: ve
|
|
531
531
|
}, g.type);
|
|
532
532
|
}).catch((o) => {
|
|
533
533
|
S.error(o);
|
|
@@ -568,7 +568,7 @@ const Ae = v(null), Ee = async (e, t) => {
|
|
|
568
568
|
id: s
|
|
569
569
|
}), t && s && S.success("响应成功"), H(b.value);
|
|
570
570
|
});
|
|
571
|
-
},
|
|
571
|
+
}, je = async () => {
|
|
572
572
|
var l, u, n, c, s;
|
|
573
573
|
const e = JSON.parse(J(JSON.stringify(K.value)));
|
|
574
574
|
await B();
|
|
@@ -581,7 +581,7 @@ const Ae = v(null), Ee = async (e, t) => {
|
|
|
581
581
|
id: (s = h.value) == null ? void 0 : s.id
|
|
582
582
|
};
|
|
583
583
|
await xe(e, t), I.value = {}, g.show = !1, await H(b.value);
|
|
584
|
-
},
|
|
584
|
+
}, _e = () => {
|
|
585
585
|
g.show = !1;
|
|
586
586
|
}, Je = {
|
|
587
587
|
comp: "Group",
|
|
@@ -600,16 +600,16 @@ const Ae = v(null), Ee = async (e, t) => {
|
|
|
600
600
|
]
|
|
601
601
|
}, Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
602
602
|
__proto__: null,
|
|
603
|
-
beforeDialogDestroy:
|
|
603
|
+
beforeDialogDestroy: _e,
|
|
604
604
|
buttonValue: Ne,
|
|
605
605
|
changeTrigger: He,
|
|
606
606
|
changedRow: De,
|
|
607
607
|
clickNodeTrigger: Fe,
|
|
608
608
|
clickRowButton: Be,
|
|
609
|
-
clickSubmitForm:
|
|
609
|
+
clickSubmitForm: je,
|
|
610
610
|
clickTrigger: Re,
|
|
611
611
|
dialogInfo: g,
|
|
612
|
-
formatFormData:
|
|
612
|
+
formatFormData: j,
|
|
613
613
|
getInitialSubStructure: fe,
|
|
614
614
|
getTableDataAsync: H,
|
|
615
615
|
handleItemDataChange: Pe,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, defineComponent as m, createElementBlock as f, openBlock as p, createElementVNode as e, createVNode as u, unref as t } from "vue";
|
|
2
|
-
import { W as C } from "./index-
|
|
2
|
+
import { W as C } from "./index-DFLr3nfs.js";
|
|
3
3
|
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const b = () => {
|
|
5
5
|
const i = l("日志管理"), o = l(), a = l([
|