ss-component-new 1.2.19 → 1.2.21
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-DHZB79in.js → animationData-BgVD7m_Z.js} +4 -4
- package/dist/{animationData-CM-r9wyr.cjs → animationData-CMbPkqzG.cjs} +1 -1
- package/dist/{array-DtLHXuRQ.cjs → array-CFSAyjws.cjs} +1 -1
- package/dist/{array-lSB-nT70.js → array-DPyu0w54.js} +2 -2
- package/dist/{index-BdpUfLri.cjs → index-10VrsYdM.cjs} +1 -1
- package/dist/{index-BA5XOzgo.js → index-B0IAWN2b.js} +6 -6
- package/dist/{index-CQF_xosZ.cjs → index-B1GAMEgu.cjs} +1 -1
- package/dist/{index-Cwgs7EkD.js → index-B1XSRq6_.js} +1 -1
- package/dist/index-B3GHAekq.cjs +1 -0
- package/dist/{index-qagc_PIZ.js → index-B3VR9DS9.js} +127 -127
- package/dist/{index-CYp77kPp.js → index-B42dCx1W.js} +35 -35
- package/dist/{index-BXBJvXWT.js → index-BHMxqTVw.js} +1 -1
- package/dist/{index-BZPwTn-e.js → index-BISAvhZU.js} +3 -3
- package/dist/{index-B66Gznvh.cjs → index-BIvF4-_X.cjs} +1 -1
- package/dist/{index-DLovX_qy.js → index-BIxz3VQK.js} +11 -11
- package/dist/{index-CDLzfr4U.js → index-BKM1OHVI.js} +2 -2
- package/dist/{index-CYe2gI66.cjs → index-BKPxS6l5.cjs} +1 -1
- package/dist/{index-CCZA5OMk.js → index-BKd-eN-X.js} +45 -45
- package/dist/{index-d7fMw53g.cjs → index-BSzMEymQ.cjs} +1 -1
- package/dist/{index-C0lRDd5G.cjs → index-BVORb8w5.cjs} +1 -1
- package/dist/{index-CJ18eFLi.cjs → index-BaEflW9q.cjs} +1 -1
- package/dist/{index-C461j30b.js → index-Bgje9P6C.js} +1 -1
- package/dist/{index-CKvtRDgL.cjs → index-Bm44NMcZ.cjs} +1 -1
- package/dist/{index-DoJxkMbN.js → index-BnP-OVLZ.js} +19 -19
- package/dist/{index-CUm-3IJT.cjs → index-BoBLST3L.cjs} +1 -1
- package/dist/{index-Cp9R4hVX.cjs → index-Bpa1jsWq.cjs} +1 -1
- package/dist/{index-DW-CHCUy.js → index-BsorG9sX.js} +3 -3
- package/dist/{index-CohL-xT-.js → index-Byuw-d13.js} +2 -2
- package/dist/{index-DWyHMwpG.js → index-CETOzEkF.js} +6 -6
- package/dist/{index-BwjuTBrR.js → index-CFrBvay9.js} +1 -1
- package/dist/{index-ClF5mrVY.cjs → index-CPVt8Wrk.cjs} +1 -1
- package/dist/{index-BkRpCoTx.cjs → index-CTVVACAH.cjs} +1 -1
- package/dist/{index-ct6Uwcq4.cjs → index-CahUIEFl.cjs} +1 -1
- package/dist/{index--LhAkpOq.cjs → index-CbslhDEf.cjs} +1 -1
- package/dist/{index-Dw4KeMlJ.cjs → index-Cu7pB5GB.cjs} +1 -1
- package/dist/{index-Cf79bLZO.js → index-Cu_QyXxB.js} +2 -2
- package/dist/{index-DcmGr3J0.cjs → index-CyqP7oeY.cjs} +1 -1
- package/dist/{index-BKgbkArH.cjs → index-CyzuptEh.cjs} +1 -1
- package/dist/{index-n6maO8qu.js → index-D0fqSkIt.js} +2 -2
- package/dist/{index-BfNqdIOP.js → index-D3w8CFxz.js} +4 -4
- package/dist/{index-Cqd0F9a9.js → index-DAkKNbYV.js} +12 -12
- package/dist/{index-DhqF2CA-.js → index-DRGXzdw7.js} +2 -2
- package/dist/{index-CijoI-9f.js → index-DZgwOX56.js} +6 -6
- package/dist/{index-DFXZiHSV.cjs → index-DaOTArXF.cjs} +1 -1
- package/dist/{index-9YqHJG26.js → index-DhcAF24X.js} +8 -8
- package/dist/{index-BovzU-BN.js → index-DmmUjSu_.js} +4 -4
- package/dist/{index-BWHJGJ1e.cjs → index-Do4CoXhH.cjs} +1 -1
- package/dist/{index-CAkJ-S5C.cjs → index-DpmVXC_Q.cjs} +1 -1
- package/dist/{index-C26I2eIi.cjs → index-DubsCmcm.cjs} +1 -1
- package/dist/{index-CAAtUOzM.cjs → index-DwkFRUcM.cjs} +1 -1
- package/dist/{index-CvSBsAV7.cjs → index-FGO3o5gd.cjs} +1 -1
- package/dist/{index-CutRp0mU.js → index-IplqGB4d.js} +6 -6
- package/dist/{index-Ckc2csf3.js → index-Z-Tg_cZ7.js} +2 -2
- package/dist/{index-CY02zKVE.cjs → index-bL_GpYsf.cjs} +1 -1
- package/dist/{index-CqnPwWag.js → index-lzrjiUS5.js} +2 -2
- package/dist/{index-Cd58A7uv.cjs → index-rhNfaMfG.cjs} +1 -1
- package/dist/{index-B19xwKx1.js → index-sUsojzpW.js} +1 -1
- package/dist/{index-CwVl7hYK.js → index-w38DtIEl.js} +6 -6
- package/dist/{index-BdioXHog.js → index-x1q2XfBL.js} +12 -12
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CqTDROhf.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Be4dFvUC.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DMNlG9dC.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CIRzfvAn.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DZZXEjAk.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-6zdxGopn.js} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CM9szr9Y.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-97ZyXl6J.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DCpKvb-8.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BgIXU87c.js} +11641 -11513
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CY0MiFwy.cjs +56 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-CecxMizO.cjs → index.vue_vue_type_style_index_1_lang-29vzgcAi.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BswQV5Lr.js → index.vue_vue_type_style_index_1_lang-CtkjAjQ8.js} +3 -3
- package/dist/index.vue_vue_type_style_index_1_lang-DUZFMfkl.js +8310 -0
- package/dist/index.vue_vue_type_style_index_1_lang-ckXQqCiT.cjs +32 -0
- package/dist/{isString-BNK38WbE.js → isString-BrYdkZh8.js} +1 -1
- package/dist/{main-oZpjzC8J.cjs → main-Bt-9WV5Z.cjs} +1 -1
- package/dist/{main-DD4ds9VF.js → main-DNN-2mgC.js} +5 -5
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeLatheView-Bp0kjo_V.js → threeLatheView-DuqX5kKf.js} +2 -2
- package/dist/{threeModel-CFk-bjEz.cjs → threeModel-14TQ7qah.cjs} +1 -1
- package/dist/{threeModel-od894OgJ.js → threeModel-KPFJkl4n.js} +3 -3
- package/dist/{threePreview-DFFjm93P.js → threePreview-B7C8gY5w.js} +1 -1
- package/dist/{threeSceneView-DKa3NvXL.cjs → threeSceneView-Bb-MdEV9.cjs} +1 -1
- package/dist/{threeSceneView-J9yJnd-8.js → threeSceneView-SrIIrGLz.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-C9RBmFtK.js → threeSceneViewForCPMPIP-CN_9lSRm.js} +25 -25
- package/dist/{threeSceneViewForCPMPIP-cGJ49EX2.cjs → threeSceneViewForCPMPIP-Da6YyhFH.cjs} +1 -1
- package/dist/{threeViewerHost-Cpea-3lX.js → threeViewerHost-BwiicdtA.js} +10 -10
- package/dist/{threeViewerHost-DqllErXG.cjs → threeViewerHost-U-AzJqIN.cjs} +1 -1
- package/dist/{useRayCaster-B2SPBFYC.js → useRayCaster-Bx73bXeL.js} +1 -1
- package/dist/{useRayCaster-CjOF8Be7.cjs → useRayCaster-CnW80o7b.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BRbH6lIH.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-_Oz7xRLf.cjs +0 -56
- package/dist/index.vue_vue_type_style_index_1_lang-CT_2jezv.cjs +0 -32
- package/dist/index.vue_vue_type_style_index_1_lang-DMXip4Xp.js +0 -8260
|
@@ -13585,7 +13585,7 @@ export {
|
|
|
13585
13585
|
Sc as ay,
|
|
13586
13586
|
B8 as az,
|
|
13587
13587
|
j as b,
|
|
13588
|
-
|
|
13588
|
+
x1 as b$,
|
|
13589
13589
|
G9 as b0,
|
|
13590
13590
|
wy as b1,
|
|
13591
13591
|
dd as b2,
|
|
@@ -13596,33 +13596,33 @@ export {
|
|
|
13596
13596
|
Hv as b7,
|
|
13597
13597
|
c2 as b8,
|
|
13598
13598
|
z0 as b9,
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
|
|
13609
|
-
|
|
13610
|
-
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13619
|
-
|
|
13620
|
-
|
|
13621
|
-
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
|
|
13599
|
+
Hy as bA,
|
|
13600
|
+
bn as bB,
|
|
13601
|
+
Sn as bC,
|
|
13602
|
+
ft as bD,
|
|
13603
|
+
pt as bE,
|
|
13604
|
+
Rn as bF,
|
|
13605
|
+
An as bG,
|
|
13606
|
+
m0 as bH,
|
|
13607
|
+
Vn as bI,
|
|
13608
|
+
vs as bJ,
|
|
13609
|
+
O4 as bK,
|
|
13610
|
+
h6 as bL,
|
|
13611
|
+
k6 as bM,
|
|
13612
|
+
R4 as bN,
|
|
13613
|
+
En as bO,
|
|
13614
|
+
o3 as bP,
|
|
13615
|
+
tr as bQ,
|
|
13616
|
+
He as bR,
|
|
13617
|
+
kn as bS,
|
|
13618
|
+
De as bT,
|
|
13619
|
+
vr as bU,
|
|
13620
|
+
E6 as bV,
|
|
13621
|
+
xe as bW,
|
|
13622
|
+
On as bX,
|
|
13623
|
+
U3 as bY,
|
|
13624
|
+
Jh as bZ,
|
|
13625
|
+
x5 as b_,
|
|
13626
13626
|
mc as ba,
|
|
13627
13627
|
g0 as bb,
|
|
13628
13628
|
If as bc,
|
|
@@ -13643,14 +13643,14 @@ export {
|
|
|
13643
13643
|
xi as br,
|
|
13644
13644
|
Ai as bs,
|
|
13645
13645
|
Iy as bt,
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
|
|
13646
|
+
Ry as bu,
|
|
13647
|
+
ky as bv,
|
|
13648
|
+
Dy as bw,
|
|
13649
|
+
By as bx,
|
|
13650
|
+
My as by,
|
|
13651
|
+
dw as bz,
|
|
13652
13652
|
N3 as c,
|
|
13653
|
-
|
|
13653
|
+
pw as c0,
|
|
13654
13654
|
p0 as c1,
|
|
13655
13655
|
we as c2,
|
|
13656
13656
|
Ue as c3,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as m } from "vue";
|
|
2
|
-
import { f as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { f as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Be4dFvUC.js";
|
|
3
3
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const z = {
|
|
5
5
|
__name: "index",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as u, createVNode as i } from "vue";
|
|
2
|
-
import { s as m } from "./index-
|
|
3
|
-
import { u as d,
|
|
4
|
-
import { s as g, u as h } from "./index-
|
|
2
|
+
import { s as m } from "./index-B3VR9DS9.js";
|
|
3
|
+
import { u as d, aB as p, aA as l } from "./index.vue_vue_type_style_index_1_lang-DUZFMfkl.js";
|
|
4
|
+
import { s as g, u as h } from "./index-B42dCx1W.js";
|
|
5
5
|
const _ = { class: "routerPage-wrapper" }, w = /* @__PURE__ */ o({
|
|
6
6
|
__name: "index",
|
|
7
7
|
setup(f) {
|
|
@@ -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-FGO3o5gd.cjs"),p=require("./index-B3GHAekq.cjs"),m=require("./index-CPVt8Wrk.cjs"),h=require("./index-DaOTArXF.cjs"),C=require("./index.vue_vue_type_style_index_1_lang-ckXQqCiT.cjs"),d=require("./index-1z9RrjZc.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,19 +1,19 @@
|
|
|
1
1
|
import { watch as u, onMounted as g, onUnmounted as C, resolveComponent as S, createElementBlock as v, openBlock as B, createVNode as I } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { u as K } from "./index-
|
|
4
|
-
import "./array-
|
|
2
|
+
import "./index-DAkKNbYV.js";
|
|
3
|
+
import { u as K } from "./index-B42dCx1W.js";
|
|
4
|
+
import "./array-DPyu0w54.js";
|
|
5
5
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-
|
|
7
|
-
import "./index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-6zdxGopn.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BgIXU87c.js";
|
|
8
8
|
import "./index-BHtNKL1L.js";
|
|
9
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
9
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Be4dFvUC.js";
|
|
10
10
|
import "./three-viewport-gizmo-CkQ98n-T.js";
|
|
11
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
12
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
13
|
-
import "./index-
|
|
11
|
+
import "./index.vue_vue_type_style_index_1_lang-DUZFMfkl.js";
|
|
12
|
+
import "./index.vue_vue_type_style_index_1_lang-CtkjAjQ8.js";
|
|
13
|
+
import "./index-Byuw-d13.js";
|
|
14
14
|
import "vue-router";
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./index-
|
|
15
|
+
import "./index-DmmUjSu_.js";
|
|
16
|
+
import "./index-BKM1OHVI.js";
|
|
17
17
|
const j = {
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as S, E as v, u as P, p as K } from "./index-
|
|
2
|
-
import { u as k } from "./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
import { g as S, E as v, u as P, p as K } from "./index-B42dCx1W.js";
|
|
2
|
+
import { u as k } from "./index.vue_vue_type_style_index_1_lang-DUZFMfkl.js";
|
|
3
3
|
import { ref as h } from "vue";
|
|
4
4
|
const A = k(K), E = P(K), x = h(!1), D = h(!1), j = async () => {
|
|
5
5
|
const I = S({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-1z9RrjZc.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-1z9RrjZc.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-ckXQqCiT.cjs"),C=require("./index-B3GHAekq.cjs"),r=require("./index-CjI5pDiU.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=f.useMenuState(u.pinia),{menus:_}=u.storeToRefs(m),p=l.ref([]),c=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await c(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(_.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as i, computed as j, reactive as ie, nextTick as
|
|
2
|
-
import { u as be, a as he,
|
|
3
|
-
import { c as
|
|
4
|
-
import { u as Se } from "./index-
|
|
5
|
-
const F = he(
|
|
1
|
+
import { ref as i, computed as j, reactive as ie, nextTick as A, watch as ye } from "vue";
|
|
2
|
+
import { u as be, a as he, ay as Ce } from "./index.vue_vue_type_style_index_1_lang-DUZFMfkl.js";
|
|
3
|
+
import { c as J, s as Ie, g as U, bA as ke, E as S, p as $, e as ae, f as oe, bw as Te, d as Me } from "./index-B42dCx1W.js";
|
|
4
|
+
import { u as Se } from "./index-B3VR9DS9.js";
|
|
5
|
+
const F = he($), ne = Se($), C = be($), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = Ie(C), z = i(!1), se = j(() => {
|
|
6
6
|
var e, t;
|
|
7
7
|
return [
|
|
8
8
|
{
|
|
@@ -56,13 +56,13 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
key: "tableContents",
|
|
59
|
-
contents: (t = (e =
|
|
59
|
+
contents: (t = (e = J(ue.value)) == null ? void 0 : e.map((l) => ({
|
|
60
60
|
...l,
|
|
61
61
|
menuType: "系统菜单"
|
|
62
62
|
}))) == null ? void 0 : t.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
|
|
63
63
|
}
|
|
64
64
|
];
|
|
65
|
-
}), G = i([]),
|
|
65
|
+
}), G = i([]), O = i([
|
|
66
66
|
{
|
|
67
67
|
// label: "新增",
|
|
68
68
|
label: "新建"
|
|
@@ -70,7 +70,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
70
70
|
]), we = j(() => [
|
|
71
71
|
{
|
|
72
72
|
key: "extraButton",
|
|
73
|
-
contents:
|
|
73
|
+
contents: O.value
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
key: "rowButton",
|
|
@@ -165,7 +165,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
165
165
|
key: "tableContents",
|
|
166
166
|
contents: G.value
|
|
167
167
|
}
|
|
168
|
-
]), L = i([]), I = i({}), De = i({}),
|
|
168
|
+
]), L = i([]), I = i({}), De = i({}), x = i([
|
|
169
169
|
// {
|
|
170
170
|
// label: "配置菜单:",
|
|
171
171
|
// prop: 'menu',
|
|
@@ -265,10 +265,10 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
265
265
|
}
|
|
266
266
|
]), _ = (e) => {
|
|
267
267
|
var t;
|
|
268
|
-
L.value = e ? (t =
|
|
268
|
+
L.value = e ? (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
|
|
269
269
|
...l,
|
|
270
270
|
value: e ? e[l == null ? void 0 : l.prop] : ""
|
|
271
|
-
}) :
|
|
271
|
+
}) : x.value;
|
|
272
272
|
}, Ne = i([
|
|
273
273
|
{
|
|
274
274
|
label: "查询"
|
|
@@ -296,7 +296,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
296
296
|
return (e = re(ue.value)) == null ? void 0 : e.filter((t) => t.title !== "系统管理" && t.title !== "平台管理");
|
|
297
297
|
}), fe = async (e) => {
|
|
298
298
|
var l, u, n, c;
|
|
299
|
-
const t = await
|
|
299
|
+
const t = await U({
|
|
300
300
|
key: {
|
|
301
301
|
type: "subStructure",
|
|
302
302
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -319,10 +319,10 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
319
319
|
}
|
|
320
320
|
}, Fe = async (e) => {
|
|
321
321
|
var t;
|
|
322
|
-
|
|
322
|
+
z.value = !0, b.value = {
|
|
323
323
|
...e,
|
|
324
324
|
rootNode: ke(pe.value, e.path)
|
|
325
|
-
}, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ?
|
|
325
|
+
}, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ? O.value.splice(0) : (O.value = [{ label: "新建" }], V.value = (t = e == null ? void 0 : e.path) == null ? void 0 : t.split("/")), await C.setConfigMenu(null), await fe(e == null ? void 0 : e.path), await B(e);
|
|
326
326
|
}, Ke = (e) => {
|
|
327
327
|
switch (e) {
|
|
328
328
|
case "新建":
|
|
@@ -332,10 +332,10 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
332
332
|
case "删除":
|
|
333
333
|
return "delete";
|
|
334
334
|
}
|
|
335
|
-
},
|
|
335
|
+
}, Ae = async (e, t) => {
|
|
336
336
|
var l, u;
|
|
337
337
|
if (!b.value) return S.warning("请先选择菜单");
|
|
338
|
-
if (g.type = Ke(e), V.value = [], F.setSubmitCurStructure(!1), ne.setSelectTitle([]), h.value =
|
|
338
|
+
if (g.type = Ke(e), V.value = [], F.setSubmitCurStructure(!1), ne.setSelectTitle([]), h.value = J(t), g.type !== "delete") {
|
|
339
339
|
switch (g.type) {
|
|
340
340
|
case "create":
|
|
341
341
|
_(null), await C.setConfigMenu(null);
|
|
@@ -344,10 +344,10 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
344
344
|
_(h.value), await C.setConfigMenu(h.value), console.log("clickRowButton", h.value);
|
|
345
345
|
break;
|
|
346
346
|
}
|
|
347
|
-
await
|
|
347
|
+
await A(), 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;
|
|
348
348
|
} else
|
|
349
349
|
await ge(h.value, g.type);
|
|
350
|
-
}, de = i(!0),
|
|
350
|
+
}, de = i(!0), Be = async (e) => {
|
|
351
351
|
var t;
|
|
352
352
|
I.value = e, await C.setConfigMenu({
|
|
353
353
|
...I.value,
|
|
@@ -356,7 +356,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
356
356
|
};
|
|
357
357
|
ye(() => de.value, async (e) => {
|
|
358
358
|
var t;
|
|
359
|
-
await
|
|
359
|
+
await A(), L.value = (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l.prop === "contentConfig" ? {
|
|
360
360
|
...l,
|
|
361
361
|
isFormColHidden: e
|
|
362
362
|
} : l : {
|
|
@@ -364,7 +364,7 @@ ye(() => de.value, async (e) => {
|
|
|
364
364
|
value: I.value ? I.value[l == null ? void 0 : l.prop] : ""
|
|
365
365
|
});
|
|
366
366
|
}, { immediate: !0, deep: !0 });
|
|
367
|
-
const
|
|
367
|
+
const He = i(null), Ee = async (e, t) => {
|
|
368
368
|
var s, p, f, r, y;
|
|
369
369
|
if (g.type === "create") {
|
|
370
370
|
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);
|
|
@@ -377,7 +377,7 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
377
377
|
const l = (y = (r = e == null ? void 0 : e.structureIds) == null ? void 0 : r.filter((a) => (a == null ? void 0 : a.key) === t)) == null ? void 0 : y.map((a) => a == null ? void 0 : a.id);
|
|
378
378
|
let u = l == null ? void 0 : l.map((a) => {
|
|
379
379
|
if (a)
|
|
380
|
-
return
|
|
380
|
+
return U({ id: a });
|
|
381
381
|
});
|
|
382
382
|
const n = await Promise.all(u), c = n == null ? void 0 : n.every((a) => {
|
|
383
383
|
var d;
|
|
@@ -385,10 +385,10 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
385
385
|
});
|
|
386
386
|
if (console.log("getTriggerStructures2", e == null ? void 0 : e.structureIds, t, n), c && (n == null ? void 0 : n.length) > 0) {
|
|
387
387
|
const a = n == null ? void 0 : n.map((d) => {
|
|
388
|
-
var k, T, D, N, P, o,
|
|
388
|
+
var k, T, D, N, P, o, H;
|
|
389
389
|
return {
|
|
390
390
|
id: (D = (T = (k = d == null ? void 0 : d.data) == null ? void 0 : k.result) == null ? void 0 : T[0]) == null ? void 0 : D.id,
|
|
391
|
-
...(
|
|
391
|
+
...(H = (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 : H.pageData
|
|
392
392
|
};
|
|
393
393
|
});
|
|
394
394
|
F.setItemData(a), C.setCacheStructures({
|
|
@@ -411,13 +411,13 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
411
411
|
...I.value,
|
|
412
412
|
path: (f = b.value) == null ? void 0 : f.path
|
|
413
413
|
} : g.type === "update" && (u = R.value), await C.setConfigMenu(u), ne.setSelectTitle(l), F.setIsEdit("edit");
|
|
414
|
-
},
|
|
414
|
+
}, B = async (e) => {
|
|
415
415
|
var l, u, n, c, s, p;
|
|
416
|
-
const t = await
|
|
416
|
+
const t = await U({
|
|
417
417
|
key: {
|
|
418
418
|
type: "menuConfigData",
|
|
419
419
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
420
|
-
pageKey:
|
|
420
|
+
pageKey: q.value + "/" + (e == null ? void 0 : e.path),
|
|
421
421
|
tableId: ""
|
|
422
422
|
}
|
|
423
423
|
});
|
|
@@ -427,7 +427,7 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
427
427
|
id: f == null ? void 0 : f.id,
|
|
428
428
|
...(r = f == null ? void 0 : f.value) == null ? void 0 : r.tableData
|
|
429
429
|
};
|
|
430
|
-
}) : []),
|
|
430
|
+
}) : []), z.value = !1;
|
|
431
431
|
}, E = async (e, t, l = "contentConfig") => {
|
|
432
432
|
var u, n, c, s, p, f;
|
|
433
433
|
try {
|
|
@@ -435,7 +435,7 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
435
435
|
t === "create" ? (r = {
|
|
436
436
|
key: {
|
|
437
437
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
438
|
-
pageKey:
|
|
438
|
+
pageKey: q.value + "/" + ((u = b.value) == null ? void 0 : u.path),
|
|
439
439
|
type: "structure",
|
|
440
440
|
rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
|
|
441
441
|
structureBelong: l,
|
|
@@ -495,16 +495,16 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
495
495
|
})), ((p = t == null ? void 0 : t.updateComps) == null ? void 0 : p.length) > 0 && ((f = t == null ? void 0 : t.updateComps) == null || f.forEach((r) => {
|
|
496
496
|
r != null && r.id && l.push(E(r, "update", e));
|
|
497
497
|
})), l;
|
|
498
|
-
},
|
|
498
|
+
}, Oe = (e) => {
|
|
499
499
|
const t = /* @__PURE__ */ new Map();
|
|
500
500
|
return e.forEach((l) => {
|
|
501
501
|
t.set(l.id, l);
|
|
502
502
|
}), Array.from(t.values());
|
|
503
|
-
},
|
|
503
|
+
}, xe = async (e, t) => {
|
|
504
504
|
var l, u, n, c, s, p, f;
|
|
505
505
|
try {
|
|
506
506
|
const r = 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");
|
|
507
|
-
await
|
|
507
|
+
await A();
|
|
508
508
|
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);
|
|
509
509
|
let d = (p = (s = (c = K.value) == null ? void 0 : c.filter((o) => (o == null ? void 0 : o.key) === "contentConfig")) == null ? void 0 : s.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : p.map((o) => o == null ? void 0 : o.id);
|
|
510
510
|
d = [...d, ...(f = ce.value) == null ? void 0 : f.map((o) => o == null ? void 0 : o.id)];
|
|
@@ -521,7 +521,7 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
521
521
|
const v = (ee = (m = h.value) == null ? void 0 : m.structureIds) == null ? void 0 : ee.filter((M) => (M == null ? void 0 : M.key) === "contentConfig");
|
|
522
522
|
w = [...w, ...v];
|
|
523
523
|
}
|
|
524
|
-
const ve =
|
|
524
|
+
const ve = Oe(w);
|
|
525
525
|
ge({
|
|
526
526
|
...t,
|
|
527
527
|
isNotInitial: !0,
|
|
@@ -540,7 +540,7 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
540
540
|
key: {
|
|
541
541
|
type: "menuConfigData",
|
|
542
542
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
543
|
-
pageKey:
|
|
543
|
+
pageKey: q.value + "/" + ((n = b.value) == null ? void 0 : n.path),
|
|
544
544
|
tableId: "",
|
|
545
545
|
rootNodePath: e == null ? void 0 : e.rootNodePath
|
|
546
546
|
},
|
|
@@ -564,12 +564,12 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
564
564
|
t === "create" && G.value.push({
|
|
565
565
|
...e,
|
|
566
566
|
id: s
|
|
567
|
-
}), t && s && S.success("响应成功"),
|
|
567
|
+
}), t && s && S.success("响应成功"), B(b.value);
|
|
568
568
|
});
|
|
569
569
|
}, _e = async () => {
|
|
570
570
|
var l, u, n, c, s;
|
|
571
|
-
const e = JSON.parse(
|
|
572
|
-
await
|
|
571
|
+
const e = JSON.parse(J(JSON.stringify(K.value)));
|
|
572
|
+
await A();
|
|
573
573
|
const t = g.type === "create" ? {
|
|
574
574
|
...R.value,
|
|
575
575
|
rootNodePath: (u = (l = b.value) == null ? void 0 : l.rootNode) == null ? void 0 : u.path
|
|
@@ -578,10 +578,10 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
578
578
|
rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
|
|
579
579
|
id: (s = h.value) == null ? void 0 : s.id
|
|
580
580
|
};
|
|
581
|
-
await
|
|
581
|
+
await xe(e, t), I.value = {}, g.show = !1, await B(b.value);
|
|
582
582
|
}, je = () => {
|
|
583
583
|
g.show = !1;
|
|
584
|
-
},
|
|
584
|
+
}, Je = {
|
|
585
585
|
comp: "Group",
|
|
586
586
|
name: "/平台管理/菜单管理",
|
|
587
587
|
compData: [
|
|
@@ -600,27 +600,27 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
600
600
|
__proto__: null,
|
|
601
601
|
beforeDialogDestroy: je,
|
|
602
602
|
buttonValue: Ne,
|
|
603
|
-
changeTrigger:
|
|
603
|
+
changeTrigger: Be,
|
|
604
604
|
changedRow: De,
|
|
605
605
|
clickNodeTrigger: Fe,
|
|
606
|
-
clickRowButton:
|
|
606
|
+
clickRowButton: Ae,
|
|
607
607
|
clickSubmitForm: _e,
|
|
608
608
|
clickTrigger: Re,
|
|
609
609
|
dialogInfo: g,
|
|
610
610
|
formatFormData: _,
|
|
611
611
|
getInitialSubStructure: fe,
|
|
612
|
-
getTableDataAsync:
|
|
612
|
+
getTableDataAsync: B,
|
|
613
613
|
handleItemDataChange: Pe,
|
|
614
614
|
inputForm: I,
|
|
615
615
|
menuPageData: we,
|
|
616
|
-
operatingForm:
|
|
616
|
+
operatingForm: He,
|
|
617
617
|
pageData: se,
|
|
618
618
|
renderFormData: L,
|
|
619
|
-
tableLoading:
|
|
620
|
-
tempMenuPageData:
|
|
619
|
+
tableLoading: z,
|
|
620
|
+
tempMenuPageData: Je,
|
|
621
621
|
treeData: pe
|
|
622
622
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
623
623
|
export {
|
|
624
624
|
Ge as S,
|
|
625
|
-
|
|
625
|
+
Je as t
|
|
626
626
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-97ZyXl6J.cjs"),e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=["title"],f={key:0,class:"menu-operate-icon"},h={class:"menu-config-wrap"},_=["onClick"],v={class:"module-dialog-content"};function y(o,l,V,M,N,m){var s;const i=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-popover"),p=e.resolveComponent("ssMenu"),r=e.resolveComponent("el-button"),g=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{class:"vertical-menu",mode:o.mode,menuList:o.renderMenuList,isCollapse:o.isCollapse,onClickMenu:o.clickMenu,onOpenMenu:o.openMenu,onCloseMenu:o.closeMenu},{title:e.withCtx(({menu:t})=>{var a,d;return[e.createElementVNode("span",{title:t.title,class:"menu-title",style:e.normalizeStyle({marginRight:t!=null&&t.config&&((a=t==null?void 0:t.config)==null?void 0:a.length)>0?"25px":"1px"})},e.toDisplayString(t.title??""),13,k),t!=null&&t.config&&((d=t==null?void 0:t.config)==null?void 0:d.length)>0?(e.openBlock(),e.createElementBlock("span",f,[e.createVNode(c,{title:"",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(i,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,n=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:n.id,onClick:w=>o.clickMenuIcon(t,n)},[e.createVNode(i,{name:n==null?void 0:n.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.operateType),1)],8,_))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((s=o.renderMenuList)==null?void 0:s.length)>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fold-icon",onClick:l[0]||(l[0]=(...t)=>o.handleMenuCollapse&&o.handleMenuCollapse(...t))},[e.createVNode(i,{name:o.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):e.createCommentVNode("",!0),e.createVNode(g,{class:"module-dialog",title:o.dialogInfo.title,visible:o.dialogInfo.show,width:o.dialogInfo.width,onBeforeDestroy:o.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:o.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{id:"themeBorderButton",onClick:o.beforeDialogDestroy},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(r,{id:"themeButton",onClick:o.clickSubmitForm},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const B=u._export_sfc(C._sfc_main,[["render",y],["__scopeId","data-v-92477073"]]);exports.default=B;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),k=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),k=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CIRzfvAn.cjs"),a=require("./index-1z9RrjZc.cjs"),w=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),B="ElUpload";class T extends Error{constructor(o,s,i,p){super(o),this.name="UploadAjaxError",this.status=s,this.method=i,this.url=p}}function _(r,o,s){let i;return s.response?i=`${s.response.error||s.response}`:s.responseText?i=`${s.responseText}`:i=`fail to ${o.method} ${r} ${s.status}`,new T(i,s.status,o.method,r)}function R(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const U=r=>{typeof XMLHttpRequest>"u"&&a.throwError(B,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,s=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(_(s,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(_(s,r,o));r.onSuccess(R(o))}),o.open(r.method,s,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))a.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},h=["text","picture","picture-card"];let D=1;const C=()=>Date.now()+D++,N=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:h,default:"text"},httpRequest:{type:a.definePropType(Function),default:U},disabled:Boolean,limit:Number}),L=a.buildProps({...N,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}}),F={style:{"text-align":"left"}},j={class:"cropper-warp"},A={class:"cropper-warp-left"},q=["src"],$={class:"cropper-warp-right"},H={class:"cropper-warp-right-item"},z={class:"cropper-warp-right-value"},M=["src"],X={class:"cropper-warp-right-item"},J={class:"cropper-warp-right-value"},G=["src"],K={class:"dialog-footer"},Q=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:s}){const i=s,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async l=>{if(!l)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(l),t.isShowDialog=!0,e.nextTick(()=>{v()})},u=()=>{var l;(l=t.cropper)==null||l.destroy(),t.isShowDialog=!1},f=()=>{u()},g=async()=>{const l=await y();i("submitImage",{file:l}),u()},d=async()=>{i("deleteImage")},v=()=>{const l=document.querySelector(".cropper-warp-left-img");l&&l.setAttribute("crossOrigin","anonymous"),t.cropper=new k.Cropper(l,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},y=()=>new Promise(l=>{t.cropper.getCroppedCanvas().toBlob(n=>{l(n)})}),x=async l=>{let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(l.raw),t.cropper.replace(t.cropperImg)},E=l=>{p.value.clearFiles();const n=l[0];n.uid=C(),p.value.handleStart(n)};return o({openDialog:c}),(l,n)=>{const P=e.resolveComponent("ele-Edit"),V=e.resolveComponent("el-icon"),m=e.resolveComponent("el-button"),S=e.resolveComponent("el-upload"),I=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(I,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=O=>t.isShowDialog=O),width:"769px","before-close":f},{header:e.withCtx(()=>[e.createElementVNode("div",F,[e.createVNode(V,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(P)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",K,[e.createVNode(S,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":x,"on-exceed":E},{trigger:e.withCtx(()=>[e.createVNode(m,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(m,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(m,{onClick:f,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(m,{onClick:g,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",j,[e.createElementVNode("div",A,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,q)]),e.createElementVNode("div",$,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",H,[e.createElementVNode("div",z,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,M)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",X,[e.createElementVNode("div",J,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,G)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),W=w._export_sfc(Q,[["__scopeId","data-v-5d760968"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const s=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,u=async()=>{var d;s!=null&&s.banClick||(t("clickAvatar",s.avatarUrl),(d=i.value)==null||d.openDialog(s.avatarBlob))},f=async d=>{t("submitImage",d)},g=async()=>{t("deleteImage")};return(d,v)=>{const y=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,{src:r.avatarUrl,onClick:u,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(W,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:f,onDeleteImage:g},null,8,["avatarUrl"]),[[e.vShow,r.showCropper]])],64)}}}),b=w._export_sfc(Y,[["__scopeId","data-v-d7aa160e"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"}));exports.genFileId=C;exports.index=Z;exports.ssAvatar=b;exports.uploadBaseProps=N;exports.uploadListTypes=h;exports.uploadProps=L;
|
|
@@ -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-DubsCmcm.cjs"),r=require("./index-1z9RrjZc.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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as f, ref as i, onMounted as E, resolveComponent as s, createElementBlock as v, openBlock as _, createElementVNode as b, createVNode as u, withCtx as c, Fragment as w, renderList as A, createBlock as B, createTextVNode as F } from "vue";
|
|
2
|
-
import { g as I, E as g } from "./index-
|
|
2
|
+
import { g as I, E as g } from "./index-B42dCx1W.js";
|
|
3
3
|
import { useRouter as M } from "vue-router";
|
|
4
4
|
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const T = { class: "tenant-wrap" }, $ = { class: "tenant-content" }, q = /* @__PURE__ */ C({
|