hs-admin-ui 14.7.1 → 14.7.3
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/{401-DZgKEsAB.js → 401-B6P35bPY.js} +1 -1
- package/dist/{401-VwlinITr.mjs → 401-MIoHCvya.mjs} +1 -1
- package/dist/{404-CbrLIBlR.mjs → 404-C3NTC4kO.mjs} +1 -1
- package/dist/{404-CbrLIBlR.mjs.gz → 404-C3NTC4kO.mjs.gz} +0 -0
- package/dist/{404-DghRHzJs.js → 404-s7Hnihdy.js} +1 -1
- package/dist/404-s7Hnihdy.js.gz +0 -0
- package/dist/{account-BdgRJMw2.mjs → account-B_iOBSaL.mjs} +1 -1
- package/dist/{account-BhdX_7fE.js → account-DHrcFaRi.js} +1 -1
- package/dist/{aside-CzZLthQ-.js → aside-c47r-wES.js} +1 -1
- package/dist/{aside-BzxhdlY6.mjs → aside-jX5tESpn.mjs} +3 -3
- package/dist/{baseFormConfig-DifzO4MU.mjs → baseFormConfig-CRjimGDL.mjs} +1 -1
- package/dist/baseFormConfig-CRjimGDL.mjs.gz +0 -0
- package/dist/{baseFormConfig-DWSR0Aey.js → baseFormConfig-t3C5VjlN.js} +1 -1
- package/dist/{baseTableConfig-DwVzxY7X.mjs → baseTableConfig-B76iWD0q.mjs} +1 -1
- package/dist/baseTableConfig-B76iWD0q.mjs.gz +0 -0
- package/dist/{baseTableConfig-BZK2THJc.js → baseTableConfig-BC1ehoUi.js} +1 -1
- package/dist/baseTableConfig-BC1ehoUi.js.gz +0 -0
- package/dist/{bcFormConfig-C0ewsLEc.mjs → bcFormConfig-B_Y_3rDY.mjs} +1 -1
- package/dist/{bcFormConfig-CGoYLUV0.js → bcFormConfig-DFDLnynl.js} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-Dh0vVPj2.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-0yivi3Ej.mjs} +2 -2
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-CvXtiz_m.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-Fg6bTLMc.js} +1 -1
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-Df5OrYsm.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-BP_X8ou_.mjs} +2 -2
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-BomratUF.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-Lafa8w9e.js} +1 -1
- package/dist/{btnIndex-DBv24cYY.js → btnIndex-DHIdL5je.js} +1 -1
- package/dist/{btnIndex-Bt9FMdS_.mjs → btnIndex-kp8KqYYm.mjs} +3 -3
- package/dist/btnIndex-kp8KqYYm.mjs.gz +0 -0
- package/dist/{classic-D_2yCfUJ.js → classic-BR3kP1C5.js} +1 -1
- package/dist/{classic-CnD546MW.mjs → classic-D1xyOb2p.mjs} +5 -5
- package/dist/{cloneConfigDialog-BWWwmAp0.mjs → cloneConfigDialog--YzevjTS.mjs} +3 -3
- package/dist/cloneConfigDialog--YzevjTS.mjs.gz +0 -0
- package/dist/{cloneConfigDialog-bZ3Tn0_g.js → cloneConfigDialog-BhagkvQn.js} +1 -1
- package/dist/cloneConfigDialog-BhagkvQn.js.gz +0 -0
- package/dist/{columns-yBGefgF2.mjs → columns-0f0pss9T.mjs} +5 -5
- package/dist/{columns-zEzWkHHs.js → columns-PZMdqd45.js} +1 -1
- package/dist/{columnsAside-8ip1KpKW.mjs → columnsAside-DQYmAxP1.mjs} +1 -1
- package/dist/{columnsAside-CfJRfJrl.js → columnsAside-mgb3MDFa.js} +1 -1
- package/dist/{contextmenu-Cthc1Vw1.js → contextmenu-Bb0Y_X1t.js} +1 -1
- package/dist/{contextmenu-Ciy35FWm.mjs → contextmenu-C5P-Ugx7.mjs} +1 -1
- package/dist/{contextmenu-D0fWSFw6.mjs → contextmenu-DnZUtPzo.mjs} +1 -1
- package/dist/{contextmenu-DB2hlEGR.js → contextmenu-c7TTrRPC.js} +1 -1
- package/dist/{copyMenuConfig-BK9nBpj6.mjs → copyMenuConfig-BHXT0m8D.mjs} +1 -1
- package/dist/{copyMenuConfig-Bh8hBi4M.js → copyMenuConfig-sDa4G-d2.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-DKPkDUux.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-CbYzLGMy.mjs} +2 -2
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-CtiFVK7w.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-cg8UGKLr.js} +1 -1
- package/dist/{copySystem-Bi_L8KzC.mjs → copySystem-B8-y5BYy.mjs} +1 -1
- package/dist/{copySystem-UAZ6ZwM0.js → copySystem-ChSQKpDi.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DTjuTSww.mjs → copySystem.vue_vue_type_script_setup_true_lang-Cm8qw1Iy.mjs} +2 -2
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-BU-V69tY.js → copySystem.vue_vue_type_script_setup_true_lang-DuOeNd-X.js} +1 -1
- package/dist/{defaults-ZqlWy3Cw.js → defaults-2wibBPMr.js} +1 -1
- package/dist/{defaults-BL4xOCbd.mjs → defaults-D2cyFbDD.mjs} +4 -4
- package/dist/{dialog-e8zI78Na.mjs → dialog-D2I7BY_K.mjs} +1 -1
- package/dist/{dialog-D-LKuBcl.js → dialog-D3Rp0nCA.js} +1 -1
- package/dist/{dialog-J-YYFotO.mjs → dialog-DImsPSnX.mjs} +1 -1
- package/dist/{dialog-BmF8sdj4.mjs → dialog-DNrq6Wji.mjs} +1 -1
- package/dist/{dialog-acAmV8bC.js → dialog-DWeoqO_z.js} +1 -1
- package/dist/{dialog-L21FKxnF.js → dialog-DvMhQ1Dj.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Di3uae-Y.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BiYM5Zly.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BDpPVvxy.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Lz5D2W9e.mjs} +3 -3
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CYSQzTuH.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bba1SxR8.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bba1SxR8.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DBQyG4vL.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-a-D8kBLS.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-a-D8kBLS.js.gz +0 -0
- package/dist/{dictDialog-BxTKSn7m.mjs → dictDialog-DRyjni53.mjs} +1 -1
- package/dist/{dictDialog-Opjt2yNv.js → dictDialog-Dm3HhGe-.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-C77zOEhN.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CG8JpNLo.mjs} +2 -2
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BFfeT_oA.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CIwTZpMh.js} +1 -1
- package/dist/{dictItemDialog-CiY2BSHY.mjs → dictItemDialog-CR2tifm0.mjs} +1 -1
- package/dist/{dictItemDialog-Be743KmE.js → dictItemDialog-Dkp9JR0t.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-BkgIjyoH.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-1qxkHIl4.mjs} +2 -2
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-RwaCZHAS.js → dictItemDialog.vue_vue_type_script_setup_true_lang-DzFiMPZ1.js} +1 -1
- package/dist/{formConfig-2nyG8lg9.js → formConfig-C_iwHDxv.js} +1 -1
- package/dist/formConfig-C_iwHDxv.js.gz +0 -0
- package/dist/{formConfig-iQfNhbjr.mjs → formConfig-DNKBJBfY.mjs} +6 -6
- package/dist/formConfig-DNKBJBfY.mjs.gz +0 -0
- package/dist/{header-2rEyfQ7O.mjs → header-Fdq2xRxn.mjs} +2 -2
- package/dist/{header-CPszgrj-.js → header-w_dXnyaF.js} +1 -1
- package/dist/{horizontal-CQ7GEePI.js → horizontal-D2BznniY.js} +1 -1
- package/dist/{horizontal-CzRpTEpn.mjs → horizontal-DBsoMx4l.mjs} +2 -2
- package/dist/{hsAttrBtn-D2XKeYeQ.js → hsAttrBtn-BcTpMldw.js} +1 -1
- package/dist/{hsAttrBtn-CPT0r09o.mjs → hsAttrBtn-C_0l0-di.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-mhgNO0IH.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-DrmVLHrc.js} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-pE0i-DoG.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-kjW-SiIa.mjs} +4 -4
- package/dist/{hsAttrForm-CRe8S42U.mjs → hsAttrForm-BCgfHf6r.mjs} +1 -1
- package/dist/{hsAttrForm-ufZGNqbZ.js → hsAttrForm-CZy_Takn.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-ezIoSl8h.js → hsAttrForm.vue_vue_type_script_setup_true_lang-COX1mb0k.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-B3O0yvH9.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-DQZuKMud.mjs} +4 -4
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DQZuKMud.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-e8jIgRv5.js → hsBtnConfigList-B8fDVe8o.js} +1 -1
- package/dist/{hsBtnConfigList-BLVUAOBu.mjs → hsBtnConfigList-OlnAPlpX.mjs} +1 -1
- package/dist/{hsBtnItemConfig-CKDVmUtr.mjs → hsBtnItemConfig-7fFf9ORG.mjs} +1 -1
- package/dist/{hsBtnItemConfig-Dnq_6EKg.js → hsBtnItemConfig-D3ONvAzx.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Do7D-8cW.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BpVufsyn.mjs} +3 -3
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BtaY6G64.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DaOh8V0h.js} +1 -1
- package/dist/{hsBtnPanel-DpouYMBi.js → hsBtnPanel-B40URPPI.js} +1 -1
- package/dist/{hsBtnPanel-X-jiPNSO.mjs → hsBtnPanel-C0J0UXft.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DynDkZkk.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B31jf6f7.js} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C2jRMyG-.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-qXm1k2KF.mjs} +4 -4
- package/dist/{hsExpand-Sdvi7K80.mjs → hsExpand-BdSNWhvU.mjs} +1 -1
- package/dist/{hsExpand-cSf-jY29.js → hsExpand-Cxq4SYxL.js} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-DycprH0V.js → hsExpand.vue_vue_type_script_setup_true_lang-CVkLb88Q.js} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-BY15uFQp.mjs → hsExpand.vue_vue_type_script_setup_true_lang-xPbGDKIM.mjs} +1 -1
- package/dist/{hsFormConfig-5F9qheXR.mjs → hsFormConfig-BABExNe5.mjs} +1 -1
- package/dist/{hsFormConfig-BTk0NF7x.js → hsFormConfig-Brh9XKNN.js} +1 -1
- package/dist/{hsFormConfigList-C3PfhgZX.js → hsFormConfigList-Dvtffjdy.js} +1 -1
- package/dist/{hsFormConfigList-OzP5dYDX.mjs → hsFormConfigList-dwNPFBTh.mjs} +2 -2
- package/dist/hsFormConfigList-dwNPFBTh.mjs.gz +0 -0
- package/dist/{hsFormPanel-DjbQvZVy.js → hsFormPanel-BJLpvf9I.js} +1 -1
- package/dist/{hsFormPanel-BvSwlcgQ.mjs → hsFormPanel-TQa4plL5.mjs} +6 -6
- package/dist/hsFormPanel-TQa4plL5.mjs.gz +0 -0
- package/dist/{hsFormParse-B8rSgiPF.mjs → hsFormParse-CIGoHjen.mjs} +1 -1
- package/dist/{hsFormParse-B3oflF5V.js → hsFormParse-DvgzMhjM.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CzEkDzTm.js → hsFormParse.vue_vue_type_script_setup_true_lang-C73EpiVi.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-BV0vBcCc.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-tl6oCWk6.mjs} +3 -3
- package/dist/{hsPanelItem-BXQA1yKg.mjs → hsPanelItem-Xk5ZeLMV.mjs} +1 -1
- package/dist/{hsPanelItem-c7o9PfSF.js → hsPanelItem-jA-3Crab.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CdgVUC0Z.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Co0zLhOy.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Lv2QaFsm.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-n4uo5DKd.js} +1 -1
- package/dist/{index copy-DAXBVZkr.js → index copy-DShx9Sqn.js } +1 -1
- package/dist/{index copy-BmmG2kyD.mjs → index copy-DibqQyuQ.mjs } +1 -1
- package/dist/{index-BIG0PmQv.mjs → index-545D5PQ6.mjs} +1 -1
- package/dist/{index-W-QWIzzm.mjs → index-59yUOcxr.mjs} +2 -2
- package/dist/{index-BZX860xc.mjs → index-7VW2ti4g.mjs} +1 -1
- package/dist/{index-BjGZFE2M.mjs → index-8oB03RJ_.mjs} +1 -1
- package/dist/{index-8TBq2bzK.mjs → index-AQfn_FBp.mjs} +1 -1
- package/dist/{index-eXn8tsAF.js → index-B-MB4N0m.js} +1 -1
- package/dist/{index-oyjByR86.js → index-B52nC9qH.js} +1 -1
- package/dist/{index-CfIe1XWn.mjs → index-B5hrDkEk.mjs} +4 -4
- package/dist/index-B5hrDkEk.mjs.gz +0 -0
- package/dist/{index-CxHuQ2rH.mjs → index-B6zSMRtn.mjs} +1 -1
- package/dist/{index-C88vZqjq.mjs → index-B9R8okhN.mjs} +4 -4
- package/dist/{index-ak7rdCw9.js → index-BEryPlIG.js} +1 -1
- package/dist/{index-DXb64ZZY.mjs → index-BEwzBjDG.mjs} +3 -3
- package/dist/index-BIgnSPCb.js +1 -0
- package/dist/{index-BD0VBfV-.mjs → index-BJgOqWqU.mjs} +4 -4
- package/dist/{index-C8T0-WDa.js → index-BKoOD-yD.js} +1 -1
- package/dist/{index-Cwc7VLr6.mjs → index-BM0WephW.mjs} +1 -1
- package/dist/{index-aEv4tD3l.js → index-BOljFI6c.js} +5 -5
- package/dist/{index-aEv4tD3l.js.gz → index-BOljFI6c.js.gz} +0 -0
- package/dist/{index-BnoL72wa.mjs → index-BRFq9frZ.mjs} +1 -1
- package/dist/{index-CKbZ6Nw3.mjs → index-BU-0TEPD.mjs} +3 -3
- package/dist/{index-DT8AVIFx.mjs → index-BUgPsbqX.mjs} +3 -3
- package/dist/{index-BiUikL-I.js → index-BZWSd32R.js} +1 -1
- package/dist/{index-B1JQnBpR.mjs → index-Bb-4PORN.mjs} +1 -1
- package/dist/{index-fOg6Pp3u.mjs → index-BcmSzqKM.mjs} +1 -1
- package/dist/{index-Dsv9Mj4T.js → index-BeyPYq7f.js} +1 -1
- package/dist/{index-YHn9Lf_N.mjs → index-BftpuC9d.mjs} +1 -1
- package/dist/{index-Q4CJxHl2.mjs → index-BiMfBYtr.mjs} +5 -5
- package/dist/{index-r82mW2Nv.mjs → index-BoF9aji9.mjs} +1 -1
- package/dist/{index-C68aQgef.js → index-Bq1Xk_Ow.js} +1 -1
- package/dist/{index-D7aH9Q57.js → index-Bw7ZFOLA.js} +1 -1
- package/dist/{index-ixEx6-Y8.mjs → index-C1lcFSDk.mjs} +3 -3
- package/dist/{index-BoHRykT4.js → index-CFEEDRCY.js} +1 -1
- package/dist/{index-Cd5ZHRoD.js → index-CFEFbAt2.js} +1 -1
- package/dist/{index-BFWITrvE.mjs → index-CPeepNpM.mjs} +5 -5
- package/dist/{index-Bl1B63E3.js → index-CRDlgjAa.js} +1 -1
- package/dist/{index-BQPqr8OW.mjs → index-CXQuFHu1.mjs} +1 -1
- package/dist/{index-wjbrQeYY.js → index-Co_fX9LW.js} +1 -1
- package/dist/{index-BT65Ax9H.mjs → index-Cw9-sg4N.mjs} +1 -1
- package/dist/{index-V-ghK49n.js → index-CySl39ff.js} +1 -1
- package/dist/index-CySl39ff.js.gz +0 -0
- package/dist/{index-D_309lV5.mjs → index-Czxmn9fk.mjs} +4 -4
- package/dist/index-Czxmn9fk.mjs.gz +0 -0
- package/dist/{index-Bx427t8p.js → index-D-2CjGE4.js} +1 -1
- package/dist/{index-CQSS1j32.mjs → index-D1KcLHd9.mjs} +1 -1
- package/dist/{index-BcYnMUnW.js → index-D1oN1daB.js} +1 -1
- package/dist/{index-BCp_zGUZ.js → index-D1ptUF_V.js} +1 -1
- package/dist/index-D1ptUF_V.js.gz +0 -0
- package/dist/{index-DPO0lAeL.js → index-D2Ico3Hi.js} +1 -1
- package/dist/{index-BLybpWXk.js → index-D4D4DgIa.js} +1 -1
- package/dist/{index-B6bxKCxn.js → index-DCCQmA1m.js} +1 -1
- package/dist/{index-CZMABV48.js → index-DHGEqdwc.js} +1 -1
- package/dist/index-DHHcO6BG.js +1 -0
- package/dist/{index-BKJybj1e.mjs → index-DKyEDpvP.mjs} +129 -112
- package/dist/index-DKyEDpvP.mjs.gz +0 -0
- package/dist/{index-Bs8X2wb1.js → index-DLTKUxB8.js} +1 -1
- package/dist/{index-B5fFnKju.mjs → index-DLgGwAOQ.mjs} +6 -3
- package/dist/{index-CKRFR4V8.mjs → index-DZfMttzX.mjs} +4 -4
- package/dist/{index-DJT-VDY9.mjs → index-Dklu-LAp.mjs} +1 -1
- package/dist/{index-pjlBWhv9.js → index-DuokFMFN.js} +1 -1
- package/dist/index-DyE6gOii.js +1 -0
- package/dist/index-Dzcb8xAF.js +1 -0
- package/dist/{index-D1cHBTWC.js → index-Eg0Oxuvl.js} +1 -1
- package/dist/{uploadAvatar-fj1sOFRE.mjs → index-G9SlGjKA.mjs} +157 -8
- package/dist/index-G9SlGjKA.mjs.gz +0 -0
- package/dist/{index-bOQIREyV.mjs → index-GC-ZE8nA.mjs} +2 -2
- package/dist/index-GC-ZE8nA.mjs.gz +0 -0
- package/dist/{index-B8rHtpKm.js → index-GG8DDIBh.js} +1 -1
- package/dist/{index-D6QagHZ_.js → index-HouIQZUe.js} +1 -1
- package/dist/{index-C_GZUgqW.js → index-J0imrvig.js} +1 -1
- package/dist/{index-B8-3auQC.js → index-OGEPDJy0.js} +1 -1
- package/dist/index-PCI3lWru.mjs +38 -0
- package/dist/index-R8nAElWM.js +1 -0
- package/dist/index-R8nAElWM.js.gz +0 -0
- package/dist/{index-DroWDp9U.js → index-TbZDAaw-.js} +1 -1
- package/dist/{index-DqFWDzZl.js → index-Xg6EpFPt.js} +1 -1
- package/dist/index-ZcdBjLAL.mjs +14 -0
- package/dist/{index-DrQ7oC03.js → index-_s7zur05.js} +1 -1
- package/dist/{index-mjgC8wzm.js → index-cKXBY6qW.js} +1 -1
- package/dist/{index-Dhm9XQyP.mjs → index-cZ8_cnh1.mjs} +10 -10
- package/dist/index-cZ8_cnh1.mjs.gz +0 -0
- package/dist/{index-Bx24wRl9.mjs → index-dH9_b1Qu.mjs} +4 -4
- package/dist/{index-H3LemiMl.mjs → index-feq0FF6W.mjs} +1 -1
- package/dist/{index-Ct0hunLG.mjs → index-mNWobrqf.mjs} +1 -1
- package/dist/{index-vJn8mKui.js → index-oXW_3vtS.js} +1 -1
- package/dist/{index-CfFKXqAv.mjs → index-opqGNraF.mjs} +1 -1
- package/dist/{index-CW1X5_Zz.mjs → index-sKHPhaXj.mjs} +1 -1
- package/dist/{index-pu6AEYnX.mjs → index-uEV3_EA6.mjs} +1 -1
- package/dist/{index-CqXAMjbL.js → index-uHhpvrQi.js} +1 -1
- package/dist/{index-tPUm_UDq.js → index-zM_DvAdy.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DUCRLKGc.mjs → index.vue_vue_type_script_setup_true_lang-9kFCHSZl.mjs} +4 -4
- package/dist/index.vue_vue_type_script_setup_true_lang-9kFCHSZl.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-CrIUzGTC.js → index.vue_vue_type_script_setup_true_lang-B42GekWm.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D9fNQpq3.mjs → index.vue_vue_type_script_setup_true_lang-BAPOKx2l.mjs} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-D3sIIaFm.js → index.vue_vue_type_script_setup_true_lang-BeAkF_85.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-RLHBkJ8N.mjs → index.vue_vue_type_script_setup_true_lang-C-SfBu_l.mjs} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-Cyo60p4O.js → index.vue_vue_type_script_setup_true_lang-D9zFSabF.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bzl3IiHn.mjs → index.vue_vue_type_script_setup_true_lang-R0BzXrtJ.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CpaXjRDF.js → index.vue_vue_type_script_setup_true_lang-tzGWV7PN.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-CcS1Miso.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-CTkLnEci.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-BDbvzkCd.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-CwOt0p8m.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-CwOt0p8m.mjs.gz +0 -0
- package/dist/{link-Dnl3Nswf.js → link-Ci-FMDC5.js} +1 -1
- package/dist/{link-D7qG9YIE.mjs → link-v_uHt4tR.mjs} +1 -1
- package/dist/{list-BPvUkbf6.js → list-1ydrFB1C.js} +1 -1
- package/dist/{list-DMRoSLpC.mjs → list-Pgfx9sN2.mjs} +1 -1
- package/dist/{main-BV_ONW1E.mjs → main-BSQcZP4b.mjs} +3 -3
- package/dist/{main-DP7tv12h.js → main-BsmJ8k5Y.js} +1 -1
- package/dist/{mobile-TofQ9jZb.js → mobile-BIWv1LWV.js} +1 -1
- package/dist/{mobile-D2o13ydf.mjs → mobile-DcyOxIfk.mjs} +1 -1
- package/dist/{parent-CgT1eTvx.js → parent-BQu8sf9M.js} +1 -1
- package/dist/{parent-BAFX59oS.mjs → parent-TuxYlSJN.mjs} +1 -1
- package/dist/{popup-Cy-HHBOw.mjs → popup-DtKvNPd8.mjs} +1 -1
- package/dist/{popup-BxqAaalr.js → popup-q--smglg.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BSKn3cxJ.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-B2Fav84e.mjs} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-Ck-eDBrC.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BymUYdbu.js} +1 -1
- package/dist/{roleItem-BQtHFB5m.js → roleItem-CRBENSML.js} +1 -1
- package/dist/{roleItem-BgwT8ogJ.mjs → roleItem-CtOFPe8A.mjs} +1 -1
- package/dist/{saveForm-DTkBCv6N.mjs → saveForm-BNz8xX0K.mjs} +3 -3
- package/dist/{saveForm-C1OJ64nx.js → saveForm-BkAkaL5W.js} +1 -1
- package/dist/{scan-xJodM36m.js → scan-KFHiOPXG.js} +1 -1
- package/dist/scan-KFHiOPXG.js.gz +0 -0
- package/dist/{scan-Cxheo-y7.mjs → scan-sHaPNAnW.mjs} +1 -1
- package/dist/scan-sHaPNAnW.mjs.gz +0 -0
- package/dist/{search-BxnO3NbM.js → search-BJ91aVZl.js} +1 -1
- package/dist/{search-B7R3D0bv.mjs → search-BM7R-nXN.mjs} +1 -1
- package/dist/{selectConfig-Biqg7TT0.mjs → selectConfig-Cau-PFyO.mjs} +1 -1
- package/dist/selectConfig-Cau-PFyO.mjs.gz +0 -0
- package/dist/{selectConfig-DuNPMDrp.js → selectConfig-OmAl_ckr.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-86uKe9I9.js → subItem-CQHk3Xy9.js} +1 -1
- package/dist/{subItem-RhxsK0og.mjs → subItem-DXSurq4z.mjs} +1 -1
- package/dist/{tagsView-CzvHA6go.mjs → tagsView-BNX9wtvn.mjs} +2 -2
- package/dist/tagsView-BNX9wtvn.mjs.gz +0 -0
- package/dist/{tagsView-CJEwP61J.js → tagsView-DAOA_KRO.js} +2 -2
- package/dist/tagsView-DAOA_KRO.js.gz +0 -0
- package/dist/{transverse-B9qWEvDF.js → transverse-BtXdtSj4.js} +1 -1
- package/dist/{transverse-CVT_IJRq.mjs → transverse-PDnp2xpt.mjs} +3 -3
- package/dist/{user-CkKMKWxO.js → user-Bo0TvpyO.js} +1 -1
- package/dist/{user-DteTfgAu.mjs → user-C7w5qdAC.mjs} +3 -3
- package/dist/{userNews-DncAP-8Y.mjs → userNews-Da0jqi6-.mjs} +1 -1
- package/dist/{userNews-ByiH4YGe.js → userNews-DrB4twz8.js} +1 -1
- package/dist/{userSelect-fSfP44E5.js → userSelect-Beom5Z6y.js} +1 -1
- package/dist/{userSelect-DgdmYQMk.mjs → userSelect-DrPXKeqe.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-Da3yLGvo.mjs → userSelect.vue_vue_type_script_setup_true_lang-B8IdOK-W.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-NyY3hYee.js → userSelect.vue_vue_type_script_setup_true_lang-CSZPH5JO.js} +1 -1
- package/dist/{vertical-CQO3TycS.js → vertical-B2RLRL87.js} +1 -1
- package/dist/{vertical-5Fu_S3Xs.mjs → vertical-ga_n45pr.mjs} +2 -2
- package/package.json +1 -1
- package/dist/404-DghRHzJs.js.gz +0 -0
- package/dist/auth_test-CMJmGyJR.mjs +0 -24
- package/dist/auth_test-Wym_Jcd0.js +0 -1
- package/dist/baseFormConfig-DifzO4MU.mjs.gz +0 -0
- package/dist/baseTableConfig-BZK2THJc.js.gz +0 -0
- package/dist/baseTableConfig-DwVzxY7X.mjs.gz +0 -0
- package/dist/btnIndex-Bt9FMdS_.mjs.gz +0 -0
- package/dist/cloneConfigDialog-BWWwmAp0.mjs.gz +0 -0
- package/dist/cloneConfigDialog-bZ3Tn0_g.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CYSQzTuH.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DBQyG4vL.js.gz +0 -0
- package/dist/formConfig-2nyG8lg9.js.gz +0 -0
- package/dist/formConfig-iQfNhbjr.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-B3O0yvH9.mjs.gz +0 -0
- package/dist/hsFormConfigList-OzP5dYDX.mjs.gz +0 -0
- package/dist/hsFormPanel-BvSwlcgQ.mjs.gz +0 -0
- package/dist/index copy-D23lPMJP.js +0 -6
- package/dist/index copy-D23lPMJP.js.gz +0 -0
- package/dist/index copy-Elt_ZTIW.mjs +0 -10585
- package/dist/index copy-Elt_ZTIW.mjs.gz +0 -0
- package/dist/index-BCp_zGUZ.js.gz +0 -0
- package/dist/index-BKJybj1e.mjs.gz +0 -0
- package/dist/index-CfIe1XWn.mjs.gz +0 -0
- package/dist/index-D_309lV5.mjs.gz +0 -0
- package/dist/index-Dhm9XQyP.mjs.gz +0 -0
- package/dist/index-DkzdygR1.js +0 -1
- package/dist/index-Dsgu_XO6.js +0 -1
- package/dist/index-Dt-axamm.mjs +0 -130
- package/dist/index-V-ghK49n.js.gz +0 -0
- package/dist/index-bOQIREyV.mjs.gz +0 -0
- package/dist/index-k0M3MSJq.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-DUCRLKGc.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-BDbvzkCd.mjs.gz +0 -0
- package/dist/scan-Cxheo-y7.mjs.gz +0 -0
- package/dist/scan-xJodM36m.js.gz +0 -0
- package/dist/selectConfig-Biqg7TT0.mjs.gz +0 -0
- package/dist/tagsView-CJEwP61J.js.gz +0 -0
- package/dist/tagsView-CzvHA6go.mjs.gz +0 -0
- package/dist/uploadAvatar-BaHgrUwd.js +0 -1
- package/dist/uploadAvatar-BaHgrUwd.js.gz +0 -0
- package/dist/uploadAvatar-fj1sOFRE.mjs.gz +0 -0
- package/dist/uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-B-YXXUWn.js +0 -1
- package/dist/uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-DOiOwYLl.mjs +0 -137
|
@@ -1,6 +1,139 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, createCommentVNode, createElementVNode, withDirectives, normalizeStyle, vShow, normalizeClass, toDisplayString, defineComponent, ref, onMounted, toRefs, reactive, resolveComponent, createVNode, withCtx, unref, createTextVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { _ as _export_sfc, T as systemStore, b as ElMessage, U as useFileController } from "./index-DKyEDpvP.mjs";
|
|
3
|
+
const Exif = {};
|
|
4
|
+
Exif.getData = (img) => new Promise((reslove, reject) => {
|
|
5
|
+
let obj = {};
|
|
6
|
+
getImageData(img).then((data) => {
|
|
7
|
+
obj.arrayBuffer = data;
|
|
8
|
+
try {
|
|
9
|
+
obj.orientation = getOrientation(data);
|
|
10
|
+
} catch {
|
|
11
|
+
obj.orientation = -1;
|
|
12
|
+
}
|
|
13
|
+
reslove(obj);
|
|
14
|
+
}).catch((error2) => {
|
|
15
|
+
reject(error2);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
function getImageData(img) {
|
|
19
|
+
let data = null;
|
|
20
|
+
return new Promise((reslove, reject) => {
|
|
21
|
+
if (img.src) {
|
|
22
|
+
if (/^data\:/i.test(img.src)) {
|
|
23
|
+
data = base64ToArrayBuffer(img.src);
|
|
24
|
+
reslove(data);
|
|
25
|
+
} else if (/^blob\:/i.test(img.src)) {
|
|
26
|
+
var fileReader = new FileReader();
|
|
27
|
+
fileReader.onload = function(e) {
|
|
28
|
+
data = e.target.result;
|
|
29
|
+
reslove(data);
|
|
30
|
+
};
|
|
31
|
+
objectURLToBlob(img.src, function(blob) {
|
|
32
|
+
fileReader.readAsArrayBuffer(blob);
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
var http = new XMLHttpRequest();
|
|
36
|
+
http.onload = function() {
|
|
37
|
+
if (this.status == 200 || this.status === 0) {
|
|
38
|
+
data = http.response;
|
|
39
|
+
reslove(data);
|
|
40
|
+
} else {
|
|
41
|
+
throw "Could not load image";
|
|
42
|
+
}
|
|
43
|
+
http = null;
|
|
44
|
+
};
|
|
45
|
+
http.open("GET", img.src, true);
|
|
46
|
+
http.responseType = "arraybuffer";
|
|
47
|
+
http.send(null);
|
|
48
|
+
}
|
|
49
|
+
} else {
|
|
50
|
+
reject("img error");
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function objectURLToBlob(url, callback) {
|
|
55
|
+
var http = new XMLHttpRequest();
|
|
56
|
+
http.open("GET", url, true);
|
|
57
|
+
http.responseType = "blob";
|
|
58
|
+
http.onload = function(e) {
|
|
59
|
+
if (this.status == 200 || this.status === 0) {
|
|
60
|
+
callback(this.response);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
http.send();
|
|
64
|
+
}
|
|
65
|
+
function base64ToArrayBuffer(base64, contentType) {
|
|
66
|
+
contentType = contentType || base64.match(/^data\:([^\;]+)\;base64,/mi)[1] || "";
|
|
67
|
+
base64 = base64.replace(/^data\:([^\;]+)\;base64,/gmi, "");
|
|
68
|
+
var binary = atob(base64);
|
|
69
|
+
var len = binary.length % 2 == 0 ? binary.length : binary.length + 1;
|
|
70
|
+
var buffer = new ArrayBuffer(len);
|
|
71
|
+
var view = new Uint16Array(buffer);
|
|
72
|
+
for (var i = 0; i < len; i++) {
|
|
73
|
+
view[i] = binary.charCodeAt(i);
|
|
74
|
+
}
|
|
75
|
+
return buffer;
|
|
76
|
+
}
|
|
77
|
+
function getStringFromCharCode(dataView, start, length) {
|
|
78
|
+
var str = "";
|
|
79
|
+
var i;
|
|
80
|
+
for (i = start, length += start; i < length; i++) {
|
|
81
|
+
str += String.fromCharCode(dataView.getUint8(i));
|
|
82
|
+
}
|
|
83
|
+
return str;
|
|
84
|
+
}
|
|
85
|
+
function getOrientation(arrayBuffer) {
|
|
86
|
+
var dataView = new DataView(arrayBuffer);
|
|
87
|
+
var length = dataView.byteLength;
|
|
88
|
+
var orientation;
|
|
89
|
+
var exifIDCode;
|
|
90
|
+
var tiffOffset;
|
|
91
|
+
var firstIFDOffset;
|
|
92
|
+
var littleEndian;
|
|
93
|
+
var endianness;
|
|
94
|
+
var app1Start;
|
|
95
|
+
var ifdStart;
|
|
96
|
+
var offset;
|
|
97
|
+
var i;
|
|
98
|
+
if (dataView.getUint8(0) === 255 && dataView.getUint8(1) === 216) {
|
|
99
|
+
offset = 2;
|
|
100
|
+
while (offset < length) {
|
|
101
|
+
if (dataView.getUint8(offset) === 255 && dataView.getUint8(offset + 1) === 225) {
|
|
102
|
+
app1Start = offset;
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
offset++;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
if (app1Start) {
|
|
109
|
+
exifIDCode = app1Start + 4;
|
|
110
|
+
tiffOffset = app1Start + 10;
|
|
111
|
+
if (getStringFromCharCode(dataView, exifIDCode, 4) === "Exif") {
|
|
112
|
+
endianness = dataView.getUint16(tiffOffset);
|
|
113
|
+
littleEndian = endianness === 18761;
|
|
114
|
+
if (littleEndian || endianness === 19789) {
|
|
115
|
+
if (dataView.getUint16(tiffOffset + 2, littleEndian) === 42) {
|
|
116
|
+
firstIFDOffset = dataView.getUint32(tiffOffset + 4, littleEndian);
|
|
117
|
+
if (firstIFDOffset >= 8) {
|
|
118
|
+
ifdStart = tiffOffset + firstIFDOffset;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if (ifdStart) {
|
|
125
|
+
length = dataView.getUint16(ifdStart, littleEndian);
|
|
126
|
+
for (i = 0; i < length; i++) {
|
|
127
|
+
offset = ifdStart + i * 12 + 2;
|
|
128
|
+
if (dataView.getUint16(offset, littleEndian) === 274) {
|
|
129
|
+
offset += 8;
|
|
130
|
+
orientation = dataView.getUint16(offset, littleEndian);
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return orientation;
|
|
136
|
+
}
|
|
4
137
|
const _sfc_main$1 = {
|
|
5
138
|
data: function() {
|
|
6
139
|
return {
|
|
@@ -1769,8 +1902,11 @@ const VueCropper = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_ren
|
|
|
1769
1902
|
const _hoisted_1 = { class: "h-full" };
|
|
1770
1903
|
const _hoisted_2 = { class: "avatar-upload-preview" };
|
|
1771
1904
|
const _hoisted_3 = ["src"];
|
|
1905
|
+
const __default__ = defineComponent({
|
|
1906
|
+
name: "cropper"
|
|
1907
|
+
});
|
|
1772
1908
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1773
|
-
|
|
1909
|
+
...__default__,
|
|
1774
1910
|
props: {
|
|
1775
1911
|
avatar: { default: "" },
|
|
1776
1912
|
close: { type: Function, default: close },
|
|
@@ -1781,7 +1917,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1781
1917
|
const props = __props;
|
|
1782
1918
|
let userInfos = ref({});
|
|
1783
1919
|
onMounted(async () => {
|
|
1784
|
-
userInfos.value = await systemStore.get(
|
|
1920
|
+
userInfos.value = await systemStore.get(
|
|
1921
|
+
"userInfo"
|
|
1922
|
+
);
|
|
1785
1923
|
});
|
|
1786
1924
|
let { avatar } = toRefs(props);
|
|
1787
1925
|
const options = reactive({
|
|
@@ -1843,7 +1981,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1843
1981
|
let requestUpload = () => {
|
|
1844
1982
|
};
|
|
1845
1983
|
let beforeUpload = (file) => {
|
|
1846
|
-
let img = [
|
|
1984
|
+
let img = [
|
|
1985
|
+
"image/png",
|
|
1986
|
+
"image/jpg",
|
|
1987
|
+
"image/jpeg",
|
|
1988
|
+
"image/PNG",
|
|
1989
|
+
"image/JPG",
|
|
1990
|
+
"image/JPEG",
|
|
1991
|
+
"image/gif"
|
|
1992
|
+
];
|
|
1847
1993
|
if (!img.includes(file.type)) {
|
|
1848
1994
|
ElMessage.error("图片格式有误,请重新上传");
|
|
1849
1995
|
return false;
|
|
@@ -1861,7 +2007,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1861
2007
|
ElMessage.warning("请先选择图片");
|
|
1862
2008
|
}
|
|
1863
2009
|
cropperRef.value.getCropBlob(async (data) => {
|
|
1864
|
-
const photoRes = await postSinglefile({
|
|
2010
|
+
const photoRes = await postSinglefile({
|
|
2011
|
+
data: { file: data },
|
|
2012
|
+
proxy: props.proxyId
|
|
2013
|
+
});
|
|
1865
2014
|
const res = await postUpdateFile({
|
|
1866
2015
|
data: {
|
|
1867
2016
|
id: userInfos.value.id,
|
|
@@ -2053,7 +2202,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2053
2202
|
};
|
|
2054
2203
|
}
|
|
2055
2204
|
});
|
|
2056
|
-
const
|
|
2205
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-730d1d41"]]);
|
|
2057
2206
|
export {
|
|
2058
|
-
|
|
2207
|
+
index as default
|
|
2059
2208
|
};
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, ref, defineComponent, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, unref, withCtx, createTextVNode, withKeys, createElementVNode, renderList, toDisplayString } from "vue";
|
|
2
|
-
import { c as _, b as ElMessage, w as getDataType, _ as _export_sfc } from "./index-
|
|
3
|
-
import { u as usePostMan } from "./index-
|
|
2
|
+
import { c as _, b as ElMessage, w as getDataType, _ as _export_sfc } from "./index-DKyEDpvP.mjs";
|
|
3
|
+
import { u as usePostMan } from "./index-D1KcLHd9.mjs";
|
|
4
4
|
const postMan = usePostMan();
|
|
5
5
|
let textareaRef = ref();
|
|
6
6
|
let state = reactive({
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BOljFI6c.js"),i=require("./index-BEryPlIG.js"),c=require("./dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CIwTZpMh.js"),a=require("./dictItemDialog.vue_vue_type_script_setup_true_lang-DzFiMPZ1.js"),o=i.useDictController();const d={class:"system-menu-container layout-padding"},l={class:"flex",style:{height:"5%"}},n={class:"flex",style:{height:"95%"}},r={class:"w-1/5 border-1 border-solid border-slate-300"},s={class:"overflow-y-auto",style:{height:"95%"}},u=["onClick"],f={class:"flex-1 h-full"},m={class:"flex"},h=e.defineComponent({name:"dataDict"}),_=e.defineComponent({...h,setup(i){const{addDict:h,deleteDict:_,addDictItem:p,getDictData:D,choseDict:v,editDictItem:g,deleteDictItem:V,searchDict:C,onChangeEffect:x,onChangeDefault:y,dict:w}=function(){const i=e.reactive({keyword:"",dictData:[],originDictData:[],currentDict:void 0,dictItemData:[]}),d=()=>{o.getDictListByProject({project_code:"scmp"}).then((e=>{1==e.code&&(i.originDictData=e.data,l(),i.currentDict||(i.currentDict=e.data[0]||void 0,i.currentDict&&n()))}))},l=()=>{i.dictData=t._.cloneDeep(i.originDictData).filter((e=>t._.includes(e.dict_name,i.keyword)||t._.includes(e.dict_code,i.keyword)))},n=()=>{var e,t;(null==(e=i.currentDict)?void 0:e.id)&&o.getListPageDictChild({dict_id:null==(t=i.currentDict)?void 0:t.id}).then((e=>{i.dictItemData=e.data}))},r=(e,c)=>{t.showPopup(a._sfc_main,{dict:i.currentDict,dictList:i.originDictData,type:e,dictItem:c||void 0},{title:"edit"==e?"编辑字典项":"新增字典项",confirmButtonText:"保存",mask:!0,width:500,height:500,async success({type:e,close:t,data:i}){"cancel"==e?t():"confirm"==e&&"success"==await i()&&(t(),n())}})};return{addDict:()=>{t.showPopup(c._sfc_main,{},{title:"新增字典",mask:!0,width:500,height:400,confirmButtonText:"保存",async success({type:e,close:t,data:i}){"cancel"==e?t():"confirm"==e&&"success"==await i()&&(t(),d())}})},deleteDict:()=>{var e;t.ElMessageBox.confirm(`确认删除字典${null==(e=i.currentDict)?void 0:e.dict_name}”吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((()=>{var e;o.postDelDictInfo({id:null==(e=i.currentDict)?void 0:e.id}).then((e=>{1==e.code&&(i.currentDict=void 0,t.ElMessage.success("删除成功"),d())}))}))},addDictItem:()=>{r("add")},getDictData:d,choseDict:e=>{i.currentDict=e,n()},editDictItem:e=>{r("edit",e)},deleteDictItem:e=>{t.ElMessageBox.confirm(`确认删除字典项“${e.dict_child_name}”吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((()=>{o.postDelDictChildInfo({id:e.id}).then((e=>{1==e.code&&(t.ElMessage.success("删除成功"),n())}))}))},searchDict:l,onChangeEffect:(e,i)=>{"1"!=e&&"0"!=e||o.postUpdateSwitch({id:i.id,is_effect:e}).then((e=>{1==e.code&&t.ElMessage.success(e.msg),n()}))},onChangeDefault:(e,c)=>{var a;o.postUpdateDefault({dict_id:null==(a=i.currentDict)?void 0:a.id,id:c.id,is_default:e}).then((e=>{1==e.code&&t.ElMessage.success(e.msg),n()}))},dict:i}}();return e.onMounted((()=>{D()})),(t,i)=>{const c=e.resolveComponent("hs-button"),a=e.resolveComponent("hs-input"),o=e.resolveComponent("vxe-column"),D=e.resolveComponent("hs-switch"),N=e.resolveComponent("vxe-table"),k=e.resolveComponent("el-card");return e.openBlock(),e.createElementBlock("div",d,[e.createVNode(k,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createElementVNode("div",l,[e.createVNode(c,{type:"primary",size:"default",onClick:e.unref(h)},{default:e.withCtx((()=>i[1]||(i[1]=[e.createTextVNode("新增字典")]))),_:1,__:[1]},8,["onClick"]),e.unref(w).currentDict?(e.openBlock(),e.createBlock(c,{key:0,type:"primary",size:"default",onClick:e.unref(_)},{default:e.withCtx((()=>i[2]||(i[2]=[e.createTextVNode("删除字典")]))),_:1,__:[2]},8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(c,{type:"primary",size:"default",onClick:e.unref(p)},{default:e.withCtx((()=>i[3]||(i[3]=[e.createTextVNode("新增字典项")]))),_:1,__:[3]},8,["onClick"])]),e.createElementVNode("div",n,[e.createElementVNode("div",r,[e.createVNode(a,{placeholder:"字典列表","suffix-icon":"ele-Search",modelValue:e.unref(w).keyword,"onUpdate:modelValue":i[0]||(i[0]=t=>e.unref(w).keyword=t),onInput:e.unref(C)},null,8,["modelValue","onInput"]),e.createElementVNode("div",s,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w).dictData,((t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex bg-white p-4 border-0 border-b border-dashed border-slate-400 hover:bg-cyan-100",""+(e.unref(w).currentDict&&e.unref(w).currentDict.id==t.id?"active":"")]),key:c,onClick:i=>e.unref(v)(t)},[e.createElementVNode("div",null,e.toDisplayString(t.dict_name)+" ",1),i[4]||(i[4]=e.createTextVNode(" - ")),e.createElementVNode("div",null," "+e.toDisplayString(t.dict_code),1)],10,u)))),128))])]),e.createElementVNode("div",f,[e.createVNode(N,{data:e.unref(w).dictItemData,height:"auto"},{default:e.withCtx((()=>[e.createVNode(o,{type:"seq",width:"60"}),e.createVNode(o,{field:"dict_child_code",title:"字典项代码"}),e.createVNode(o,{field:"dict_child_name",title:"字典项名称"}),e.createVNode(o,{field:"show_name",title:"显示名称"}),e.createVNode(o,{field:"sort",title:"排序"}),e.createVNode(o,{field:"remark",title:"字典说明"}),e.createVNode(o,{field:"is_effect",title:"开关"},{default:e.withCtx((({row:t})=>[e.createVNode(D,{size:"default",modelValue:t.is_effect,"onUpdate:modelValue":e=>t.is_effect=e,"active-value":"1","inactive-value":"0",onChange:i=>e.unref(x)(i,t)},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:1}),e.createVNode(o,{field:"is_default",title:"默认值"},{default:e.withCtx((({row:t})=>[e.createVNode(D,{size:"default",modelValue:t.is_default,"onUpdate:modelValue":e=>t.is_default=e,"active-value":"1","inactive-value":"0",onChange:i=>e.unref(y)(i,t)},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:1}),e.createVNode(o,{title:"操作",fixed:"right"},{default:e.withCtx((({row:t})=>[e.createElementVNode("div",m,[e.createVNode(c,{text:"",size:"small",onClick:i=>e.unref(g)(t),type:"primary"},{default:e.withCtx((()=>i[5]||(i[5]=[e.createTextVNode("编辑")]))),_:2,__:[5]},1032,["onClick"]),e.createVNode(c,{text:"",size:"small",onClick:i=>e.unref(V)(t),type:"primary"},{default:e.withCtx((()=>i[6]||(i[6]=[e.createTextVNode("删除")]))),_:2,__:[6]},1032,["onClick"])])])),_:1})])),_:1},8,["data"])])])])),_:1})])}}}),p=t._export_sfc(_,[["__scopeId","data-v-94679299"]]);exports.default=p;
|
|
@@ -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-tzGWV7PN.js");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./index-
|
|
1
|
+
"use strict";const e=require("./index-BOljFI6c.js"),t=(t={})=>{let s=t.proxy?"/"+t.proxy:"";return delete t.proxy,t=((e,t)=>Object.assign(e,{title:t}))(t,"后台api获取接口"),e.request({url:s?s+"/v3/api-docs":"/scmp-web/v3/api-docs",method:"get",params:t})};exports.usePostMan=function(){return{getApiDocs:t}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("pinia"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("pinia"),o=require("./index-BOljFI6c.js"),n=e.defineComponent({name:"layout"}),s=e.defineComponent({...n,setup(n){const s={defaults:e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./defaults-2wibBPMr.js"))))),classic:e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./classic-BR3kP1C5.js"))))),transverse:e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./transverse-BtXdtSj4.js"))))),columns:e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./columns-PZMdqd45.js")))))},i=o.useThemeConfig(),{themeConfig:r}=t.storeToRefs(i),u=async()=>{const e=await o.systemStore.get("oldLayout");e||await o.systemStore.set("oldLayout",r.value.layout);const t=document.body.clientWidth;t<1e3?(r.value.isCollapse=!1,o.mittBus.emit("layoutMobileResize",{layout:"defaults",clientWidth:t})):o.mittBus.emit("layoutMobileResize",{layout:e||r.value.layout,clientWidth:t})};return e.onBeforeMount((()=>{u(),window.addEventListener("resize",u)})),e.onUnmounted((()=>{window.removeEventListener("resize",u)})),(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[e.unref(r).layout])))}});exports.default=s;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, createElementBlock, openBlock, createVNode, unref, isRef } from "vue";
|
|
2
|
+
const _hoisted_1 = { class: "h-full" };
|
|
3
|
+
const __default__ = defineComponent({
|
|
4
|
+
name: "upload2"
|
|
5
|
+
});
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
...__default__,
|
|
8
|
+
setup(__props) {
|
|
9
|
+
let file = ref([
|
|
10
|
+
{
|
|
11
|
+
name: "test",
|
|
12
|
+
path: "qwp/910001/2024/04/25/2024042547167555.jpg",
|
|
13
|
+
id: "1",
|
|
14
|
+
isNotDelOssFile: 1
|
|
15
|
+
}
|
|
16
|
+
]);
|
|
17
|
+
const onSuccess = (res) => {
|
|
18
|
+
console.log("res", res);
|
|
19
|
+
};
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
const _component_bc_upload = resolveComponent("bc-upload");
|
|
22
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
23
|
+
createVNode(_component_bc_upload, {
|
|
24
|
+
multiple: "",
|
|
25
|
+
action: "/pri/file/singlefile",
|
|
26
|
+
fileList: unref(file),
|
|
27
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => isRef(file) ? file.value = $event : file = $event),
|
|
28
|
+
limit: 2,
|
|
29
|
+
proxy: "/qwp-web",
|
|
30
|
+
onOnSuccess: onSuccess
|
|
31
|
+
}, null, 8, ["fileList"])
|
|
32
|
+
]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
_sfc_main as default
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./index-BOljFI6c.js"),i={};i.getData=t=>new Promise(((e,i)=>{let s={};(function(t){let e=null;return new Promise(((i,s)=>{if(t.src)if(/^data\:/i.test(t.src))e=function(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var i=atob(t),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),h=new Uint16Array(o),r=0;r<s;r++)h[r]=i.charCodeAt(r);return o}(t.src),i(e);else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){e=t.target.result,i(e)},function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},i.send()}(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var h=new XMLHttpRequest;h.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=h.response,i(e),h=null},h.open("GET",t.src,!0),h.responseType="arraybuffer",h.send(null)}else s("img error")}))})(t).then((t=>{s.arrayBuffer=t;try{s.orientation=function(t){var e,i,s,o,h,r,a,c,n,p=new DataView(t),l=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<l;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){r=c;break}c++}r&&(i=r+10,"Exif"===function(t,e,i){var s,o="";for(s=e,i+=e;s<i;s++)o+=String.fromCharCode(t.getUint8(s));return o}(p,r+4,4)&&((o=18761===(h=p.getUint16(i)))||19789===h)&&42===p.getUint16(i+2,o)&&(s=p.getUint32(i+4,o))>=8&&(a=i+s));if(a)for(l=p.getUint16(a,o),n=0;n<l;n++)if(c=a+12*n+2,274===p.getUint16(c,o)){c+=8,e=p.getUint16(c,o);break}return e}(t)}catch{s.orientation=-1}e(s)})).catch((t=>{i(t)}))}));const s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let e=t.width,s=t.height;i.getData(t).then((i=>{this.orientation=i.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&e<o&s<o?this.imgs=this.img:(e>o&&(s=s/e*o,e=o),s>o&&(e=e/s*o,s=o),this.checkOrientationImage(t,this.orientation,e,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var e=new XMLHttpRequest;e.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},e.open("GET",this.img,!0),e.responseType="blob",e.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,o=this.rotate,h=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=h*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),o){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*o*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*o*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=h*this.scale,e=r*this.scale;switch(i.save(),o){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1),s||this.changeImgScale(o,h,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,o=this.trueHeight,h=s*i,r=o*i;if(h>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/o,i=this.cropH<=o*t?t:e;this.scale=i,h=s*i,r=o*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2:this.x=e.x1-(s-h)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2-r+this.cropW:this.x=e.x2-(s-h)/2-h),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(o-r)/2-(r-h)/2:this.y=e.y1-(o-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(o-r)/2-(r-h)/2-h:this.y=e.y2-(o-r)/2-r)),(h<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=e._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({name:"cropper"}),g=t.defineComponent({...u,props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(i){const{postSinglefile:s,postUpdateFile:o}=e.useFileController(),h=i;let r=t.ref({});t.onMounted((async()=>{r.value=await e.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let f=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},m=t=>{const e=t||1;g.value.changeScale(e)},w=()=>{g.value.refresh()};const v=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return e.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||e.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:v},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(m)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(m)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(f)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(f)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(w)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),f=e._export_sfc(g,[["__scopeId","data-v-730d1d41"]]);exports.default=f;
|
|
Binary file
|
|
@@ -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-D9zFSabF.js");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BOljFI6c.js"),a=require("./index-zM_DvAdy.js"),o=require("./index.vue_vue_type_script_setup_true_lang-tzGWV7PN.js"),c=require("./copySystem.vue_vue_type_script_setup_true_lang-DuOeNd-X.js"),s=(e={})=>{var a,o;return a=e,o="清除系统所有缓存 ",e=Object.assign(a,{other_log_info:{title:o}}),t.request({url:"/scmp-web/pri/data_cache/clear_cache",method:"post",data:e})};function n(){const{postDeleteSystemInfo:n,postUpdateLockStatus:r}=a.useSystemController(),{postClearCache:l}={postClearCache:s},i=e.ref(),u=e.ref(!0),d=e.ref([]);function p(e){t.showPopup(o._sfc_main,{config_unique_id:"48cc9f35-6fa4-43ba-8d9c-84cd6dd2b930",row:e,list:d.value},{title:e?"编辑":"新增",width:"600px",height:"500px",lockView:!1,mask:!1,success:({type:e,close:t,data:a})=>{"cancel"==e&&t(),"confirm"==e&&a().then((e=>{var a;e&&(t(),null==(a=i.value)||a.fetchTableData({...i.value.formData}))}))}})}function _(e){r({id:e.id,lock_status:e.lock_status}).then((()=>{var e;t.HsMessage.success("修改成功"),null==(e=i.value)||e.fetchTableData({...i.value.formData})})).catch((()=>{t.HsMessage.error("修改失败")}))}return{onReady:function(e){i.value=e,u.value=!1,d.value=e.getData()},onBtnClick:function(e,a){switch(e){case"add":p();break;case"edit":p(a);break;case"delete":!function(e){t.HsMessageBox.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{n({id:e.id}).then((()=>{var e;t.HsMessage.success("删除成功"),null==(e=i.value)||e.fetchTableData({...i.value.formData})})).catch((()=>{t.HsMessage.error("删除失败")}))})).catch((()=>{}))}(a);break;case"status":_(a);break;case"clear_cache":!function(e){t.HsMessageBox.confirm("确定清除缓存吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{u.value=!0,l({project_code:e.project_code}).then((()=>{t.HsMessage.success("清除成功"),u.value=!1})).catch((()=>{t.HsMessage.error("清除失败"),u.value=!1}))})).catch((()=>{}))}(a);break;case"copy_system":(function(e,a){return new Promise((o=>{t.showPopup(c._sfc_main,{row:e,list:a},{title:"复制系统配置",width:"400px",height:"300px",success:({type:e,close:t,data:a})=>{"cancel"==e&&t(),"confirm"==e&&1==a.code&&(t(),o(!0))}})}))})(a,i.value.getData()).then((()=>{t.HsMessage.success("复制成功")}))}},loading:u,onStatus:_}}const r={class:"system-menu-container layout-padding"},l={class:"h-full"},i=e.defineComponent({name:"system"}),u=e.defineComponent({...i,setup(t){const{onReady:a,onBtnClick:o,loading:c,onStatus:s}=n();return(t,n)=>{const i=e.resolveComponent("bc-icon"),u=e.resolveComponent("hs-button"),d=e.resolveComponent("hs-switch"),p=e.resolveComponent("bc-box"),_=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",r,[e.withDirectives((e.openBlock(),e.createElementBlock("div",l,[e.createVNode(p,{id:"786d7888-df35-4bfd-b379-5b0820421a8f",mid:"4be63958b09043f1a7ca2e5a3e672697",type:"1",projectCode:"scmp",isAuth:!1,onReady:e.unref(a)},{btn_add:e.withCtx((()=>[e.createVNode(u,{size:"small",type:"primary",onClick:n[0]||(n[0]=t=>e.unref(o)("add"))},{default:e.withCtx((()=>[e.createVNode(i,{name:"ele-Plus"}),n[1]||(n[1]=e.createTextVNode("新增"))])),_:1,__:[1]})])),lock_status:e.withCtx((({row:t})=>[e.createVNode(d,{modelValue:t.lock_status,"onUpdate:modelValue":e=>t.lock_status=e,size:"default","active-value":"1","inactive-value":"0",onChange:a=>e.unref(s)(t)},null,8,["modelValue","onUpdate:modelValue","onChange"])])),table_btn_edit:e.withCtx((({row:t})=>[e.createVNode(u,{size:"small",text:"",type:"primary",onClick:a=>e.unref(o)("edit",t)},{default:e.withCtx((()=>n[2]||(n[2]=[e.createTextVNode("编辑")]))),_:2,__:[2]},1032,["onClick"])])),table_btn_delete:e.withCtx((({row:t})=>[e.createVNode(u,{size:"small",text:"",type:"primary",onClick:a=>e.unref(o)("delete",t)},{default:e.withCtx((()=>n[3]||(n[3]=[e.createTextVNode("删除")]))),_:2,__:[3]},1032,["onClick"])])),table_btn_clear_cache:e.withCtx((({row:t})=>[e.createVNode(u,{size:"small",text:"",type:"primary",onClick:a=>e.unref(o)("clear_cache",t)},{default:e.withCtx((()=>n[4]||(n[4]=[e.createTextVNode("清除系统缓存")]))),_:2,__:[4]},1032,["onClick"])])),table_btn_copy_system:e.withCtx((({row:t})=>[e.createVNode(u,{size:"small",text:"",type:"primary",onClick:a=>e.unref(o)("copy_system",t)},{default:e.withCtx((()=>n[5]||(n[5]=[e.createTextVNode("复制配置")]))),_:2,__:[5]},1032,["onClick"])])),_:1},8,["onReady"])])),[[_,e.unref(c)]])])}}});exports.default=u;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { resolveComponent, createElementBlock, openBlock, createVNode } from "vue";
|
|
2
|
+
import { _ as _export_sfc } from "./index-DKyEDpvP.mjs";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = { class: "system-menu-container layout-padding" };
|
|
5
|
+
function _sfc_render(_ctx, _cache) {
|
|
6
|
+
const _component_hs_select = resolveComponent("hs-select");
|
|
7
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
8
|
+
createVNode(_component_hs_select)
|
|
9
|
+
]);
|
|
10
|
+
}
|
|
11
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
12
|
+
export {
|
|
13
|
+
index as default
|
|
14
|
+
};
|
|
@@ -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-B42GekWm.js");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./bcSwitchSystems.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./bcSwitchSystems.vue_vue_type_script_setup_true_lang-Lafa8w9e.js"),o=require("pinia"),a=require("./index-BOljFI6c.js"),l=require("./dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-a-D8kBLS.js"),r=require("./copyMenuConfig.vue_vue_type_script_setup_true_lang-cg8UGKLr.js"),n={class:"system-menu-container layout-padding"},s={class:"system-menu-search mb15"},i={class:"flex"},c={class:"min-w-[220px]"},d={class:"ml10"},u=e.defineComponent({name:"systemMenu"}),p=e.defineComponent({...u,setup(u){const{getAllMenuList:p,postDelMenuInfo:m}=a.useMenuController();let _=e.ref({}),w=e.ref([]);const f=a.useRoutesList(),{routesList:h}=o.storeToRefs(f);e.ref();const v=e.reactive({tableData:{data:[],loading:!0}});function C(e){w.value=e}const y=()=>{setTimeout((async()=>{var e;let t={project_code:null==(e=_.value)?void 0:e.project_code};v.tableData.loading=!0;const o=await p(t);v.tableData.data=o.data,v.tableData.loading=!1}),500)},x=(e,t)=>{N(e,t)};function N(e,t){a.showPopup(l._sfc_main,{type:e,row:t,sysData:_},{title:"add"==e?"新增菜单":"修改菜单",showFooter:!1,lockView:!1,mask:!1,onConfirm(){console.debug("onConfirm")},success(e){"refresh"===e.type&&y()}})}e.onMounted((()=>{y()}));const V=e=>{_.value=e,y()};function g(){a.showPopup(r._sfc_main,{menuTree:v.tableData.data,sysList:w.value},{title:"复制菜单配置",width:"400px",height:"300px",success:({type:e,close:t,data:o})=>{"cancel"==e&&t(),"confirm"==e&&1==o.code&&t()}})}return(o,l)=>{const r=e.resolveComponent("ele-FolderAdd"),u=e.resolveComponent("el-icon"),p=e.resolveComponent("el-button"),w=e.resolveComponent("SvgIcon"),f=e.resolveComponent("el-table-column"),h=e.resolveComponent("el-tag"),k=e.resolveComponent("el-table"),b=e.resolveComponent("el-card"),D=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",n,[e.createVNode(b,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createElementVNode("div",s,[e.createElementVNode("div",i,[e.createElementVNode("div",c,[e.createVNode(t._sfc_main,{onChange:V,onReady:C})]),e.createVNode(p,{size:"default",type:"success",class:"ml10",onClick:l[0]||(l[0]=e=>x("add"))},{default:e.withCtx((()=>[e.createVNode(u,null,{default:e.withCtx((()=>[e.createVNode(r)])),_:1}),l[1]||(l[1]=e.createTextVNode(" 新增菜单 "))])),_:1,__:[1]}),e.unref(a.isDev)?(e.openBlock(),e.createBlock(p,{key:0,size:"default",type:"success",onClick:g},{default:e.withCtx((()=>l[2]||(l[2]=[e.createTextVNode("复制菜单配置")]))),_:1,__:[2]})):e.createCommentVNode("",!0)])]),e.withDirectives((e.openBlock(),e.createBlock(k,{data:v.tableData.data,style:{width:"100%"},"row-key":"path","tree-props":{children:"children",hasChildren:"hasChildren"}},{default:e.withCtx((()=>[e.createVNode(f,{label:"菜单名称","show-overflow-tooltip":""},{default:e.withCtx((t=>[e.createVNode(w,{name:t.row.meta.icon},null,8,["name"]),e.createElementVNode("span",d,e.toDisplayString(t.row.meta.title),1)])),_:1}),e.createVNode(f,{prop:"path",label:"路由路径","show-overflow-tooltip":""}),e.createVNode(f,{label:"组件路径","show-overflow-tooltip":""},{default:e.withCtx((t=>[e.createElementVNode("span",null,e.toDisplayString(t.row.component),1)])),_:1}),e.createVNode(f,{label:"排序","show-overflow-tooltip":"",width:"80"},{default:e.withCtx((t=>[e.createTextVNode(e.toDisplayString(t.row.sort),1)])),_:1}),e.createVNode(f,{label:"类型","show-overflow-tooltip":"",width:"80"},{default:e.withCtx((t=>[e.createVNode(h,{type:"success",size:"small"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t.row.xx)+"菜单",1)])),_:2},1024)])),_:1}),e.createVNode(f,{label:"操作","show-overflow-tooltip":"",width:"200"},{default:e.withCtx((t=>[e.createVNode(p,{size:"small",text:"",type:"primary",onClick:e=>x("add",{id:t.row.id})},{default:e.withCtx((()=>l[3]||(l[3]=[e.createTextVNode("新增")]))),_:2,__:[3]},1032,["onClick"]),e.createVNode(p,{size:"small",text:"",type:"primary",onClick:e=>{return o="edit",a=t.row,void N(o,a);var o,a}},{default:e.withCtx((()=>l[4]||(l[4]=[e.createTextVNode("修改")]))),_:2,__:[4]},1032,["onClick"]),e.createVNode(p,{size:"small",text:"",type:"primary",onClick:e=>{return o=t.row,void a.ElMessageBox.confirm(`此操作将永久删除路由:【${null==(l=o.meta)?void 0:l.title}】, 是否继续?`,"提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then((()=>{let e={project_code:_.value.project_code,id:o.id};m(e).then((async e=>{1===e.code&&(a.ElMessage.success("删除成功"),y(),"scmp"==_.value.project_code&&await a.setBackEndControlRefreshRoutes())}))})).catch((()=>{}));var o,l}},{default:e.withCtx((()=>l[5]||(l[5]=[e.createTextVNode("删除")]))),_:2,__:[5]},1032,["onClick"]),e.unref(a.isDev)?(e.openBlock(),e.createBlock(p,{key:0,size:"small",text:"",type:"primary",onClick:e=>(e=>{let t={...e,id:"",project_code:""};t.pid&&delete t.pid,a.copyText(JSON.stringify({row:t,type:"menu"}))})(t.row)},{default:e.withCtx((()=>l[6]||(l[6]=[e.createTextVNode("复制菜单")]))),_:2,__:[6]},1032,["onClick"])):e.createCommentVNode("",!0)])),_:1})])),_:1},8,["data"])),[[D,v.tableData.loading]])])),_:1})])}}}),m=a._export_sfc(p,[["__scopeId","data-v-950f835b"]]);exports.default=m;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref, watch, defineComponent, useModel, resolveComponent, createElementBlock, openBlock, Fragment, createTextVNode, createVNode, createElementVNode, unref, isRef, withCtx, toDisplayString, computed, mergeModels, createBlock, renderList, createCommentVNode, normalizeClass, withModifiers, onMounted, withDirectives, resolveDynamicComponent, vShow, mergeProps, renderSlot, inject, reactive, onUnmounted, Transition, normalizeStyle, provide } from "vue";
|
|
2
|
-
import { S as Session, c as _, i as inputAttrConfigMap, d as v4, z as datePickerAttrConfigMap, h as selectAttrConfigMap, b as ElMessage, f as useKeyStroke, E as ElMessageBox, t as to, _ as _export_sfc, A as lodashExports, l as treeToList, n as useMenuController, H as HsMessageBox, k as HsMessage, s as showPopup, o as copyText, q as isDev } from "./index-
|
|
2
|
+
import { S as Session, c as _, i as inputAttrConfigMap, d as v4, z as datePickerAttrConfigMap, h as selectAttrConfigMap, b as ElMessage, f as useKeyStroke, E as ElMessageBox, t as to, _ as _export_sfc, A as lodashExports, l as treeToList, n as useMenuController, H as HsMessageBox, k as HsMessage, s as showPopup, o as copyText, q as isDev } from "./index-DKyEDpvP.mjs";
|
|
3
3
|
import { u as useConfigInfo } from "./useConfigInfo-PTkkdx-l.mjs";
|
|
4
|
-
import { u as useFieldConfigController } from "./index-
|
|
5
|
-
import { _ as _sfc_main$m } from "./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { b as bcFormConfig } from "./bcFormConfig-
|
|
7
|
-
import { f as formItemConfig, p as parentFormData, d as formItemAspectConfig, e as emptyFormItemData, a as config$1, c as compConfig, g as parentFormConfig, h as formTitleConfig } from "./baseFormConfig-
|
|
8
|
-
import { u as usePostMan } from "./index-
|
|
4
|
+
import { u as useFieldConfigController } from "./index-opqGNraF.mjs";
|
|
5
|
+
import { _ as _sfc_main$m } from "./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-0yivi3Ej.mjs";
|
|
6
|
+
import { b as bcFormConfig } from "./bcFormConfig-B_Y_3rDY.mjs";
|
|
7
|
+
import { f as formItemConfig, p as parentFormData, d as formItemAspectConfig, e as emptyFormItemData, a as config$1, c as compConfig, g as parentFormConfig, h as formTitleConfig } from "./baseFormConfig-CRjimGDL.mjs";
|
|
8
|
+
import { u as usePostMan } from "./index-D1KcLHd9.mjs";
|
|
9
9
|
import { s as shortcutList } from "./shortcutList-BXBGQdNn.mjs";
|
|
10
|
-
import { _ as _sfc_main$k, t as tableConfig, b as tableColumnRule, c as tableItemConfig, d as tableItemAspectData, e as baseData, g as emptyTableItemData, h as tableItemType, i as tableTitleConfig, j as baseConfig } from "./baseTableConfig-
|
|
11
|
-
import { _ as _sfc_main$l } from "./index.vue_vue_type_script_setup_true_name_iconSelector_lang-
|
|
12
|
-
import { u as useBtnConfigController } from "./index-
|
|
13
|
-
import { u as useSystemController } from "./index-
|
|
10
|
+
import { _ as _sfc_main$k, t as tableConfig, b as tableColumnRule, c as tableItemConfig, d as tableItemAspectData, e as baseData, g as emptyTableItemData, h as tableItemType, i as tableTitleConfig, j as baseConfig } from "./baseTableConfig-B76iWD0q.mjs";
|
|
11
|
+
import { _ as _sfc_main$l } from "./index.vue_vue_type_script_setup_true_name_iconSelector_lang-CwOt0p8m.mjs";
|
|
12
|
+
import { u as useBtnConfigController } from "./index-Cw9-sg4N.mjs";
|
|
13
|
+
import { u as useSystemController } from "./index-AQfn_FBp.mjs";
|
|
14
14
|
const fieldConfig$5 = useFieldConfigController();
|
|
15
15
|
function useHsPage(formTableRef) {
|
|
16
16
|
const configInfo = useConfigInfo();
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, defineComponent, resolveComponent, resolveDirective, createElementBlock, openBlock, withDirectives, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { r as request, s as showPopup, k as HsMessage, H as HsMessageBox } from "./index-
|
|
3
|
-
import { u as useSystemController } from "./index-
|
|
4
|
-
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as _sfc_main$1 } from "./copySystem.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { r as request, s as showPopup, k as HsMessage, H as HsMessageBox } from "./index-DKyEDpvP.mjs";
|
|
3
|
+
import { u as useSystemController } from "./index-AQfn_FBp.mjs";
|
|
4
|
+
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_setup_true_lang-R0BzXrtJ.mjs";
|
|
5
|
+
import { _ as _sfc_main$1 } from "./copySystem.vue_vue_type_script_setup_true_lang-Cm8qw1Iy.mjs";
|
|
6
6
|
const assign = (params, title) => {
|
|
7
7
|
return Object.assign(params, { other_log_info: { title } });
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, createElementBlock, openBlock, createVNode } from "vue";
|
|
2
2
|
const _hoisted_1 = { class: "system-menu-container layout-padding" };
|
|
3
3
|
const __default__ = defineComponent({
|
|
4
|
-
name: "
|
|
4
|
+
name: "auth"
|
|
5
5
|
});
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
...__default__,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BOljFI6c.js"),a={class:"system-dept-container layout-padding"},o={class:"system-dept-search mb15"},l=e.defineComponent({name:"systemDept"}),r=e.defineComponent({...l,setup(l){const r=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./dialog-TFJ52Qpk.js"))))),d=e.ref(),i=e.reactive({tableData:{data:[],total:0,loading:!1,param:{pageNum:1,pageSize:10}}}),n=()=>{i.tableData.loading=!0,i.tableData.data=[],i.tableData.data.push({deptName:"vueNextAdmin",createTime:(new Date).toLocaleString(),status:!0,sort:Math.random(),describe:"顶级部门",id:Math.random(),children:[{deptName:"IT外包服务",createTime:(new Date).toLocaleString(),status:!0,sort:Math.random(),describe:"总部",id:Math.random()},{deptName:"资本控股",createTime:(new Date).toLocaleString(),status:!0,sort:Math.random(),describe:"分部",id:Math.random()}]}),i.tableData.total=i.tableData.data.length,setTimeout((()=>{i.tableData.loading=!1}),500)},s=e=>{d.value.openDialog(e)};return e.onMounted((()=>{n()})),(l,c)=>{const p=e.resolveComponent("el-input"),u=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),h=e.resolveComponent("el-button"),w=e.resolveComponent("ele-FolderAdd"),f=e.resolveComponent("el-table-column"),x=e.resolveComponent("el-tag"),C=e.resolveComponent("el-table"),N=e.resolveComponent("el-card"),v=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",a,[e.createVNode(N,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createElementVNode("div",o,[e.createVNode(p,{size:"default",placeholder:"请输入部门名称",style:{"max-width":"180px"}}),e.createVNode(h,{size:"default",type:"primary",class:"ml10"},{default:e.withCtx((()=>[e.createVNode(m,null,{default:e.withCtx((()=>[e.createVNode(u)])),_:1}),c[3]||(c[3]=e.createTextVNode(" 查询 "))])),_:1,__:[3]}),e.createVNode(h,{size:"default",type:"success",class:"ml10",onClick:c[0]||(c[0]=e=>s("add"))},{default:e.withCtx((()=>[e.createVNode(m,null,{default:e.withCtx((()=>[e.createVNode(w)])),_:1}),c[4]||(c[4]=e.createTextVNode(" 新增部门 "))])),_:1,__:[4]})]),e.withDirectives((e.openBlock(),e.createBlock(C,{data:i.tableData.data,style:{width:"100%"},"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}},{default:e.withCtx((()=>[e.createVNode(f,{prop:"deptName",label:"部门名称","show-overflow-tooltip":""}),e.createVNode(f,{label:"排序","show-overflow-tooltip":"",width:"80"},{default:e.withCtx((t=>[e.createTextVNode(e.toDisplayString(t.$index),1)])),_:1}),e.createVNode(f,{prop:"status",label:"部门状态","show-overflow-tooltip":""},{default:e.withCtx((t=>[t.row.status?(e.openBlock(),e.createBlock(x,{key:0,type:"success"},{default:e.withCtx((()=>c[5]||(c[5]=[e.createTextVNode("启用")]))),_:1,__:[5]})):(e.openBlock(),e.createBlock(x,{key:1,type:"info"},{default:e.withCtx((()=>c[6]||(c[6]=[e.createTextVNode("禁用")]))),_:1,__:[6]}))])),_:1}),e.createVNode(f,{prop:"describe",label:"部门描述","show-overflow-tooltip":""}),e.createVNode(f,{prop:"createTime",label:"创建时间","show-overflow-tooltip":""}),e.createVNode(f,{label:"操作","show-overflow-tooltip":"",width:"140"},{default:e.withCtx((a=>[e.createVNode(h,{size:"small",text:"",type:"primary",onClick:c[1]||(c[1]=e=>s("add"))},{default:e.withCtx((()=>c[7]||(c[7]=[e.createTextVNode("新增")]))),_:1,__:[7]}),e.createVNode(h,{size:"small",text:"",type:"primary",onClick:e=>{return t="edit",o=a.row,void d.value.openDialog(t,o);var t,o}},{default:e.withCtx((()=>c[8]||(c[8]=[e.createTextVNode("修改")]))),_:2,__:[8]},1032,["onClick"]),e.createVNode(h,{size:"small",text:"",type:"primary",onClick:e=>{return o=a.row,void t.ElMessageBox.confirm(`此操作将永久删除部门:${o.deptName}, 是否继续?`,"提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then((()=>{n(),t.ElMessage.success("删除成功")})).catch((()=>{}));var o}},{default:e.withCtx((()=>c[9]||(c[9]=[e.createTextVNode("删除")]))),_:2,__:[9]},1032,["onClick"])])),_:1})])),_:1},8,["data"])),[[v,i.tableData.loading]])])),_:1}),e.createVNode(e.unref(r),{ref_key:"deptDialogRef",ref:d,onRefresh:c[2]||(c[2]=e=>n())},null,512)])}}});exports.default=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, ref, reactive, onMounted, resolveComponent, resolveDirective, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, withDirectives, createTextVNode, createBlock, unref } from "vue";
|
|
2
|
-
import { E as ElMessageBox, b as ElMessage } from "./index-
|
|
2
|
+
import { E as ElMessageBox, b as ElMessage } from "./index-DKyEDpvP.mjs";
|
|
3
3
|
const _hoisted_1 = { class: "system-dic-container layout-padding" };
|
|
4
4
|
const _hoisted_2 = { class: "system-user-search mb15" };
|
|
5
5
|
const __default__ = defineComponent({
|