@utogether/udp-core 2.0.0-beta.1 → 2.0.0-beta.4
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/{403-CTJDBjz7.js → 403-CekcmGOc.js} +3 -3
- package/dist/403-CxOqlq0f-C28ufSE6.js +65 -0
- package/dist/403-WCboRvzZ-ZAPgYStl-Ck7rlpC9.js +65 -0
- package/dist/404-2V0Qi-d7-DkNwQggp-3kilva5o.js +65 -0
- package/dist/{404-BFYkWIkQ.js → 404-DeSH9KnK.js} +1 -1
- package/dist/404-xdB6lFeQ-DRhUFuKU.js +65 -0
- package/dist/500-BYfzvixf-CGpEieyQ-DLrc9brB.js +67 -0
- package/dist/500-C94bRK2S-_XtNljMI.js +67 -0
- package/dist/{500-DGG3qadg.js → 500-DHOHlmtv.js} +2 -2
- package/dist/{AuthorityInfo-ozZIo1Te.js → AuthorityInfo-BC8U3Zk4.js} +1 -1
- package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5-ChKFxbGl.js +4 -0
- package/dist/AuthorityInfo-Dy3b_nFN-BBC0HKlV.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY-BgLN7Lgx.js +100 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz-B8tPqh_7.js +100 -0
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DVFi0qOJ.js} +2 -2
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE-DAeYw45g.js +4 -0
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8-C6jMEDJq.js +114 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +114 -0
- package/dist/Company-B4vsXy2I-CkNCOqjJ-PjoD0ztY.js +25 -0
- package/dist/{Company-6VJtwh23.js → Company-Byq4p14C.js} +3 -3
- package/dist/Company-gKkfnhLt-BReGxz7n.js +25 -0
- package/dist/CompanyPanel-BF5Pc35s-CtpymP6a.js +206 -0
- package/dist/{CompanyPanel-B2P488mq.js → CompanyPanel-CIHP7rVd.js} +7 -7
- package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_-mYpxegRQ.js +206 -0
- package/dist/DataSet-DT-rGICv-DaUfgbxk-YztlXv7w.js +147 -0
- package/dist/DataSet-DT-rGICv-DaUfgbxk.js +147 -0
- package/dist/{Department-BnwoLEOC.js → Department-CxgSq34X.js} +3 -3
- package/dist/Department-D0I3QVZe-CfWPT-lY.js +25 -0
- package/dist/Department-D0dVUrGC-C6HJcYI1-DhAtBQym.js +25 -0
- package/dist/DepartmentPanel-2LHODgc7--VCCaEsu.js +254 -0
- package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd-V3QvVWmJ.js +254 -0
- package/dist/{DepartmentPanel-CRrrmxtv.js → DepartmentPanel-hYNqywSQ.js} +22 -22
- package/dist/DesignPanel-CtF3cAAQ-FM7zpexb.js +4 -0
- package/dist/DesignPanel-DdFl_ohi-uCwFxcl1-7p3ouXrw.js +4 -0
- package/dist/{DesignPanel-CvbccgX2.js → DesignPanel-GEhqXIAx.js} +1 -1
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY-CoM_RAUN.js +1013 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt-CcCVpy0f.js +1013 -0
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js → DesignPanel.vue_vue_type_style_index_0_lang-DxA6H5Ts.js} +3 -3
- package/dist/DictView-BzQLOf_P-DDicwdmM-B8CFC279.js +111 -0
- package/dist/DictView-H3V5hxg3-BQZWN2zT.js +111 -0
- package/dist/{DictView-Ce1LoVHh.js → DictView-tyGrHFO8.js} +1 -1
- package/dist/InvOrganization-BiGLnbqe-BK3vgYYR.js +74 -0
- package/dist/{InvOrganization-BwCFZO1X.js → InvOrganization-DjJ4XkxN.js} +2 -2
- package/dist/InvOrganization-atbhw0CI-BABbVt9V-BT8PkfWL.js +74 -0
- package/dist/{Org-0hzs6b0R.js → Org-3eHX7nBU.js} +2 -2
- package/dist/Org-BW1YHG-Q-Cow7JWlD-C7ygI7jx.js +39 -0
- package/dist/Org-DQTCQHNY-CEEpGGlZ.js +39 -0
- package/dist/{Preview--DnEAhwh.js → Preview-Cgc3O8vp.js} +1 -1
- package/dist/Preview-DJtVsoq1-CCGidQjJ-DQ_OC1-S.js +48 -0
- package/dist/Preview-DXaiis29-BYyNhC1p.js +48 -0
- package/dist/ReportDefine-BLh4CiER-D68a0DWB.js +10 -0
- package/dist/ReportDefine-CNx_ob99-6NQAHK-Q-BL5gB56o.js +10 -0
- package/dist/{ReportDefine-Cu983bTN.js → ReportDefine-FYxHLbPV.js} +1 -1
- package/dist/{ReportDesign-QsWXXgvo.js → ReportDesign-BTOVgMzz.js} +7 -7
- package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp-DTsrU_wq.js +165 -0
- package/dist/ReportDesign-Ni1YxrLC-DfziOJc3.js +165 -0
- package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda-c9iy6TZ_.js +75 -0
- package/dist/ReportQuery-C8G88_qF-BKknwX1u.js +75 -0
- package/dist/{ReportQuery-BjKIIhPu.js → ReportQuery-Dhy9sk04.js} +1 -1
- package/dist/{ReportQueryFrom-DIjBO6Fx.js → ReportQueryFrom-B1TE8lOG.js} +1 -1
- package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy-Cq4havLh.js +4 -0
- package/dist/ReportQueryFrom-CuZKPtB4-B_TaZr-N.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW-CdTqG6KF.js +178 -0
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-D93NL2N7.js} +7 -7
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl-kdXwDD3n.js +178 -0
- package/dist/ReportTemplate-BDANdIWv-D_IGjR1w-txJDRw_J.js +161 -0
- package/dist/{ReportTemplate-2uk9tJcy.js → ReportTemplate-C-EuU7mL.js} +8 -8
- package/dist/ReportTemplate-DFnDXWmx-QQkaZRvV.js +161 -0
- package/dist/Role-BQ7hsfPn-BLwTiMMj.js +25 -0
- package/dist/Role-ByB0WbxW-5E8Mb148-WoZV4JKV.js +25 -0
- package/dist/{Role-_QP8QEaI.js → Role-Dc1dZ0o9.js} +3 -3
- package/dist/{RoleAssign-C2gkcmEQ.js → RoleAssign-DDv65izq.js} +3 -3
- package/dist/RoleAssign-DW6iC_0v-Bis61auk-BB4DziuB.js +26 -0
- package/dist/RoleAssign-UPCg2d4G-g4V-duK9.js +26 -0
- package/dist/RolePanel-BM2MaQPU-CgcsbfaX-D28vR3Fh.js +4 -0
- package/dist/RolePanel-C-mQ5XRq-JQYWITkX.js +4 -0
- package/dist/{RolePanel-vnl_lXNY.js → RolePanel-CiDM8OSr.js} +1 -1
- package/dist/RolePanel-ClQy8DBL-DARL4O-o-DrElGZ66.js +4 -0
- package/dist/RolePanel-CoSXOCZN-BdCEhz3b.js +4 -0
- package/dist/{RolePanel-B8FPNGaA.js → RolePanel-Dw_pTEGV.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI-Bsk0Mun8.js +132 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF-CMTLt3Lp.js +154 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js → RolePanel.vue_vue_type_script_setup_true_lang-CG_KY7NS.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js → RolePanel.vue_vue_type_script_setup_true_lang-Ctq1lItN.js} +8 -8
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8-DPs8J-8D.js +132 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy-vZfwM6bG.js +154 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3-CTeY23xN.js +100 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk-D-4pB58A.js +100 -0
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js → ScrollPanel.vue_vue_type_style_index_0_lang-CyU7XjI3.js} +1 -1
- package/dist/Staff-CuxzvhD9-D0KTcyRh-Cj8NbX79.js +25 -0
- package/dist/Staff-D-CmvG1R-uwSWH8-m.js +25 -0
- package/dist/{Staff-CHWrMIEb.js → Staff-DMh451jL.js} +3 -3
- package/dist/{StaffInfo-Cpq2eayz.js → StaffInfo-2PhYcVaz.js} +1 -1
- package/dist/StaffInfo-CY7gUICu-EZUhUwIp-C8POP58u.js +4 -0
- package/dist/StaffInfo-Idhvuc6e-COVQmEz0.js +4 -0
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js → StaffInfo.vue_vue_type_script_setup_true_lang-CrCFms3g.js} +1 -1
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn-p0kltEdZ.js +108 -0
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU-Cj9lcXG6.js +108 -0
- package/dist/{StaffPanel-D2BMXt5p.js → StaffPanel-BrvkXT68.js} +1 -1
- package/dist/StaffPanel-CDDmAYE5-mLPGD2Nf.js +4 -0
- package/dist/StaffPanel-CwqG0_xr-CrvzLJoc-AX54GdZ3.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee-RiBDcMMj.js +143 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0-DFG90qAT.js +143 -0
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js → StaffPanel.vue_vue_type_script_setup_true_lang-DKr8VVOJ.js} +42 -42
- package/dist/SysUser-9Q2UJWhi-DprWXFlR-DUMl4Hfm.js +15 -0
- package/dist/{SysUser-om6H1BeC.js → SysUser-DLDd5do7.js} +2 -2
- package/dist/SysUser-a-j5bppr-CpP0s5DW.js +15 -0
- package/dist/SysUserPanel-6V232wwB-DI8apzmL.js +4 -0
- package/dist/{SysUserPanel-CH0HPP7h.js → SysUserPanel-DDQxi2Hk.js} +1 -1
- package/dist/SysUserPanel-bJy69O7x-BJtBgFEs-DEXctwBe.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy-CD9JQp9h.js +356 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen-BBtBr0VU.js +356 -0
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-DvOggZs6.js} +2 -2
- package/dist/SystemMenu-BnVeOSOQ-6HW3jX57.js +156 -0
- package/dist/SystemMenu-DGOAolc1-CJSLHP8i-DIUNb03s.js +156 -0
- package/dist/{SystemMenu-BkG_DKxA.js → SystemMenu-nFNfz4Nj.js} +7 -7
- package/dist/{UserInfo-D9croxUe.js → UserInfo-B9PLKur5.js} +1 -1
- package/dist/UserInfo-CKoOHkAM-DDWp0I_U-DEerO-y3.js +4 -0
- package/dist/UserInfo-Cax9b2nw-DBResyaY.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO-7IKIrGoq.js +160 -0
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js → UserInfo.vue_vue_type_style_index_0_lang-BwZNwtQH.js} +2 -2
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9-B2nI6TLi.js +160 -0
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes-CRQnmLCs.js +10 -0
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +10 -0
- package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
- package/dist/childView-0YZQ6GBn-CEqg7k5d-CDGM_XzZ.js +4 -0
- package/dist/{childView-BY_Ip-l1.js → childView-BEDVB_RG.js} +1 -1
- package/dist/{childView-CHp_TueS.js → childView-BRa268Qh.js} +1 -1
- package/dist/childView-DKG3eZo8-CCtKjCU7.js +4 -0
- package/dist/childView-DKkgi3yo-D47ft-vi-B5yI8Dk7.js +4 -0
- package/dist/childView-siumuBz0-CyYKsSPy.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa-BnvsyZ35.js +143 -0
- package/dist/{childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js → childView.vue_vue_type_style_index_0_lang-BcyosNSH.js} +8 -8
- package/dist/childView.vue_vue_type_style_index_0_lang-CUfXDS1q-DNNy6Qe3.js +180 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CW3EbAmW-D6Jvom5y.js +143 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK-ZSgCqafc.js +180 -0
- package/dist/{childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js → childView.vue_vue_type_style_index_0_lang-qsceJGeR.js} +8 -8
- package/dist/{code-rule-Ce6yWqCq.js → code-rule-CJ4FuOo1.js} +2 -2
- package/dist/code-rule-Dtoree6F-B4yeNvFw.js +148 -0
- package/dist/code-rule-wQyfgpNL-C4evD4Co-BOJCC1LY.js +148 -0
- package/dist/core.es.js +10 -10
- package/dist/cron-task-C-kryDtd-C0NuGZCe-DIJuoNx-.js +135 -0
- package/dist/{cron-task-DziaH0rI.js → cron-task-CXnv7hIa.js} +2 -2
- package/dist/cron-task-GSRgA7S5-D_xfN2g_.js +135 -0
- package/dist/flow-task-B07st2aD-CgQvagSQ-BaPlX6ds.js +10 -0
- package/dist/flow-task-B07st2aD-CgQvagSQ.js +10 -0
- package/dist/frameView-BOGA3ezf-QoSxzmSQ-BWs9F5mT.js +44 -0
- package/dist/frameView-Cy6wxW0K-BLdNZaGh.js +44 -0
- package/dist/{frameView-DNeCVQaY.js → frameView-g5e9PYdE.js} +1 -1
- package/dist/{index-BabfUVv_.js → index-BEAth5RR.js} +1057 -1033
- package/dist/layout-home-3Dy4onl4-COK554mq.js +228 -0
- package/dist/layout-home-CYHksXN_-Basy-3IH-Dnun4YUs.js +228 -0
- package/dist/layout-home-bl3JShSF.js +232 -0
- package/dist/layoutView-BaRvAbIa-xVgfqspc-zL46XaoI.js +3302 -0
- package/dist/layoutView-DMjNscJ--DvK2S5BQ.js +3302 -0
- package/dist/{layoutView-12Mlp9A2.js → layoutView-DmM9xk-X.js} +8 -8
- package/dist/log-in-Cx1dGik8-BVeEHeZ8-D7mV8pl4.js +117 -0
- package/dist/log-in-VAG6Cvcx-B6arurXx.js +117 -0
- package/dist/{log-in-1NGaA5OM.js → log-in-eGoxFTDE.js} +8 -8
- package/dist/log-out-COYdxrNC-ftopGZdE-Ch_UgXZv.js +130 -0
- package/dist/{log-out-B8_atGcQ.js → log-out-CthD_tSk.js} +4 -4
- package/dist/log-out-DZGaMCjC-OztBlMPh.js +130 -0
- package/dist/login-CqVMdNHs-CRJ-LWAK.js +241 -0
- package/dist/login-Dg9ofNS8-Bocp1XMA-DY4y3cAG.js +241 -0
- package/dist/{login-5dydO6GR.js → login-Dn7iO3SU.js} +16 -16
- package/dist/login-log-DJBGJVV0-AoOyj0jD-AoOyj0jD.js +70 -0
- package/dist/login-log-DJBGJVV0-AoOyj0jD.js +70 -0
- package/dist/{lov-view-DPvGUu3h.js → lov-view-Bt23RK6S.js} +7 -7
- package/dist/lov-view-C0T5prk8-B2DBmn55-BvzOsVW8.js +97 -0
- package/dist/lov-view-Cc68_28B-y4f2SzBr.js +97 -0
- package/dist/{menuInfo-DVADYfEK.js → menuInfo-BEmcSaIX.js} +1 -1
- package/dist/menuInfo-BIrIaJlH-Bxn4KTWH.js +4 -0
- package/dist/menuInfo-BZJ_q7bz-Drho-_QC-BK5n3Shr.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf-DEApwWGK.js +363 -0
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js → menuInfo.vue_vue_type_style_index_0_lang-CVuG-x2a.js} +2 -2
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X-gWYo2VJe.js +363 -0
- package/dist/{pda-app-BZXs-2BQ.js → pda-app-BKfXoKAs.js} +9 -9
- package/dist/pda-app-DnjphrRS-4tIZDsnN.js +710 -0
- package/dist/pda-app-m9hsppHo-B4xyja1o-9mD3zI7J.js +710 -0
- package/dist/redirect-BqegffKC-CBCIuqmz-46JkXpSM.js +15 -0
- package/dist/redirect-BqegffKC-CBCIuqmz.js +15 -0
- package/dist/resource-C6KEIXu--B_ddyecm-CFF-A4cr.js +97 -0
- package/dist/{resource-BZA9NFKc.js → resource-CshrvEYp.js} +4 -4
- package/dist/resource-DISgPDM7-C4P8jqU0.js +97 -0
- package/dist/su-welcome-BjbuSrBZ-DrInu823.js +49339 -0
- package/dist/su-welcome-CYYy-dzr-D3RKPoB0-DhP783YJ.js +42089 -0
- package/dist/su-welcome-t7YusM3U.js +49427 -0
- package/dist/sys-config-DCjJGtht-DARDjlrt-Dx8559bf.js +370 -0
- package/dist/{sys-config-DQmNjWH4.js → sys-config-Jqj3l7NK.js} +13 -13
- package/dist/sys-config-Yc9vh1t1-B3bJPd9S.js +370 -0
- package/dist/udp-core.css +1 -1
- package/dist/utogether-MlnyYtNS-CGgjFNPS-CGgjFNPS.js +4 -0
- package/dist/utogether-MlnyYtNS-CGgjFNPS.js +4 -0
- package/package.json +5 -2
- package/src/App.vue +71 -71
- package/src/components/udp/content/index.vue +88 -88
- package/src/components/udp/form-upload/form-upload.vue +492 -492
- package/src/components/udp/grid/index.vue +524 -524
- package/src/components/udp/index.ts +6 -6
- package/src/components/udp/ut-stamp-badge/index.vue +271 -271
- package/src/components/udp/utils.ts +408 -408
- package/src/layout/components/lay-content/index.vue +136 -136
- package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
- package/src/layout/components/lay-setting/index.vue +503 -503
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
- package/src/layout/components/lay-tag/index.vue +598 -598
- package/src/layout/hooks/useNav.ts +176 -176
- package/src/layout/hooks/useTag.ts +227 -227
- package/src/layout/layoutView.vue +216 -216
- package/src/layout/types.ts +93 -93
- package/src/main.ts +111 -112
- package/src/plugins/i18n/zh.ts +1 -0
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/plugins/vxe-table/render.tsx +968 -968
- package/src/router/index.ts +187 -187
- package/src/router/modules/home.ts +32 -32
- package/src/router/utils.ts +420 -420
- package/src/store/modules/epTheme.ts +48 -48
- package/src/style/vxetable.scss +364 -356
- package/src/utils/dataFormat/index.ts +222 -222
- package/src/utils/lifecycle.ts +39 -39
- package/src/views/organization/department/DepartmentPanel.vue +303 -303
- package/src/views/organization/staff/StaffInfo.vue +127 -127
- package/src/views/organization/staff/StaffPanel.vue +3 -3
- package/src/views/system/layout/layout-home.vue +46 -7
- package/src/views/system/menu/AuthorityPanel.vue +141 -141
- package/src/views/system/menu/SystemMenu.vue +194 -194
- package/src/views/system/menu/menuInfo.vue +1 -1
- package/src/views/system/sysUser/SysUserPanel.vue +363 -363
- package/src/views/udev/coderule/code-rule.vue +132 -132
- package/src/views/udev/dict/DictView.vue +118 -118
- package/src/views/udev/dict/childView.vue +184 -184
- package/src/views/udev/lov/childView.vue +174 -174
- package/src/views/uhome/components/common-menu.vue +118 -0
- package/src/views/uhome/components/dynamic-component.vue +66 -0
- package/src/views/uhome/components/home-todo.vue +171 -0
- package/src/views/uhome/components/menu-favorite.vue +315 -315
- package/src/views/uhome/dynamic-card.vue +18 -19
- package/src/views/uhome/su-welcome.vue +47 -117
- package/src/views/ulogin/login.vue +336 -336
- package/src/views/upms/interface/log-in.vue +100 -100
- package/src/views/upms/interface/log-out.vue +104 -104
- package/src/views/upms/user/login-log.vue +54 -54
- package/types/global.d.ts +232 -232
- package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
- package/dist/layout-home-Cis1KlEr.js +0 -195
- package/dist/su-welcome-BXe6Cdp3.js +0 -580
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
import { defineComponent as ne, ref as U, resolveComponent as S, createElementBlock as ve, openBlock as K, createVNode as p, createBlock as me, createCommentVNode as he, Fragment as z, isVNode as be, computed as X, watch as we, withDirectives as Oe, unref as _, resolveDirective as je, nextTick as Te } from "vue";
|
|
2
|
+
import { useI18n as xe } from "vue-i18n";
|
|
3
|
+
import { r as _e } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes-CRQnmLCs.js";
|
|
4
|
+
import { t as $e, u as Se, W as Ce, o as ke } from "./su-welcome-BjbuSrBZ-DrInu823.js";
|
|
5
|
+
import { useRender as Ne, withInstall as Ae } from "@utogether/utils";
|
|
6
|
+
import { clone as oe, isString as Z } from "xe-utils";
|
|
7
|
+
import Ue from "qrcode";
|
|
8
|
+
const M = {
|
|
9
|
+
silent: !1,
|
|
10
|
+
logLevel: "warn"
|
|
11
|
+
};
|
|
12
|
+
function x(e) {
|
|
13
|
+
if (typeof e != "object" || e === null)
|
|
14
|
+
return !1;
|
|
15
|
+
const t = Object.getPrototypeOf(e);
|
|
16
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
17
|
+
}
|
|
18
|
+
const Ve = () => ({
|
|
19
|
+
func: () => {
|
|
20
|
+
},
|
|
21
|
+
bool: !0,
|
|
22
|
+
string: "",
|
|
23
|
+
number: 0,
|
|
24
|
+
array: () => [],
|
|
25
|
+
object: () => ({}),
|
|
26
|
+
integer: 0
|
|
27
|
+
}), ie = Object.prototype, ae = ie.toString, Le = ie.hasOwnProperty, se = /^\s*function (\w+)/;
|
|
28
|
+
function ee(e) {
|
|
29
|
+
const t = (e == null ? void 0 : e.type) ?? e;
|
|
30
|
+
if (t) {
|
|
31
|
+
const n = t.toString().match(se);
|
|
32
|
+
return n ? n[1] : "";
|
|
33
|
+
}
|
|
34
|
+
return "";
|
|
35
|
+
}
|
|
36
|
+
function qe(e) {
|
|
37
|
+
if (e == null)
|
|
38
|
+
return "";
|
|
39
|
+
const t = e.constructor.toString().match(se);
|
|
40
|
+
return t ? t[1].replace(/^Async/, "") : "";
|
|
41
|
+
}
|
|
42
|
+
function te(e) {
|
|
43
|
+
return "structuredClone" in globalThis ? structuredClone(e) : Array.isArray(e) ? [...e] : x(e) ? Object.assign({}, e) : e;
|
|
44
|
+
}
|
|
45
|
+
function le() {
|
|
46
|
+
}
|
|
47
|
+
let d = le;
|
|
48
|
+
process.env.NODE_ENV !== "production" && (d = typeof console < "u" ? function(e, t = M.logLevel) {
|
|
49
|
+
M.silent === !1 && console[t](`[VueTypes warn]: ${e}`);
|
|
50
|
+
} : le);
|
|
51
|
+
const V = (e, t) => Le.call(e, t), Pe = Number.isInteger || function(e) {
|
|
52
|
+
return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
|
|
53
|
+
}, L = Array.isArray || function(e) {
|
|
54
|
+
return ae.call(e) === "[object Array]";
|
|
55
|
+
}, q = (e) => ae.call(e) === "[object Function]", Q = (e, t) => x(e) && V(e, "_vueTypes_name") && (!t || e._vueTypes_name === t), ue = (e) => x(e) && (V(e, "type") || ["_vueTypes_name", "validator", "default", "required"].some(
|
|
56
|
+
(t) => V(e, t)
|
|
57
|
+
));
|
|
58
|
+
function de(e, t) {
|
|
59
|
+
return Object.defineProperty(e.bind(t), "__original", {
|
|
60
|
+
value: e
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function $(e, t, n = !1) {
|
|
64
|
+
let r, o = !0, s = "";
|
|
65
|
+
x(e) ? r = e : r = { type: e };
|
|
66
|
+
const a = Q(r) ? r._vueTypes_name + " - " : "";
|
|
67
|
+
if (ue(r) && r.type !== null) {
|
|
68
|
+
if (r.type === void 0 || r.type === !0 || !r.required && t == null)
|
|
69
|
+
return o;
|
|
70
|
+
L(r.type) ? (o = r.type.some(
|
|
71
|
+
(c) => $(c, t, !0) === !0
|
|
72
|
+
), s = r.type.map((c) => ee(c)).join(" or ")) : (s = ee(r), s === "Array" ? o = L(t) : s === "Object" ? o = x(t) : s === "String" || s === "Number" || s === "Boolean" || s === "Function" ? o = qe(t) === s : o = t instanceof r.type);
|
|
73
|
+
}
|
|
74
|
+
if (!o) {
|
|
75
|
+
const c = `${a}value "${t}" should be of type "${s}"`;
|
|
76
|
+
return n === !1 ? (d(c), !1) : c;
|
|
77
|
+
}
|
|
78
|
+
if (V(r, "validator") && q(r.validator)) {
|
|
79
|
+
const c = d, y = [];
|
|
80
|
+
if (d = (g) => {
|
|
81
|
+
y.push(g);
|
|
82
|
+
}, o = r.validator(t), d = c, !o) {
|
|
83
|
+
const g = (y.length > 1 ? "* " : "") + y.join(`
|
|
84
|
+
* `);
|
|
85
|
+
return y.length = 0, n === !1 ? (d(g), o) : g;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return o;
|
|
89
|
+
}
|
|
90
|
+
function h(e, t) {
|
|
91
|
+
const n = Object.defineProperties(t, {
|
|
92
|
+
_vueTypes_name: {
|
|
93
|
+
value: e,
|
|
94
|
+
writable: !0
|
|
95
|
+
},
|
|
96
|
+
isRequired: {
|
|
97
|
+
get() {
|
|
98
|
+
return this.required = !0, this;
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
def: {
|
|
102
|
+
value(o) {
|
|
103
|
+
if (o === void 0) {
|
|
104
|
+
if (this.type === Boolean || Array.isArray(this.type) && this.type.includes(Boolean)) {
|
|
105
|
+
this.default = void 0;
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
return V(this, "default") && delete this.default, this;
|
|
109
|
+
}
|
|
110
|
+
return !q(o) && $(this, o, !0) !== !0 ? (d(`${this._vueTypes_name} - invalid default value: "${o}"`), this) : (L(o) ? this.default = () => te(o) : x(o) ? this.default = () => te(o) : this.default = o, this);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}), { validator: r } = n;
|
|
114
|
+
return q(r) && (n.validator = de(r, n)), n;
|
|
115
|
+
}
|
|
116
|
+
function O(e, t) {
|
|
117
|
+
const n = h(e, t);
|
|
118
|
+
return Object.defineProperty(n, "validate", {
|
|
119
|
+
value(r) {
|
|
120
|
+
return q(this.validator) && d(
|
|
121
|
+
`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
122
|
+
${JSON.stringify(
|
|
123
|
+
this
|
|
124
|
+
)}`
|
|
125
|
+
), this.validator = de(r, this), this;
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function E(e) {
|
|
130
|
+
return e.replace(/^(?!\s*$)/gm, " ");
|
|
131
|
+
}
|
|
132
|
+
const Ie = () => O("any", {}), Re = () => O("function", {
|
|
133
|
+
type: Function
|
|
134
|
+
}), re = () => O("boolean", {
|
|
135
|
+
type: Boolean
|
|
136
|
+
}), De = () => O("string", {
|
|
137
|
+
type: String
|
|
138
|
+
}), Ee = () => O("number", {
|
|
139
|
+
type: Number
|
|
140
|
+
}), Fe = () => O("array", {
|
|
141
|
+
type: Array
|
|
142
|
+
}), Be = () => O("object", {
|
|
143
|
+
type: Object
|
|
144
|
+
}), Ye = () => h("integer", {
|
|
145
|
+
type: Number,
|
|
146
|
+
validator(e) {
|
|
147
|
+
const t = Pe(e);
|
|
148
|
+
return t === !1 && d(`integer - "${e}" is not an integer`), t;
|
|
149
|
+
}
|
|
150
|
+
}), ze = () => h("symbol", {
|
|
151
|
+
validator(e) {
|
|
152
|
+
const t = typeof e == "symbol";
|
|
153
|
+
return t === !1 && d(`symbol - invalid value "${e}"`), t;
|
|
154
|
+
}
|
|
155
|
+
}), Me = () => Object.defineProperty(
|
|
156
|
+
{
|
|
157
|
+
type: null,
|
|
158
|
+
validator(e) {
|
|
159
|
+
const t = e === null;
|
|
160
|
+
return t === !1 && d("nullable - value should be null"), t;
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"_vueTypes_name",
|
|
164
|
+
{ value: "nullable" }
|
|
165
|
+
);
|
|
166
|
+
function Qe(e, t = "custom validation failed") {
|
|
167
|
+
if (typeof e != "function")
|
|
168
|
+
throw new TypeError(
|
|
169
|
+
"[VueTypes error]: You must provide a function as argument"
|
|
170
|
+
);
|
|
171
|
+
return h(e.name || "<<anonymous function>>", {
|
|
172
|
+
type: null,
|
|
173
|
+
validator(n) {
|
|
174
|
+
const r = e(n);
|
|
175
|
+
return r || d(`${this._vueTypes_name} - ${t}`), r;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
function He(e) {
|
|
180
|
+
if (!L(e))
|
|
181
|
+
throw new TypeError(
|
|
182
|
+
"[VueTypes error]: You must provide an array as argument."
|
|
183
|
+
);
|
|
184
|
+
const t = `oneOf - value should be one of "${e.map((r) => typeof r == "symbol" ? r.toString() : r).join('", "')}".`, n = {
|
|
185
|
+
validator(r) {
|
|
186
|
+
const o = e.indexOf(r) !== -1;
|
|
187
|
+
return o || d(t), o;
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
if (e.indexOf(null) === -1) {
|
|
191
|
+
const r = e.reduce(
|
|
192
|
+
(o, s) => {
|
|
193
|
+
if (s != null) {
|
|
194
|
+
const a = s.constructor;
|
|
195
|
+
o.indexOf(a) === -1 && o.push(a);
|
|
196
|
+
}
|
|
197
|
+
return o;
|
|
198
|
+
},
|
|
199
|
+
[]
|
|
200
|
+
);
|
|
201
|
+
r.length > 0 && (n.type = r);
|
|
202
|
+
}
|
|
203
|
+
return h("oneOf", n);
|
|
204
|
+
}
|
|
205
|
+
function We(e) {
|
|
206
|
+
if (!L(e))
|
|
207
|
+
throw new TypeError(
|
|
208
|
+
"[VueTypes error]: You must provide an array as argument"
|
|
209
|
+
);
|
|
210
|
+
let t = !1, n = !1, r = [];
|
|
211
|
+
for (let s = 0; s < e.length; s += 1) {
|
|
212
|
+
const a = e[s];
|
|
213
|
+
if (ue(a)) {
|
|
214
|
+
if (q(a.validator) && (t = !0), Q(a, "oneOf") && a.type) {
|
|
215
|
+
r = r.concat(a.type);
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
if (Q(a, "nullable")) {
|
|
219
|
+
n = !0;
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
if (a.type === !0 || !a.type) {
|
|
223
|
+
d('oneOfType - invalid usage of "true" and "null" as types.');
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
r = r.concat(a.type);
|
|
227
|
+
} else
|
|
228
|
+
r.push(a);
|
|
229
|
+
}
|
|
230
|
+
r = r.filter((s, a) => r.indexOf(s) === a);
|
|
231
|
+
const o = n === !1 && r.length > 0 ? r : null;
|
|
232
|
+
return t ? h("oneOfType", {
|
|
233
|
+
type: o,
|
|
234
|
+
validator(s) {
|
|
235
|
+
const a = [], c = e.some((y) => {
|
|
236
|
+
const g = $(y, s, !0);
|
|
237
|
+
return typeof g == "string" && a.push(g), g === !0;
|
|
238
|
+
});
|
|
239
|
+
return c || d(
|
|
240
|
+
`oneOfType - provided value does not match any of the ${a.length} passed-in validators:
|
|
241
|
+
${E(a.join(`
|
|
242
|
+
`))}`
|
|
243
|
+
), c;
|
|
244
|
+
}
|
|
245
|
+
}) : h("oneOfType", {
|
|
246
|
+
type: o
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
function Je(e) {
|
|
250
|
+
return h("arrayOf", {
|
|
251
|
+
type: Array,
|
|
252
|
+
validator(t) {
|
|
253
|
+
let n = "";
|
|
254
|
+
const r = t.every((o) => (n = $(e, o, !0), n === !0));
|
|
255
|
+
return r || d(`arrayOf - value validation error:
|
|
256
|
+
${E(n)}`), r;
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
function Ge(e) {
|
|
261
|
+
return h("instanceOf", {
|
|
262
|
+
type: e
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
function Ke(e) {
|
|
266
|
+
return h("objectOf", {
|
|
267
|
+
type: Object,
|
|
268
|
+
validator(t) {
|
|
269
|
+
let n = "";
|
|
270
|
+
if (!x(t))
|
|
271
|
+
return !1;
|
|
272
|
+
const r = Object.keys(t).every((o) => (n = $(e, t[o], !0), n === !0));
|
|
273
|
+
return r || d(`objectOf - value validation error:
|
|
274
|
+
${E(n)}`), r;
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
function Xe(e) {
|
|
279
|
+
const t = Object.keys(e), n = t.filter((o) => {
|
|
280
|
+
var s;
|
|
281
|
+
return !!((s = e[o]) != null && s.required);
|
|
282
|
+
}), r = h("shape", {
|
|
283
|
+
type: Object,
|
|
284
|
+
validator(o) {
|
|
285
|
+
if (!x(o))
|
|
286
|
+
return !1;
|
|
287
|
+
const s = Object.keys(o);
|
|
288
|
+
if (n.length > 0 && n.some((a) => s.indexOf(a) === -1)) {
|
|
289
|
+
const a = n.filter(
|
|
290
|
+
(c) => s.indexOf(c) === -1
|
|
291
|
+
);
|
|
292
|
+
return a.length === 1 ? d(`shape - required property "${a[0]}" is not defined.`) : d(
|
|
293
|
+
`shape - required properties "${a.join(
|
|
294
|
+
'", "'
|
|
295
|
+
)}" are not defined.`
|
|
296
|
+
), !1;
|
|
297
|
+
}
|
|
298
|
+
return s.every((a) => {
|
|
299
|
+
if (t.indexOf(a) === -1)
|
|
300
|
+
return this._vueTypes_isLoose === !0 ? !0 : (d(
|
|
301
|
+
`shape - shape definition does not include a "${a}" property. Allowed keys: "${t.join(
|
|
302
|
+
'", "'
|
|
303
|
+
)}".`
|
|
304
|
+
), !1);
|
|
305
|
+
const c = e[a], y = $(c, o[a], !0);
|
|
306
|
+
return typeof y == "string" && d(`shape - "${a}" property validation error:
|
|
307
|
+
${E(y)}`), y === !0;
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
return Object.defineProperty(r, "_vueTypes_isLoose", {
|
|
312
|
+
writable: !0,
|
|
313
|
+
value: !1
|
|
314
|
+
}), Object.defineProperty(r, "loose", {
|
|
315
|
+
get() {
|
|
316
|
+
return this._vueTypes_isLoose = !0, this;
|
|
317
|
+
}
|
|
318
|
+
}), r;
|
|
319
|
+
}
|
|
320
|
+
var Ze = Object.defineProperty, et = (e, t, n) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, m = (e, t, n) => (et(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
321
|
+
const tt = /* @__PURE__ */ (() => {
|
|
322
|
+
var e;
|
|
323
|
+
return (
|
|
324
|
+
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
325
|
+
e = class {
|
|
326
|
+
static get any() {
|
|
327
|
+
return Ie();
|
|
328
|
+
}
|
|
329
|
+
static get func() {
|
|
330
|
+
return Re().def(this.defaults.func);
|
|
331
|
+
}
|
|
332
|
+
static get bool() {
|
|
333
|
+
return this.defaults.bool === void 0 ? re() : re().def(this.defaults.bool);
|
|
334
|
+
}
|
|
335
|
+
static get string() {
|
|
336
|
+
return De().def(this.defaults.string);
|
|
337
|
+
}
|
|
338
|
+
static get number() {
|
|
339
|
+
return Ee().def(this.defaults.number);
|
|
340
|
+
}
|
|
341
|
+
static get array() {
|
|
342
|
+
return Fe().def(this.defaults.array);
|
|
343
|
+
}
|
|
344
|
+
static get object() {
|
|
345
|
+
return Be().def(this.defaults.object);
|
|
346
|
+
}
|
|
347
|
+
static get integer() {
|
|
348
|
+
return Ye().def(this.defaults.integer);
|
|
349
|
+
}
|
|
350
|
+
static get symbol() {
|
|
351
|
+
return ze();
|
|
352
|
+
}
|
|
353
|
+
static get nullable() {
|
|
354
|
+
return Me();
|
|
355
|
+
}
|
|
356
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
357
|
+
static extend(...t) {
|
|
358
|
+
d(
|
|
359
|
+
"VueTypes.extend has been removed. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."
|
|
360
|
+
);
|
|
361
|
+
}
|
|
362
|
+
}, m(e, "defaults", {}), m(e, "sensibleDefaults"), m(e, "config", M), m(e, "custom", Qe), m(e, "oneOf", He), m(e, "instanceOf", Ge), m(e, "oneOfType", We), m(e, "arrayOf", Je), m(e, "objectOf", Ke), m(e, "shape", Xe), m(e, "utils", {
|
|
363
|
+
validate(t, n) {
|
|
364
|
+
return $(n, t, !0) === !0;
|
|
365
|
+
},
|
|
366
|
+
toType(t, n, r = !1) {
|
|
367
|
+
return r ? O(t, n) : h(t, n);
|
|
368
|
+
}
|
|
369
|
+
}), e
|
|
370
|
+
);
|
|
371
|
+
})();
|
|
372
|
+
function ce(e = Ve()) {
|
|
373
|
+
var t;
|
|
374
|
+
return t = class extends tt {
|
|
375
|
+
static get sensibleDefaults() {
|
|
376
|
+
return { ...this.defaults };
|
|
377
|
+
}
|
|
378
|
+
static set sensibleDefaults(n) {
|
|
379
|
+
if (n === !1) {
|
|
380
|
+
this.defaults = {};
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
if (n === !0) {
|
|
384
|
+
this.defaults = { ...e };
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
this.defaults = { ...n };
|
|
388
|
+
}
|
|
389
|
+
}, m(t, "defaults", { ...e }), t;
|
|
390
|
+
}
|
|
391
|
+
class vt extends ce() {
|
|
392
|
+
}
|
|
393
|
+
const rt = ce({
|
|
394
|
+
func: void 0,
|
|
395
|
+
bool: void 0,
|
|
396
|
+
string: void 0,
|
|
397
|
+
number: void 0,
|
|
398
|
+
object: void 0,
|
|
399
|
+
integer: void 0
|
|
400
|
+
});
|
|
401
|
+
class D extends rt {
|
|
402
|
+
// a native-like validator that supports the `.validable` method
|
|
403
|
+
static get style() {
|
|
404
|
+
return O("style", {
|
|
405
|
+
type: [String, Object]
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
static get VNodeChild() {
|
|
409
|
+
return O("VNodeChild", {
|
|
410
|
+
type: void 0
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
const nt = {
|
|
415
|
+
// img 或者 canvas,img不支持logo嵌套
|
|
416
|
+
tag: D.string.validate((e) => ["canvas", "img"].includes(e)).def("canvas"),
|
|
417
|
+
// 二维码内容
|
|
418
|
+
text: {
|
|
419
|
+
type: [String, Array],
|
|
420
|
+
default: null
|
|
421
|
+
},
|
|
422
|
+
// qrcode.js配置项
|
|
423
|
+
options: {
|
|
424
|
+
type: Object,
|
|
425
|
+
default: () => ({})
|
|
426
|
+
},
|
|
427
|
+
// 宽度
|
|
428
|
+
width: D.number.def(200),
|
|
429
|
+
// logo
|
|
430
|
+
logo: {
|
|
431
|
+
type: [String, Object],
|
|
432
|
+
default: () => ""
|
|
433
|
+
},
|
|
434
|
+
// 是否过期
|
|
435
|
+
disabled: D.bool.def(!1),
|
|
436
|
+
// 过期提示内容
|
|
437
|
+
disabledText: D.string.def("")
|
|
438
|
+
}, ot = /* @__PURE__ */ ne({
|
|
439
|
+
name: "SuQrcode",
|
|
440
|
+
props: nt,
|
|
441
|
+
emits: ["done", "click", "disabled-click"],
|
|
442
|
+
setup(e, {
|
|
443
|
+
emit: t
|
|
444
|
+
}) {
|
|
445
|
+
const {
|
|
446
|
+
toCanvas: n,
|
|
447
|
+
toDataURL: r
|
|
448
|
+
} = Ue, o = U(!0), s = U(null), a = X(() => String(e.text)), c = X(() => ({
|
|
449
|
+
width: e.width + "px",
|
|
450
|
+
height: e.width + "px"
|
|
451
|
+
})), y = async () => {
|
|
452
|
+
await Te();
|
|
453
|
+
const i = oe(e.options || {}, !0);
|
|
454
|
+
if (e.tag === "canvas") {
|
|
455
|
+
i.errorCorrectionLevel = i.errorCorrectionLevel || C(_(a));
|
|
456
|
+
const l = await F(_(a), i);
|
|
457
|
+
i.scale = e.width === 0 ? void 0 : e.width / l * 4;
|
|
458
|
+
const u = await n(_(s), _(a), i);
|
|
459
|
+
if (e.logo) {
|
|
460
|
+
const f = await g(u);
|
|
461
|
+
t("done", f), o.value = !1;
|
|
462
|
+
} else
|
|
463
|
+
t("done", u.toDataURL()), o.value = !1;
|
|
464
|
+
} else {
|
|
465
|
+
const l = await r(a.value, {
|
|
466
|
+
errorCorrectionLevel: "H",
|
|
467
|
+
width: e.width,
|
|
468
|
+
...i
|
|
469
|
+
});
|
|
470
|
+
_(s).src = l, t("done", l), o.value = !1;
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
we(() => a.value, (i) => {
|
|
474
|
+
i && y();
|
|
475
|
+
}, {
|
|
476
|
+
deep: !0,
|
|
477
|
+
immediate: !0
|
|
478
|
+
});
|
|
479
|
+
const g = (i) => {
|
|
480
|
+
const l = i.width, u = Object.assign({
|
|
481
|
+
logoSize: 0.15,
|
|
482
|
+
bgColor: "#ffffff",
|
|
483
|
+
borderSize: 0.05,
|
|
484
|
+
crossOrigin: "anonymous",
|
|
485
|
+
borderRadius: 8,
|
|
486
|
+
logoRadius: 0
|
|
487
|
+
}, Z(e.logo) ? {} : e.logo), {
|
|
488
|
+
logoSize: f = 0.15,
|
|
489
|
+
bgColor: v = "#ffffff",
|
|
490
|
+
borderSize: w = 0.05,
|
|
491
|
+
crossOrigin: k = "anonymous",
|
|
492
|
+
borderRadius: fe = 8,
|
|
493
|
+
logoRadius: Y = 0
|
|
494
|
+
} = u, pe = Z(e.logo) ? e.logo : e.logo.src, j = l * f, T = l * (1 - f) / 2, H = l * (f + w), W = l * (1 - f - w) / 2, b = i.getContext("2d");
|
|
495
|
+
if (!b) return;
|
|
496
|
+
P(b)(W, W, H, H, fe), b.fillStyle = v, b.fill();
|
|
497
|
+
const N = new Image();
|
|
498
|
+
(k || Y) && N.setAttribute("crossOrigin", k), N.src = pe;
|
|
499
|
+
const ye = (A) => {
|
|
500
|
+
b.drawImage(A, T, T, j, j);
|
|
501
|
+
}, ge = (A) => {
|
|
502
|
+
const R = document.createElement("canvas");
|
|
503
|
+
R.width = T + j, R.height = T + j;
|
|
504
|
+
const J = R.getContext("2d");
|
|
505
|
+
if (!J || !b || (J.drawImage(A, T, T, j, j), P(b)(T, T, j, j, Y), !b)) return;
|
|
506
|
+
const G = b.createPattern(R, "no-repeat");
|
|
507
|
+
G && (b.fillStyle = G, b.fill());
|
|
508
|
+
};
|
|
509
|
+
return new Promise((A) => {
|
|
510
|
+
N.onload = () => {
|
|
511
|
+
Y ? ge(N) : ye(N), A(i.toDataURL());
|
|
512
|
+
};
|
|
513
|
+
});
|
|
514
|
+
}, F = async (i, l) => {
|
|
515
|
+
const u = document.createElement("canvas");
|
|
516
|
+
return await n(u, i, l), u.width;
|
|
517
|
+
}, C = (i) => i.length > 36 ? "M" : i.length > 16 ? "Q" : "H", P = (i) => (l, u, f, v, w) => {
|
|
518
|
+
const k = Math.min(f, v);
|
|
519
|
+
return w > k / 2 && (w = k / 2), i.beginPath(), i.moveTo(l + w, u), i.arcTo(l + f, u, l + f, u + v, w), i.arcTo(l + f, u + v, l, u + v, w), i.arcTo(l, u + v, l, u, w), i.arcTo(l, u, l + f, u, w), i.closePath(), i;
|
|
520
|
+
}, I = () => {
|
|
521
|
+
t("click");
|
|
522
|
+
}, B = () => {
|
|
523
|
+
t("disabled-click");
|
|
524
|
+
};
|
|
525
|
+
return () => p(z, null, [Oe(p("div", {
|
|
526
|
+
class: "qrcode relative inline-block",
|
|
527
|
+
style: _(c)
|
|
528
|
+
}, [e.tag === "canvas" ? p("canvas", {
|
|
529
|
+
ref: s,
|
|
530
|
+
onClick: I
|
|
531
|
+
}, null) : p("img", {
|
|
532
|
+
ref: s,
|
|
533
|
+
onClick: I
|
|
534
|
+
}, null), e.disabled && p("div", {
|
|
535
|
+
class: "qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",
|
|
536
|
+
onClick: B
|
|
537
|
+
}, [p("div", {
|
|
538
|
+
class: "absolute top-[50%] left-[50%] font-bold"
|
|
539
|
+
}, [p(ke, {
|
|
540
|
+
class: "cursor-pointer",
|
|
541
|
+
icon: "refresh-right",
|
|
542
|
+
width: "30",
|
|
543
|
+
color: "var(--el-color-primary)"
|
|
544
|
+
}, null), p("div", null, [e.disabledText])])])]), [[je("loading"), _(o)]])]);
|
|
545
|
+
}
|
|
546
|
+
}), it = Ae(ot);
|
|
547
|
+
function at(e) {
|
|
548
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
|
|
549
|
+
}
|
|
550
|
+
const st = {
|
|
551
|
+
name: "PdaApp"
|
|
552
|
+
}, lt = /* @__PURE__ */ ne({
|
|
553
|
+
...st,
|
|
554
|
+
setup(e) {
|
|
555
|
+
const t = Se(), n = Ne(), {
|
|
556
|
+
t: r
|
|
557
|
+
} = xe(), o = "/upms/v1/app-manage", s = U(null), a = U({}), c = [{
|
|
558
|
+
type: "checkbox",
|
|
559
|
+
width: 45,
|
|
560
|
+
align: "center"
|
|
561
|
+
}, {
|
|
562
|
+
field: "appVersion",
|
|
563
|
+
title: "message.udp.appVersion",
|
|
564
|
+
width: 110
|
|
565
|
+
}, {
|
|
566
|
+
field: "buildNo",
|
|
567
|
+
title: "message.udp.buildNo",
|
|
568
|
+
width: 130
|
|
569
|
+
}, {
|
|
570
|
+
field: "isForceUpdate",
|
|
571
|
+
title: "message.udp.isForceUpdate",
|
|
572
|
+
width: 130,
|
|
573
|
+
formatter: ({
|
|
574
|
+
row: i
|
|
575
|
+
}) => i.isForceUpdate === "Y" ? r("message.udp.forceUpdate") : r("message.udp.freeUpdate")
|
|
576
|
+
}, {
|
|
577
|
+
field: "versionInfo",
|
|
578
|
+
title: "message.udp.versionInfo",
|
|
579
|
+
miWidth: 200
|
|
580
|
+
}, {
|
|
581
|
+
field: "enabled",
|
|
582
|
+
title: "message.status",
|
|
583
|
+
width: 90,
|
|
584
|
+
formatter: ({
|
|
585
|
+
row: i
|
|
586
|
+
}) => i.enabled === "1" ? r("message.udp.appupper") : r("message.udp.applower")
|
|
587
|
+
}, {
|
|
588
|
+
field: "creationDate",
|
|
589
|
+
width: 140
|
|
590
|
+
}, {
|
|
591
|
+
field: "operate",
|
|
592
|
+
width: 260,
|
|
593
|
+
fixed: "right",
|
|
594
|
+
slots: {
|
|
595
|
+
default: ({
|
|
596
|
+
row: i
|
|
597
|
+
}) => {
|
|
598
|
+
const l = i.enabled === "1" ? "applower" : "appupper", u = i.enabled === "1" ? "warning" : "primary", f = i.enabled === "1" ? "ri-inbox-archive-line" : "ri-inbox-unarchive-line";
|
|
599
|
+
return i.enabled !== "1" ? [p(S("ut-button"), {
|
|
600
|
+
content: l,
|
|
601
|
+
icon: f,
|
|
602
|
+
status: u,
|
|
603
|
+
onTap: () => y(i)
|
|
604
|
+
}, null)] : [
|
|
605
|
+
p(z, null, [p("div", {
|
|
606
|
+
style: "display: flex; justify-content: space-between;"
|
|
607
|
+
}, [p(S("ut-button"), {
|
|
608
|
+
content: l,
|
|
609
|
+
icon: f,
|
|
610
|
+
status: u,
|
|
611
|
+
onTap: () => y(i)
|
|
612
|
+
}, null), p(S("el-popover"), {
|
|
613
|
+
placement: "left"
|
|
614
|
+
}, {
|
|
615
|
+
default: () => [p(z, null, [p(it, {
|
|
616
|
+
text: t + "/ufil/" + i.downloadUrl
|
|
617
|
+
}, null)])],
|
|
618
|
+
reference: () => {
|
|
619
|
+
let v;
|
|
620
|
+
return p(S("el-button"), {
|
|
621
|
+
type: "success"
|
|
622
|
+
}, at(v = r("message.btn.scan")) ? v : {
|
|
623
|
+
default: () => [v]
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
})])])
|
|
627
|
+
// <el-popover
|
|
628
|
+
// placement="left"
|
|
629
|
+
// v-slots={{
|
|
630
|
+
// reference: () => <el-button type="primary">外网下载</el-button>
|
|
631
|
+
// }}
|
|
632
|
+
// >
|
|
633
|
+
// <>
|
|
634
|
+
// <SuQrcode text={'http://jemes.uzuo.cn/gateway/ufil/' + row.downloadUrl} />
|
|
635
|
+
// </>
|
|
636
|
+
// </el-popover>
|
|
637
|
+
];
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}], y = async (i) => {
|
|
641
|
+
const l = oe(i, !0);
|
|
642
|
+
l.enabled = i.enabled === "1" ? "0" : "1", await _e(Ce().put(o, l)), s.value.refreshData();
|
|
643
|
+
}, g = (i) => {
|
|
644
|
+
i === "add" && P(), i === "del" && I();
|
|
645
|
+
}, F = [{
|
|
646
|
+
field: "appVersion",
|
|
647
|
+
title: "message.udp.appVersion",
|
|
648
|
+
required: !0
|
|
649
|
+
}, {
|
|
650
|
+
field: "buildNo",
|
|
651
|
+
title: "message.udp.buildNo",
|
|
652
|
+
required: !0
|
|
653
|
+
}, {
|
|
654
|
+
field: "isForceUpdate",
|
|
655
|
+
title: "message.udp.isForceUpdate",
|
|
656
|
+
required: !0,
|
|
657
|
+
itemRender: n.renderSwitch({
|
|
658
|
+
openLabel: r("message.udp.forceUpdate"),
|
|
659
|
+
closeLabel: r("message.udp.freeUpdate"),
|
|
660
|
+
openValue: "Y",
|
|
661
|
+
closeValue: "N"
|
|
662
|
+
})
|
|
663
|
+
}, {
|
|
664
|
+
field: "versionInfo",
|
|
665
|
+
title: "message.udp.versionInfo",
|
|
666
|
+
required: !0,
|
|
667
|
+
itemRender: n.renderTextarea()
|
|
668
|
+
}, {
|
|
669
|
+
field: "downloadUrl",
|
|
670
|
+
required: !1,
|
|
671
|
+
title: "message.udp.downloadUrl",
|
|
672
|
+
itemRender: n.renderUpload()
|
|
673
|
+
}], C = U(!1), P = () => {
|
|
674
|
+
a.value = {
|
|
675
|
+
// downloadUrl: 'https://vxeui.com/resource/img/fj577.jpg'
|
|
676
|
+
// downloadUrl: '/resource/image/20250817/15806d21e3f445dcae0e2e0825c76a79.jpg'
|
|
677
|
+
}, C.value = !0;
|
|
678
|
+
}, I = () => {
|
|
679
|
+
s.value.getInstance().commitProxy("delete");
|
|
680
|
+
}, B = () => {
|
|
681
|
+
s.value.refreshData();
|
|
682
|
+
};
|
|
683
|
+
return (i, l) => {
|
|
684
|
+
const u = S("ut-grid"), f = S("ut-modal-form");
|
|
685
|
+
return K(), ve("div", null, [p(u, {
|
|
686
|
+
ref_key: "xgrid",
|
|
687
|
+
ref: s,
|
|
688
|
+
columns: c,
|
|
689
|
+
url: o,
|
|
690
|
+
mode: "form",
|
|
691
|
+
onButtonClick: g
|
|
692
|
+
}, null, 512), C.value ? (K(), me(f, {
|
|
693
|
+
key: 0,
|
|
694
|
+
record: a.value,
|
|
695
|
+
items: F,
|
|
696
|
+
width: 420,
|
|
697
|
+
height: 450,
|
|
698
|
+
title: i.$t("message.title.appAdd"),
|
|
699
|
+
url: o,
|
|
700
|
+
class: "ut-app-form",
|
|
701
|
+
"data-status": "add",
|
|
702
|
+
onClose: l[0] || (l[0] = (v) => C.value = !1),
|
|
703
|
+
onConfirm: B
|
|
704
|
+
}, null, 8, ["record", "title"])) : he("", !0)]);
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
}), mt = /* @__PURE__ */ $e(lt, [["__scopeId", "data-v-4c7392db"]]);
|
|
708
|
+
export {
|
|
709
|
+
mt as default
|
|
710
|
+
};
|