ss-component-new 1.2.134 → 1.2.136
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/{animationData-BQVGgwzd.js → animationData-9Rwp8uyx.js} +1 -1
- package/dist/{animationData-CH_HlRbs.cjs → animationData-CPq6_wNF.cjs} +1 -1
- package/dist/{index-Cu8CeKlt.js → index-3WEMy5_p.js} +1 -1
- package/dist/{index-DTDBG6XZ.cjs → index-4LcggUsv.cjs} +1 -1
- package/dist/{index-Cxb73-rP.cjs → index-8wlioSUm.cjs} +1 -1
- package/dist/{index-BmaaKtQL.js → index-BN4MhImz.js} +78 -78
- package/dist/{index-CRHDhYWL.cjs → index-BP7w8f-l.cjs} +1 -1
- package/dist/{index-B7_psUpF.cjs → index-BXRe2SdU.cjs} +1 -1
- package/dist/{index-B5zMm189.js → index-BcdrVmA2.js} +1 -1
- package/dist/index-C1eL6q7Z.cjs +1 -0
- package/dist/{index-CZEpoJjN.js → index-C9D1SCzp.js} +2 -2
- package/dist/{index-DtEdpJE5.cjs → index-CUo9Rzi3.cjs} +1 -1
- package/dist/{index-D6z7l0ri.js → index-CcklBwqU.js} +1 -1
- package/dist/{index-tNfz9lM_.js → index-CcvCPGjx.js} +1 -1
- package/dist/{index-DeRFHL2G.js → index-CfrzoYYm.js} +6 -6
- package/dist/{index-DEo1XHba.js → index-CmVXy6DG.js} +1 -1
- package/dist/{index-CQ2KVf32.js → index-CqDh73Kp.js} +2 -2
- package/dist/{index-BzWL8cJA.cjs → index-Ctb0iFbe.cjs} +1 -1
- package/dist/{index-BjKE2mCR.js → index-D-8Ve1vd.js} +12 -12
- package/dist/{index-BaMMRBKV.cjs → index-D3rnfXSB.cjs} +1 -1
- package/dist/{index-By-BWs9a.js → index-D4KRA-ju.js} +2 -2
- package/dist/{index-DD8TwYJ0.js → index-DI1_OcYK.js} +1 -1
- package/dist/{index-DcOz1czC.cjs → index-DOZJO31u.cjs} +1 -1
- package/dist/{index-Drxwss6X.js → index-DRVFz7q3.js} +2 -2
- package/dist/{index-CuopkYN9.js → index-Dc7vS45u.js} +1 -1
- package/dist/{index-CbRy51_A.js → index-DoqCGsXd.js} +5 -5
- package/dist/{index-Cqsy2_8d.cjs → index-DqFTTAE_.cjs} +1 -1
- package/dist/{index-DTkZJjdp.js → index-Duq040ej.js} +3 -3
- package/dist/{index-h1ZomZk6.cjs → index-KgwRgulq.cjs} +1 -1
- package/dist/index-O1JbRmM1.cjs +1 -0
- package/dist/{index-DnGOHRg7.cjs → index-PHVmpaM3.cjs} +1 -1
- package/dist/{index-7ZiD4uti.cjs → index-VvTawd2K.cjs} +1 -1
- package/dist/{index-CyVs2aDW.cjs → index-WjmB2-oN.cjs} +1 -1
- package/dist/{index-BMAQeJMe.cjs → index-dT9Iek_K.cjs} +1 -1
- package/dist/{index-ccqhDxq9.cjs → index-h4NtMFJ6.cjs} +1 -1
- package/dist/{index-NCA6dI4x.js → index-jYsmQ_MD.js} +1 -1
- package/dist/{index-Bd2CRkau.js → index-sqKsSUMY.js} +1 -1
- package/dist/{index-CM5VOrAm.cjs → index-yKyLlN3j.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BPwbwRYz.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DKaT8xTU.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CH257x7-.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-VeGs2jMN.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-NkeD9-S6.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-BJWbNR2V.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BMOeYUXp.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-gNnmU49-.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_1_lang-Jtwhb1Ew.cjs → index.vue_vue_type_style_index_1_lang-BqG2FKzs.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BeoXa9kX.js → index.vue_vue_type_style_index_1_lang-DbWCiN56.js} +1 -1
- package/dist/{main-CI7kRU7n.js → main-DL-OIsZx.js} +2 -2
- package/dist/{main-CZNWGZoJ.cjs → main-rAd7GfHp.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-BL1I4TUb.cjs → threeModel-BZ45sbaM.cjs} +1 -1
- package/dist/{threeModel-C-io64Rl.js → threeModel-Bfr23IA3.js} +2 -2
- package/dist/{threeSceneView-DhOeRjsj.cjs → threeSceneView-Bbv4UqdI.cjs} +1 -1
- package/dist/{threeSceneView-DiGVnq-p.js → threeSceneView-C3kjUyQz.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-DODMcYWL.js → threeSceneViewForCPMPIP-CU85SdU2.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-DTOanktm.cjs → threeSceneViewForCPMPIP-Do8dA3xZ.cjs} +1 -1
- package/dist/{threeTrackPathView-B_-RsjVR.js → threeTrackPathView-DWqvizaQ.js} +1 -1
- package/dist/{threeTrackPathView-Bqz1eQhv.cjs → threeTrackPathView-DundgA2K.cjs} +1 -1
- package/dist/{threeViewerHost-DDqFZRzO.cjs → threeViewerHost-BRhsxthj.cjs} +1 -1
- package/dist/{threeViewerHost-CBsH5QST.js → threeViewerHost-BX-lA9Q_.js} +1 -1
- package/dist/{workpieceTreePanel-CnqpdRLE.cjs → workpieceTreePanel-BCI9f-jE.cjs} +1 -1
- package/dist/{workpieceTreePanel-DisEaomQ.js → workpieceTreePanel-BD3mDnhg.js} +2 -2
- package/package.json +1 -1
- package/dist/index-ClBi-OWD.cjs +0 -1
- package/dist/index-fiW8MgTw.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as x } from "./index.vue_vue_type_style_index_1_lang-Cg1p_3ne.js";
|
|
2
|
-
import { i as N, j as V } from "./threeViewerHost-
|
|
2
|
+
import { i as N, j as V } from "./threeViewerHost-BX-lA9Q_.js";
|
|
3
3
|
import { g as r, a as L, e as y } from "./dataUtil-DQX9rTvE.js";
|
|
4
4
|
import { c as O } from "./index-BUYYl2Pc.js";
|
|
5
5
|
const z = async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const V=require("./index.vue_vue_type_style_index_1_lang-B8_elAaU.cjs"),k=require("./threeViewerHost-
|
|
1
|
+
"use strict";const V=require("./index.vue_vue_type_style_index_1_lang-B8_elAaU.cjs"),k=require("./threeViewerHost-BRhsxthj.cjs"),a=require("./dataUtil-B4sGo38_.cjs"),q=require("./index-C8qRkCgn.cjs"),E=async()=>{let n={};const c=["弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["弯管仿真加工分析","加工位姿生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持长度||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(V.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=q.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},O=async()=>{let n={};const c=["双弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["双弯管仿真加工分析","加工工艺生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持位置||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["双弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(V.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=q.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},B=async n=>await k.downloadFile(n),X=async n=>await k.readCsv(n),Y=async n=>{const c=await B(n);return await X(c)};exports.fetchDoubleRobotAnimationData=O;exports.fetchSingleRobotAnimationData=E;exports.initXYZBCList=Y;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
|
|
2
2
|
import { p as h, s as k, c as m, g as x } from "./index-BUYYl2Pc.js";
|
|
3
3
|
import { u as M } from "./index.vue_vue_type_style_index_1_lang-Cg1p_3ne.js";
|
|
4
|
-
import { s as D } from "./index-
|
|
4
|
+
import { s as D } from "./index-BN4MhImz.js";
|
|
5
5
|
import { a as T, d as S, f as w } from "./index-DV9P2GJQ.js";
|
|
6
6
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const N = { class: "menu-content" }, E = /* @__PURE__ */ y({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./index-BP7w8f-l.cjs"),p=require("./index-C1eL6q7Z.cjs"),m=require("./index-DhufphmT.cjs"),h=require("./index-CUo9Rzi3.cjs"),C=require("./index.vue_vue_type_style_index_1_lang-B8_elAaU.cjs"),d=require("./index-C8qRkCgn.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k={class:"menu-module"},v={class:"table-wrap","element-loading-text":"加载中..."},x={class:"module-dialog-default"},w=e.defineComponent({__name:"index",setup(D){const t=e.reactive({..._.State}),l=e.ref(null),a=C.useMenuState(d.pinia),{configMenu:n}=d.storeToRefs(a);return e.onMounted(()=>{var r;t.formatFormData(n.value),e.nextTick(()=>{var o,i;(i=l.value)==null||i.setCurrentKey((o=n.value)==null?void 0:o.path),a.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((r=n.value)==null?void 0:r.path)}),(r,o)=>{const i=e.resolveComponent("el-tree"),c=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),s=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",k,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(c,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(i,{ref_key:"treeRef",ref:l,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(c,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",v,[e.createVNode(p.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",x,[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(s,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(s,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),b=f._export_sfc(w,[["__scopeId","data-v-74868a06"]]);exports.default=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DwFpQNpA.cjs"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DwFpQNpA.cjs"),r=require("./index-C1eL6q7Z.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as R, watch as Ne, nextTick as sa, resolveComponent as Fe, createBlock as De, openBlock as Y, withCtx as q, createElementVNode as ge, renderSlot as Fa, onMounted as Sa, createElementBlock as ke, normalizeStyle as vl, normalizeClass as ar, toDisplayString as Oe, createCommentVNode as Ce, createVNode as se, unref as Qe, Fragment as tl, renderList as cl, createTextVNode as ze, defineComponent as rr, reactive as Fl, inject as sn, provide as un, onBeforeUnmount as on, computed as za, onUnmounted as tn, createSlots as cn, withDirectives as Ja, vShow as Ra } from "vue";
|
|
2
2
|
import { by as Wa, ay as Ga, c as J, E as Be, cb as ka, p as yl, s as Al, u as dn, bI as ra, d as ya, b as Ul, g as zl, bK as pn, f as fn, ce as gn } from "./index-BUYYl2Pc.js";
|
|
3
3
|
import { d as qa, aG as hn } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Ca5MAWqT.js";
|
|
4
|
-
import { c as xl, _ as Qa, h as yn, e as vn, E as bn } from "./index-
|
|
5
|
-
import { c as Sn, e as Rl, a as kn, T as mn, d as va, w as Tn } from "./threeViewerHost-
|
|
4
|
+
import { c as xl, _ as Qa, h as yn, e as vn, E as bn } from "./index-jYsmQ_MD.js";
|
|
5
|
+
import { c as Sn, e as Rl, a as kn, T as mn, d as va, w as Tn } from "./threeViewerHost-BX-lA9Q_.js";
|
|
6
6
|
import { aC as ua, av as An, k as Un, i as xn, u as _n, aB as Cn, a as On, j as qe, aQ as Ha, aR as Xa, aS as En, aT as Dn, l as na, E as Ya, ax as Za, aU as Ln } from "./index.vue_vue_type_style_index_1_lang-Cg1p_3ne.js";
|
|
7
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
7
|
+
import "./index.vue_vue_type_style_index_1_lang-DbWCiN56.js";
|
|
8
8
|
import { _ as oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
import { s as Jl } from "./index-DRizRbU3.js";
|
|
10
10
|
import "./index-CV2JWX-7.js";
|
|
@@ -139,11 +139,11 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
139
139
|
label: "导出",
|
|
140
140
|
icon: "export"
|
|
141
141
|
}
|
|
142
|
-
], be = (
|
|
143
|
-
const ue =
|
|
142
|
+
], be = (ie) => {
|
|
143
|
+
const ue = ie.raw;
|
|
144
144
|
if (!ue) return;
|
|
145
|
-
const
|
|
146
|
-
|
|
145
|
+
const te = new FileReader();
|
|
146
|
+
te.onload = (w) => {
|
|
147
147
|
try {
|
|
148
148
|
const Le = new Uint8Array(w.target.result), we = Sn(Le, { type: "array" }), ll = we.SheetNames[0], We = we.Sheets[ll], al = Rl.decode_range(We["!ref"]).e.c + 1, Me = new Array(al).fill(""), k = [];
|
|
149
149
|
for (const G in We) {
|
|
@@ -169,42 +169,42 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
169
169
|
} catch (Le) {
|
|
170
170
|
throw Be.error(Le.message), new Error(Le.message);
|
|
171
171
|
}
|
|
172
|
-
},
|
|
173
|
-
}, He = (
|
|
174
|
-
var
|
|
175
|
-
const ue = (
|
|
176
|
-
Z("filter", ue,
|
|
177
|
-
}, sl = (
|
|
178
|
-
Z("buttonClick",
|
|
179
|
-
}, re = (
|
|
180
|
-
var ue,
|
|
181
|
-
ae.value = (
|
|
172
|
+
}, te.readAsArrayBuffer(ue);
|
|
173
|
+
}, He = (ie) => {
|
|
174
|
+
var te;
|
|
175
|
+
const ue = (te = ae.value) == null ? void 0 : te.reduce((w, Le, we) => (we === 0 ? w[Le.label] = ie : w[Le.label] = Le == null ? void 0 : Le.value, w), {});
|
|
176
|
+
Z("filter", ue, ie, !0);
|
|
177
|
+
}, sl = (ie) => {
|
|
178
|
+
Z("buttonClick", ie);
|
|
179
|
+
}, re = (ie) => {
|
|
180
|
+
var ue, te;
|
|
181
|
+
ae.value = (te = (ue = ua(J(ie))) == null ? void 0 : ue.filter((w) => (w == null ? void 0 : w.label) !== "" && (w == null ? void 0 : w.label) !== "操作")) == null ? void 0 : te.map((w) => ({
|
|
182
182
|
label: (w == null ? void 0 : w.label) ?? "",
|
|
183
183
|
value: "",
|
|
184
184
|
name: (w == null ? void 0 : w.label) ?? "",
|
|
185
185
|
isFormColHidden: w == null ? void 0 : w.isTableColHidden,
|
|
186
186
|
width: 2
|
|
187
187
|
}));
|
|
188
|
-
}, Je = R(!1), Re = (
|
|
188
|
+
}, Je = R(!1), Re = (ie) => {
|
|
189
189
|
var ue;
|
|
190
|
-
if ((
|
|
191
|
-
const
|
|
192
|
-
for (const w in
|
|
193
|
-
|
|
190
|
+
if ((ie == null ? void 0 : ie.buttonName) === "确认" && (Z("filter", ie == null ? void 0 : ie.content), Je.value = (ie == null ? void 0 : ie.content) && Object.values(ie == null ? void 0 : ie.content).length > 0), (ie == null ? void 0 : ie.buttonName) === "清空") {
|
|
191
|
+
const te = J(ie == null ? void 0 : ie.content);
|
|
192
|
+
for (const w in te)
|
|
193
|
+
te[w] = "";
|
|
194
194
|
ae.value = (ue = ae.value) == null ? void 0 : ue.map((w) => ({
|
|
195
195
|
...w,
|
|
196
196
|
value: ""
|
|
197
|
-
})), Z("filter",
|
|
197
|
+
})), Z("filter", te), Je.value = !1;
|
|
198
198
|
}
|
|
199
199
|
u.value = !1;
|
|
200
200
|
}, he = () => {
|
|
201
|
-
var ue,
|
|
201
|
+
var ue, te;
|
|
202
202
|
ae.value = (ue = ae.value) == null ? void 0 : ue.map((w) => ({
|
|
203
203
|
...w,
|
|
204
204
|
value: ""
|
|
205
205
|
}));
|
|
206
|
-
const
|
|
207
|
-
Z("filter",
|
|
206
|
+
const ie = (te = ae.value) == null ? void 0 : te.reduce((w, Le) => (w[Le.label] = Le.value, w), {});
|
|
207
|
+
Z("filter", ie);
|
|
208
208
|
};
|
|
209
209
|
return Sa(() => {
|
|
210
210
|
re(P.columns);
|
|
@@ -214,9 +214,9 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
214
214
|
re(P.columns);
|
|
215
215
|
},
|
|
216
216
|
{ deep: !0, immediate: !0 }
|
|
217
|
-
), (
|
|
217
|
+
), (ie, ue) => {
|
|
218
218
|
var We, bl, al, Me;
|
|
219
|
-
const
|
|
219
|
+
const te = Fe("el-icon"), w = Fe("svg-icon"), Le = Fe("el-input"), we = Fe("el-button"), ll = Fe("el-upload");
|
|
220
220
|
return L.pageLayout === "vertical" ? (Y(), ke("div", jn, [
|
|
221
221
|
ge("div", {
|
|
222
222
|
class: ar(L.compName ? "table-name-wrap" : ""),
|
|
@@ -251,7 +251,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
251
251
|
suffix: q(() => {
|
|
252
252
|
var Ue, $e;
|
|
253
253
|
return [
|
|
254
|
-
!D.value && (($e = (Ue = L.filterValues) == null ? void 0 : Ue.filter((rl) => rl)) != null && $e.join("/")) ? (Y(), De(
|
|
254
|
+
!D.value && (($e = (Ue = L.filterValues) == null ? void 0 : Ue.filter((rl) => rl)) != null && $e.join("/")) ? (Y(), De(te, {
|
|
255
255
|
key: 0,
|
|
256
256
|
style: { cursor: "pointer" },
|
|
257
257
|
onClick: he
|
|
@@ -398,7 +398,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
398
398
|
suffix: q(() => {
|
|
399
399
|
var Ue, $e;
|
|
400
400
|
return [
|
|
401
|
-
!D.value && (($e = (Ue = L.filterValues) == null ? void 0 : Ue.filter((rl) => rl)) != null && $e.join("/")) ? (Y(), De(
|
|
401
|
+
!D.value && (($e = (Ue = L.filterValues) == null ? void 0 : Ue.filter((rl) => rl)) != null && $e.join("/")) ? (Y(), De(te, {
|
|
402
402
|
key: 0,
|
|
403
403
|
style: { cursor: "pointer" },
|
|
404
404
|
onClick: he
|
|
@@ -716,14 +716,14 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
716
716
|
let P = "";
|
|
717
717
|
const D = await An(ee);
|
|
718
718
|
if (D == null || D.forEach((re) => {
|
|
719
|
-
var Je, Re, he,
|
|
720
|
-
(re == null ? void 0 : re.name) === (((
|
|
719
|
+
var Je, Re, he, ie;
|
|
720
|
+
(re == null ? void 0 : re.name) === (((ie = (he = (Re = (Je = J(L)) == null ? void 0 : Je.optionUrl) == null ? void 0 : Re.groupSelect) == null ? void 0 : he[0]) == null ? void 0 : ie.replaceAll("'", "")) ?? "") && (P = re == null ? void 0 : re.id);
|
|
721
721
|
}), P !== "") {
|
|
722
722
|
const re = (ve = D == null ? void 0 : D.find((he) => {
|
|
723
|
-
var
|
|
724
|
-
return (he == null ? void 0 : he.name) === (((ue = (
|
|
723
|
+
var ie, ue, te, w;
|
|
724
|
+
return (he == null ? void 0 : he.name) === (((ue = (ie = L == null ? void 0 : L.groupSelect) == null ? void 0 : ie.split(":")) == null ? void 0 : ue[0]) || ((w = (te = L == null ? void 0 : L.optionUrl) == null ? void 0 : te.groupSelect) == null ? void 0 : w[0]));
|
|
725
725
|
})) == null ? void 0 : ve.compData;
|
|
726
|
-
let Je = (be = (Ae = re == null ? void 0 : re.find((he) => (he == null ? void 0 : he.key) === "header")) == null ? void 0 : Ae.contents) == null ? void 0 : be.map((he) => he == null ? void 0 : he.label), Re = (sl = (He = re == null ? void 0 : re.find((he) => (he == null ? void 0 : he.key) === "tableContents")) == null ? void 0 : He.contents) == null ? void 0 : sl.map((he) => (he = he == null ? void 0 : he.filter((
|
|
726
|
+
let Je = (be = (Ae = re == null ? void 0 : re.find((he) => (he == null ? void 0 : he.key) === "header")) == null ? void 0 : Ae.contents) == null ? void 0 : be.map((he) => he == null ? void 0 : he.label), Re = (sl = (He = re == null ? void 0 : re.find((he) => (he == null ? void 0 : he.key) === "tableContents")) == null ? void 0 : He.contents) == null ? void 0 : sl.map((he) => (he = he == null ? void 0 : he.filter((ie) => !(ie != null && ie.id)), he));
|
|
727
727
|
Re == null || Re.forEach((he) => {
|
|
728
728
|
Z.push(Un(he, Je));
|
|
729
729
|
});
|
|
@@ -839,7 +839,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
839
839
|
value: "operable",
|
|
840
840
|
checked: !1
|
|
841
841
|
}
|
|
842
|
-
]), He = xn(yl), { originalPath: sl } = Al(He), re = sl.value, Je = R(!1), Re = R(!1), he = R(!1),
|
|
842
|
+
]), He = xn(yl), { originalPath: sl } = Al(He), re = sl.value, Je = R(!1), Re = R(!1), he = R(!1), ie = Fl({
|
|
843
843
|
column: {},
|
|
844
844
|
status: !1,
|
|
845
845
|
text: "合计"
|
|
@@ -848,7 +848,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
848
848
|
pageSize: 10,
|
|
849
849
|
total: 0,
|
|
850
850
|
pageSizes: [5, 10, 20, 50, 100]
|
|
851
|
-
}),
|
|
851
|
+
}), te = ee, w = R([]), Le = Fl({ prop: "", order: null }), we = R([]), ll = R(!1), We = R(!1), bl = R(null);
|
|
852
852
|
kn();
|
|
853
853
|
const al = R([]), Me = R(!1), k = R(), Se = _n(), { importLoading: G, activeMenuPath: Q, contentLoading: Ue, linkMenuInfo: $e } = Al(Se), rl = Cn(yl), je = On(yl), { extraContents: Te, cacheUpdatingData: _l, tableViewContents: Cl, tableLoading: Ls, pageMapState: dl, lockingPage: Wl } = Al(je), I = R([]), Gl = R([]), ql = R(/* @__PURE__ */ new Map());
|
|
854
854
|
R(!1);
|
|
@@ -928,12 +928,12 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
928
928
|
var d;
|
|
929
929
|
return (o == null ? void 0 : o.sortable) && ((d = o == null ? void 0 : o.label) == null ? void 0 : d.includes("时间"));
|
|
930
930
|
});
|
|
931
|
-
return r && (Le.order = "descending", Le.prop = r == null ? void 0 : r.prop),
|
|
931
|
+
return r && (Le.order = "descending", Le.prop = r == null ? void 0 : r.prop), te("getSliceContLength", ue), (n = I.value) == null ? void 0 : n.slice(e, l);
|
|
932
932
|
}), hr = (e) => {
|
|
933
|
-
ue.currentPage = e,
|
|
933
|
+
ue.currentPage = e, te("getSliceContLength", ue);
|
|
934
934
|
}, yr = (e) => {
|
|
935
935
|
var l;
|
|
936
|
-
ue.pageSize = e, e * ue.currentPage > ((l = I.value) == null ? void 0 : l.length) && (ue.currentPage = 1, ue.pageSize = 10, Be.warning("分页无效,返回第一页")),
|
|
936
|
+
ue.pageSize = e, e * ue.currentPage > ((l = I.value) == null ? void 0 : l.length) && (ue.currentPage = 1, ue.pageSize = 10, Be.warning("分页无效,返回第一页")), te("getSliceContLength", ue);
|
|
937
937
|
}, vr = (e, l) => {
|
|
938
938
|
var d, c;
|
|
939
939
|
const r = (c = (d = w.value) == null ? void 0 : d.map((p) => p == null ? void 0 : p.prop)) == null ? void 0 : c.filter((p) => p !== "operate");
|
|
@@ -1038,7 +1038,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1038
1038
|
}, _r = () => {
|
|
1039
1039
|
ul.value = !1;
|
|
1040
1040
|
}, Cr = (e) => {
|
|
1041
|
-
|
|
1041
|
+
te("clickTrigger", e);
|
|
1042
1042
|
}, Ua = async (e) => {
|
|
1043
1043
|
var o, d, c, p, b, s, U, K, y, _, E, S, N, T, j;
|
|
1044
1044
|
const l = e == null ? void 0 : e.row, r = e == null ? void 0 : e.rowData, a = e == null ? void 0 : e.suffix;
|
|
@@ -1217,11 +1217,11 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1217
1217
|
f.push({
|
|
1218
1218
|
key: il.value === "" ? (E = e == null ? void 0 : e.id) == null ? void 0 : E.toString() : il.value + "-" + ((S = e == null ? void 0 : e.id) == null ? void 0 : S.toString()),
|
|
1219
1219
|
value: e[(N = Object.keys(e)) == null ? void 0 : N.filter((g) => g !== "index" && g !== "id")[0]]
|
|
1220
|
-
}), Zl.setSelectMenu(il.value === "" ? (T = e == null ? void 0 : e.id) == null ? void 0 : T.toString() : il.value + "-" + ((j = e == null ? void 0 : e.id) == null ? void 0 : j.toString())), Zl.setSelectTitle(f), Zl.setSelectIndex((m = e == null ? void 0 : e.id) == null ? void 0 : m.toString()),
|
|
1220
|
+
}), Zl.setSelectMenu(il.value === "" ? (T = e == null ? void 0 : e.id) == null ? void 0 : T.toString() : il.value + "-" + ((j = e == null ? void 0 : e.id) == null ? void 0 : j.toString())), Zl.setSelectTitle(f), Zl.setSelectIndex((m = e == null ? void 0 : e.id) == null ? void 0 : m.toString()), te("pageChange", o);
|
|
1221
1221
|
}
|
|
1222
1222
|
}, _a = async (e, l, r, a) => {
|
|
1223
1223
|
var o, d, c, p, b, s, U, K, y, _, E, S, N, T, j, m, f, g, i, v, B, x, H, ne, V;
|
|
1224
|
-
if (
|
|
1224
|
+
if (te("clickMainKey", r), (a == null ? void 0 : a.isExistChild) === !0) {
|
|
1225
1225
|
let W = (d = (o = w.value) == null ? void 0 : o.find((z) => (z == null ? void 0 : z.isMainKey) === !0)) == null ? void 0 : d.prop, X = (c = a == null ? void 0 : a.rowContent) == null ? void 0 : c[W], C = (b = (p = a == null ? void 0 : a.columnType) == null ? void 0 : p.childPath) == null ? void 0 : b.split(re), $ = [];
|
|
1226
1226
|
C == null || C.forEach((z, t) => {
|
|
1227
1227
|
(C == null ? void 0 : C.length) - 1 === t && $.push(X), $.push(z);
|
|
@@ -1240,7 +1240,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1240
1240
|
createUserId: (me = ye.value) == null ? void 0 : me.id,
|
|
1241
1241
|
parentPageKey: "",
|
|
1242
1242
|
createUserLayer: ((pe = ye.value) == null ? void 0 : pe.dept) || ((A = ye.value) == null ? void 0 : A.部门名称)
|
|
1243
|
-
},
|
|
1243
|
+
}, oe = {
|
|
1244
1244
|
pageData: {
|
|
1245
1245
|
comp: M == null ? void 0 : M.comp,
|
|
1246
1246
|
compData: (h = M == null ? void 0 : M.compData) == null ? void 0 : h.filter((ce) => (ce == null ? void 0 : ce.key) !== "tableContents"),
|
|
@@ -1250,7 +1250,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1250
1250
|
};
|
|
1251
1251
|
z.push({
|
|
1252
1252
|
key: O,
|
|
1253
|
-
value:
|
|
1253
|
+
value: oe
|
|
1254
1254
|
});
|
|
1255
1255
|
}), (z == null ? void 0 : z.length) > 0 && await ra({
|
|
1256
1256
|
dataList: z
|
|
@@ -1260,18 +1260,18 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1260
1260
|
} else {
|
|
1261
1261
|
let z = le == null ? void 0 : le.map((t) => {
|
|
1262
1262
|
var M, O;
|
|
1263
|
-
return (t == null ? void 0 : t.comp) === "Form"
|
|
1263
|
+
return (t == null ? void 0 : t.comp) === "Form" ? t.compData = (M = t.compData) == null ? void 0 : M.map((oe) => {
|
|
1264
1264
|
var me;
|
|
1265
|
-
return (
|
|
1265
|
+
return (oe == null ? void 0 : oe.key) === "formContent" && (oe.contents = (me = oe == null ? void 0 : oe.contents) == null ? void 0 : me.map((pe) => {
|
|
1266
1266
|
var h, ce, de, fe, _e;
|
|
1267
1267
|
let A = (_e = (fe = (de = (ce = (h = F == null ? void 0 : F.find((xe) => (xe == null ? void 0 : xe.name) === (t == null ? void 0 : t.name))) == null ? void 0 : h.compData) == null ? void 0 : ce.find((xe) => (xe == null ? void 0 : xe.key) === "formContent")) == null ? void 0 : de.contents) == null ? void 0 : fe.find((xe) => (xe == null ? void 0 : xe.prop) === (pe == null ? void 0 : pe.prop))) == null ? void 0 : _e.value;
|
|
1268
1268
|
return pe.value = A, pe;
|
|
1269
|
-
})),
|
|
1270
|
-
})), t.id = (O = F == null ? void 0 : F.find((
|
|
1269
|
+
})), oe;
|
|
1270
|
+
}) : t = F == null ? void 0 : F.find((oe) => (oe == null ? void 0 : oe.name) === (t == null ? void 0 : t.name)), t.id = (O = F == null ? void 0 : F.find((oe) => (oe == null ? void 0 : oe.name) === (t == null ? void 0 : t.name))) == null ? void 0 : O.id, t;
|
|
1271
1271
|
});
|
|
1272
1272
|
Il.value = z;
|
|
1273
1273
|
}
|
|
1274
|
-
|
|
1274
|
+
te("routeUrl", Il.value, {
|
|
1275
1275
|
isEdit: !0,
|
|
1276
1276
|
routerUrl: $
|
|
1277
1277
|
});
|
|
@@ -1322,7 +1322,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1322
1322
|
}, $r = () => {
|
|
1323
1323
|
Me.value = !1;
|
|
1324
1324
|
}, Kr = (e) => {
|
|
1325
|
-
|
|
1325
|
+
te("rowClick", e);
|
|
1326
1326
|
};
|
|
1327
1327
|
Ne(
|
|
1328
1328
|
() => u.changedContent,
|
|
@@ -1337,10 +1337,10 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1337
1337
|
}, delete n.newId), n;
|
|
1338
1338
|
});
|
|
1339
1339
|
const l = (a = u.itemData) == null ? void 0 : a.map((n) => ((n == null ? void 0 : n.key) === "tableContents" && (n.contents = e), n));
|
|
1340
|
-
I.value = e,
|
|
1340
|
+
I.value = e, te("contentChange", {
|
|
1341
1341
|
contents: l,
|
|
1342
1342
|
index: u.index
|
|
1343
|
-
}),
|
|
1343
|
+
}), te("change", {
|
|
1344
1344
|
content: e,
|
|
1345
1345
|
index: u == null ? void 0 : u.index,
|
|
1346
1346
|
buttonName: "",
|
|
@@ -1413,8 +1413,8 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1413
1413
|
M == null || M.forEach((me, pe) => {
|
|
1414
1414
|
(M == null ? void 0 : M.length) - 1 === pe && O.push(_), O.push(me);
|
|
1415
1415
|
}), O = O.join(re), y = O;
|
|
1416
|
-
let
|
|
1417
|
-
b = Nr(
|
|
1416
|
+
let oe = await qe(O, sessionStorage.getItem("systemKey"), "");
|
|
1417
|
+
b = Nr(oe);
|
|
1418
1418
|
}
|
|
1419
1419
|
const E = await Mr(o, {
|
|
1420
1420
|
token: s,
|
|
@@ -1428,9 +1428,9 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1428
1428
|
if (f) {
|
|
1429
1429
|
let t = [], M = [];
|
|
1430
1430
|
f == null || f.forEach((O) => {
|
|
1431
|
-
var
|
|
1431
|
+
var oe, me;
|
|
1432
1432
|
if ((O == null ? void 0 : O.comp) === "Table")
|
|
1433
|
-
(
|
|
1433
|
+
(oe = O == null ? void 0 : O.compData) == null || oe.forEach((pe) => {
|
|
1434
1434
|
var A;
|
|
1435
1435
|
(pe == null ? void 0 : pe.key) === "tableContents" && ((A = pe == null ? void 0 : pe.contents) == null || A.forEach((h) => {
|
|
1436
1436
|
var ce, de;
|
|
@@ -1501,7 +1501,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1501
1501
|
};
|
|
1502
1502
|
g == null || g.forEach((O) => {
|
|
1503
1503
|
var A;
|
|
1504
|
-
let
|
|
1504
|
+
let oe = (A = O == null ? void 0 : O.compData) == null ? void 0 : A.map((h) => {
|
|
1505
1505
|
var ce;
|
|
1506
1506
|
return (h == null ? void 0 : h.key) === "formContent" && (h.contents = (ce = h.contents) == null ? void 0 : ce.map((de) => {
|
|
1507
1507
|
var fe, _e;
|
|
@@ -1512,7 +1512,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1512
1512
|
comp: O == null ? void 0 : O.comp,
|
|
1513
1513
|
name: O == null ? void 0 : O.name,
|
|
1514
1514
|
isShow: O == null ? void 0 : O.isShow,
|
|
1515
|
-
compData:
|
|
1515
|
+
compData: oe
|
|
1516
1516
|
}
|
|
1517
1517
|
};
|
|
1518
1518
|
t.push({
|
|
@@ -1527,11 +1527,11 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
let i = await qe(y, sessionStorage.getItem("systemKey"), ""), v = [];
|
|
1529
1529
|
S != null && S.table && ((z = S == null ? void 0 : S.table) == null || z.forEach((t) => {
|
|
1530
|
-
var
|
|
1530
|
+
var oe, me, pe, A;
|
|
1531
1531
|
let M = {
|
|
1532
1532
|
type: "data",
|
|
1533
1533
|
pageKey: y,
|
|
1534
|
-
tableId: (
|
|
1534
|
+
tableId: (oe = i == null ? void 0 : i[0]) == null ? void 0 : oe.id,
|
|
1535
1535
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
1536
1536
|
createUserId: (me = ye.value) == null ? void 0 : me.id,
|
|
1537
1537
|
createUserOrg: ((pe = ye.value) == null ? void 0 : pe.dept) || ((A = ye.value) == null ? void 0 : A.部门名称)
|
|
@@ -1574,7 +1574,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1574
1574
|
}, Jr = (e) => {
|
|
1575
1575
|
var l, r;
|
|
1576
1576
|
if ((e == null ? void 0 : e.buttonName) === "取消") return Ee.show = !1;
|
|
1577
|
-
Ee.to = e == null ? void 0 : e.content, !(!(u != null && u.index) || !((l = Ee.to) != null && l.groupName)) && (u == null ? void 0 : u.index) !== ((r = Ee.to) == null ? void 0 : r.groupName) && (
|
|
1577
|
+
Ee.to = e == null ? void 0 : e.content, !(!(u != null && u.index) || !((l = Ee.to) != null && l.groupName)) && (u == null ? void 0 : u.index) !== ((r = Ee.to) == null ? void 0 : r.groupName) && (te("change", {
|
|
1578
1578
|
buttonName: "迁移",
|
|
1579
1579
|
value: {
|
|
1580
1580
|
from: Ee.from,
|
|
@@ -1584,14 +1584,14 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1584
1584
|
}), Ee.show = !1);
|
|
1585
1585
|
}, aa = async (e, l, r) => {
|
|
1586
1586
|
var a, n, o, d, c, p, b, s, U, K, y, _, E, S, N;
|
|
1587
|
-
if (nl.value = "", Xl.value = !0, Ql.value = !0,
|
|
1587
|
+
if (nl.value = "", Xl.value = !0, Ql.value = !0, te("onButtonClick", e, l), e === "删除")
|
|
1588
1588
|
Ya.confirm("是否确认删除", "温馨提示", {
|
|
1589
1589
|
confirmButtonText: "确认",
|
|
1590
1590
|
cancelButtonText: "取消",
|
|
1591
1591
|
type: "warning"
|
|
1592
1592
|
}).then(() => {
|
|
1593
1593
|
var T, j;
|
|
1594
|
-
(T = I.value) != null && T.find((m) => (m == null ? void 0 : m.id) === (l == null ? void 0 : l.id)) ? I.value = (j = J(I.value)) == null ? void 0 : j.filter((m) => (m == null ? void 0 : m.id) !== (l == null ? void 0 : l.id)) : I.value = Ca(J(I.value), l), ss(Yl.value, il.value, l == null ? void 0 : l.id), je.setTableLoading(u == null ? void 0 : u.index),
|
|
1594
|
+
(T = I.value) != null && T.find((m) => (m == null ? void 0 : m.id) === (l == null ? void 0 : l.id)) ? I.value = (j = J(I.value)) == null ? void 0 : j.filter((m) => (m == null ? void 0 : m.id) !== (l == null ? void 0 : l.id)) : I.value = Ca(J(I.value), l), ss(Yl.value, il.value, l == null ? void 0 : l.id), je.setTableLoading(u == null ? void 0 : u.index), te("change", {
|
|
1595
1595
|
content: I.value,
|
|
1596
1596
|
singleContent: l,
|
|
1597
1597
|
index: u == null ? void 0 : u.index,
|
|
@@ -1611,7 +1611,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1611
1611
|
() => {
|
|
1612
1612
|
var j, m;
|
|
1613
1613
|
const T = (j = Ve.value) == null ? void 0 : j.map((f) => f.id);
|
|
1614
|
-
I.value = (m = J(I.value)) == null ? void 0 : m.filter((f) => !(T != null && T.includes(f.id))), je.setTableLoading(u == null ? void 0 : u.index),
|
|
1614
|
+
I.value = (m = J(I.value)) == null ? void 0 : m.filter((f) => !(T != null && T.includes(f.id))), je.setTableLoading(u == null ? void 0 : u.index), te("change", {
|
|
1615
1615
|
content: I.value,
|
|
1616
1616
|
singleContent: null,
|
|
1617
1617
|
selectItems: Ve.value,
|
|
@@ -1757,7 +1757,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
}, Oa = (e, l, r, a) => {
|
|
1759
1759
|
var n;
|
|
1760
|
-
|
|
1760
|
+
te("contentChange", {
|
|
1761
1761
|
contents: (n = e == null ? void 0 : e.compData) == null ? void 0 : n.map((o) => {
|
|
1762
1762
|
var d;
|
|
1763
1763
|
return (o == null ? void 0 : o.key) === "formContent" ? {
|
|
@@ -2051,7 +2051,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2051
2051
|
column: w.value,
|
|
2052
2052
|
parentTableId: u == null ? void 0 : u.parentTableId
|
|
2053
2053
|
};
|
|
2054
|
-
je.setTableLoading(u == null ? void 0 : u.index), ul.value = !1, Ke.value = void 0,
|
|
2054
|
+
je.setTableLoading(u == null ? void 0 : u.index), ul.value = !1, Ke.value = void 0, te("change", T);
|
|
2055
2055
|
}
|
|
2056
2056
|
};
|
|
2057
2057
|
tn(() => {
|
|
@@ -2063,14 +2063,14 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2063
2063
|
const a = J(u.itemData), n = a == null ? void 0 : a.map((m) => {
|
|
2064
2064
|
var f;
|
|
2065
2065
|
return (m == null ? void 0 : m.key) === "header" && ((f = m.contents) == null || f.map((g, i) => {
|
|
2066
|
-
var v, B, x, H, ne, V, W, X, C, $, F, le, z, t, M, O,
|
|
2066
|
+
var v, B, x, H, ne, V, W, X, C, $, F, le, z, t, M, O, oe, me, pe;
|
|
2067
2067
|
return g.type = g != null && g.type ? g.type : (H = (x = (B = (v = g == null ? void 0 : g.key) == null ? void 0 : v.split("$")) == null ? void 0 : B[1]) == null ? void 0 : x.split("(")) != null && H[0] ? (V = (ne = Za) == null ? void 0 : ne.find((A) => {
|
|
2068
2068
|
var h, ce, de, fe;
|
|
2069
2069
|
return (A == null ? void 0 : A.key) === ((fe = (de = (ce = (h = g == null ? void 0 : g.key) == null ? void 0 : h.split("$")) == null ? void 0 : ce[1]) == null ? void 0 : de.split("(")) == null ? void 0 : fe[0]);
|
|
2070
2070
|
})) == null ? void 0 : V.value : "Input", g.options = g != null && g.options ? g.options : ((C = (X = (W = g == null ? void 0 : g.key) == null ? void 0 : W.split("$")) == null ? void 0 : X[1]) == null ? void 0 : C.length) > 0 ? (z = (le = Ia((F = ($ = g == null ? void 0 : g.key) == null ? void 0 : $.split("$")) == null ? void 0 : F[1])) == null ? void 0 : le.split(",")) == null ? void 0 : z.map((A) => ({
|
|
2071
2071
|
label: A,
|
|
2072
2072
|
value: A
|
|
2073
|
-
})) : [], (t = g == null ? void 0 : g.key) != null && t.includes("$") && (g.key = (O = (M = g == null ? void 0 : g.key) == null ? void 0 : M.split("$")) == null ? void 0 : O[0]), g.value = (
|
|
2073
|
+
})) : [], (t = g == null ? void 0 : g.key) != null && t.includes("$") && (g.key = (O = (M = g == null ? void 0 : g.key) == null ? void 0 : M.split("$")) == null ? void 0 : O[0]), g.value = (oe = Object.values(l)) == null ? void 0 : oe[i], g.optionUrl = g != null && g.formMenuSelect && ((me = g == null ? void 0 : g.formMenuSelect) == null ? void 0 : me.length) > 0 ? {
|
|
2074
2074
|
groupSelect: (pe = g == null ? void 0 : g.groupSelect) == null ? void 0 : pe.split(/[::]/).map((A) => A.trim()),
|
|
2075
2075
|
menuSelect: g == null ? void 0 : g.formMenuSelect,
|
|
2076
2076
|
selectRelateType: "",
|
|
@@ -2139,14 +2139,14 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2139
2139
|
let r = l == null ? void 0 : l.map((f) => {
|
|
2140
2140
|
var g;
|
|
2141
2141
|
return (f == null ? void 0 : f.key) === "header" && ((g = f.contents) == null || g.map((i, v) => {
|
|
2142
|
-
var B, x, H, ne, V, W, X, C, $, F, le, z, t, M, O,
|
|
2142
|
+
var B, x, H, ne, V, W, X, C, $, F, le, z, t, M, O, oe, me, pe, A;
|
|
2143
2143
|
return i.type = i != null && i.type ? i.type : (ne = (H = (x = (B = i == null ? void 0 : i.key) == null ? void 0 : B.split("$")) == null ? void 0 : x[1]) == null ? void 0 : H.split("(")) != null && ne[0] ? (W = (V = Za) == null ? void 0 : V.find((h) => {
|
|
2144
2144
|
var ce, de, fe, _e;
|
|
2145
2145
|
return (h == null ? void 0 : h.key) === ((_e = (fe = (de = (ce = i == null ? void 0 : i.key) == null ? void 0 : ce.split("$")) == null ? void 0 : de[1]) == null ? void 0 : fe.split("(")) == null ? void 0 : _e[0]);
|
|
2146
2146
|
})) == null ? void 0 : W.value : "Input", i.options = i != null && i.options ? i.options : (($ = (C = (X = i == null ? void 0 : i.key) == null ? void 0 : X.split("$")) == null ? void 0 : C[1]) == null ? void 0 : $.length) > 0 ? (t = (z = Ia((le = (F = i == null ? void 0 : i.key) == null ? void 0 : F.split("$")) == null ? void 0 : le[1])) == null ? void 0 : z.split(",")) == null ? void 0 : t.map((h) => ({
|
|
2147
2147
|
label: h,
|
|
2148
2148
|
value: h
|
|
2149
|
-
})) : [], (M = i == null ? void 0 : i.key) != null && M.includes("$") && (i.key = (
|
|
2149
|
+
})) : [], (M = i == null ? void 0 : i.key) != null && M.includes("$") && (i.key = (oe = (O = i == null ? void 0 : i.key) == null ? void 0 : O.split("$")) == null ? void 0 : oe[0]), i.value = (me = Object.values(e)) == null ? void 0 : me[v], i.optionUrl = i != null && i.formMenuSelect && ((pe = i == null ? void 0 : i.formMenuSelect) == null ? void 0 : pe.length) > 0 ? {
|
|
2150
2150
|
groupSelect: (A = i == null ? void 0 : i.groupSelect) == null ? void 0 : A.split(/[::]/).map((h) => h.trim()),
|
|
2151
2151
|
menuSelect: i == null ? void 0 : i.formMenuSelect,
|
|
2152
2152
|
selectRelateType: "",
|
|
@@ -2342,8 +2342,8 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2342
2342
|
Ye.value = M;
|
|
2343
2343
|
let O = [];
|
|
2344
2344
|
gl.value === "" ? O = p == null ? void 0 : p[0] : O = (p == null ? void 0 : p.find((A) => (A == null ? void 0 : A.selectLabel) === "(" + gl.value + ")")) ?? (p == null ? void 0 : p.find((A) => !(A != null && A.selectLabel)));
|
|
2345
|
-
let
|
|
2346
|
-
U != null && U.contents && ((ne = U == null ? void 0 : U.contents) == null ? void 0 : ne.length) !== 0 && (
|
|
2345
|
+
let oe = Array.isArray((B = O == null ? void 0 : O.contents) == null ? void 0 : B[0]) && ((x = O == null ? void 0 : O.contents) != null && x[0].every((A) => Array.isArray(A))) ? (H = O == null ? void 0 : O.contents) == null ? void 0 : H[0] : O == null ? void 0 : O.contents;
|
|
2346
|
+
U != null && U.contents && ((ne = U == null ? void 0 : U.contents) == null ? void 0 : ne.length) !== 0 && (oe = (V = J(oe)) == null ? void 0 : V.map((A, h) => {
|
|
2347
2347
|
if (!Array.isArray(A)) {
|
|
2348
2348
|
let ce = {};
|
|
2349
2349
|
for (let de in A)
|
|
@@ -2353,9 +2353,9 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2353
2353
|
return A;
|
|
2354
2354
|
}));
|
|
2355
2355
|
const me = !!((W = w.value) != null && W.find((A) => A.prop === "index"));
|
|
2356
|
-
|
|
2356
|
+
oe = nr(oe, U == null ? void 0 : U.contents, me);
|
|
2357
2357
|
const pe = [];
|
|
2358
|
-
|
|
2358
|
+
oe == null || oe.forEach((A, h) => {
|
|
2359
2359
|
var de;
|
|
2360
2360
|
let ce = {};
|
|
2361
2361
|
if (Array.isArray(A)) {
|
|
@@ -2430,7 +2430,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2430
2430
|
Ae.value = e, (e == null ? void 0 : e.length) === 0 ? Ze.value = !1 : (e != null && e.includes("read") || (Ze.value = !0), e != null && e.includes("edit") || (Ze.value = !1)), ve.value = ((l = u == null ? void 0 : u.config) == null ? void 0 : l.showIndex) || Ze.value;
|
|
2431
2431
|
}, { immediate: !0 }), Ne(() => Ze.value, (e) => {
|
|
2432
2432
|
var l;
|
|
2433
|
-
e ? (ha("viewChange"), je.setCacheUpdatingData(null)) : (kl.value = fl.value, w.value = al.value, _l.value && (je.setTableLoading(u == null ? void 0 : u.index),
|
|
2433
|
+
e ? (ha("viewChange"), je.setCacheUpdatingData(null)) : (kl.value = fl.value, w.value = al.value, _l.value && (je.setTableLoading(u == null ? void 0 : u.index), te("change", _l.value))), ae.value = e, ve.value = e || ((l = u == null ? void 0 : u.config) == null ? void 0 : l.showIndex);
|
|
2434
2434
|
}, { immediate: !0 }), Ne(() => {
|
|
2435
2435
|
var e;
|
|
2436
2436
|
return (e = Aa.value) == null ? void 0 : e.length;
|
|
@@ -2493,7 +2493,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2493
2493
|
pageObj: ue,
|
|
2494
2494
|
showIndex: ve.value,
|
|
2495
2495
|
isTree: (b = L.compItem) == null ? void 0 : b.isTree,
|
|
2496
|
-
summaryInfo:
|
|
2496
|
+
summaryInfo: ie,
|
|
2497
2497
|
columns: w.value,
|
|
2498
2498
|
defaultSort: Le,
|
|
2499
2499
|
isCardViewport: Vl.value,
|
|
@@ -2938,7 +2938,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2938
2938
|
]);
|
|
2939
2939
|
};
|
|
2940
2940
|
}
|
|
2941
|
-
}, Rs = /* @__PURE__ */ oa(Ds, [["__scopeId", "data-v-
|
|
2941
|
+
}, Rs = /* @__PURE__ */ oa(Ds, [["__scopeId", "data-v-448276a3"]]);
|
|
2942
2942
|
export {
|
|
2943
2943
|
ts as a,
|
|
2944
2944
|
Vn as b,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("vue"),O=require("./index.vue_vue_type_style_index_1_lang-B8_elAaU.cjs"),i=require("./index-C8qRkCgn.cjs"),pe=require("./index-fiW8MgTw.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:B,activeMenuPath:q,cacheStructures:E}=i.storeToRefs(I),j=g.ref(!1),te=g.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(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),H=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:H.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:$.value}]),J=g.ref([]),k=g.ref({}),de=g.ref({}),_=g.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}]),R=e=>{var t;J.value=e?(t=_.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]:""}):_.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=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}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.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 i.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})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?H.value.splice(0):(H.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 F(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=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)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=_.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 Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.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);A.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 i.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 T,M,w,N,P,o,K;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(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;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=B.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.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&&($.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},x=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:q.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=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.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{i.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(x(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(x(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(x(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=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 g.nextTick();const a=(n=(u=(l=E.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=E.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=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.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:q.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),O.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),F(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...B.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...B.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 Me(e,t),k.value={},v.show=!1,await F(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:F,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
|
|
1
|
+
"use strict";const g=require("vue"),O=require("./index.vue_vue_type_style_index_1_lang-B8_elAaU.cjs"),i=require("./index-C8qRkCgn.cjs"),pe=require("./index-C1eL6q7Z.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:B,activeMenuPath:q,cacheStructures:E}=i.storeToRefs(I),j=g.ref(!1),te=g.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(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),H=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:H.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:$.value}]),J=g.ref([]),k=g.ref({}),de=g.ref({}),_=g.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}]),R=e=>{var t;J.value=e?(t=_.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]:""}):_.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=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}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.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 i.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})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?H.value.splice(0):(H.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 F(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=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)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=_.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 Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.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);A.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 i.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 T,M,w,N,P,o,K;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(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;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=B.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.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&&($.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},x=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:q.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=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.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{i.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(x(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(x(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(x(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=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 g.nextTick();const a=(n=(u=(l=E.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=E.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=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.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:q.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),O.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),F(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...B.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...B.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 Me(e,t),k.value={},v.show=!1,await F(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:F,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-O1JbRmM1.cjs");const h=require("./index-C8qRkCgn.cjs");require("./array-CYnA_0YM.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_1_lang-B8_elAaU.cjs");require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-BJWbNR2V.cjs");require("./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DKaT8xTU.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-pcyvQAbK.cjs");require("./index.vue_vue_type_style_index_1_lang-BqG2FKzs.cjs");require("./index-a6bC3A9D.cjs");require("vue-router");require("./index-DqFTTAE_.cjs");require("./dataUtil-B4sGo38_.cjs");;/* empty css */require("./index-B21qNg4A.cjs");const S={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""},pageKey:{type:String,default:""}},emits:["buildContent","openThreeBuild","threeData"],setup(o,{emit:c}){const e=o,i=c,s=h.useLoginState();n.watch(()=>e==null?void 0:e.systemKey,t=>{s.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.systemInfo,t=>{s.setSystemInfo(t)},{immediate:!0});const l=()=>{i("buildContent")},m=()=>{i("setLoginInfo")},y=t=>{i("openThreeBuild",t)},f=t=>{i("threeData",t)},u=()=>{var a;const t=e!=null&&e.windowConfig?(a=e==null?void 0:e.windowConfig)==null?void 0:a.width:window.innerWidth,r=1920,d=16,w=t/r,g=d*w;document.documentElement.style.fontSize=`${g}px`};return n.onMounted(()=>{u(),window.addEventListener("resize",u)}),n.onUnmounted(()=>{window.removeEventListener("resize",u)}),(t,r)=>{const d=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(d,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:o.windowConfig,systemInfo:o.systemInfo,"old-systemKey":o.systemKey,onBuildContent:l,onOpenThreeBuild:y,pageKey:o.pageKey,onThreeData:f,onSetLoginInfo:m},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey"])])}}},q=C._export_sfc(S,[["__scopeId","data-v-8729380f"]]);exports.default=q;
|