hs-admin-ui 14.8.0 → 14.8.1
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-BwWGF8He.mjs → 401-B0aVGtMc.mjs} +1 -1
- package/dist/{401-B04lli16.js → 401-DYBI2n5A.js} +1 -1
- package/dist/{404-KAAmi3Hz.js → 404-BTqO-bgG.js} +1 -1
- package/dist/404-BTqO-bgG.js.gz +0 -0
- package/dist/{404-WBFlPYJ4.mjs → 404-DDcZ2Mww.mjs} +1 -1
- package/dist/404-DDcZ2Mww.mjs.gz +0 -0
- package/dist/{account-BHpTRHlj.mjs → account-CF27SaFk.mjs} +1 -1
- package/dist/{account-Cl94Faxz.js → account-TUx3RwYB.js} +1 -1
- package/dist/{aside-anI5vpfF.js → aside-BHJ3M3bI.js} +1 -1
- package/dist/{aside-DgrlOt_y.mjs → aside-DgHGz1dJ.mjs} +3 -3
- package/dist/{baseFormConfig-DjxjtpH7.mjs → baseFormConfig-Bbl8PgZH.mjs} +1 -1
- package/dist/baseFormConfig-Bbl8PgZH.mjs.gz +0 -0
- package/dist/{baseFormConfig-C4H1ljSX.js → baseFormConfig-DDDmI9HN.js} +1 -1
- package/dist/{baseTableConfig-U-jHD1tP.mjs → baseTableConfig-D9yLBcth.mjs} +1 -1
- package/dist/baseTableConfig-D9yLBcth.mjs.gz +0 -0
- package/dist/{baseTableConfig-5Q0AkhTS.js → baseTableConfig-LW5wZXbN.js} +1 -1
- package/dist/baseTableConfig-LW5wZXbN.js.gz +0 -0
- package/dist/{bcFormConfig-BRC8iOAm.js → bcFormConfig-CtV_ZMl-.js} +1 -1
- package/dist/{bcFormConfig-DTYZbDqR.mjs → bcFormConfig-D0e68nPB.mjs} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-CRn4HoE9.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-BpbAqWmU.js} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-zb1CfhJO.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-C_ZFa4sH.mjs} +2 -2
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-woPN5FOt.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-BB1crmJn.mjs} +2 -2
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-DhFtndxu.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-CHYBnyy-.js} +1 -1
- package/dist/{btnIndex-gCJaP9EH.js → btnIndex-Z2-CF3ua.js} +1 -1
- package/dist/{btnIndex-CxXnIBCH.mjs → btnIndex-gRmez9a0.mjs} +3 -3
- package/dist/btnIndex-gRmez9a0.mjs.gz +0 -0
- package/dist/{classic-pACGuIYA.mjs → classic-CqCi8gSP.mjs} +5 -5
- package/dist/{classic-SYQmY6hh.js → classic-CskaWDAZ.js} +1 -1
- package/dist/{cloneConfigDialog-DfCHfhOE.js → cloneConfigDialog-D25URtmy.js} +1 -1
- package/dist/cloneConfigDialog-D25URtmy.js.gz +0 -0
- package/dist/{cloneConfigDialog-BmGbuWPy.mjs → cloneConfigDialog-q-7gAm4P.mjs} +3 -3
- package/dist/cloneConfigDialog-q-7gAm4P.mjs.gz +0 -0
- package/dist/{columns-D9Fn0Itx.mjs → columns-CcMoQOVD.mjs} +5 -5
- package/dist/{columns-CNCtft7z.js → columns-DNgygdLv.js} +1 -1
- package/dist/{columnsAside-eodKD0tk.js → columnsAside-BzE0CjC-.js} +1 -1
- package/dist/{columnsAside-Btmush8u.mjs → columnsAside-DcAV6J9-.mjs} +1 -1
- package/dist/{contextmenu-z960mTCx.mjs → contextmenu-8osTcTx5.mjs} +1 -1
- package/dist/{contextmenu-5AShlRq1.js → contextmenu-BeCkeP_r.js} +1 -1
- package/dist/{contextmenu-CLYfq36e.js → contextmenu-CcSPR1fi.js} +1 -1
- package/dist/{contextmenu-C4UHXO4e.mjs → contextmenu-CleYBaTr.mjs} +1 -1
- package/dist/{copyMenuConfig-Bc9Rc868.mjs → copyMenuConfig-Bc0AJTDc.mjs} +1 -1
- package/dist/{copyMenuConfig-Dwmva8_y.js → copyMenuConfig-UhEZ5iUh.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-DQjvYuca.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-CeWj7ISG.mjs} +2 -2
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-BTi5AB3g.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-iwVXX3Ts.js} +1 -1
- package/dist/{copySystem-BX9kcuts.js → copySystem-BR4kXM5G.js} +1 -1
- package/dist/{copySystem-gjJ53_z8.mjs → copySystem-zWkHkqcV.mjs} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-YrSHKa_1.js → copySystem.vue_vue_type_script_setup_true_lang-C1koLg35.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DAqGGTu4.mjs → copySystem.vue_vue_type_script_setup_true_lang-Dg4o3Rdy.mjs} +2 -2
- package/dist/{defaults-CwczQg_h.js → defaults-C9Ym9yww.js} +1 -1
- package/dist/{defaults-DR7_P-F5.mjs → defaults-DH11vcRJ.mjs} +4 -4
- package/dist/{dialog-EJqSbEPZ.js → dialog-BNu2bxNn.js} +1 -1
- package/dist/{dialog-Cy89r2gp.js → dialog-C-IB_1E3.js} +1 -1
- package/dist/{dialog-DPHF0xbb.mjs → dialog-CYXaezyR.mjs} +1 -1
- package/dist/{dialog-DWwaKN6e.mjs → dialog-D6ox6Fzl.mjs} +1 -1
- package/dist/{dialog-CokUu4nm.js → dialog-DDmGf5eG.js} +1 -1
- package/dist/{dialog-CD2m1tn4.mjs → dialog-DU-eAXDm.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Dzy4q6h9.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BduXgD2J.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-9Uio5IO1.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-qdb1-KhL.mjs} +3 -3
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D1L1celN.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CTIFUc10.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CTIFUc10.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ChbCEKow.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CpqmVpZW.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CpqmVpZW.mjs.gz +0 -0
- package/dist/{dictDialog-B1rgaoi9.mjs → dictDialog-CoR6M6iN.mjs} +1 -1
- package/dist/{dictDialog-BOBKqQ2O.js → dictDialog-HNHGV0MO.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DQksYpJy.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-ALCgoaHP.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B6Tw8ahV.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Cn-AfPmn.mjs} +2 -2
- package/dist/{dictItemDialog-NUzmfjqN.js → dictItemDialog-CfSC6r_A.js} +1 -1
- package/dist/{dictItemDialog-_bc1ygNG.mjs → dictItemDialog-CvaVFKSQ.mjs} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-D6qV6tFv.js → dictItemDialog.vue_vue_type_script_setup_true_lang-BMR_tkj9.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-BHphtrb3.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-Cnigr-Cp.mjs} +2 -2
- package/dist/{formConfig-DlCy45VH.mjs → formConfig-2yg5Vkyl.mjs} +6 -6
- package/dist/formConfig-2yg5Vkyl.mjs.gz +0 -0
- package/dist/{formConfig-z0G8cIio.js → formConfig-ACEiSuLG.js} +1 -1
- package/dist/formConfig-ACEiSuLG.js.gz +0 -0
- package/dist/{header-DHXt8KW4.mjs → header-BC1WadpB.mjs} +2 -2
- package/dist/{header-CKAnQQgU.js → header-C0j_aGWG.js} +1 -1
- package/dist/{horizontal-BECf2bFU.mjs → horizontal-BbIx6UNE.mjs} +2 -2
- package/dist/{horizontal-PVHLn6j_.js → horizontal-CDBMTTXP.js} +1 -1
- package/dist/{hsAttrBtn-ByMaC7G6.js → hsAttrBtn-B1DRbd_v.js} +1 -1
- package/dist/{hsAttrBtn-JlfuPG_U.mjs → hsAttrBtn-Dvx7Bbqh.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-CR4m7tBH.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-Ca2c9_3V.js} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-BL2K6vJM.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-DneFTUrV.mjs} +4 -4
- package/dist/{hsAttrForm-D5lhRza2.mjs → hsAttrForm-Y7-gN1Ls.mjs} +1 -1
- package/dist/{hsAttrForm-D9to8xGH.js → hsAttrForm-tyzpWlnt.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-B2jdp7Yy.js → hsAttrForm.vue_vue_type_script_setup_true_lang-B6Eq17PJ.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-B1E5Fsn7.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-DPrLneg5.mjs} +4 -4
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DPrLneg5.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-DL5KyPEB.mjs → hsBtnConfigList-B4auWFsH.mjs} +1 -1
- package/dist/{hsBtnConfigList-Bf1b-ExX.js → hsBtnConfigList-fyK30k3d.js} +1 -1
- package/dist/{hsBtnItemConfig-CrfSw_w8.mjs → hsBtnItemConfig-VcASfaSO.mjs} +1 -1
- package/dist/{hsBtnItemConfig-arwaoczS.js → hsBtnItemConfig-geeajomj.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B5GjuO4W.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-C8IPZQaW.mjs} +3 -3
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CZmEnl8N.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Cx_ZFaPi.js} +1 -1
- package/dist/{hsBtnPanel-DPFmi7US.js → hsBtnPanel-C8JGep_j.js} +1 -1
- package/dist/{hsBtnPanel-BRive6Ga.mjs → hsBtnPanel-CyEr-wGQ.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C1Lhv8PR.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C2iXnH6y.mjs} +4 -4
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-8dvchZVP.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DeH83mAA.js} +1 -1
- package/dist/{hsExpand-DGyT8WJZ.js → hsExpand-BugYThml.js} +1 -1
- package/dist/{hsExpand-gdQ8tqrE.mjs → hsExpand-DdA1Zjgb.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-QFn6IQ-2.mjs → hsExpand.vue_vue_type_script_setup_true_lang-Pud34Gwb.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-BxTXmLnf.js → hsExpand.vue_vue_type_script_setup_true_lang-Vm_N1Pl4.js} +1 -1
- package/dist/{hsFormConfig-DbCv_3si.mjs → hsFormConfig-BCVZs9IQ.mjs} +1 -1
- package/dist/{hsFormConfig-BkJtuGi7.js → hsFormConfig-DpIcmex0.js} +1 -1
- package/dist/{hsFormConfigList-Bjk1NNyA.mjs → hsFormConfigList-Cie_DlQD.mjs} +2 -2
- package/dist/hsFormConfigList-Cie_DlQD.mjs.gz +0 -0
- package/dist/{hsFormConfigList-DI9G0slR.js → hsFormConfigList-zz8GxQrx.js} +1 -1
- package/dist/{hsFormPanel-DOi57aEa.mjs → hsFormPanel-BuP65hTS.mjs} +6 -6
- package/dist/hsFormPanel-BuP65hTS.mjs.gz +0 -0
- package/dist/{hsFormPanel-BQtKgLdo.js → hsFormPanel-CryDrRjY.js} +1 -1
- package/dist/{hsFormParse-DTNM0N_E.js → hsFormParse-DFF6JGBF.js} +1 -1
- package/dist/{hsFormParse-DzP80k3K.mjs → hsFormParse-DRZrWaGY.mjs} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CLEjIRB6.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-DAsSnbT7.mjs} +3 -3
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CZ_g6mkv.js → hsFormParse.vue_vue_type_script_setup_true_lang-DZ6p-s9r.js} +1 -1
- package/dist/{hsPanelItem-_xFw2_mF.mjs → hsPanelItem-BaraF9aM.mjs} +1 -1
- package/dist/{hsPanelItem-D0reZcCL.js → hsPanelItem-Bz_S6sYK.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CIKlg73f.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BI7rQO1N.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-NjdC83sV.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-C4oDBKar.js} +1 -1
- package/dist/{index copy-Vz5UgFuH.mjs → index copy-D3tIaspH.mjs } +1 -1
- package/dist/{index copy-C7zPH0mD.js → index copy-DRiuO0kM.js } +1 -1
- package/dist/{index-Bp4Zh9F_.mjs → index--SOXY8ZU.mjs} +4 -4
- package/dist/index--SOXY8ZU.mjs.gz +0 -0
- package/dist/{index-B20ZRkHk.mjs → index-0VfDaa8Q.mjs} +1 -1
- package/dist/index-0VfDaa8Q.mjs.gz +0 -0
- package/dist/{index-kniQzq4J.mjs → index-B12S3NLl.mjs} +1 -1
- package/dist/{index-DUhPfdnN.js → index-B1aDxFeS.js} +1 -1
- package/dist/{index-CL3Vrs7K.mjs → index-B2-1wI35.mjs} +1 -1
- package/dist/{index-DBbasVhC.js → index-B3qprjvR.js} +1 -1
- package/dist/{index-CL2neqzC.mjs → index-BSKBTT3D.mjs} +1 -1
- package/dist/{index-DmqVYGj0.mjs → index-BWwMAwnq.mjs} +4 -4
- package/dist/{index-pP4s3_Wo.js → index-BYakXY0_.js} +1 -1
- package/dist/{index-CnkGjvpC.js → index-BbngTqid.js} +1 -1
- package/dist/{index-BompHD5u.js → index-BjSl_xi_.js} +1 -1
- package/dist/{index-D5yngjOy.mjs → index-BmMMyIoX.mjs} +4 -4
- package/dist/{index-0mao_bMa.mjs → index-BrqKdQiM.mjs} +1 -1
- package/dist/{index-DXw4N3NS.mjs → index-BvveOJpR.mjs} +4 -4
- package/dist/index-BvveOJpR.mjs.gz +0 -0
- package/dist/{index-BFgwSxiT.js → index-BwCkiMO1.js} +1 -1
- package/dist/{index-YEUNy3bI.mjs → index-Bxq-EG0m.mjs} +1 -1
- package/dist/{index-Dq9V6IqA.mjs → index-BxrCcO-r.mjs} +1 -1
- package/dist/{index-BXGlwdlA.js → index-C2udyK4O.js} +1 -1
- package/dist/{index-jG_nH-YG.js → index-C4Aw74Fr.js} +1 -1
- package/dist/{index-SZnILXi7.js → index-C5VMITaO.js} +1 -1
- package/dist/{index-Br68WZwk.mjs → index-CAsC2kaK.mjs} +3 -3
- package/dist/{index-CbMxwr0Y.mjs → index-CIwMAWBl.mjs} +1 -1
- package/dist/{index-nGzhufU1.js → index-CMHqKfvP.js} +1 -1
- package/dist/{index-CcbjAfyY.js → index-CN5BKywK.js} +1 -1
- package/dist/index-CN5BKywK.js.gz +0 -0
- package/dist/{index-NVrzh7Mu.mjs → index-CUF7vP_x.mjs} +1 -1
- package/dist/{index-BSrUFI6L.mjs → index-CUyGBYDt.mjs} +1 -1
- package/dist/{index-TRAUcbXR.mjs → index-CVe6-gGv.mjs} +26 -22
- package/dist/index-CVe6-gGv.mjs.gz +0 -0
- package/dist/{index-XiAofzxr.mjs → index-Cg8PMaSZ.mjs} +1 -1
- package/dist/{index-Bu_X6ySS.js → index-ComfHnPJ.js} +1 -1
- package/dist/{index-DSv6NU75.mjs → index-CrmNRToi.mjs} +5 -5
- package/dist/{index-CbCpMxLR.mjs → index-Cu1fVoz7.mjs} +1 -1
- package/dist/{index-BSTRw1Aa.js → index-CuGOQAwc.js} +1 -1
- package/dist/{index-CctLkW6o.js → index-CuHQzXTq.js} +1 -1
- package/dist/{index-BeyTqDkk.mjs → index-CuWu07Yb.mjs} +1 -1
- package/dist/{index-DjChM5fh.mjs → index-CxKR0hyc.mjs} +1 -1
- package/dist/{index-DQd5kZ2Y.mjs → index-CzhcwF0r.mjs} +3 -3
- package/dist/{index-CR2sUiQk.js → index-D04Ylqlz.js} +1 -1
- package/dist/{index-Jtq8gsD0.mjs → index-D1W9Xb7J.mjs} +5 -5
- package/dist/{index-BNij86At.js → index-D4L8lWDh.js} +1 -1
- package/dist/{index-C5gWwOOK.js → index-D7zajQRZ.js} +1 -1
- package/dist/{index-1k63kpjE.mjs → index-DHDKtQs1.mjs} +3 -3
- package/dist/{index-BpsFjKeb.mjs → index-DLCaTe7a.mjs} +1 -1
- package/dist/{index-Bvfo-GnM.js → index-DO56JDU9.js} +1 -1
- package/dist/{index-DGyYf-zP.js → index-DOXtPYgE.js} +1 -1
- package/dist/{index-BYA2slpw.js → index-DTE3u5MK.js} +1 -1
- package/dist/{index-Dptdqip4.mjs → index-DUmSf07m.mjs} +1 -1
- package/dist/{index-CkXS6XO3.js → index-DYbdUmL4.js} +1 -1
- package/dist/{index-C5UbKUt-.js → index-D_Ra9OOC.js} +1 -1
- package/dist/{index-o_kX24Vo.js → index-DbI0NHwt.js} +1 -1
- package/dist/{index-Ct4UHUjZ.mjs → index-Dbe-BQX2.mjs} +1 -1
- package/dist/{index-BKLnju_2.mjs → index-DdHMZuMZ.mjs} +1 -1
- package/dist/{index-BTAbU_J6.mjs → index-DhOxUc_1.mjs} +3 -3
- package/dist/{index-KhpCEkFD.js → index-Dhou7S4X.js} +1 -1
- package/dist/index-Dhou7S4X.js.gz +0 -0
- package/dist/{index-D-kZFlr3.mjs → index-DlgzwJYs.mjs} +2 -2
- package/dist/{index-CKf8lK3W.js → index-DmUpV9-n.js} +1 -1
- package/dist/{index-DpnlX4Do.mjs → index-DprH5lEY.mjs} +1 -1
- package/dist/{index-icdIo2N4.mjs → index-DzGY4u7O.mjs} +2 -2
- package/dist/index-DzGY4u7O.mjs.gz +0 -0
- package/dist/{index-9zp2TLCx.js → index-EUsPDxvQ.js} +1 -1
- package/dist/{index-BJYQO_Wc.js → index-I-DqEjuz.js} +1 -1
- package/dist/{index-uEazr79x.js → index-NY13faTn.js} +1 -1
- package/dist/{index-Dp9xcKmM.js → index-XlVjfXaf.js} +1 -1
- package/dist/{index-qmdQ9bjd.js → index-YLtEM2BC.js} +1 -1
- package/dist/{index-Cs4-1veE.mjs → index-Z5Hb6X7N.mjs} +1 -1
- package/dist/{index-Bya5DWYy.js → index-a-hdlUh4.js} +1 -1
- package/dist/{index-ajLh63rs.js → index-aX2P2m_8.js} +1 -1
- package/dist/{index-r21sN-kn.mjs → index-cISKQBRF.mjs} +1 -1
- package/dist/{index-jq2pSqMh.js → index-fg7n6m8j.js} +9 -9
- package/dist/index-fg7n6m8j.js.gz +0 -0
- package/dist/{index-C5NRgQk0.js → index-j0NP6fOI.js} +1 -1
- package/dist/{index-C9cc3wPg.js → index-kf5oteMT.js} +1 -1
- package/dist/{index-B-GfD-em.mjs → index-l7KJCZAU.mjs} +4 -4
- package/dist/{index-DFqBtiVg.js → index-nCGS80VY.js} +1 -1
- package/dist/{index-y5OnAxfr.mjs → index-ohye7Br2.mjs} +10 -10
- package/dist/index-ohye7Br2.mjs.gz +0 -0
- package/dist/{index-vjhr9EGa.js → index-p06Uwc5n.js} +1 -1
- package/dist/index-p06Uwc5n.js.gz +0 -0
- package/dist/{index-Rqijm6pB.mjs → index-qsM7YZtZ.mjs} +4 -4
- package/dist/{index-BYPep7qW.js → index-s9rUqK_w.js} +1 -1
- package/dist/{index-BeNXoPOZ.mjs → index-x1M7SuDY.mjs} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Cl0U7wEA.js → index.vue_vue_type_script_setup_true_lang-BbS2NVpT.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BgCGVY_F.js → index.vue_vue_type_script_setup_true_lang-CRecnRLu.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DVYVd8VX.js → index.vue_vue_type_script_setup_true_lang-Chd24DNY.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BBBPm-pF.mjs → index.vue_vue_type_script_setup_true_lang-Cq_mRvLq.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bp9cAj9F.mjs → index.vue_vue_type_script_setup_true_lang-DQ4BGvta.mjs} +4 -4
- package/dist/index.vue_vue_type_script_setup_true_lang-DQ4BGvta.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-BK1g0C97.mjs → index.vue_vue_type_script_setup_true_lang-Dkb_wiRJ.mjs} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-D0CdPTRu.mjs → index.vue_vue_type_script_setup_true_lang-g2N6dHWZ.mjs} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-HQYnpmxd.js → index.vue_vue_type_script_setup_true_lang-g3pSc1Vg.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-CFwFHcO9.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-BhHbq3ek.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-BhHbq3ek.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-Cz8Lq43a.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-DuRipGFh.js} +1 -1
- package/dist/{link-Ce6NbmsG.js → link-C4LcYR73.js} +1 -1
- package/dist/{link-CnF4gQF-.mjs → link-CCfNH06x.mjs} +1 -1
- package/dist/{list-i-eX1kE-.js → list-BnQBM6Ir.js} +1 -1
- package/dist/{list-DNnFmbPS.mjs → list-DTFjtyn6.mjs} +1 -1
- package/dist/{main-nrjQjng4.js → main-C0DGS5rZ.js} +1 -1
- package/dist/{main-BZ-_7g9r.mjs → main-Cnr9frFd.mjs} +3 -3
- package/dist/{mobile-CjR3bgpJ.js → mobile-B8kDr-6x.js} +1 -1
- package/dist/{mobile-BYFvhRyu.mjs → mobile-D7M9LiES.mjs} +1 -1
- package/dist/{parent-CI1SfOKR.mjs → parent-De0yR9px.mjs} +1 -1
- package/dist/{parent-CEw3x6Z3.js → parent-lCHo16gs.js} +1 -1
- package/dist/{popup-DH5oE-kO.js → popup-CsHoA-lJ.js} +1 -1
- package/dist/{popup-BakMciDB.mjs → popup-wz9RL8pW.mjs} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DSy7_X0G.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang--RuWEvl9.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BDkErg_Y.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DjfurfPL.mjs} +1 -1
- package/dist/{roleItem-BBp4cpcZ.mjs → roleItem-D0ooXW2B.mjs} +1 -1
- package/dist/{roleItem-B3scQg1j.js → roleItem-D9po-2fQ.js} +1 -1
- package/dist/{saveForm-_KFDAjiK.js → saveForm-BRDDNASz.js} +1 -1
- package/dist/{saveForm-CtQOkBin.mjs → saveForm-CUBoyb_Z.mjs} +3 -3
- package/dist/{scan-DPtMpamW.js → scan-DVdsOBhm.js} +1 -1
- package/dist/scan-DVdsOBhm.js.gz +0 -0
- package/dist/{scan-D8saaMbh.mjs → scan-_xxbbC6F.mjs} +1 -1
- package/dist/scan-_xxbbC6F.mjs.gz +0 -0
- package/dist/{search-rhj7RJZa.js → search-BGbiz710.js} +1 -1
- package/dist/{search-DiFIqFpm.mjs → search-D2gWS19K.mjs} +1 -1
- package/dist/{selectConfig-CkQ9vNyx.js → selectConfig-BL0jT45J.js} +1 -1
- package/dist/{selectConfig-DZ0mg51V.mjs → selectConfig-Ckfr1m0B.mjs} +1 -1
- package/dist/selectConfig-Ckfr1m0B.mjs.gz +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-CHd51GWc.js → subItem-BgbO3rWg.js} +1 -1
- package/dist/{subItem-BvhaM8hW.mjs → subItem-DzX9PHGS.mjs} +1 -1
- package/dist/{tagsView-hvpaKlX7.mjs → tagsView-BGH9Pk-d.mjs} +2 -2
- package/dist/tagsView-BGH9Pk-d.mjs.gz +0 -0
- package/dist/{tagsView-C52b3eA_.js → tagsView-DG0p6J7v.js} +2 -2
- package/dist/tagsView-DG0p6J7v.js.gz +0 -0
- package/dist/{transverse-BO6xUJm8.mjs → transverse-CPyBUBTb.mjs} +3 -3
- package/dist/{transverse-BVhf-a0F.js → transverse-zRLr04WR.js} +1 -1
- package/dist/{user-B5ItQ3FM.mjs → user-Dq9CHWX9.mjs} +3 -3
- package/dist/{user-D65qcmHG.js → user-p7no6a-x.js} +1 -1
- package/dist/{userNews-DkA1-M8k.js → userNews-BBbRInH7.js} +1 -1
- package/dist/{userNews-CQFxdGHk.mjs → userNews-Di_to2AF.mjs} +1 -1
- package/dist/{userSelect-Cl0N7jBD.mjs → userSelect-CwOH8BrS.mjs} +1 -1
- package/dist/{userSelect-OXGAN9HB.js → userSelect-KrPjxKBn.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-D6QP8Wil.js → userSelect.vue_vue_type_script_setup_true_lang-D_G13KOP.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-C3dR1oxq.mjs → userSelect.vue_vue_type_script_setup_true_lang-dM5MYBk0.mjs} +1 -1
- package/dist/{vertical-DuVnqkep.mjs → vertical-BhIBnq_n.mjs} +2 -2
- package/dist/{vertical-DuyzgITq.js → vertical-odc1QPi6.js} +1 -1
- package/package.json +1 -1
- package/dist/404-KAAmi3Hz.js.gz +0 -0
- package/dist/404-WBFlPYJ4.mjs.gz +0 -0
- package/dist/baseFormConfig-DjxjtpH7.mjs.gz +0 -0
- package/dist/baseTableConfig-5Q0AkhTS.js.gz +0 -0
- package/dist/baseTableConfig-U-jHD1tP.mjs.gz +0 -0
- package/dist/btnIndex-CxXnIBCH.mjs.gz +0 -0
- package/dist/cloneConfigDialog-BmGbuWPy.mjs.gz +0 -0
- package/dist/cloneConfigDialog-DfCHfhOE.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ChbCEKow.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D1L1celN.js.gz +0 -0
- package/dist/formConfig-DlCy45VH.mjs.gz +0 -0
- package/dist/formConfig-z0G8cIio.js.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-B1E5Fsn7.mjs.gz +0 -0
- package/dist/hsFormConfigList-Bjk1NNyA.mjs.gz +0 -0
- package/dist/hsFormPanel-DOi57aEa.mjs.gz +0 -0
- package/dist/index-B20ZRkHk.mjs.gz +0 -0
- package/dist/index-Bp4Zh9F_.mjs.gz +0 -0
- package/dist/index-CcbjAfyY.js.gz +0 -0
- package/dist/index-DXw4N3NS.mjs.gz +0 -0
- package/dist/index-KhpCEkFD.js.gz +0 -0
- package/dist/index-TRAUcbXR.mjs.gz +0 -0
- package/dist/index-icdIo2N4.mjs.gz +0 -0
- package/dist/index-jq2pSqMh.js.gz +0 -0
- package/dist/index-vjhr9EGa.js.gz +0 -0
- package/dist/index-y5OnAxfr.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Bp9cAj9F.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-CFwFHcO9.mjs.gz +0 -0
- package/dist/scan-D8saaMbh.mjs.gz +0 -0
- package/dist/scan-DPtMpamW.js.gz +0 -0
- package/dist/selectConfig-DZ0mg51V.mjs.gz +0 -0
- package/dist/tagsView-C52b3eA_.js.gz +0 -0
- package/dist/tagsView-hvpaKlX7.mjs.gz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, withCtx } from "vue";
|
|
2
|
-
import { r as request, c as _, _ as _export_sfc } from "./index-
|
|
2
|
+
import { r as request, c as _, _ as _export_sfc } from "./index-CVe6-gGv.mjs";
|
|
3
3
|
const assign = (params, title) => {
|
|
4
4
|
return Object.assign(params, { other_log_info: { title } });
|
|
5
5
|
};
|
|
@@ -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-fg7n6m8j.js"),o=(e,t)=>Object.assign(e,{other_log_info:{title:t}}),r=(e={})=>(e=o(e,"根据分组id,查询分组下所有报表信息"),t.request({url:"/lsms-web/pri/report_set/get_list_report_info",method:"get",params:e})),s=(e={})=>(e=o(e,"根据系统id,查询系统下的所有报表分组信息"),t.request({url:"/lsms-web/pri/report_set/get_list_report_group",method:"get",params:e})),p=(e={})=>(e=o(e,"数据报表配置查询接口,用于报表设计时,查询配置的字段数据信息"),t.request({url:"/lsms-web/pri/report_set/get_list_report_config",method:"get",params:e}));const l={class:"system-menu-container layout-padding"},n={class:"h-full flex flex-col"},i={class:"flex-1 flex overflow-hidden"},a={class:"flex-1 flex items-center justify-center"},d=e.defineComponent({name:"reportStatistics"}),c=e.defineComponent({...d,setup(o){const{getListReportGroup:d,getListReportInfo:c}={getListReportInfo:r,getListReportGroup:s,getListReportConfig:p},u=e.reactive({group:[],groupActive:"",report:[],reportActive:"",reportInfo:{}});function m({value:e}){u.reportInfo={},c({report_group_id:e}).then((e=>{1===e.code&&(u.report=t._.get(e,"data")||[],u.reportActive=t._.get(e,"data.0.id",""),u.reportInfo=t._.get(e,"data.0"))}))}function g({index:e}){u.reportInfo={},setTimeout((()=>{u.reportInfo=u.report[e]}))}return d().then((e=>{1===e.code&&(u.group=t._.get(e,"data")||[],u.groupActive=t._.get(e,"data.0.id",""),m({value:u.groupActive}))})),(t,o)=>{var r,s;const p=e.resolveComponent("bc-tabs"),d=e.resolveComponent("hs-empty"),c=e.resolveComponent("bc-visual");return e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("div",n,[e.createVNode(p,{class:"report-group",showALLTabs:"",type:"line",modelValue:u.groupActive,"onUpdate:modelValue":o[0]||(o[0]=e=>u.groupActive=e),showContent:!1,tabs:u.group,label:"group_name",onTabClick:m},null,8,["modelValue","tabs"]),e.createVNode(p,{class:"report-wrap !mt-3",showALLTabs:"",modelValue:u.reportActive,"onUpdate:modelValue":o[1]||(o[1]=e=>u.reportActive=e),showContent:!1,tabs:u.report,label:"report_name",onTabClick:g},null,8,["modelValue","tabs"]),e.createElementVNode("div",i,[e.createVNode(c,{preview:"",project_code:"lsms","report-id":null==(r=u.reportInfo)?void 0:r.id,"sys-id":null==(s=u.reportInfo)?void 0:s.sys_id},{empty:e.withCtx((()=>[e.createElementVNode("div",a,[e.createVNode(d)])])),_:1},8,["report-id","sys-id"])])])])}}}),u=t._export_sfc(c,[["__scopeId","data-v-19491d61"]]);exports.default=u;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { reactive, defineComponent, onMounted, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, createBlock, createCommentVNode, unref, createTextVNode, Fragment, renderList, normalizeClass, toDisplayString } from "vue";
|
|
2
|
-
import { b as ElMessage, c as _, E as ElMessageBox, s as showPopup, _ as _export_sfc } from "./index-
|
|
3
|
-
import { u as useDictController } from "./index-
|
|
4
|
-
import { _ as _sfc_main$1 } from "./dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-
|
|
5
|
-
import { _ as _sfc_main$2 } from "./dictItemDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { b as ElMessage, c as _, E as ElMessageBox, s as showPopup, _ as _export_sfc } from "./index-CVe6-gGv.mjs";
|
|
3
|
+
import { u as useDictController } from "./index-cISKQBRF.mjs";
|
|
4
|
+
import { _ as _sfc_main$1 } from "./dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Cn-AfPmn.mjs";
|
|
5
|
+
import { _ as _sfc_main$2 } from "./dictItemDialog.vue_vue_type_script_setup_true_lang-Cnigr-Cp.mjs";
|
|
6
6
|
const dictController = useDictController();
|
|
7
7
|
function useDataDict() {
|
|
8
8
|
const dict = reactive({
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { _ as _export_sfc, T as systemStore, b as ElMessage, U as useFileController } from "./index-
|
|
2
|
+
import { _ as _export_sfc, T as systemStore, b as ElMessage, U as useFileController } from "./index-CVe6-gGv.mjs";
|
|
3
3
|
const Exif = {};
|
|
4
4
|
Exif.getData = (img) => new Promise((reslove, reject) => {
|
|
5
5
|
let obj = {};
|
|
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-fg7n6m8j.js"),o={class:"layout-footer pb15"},r=e.defineComponent({name:"layoutFooter"}),a=e.defineComponent({...r,setup:t=>(t,r)=>(e.openBlock(),e.createElementBlock("div",o,r[0]||(r[0]=[e.createElementVNode("div",{class:"layout-footer-warp"},[e.createElementVNode("div",null,"hs-admin "),e.createElementVNode("div",{class:"mt5"},"杭州市华速科技公司版权所有")],-1)])))}),l=t._export_sfc(a,[["__scopeId","data-v-51817e7c"]]);exports.default=l;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./index-
|
|
2
|
+
import { _ as _export_sfc } from "./index-CVe6-gGv.mjs";
|
|
3
3
|
const _hoisted_1 = { class: "layout-footer pb15" };
|
|
4
4
|
const __default__ = defineComponent({
|
|
5
5
|
name: "layoutFooter"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("pinia"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("pinia"),l=require("./index-fg7n6m8j.js"),o=require("./logo-mini-DwRdfcE7.js"),n={class:"login-container flex"},a={class:"login-left"},i={class:"login-left-logo"},r=["src"],c={class:"login-left-logo-text"},s={class:"login-left-logo-text-msg"},d={class:"login-right flex"},m={class:"login-right-warp flex-margin"},g={class:"login-right-warp-mian"},u={class:"login-right-warp-main-title"},p={class:"login-right-warp-main-form"},v={key:0},f=e.defineComponent({name:"loginIndex"}),V=e.defineComponent({...f,setup(f){const V=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./account-TUx3RwYB.js"))))),N=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./scan-DVdsOBhm.js"))))),E=l.useThemeConfig(),{themeConfig:b}=t.storeToRefs(E),h=e.reactive({tabsActiveName:"account",isScan:!1}),x=e.computed((()=>b.value));return e.onMounted((()=>{l.NextLoading.done()})),(t,l)=>{const f=e.resolveComponent("el-tab-pane"),E=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",a,[e.createElementVNode("div",i,[e.createElementVNode("img",{src:e.unref(o.logoMini)},null,8,r),e.createElementVNode("div",c,[e.createElementVNode("span",null,e.toDisplayString(x.value.globalViceTitle),1),e.createElementVNode("span",s,e.toDisplayString(x.value.globalViceTitleMsg),1)])]),l[1]||(l[1]=e.createElementVNode("div",{class:"login-left-img"},null,-1))]),e.createElementVNode("div",d,[e.createElementVNode("div",m,[l[2]||(l[2]=e.createElementVNode("span",{class:"login-right-warp-one"},null,-1)),l[3]||(l[3]=e.createElementVNode("span",{class:"login-right-warp-two"},null,-1)),e.createElementVNode("div",g,[e.createElementVNode("div",u,e.toDisplayString(x.value.globalTitle)+" 欢迎您!",1),e.createElementVNode("div",p,[h.isScan?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(E,{modelValue:h.tabsActiveName,"onUpdate:modelValue":l[0]||(l[0]=e=>h.tabsActiveName=e)},{default:e.withCtx((()=>[e.createVNode(f,{label:"账号密码登录",name:"account"},{default:e.withCtx((()=>[e.createVNode(e.unref(V))])),_:1})])),_:1},8,["modelValue"])])),h.isScan?(e.openBlock(),e.createBlock(e.unref(N),{key:1})):e.createCommentVNode("",!0)])])])])])}}}),N=l._export_sfc(V,[["__scopeId","data-v-9313bb0c"]]);exports.default=N;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, createElementBlock, openBlock, createElementVNode, Fragment, renderList, normalizeStyle, createCommentVNode, toDisplayString, unref, createVNode, createTextVNode } from "vue";
|
|
2
2
|
import { useRouter } from "vue-router";
|
|
3
|
-
import { B as fixedNumAccuracy, C as useRoutesList, _ as _export_sfc } from "./index-
|
|
3
|
+
import { B as fixedNumAccuracy, C as useRoutesList, _ as _export_sfc } from "./index-CVe6-gGv.mjs";
|
|
4
4
|
const _hoisted_1 = { class: "system-menu-container layout-padding" };
|
|
5
5
|
const _hoisted_2 = { class: "h-full overflow-auto bg-white pl-3" };
|
|
6
6
|
const _hoisted_3 = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, defineComponent, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, withDirectives, unref, createElementVNode, vShow } from "vue";
|
|
2
|
-
import { _ as _sfc_main$1 } from "./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import hsFormConfig from "./formConfig-
|
|
4
|
-
import { n as useMenuController, _ as _export_sfc } from "./index-
|
|
5
|
-
import { u as useFieldConfigController } from "./index-
|
|
2
|
+
import { _ as _sfc_main$1 } from "./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-C_ZFa4sH.mjs";
|
|
3
|
+
import hsFormConfig from "./formConfig-2yg5Vkyl.mjs";
|
|
4
|
+
import { n as useMenuController, _ as _export_sfc } from "./index-CVe6-gGv.mjs";
|
|
5
|
+
import { u as useFieldConfigController } from "./index-CUF7vP_x.mjs";
|
|
6
6
|
import { u as useConfigInfo } from "./useConfigInfo-PTkkdx-l.mjs";
|
|
7
7
|
const menu = useMenuController();
|
|
8
8
|
const fieldConfig = useFieldConfigController();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./index-
|
|
1
|
+
"use strict";const e=require("./index-fg7n6m8j.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("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-fg7n6m8j.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("pinia"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("pinia"),n=require("./index-fg7n6m8j.js"),t={class:"layout-navbars-container"},r=e.defineComponent({name:"layoutNavBars"}),s=e.defineComponent({...r,setup(r){const s=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./index-kf5oteMT.js"))))),i=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./tagsView-DG0p6J7v.js"))))),a=n.useThemeConfig(),{themeConfig:c}=o.storeToRefs(a),u=e.computed((()=>{let{layout:e,isTagsview:o}=c.value;return"classic"!==e&&o}));return(o,n)=>(e.openBlock(),e.createElementBlock("div",t,[e.createVNode(e.unref(s)),u.value?(e.openBlock(),e.createBlock(e.unref(i),{key:0})):e.createCommentVNode("",!0)]))}}),i=n._export_sfc(s,[["__scopeId","data-v-6cf86195"]]);exports.default=i;
|
|
@@ -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-CVe6-gGv.mjs";
|
|
3
|
+
import { u as useSystemController } from "./index-DUmSf07m.mjs";
|
|
4
|
+
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_setup_true_lang-Cq_mRvLq.mjs";
|
|
5
|
+
import { _ as _sfc_main$1 } from "./copySystem.vue_vue_type_script_setup_true_lang-Dg4o3Rdy.mjs";
|
|
6
6
|
const assign = (params, title) => {
|
|
7
7
|
return Object.assign(params, { other_log_info: { title } });
|
|
8
8
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, onMounted, resolveComponent, resolveDirective, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, withDirectives, createBlock, createCommentVNode, createTextVNode, unref, toDisplayString } from "vue";
|
|
2
|
-
import { _ as _sfc_main$1 } from "./bcSwitchSystems.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as _sfc_main$1 } from "./bcSwitchSystems.vue_vue_type_script_setup_true_lang-BB1crmJn.mjs";
|
|
3
3
|
import { storeToRefs } from "pinia";
|
|
4
|
-
import { C as useRoutesList, q as isDev, n as useMenuController, E as ElMessageBox, b as ElMessage, K as setBackEndControlRefreshRoutes, s as showPopup, o as copyText, _ as _export_sfc } from "./index-
|
|
5
|
-
import { _ as _sfc_main$3 } from "./dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-
|
|
6
|
-
import { _ as _sfc_main$2 } from "./copyMenuConfig.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { C as useRoutesList, q as isDev, n as useMenuController, E as ElMessageBox, b as ElMessage, K as setBackEndControlRefreshRoutes, s as showPopup, o as copyText, _ as _export_sfc } from "./index-CVe6-gGv.mjs";
|
|
5
|
+
import { _ as _sfc_main$3 } from "./dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CpqmVpZW.mjs";
|
|
6
|
+
import { _ as _sfc_main$2 } from "./copyMenuConfig.vue_vue_type_script_setup_true_lang-CeWj7ISG.mjs";
|
|
7
7
|
const _hoisted_1 = { class: "system-menu-container layout-padding" };
|
|
8
8
|
const _hoisted_2 = { class: "system-menu-search mb15" };
|
|
9
9
|
const _hoisted_3 = { class: "flex" };
|
|
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-fg7n6m8j.js"),a={class:"system-dic-container layout-padding"},o={class:"system-user-search mb15"},l=e.defineComponent({name:"systemDic"}),r=e.defineComponent({...l,setup(l){const r=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./dialog-DxBOYlwo.js"))))),n=e.ref(),i=e.reactive({tableData:{data:[],total:0,loading:!1,param:{pageNum:1,pageSize:10}}}),d=()=>{i.tableData.loading=!0;const e=[];for(let t=0;t<2;t++)e.push({dicName:0===t?"角色标识":"用户性别",fieldName:0===t?"SYS_ROLE":"SYS_UERINFO",describe:0===t?"这是角色字典":"这是用户性别字典",status:!0,createTime:(new Date).toLocaleString(),list:[]});i.tableData.data=e,i.tableData.total=i.tableData.data.length,setTimeout((()=>{i.tableData.loading=!1}),500)},c=e=>{i.tableData.param.pageSize=e,d()},s=e=>{i.tableData.param.pageNum=e,d()};return e.onMounted((()=>{d()})),(l,p)=>{const u=e.resolveComponent("el-input"),m=e.resolveComponent("ele-Search"),g=e.resolveComponent("el-icon"),f=e.resolveComponent("el-button"),N=e.resolveComponent("ele-FolderAdd"),h=e.resolveComponent("el-table-column"),v=e.resolveComponent("el-tag"),w=e.resolveComponent("el-table"),C=e.resolveComponent("el-pagination"),b=e.resolveComponent("el-card"),x=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",a,[e.createVNode(b,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createElementVNode("div",o,[e.createVNode(u,{size:"default",placeholder:"请输入字典名称",style:{"max-width":"180px"}}),e.createVNode(f,{size:"default",type:"primary",class:"ml10"},{default:e.withCtx((()=>[e.createVNode(g,null,{default:e.withCtx((()=>[e.createVNode(m)])),_:1}),p[4]||(p[4]=e.createTextVNode(" 查询 "))])),_:1,__:[4]}),e.createVNode(f,{size:"default",type:"success",class:"ml10",onClick:p[0]||(p[0]=e=>{return t="add",void n.value.openDialog(t);var t})},{default:e.withCtx((()=>[e.createVNode(g,null,{default:e.withCtx((()=>[e.createVNode(N)])),_:1}),p[5]||(p[5]=e.createTextVNode(" 新增字典 "))])),_:1,__:[5]})]),e.withDirectives((e.openBlock(),e.createBlock(w,{data:i.tableData.data,style:{width:"100%"}},{default:e.withCtx((()=>[e.createVNode(h,{type:"index",label:"序号",width:"50"}),e.createVNode(h,{prop:"dicName",label:"字典名称","show-overflow-tooltip":""}),e.createVNode(h,{prop:"fieldName",label:"字段名","show-overflow-tooltip":""}),e.createVNode(h,{prop:"status",label:"字典状态","show-overflow-tooltip":""},{default:e.withCtx((t=>[t.row.status?(e.openBlock(),e.createBlock(v,{key:0,type:"success"},{default:e.withCtx((()=>p[6]||(p[6]=[e.createTextVNode("启用")]))),_:1,__:[6]})):(e.openBlock(),e.createBlock(v,{key:1,type:"info"},{default:e.withCtx((()=>p[7]||(p[7]=[e.createTextVNode("禁用")]))),_:1,__:[7]}))])),_:1}),e.createVNode(h,{prop:"describe",label:"字典描述","show-overflow-tooltip":""}),e.createVNode(h,{prop:"createTime",label:"创建时间","show-overflow-tooltip":""}),e.createVNode(h,{label:"操作",width:"100"},{default:e.withCtx((a=>[e.createVNode(f,{size:"small",text:"",type:"primary",onClick:e=>{return t="edit",o=a.row,void n.value.openDialog(t,o);var t,o}},{default:e.withCtx((()=>p[8]||(p[8]=[e.createTextVNode("修改")]))),_:2,__:[8]},1032,["onClick"]),e.createVNode(f,{size:"small",text:"",type:"primary",onClick:e=>{return o=a.row,void t.ElMessageBox.confirm(`此操作将永久删除字典名称:“${o.dicName}”,是否继续?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((()=>{d(),t.ElMessage.success("删除成功")})).catch((()=>{}));var o}},{default:e.withCtx((()=>p[9]||(p[9]=[e.createTextVNode("删除")]))),_:2,__:[9]},1032,["onClick"])])),_:1})])),_:1},8,["data"])),[[x,i.tableData.loading]]),e.createVNode(C,{onSizeChange:c,onCurrentChange:s,class:"mt15","pager-count":5,"page-sizes":[10,20,30],"current-page":i.tableData.param.pageNum,"onUpdate:currentPage":p[1]||(p[1]=e=>i.tableData.param.pageNum=e),background:"","page-size":i.tableData.param.pageSize,"onUpdate:pageSize":p[2]||(p[2]=e=>i.tableData.param.pageSize=e),layout:"total, sizes, prev, pager, next, jumper",total:i.tableData.total},null,8,["current-page","page-size","total"])])),_:1}),e.createVNode(e.unref(r),{ref_key:"dicDialogRef",ref:n,onRefresh:p[3]||(p[3]=e=>d())},null,512)])}}});exports.default=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent, createElementBlock, openBlock, createVNode } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./index-
|
|
2
|
+
import { _ as _export_sfc } from "./index-CVe6-gGv.mjs";
|
|
3
3
|
const _sfc_main = {};
|
|
4
4
|
const _hoisted_1 = { class: "system-menu-container layout-padding" };
|
|
5
5
|
function _sfc_render(_ctx, _cache) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-BpbAqWmU.js"),a=require("./index-fg7n6m8j.js"),n=require("./index-XlVjfXaf.js"),o=require("./index-D_Ra9OOC.js"),l=require("./hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-C4oDBKar.js"),s=n.useDictController(),r=a.useMenuController(),c=o.useDataPermissionController();function u(t){const n=e.reactive({pane:[{name:"数据字典",value:"dataDict",prop:{label:"dict_name",value:"dict_code"},list:[],select:[]},{name:"数据权限",value:"dataAuth",prop:{label:"config_label",value:"config_name"},select:[],list:[]}],page:{menu:void 0}});return{onChangeNode:e=>{n.page.menu=e;let t=e.dict_json?JSON.parse(e.dict_json):[],o=e.data_json?JSON.parse(e.data_json):[];n.pane.map((e=>("dataDict"==e.value?e.select=t.map((e=>e.code)):"dataAuth"==e.value&&(e.select=o.map((e=>e.value))),e))),(()=>{let e=a.Session.get("CURRENT_SYSTEM");s.getDictListByProject({project_code:e.project_code}).then((e=>{if(1!=e.code)return a.ElMessage.warning(e.msg);let t=a._.findIndex(n.pane,(e=>"dataDict"==e.value)),o=a._.cloneDeep(n.pane[t]);o.list=e.data,n.pane.splice(t,1,o)})),c.getDataPermissionConfigList({project_code:e.project_code}).then((e=>{if(1!=e.code)return a.ElMessage.warning(e.msg);let t=a._.findIndex(n.pane,(e=>"dataAuth"==e.value)),o=a._.cloneDeep(n.pane[t]);o.list=e.data,n.pane.splice(t,1,o)}))})()},onChangeSystem:e=>{n.page.menu=void 0},saveData:()=>{var e;let o=a.Session.get("CURRENT_SYSTEM"),l=[],s=[];n.pane.forEach((e=>{"dataDict"==e.value?a._.cloneDeep(e.list).map((t=>{a._.includes(e.select,a._.get(t,e.prop.value))&&l.push({code:a._.get(t,e.prop.value),name:a._.get(t,e.prop.label)})})):"dataAuth"==e.value&&a._.cloneDeep(e.list).map((t=>{a._.includes(e.select,a._.get(t,e.prop.value))&&s.push({value:a._.get(t,e.prop.value),label:a._.get(t,e.prop.label)})}))}));let c={id:null==(e=n.page.menu)?void 0:e.id,project_code:o.project_code,dict_json:l.length>0?JSON.stringify(l):"",data_json:s.length>0?JSON.stringify(s):""};r.postSetMenuConfig(c).then((e=>{if(1!=e.code)return a.ElMessage.warning(e.msg);a.ElMessage.success("保存成功"),t.value.onChangeSystem(o)}))},state:n}}const i={class:"system-dept-container layout-padding"},p={key:0,class:"flex-1 flex flex-col pl-4 overflow-auto"},d={class:"flex-1"},_=e.defineComponent({name:"dictDataForMenu"}),m=e.defineComponent({..._,setup(a){const n=e.ref(),{onChangeNode:o,onChangeSystem:s,saveData:r,state:c}=u(n);return(a,u)=>{const _=e.resolveComponent("hs-button"),m=e.resolveComponent("el-card");return e.openBlock(),e.createElementBlock("div",i,[e.createVNode(m,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createVNode(t._sfc_main,{ref_key:"pageTreeForSystemRef",ref:n,onChangeNode:e.unref(o),onChangeSystem:e.unref(s)},null,8,["onChangeNode","onChangeSystem"]),e.unref(c).page.menu?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",d,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c).pane,((t,a)=>{var n,o;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(l._sfc_main),{key:a,itemData:t,modelValue:t.select,"onUpdate:modelValue":e=>t.select=e,label:null==(n=t.prop)?void 0:n.label,value:null==(o=t.prop)?void 0:o.value},null,8,["itemData","modelValue","onUpdate:modelValue","label","value"])})),128))]),e.createVNode(_,{onClick:e.unref(r),type:"primary"},{default:e.withCtx((()=>u[0]||(u[0]=[e.createTextVNode("保存")]))),_:1,__:[0]},8,["onClick"])])):e.createCommentVNode("",!0)])),_:1})])}}}),g=a._export_sfc(m,[["__scopeId","data-v-bff0f922"]]);exports.default=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("pinia"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("pinia"),l=require("./index-fg7n6m8j.js"),t=require("./logo-mini-DwRdfcE7.js"),i=["src"],n=["src"],s=e.defineComponent({name:"layoutLogo"}),a=e.defineComponent({...s,setup(s){const a=l.useThemeConfig(),{themeConfig:r}=o.storeToRefs(a),u=e.computed((()=>{let{isCollapse:e,layout:o}=r.value;return!e||"classic"===o||document.body.clientWidth<1e3})),c=()=>{if("transverse"===r.value.layout)return!1;r.value.isCollapse=!r.value.isCollapse};return(o,l)=>u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"layout-logo",onClick:c},[e.createElementVNode("img",{src:e.unref(t.logoMini),class:"layout-logo-medium-img"},null,8,i),e.createElementVNode("span",null,e.toDisplayString(e.unref(r).globalTitle),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"layout-logo-size",onClick:c},[e.createElementVNode("img",{src:e.unref(t.logoMini),class:"layout-logo-size-img"},null,8,n)]))}}),r=l._export_sfc(a,[["__scopeId","data-v-1220db0a"]]);exports.default=r;
|
|
@@ -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-fg7n6m8j.js"),a=require("./index-DYbdUmL4.js"),o=require("./index.vue_vue_type_script_setup_true_lang-CRecnRLu.js"),c=require("./copySystem.vue_vue_type_script_setup_true_lang-C1koLg35.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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { reactive, toValue, defineComponent, ref, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, unref, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { E as ElMessageBox, b as ElMessage, s as showPopup } from "./index-
|
|
3
|
-
import { u as useFieldConfigController } from "./index-
|
|
4
|
-
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { E as ElMessageBox, b as ElMessage, s as showPopup } from "./index-CVe6-gGv.mjs";
|
|
3
|
+
import { u as useFieldConfigController } from "./index-CUF7vP_x.mjs";
|
|
4
|
+
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_setup_true_lang-g2N6dHWZ.mjs";
|
|
5
5
|
const fieldConfigController = useFieldConfigController();
|
|
6
6
|
function useHsFieldPool(tableInstance) {
|
|
7
7
|
const poolData = reactive({});
|
|
@@ -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-CVe6-gGv.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({
|
|
@@ -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-BbS2NVpT.js");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./index-jq2pSqMh.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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./index-fg7n6m8j.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,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createElementVNode, unref, toDisplayString } from "vue";
|
|
2
2
|
import { storeToRefs } from "pinia";
|
|
3
|
-
import { a as useThemeConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { a as useThemeConfig, _ as _export_sfc } from "./index-CVe6-gGv.mjs";
|
|
4
4
|
import { l as logoMini } from "./logo-mini-BQ9BrQ1U.mjs";
|
|
5
5
|
const _hoisted_1 = ["src"];
|
|
6
6
|
const _hoisted_2 = ["src"];
|