hs-admin-ui 14.9.4 → 14.9.5
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-lZxdWGXv.mjs → 401-CpK9yhl7.mjs} +1 -1
- package/dist/{401-COwZUv1K.js → 401-J0LK1xT-.js} +1 -1
- package/dist/{404-D3TtbXOp.js → 404-Csi1aeQ1.js} +1 -1
- package/dist/{404-D3TtbXOp.js.gz → 404-Csi1aeQ1.js.gz} +0 -0
- package/dist/{404-D_AhCWbZ.mjs → 404-DmVMXD_9.mjs} +1 -1
- package/dist/{404-D_AhCWbZ.mjs.gz → 404-DmVMXD_9.mjs.gz} +0 -0
- package/dist/{account-HrI_X6OS.mjs → account-C2aOPVVK.mjs} +1 -1
- package/dist/{account-DYkw_XLP.js → account-x-tRq-Gr.js} +1 -1
- package/dist/{aside-BlriFDeK.js → aside-BkQqn9GW.js} +1 -1
- package/dist/{aside--RpkP5XW.mjs → aside-CaMiaAwa.mjs} +3 -3
- package/dist/{baseFormConfig-Kq5GDm3j.mjs → baseFormConfig-BKUqw5h5.mjs} +1 -1
- package/dist/baseFormConfig-BKUqw5h5.mjs.gz +0 -0
- package/dist/{baseFormConfig-C5g2nTx6.js → baseFormConfig-JkVEMtJq.js} +1 -1
- package/dist/{baseTableConfig-Bk4Ifm2y.mjs → baseTableConfig-BNHBsbl8.mjs} +1 -1
- package/dist/baseTableConfig-BNHBsbl8.mjs.gz +0 -0
- package/dist/{baseTableConfig-Dd75HNb_.js → baseTableConfig-DzY01mU_.js} +1 -1
- package/dist/baseTableConfig-DzY01mU_.js.gz +0 -0
- package/dist/{bcFormConfig-BUpVIhYo.mjs → bcFormConfig-7DAZogYZ.mjs} +1 -1
- package/dist/{bcFormConfig-XoPXnp_Y.js → bcFormConfig-zLOtRS66.js} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DrTohUOR.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-CtsU4npf.js} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-CHUhRJsG.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-D52q7Rae.mjs} +2 -2
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-BuyBnwVb.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-BdEt94_a.js} +1 -1
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-wfAoqDNC.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-cdQnYg6S.mjs} +2 -2
- package/dist/{btnIndex-Bv0SEu_N.js → btnIndex-BuCXn4H5.js} +1 -1
- package/dist/{btnIndex-BHu4zBbj.mjs → btnIndex-D26Qtpla.mjs} +3 -3
- package/dist/btnIndex-D26Qtpla.mjs.gz +0 -0
- package/dist/{classic-DgHorOTz.js → classic-BO3zYJjz.js} +1 -1
- package/dist/{classic-Bcx0HNXD.mjs → classic-Hk1y4_Jq.mjs} +5 -5
- package/dist/{cloneConfigDialog-BfrpQbc5.js → cloneConfigDialog-Bv-1--GH.js} +1 -1
- package/dist/cloneConfigDialog-Bv-1--GH.js.gz +0 -0
- package/dist/{cloneConfigDialog-cGqc1Qhl.mjs → cloneConfigDialog-DUpNh70y.mjs} +3 -3
- package/dist/cloneConfigDialog-DUpNh70y.mjs.gz +0 -0
- package/dist/{columns-uOGMxbkG.js → columns-BwjKBwED.js} +1 -1
- package/dist/{columns-Bl56Id8j.mjs → columns-DyoKVZYL.mjs} +5 -5
- package/dist/{columnsAside-Cz1cW5TK.mjs → columnsAside-B4AZ-sr7.mjs} +1 -1
- package/dist/{columnsAside-DZpUdelV.js → columnsAside-DkWHAO-k.js} +1 -1
- package/dist/{contextmenu-DSjUjCwX.js → contextmenu-CXLAuSUc.js} +1 -1
- package/dist/{contextmenu-C_u2siFZ.mjs → contextmenu-Ct0KWEB7.mjs} +1 -1
- package/dist/{contextmenu-D0T9p9mv.mjs → contextmenu-DUwzo9rb.mjs} +1 -1
- package/dist/{contextmenu-BH_bDWAF.js → contextmenu-Drsg4PHN.js} +1 -1
- package/dist/{copyMenuConfig-AKo5i0Wa.mjs → copyMenuConfig-C9BCXVqD.mjs} +1 -1
- package/dist/{copyMenuConfig-BdbS4y6f.js → copyMenuConfig-DEhK6lAs.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-BAWUsq8T.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-DU2z5jYV.mjs} +2 -2
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-BQ7morzn.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-HH_PfoHN.js} +1 -1
- package/dist/{copySystem-Dn3mZH7T.mjs → copySystem-B5hxeoZ3.mjs} +1 -1
- package/dist/{copySystem-CXscGATG.js → copySystem-CMsQK09B.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DGPKIy2L.mjs → copySystem.vue_vue_type_script_setup_true_lang-BNg6cavW.mjs} +2 -2
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DR5l_JN_.js → copySystem.vue_vue_type_script_setup_true_lang-DilSSbHF.js} +1 -1
- package/dist/{defaults-DHX8gwWF.js → defaults-Dak0ZjT6.js} +1 -1
- package/dist/{defaults-YTOPJxPK.mjs → defaults-cB_shpmc.mjs} +4 -4
- package/dist/{dialog-h7jb1ncw.mjs → dialog-CbX4hEg2.mjs} +1 -1
- package/dist/{dialog-BZTAxkJs.js → dialog-Cph9gEob.js} +1 -1
- package/dist/{dialog-DAcylFKr.js → dialog-CwNq4ZS0.js} +1 -1
- package/dist/{dialog-p36wvzt-.js → dialog-Dqf9FCr9.js} +1 -1
- package/dist/{dialog-CVKiLD5f.mjs → dialog-_7hzQf-z.mjs} +1 -1
- package/dist/{dialog-FTIFcO4Q.mjs → dialog-ixS0aFey.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DfCS0EvK.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-D5GeHkRs.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DoxeMups.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DpBS-Uld.mjs} +3 -3
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B_YiXRx-.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B78ginRG.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B78ginRG.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-64X0toVI.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Chu8ztMv.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Chu8ztMv.mjs.gz +0 -0
- package/dist/{dictDialog-DryFF44M.js → dictDialog-CbyWK8FR.js} +1 -1
- package/dist/{dictDialog-CbAHadL8.mjs → dictDialog-CmGBTiru.mjs} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-ZxfrLhg9.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Jlu_Gz37.mjs} +2 -2
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BjLISqQo.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-TkkUg5VX.js} +1 -1
- package/dist/{dictItemDialog-CMUMRpqT.js → dictItemDialog-Czxq4qxt.js} +1 -1
- package/dist/{dictItemDialog-Bu2Gc1qD.mjs → dictItemDialog-DFGxk_TY.mjs} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-F-iXOxC7.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-CasycVpd.mjs} +2 -2
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-C-NLOzA_.js → dictItemDialog.vue_vue_type_script_setup_true_lang-DJz_-Coj.js} +1 -1
- package/dist/{formConfig-6Q2UZc10.js → formConfig-1lH_9UMJ.js} +1 -1
- package/dist/formConfig-1lH_9UMJ.js.gz +0 -0
- package/dist/{formConfig-Sr2Dx_iO.mjs → formConfig-JM1wy5o8.mjs} +6 -6
- package/dist/formConfig-JM1wy5o8.mjs.gz +0 -0
- package/dist/{header-DxpvBOPT.mjs → header-RMeEaN5m.mjs} +2 -2
- package/dist/{header--Nt1KEJ0.js → header-tzG7cnFT.js} +1 -1
- package/dist/{horizontal-BpxfUY_B.js → horizontal-S8crCHDM.js} +1 -1
- package/dist/{horizontal-Wv6i1uq9.mjs → horizontal-uxsz3bzl.mjs} +2 -2
- package/dist/{hsAttrBtn-C3dJvniR.js → hsAttrBtn-B_6hOOLR.js} +1 -1
- package/dist/{hsAttrBtn-Cc0tqFZ9.mjs → hsAttrBtn-HOI5_5Qb.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-BmecHX7E.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-BqG6Kthu.mjs} +4 -4
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-WDA6CVif.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-Cv8y3Qee.js} +1 -1
- package/dist/{hsAttrForm-C1eFSFvJ.mjs → hsAttrForm-BQ3AtFFo.mjs} +1 -1
- package/dist/{hsAttrForm-BOEVgZcb.js → hsAttrForm-CE81fjOI.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-B-SkNIkc.js → hsAttrForm.vue_vue_type_script_setup_true_lang-BJ1dIXoR.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-WXI_QCj3.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-B_0yLyIH.mjs} +4 -4
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-B_0yLyIH.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-CFYMZXt1.js → hsBtnConfigList-CTf5M2RC.js} +1 -1
- package/dist/{hsBtnConfigList-C1DJ_SgX.mjs → hsBtnConfigList-DfmE-QV6.mjs} +1 -1
- package/dist/{hsBtnItemConfig-BBPWIdQq.mjs → hsBtnItemConfig-C-xvQ__p.mjs} +1 -1
- package/dist/{hsBtnItemConfig-DObzJ9qb.js → hsBtnItemConfig-nxiDgVDf.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Cy_JIxo_.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B54E8bhN.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DGgsaYwr.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BHFActm0.mjs} +3 -3
- package/dist/{hsBtnPanel-DtFBer4a.js → hsBtnPanel-PfiJcYJS.js} +1 -1
- package/dist/{hsBtnPanel-l4IbddzI.mjs → hsBtnPanel-gIF0jLTC.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DJBpM-OA.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BoSrbxVz.mjs} +4 -4
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BTGqzcQl.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DDEzPgWU.js} +1 -1
- package/dist/{hsExpand-DSq5cWXQ.mjs → hsExpand-BYy7WhlA.mjs} +1 -1
- package/dist/{hsExpand-DcxQ8__I.js → hsExpand-DQ1neXYA.js} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-_42aTatk.mjs → hsExpand.vue_vue_type_script_setup_true_lang-BNexEKc9.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-C9AzHuts.js → hsExpand.vue_vue_type_script_setup_true_lang-gVtDP7AL.js} +1 -1
- package/dist/{hsFormConfig-ClGVapyJ.js → hsFormConfig-Cjqyvt2W.js} +1 -1
- package/dist/{hsFormConfig-BLTt3qSB.mjs → hsFormConfig-EHAJcB7M.mjs} +1 -1
- package/dist/{hsFormConfigList-CgKg9GU4.js → hsFormConfigList-CFRCNFyf.js} +1 -1
- package/dist/{hsFormConfigList-B7G-zaca.mjs → hsFormConfigList-ihbwV8k3.mjs} +2 -2
- package/dist/hsFormConfigList-ihbwV8k3.mjs.gz +0 -0
- package/dist/{hsFormPanel-CFzUHbFI.js → hsFormPanel-D9XlyGN4.js} +1 -1
- package/dist/{hsFormPanel-Dzbp1AAs.mjs → hsFormPanel-U30VvELy.mjs} +6 -6
- package/dist/hsFormPanel-U30VvELy.mjs.gz +0 -0
- package/dist/{hsFormParse-B2TKl3fj.mjs → hsFormParse-Ckmma758.mjs} +1 -1
- package/dist/{hsFormParse-CuteVeOS.js → hsFormParse-eT_8s0wa.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-D2WQMIXA.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-CGu5MoIu.mjs} +3 -3
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CMAJ4iWE.js → hsFormParse.vue_vue_type_script_setup_true_lang-D8__1Ds_.js} +1 -1
- package/dist/{hsPanelItem-BPjAlblV.js → hsPanelItem-BscxtmOR.js} +1 -1
- package/dist/{hsPanelItem-CsmTncIG.mjs → hsPanelItem-DRhlDB_3.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Djcr7uHb.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B8Mau8cG.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CZo35mEA.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BQs2sLed.mjs} +1 -1
- package/dist/{index copy-1c4YmTy1.js → index copy-CMp8czGJ.js } +1 -1
- package/dist/{index copy-BGcVDMQm.mjs → index copy-CbbHdCsl.mjs } +1 -1
- package/dist/{index copy-C9rRN02t.mjs → index copy-DCzy5rZs.mjs } +1 -1
- package/dist/{index copy-CFDjFajM.js → index copy-DECiusYz.js } +1 -1
- package/dist/{index-CEtTJhiM.js → index-067ESOWK.js} +1 -1
- package/dist/index-067ESOWK.js.gz +0 -0
- package/dist/{index-XxGy_jgk.js → index-0CMLeeEQ.js} +1 -1
- package/dist/index-1G0Mv47b.mjs +4 -0
- package/dist/{index-TZFbDXp6.mjs → index-4yJx5YNF.mjs} +3 -3
- package/dist/{index-DKOAHqrI.mjs → index-6ojALsT9.mjs} +1 -1
- package/dist/{index-BUTfyg1I.mjs → index-7S_rKRW5.mjs} +1 -1
- package/dist/{index-DXhVK2Ro.mjs → index-B2oGtTKL.mjs} +3 -3
- package/dist/{index-BsOXFWZA.js → index-B5LYU1R0.js} +1 -1
- package/dist/{index-CIa8-szs.js → index-B6pGwAFk.js} +1 -1
- package/dist/index-B6pGwAFk.js.gz +0 -0
- package/dist/{index-tAdDtajf.mjs → index-B91eywvf.mjs} +1 -1
- package/dist/{index-DlaUgU8C.js → index-B9TnrbVg.js} +1 -1
- package/dist/{index-V_e-j8Hq.mjs → index-BBU9ap-M.mjs} +1 -1
- package/dist/{index-CbW5j9D4.js → index-BBupum9z.js} +1 -1
- package/dist/{index-CCGnY7QF.js → index-BCBaXvpn.js} +1 -1
- package/dist/{index-DWm7GWW6.mjs → index-BCezXoIF.mjs} +2 -2
- package/dist/index-BCezXoIF.mjs.gz +0 -0
- package/dist/{index-BL18sbXi.mjs → index-BFH-b2Gt.mjs} +1 -1
- package/dist/{index-DIpKrcqi.mjs → index-BFNrFVK0.mjs} +4 -4
- package/dist/{index-9-Wiq3bR.mjs → index-BIXZxRp_.mjs} +12 -11
- package/dist/{index-9-Wiq3bR.mjs.gz → index-BIXZxRp_.mjs.gz} +0 -0
- package/dist/{index-BfMa4j_M.js → index-BOtro0Pe.js} +1 -1
- package/dist/{index-a_lRO5To.mjs → index-BShirvW1.mjs} +4 -4
- package/dist/index-BShirvW1.mjs.gz +0 -0
- package/dist/{index-CkXbxX78.mjs → index-BWfkkCwM.mjs} +1 -1
- package/dist/index-BWfkkCwM.mjs.gz +0 -0
- package/dist/{index-EXxI0C0f.js → index-Be-cQO0W.js} +1 -1
- package/dist/{index-DdqdTYsl.js → index-Bf42aiHv.js} +1 -1
- package/dist/{index-Ca0xTQ_H.js → index-Bpau4h2I.js} +1 -1
- package/dist/{index-qJe2m5JB.js → index-Bs86WIEs.js} +1 -1
- package/dist/{index-BD3Shyen.js → index-Buc6lE2o.js} +1 -1
- package/dist/{index-DQREbVvu.mjs → index-BwkbnkVl.mjs} +1 -1
- package/dist/{index-CzMfQz4m.js → index-C1S-l1hc.js} +1 -1
- package/dist/{index-B7f9htrc.mjs → index-C40z4Mqn.mjs} +3 -3
- package/dist/{index-BFmaOOl5.mjs → index-C6o7nEX8.mjs} +4 -4
- package/dist/{index-DPclXj9F.js → index-CGShlf89.js} +3 -3
- package/dist/{index-DPclXj9F.js.gz → index-CGShlf89.js.gz} +0 -0
- package/dist/{index-D1kKsgUx.js → index-CH0tVvbe.js} +1 -1
- package/dist/{index-Cm0_fYMB.mjs → index-CQhbtlnv.mjs} +4 -4
- package/dist/index-CQhbtlnv.mjs.gz +0 -0
- package/dist/{index-CHJqIH5R.js → index-CW6MCu8l.js} +1 -1
- package/dist/{index-R6Ke0uyD.mjs → index-CawYbGNB.mjs} +4 -4
- package/dist/{index-DXR8nDa4.js → index-Cd9rcyAc.js} +1 -1
- package/dist/{index-BHMu8gl9.js → index-CiKOtCLY.js} +1 -1
- package/dist/{index-CT225hBQ.js → index-CtlM7dmc.js} +1 -1
- package/dist/{index-s5cCWf9E.mjs → index-CwA2CLzR.mjs} +10 -10
- package/dist/index-CwA2CLzR.mjs.gz +0 -0
- package/dist/{index-C1Ws2Zu2.mjs → index-CwvwqJMy.mjs} +1 -1
- package/dist/{index-NWgBcQrf.js → index-CyvtOcNa.js} +1 -1
- package/dist/{index-z7hHRVMW.mjs → index-Cz2HAgY0.mjs} +1 -1
- package/dist/{index-B0Q25HlV.js → index-D20mzeXv.js} +1 -1
- package/dist/{index-Dgwl-nhg.js → index-D3y2E_dR.js} +1 -1
- package/dist/{index-BqNa4Amo.js → index-D53B13rf.js} +1 -1
- package/dist/{index-CIM5_HcR.js → index-D5pCeP92.js} +1 -1
- package/dist/{index-C0INWc0q.mjs → index-D8s9IeBS.mjs} +1 -1
- package/dist/{index-60S8ThXd.mjs → index-D9KdwSfA.mjs} +1 -1
- package/dist/{index-B17bk32I.js → index-DCRP2D6K.js} +1 -1
- package/dist/{index-C54-A6k6.js → index-DCWSB4Xr.js} +1 -1
- package/dist/{index-D-sVRRH7.mjs → index-DCk208wU.mjs} +1 -1
- package/dist/{index-CqDtFfXu.mjs → index-DPdygPB_.mjs} +4 -4
- package/dist/{index-Cx-h4ZxB.js → index-DRrfwGNr.js} +1 -1
- package/dist/{index-CjZ6oAsY.js → index-DSPMTLpJ.js} +1 -1
- package/dist/{index-CCBSP0O6.mjs → index-DT_9qaWm.mjs} +1 -1
- package/dist/{index-C-RNwI56.js → index-DafnzNHm.js} +1 -1
- package/dist/{index-CIUvnKAK.mjs → index-DcpeBXPN.mjs} +1 -1
- package/dist/{index-CRkHW0-U.js → index-DfErP6yn.js} +1 -1
- package/dist/{index-C9HA5S50.mjs → index-DvSA1UFn.mjs} +1 -1
- package/dist/{index-swpK7ei7.js → index-Dw0LHpwy.js} +1 -1
- package/dist/index-Dw0LHpwy.js.gz +0 -0
- package/dist/{index-CC_guwwi.mjs → index-DxyS5lsV.mjs} +1 -1
- package/dist/{index-BidBV3wo.js → index-DyU-4XkX.js} +1 -1
- package/dist/{index-BEDzArit.js → index-DzvwTH5T.js} +1 -1
- package/dist/{index-BBfnLDER.js → index-EAOPOtHT.js} +1 -1
- package/dist/{index-BCeiJGOB.mjs → index-H5RcILgx.mjs} +1 -1
- package/dist/{index-DPXet6LD.js → index-La4Zy1Gy.js} +1 -1
- package/dist/{index-2BwpMcDD.mjs → index-NkrgQq_Y.mjs} +5 -5
- package/dist/{index-C2ZlAhVX.mjs → index-ab5U5w65.mjs} +1 -1
- package/dist/{index-ZTcCzgus.mjs → index-bgbkO0rB.mjs} +5 -5
- package/dist/{index-C8-7Bg04.mjs → index-jh81K8IH.mjs} +1 -1
- package/dist/{index-Byo_Eq3m.mjs → index-mGzB3Yir.mjs} +1 -1
- package/dist/{index-CnRpOWam.js → index-ouKQHgZq.js} +1 -1
- package/dist/{index-l8cAPVFf.mjs → index-rU_UBjXO.mjs} +1 -1
- package/dist/{index-4rlzhDXW.mjs → index-vzPvdtXK.mjs} +3 -3
- package/dist/{index-DU_pgVhD.js → index-x0fu3vt0.js} +1 -1
- package/dist/{index-CAtamn72.mjs → index-zGRl7YOJ.mjs} +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dl_Ww3gq.mjs → index.vue_vue_type_script_setup_true_lang-44dHuH38.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-oCja9N-V.js → index.vue_vue_type_script_setup_true_lang-BlQbE1hu.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B4r8mSUv.mjs → index.vue_vue_type_script_setup_true_lang-CQGwUSQF.mjs} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-BDiK2f1d.js → index.vue_vue_type_script_setup_true_lang-ClBrx9uj.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DpP15Nxw.mjs → index.vue_vue_type_script_setup_true_lang-DdYEow-E.mjs} +4 -4
- package/dist/index.vue_vue_type_script_setup_true_lang-DdYEow-E.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Ty194UsZ.js → index.vue_vue_type_script_setup_true_lang-Do8tnIy6.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DhA5GOLn.js → index.vue_vue_type_script_setup_true_lang-aqRMCJq1.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dbd4lTL1.mjs → index.vue_vue_type_script_setup_true_lang-vyPGaabT.mjs} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-3tOckdiH.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-C8_P1OY8.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-BpI23bDW.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-W1b6rc_f.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-W1b6rc_f.mjs.gz +0 -0
- package/dist/{link-BBszM-VO.js → link-BUUOR5Ao.js} +1 -1
- package/dist/{link-CgQ75Nuy.mjs → link-Cdrfh--2.mjs} +1 -1
- package/dist/{list-FqhRqqAf.js → list-BPX4A_OD.js} +1 -1
- package/dist/{list-DwNWya_D.mjs → list-D-ocVZKq.mjs} +1 -1
- package/dist/{main-DBA7tziB.mjs → main-1AI2-aDF.mjs} +3 -3
- package/dist/{main-BDRsbjuc.js → main-Bulm90CH.js} +1 -1
- package/dist/{mobile-BayvZwQq.js → mobile-DAxzswbl.js} +1 -1
- package/dist/{mobile-CQ5Fjvme.mjs → mobile-dbTtJxh5.mjs} +1 -1
- package/dist/{parent-sdOah1Hi.mjs → parent-Ccf2OoOy.mjs} +1 -1
- package/dist/{parent-eZ5nLmqR.js → parent-DURozI_U.js} +1 -1
- package/dist/{popup-ktTcjrIT.mjs → popup-Cx6pfUfB.mjs} +1 -1
- package/dist/{popup-BtQZR0nF.js → popup-OjsP8Cz6.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-dCdzlf0R.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BKuxym7B.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-Cfm_ReX6.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DA0kHPAY.mjs} +1 -1
- package/dist/{roleItem-B2IbCQHy.mjs → roleItem-CADE7G2B.mjs} +1 -1
- package/dist/{roleItem-B3WVrwuZ.js → roleItem-CEmoP--8.js} +1 -1
- package/dist/{saveForm-BFUbUIBO.mjs → saveForm-Cj9FwLC9.mjs} +3 -3
- package/dist/{saveForm-C-Gz6X9h.js → saveForm-Do4R-_Zq.js} +1 -1
- package/dist/{scan-BX3AE2JF.js → scan-DwY1vbhJ.js} +1 -1
- package/dist/scan-DwY1vbhJ.js.gz +0 -0
- package/dist/{scan-YIYvq8X2.mjs → scan-rH8jxQZc.mjs} +1 -1
- package/dist/scan-rH8jxQZc.mjs.gz +0 -0
- package/dist/{search-Boc-AFII.mjs → search-DM4YmtZr.mjs} +1 -1
- package/dist/{search-DvdnlWR_.js → search-QiLXQ3DJ.js} +1 -1
- package/dist/{selectConfig-DLEg3hDZ.mjs → selectConfig-B31j9KD9.mjs} +1 -1
- package/dist/selectConfig-B31j9KD9.mjs.gz +0 -0
- package/dist/{selectConfig-Cdx0DFBR.js → selectConfig-DGGuFYF5.js} +1 -1
- package/dist/{subItem-CM_t5buw.js → subItem-CeBU6CWW.js} +1 -1
- package/dist/{subItem-CbykM0bk.mjs → subItem-c-oU3ANH.mjs} +1 -1
- package/dist/{tagsView-raIzI-uK.mjs → tagsView-DXftp3ZK.mjs} +2 -2
- package/dist/tagsView-DXftp3ZK.mjs.gz +0 -0
- package/dist/{tagsView-dk_nwA_V.js → tagsView-myAf55Qb.js} +2 -2
- package/dist/tagsView-myAf55Qb.js.gz +0 -0
- package/dist/{transverse-Bjs1ETzW.mjs → transverse-Cc6JAkD6.mjs} +3 -3
- package/dist/{transverse-slISMbBv.js → transverse-DDcZ3klZ.js} +1 -1
- package/dist/{user-Wu9pIgiL.js → user-Byhuo5Zq.js} +1 -1
- package/dist/{user-CNrtPFQi.mjs → user-oFns5hbr.mjs} +3 -3
- package/dist/{userNews-4rRSsE6k.mjs → userNews-CQDUobrp.mjs} +1 -1
- package/dist/{userNews-BsVMKkiv.js → userNews-D5PLzdHs.js} +1 -1
- package/dist/{userSelect-BsnK-QWL.mjs → userSelect-B-41D1Q8.mjs} +1 -1
- package/dist/{userSelect-CQk5odKg.js → userSelect-CSzbsOze.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-CWf5KtmU.mjs → userSelect.vue_vue_type_script_setup_true_lang-CiDpl-tu.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BYe1dezS.js → userSelect.vue_vue_type_script_setup_true_lang-Cm9Glts3.js} +1 -1
- package/dist/{vertical-f9fEFhiw.mjs → vertical-BY0Qa2EH.mjs} +2 -2
- package/dist/{vertical-BkOZrZjV.js → vertical-DRRfuEtV.js} +1 -1
- package/package.json +1 -1
- package/dist/baseFormConfig-Kq5GDm3j.mjs.gz +0 -0
- package/dist/baseTableConfig-Bk4Ifm2y.mjs.gz +0 -0
- package/dist/baseTableConfig-Dd75HNb_.js.gz +0 -0
- package/dist/btnIndex-BHu4zBbj.mjs.gz +0 -0
- package/dist/cloneConfigDialog-BfrpQbc5.js.gz +0 -0
- package/dist/cloneConfigDialog-cGqc1Qhl.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-64X0toVI.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B_YiXRx-.js.gz +0 -0
- package/dist/formConfig-6Q2UZc10.js.gz +0 -0
- package/dist/formConfig-Sr2Dx_iO.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-WXI_QCj3.mjs.gz +0 -0
- package/dist/hsFormConfigList-B7G-zaca.mjs.gz +0 -0
- package/dist/hsFormPanel-Dzbp1AAs.mjs.gz +0 -0
- package/dist/index-CEtTJhiM.js.gz +0 -0
- package/dist/index-CIa8-szs.js.gz +0 -0
- package/dist/index-CkXbxX78.mjs.gz +0 -0
- package/dist/index-Cm0_fYMB.mjs.gz +0 -0
- package/dist/index-DWm7GWW6.mjs.gz +0 -0
- package/dist/index-D_0EWfF1.mjs +0 -4
- package/dist/index-a_lRO5To.mjs.gz +0 -0
- package/dist/index-s5cCWf9E.mjs.gz +0 -0
- package/dist/index-swpK7ei7.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DpP15Nxw.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-BpI23bDW.mjs.gz +0 -0
- package/dist/scan-BX3AE2JF.js.gz +0 -0
- package/dist/scan-YIYvq8X2.mjs.gz +0 -0
- package/dist/selectConfig-DLEg3hDZ.mjs.gz +0 -0
- package/dist/tagsView-dk_nwA_V.js.gz +0 -0
- package/dist/tagsView-raIzI-uK.mjs.gz +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import roleItem from "./roleItem-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./userSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { s as showPopup, _ as _export_sfc } from "./index-
|
|
2
|
+
import roleItem from "./roleItem-CADE7G2B.mjs";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./userSelect.vue_vue_type_script_setup_true_lang-CiDpl-tu.mjs";
|
|
4
|
+
import { s as showPopup, _ as _export_sfc } from "./index-BIXZxRp_.mjs";
|
|
5
5
|
const _hoisted_1 = { class: "system-menu-container layout-padding" };
|
|
6
6
|
const __default__ = defineComponent({
|
|
7
7
|
name: "systemRole"
|
|
@@ -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-BIXZxRp_.mjs";
|
|
3
|
+
import { u as useFieldConfigController } from "./index-B91eywvf.mjs";
|
|
4
|
+
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_setup_true_lang-CQGwUSQF.mjs";
|
|
5
5
|
const fieldConfigController = useFieldConfigController();
|
|
6
6
|
function useHsFieldPool(tableInstance) {
|
|
7
7
|
const poolData = reactive({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("pinia"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("pinia"),o=require("./index-CGShlf89.js"),n=e.defineComponent({name:"layout"}),s=e.defineComponent({...n,setup(n){const s={defaults:e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./defaults-Dak0ZjT6.js"))))),classic:e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./classic-BO3zYJjz.js"))))),transverse:e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./transverse-DDcZ3klZ.js"))))),columns:e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./columns-BwjKBwED.js")))))},i=o.useThemeConfig(),{themeConfig:r}=t.storeToRefs(i),u=async()=>{const e=await o.systemStore.get("oldLayout");e||await o.systemStore.set("oldLayout",r.value.layout);const t=document.body.clientWidth;t<1e3?(r.value.isCollapse=!1,o.mittBus.emit("layoutMobileResize",{layout:"defaults",clientWidth:t})):o.mittBus.emit("layoutMobileResize",{layout:e||r.value.layout,clientWidth:t})};return e.onBeforeMount((()=>{u(),window.addEventListener("resize",u)})),e.onUnmounted((()=>{window.removeEventListener("resize",u)})),(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[e.unref(r).layout])))}});exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./index-DPclXj9F.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-CGShlf89.js"),i={};i.getData=t=>new Promise(((e,i)=>{let s={};(function(t){let e=null;return new Promise(((i,s)=>{if(t.src)if(/^data\:/i.test(t.src))e=function(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var i=atob(t),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),h=new Uint16Array(o),r=0;r<s;r++)h[r]=i.charCodeAt(r);return o}(t.src),i(e);else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){e=t.target.result,i(e)},function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},i.send()}(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var h=new XMLHttpRequest;h.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=h.response,i(e),h=null},h.open("GET",t.src,!0),h.responseType="arraybuffer",h.send(null)}else s("img error")}))})(t).then((t=>{s.arrayBuffer=t;try{s.orientation=function(t){var e,i,s,o,h,r,a,c,n,p=new DataView(t),l=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<l;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){r=c;break}c++}r&&(i=r+10,"Exif"===function(t,e,i){var s,o="";for(s=e,i+=e;s<i;s++)o+=String.fromCharCode(t.getUint8(s));return o}(p,r+4,4)&&((o=18761===(h=p.getUint16(i)))||19789===h)&&42===p.getUint16(i+2,o)&&(s=p.getUint32(i+4,o))>=8&&(a=i+s));if(a)for(l=p.getUint16(a,o),n=0;n<l;n++)if(c=a+12*n+2,274===p.getUint16(c,o)){c+=8,e=p.getUint16(c,o);break}return e}(t)}catch{s.orientation=-1}e(s)})).catch((t=>{i(t)}))}));const s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let e=t.width,s=t.height;i.getData(t).then((i=>{this.orientation=i.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&e<o&s<o?this.imgs=this.img:(e>o&&(s=s/e*o,e=o),s>o&&(e=e/s*o,s=o),this.checkOrientationImage(t,this.orientation,e,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var e=new XMLHttpRequest;e.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},e.open("GET",this.img,!0),e.responseType="blob",e.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,o=this.rotate,h=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=h*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),o){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*o*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*o*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=h*this.scale,e=r*this.scale;switch(i.save(),o){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1),s||this.changeImgScale(o,h,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,o=this.trueHeight,h=s*i,r=o*i;if(h>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/o,i=this.cropH<=o*t?t:e;this.scale=i,h=s*i,r=o*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2:this.x=e.x1-(s-h)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2-r+this.cropW:this.x=e.x2-(s-h)/2-h),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(o-r)/2-(r-h)/2:this.y=e.y1-(o-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(o-r)/2-(r-h)/2-h:this.y=e.y2-(o-r)/2-r)),(h<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=e._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({name:"cropper"}),g=t.defineComponent({...u,props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(i){const{postSinglefile:s,postUpdateFile:o}=e.useFileController(),h=i;let r=t.ref({});t.onMounted((async()=>{r.value=await e.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let f=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},m=t=>{const e=t||1;g.value.changeScale(e)},w=()=>{g.value.refresh()};const v=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return e.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||e.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:v},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(m)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(m)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(f)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(f)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(w)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),f=e._export_sfc(g,[["__scopeId","data-v-730d1d41"]]);exports.default=f;
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./roleItem-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./roleItem-CEmoP--8.js"),o=require("./userSelect.vue_vue_type_script_setup_true_lang-Cm9Glts3.js"),s=require("./index-CGShlf89.js"),r={class:"system-menu-container layout-padding"},n=e.defineComponent({name:"systemRole"}),a=e.defineComponent({...n,setup:n=>(n,a)=>{const u=e.resolveComponent("el-button"),l=e.resolveComponent("el-card");return e.openBlock(),e.createElementBlock("div",r,[e.createVNode(l,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createVNode(t.default),e.createVNode(u,{size:"default",type:"success",class:"ml10",onClick:a[0]||(a[0]=e=>{return t="add",void s.showPopup(o._sfc_main,{type:t,row:r},{title:"新增角色",showFooter:!1,width:"520px",height:"550px",lockView:!1,mask:!1,onConfirm(){console.debug("onConfirm")},success(e){}});var t,r})},{default:e.withCtx((()=>a[1]||(a[1]=[e.createTextVNode(" 新增角色 ")]))),_:1,__:[1]})])),_:1})])}}),u=s._export_sfc(a,[["__scopeId","data-v-ee38aa96"]]);exports.default=u;
|
|
@@ -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-BIXZxRp_.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("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CGShlf89.js"),o=require("./index-D3y2E_dR.js"),l=require("./index.vue_vue_type_script_setup_true_lang-aqRMCJq1.js"),a=o.useFieldConfigController();const i={class:"system-menu-container layout-padding"},n=e.defineComponent({name:"fieldPool"}),d=e.defineComponent({...n,setup(o){const n=e.ref(),d=e=>{n.value=e},{addField:r,editField:c,deleteField:s}=function(o){const i=e.reactive({}),n=(e,a)=>{t.showPopup(l._sfc_main,{dialog_type:e,row:a},{title:"add"==e?"新增字典配置":"编辑字段配置",mask:!0,async success({type:e,close:t,data:l}){var a;"cancel"==e?t():"confirm"==e&&"success"==await l()&&(t(),null==(a=o.value)||a.fetchTableData({}))}})};return{poolData:i,addField:()=>{n("add")},editField:e=>{n("edit",e)},deleteField:l=>{t.ElMessageBox.confirm(`确认删除【${l.field_name}】字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",closeOnClickModal:!1,type:"warning"}).then((()=>{a.postDelFieldPoolById({id:l.id}).then((l=>{var a,i;if(1!=l.code)return t.ElMessage.warning(l.msg);t.ElMessage.success("删除成功");let n=e.toValue(null==(a=o.value)?void 0:a.formData)||{};null==(i=o.value)||i.fetchTableData(n)}))}))}}}(n);return(t,o)=>{const l=e.resolveComponent("hs-button"),a=e.resolveComponent("bc-box");return e.openBlock(),e.createElementBlock("div",i,[e.createVNode(a,{id:"1710819624063",type:"1",projectCode:"scmp",isAuth:!1,mid:"3ec707509a534ef28ed3ab4744b1121f",onReady:d},{btn_add:e.withCtx((()=>[e.createVNode(l,{size:"default",type:"primary",onClick:e.unref(r)},{default:e.withCtx((()=>o[0]||(o[0]=[e.createTextVNode("新增")]))),_:1,__:[0]},8,["onClick"])])),field_type:e.withCtx((({row:t})=>[e.createTextVNode(e.toDisplayString("2"==t.field_type?"查询条件字段或表单字段":"表格字段"),1)])),table_btn_edit:e.withCtx((({row:t})=>[e.createVNode(l,{type:"primary",size:"small",text:"",onClick:o=>e.unref(c)(t)},{default:e.withCtx((()=>o[1]||(o[1]=[e.createTextVNode("编辑")]))),_:2,__:[1]},1032,["onClick"])])),table_btn_delete:e.withCtx((({row:t})=>[e.createVNode(l,{type:"primary",size:"small",text:"",onClick:o=>e.unref(s)(t)},{default:e.withCtx((()=>o[2]||(o[2]=[e.createTextVNode("删除")]))),_:2,__:[2]},1032,["onClick"])])),_:1})])}}});exports.default=d;
|
|
@@ -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-CGShlf89.js"),o=require("./dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-D5GeHkRs.js"),n=require("./index-D3y2E_dR.js"),a=require("./index-C1S-l1hc.js"),i=n.useFieldConfigController(),r=a.useDataPermissionController();const l={class:"system-menu-container layout-padding"},s=e.defineComponent({name:"dataAuth"}),d=e.defineComponent({...s,setup(n){const a=e.ref();function s(e){a.value=e,a.value}e.onMounted((()=>{d()}));const{getPageConfig:d,openAddDialog:c,openEditDialog:u,deleteRow:p}=function(n){const a=e.ref(),l=()=>{var t;let o=e.toValue(n.value.formData);null==(t=n.value)||t.fetchTableData({...o})},s=(e,n)=>{t.showPopup(o._sfc_main,{type:e,row:n,search:l},{title:"add"==e?"新增数据权限":"修改数据权限",showFooter:!1,width:"600px",height:"380px",mask:!0})};return{getPageConfig:()=>{i.getFieldListPage({config_type:"1",config_unique_id:"1710555261080",project_code:"scmp",qry_page_name_like:"数据权限"}).then((e=>{let t=e.data&&e.data.customPageList;if(t&&t[0]&&t[0].business_json){let e=JSON.parse(t[0].business_json);a.value=e}})).catch((e=>{}))},openAddDialog:e=>{s(e)},openEditDialog:(e,t)=>{s(e,t)},deleteRow:e=>{t.ElMessageBox.confirm(`确认删除【${e.config_label}】数据权限吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((()=>{r.postDeleteDataPermissionConfig({id:e.id}).then((e=>{if(1!=e.code)return t.ElMessage.warning(e.msg);t.ElMessage.success(e.msg),l()}))})).catch((()=>{}))},tableData:a}}(a);return(t,o)=>{const n=e.resolveComponent("bc-icon"),a=e.resolveComponent("hs-button"),i=e.resolveComponent("bc-box");return e.openBlock(),e.createElementBlock("div",l,[e.createVNode(i,{id:"1710555261080",mid:"24756d565d164566bc5015118936f84a",type:"1",projectCode:"scmp",isAuth:!1,onReady:s},{btn_add:e.withCtx((()=>[e.createVNode(a,{size:"small",type:"primary",onClick:o[0]||(o[0]=t=>e.unref(c)("add"))},{default:e.withCtx((()=>[e.createVNode(n,{name:"ele-Plus"}),o[1]||(o[1]=e.createTextVNode("新增"))])),_:1,__:[1]})])),table_btn_edit:e.withCtx((({row:t,column:n})=>[e.createVNode(a,{size:"small",text:"",type:"primary",onClick:o=>e.unref(u)("edit",t)},{default:e.withCtx((()=>o[2]||(o[2]=[e.createTextVNode("编辑")]))),_:2,__:[2]},1032,["onClick"])])),table_btn_delete:e.withCtx((({row:t,column:n})=>[e.createVNode(a,{size:"small",text:"",type:"primary",onClick:o=>e.unref(p)(t)},{default:e.withCtx((()=>o[3]||(o[3]=[e.createTextVNode("删除")]))),_:2,__:[3]},1032,["onClick"])])),_:1})])}}});exports.default=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, ref, defineComponent, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, unref, withCtx, createTextVNode, withKeys, createElementVNode, renderList, toDisplayString } from "vue";
|
|
2
|
-
import { c as _, b as ElMessage, w as getDataType, _ as _export_sfc } from "./index-
|
|
3
|
-
import { u as usePostMan } from "./index-
|
|
2
|
+
import { c as _, b as ElMessage, w as getDataType, _ as _export_sfc } from "./index-BIXZxRp_.mjs";
|
|
3
|
+
import { u as usePostMan } from "./index-BwkbnkVl.mjs";
|
|
4
4
|
const postMan = usePostMan();
|
|
5
5
|
let textareaRef = ref();
|
|
6
6
|
let state = reactive({
|
|
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-BIXZxRp_.mjs";
|
|
4
4
|
import { l as logoMini } from "./logo-mini-BQ9BrQ1U.mjs";
|
|
5
5
|
const _hoisted_1 = ["src"];
|
|
6
6
|
const _hoisted_2 = ["src"];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, toValue, defineComponent, onMounted, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, unref, createTextVNode } from "vue";
|
|
2
|
-
import { E as ElMessageBox, b as ElMessage, s as showPopup } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-
|
|
4
|
-
import { u as useFieldConfigController } from "./index-
|
|
5
|
-
import { u as useDataPermissionController } from "./index-
|
|
2
|
+
import { E as ElMessageBox, b as ElMessage, s as showPopup } from "./index-BIXZxRp_.mjs";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DpBS-Uld.mjs";
|
|
4
|
+
import { u as useFieldConfigController } from "./index-B91eywvf.mjs";
|
|
5
|
+
import { u as useDataPermissionController } from "./index-6ojALsT9.mjs";
|
|
6
6
|
const fieldController = useFieldConfigController();
|
|
7
7
|
const dataPermissionController = useDataPermissionController();
|
|
8
8
|
function useDataAuth(tableApi) {
|
|
@@ -125265,7 +125265,7 @@ const dynamicRoutes = [
|
|
|
125265
125265
|
{
|
|
125266
125266
|
path: "/",
|
|
125267
125267
|
name: "/",
|
|
125268
|
-
component: () => import("./index-
|
|
125268
|
+
component: () => import("./index-NkrgQq_Y.mjs"),
|
|
125269
125269
|
redirect: "/home",
|
|
125270
125270
|
meta: {
|
|
125271
125271
|
isKeepAlive: true
|
|
@@ -125277,7 +125277,7 @@ const notFoundAndNoPower = [
|
|
|
125277
125277
|
{
|
|
125278
125278
|
path: "/:path(.*)*",
|
|
125279
125279
|
name: "notFound",
|
|
125280
|
-
component: () => import("./404-
|
|
125280
|
+
component: () => import("./404-DmVMXD_9.mjs"),
|
|
125281
125281
|
meta: {
|
|
125282
125282
|
title: "找不到此页面",
|
|
125283
125283
|
isHide: true
|
|
@@ -125286,7 +125286,7 @@ const notFoundAndNoPower = [
|
|
|
125286
125286
|
{
|
|
125287
125287
|
path: "/401",
|
|
125288
125288
|
name: "noPower",
|
|
125289
|
-
component: () => import("./401-
|
|
125289
|
+
component: () => import("./401-CpK9yhl7.mjs"),
|
|
125290
125290
|
meta: {
|
|
125291
125291
|
title: "没有权限",
|
|
125292
125292
|
isHide: true
|
|
@@ -125297,7 +125297,7 @@ const staticRoutes = [
|
|
|
125297
125297
|
{
|
|
125298
125298
|
path: "/login",
|
|
125299
125299
|
name: "login",
|
|
125300
|
-
component: () => import("./index-
|
|
125300
|
+
component: () => import("./index-C40z4Mqn.mjs"),
|
|
125301
125301
|
meta: {
|
|
125302
125302
|
title: "登录"
|
|
125303
125303
|
}
|
|
@@ -125996,8 +125996,8 @@ function useMenuController() {
|
|
|
125996
125996
|
};
|
|
125997
125997
|
}
|
|
125998
125998
|
const menuApi = useMenuController();
|
|
125999
|
-
const layouModules = /* @__PURE__ */ Object.assign({ "../layout/routerView/iframes.vue": () => import("./iframes-CWdXFiYU.mjs"), "../layout/routerView/link.vue": () => import("./link-
|
|
126000
|
-
const viewsModules = /* @__PURE__ */ Object.assign({ "../views/config/buttonManagement/btnIndex.vue": () => import("./btnIndex-
|
|
125999
|
+
const layouModules = /* @__PURE__ */ Object.assign({ "../layout/routerView/iframes.vue": () => import("./iframes-CWdXFiYU.mjs"), "../layout/routerView/link.vue": () => import("./link-Cdrfh--2.mjs"), "../layout/routerView/parent.vue": () => import("./parent-Ccf2OoOy.mjs") });
|
|
126000
|
+
const viewsModules = /* @__PURE__ */ Object.assign({ "../views/config/buttonManagement/btnIndex.vue": () => import("./btnIndex-D26Qtpla.mjs"), "../views/config/buttonManagement/dialog.vue": () => import("./dialog-ixS0aFey.mjs"), "../views/config/buttonManagement/index.vue": () => import("./index-DZ_UFJE2.mjs"), "../views/config/dataAuth/dialog.vue": () => import("./dialog-CbX4hEg2.mjs"), "../views/config/dataAuth/index.vue": () => import("./index-BFNrFVK0.mjs"), "../views/config/dataDict/components/dict/dictDialog.vue": () => import("./dictDialog-CmGBTiru.mjs"), "../views/config/dataDict/components/dictItem/dictItemDialog.vue": () => import("./dictItemDialog-DFGxk_TY.mjs"), "../views/config/dataDict/index.vue": () => import("./index-CQhbtlnv.mjs"), "../views/config/fieldPool/components/dialog/index.vue": () => import("./index-CwvwqJMy.mjs"), "../views/config/fieldPool/components/formAttr/index.vue": () => import("./index-DT_9qaWm.mjs"), "../views/config/fieldPool/components/searchFormAttr/index.vue": () => import("./index-DxyS5lsV.mjs"), "../views/config/fieldPool/components/tableAttr/index.vue": () => import("./index-jh81K8IH.mjs"), "../views/config/fieldPool/index.vue": () => import("./index-B2oGtTKL.mjs"), "../views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue": () => import("./hsAttrBtn-HOI5_5Qb.mjs"), "../views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue": () => import("./hsBtnConfigList-DfmE-QV6.mjs"), "../views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue": () => import("./hsBtnItemConfig-C-xvQ__p.mjs"), "../views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue": () => import("./hsBtnPanel-gIF0jLTC.mjs"), "../views/config/formSetting/components/hsExpand/src/hsExpand.vue": () => import("./hsExpand-BYy7WhlA.mjs"), "../views/config/formSetting/components/hsForm/src/contextmenu.vue": () => import("./contextmenu-Ct0KWEB7.mjs"), "../views/config/formSetting/components/hsForm/src/hsAttrForm.vue": () => import("./hsAttrForm-BQ3AtFFo.mjs"), "../views/config/formSetting/components/hsForm/src/hsCheckbox.vue": () => import("./hsCheckbox-CalDndlZ.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormConfig.vue": () => import("./hsFormConfig-EHAJcB7M.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormConfigList.vue": () => import("./hsFormConfigList-ihbwV8k3.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormPanel.vue": () => import("./hsFormPanel-U30VvELy.mjs"), "../views/config/formSetting/components/hsForm/src/hsFormParse.vue": () => import("./hsFormParse-Ckmma758.mjs"), "../views/config/formSetting/components/hsSaveForm/src/cloneConfigDialog.vue": () => import("./cloneConfigDialog-DUpNh70y.mjs").then((n3) => n3.c), "../views/config/formSetting/components/hsSaveForm/src/saveForm.vue": () => import("./saveForm-Cj9FwLC9.mjs"), "../views/config/formSetting/components/selectConfig/selectConfig.vue": () => import("./selectConfig-B31j9KD9.mjs"), "../views/config/formSetting/formConfig.vue": () => import("./formConfig-JM1wy5o8.mjs"), "../views/config/formSetting/index.vue": () => import("./index-C6o7nEX8.mjs"), "../views/config/index.vue": () => import("./index-mGzB3Yir.mjs"), "../views/config/pageElement/components/hsPanelItem/hsPanelItem.vue": () => import("./hsPanelItem-DRhlDB_3.mjs"), "../views/config/pageElement/index.vue": () => import("./index-bgbkO0rB.mjs"), "../views/config/parseAPI/index.vue": () => import("./index-BCezXoIF.mjs"), "../views/config/system2/component/addOrEditSystem/index.vue": () => import("./index-7S_rKRW5.mjs"), "../views/config/system2/component/copySystem/copySystem.vue": () => import("./copySystem-B5hxeoZ3.mjs"), "../views/config/system2/index.vue": () => import("./index-CawYbGNB.mjs"), "../views/config/table/index.vue": () => import("./index-CwA2CLzR.mjs"), "../views/error/401.vue": () => import("./401-CpK9yhl7.mjs"), "../views/error/404.vue": () => import("./404-DmVMXD_9.mjs"), "../views/home/index.vue": () => import("./index-DvSA1UFn.mjs"), "../views/login/component/account.vue": () => import("./account-C2aOPVVK.mjs"), "../views/login/component/mobile.vue": () => import("./mobile-dbTtJxh5.mjs"), "../views/login/component/scan.vue": () => import("./scan-rH8jxQZc.mjs"), "../views/login/index.vue": () => import("./index-C40z4Mqn.mjs"), "../views/system/dept/dialog.vue": () => import("./dialog-BpY5TPcI.mjs"), "../views/system/dept/index.vue": () => import("./index-Cz2HAgY0.mjs"), "../views/system/dic/dialog.vue": () => import("./dialog-DQP53khI.mjs"), "../views/system/dic/index.vue": () => import("./index-rU_UBjXO.mjs"), "../views/system/menu/copyMenuConfig.vue": () => import("./copyMenuConfig-C9BCXVqD.mjs"), "../views/system/menu/dialog.vue": () => import("./dialog-_7hzQf-z.mjs"), "../views/system/menu/index.vue": () => import("./index-BShirvW1.mjs"), "../views/system/role/component/roleItem.vue": () => import("./roleItem-CADE7G2B.mjs"), "../views/system/role/component/userSelect.vue": () => import("./userSelect-B-41D1Q8.mjs"), "../views/system/role/index.vue": () => import("./index-4yJx5YNF.mjs"), "../views/system/user/compoent/popup/popup.vue": () => import("./popup-Cx6pfUfB.mjs"), "../views/system/user/index.vue": () => import("./index-zGRl7YOJ.mjs"), "../views/test/auth/index.vue": () => import("./index-feq0FF6W.mjs"), "../views/test/cropper/index.vue": () => import("./index-BWfkkCwM.mjs"), "../views/test/form/index.vue": () => import("./index-DT3c6iM1.mjs"), "../views/test/rtc/index.vue": () => import("./index-D9KdwSfA.mjs"), "../views/test/signature/index.vue": () => import("./index-DCk208wU.mjs"), "../views/test/table/index copy.vue": () => import("./index copy-DCzy5rZs.mjs"), "../views/test/table/index.vue": () => import("./index-BLqSLD81.mjs"), "../views/test/test2/index.vue": () => import("./index-BBU9ap-M.mjs"), "../views/test/upload/index.vue": () => import("./index-PCI3lWru.mjs"), "../views/test/visual/index copy.vue": () => import("./index copy-CbbHdCsl.mjs"), "../views/test/visual/index.vue": () => import("./index-g_BDa62N.mjs") });
|
|
126001
126001
|
const dynamicViewsModules = Object.assign({}, { ...layouModules }, { ...viewsModules });
|
|
126002
126002
|
async function initBackEndControlRoutes() {
|
|
126003
126003
|
if (window.nextLoading === void 0) NextLoading.start();
|
|
@@ -183980,20 +183980,21 @@ function getAuthData(data) {
|
|
|
183980
183980
|
}
|
|
183981
183981
|
function getShowData$2(data) {
|
|
183982
183982
|
const fields = {
|
|
183983
|
-
btns: getShowField$2(data.btns),
|
|
183984
|
-
form: getShowField$2(data.form),
|
|
183983
|
+
btns: getShowField$2(data.btns, data),
|
|
183984
|
+
form: getShowField$2(data.form, data),
|
|
183985
183985
|
tables: {}
|
|
183986
183986
|
};
|
|
183987
183987
|
data.tables.forEach((j2) => {
|
|
183988
|
-
fields.tables[j2.id] = getShowField$2(j2.data);
|
|
183988
|
+
fields.tables[j2.id] = getShowField$2(j2.data, data);
|
|
183989
183989
|
});
|
|
183990
183990
|
return fields;
|
|
183991
183991
|
}
|
|
183992
|
-
function getShowField$2(data) {
|
|
183992
|
+
function getShowField$2(data, config3) {
|
|
183993
183993
|
const authData2 = {
|
|
183994
|
-
auth_data_func_01_000: data.filter((j2) => j2.fieldShow).map((j2) => j2.fieldProp)
|
|
183994
|
+
auth_data_func_01_000: data.filter((j2) => j2.fieldShow || config3.is_auth !== 1).map((j2) => j2.fieldProp)
|
|
183995
183995
|
};
|
|
183996
183996
|
data.forEach((j2) => {
|
|
183997
|
+
j2.fieldShow = j2.fieldShow || config3.is_auth !== 1;
|
|
183997
183998
|
authData2[j2.fieldProp] = j2;
|
|
183998
183999
|
});
|
|
183999
184000
|
return authData2;
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),o=require("./index-CGShlf89.js"),r={class:"system-menu-container layout-padding"},l={class:"h-full overflow-auto bg-white pl-3"},n={key:0,class:"my-4 title"},a={class:"flex flex-wrap gap-2"},c=["onClick"],i=e.defineComponent({name:"home"}),m=e.defineComponent({...i,setup(i){o.fixedNumAccuracy("0");const m=o.useRoutesList(),s=t.useRouter(),u=e.computed((()=>m.routesList.map((e=>(e.color=function(){const e=Math.floor(256*Math.random()*.9),t=Math.floor(256*Math.random()*.9),o=Math.floor(256*Math.random()*.9);return{"--color-item":`rgba(${e},${t},${o},1)`,"--bg-item":`rgba(${e},${t},${o},0.1)`}}(),e)))));return(t,o)=>{const i=e.resolveComponent("bc-icon");return e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("div",l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(t=>{var o;return e.openBlock(),e.createElementBlock("div",{key:t.name,class:"wraper",style:e.normalizeStyle(t.color)},["/home"!==t.path?(e.openBlock(),e.createElementBlock("div",n,e.toDisplayString(null==(o=t.meta)?void 0:o.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,(t=>{var o,r;return e.openBlock(),e.createElementBlock("p",{key:t.nmae,class:"item",onClick:o=>e.unref(s).push(`${t.path}?mid=${t.id}`)},[e.createVNode(i,{name:null==(o=t.meta)?void 0:o.icon},null,8,["name"]),e.createTextVNode(" "+e.toDisplayString(null==(r=t.meta)?void 0:r.title),1)],8,c)})),128))])],4)})),128))])])}}}),s=o._export_sfc(m,[["__scopeId","data-v-eb1b795e"]]);exports.default=s;
|
|
@@ -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-cdQnYg6S.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-BIXZxRp_.mjs";
|
|
5
|
+
import { _ as _sfc_main$3 } from "./dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Chu8ztMv.mjs";
|
|
6
|
+
import { _ as _sfc_main$2 } from "./copyMenuConfig.vue_vue_type_script_setup_true_lang-DU2z5jYV.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,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-BIXZxRp_.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-CGShlf89.js"),i=require("./index-D20mzeXv.js"),c=require("./dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-TkkUg5VX.js"),a=require("./dictItemDialog.vue_vue_type_script_setup_true_lang-DJz_-Coj.js"),o=i.useDictController();const d={class:"system-menu-container layout-padding"},l={class:"flex",style:{height:"5%"}},n={class:"flex",style:{height:"95%"}},r={class:"w-1/5 border-1 border-solid border-slate-300"},s={class:"overflow-y-auto",style:{height:"95%"}},u=["onClick"],f={class:"flex-1 h-full"},m={class:"flex"},h=e.defineComponent({name:"dataDict"}),_=e.defineComponent({...h,setup(i){const{addDict:h,deleteDict:_,addDictItem:p,getDictData:D,choseDict:v,editDictItem:g,deleteDictItem:V,searchDict:C,onChangeEffect:x,onChangeDefault:y,dict:w}=function(){const i=e.reactive({keyword:"",dictData:[],originDictData:[],currentDict:void 0,dictItemData:[]}),d=()=>{o.getDictListByProject({project_code:"scmp"}).then((e=>{1==e.code&&(i.originDictData=e.data,l(),i.currentDict||(i.currentDict=e.data[0]||void 0,i.currentDict&&n()))}))},l=()=>{i.dictData=t._.cloneDeep(i.originDictData).filter((e=>t._.includes(e.dict_name,i.keyword)||t._.includes(e.dict_code,i.keyword)))},n=()=>{var e,t;(null==(e=i.currentDict)?void 0:e.id)&&o.getListPageDictChild({dict_id:null==(t=i.currentDict)?void 0:t.id}).then((e=>{i.dictItemData=e.data}))},r=(e,c)=>{t.showPopup(a._sfc_main,{dict:i.currentDict,dictList:i.originDictData,type:e,dictItem:c||void 0},{title:"edit"==e?"编辑字典项":"新增字典项",confirmButtonText:"保存",mask:!0,width:500,height:500,async success({type:e,close:t,data:i}){"cancel"==e?t():"confirm"==e&&"success"==await i()&&(t(),n())}})};return{addDict:()=>{t.showPopup(c._sfc_main,{},{title:"新增字典",mask:!0,width:500,height:400,confirmButtonText:"保存",async success({type:e,close:t,data:i}){"cancel"==e?t():"confirm"==e&&"success"==await i()&&(t(),d())}})},deleteDict:()=>{var e;t.ElMessageBox.confirm(`确认删除字典${null==(e=i.currentDict)?void 0:e.dict_name}”吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((()=>{var e;o.postDelDictInfo({id:null==(e=i.currentDict)?void 0:e.id}).then((e=>{1==e.code&&(i.currentDict=void 0,t.ElMessage.success("删除成功"),d())}))}))},addDictItem:()=>{r("add")},getDictData:d,choseDict:e=>{i.currentDict=e,n()},editDictItem:e=>{r("edit",e)},deleteDictItem:e=>{t.ElMessageBox.confirm(`确认删除字典项“${e.dict_child_name}”吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((()=>{o.postDelDictChildInfo({id:e.id}).then((e=>{1==e.code&&(t.ElMessage.success("删除成功"),n())}))}))},searchDict:l,onChangeEffect:(e,i)=>{"1"!=e&&"0"!=e||o.postUpdateSwitch({id:i.id,is_effect:e}).then((e=>{1==e.code&&t.ElMessage.success(e.msg),n()}))},onChangeDefault:(e,c)=>{var a;o.postUpdateDefault({dict_id:null==(a=i.currentDict)?void 0:a.id,id:c.id,is_default:e}).then((e=>{1==e.code&&t.ElMessage.success(e.msg),n()}))},dict:i}}();return e.onMounted((()=>{D()})),(t,i)=>{const c=e.resolveComponent("hs-button"),a=e.resolveComponent("hs-input"),o=e.resolveComponent("vxe-column"),D=e.resolveComponent("hs-switch"),N=e.resolveComponent("vxe-table"),k=e.resolveComponent("el-card");return e.openBlock(),e.createElementBlock("div",d,[e.createVNode(k,{shadow:"hover",class:"layout-padding-auto"},{default:e.withCtx((()=>[e.createElementVNode("div",l,[e.createVNode(c,{type:"primary",size:"default",onClick:e.unref(h)},{default:e.withCtx((()=>i[1]||(i[1]=[e.createTextVNode("新增字典")]))),_:1,__:[1]},8,["onClick"]),e.unref(w).currentDict?(e.openBlock(),e.createBlock(c,{key:0,type:"primary",size:"default",onClick:e.unref(_)},{default:e.withCtx((()=>i[2]||(i[2]=[e.createTextVNode("删除字典")]))),_:1,__:[2]},8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(c,{type:"primary",size:"default",onClick:e.unref(p)},{default:e.withCtx((()=>i[3]||(i[3]=[e.createTextVNode("新增字典项")]))),_:1,__:[3]},8,["onClick"])]),e.createElementVNode("div",n,[e.createElementVNode("div",r,[e.createVNode(a,{placeholder:"字典列表","suffix-icon":"ele-Search",modelValue:e.unref(w).keyword,"onUpdate:modelValue":i[0]||(i[0]=t=>e.unref(w).keyword=t),onInput:e.unref(C)},null,8,["modelValue","onInput"]),e.createElementVNode("div",s,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w).dictData,((t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex bg-white p-4 border-0 border-b border-dashed border-slate-400 hover:bg-cyan-100",""+(e.unref(w).currentDict&&e.unref(w).currentDict.id==t.id?"active":"")]),key:c,onClick:i=>e.unref(v)(t)},[e.createElementVNode("div",null,e.toDisplayString(t.dict_name)+" ",1),i[4]||(i[4]=e.createTextVNode(" - ")),e.createElementVNode("div",null," "+e.toDisplayString(t.dict_code),1)],10,u)))),128))])]),e.createElementVNode("div",f,[e.createVNode(N,{data:e.unref(w).dictItemData,height:"auto"},{default:e.withCtx((()=>[e.createVNode(o,{type:"seq",width:"60"}),e.createVNode(o,{field:"dict_child_code",title:"字典项代码"}),e.createVNode(o,{field:"dict_child_name",title:"字典项名称"}),e.createVNode(o,{field:"show_name",title:"显示名称"}),e.createVNode(o,{field:"sort",title:"排序"}),e.createVNode(o,{field:"remark",title:"字典说明"}),e.createVNode(o,{field:"is_effect",title:"开关"},{default:e.withCtx((({row:t})=>[e.createVNode(D,{size:"default",modelValue:t.is_effect,"onUpdate:modelValue":e=>t.is_effect=e,"active-value":"1","inactive-value":"0",onChange:i=>e.unref(x)(i,t)},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:1}),e.createVNode(o,{field:"is_default",title:"默认值"},{default:e.withCtx((({row:t})=>[e.createVNode(D,{size:"default",modelValue:t.is_default,"onUpdate:modelValue":e=>t.is_default=e,"active-value":"1","inactive-value":"0",onChange:i=>e.unref(y)(i,t)},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:1}),e.createVNode(o,{title:"操作",fixed:"right"},{default:e.withCtx((({row:t})=>[e.createElementVNode("div",m,[e.createVNode(c,{text:"",size:"small",onClick:i=>e.unref(g)(t),type:"primary"},{default:e.withCtx((()=>i[5]||(i[5]=[e.createTextVNode("编辑")]))),_:2,__:[5]},1032,["onClick"]),e.createVNode(c,{text:"",size:"small",onClick:i=>e.unref(V)(t),type:"primary"},{default:e.withCtx((()=>i[6]||(i[6]=[e.createTextVNode("删除")]))),_:2,__:[6]},1032,["onClick"])])])),_:1})])),_:1},8,["data"])])])])),_:1})])}}}),p=t._export_sfc(_,[["__scopeId","data-v-94679299"]]);exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-CGShlf89.js"),o={},r={class:"system-menu-container layout-padding"};const n=t._export_sfc(o,[["render",function(t,o){const n=e.resolveComponent("hs-select");return e.openBlock(),e.createElementBlock("div",r,[e.createVNode(n)])}]]);exports.default=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r={};const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r={};const t=require("./index-CGShlf89.js")._export_sfc(r,[["render",function(r,t){return e.openBlock(),e.createElementBlock("div",null,"表单属性配置")}]]);exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_name_iconSelector_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_name_iconSelector_lang-C8_P1OY8.js");exports.default=e._sfc_main;
|
|
@@ -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-BlQbE1hu.js");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./index-
|
|
1
|
+
"use strict";const e=require("./index-CGShlf89.js"),s=(e,s)=>Object.assign(e,{other_log_info:{title:s}}),t=(t={})=>(t=s(t,"获取数据权限信息列表"),e.request({url:"/scmp-web/pri/data_permission/get_data_permission_config_list",method:"get",params:t})),i=(t={})=>(t=s(t,"获取数据权限信息分页列表"),e.request({url:"/scmp-web/pri/data_permission/get_data_permission_config_page_list",method:"get",params:t})),a=(t={})=>(t=s(t,"删除"),e.request({url:"/scmp-web/pri/data_permission/delete_data_permission_config",method:"post",data:t})),o=(t={})=>(t=s(t,"保存数据权限信息"),e.request({url:"/scmp-web/pri/data_permission/save_data_permission_config",method:"post",data:t}));exports.useDataPermissionController=function(){return{getDataPermissionConfigList:t,getDataPermissionConfigPageList:i,postDeleteDataPermissionConfig:a,postSaveDataPermissionConfig:o}};
|