ss-component-new 1.1.739 → 1.1.741
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/iconfont-CG2Sal8B.cjs +1 -0
- package/dist/{iconfont-qPvAStie.js → iconfont-CfLywbZr.js} +228 -228
- package/dist/icons/svg//345/267/262/345/244/204/347/220/206.svg +1 -0
- package/dist/icons/svg//345/276/205/345/244/204/347/220/206.svg +1 -0
- package/dist/icons/svg//346/200/273/346/234/210/346/212/245.svg +1 -0
- package/dist/icons/svg//346/210/221/345/217/221/350/265/267.svg +1 -0
- package/dist/icons/svg//350/277/233/345/272/246/350/256/241/345/210/222.svg +1 -0
- package/dist/{index-C11jwWIH.js → index-58FSA1fk.js} +1 -1
- package/dist/{index-DkhU9Fyq.cjs → index-B23sbyqS.cjs} +1 -1
- package/dist/{index-QJ6R_1oH.js → index-B2jHfnBi.js} +1 -1
- package/dist/{index-DjvGgBth.cjs → index-BJSVns4w.cjs} +1 -1
- package/dist/{index-DHOqgbYN.cjs → index-BOnQNWrS.cjs} +1 -1
- package/dist/{index-DWuuoB7a.js → index-BPAaiDYS.js} +2 -2
- package/dist/{index-Cfk7SWHy.cjs → index-BguzPlFU.cjs} +1 -1
- package/dist/index-Bs3sACSy.cjs +4 -0
- package/dist/{index-sv-JcYde.js → index-BxmYY9oi.js} +1 -1
- package/dist/{index-Cx7Wv-gm.js → index-C-iXZX_6.js} +1064 -1050
- package/dist/{index-CdaMozHe.js → index-C5YXsqdb.js} +12 -12
- package/dist/{index-CoQ_M7fB.js → index-CBwFVBlN.js} +1 -1
- package/dist/{index-DWx1X-8j.cjs → index-CFW_J0mq.cjs} +1 -1
- package/dist/{index-C_ocMwXC.cjs → index-CHookp0n.cjs} +1 -1
- package/dist/{index-CDHE_eph.cjs → index-CJKZCT1m.cjs} +1 -1
- package/dist/{index-DcNDTCaI.cjs → index-CLSUzeGK.cjs} +1 -1
- package/dist/{index-dP3nnmsC.js → index-CPWusFs7.js} +378 -374
- package/dist/{index-fCNMafkz.cjs → index-CgkRi40i.cjs} +1 -1
- package/dist/{index-CrGEVGu0.cjs → index-ChEr-LD6.cjs} +1 -1
- package/dist/{index-DbNp8EFn.js → index-CioBNOFX.js} +1 -1
- package/dist/{index-DfZNL6PB.js → index-CrnjysBb.js} +1 -1
- package/dist/{index-tmfGfG-O.js → index-CsGu6WZW.js} +2 -2
- package/dist/{index-DSUAIjmi.cjs → index-Cu5G4oKN.cjs} +1 -1
- package/dist/{index-BocEL4Jl.js → index-DCok5HS5.js} +2 -2
- package/dist/{index-BfkgBnPo.js → index-DFOanwRw.js} +4 -4
- package/dist/{index-DLjUG_pe.cjs → index-DLzfn6r-.cjs} +1 -1
- package/dist/{index-CzB8c7O-.cjs → index-DZiy-zVX.cjs} +2 -2
- package/dist/{index-BOQAKRLJ.cjs → index-DvrfOuat.cjs} +1 -1
- package/dist/{index-BJqD21GP.cjs → index-DyHucKXC.cjs} +1 -1
- package/dist/{index-DG5OVpIW.cjs → index-HV3ortf1.cjs} +1 -1
- package/dist/{index-Cf72dK5y.js → index-Ps0cS0S_.js} +1 -1
- package/dist/{index-BA3Xvf7Z.cjs → index-QeRTl7fr.cjs} +1 -1
- package/dist/{index-CUmC3pQz.js → index-hmAJvmph.js} +4 -4
- package/dist/{index-CZW5RoOR.js → index-mFuKOeN3.js} +2 -2
- package/dist/{index-DFOiltcr.js → index-qwea9F5R.js} +2 -2
- package/dist/{index-BAEPzmDe.js → index-yMjUlsQi.js} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-C02Udtum.js → index.vue_vue_type_script_setup_true_lang-Csfnc8XO.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-JkfkJZII.cjs → index.vue_vue_type_script_setup_true_lang-Mwbkilwg.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C22LuAyj.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CIBPRoRG.js} +1718 -1713
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BFxsYhWZ.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cnqkd37w.cjs} +56 -56
- package/dist/{index.vue_vue_type_style_index_0_scoped_c80f0a23_lang-DjkPKUWJ.js → index.vue_vue_type_style_index_0_scoped_8bb4b740_lang-Au5fVfKN.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_c80f0a23_lang-DK90dN5m.cjs → index.vue_vue_type_style_index_0_scoped_8bb4b740_lang-CN2oYxtZ.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-516uyV3e.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang--PhJifi0.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CqT4MR7v.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DtoSEF10.js} +4 -4
- package/dist/{main-DvIAfEIC.cjs → main-BO_aEmJX.cjs} +1 -1
- package/dist/{main-C2noB47h.js → main-CjUS4ycM.js} +2 -2
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-BT9NpER2.js → threeModel-Bq0jevec.js} +1 -1
- package/dist/{threeModel-BBQKVqka.cjs → threeModel-ChvlK5eB.cjs} +1 -1
- package/dist/threePreview-BISgU_nq.cjs +1 -0
- package/dist/threePreview-CezYo5_-.js +1960 -0
- package/dist/threeSceneView-DY4Gd-tt.js +693 -0
- package/dist/threeSceneView-DjveszMP.cjs +1 -0
- package/package.json +1 -1
- package/public/icons/svg//345/267/262/345/244/204/347/220/206.svg +1 -0
- package/public/icons/svg//345/276/205/345/244/204/347/220/206.svg +1 -0
- package/public/icons/svg//346/200/273/346/234/210/346/212/245.svg +1 -0
- package/public/icons/svg//346/210/221/345/217/221/350/265/267.svg +1 -0
- package/public/icons/svg//350/277/233/345/272/246/350/256/241/345/210/222.svg +1 -0
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/iconfont-CZ4r8Axf.cjs +0 -1
- package/dist/index-CF5qxKRT.cjs +0 -4
- package/dist/threePreview-CRHgbXLA.cjs +0 -1
- package/dist/threePreview-lVI_SBuS.js +0 -1972
- package/dist/threeSceneView-Bvl4g83Z.js +0 -889
- package/dist/threeSceneView-COPlmNqY.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1756457547813" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5648" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M697.3 500c-127 0-230 103-230 230s103 230 230 230 230-103 230-230-103-230-230-230z m139.1 188.6L709.1 815.9c-11.7 11.7-30.7 11.7-42.4 0L596 745.1c-11.7-11.7-11.7-30.7 0-42.4s30.7-11.7 42.4 0l49.5 49.5 106.1-106c11.7-11.7 30.7-11.7 42.4 0s11.7 30.7 0 42.4z" p-id="5649"></path><path d="M407.3 730c0-160.2 129.8-290 290-290 60 0 115.7 18.2 162 49.4V124.1c0-33.1-26.9-60-60-60h-640c-33.1 0-60 26.9-60 60v775.4c0 33.1 26.9 60 60 60h360.6C451.4 906.4 407.3 823.3 407.3 730zM206.2 220c0-16.6 13.4-30 30-30h486.3c16.6 0 30 13.4 30 30s-13.4 30-30 30H236.2c-16.6 0-30-13.5-30-30z m0 171.7c0-16.6 13.4-30 30-30h220.4c16.6 0 30 13.4 30 30s-13.4 30-30 30H236.2c-16.6 0-30-13.4-30-30z" p-id="5650"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1756457557126" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5810" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M697.3 500c-127 0-230 103-230 230s103 230 230 230 230-103 230-230-103-230-230-230z m150.5 230.1c0 16.6-13.4 30-30 30h-120c-16.6 0-30-13.4-30-30v-120c0-16.6 13.4-30 30-30s30 13.4 30 30v90h90c16.6 0 30 13.5 30 30z" p-id="5811"></path><path d="M407.3 730c0-160.2 129.8-290 290-290 60 0 115.7 18.2 162 49.4V124.1c0-33.1-26.9-60-60-60h-640c-33.1 0-60 26.9-60 60v775.4c0 33.1 26.9 60 60 60h360.6C451.4 906.4 407.3 823.3 407.3 730zM206.2 220c0-16.6 13.4-30 30-30h486.3c16.6 0 30 13.4 30 30s-13.4 30-30 30H236.2c-16.6 0-30-13.5-30-30z m0 171.7c0-16.6 13.4-30 30-30h220.4c16.6 0 30 13.4 30 30s-13.4 30-30 30H236.2c-16.6 0-30-13.4-30-30z" p-id="5812"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1756457564334" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5972" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M290.298061 204.076065c37.475574 0 67.906866-30.150967 67.906867-67.344769v-56.917789c0-37.195247-30.432738-67.346214-67.906867-67.346214-37.475574 0-67.909756 30.150967-67.909756 67.346214v56.917789c0.001445 37.193802 30.29113 67.344769 67.909756 67.344769z m457.044495 0c37.475574 0 67.908311-30.150967 67.908312-67.344769v-56.917789c0-37.195247-30.434183-67.346214-67.908312-67.346214-37.479909 0-67.908311 30.150967-67.908311 67.346214v56.917789c0 37.193802 30.429848 67.344769 67.908311 67.344769z m0 0" p-id="5973"></path><path d="M912.60355 106.016787h-60.583704v29.445816c0 56.494409-46.353535 116.091192-103.553095 116.091191s-103.55165-59.598228-103.551649-116.091191V106.016787H394.838077v29.445816c0 56.494409-46.35209 116.091192-103.553094 116.091191-57.19956 0-103.553095-54.94539-103.553095-111.444134V107.565806l-78.478345-1.549019c-38.037671 0-69.033951 30.432738-69.033951 68.190082v768.832309c0 37.757345 30.99628 68.327356 69.033951 68.327356h803.350007c38.182169 0 69.033951-30.570011 69.033952-68.327356V169.558366c0.001445-37.757345-30.851782-63.54158-69.033952-63.541579z m9.155398 845.757299H102.212153V305.236271h819.546795v646.537815z m0 0" p-id="5974"></path><path d="M367.191262 715.342015c-8.466142 72.629063-36.786318 138.288985-84.948968 196.991324-12.042469-11.668219-25.02562-22.957853-38.946564-33.867457 36.498767-39.511551 60.960844-86.545672 73.377563-141.111032 8.651099-40.260051 12.981706-95.955386 12.981707-167.07589V374.981153h377.050365v440.26827c0 55.691-26.5284 83.538667-79.586645 83.538667-22.202128 0-50.79974-0.38003-85.795727-1.12853-1.88281-13.546694-4.704857-29.351892-8.466142-47.41415 34.615957 2.258505 61.900082 3.387035 81.84515 3.387034 30.480422 0 45.720633-14.864516 45.720633-44.590658v-93.698327H367.191262z m4.515565-41.205069h288.714362v-108.37355H375.94062c0 37.633077-1.411746 73.757593-4.233793 108.37355z m4.233793-256.822194v107.24502h284.480569v-107.24502H375.94062z" p-id="5975"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1756457541404" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5486" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M464.5 781.3c-4.9-25.2-5.9-50.4-4.4-75.7 2.1-31.4 9.6-62.3 22.2-91.3 15.6-36.8 38.5-69.9 67.5-97.2 15.1-14.3 31.8-26.8 49.7-37.3 28.5-35.8 83.6-97.1 83.6-169.5C683.2 165.6 588 67 470.7 67c-117.3 0-212.4 98.6-212.4 243.2 0 89.8 82.2 168.6 92.3 188 10.1 19.5 7.7 49.1-0.3 58.1-12 13.5-56 27-56 27L132 655.6c-37.9 13.6-67.6 49.3-67.6 89.7v56.6c0 44 35.7 71 79.6 71h354.6c-16.4-28.3-28-59.3-34.1-91.6z" p-id="5487"></path><path d="M954.4 682.3c-6.4-37.1-22.6-71.7-47-100.4-23.9-28.8-52.5-51.3-86.8-64.9-32.2-12.9-65.2-19-99.9-15.6-22.3 2-44.1 7.2-64.9 15.5-25 10.2-47.7 24.8-67.2 43.3-23.1 21.7-41.3 48-53.7 77.3-10 23.1-15.9 47.6-17.6 72.6-1.3 20.1-0.4 40.2 3.5 60.2 7.2 38.7 24.4 75 49.9 105.1 22.3 26.5 50.5 47.5 82.4 61.2 25.6 10.9 53.1 16.9 80.8 17.6 7.5 0.2 15.2-0.4 22.8-1.4 10.9-1.4 21.8-2.5 32.5-5 29.6-7 57.2-20.4 81.2-39.2 26.8-20.6 48.7-46.9 64.1-77.1 16.4-32.4 25.4-66.9 25.5-104.2-2-15.2-3.1-30.3-5.6-45zM765.3 835.1v-60.5c-16.3 0.1-42.7 0.1-79.4-0.2-68.3-0.6-95.3 60-95.3 60l-7.5 0.7s1.2-95 46.2-133.7c43.4-37.3 136-48.5 136-48.5v-60.7L907 713.6 765.3 835.1z" p-id="5488"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1756457598432" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6289" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M794.713043 0H95.721739C55.652174 0 22.26087 33.391304 22.26087 73.46087v874.852173C22.26087 990.608696 55.652174 1024 95.721739 1024H445.217391c20.034783 0 28.93913-22.26087 17.808696-37.843478-95.721739-113.530435-120.208696-289.391304-8.904348-460.8 26.713043-40.069565 64.556522-71.234783 109.078261-89.043479 113.530435-44.521739 215.930435-48.973913 307.2-8.904347V73.46087C868.173913 33.391304 834.782609 0 794.713043 0zM289.391304 756.869565c0 28.93913-15.582609 44.521739-44.521739 44.521739s-44.521739-15.582609-44.521739-44.521739 15.582609-44.521739 44.521739-44.521739 44.521739 15.582609 44.521739 44.521739z m89.043479-267.130435c0 28.93913-15.582609 44.521739-44.52174 44.52174h-89.043478c-28.93913 0-44.521739-15.582609-44.521739-44.52174s15.582609-44.521739 44.521739-44.521739h89.043478c28.93913 0 44.521739 15.582609 44.52174 44.521739z m311.652174-267.130434c0 28.93913-15.582609 44.521739-44.52174 44.521739H244.869565c-28.93913 0-44.521739-15.582609-44.521739-44.521739s15.582609-44.521739 44.521739-44.521739h400.695652c28.93913 0 44.521739 15.582609 44.52174 44.521739z" p-id="6290"></path><path d="M734.608696 1024c-146.921739 0-267.130435-120.208696-267.130435-267.130435s120.208696-267.130435 267.130435-267.130435 267.130435 120.208696 267.130434 267.130435-120.208696 267.130435-267.130434 267.130435z m178.086956-416.278261c0-4.452174-2.226087-6.678261-4.452174-11.130435-2.226087-2.226087-6.678261-4.452174-11.130435-4.452174s-6.678261 2.226087-11.130434 4.452174l-31.165218 28.939131c-15.582609-15.582609-35.617391-28.93913-57.878261-35.617392-17.808696-6.678261-40.069565-11.130435-62.330434-11.130434-42.295652 0-80.13913 13.356522-111.304348 37.843478-31.165217 26.713043-53.426087 60.104348-62.330435 100.173913v2.226087c0 2.226087 0 4.452174 2.226087 4.452174 2.226087 2.226087 2.226087 2.226087 4.452174 2.226087h46.747826c4.452174 0 6.678261-2.226087 6.678261-4.452174 6.678261-15.582609 11.130435-24.486957 13.356522-26.713044 11.130435-17.808696 24.486957-31.165217 42.295652-42.295652s37.843478-15.582609 57.878261-15.582608c31.165217 0 57.878261 11.130435 80.13913 31.165217l-31.165217 31.165217c-2.226087 6.678261-4.452174 8.904348-4.452174 13.356522s2.226087 6.678261 4.452174 11.130435c2.226087 2.226087 6.678261 4.452174 11.130434 4.452174h104.626087c4.452174 0 6.678261-2.226087 11.130435-4.452174 2.226087-2.226087 4.452174-6.678261 4.452174-11.130435-2.226087 0-2.226087-104.626087-2.226087-104.626087z m-6.678261 186.991304c0-2.226087 0-4.452174-2.226087-4.452173-2.226087-2.226087-2.226087-2.226087-4.452174-2.226087h-44.521739c-4.452174 0-6.678261 2.226087-6.678261 4.452174-6.678261 15.582609-11.130435 24.486957-13.356521 26.713043-11.130435 17.808696-24.486957 31.165217-42.295652 42.295652s-37.843478 15.582609-57.878261 15.582609c-15.582609 0-28.93913-2.226087-42.295653-8.904348-13.356522-4.452174-26.713043-13.356522-37.843478-24.486956l31.165218-31.165218c2.226087-2.226087 4.452174-6.678261 4.452174-11.130435s-2.226087-6.678261-4.452174-11.130434c-2.226087-2.226087-6.678261-4.452174-11.130435-4.452174h-104.626087c-4.452174 0-6.678261 2.226087-11.130435 4.452174 0 4.452174-2.226087 6.678261-2.226087 11.130434v104.626087c0 4.452174 2.226087 6.678261 4.452174 11.130435 2.226087 2.226087 6.678261 4.452174 11.130435 4.452174s6.678261-2.226087 11.130435-4.452174l28.93913-28.93913c15.582609 15.582609 35.617391 28.93913 55.652174 35.617391 22.26087 6.678261 42.295652 11.130435 66.782609 11.130435 42.295652 0 80.13913-13.356522 111.304347-37.843479 31.165217-26.713043 51.2-60.104348 60.104348-102.4z" p-id="6291"></path></svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as M } from "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-
|
|
1
|
+
import { _ as M } from "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DtoSEF10.js";
|
|
2
2
|
import { resolveComponent as a, createElementBlock as s, openBlock as l, Fragment as f, createVNode as n, withCtx as i, createElementVNode as r, createCommentVNode as D, normalizeStyle as b, toDisplayString as C, renderList as h, createTextVNode as u, createBlock as B, resolveDynamicComponent as w } from "vue";
|
|
3
3
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const V = ["title"], $ = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index-DZiy-zVX.cjs"),a=require("./index-Dp2hVs-k.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-BH0_LUL8.cjs"),r=t.defineComponent({__name:"index",setup(s){const o=n.useMenuState(),{activeMenuPath:c}=n.storeToRefs(o),u=n.useLoginState(),e=t.reactive({...a.State});return t.onMounted(async()=>{u.getModelSecretAsync(),e.structureId=await a.getActivePageStructureId(c.value)}),(l,d)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(i.ssTable,{compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as m, createVNode as u } from "vue";
|
|
2
|
-
import { s as i } from "./index-
|
|
2
|
+
import { s as i } from "./index-DFOanwRw.js";
|
|
3
3
|
import { S as l, i as p } from "./index-DmDpkK7Q.js";
|
|
4
4
|
import { u as d, s as g, a as h } from "./index.vue_vue_type_style_index_1_lang-BcbZuvjK.js";
|
|
5
5
|
const D = /* @__PURE__ */ o({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cnqkd37w.cjs");const n=require("./index.vue_vue_type_style_index_1_lang-BH0_LUL8.cjs");require("./index-BKUqLOwQ.cjs");const u=require("./index-DZiy-zVX.cjs"),i=require("./index-f8ol-9SD.cjs"),o=require("./index-Dp2hVs-k.cjs"),c=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...i.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await o.getActivePageStructureId(r.value)}),(d,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-Mwbkilwg.cjs");exports.default=e._sfc_main;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as r, onMounted as n, createElementBlock as s, openBlock as m, createVNode as c } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CIBPRoRG.js";
|
|
4
4
|
import { u as i, s as p } from "./index.vue_vue_type_style_index_1_lang-BcbZuvjK.js";
|
|
5
5
|
import "./index-DHX6rKjz.js";
|
|
6
|
-
import { s as u } from "./index-
|
|
6
|
+
import { s as u } from "./index-DFOanwRw.js";
|
|
7
7
|
import { S as l } from "./index-BmdYbTjc.js";
|
|
8
8
|
import { i as d } from "./index-DmDpkK7Q.js";
|
|
9
9
|
const _ = { class: "role-wrapper" }, w = /* @__PURE__ */ o({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("vue"),T=require("./index.vue_vue_type_style_index_1_lang-BH0_LUL8.cjs"),pe=require("./modelComp-UoYJZZ-s.cjs"),fe=require("./index-CzB8c7O-.cjs"),de=require("./index-Dp2hVs-k.cjs"),y=require("./index-BKUqLOwQ.cjs"),E=pe.useModelComp(T.pinia),m=fe.useUnit(T.pinia),I=T.useMenuState(T.pinia),{menus:ee,configMenu:H,activeMenuPath:O,cacheStructures:x}=T.storeToRefs(I),$=i.ref(!1),te=i.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=T.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),j=i.ref([]),_=i.ref([{label:"新建"}]),ie=i.computed(()=>[{key:"extraButton",contents:_.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:j.value}]),J=i.ref([]),k=i.ref({}),ge=i.ref({}),q=i.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),R=e=>{var t;J.value=e?(t=q.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]:""}):q.value},ve=i.ref([{label:"查询"},{label:"重置"}]),ye=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=i.ref([]),C=i.ref({}),h=i.ref(null),ae=i.ref([]),oe=i.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await y.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},be=async e=>{var t;$.value=!0,h.value={...e,rootNode:T.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?_.value.splice(0):(_.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)},he=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},Ce=async(e,t)=>{var l,u;if(!h.value)return y.ElMessage.warning("请先选择菜单");if(g.type=he(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=T.cloneDeep(t),g.type!=="delete"){switch(g.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 i.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=i.ref(!0),Ie=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)!=="新增"};i.watch(()=>ue.value,async e=>{var t;await i.nextTick(),J.value=(t=q.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 ke=i.ref(null),Te=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=x.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);E.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return y.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var M,D,N,P,A,o,K;return{id:(N=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(K=(o=(A=(P=d==null?void 0:d.data)==null?void 0:P.result)==null?void 0:A[0])==null?void 0:o.value)==null?void 0:K.pageData}});E.setItemData(a),I.setCacheStructures({key:t,data:a})}},Me=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Te(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;g.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=H.value),await I.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&(j.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),$.value=!1},B=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:O.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.ElMessage.error("保存响应失败"),new Error("保存响应失败");const 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{y.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(B(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(B(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(B(s,"update",e))})),l},De=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Se=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 i.nextTick();const a=(n=(u=(l=x.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=x.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 M=Y(b,a),D=Y(s,d),N=Z("dialogConfig",M),P=Z("contentConfig",D),A=[...N,...P];await Promise.all(A).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const ce=De(w);re({...t,isNotInitial:!0,structureIds:ce},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),de.handleSubmitAsync(u,l).then(r=>{t==="create"&&j.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),F(h.value)})},we=async()=>{var l,u,n,c,r;const e=JSON.parse(T.cloneDeep(JSON.stringify(x.value)));await i.nextTick();const t=g.type==="create"?{...H.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...H.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 Se(e,t),k.value={},g.show=!1,await F(h.value)},Ne=()=>{g.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},Pe=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Ne,buttonValue:ve,changeTrigger:Ie,changedRow:ge,clickNodeTrigger:be,clickRowButton:Ce,clickSubmitForm:we,clickTrigger:Me,dialogInfo:g,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:F,handleItemDataChange:ye,inputForm:k,menuPageData:ie,operatingForm:ke,pageData:te,renderFormData:J,tableLoading:$,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=Pe;exports.tempMenuPageData=se;
|
|
1
|
+
"use strict";const i=require("vue"),T=require("./index.vue_vue_type_style_index_1_lang-BH0_LUL8.cjs"),pe=require("./modelComp-UoYJZZ-s.cjs"),fe=require("./index-DZiy-zVX.cjs"),de=require("./index-Dp2hVs-k.cjs"),y=require("./index-BKUqLOwQ.cjs"),E=pe.useModelComp(T.pinia),m=fe.useUnit(T.pinia),I=T.useMenuState(T.pinia),{menus:ee,configMenu:H,activeMenuPath:O,cacheStructures:x}=T.storeToRefs(I),$=i.ref(!1),te=i.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=T.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),j=i.ref([]),_=i.ref([{label:"新建"}]),ie=i.computed(()=>[{key:"extraButton",contents:_.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:j.value}]),J=i.ref([]),k=i.ref({}),ge=i.ref({}),q=i.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),R=e=>{var t;J.value=e?(t=q.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]:""}):q.value},ve=i.ref([{label:"查询"},{label:"重置"}]),ye=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=i.ref([]),C=i.ref({}),h=i.ref(null),ae=i.ref([]),oe=i.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await y.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},be=async e=>{var t;$.value=!0,h.value={...e,rootNode:T.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?_.value.splice(0):(_.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)},he=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},Ce=async(e,t)=>{var l,u;if(!h.value)return y.ElMessage.warning("请先选择菜单");if(g.type=he(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=T.cloneDeep(t),g.type!=="delete"){switch(g.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 i.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=i.ref(!0),Ie=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)!=="新增"};i.watch(()=>ue.value,async e=>{var t;await i.nextTick(),J.value=(t=q.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 ke=i.ref(null),Te=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=x.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);E.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return y.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var M,D,N,P,A,o,K;return{id:(N=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(K=(o=(A=(P=d==null?void 0:d.data)==null?void 0:P.result)==null?void 0:A[0])==null?void 0:o.value)==null?void 0:K.pageData}});E.setItemData(a),I.setCacheStructures({key:t,data:a})}},Me=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Te(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;g.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=H.value),await I.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&(j.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),$.value=!1},B=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:O.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.ElMessage.error("保存响应失败"),new Error("保存响应失败");const 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{y.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(B(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(B(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(B(s,"update",e))})),l},De=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Se=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 i.nextTick();const a=(n=(u=(l=x.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=x.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 M=Y(b,a),D=Y(s,d),N=Z("dialogConfig",M),P=Z("contentConfig",D),A=[...N,...P];await Promise.all(A).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const ce=De(w);re({...t,isNotInitial:!0,structureIds:ce},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),de.handleSubmitAsync(u,l).then(r=>{t==="create"&&j.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),F(h.value)})},we=async()=>{var l,u,n,c,r;const e=JSON.parse(T.cloneDeep(JSON.stringify(x.value)));await i.nextTick();const t=g.type==="create"?{...H.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...H.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 Se(e,t),k.value={},g.show=!1,await F(h.value)},Ne=()=>{g.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},Pe=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Ne,buttonValue:ve,changeTrigger:Ie,changedRow:ge,clickNodeTrigger:be,clickRowButton:Ce,clickSubmitForm:we,clickTrigger:Me,dialogInfo:g,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:F,handleItemDataChange:ye,inputForm:k,menuPageData:ie,operatingForm:ke,pageData:te,renderFormData:J,tableLoading:$,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=Pe;exports.tempMenuPageData=se;
|