@utogether/udp-core 2.0.0-beta.4 → 2.0.0-beta.6
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-CekcmGOc.js → 403-FwkedC35.js} +1 -1
- package/dist/{404-DeSH9KnK.js → 404-fBOEoTA_.js} +1 -1
- package/dist/{500-DHOHlmtv.js → 500-iyNwORJV.js} +1 -1
- package/dist/{AuthorityInfo-BC8U3Zk4.js → AuthorityInfo-BTGUSDZ4.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DVFi0qOJ.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DSxmqRu8.js} +1 -1
- package/dist/{Company-Byq4p14C.js → Company-ueSjOTse.js} +3 -3
- package/dist/{CompanyPanel-CIHP7rVd.js → CompanyPanel-CAhzxgMa.js} +7 -7
- package/dist/{Department-CxgSq34X.js → Department-fGiF2ia2.js} +3 -3
- package/dist/{DepartmentPanel-hYNqywSQ.js → DepartmentPanel-DW7RJCcR.js} +20 -20
- package/dist/{DesignPanel-GEhqXIAx.js → DesignPanel-CAQBm4D4.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DxA6H5Ts.js → DesignPanel.vue_vue_type_style_index_0_lang-5LGPeXPl.js} +2 -2
- package/dist/{DictView-tyGrHFO8.js → DictView-CvJgPLm3.js} +10 -10
- package/dist/{InvOrganization-DjJ4XkxN.js → InvOrganization-qlTFGd3Z.js} +1 -1
- package/dist/{Org-3eHX7nBU.js → Org-XLreDKod.js} +1 -1
- package/dist/{Preview-Cgc3O8vp.js → Preview-CPbzW7CO.js} +1 -1
- package/dist/{ReportDefine-FYxHLbPV.js → ReportDefine-Cb8Kr-eh.js} +1 -1
- package/dist/{ReportDesign-BTOVgMzz.js → ReportDesign-C7NEHxsF.js} +6 -6
- package/dist/{ReportQuery-Dhy9sk04.js → ReportQuery-DRHAlGXP.js} +1 -1
- package/dist/{ReportQueryFrom-B1TE8lOG.js → ReportQueryFrom-BVzD7HiO.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-D93NL2N7.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-B_lbUpW7.js} +7 -7
- package/dist/{ReportTemplate-C-EuU7mL.js → ReportTemplate-jvKZTiwg.js} +8 -8
- package/dist/{Role-Dc1dZ0o9.js → Role-BHHb-iLB.js} +3 -3
- package/dist/{RoleAssign-DDv65izq.js → RoleAssign-BTBTh4BY.js} +3 -3
- package/dist/{RolePanel-CiDM8OSr.js → RolePanel-BCi1rex2.js} +1 -1
- package/dist/{RolePanel-Dw_pTEGV.js → RolePanel-aV6bg80k.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CG_KY7NS.js → RolePanel.vue_vue_type_script_setup_true_lang-BhFR-z17.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Ctq1lItN.js → RolePanel.vue_vue_type_script_setup_true_lang-C2b-FgFi.js} +7 -7
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CyU7XjI3.js → ScrollPanel.vue_vue_type_style_index_0_lang-BvNAonbh.js} +1 -1
- package/dist/{Staff-DMh451jL.js → Staff-CQqKHfmG.js} +3 -3
- package/dist/{StaffInfo-2PhYcVaz.js → StaffInfo-DBgWZZxQ.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CrCFms3g.js → StaffInfo.vue_vue_type_script_setup_true_lang-DZSUQTor.js} +1 -1
- package/dist/{StaffPanel-BrvkXT68.js → StaffPanel-qhtv83q9.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DKr8VVOJ.js → StaffPanel.vue_vue_type_script_setup_true_lang-B3j8x4MN.js} +8 -8
- package/dist/{SysUser-DLDd5do7.js → SysUser-D-7c33EB.js} +2 -2
- package/dist/{SysUserPanel-DDQxi2Hk.js → SysUserPanel-t1ZR91oy.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-DvOggZs6.js → SysUserPanel.vue_vue_type_script_setup_true_lang-Bz2s1QPZ.js} +1 -1
- package/dist/{SystemMenu-nFNfz4Nj.js → SystemMenu-DNffJRQo.js} +6 -6
- package/dist/{UserInfo-B9PLKur5.js → UserInfo-niYGSHmG.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-BwZNwtQH.js → UserInfo.vue_vue_type_style_index_0_lang-B8CRjdQG.js} +1 -1
- package/dist/{childView-BEDVB_RG.js → childView-Dn28g10M.js} +1 -1
- package/dist/{childView-BRa268Qh.js → childView-E2EnbUz2.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-BcyosNSH.js → childView.vue_vue_type_style_index_0_lang-DFs-YATK.js} +30 -27
- package/dist/{childView.vue_vue_type_style_index_0_lang-qsceJGeR.js → childView.vue_vue_type_style_index_0_lang-UzBSJ6wt.js} +7 -7
- package/dist/{code-rule-CJ4FuOo1.js → code-rule-D-RJozWD.js} +1 -1
- package/dist/core.es.js +10 -10
- package/dist/{cron-task-CXnv7hIa.js → cron-task-CPuU0Rc2.js} +1 -1
- package/dist/{frameView-g5e9PYdE.js → frameView-c4xFtvR6.js} +1 -1
- package/dist/{index-BEAth5RR.js → index-CPKIQXdI.js} +1224 -1215
- package/dist/{layout-home-bl3JShSF.js → layout-home-DrimiAWf.js} +1 -1
- package/dist/{layoutView-DmM9xk-X.js → layoutView-DPaKZNx5.js} +1 -1
- package/dist/{log-in-eGoxFTDE.js → log-in-BQiOfnXg.js} +8 -8
- package/dist/{log-out-CthD_tSk.js → log-out-BvlexfR3.js} +3 -3
- package/dist/{login-Dn7iO3SU.js → login-0R1puBOn.js} +15 -15
- package/dist/{login-log-DJBGJVV0.js → login-log-BEHYT0v0.js} +5 -5
- package/dist/{lov-view-Bt23RK6S.js → lov-view-DieM-cvR.js} +6 -6
- package/dist/{menuInfo-BEmcSaIX.js → menuInfo-Db7s_jX8.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CVuG-x2a.js → menuInfo.vue_vue_type_style_index_0_lang-QbKkjhUR.js} +1 -1
- package/dist/{pda-app-BKfXoKAs.js → pda-app-CCtwSfLe.js} +8 -8
- package/dist/{resource-CshrvEYp.js → resource-rliX23RM.js} +4 -4
- package/dist/{su-welcome-CYYy-dzr-D3RKPoB0-DhP783YJ.js → su-welcome-MLhkyOoQ.js} +20571 -20479
- package/dist/{sys-config-Jqj3l7NK.js → sys-config-Ci6UV7lE.js} +12 -12
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/components/udp/form-upload/form-upload.vue +496 -492
- package/src/components/udp/utils.ts +414 -408
- package/src/plugins/i18n/zh.ts +1 -0
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/plugins/vxe-table/render.tsx +995 -968
- package/src/views/udev/dict/DictView.vue +118 -118
- package/src/views/udev/dict/childView.vue +185 -184
- package/src/views/ufile/aggregation/File.vue +87 -87
- package/src/views/uhome/components/home-todo.vue +11 -7
- package/src/views/uhome/su-welcome.vue +1 -3
- package/src/views/upms/user/login-log.vue +2 -2
- package/vite.config.ts +83 -84
- package/dist/403-CxOqlq0f-C28ufSE6.js +0 -65
- package/dist/403-WCboRvzZ-ZAPgYStl-Ck7rlpC9.js +0 -65
- package/dist/404-2V0Qi-d7-DkNwQggp-3kilva5o.js +0 -65
- package/dist/404-xdB6lFeQ-DRhUFuKU.js +0 -65
- package/dist/500-BYfzvixf-CGpEieyQ-DLrc9brB.js +0 -67
- package/dist/500-C94bRK2S-_XtNljMI.js +0 -67
- package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5-ChKFxbGl.js +0 -4
- package/dist/AuthorityInfo-Dy3b_nFN-BBC0HKlV.js +0 -4
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY-BgLN7Lgx.js +0 -100
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz-B8tPqh_7.js +0 -100
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE-DAeYw45g.js +0 -4
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +0 -4
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8-C6jMEDJq.js +0 -114
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +0 -114
- package/dist/Company-B4vsXy2I-CkNCOqjJ-PjoD0ztY.js +0 -25
- package/dist/Company-gKkfnhLt-BReGxz7n.js +0 -25
- package/dist/CompanyPanel-BF5Pc35s-CtpymP6a.js +0 -206
- package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_-mYpxegRQ.js +0 -206
- package/dist/DataSet-DT-rGICv-DaUfgbxk-YztlXv7w.js +0 -147
- package/dist/DataSet-DT-rGICv-DaUfgbxk.js +0 -147
- package/dist/Department-D0I3QVZe-CfWPT-lY.js +0 -25
- package/dist/Department-D0dVUrGC-C6HJcYI1-DhAtBQym.js +0 -25
- package/dist/DepartmentPanel-2LHODgc7--VCCaEsu.js +0 -254
- package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd-V3QvVWmJ.js +0 -254
- package/dist/DesignPanel-CtF3cAAQ-FM7zpexb.js +0 -4
- package/dist/DesignPanel-DdFl_ohi-uCwFxcl1-7p3ouXrw.js +0 -4
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY-CoM_RAUN.js +0 -1013
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt-CcCVpy0f.js +0 -1013
- package/dist/DictView-BzQLOf_P-DDicwdmM-B8CFC279.js +0 -111
- package/dist/DictView-H3V5hxg3-BQZWN2zT.js +0 -111
- package/dist/InvOrganization-BiGLnbqe-BK3vgYYR.js +0 -74
- package/dist/InvOrganization-atbhw0CI-BABbVt9V-BT8PkfWL.js +0 -74
- package/dist/Org-BW1YHG-Q-Cow7JWlD-C7ygI7jx.js +0 -39
- package/dist/Org-DQTCQHNY-CEEpGGlZ.js +0 -39
- package/dist/Preview-DJtVsoq1-CCGidQjJ-DQ_OC1-S.js +0 -48
- package/dist/Preview-DXaiis29-BYyNhC1p.js +0 -48
- package/dist/ReportDefine-BLh4CiER-D68a0DWB.js +0 -10
- package/dist/ReportDefine-CNx_ob99-6NQAHK-Q-BL5gB56o.js +0 -10
- package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp-DTsrU_wq.js +0 -165
- package/dist/ReportDesign-Ni1YxrLC-DfziOJc3.js +0 -165
- package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda-c9iy6TZ_.js +0 -75
- package/dist/ReportQuery-C8G88_qF-BKknwX1u.js +0 -75
- package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy-Cq4havLh.js +0 -4
- package/dist/ReportQueryFrom-CuZKPtB4-B_TaZr-N.js +0 -4
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW-CdTqG6KF.js +0 -178
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl-kdXwDD3n.js +0 -178
- package/dist/ReportTemplate-BDANdIWv-D_IGjR1w-txJDRw_J.js +0 -161
- package/dist/ReportTemplate-DFnDXWmx-QQkaZRvV.js +0 -161
- package/dist/Role-BQ7hsfPn-BLwTiMMj.js +0 -25
- package/dist/Role-ByB0WbxW-5E8Mb148-WoZV4JKV.js +0 -25
- package/dist/RoleAssign-DW6iC_0v-Bis61auk-BB4DziuB.js +0 -26
- package/dist/RoleAssign-UPCg2d4G-g4V-duK9.js +0 -26
- package/dist/RolePanel-BM2MaQPU-CgcsbfaX-D28vR3Fh.js +0 -4
- package/dist/RolePanel-C-mQ5XRq-JQYWITkX.js +0 -4
- package/dist/RolePanel-ClQy8DBL-DARL4O-o-DrElGZ66.js +0 -4
- package/dist/RolePanel-CoSXOCZN-BdCEhz3b.js +0 -4
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI-Bsk0Mun8.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF-CMTLt3Lp.js +0 -154
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8-DPs8J-8D.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy-vZfwM6bG.js +0 -154
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3-CTeY23xN.js +0 -100
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk-D-4pB58A.js +0 -100
- package/dist/Staff-CuxzvhD9-D0KTcyRh-Cj8NbX79.js +0 -25
- package/dist/Staff-D-CmvG1R-uwSWH8-m.js +0 -25
- package/dist/StaffInfo-CY7gUICu-EZUhUwIp-C8POP58u.js +0 -4
- package/dist/StaffInfo-Idhvuc6e-COVQmEz0.js +0 -4
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn-p0kltEdZ.js +0 -108
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU-Cj9lcXG6.js +0 -108
- package/dist/StaffPanel-CDDmAYE5-mLPGD2Nf.js +0 -4
- package/dist/StaffPanel-CwqG0_xr-CrvzLJoc-AX54GdZ3.js +0 -4
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee-RiBDcMMj.js +0 -143
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0-DFG90qAT.js +0 -143
- package/dist/SysUser-9Q2UJWhi-DprWXFlR-DUMl4Hfm.js +0 -15
- package/dist/SysUser-a-j5bppr-CpP0s5DW.js +0 -15
- package/dist/SysUserPanel-6V232wwB-DI8apzmL.js +0 -4
- package/dist/SysUserPanel-bJy69O7x-BJtBgFEs-DEXctwBe.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy-CD9JQp9h.js +0 -356
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen-BBtBr0VU.js +0 -356
- package/dist/SystemMenu-BnVeOSOQ-6HW3jX57.js +0 -156
- package/dist/SystemMenu-DGOAolc1-CJSLHP8i-DIUNb03s.js +0 -156
- package/dist/UserInfo-CKoOHkAM-DDWp0I_U-DEerO-y3.js +0 -4
- package/dist/UserInfo-Cax9b2nw-DBResyaY.js +0 -4
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO-7IKIrGoq.js +0 -160
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9-B2nI6TLi.js +0 -160
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes-CRQnmLCs.js +0 -10
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +0 -10
- package/dist/childView-0YZQ6GBn-CEqg7k5d-CDGM_XzZ.js +0 -4
- package/dist/childView-DKG3eZo8-CCtKjCU7.js +0 -4
- package/dist/childView-DKkgi3yo-D47ft-vi-B5yI8Dk7.js +0 -4
- package/dist/childView-siumuBz0-CyYKsSPy.js +0 -4
- package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa-BnvsyZ35.js +0 -143
- package/dist/childView.vue_vue_type_style_index_0_lang-CUfXDS1q-DNNy6Qe3.js +0 -180
- package/dist/childView.vue_vue_type_style_index_0_lang-CW3EbAmW-D6Jvom5y.js +0 -143
- package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK-ZSgCqafc.js +0 -180
- package/dist/code-rule-Dtoree6F-B4yeNvFw.js +0 -148
- package/dist/code-rule-wQyfgpNL-C4evD4Co-BOJCC1LY.js +0 -148
- package/dist/cron-task-C-kryDtd-C0NuGZCe-DIJuoNx-.js +0 -135
- package/dist/cron-task-GSRgA7S5-D_xfN2g_.js +0 -135
- package/dist/flow-task-B07st2aD-CgQvagSQ-BaPlX6ds.js +0 -10
- package/dist/flow-task-B07st2aD-CgQvagSQ.js +0 -10
- package/dist/frameView-BOGA3ezf-QoSxzmSQ-BWs9F5mT.js +0 -44
- package/dist/frameView-Cy6wxW0K-BLdNZaGh.js +0 -44
- package/dist/layout-home-3Dy4onl4-COK554mq.js +0 -228
- package/dist/layout-home-CYHksXN_-Basy-3IH-Dnun4YUs.js +0 -228
- package/dist/layoutView-BaRvAbIa-xVgfqspc-zL46XaoI.js +0 -3302
- package/dist/layoutView-DMjNscJ--DvK2S5BQ.js +0 -3302
- package/dist/log-in-Cx1dGik8-BVeEHeZ8-D7mV8pl4.js +0 -117
- package/dist/log-in-VAG6Cvcx-B6arurXx.js +0 -117
- package/dist/log-out-COYdxrNC-ftopGZdE-Ch_UgXZv.js +0 -130
- package/dist/log-out-DZGaMCjC-OztBlMPh.js +0 -130
- package/dist/login-CqVMdNHs-CRJ-LWAK.js +0 -241
- package/dist/login-Dg9ofNS8-Bocp1XMA-DY4y3cAG.js +0 -241
- package/dist/login-log-DJBGJVV0-AoOyj0jD-AoOyj0jD.js +0 -70
- package/dist/login-log-DJBGJVV0-AoOyj0jD.js +0 -70
- package/dist/lov-view-C0T5prk8-B2DBmn55-BvzOsVW8.js +0 -97
- package/dist/lov-view-Cc68_28B-y4f2SzBr.js +0 -97
- package/dist/menuInfo-BIrIaJlH-Bxn4KTWH.js +0 -4
- package/dist/menuInfo-BZJ_q7bz-Drho-_QC-BK5n3Shr.js +0 -4
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf-DEApwWGK.js +0 -363
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X-gWYo2VJe.js +0 -363
- package/dist/pda-app-DnjphrRS-4tIZDsnN.js +0 -710
- package/dist/pda-app-m9hsppHo-B4xyja1o-9mD3zI7J.js +0 -710
- package/dist/redirect-BqegffKC-CBCIuqmz-46JkXpSM.js +0 -15
- package/dist/redirect-BqegffKC-CBCIuqmz.js +0 -15
- package/dist/resource-C6KEIXu--B_ddyecm-CFF-A4cr.js +0 -97
- package/dist/resource-DISgPDM7-C4P8jqU0.js +0 -97
- package/dist/su-welcome-BjbuSrBZ-DrInu823.js +0 -49339
- package/dist/su-welcome-t7YusM3U.js +0 -49427
- package/dist/sys-config-DCjJGtht-DARDjlrt-Dx8559bf.js +0 -370
- package/dist/sys-config-Yc9vh1t1-B3bJPd9S.js +0 -370
- package/dist/utogether-MlnyYtNS-CGgjFNPS-CGgjFNPS.js +0 -4
- package/dist/utogether-MlnyYtNS-CGgjFNPS.js +0 -4
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, ref as k, inject as f, watch as A, nextTick as M, resolveComponent as p, createElementBlock as O, openBlock as v, withModifiers as V, createElementVNode as a, createBlock as C, createCommentVNode as x, createVNode as y, toDisplayString as g, withCtx as j, normalizeClass as K } from "vue";
|
|
2
|
-
import { W as L } from "./su-welcome-t7YusM3U.js";
|
|
3
|
-
const S = { class: "u-panel-header" }, W = { class: "u-panel-content system-scrollbar" }, R = /* @__PURE__ */ _({
|
|
4
|
-
__name: "ScrollPanel",
|
|
5
|
-
props: {
|
|
6
|
-
title: {},
|
|
7
|
-
url: {},
|
|
8
|
-
showAllButton: { type: Boolean, default: !1 },
|
|
9
|
-
treeOtions: { default: () => ({
|
|
10
|
-
children: "children",
|
|
11
|
-
label: "label"
|
|
12
|
-
}) },
|
|
13
|
-
defaultParams: { default: () => ({}) }
|
|
14
|
-
},
|
|
15
|
-
setup(b, { expose: w }) {
|
|
16
|
-
const h = b, r = k([]), o = k(null), s = f("active"), c = f("scrollPanelChange"), B = f("treeList");
|
|
17
|
-
A(
|
|
18
|
-
() => c.value,
|
|
19
|
-
() => {
|
|
20
|
-
c.value && u();
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
const u = async (t = {}) => {
|
|
24
|
-
const l = Object.assign(t, h.defaultParams), e = await L().get(h.url, l);
|
|
25
|
-
r.value = e.list || e, B.value = e.list || e, s.value = e.list ? e.list[0] : e[0], M(() => {
|
|
26
|
-
var n;
|
|
27
|
-
o.value && (o == null || o.value.setCurrentKey(((n = s.value) == null ? void 0 : n.id) || ""));
|
|
28
|
-
}), c.value = !1;
|
|
29
|
-
}, E = (t) => {
|
|
30
|
-
s.value = t;
|
|
31
|
-
}, P = () => {
|
|
32
|
-
s.value = {};
|
|
33
|
-
}, d = (t, l) => {
|
|
34
|
-
t.forEach((e) => {
|
|
35
|
-
var n;
|
|
36
|
-
o.value.store.nodesMap[e.id].expanded = l, (n = e.children) != null && n.length && d(e.children, l);
|
|
37
|
-
});
|
|
38
|
-
}, m = () => {
|
|
39
|
-
u();
|
|
40
|
-
};
|
|
41
|
-
return w({
|
|
42
|
-
onRefresh: m
|
|
43
|
-
}), u(), (t, l) => {
|
|
44
|
-
const e = p("ut-button"), n = p("vxe-button"), N = p("el-tree");
|
|
45
|
-
return v(), O("div", {
|
|
46
|
-
class: "u-scroll-panel",
|
|
47
|
-
onClick: V(P, ["prevent"])
|
|
48
|
-
}, [
|
|
49
|
-
a("div", S, [
|
|
50
|
-
a("h2", null, g(t.title), 1),
|
|
51
|
-
t.showAllButton ? (v(), C(e, {
|
|
52
|
-
key: 0,
|
|
53
|
-
content: "BtnExpand",
|
|
54
|
-
onClick: l[0] || (l[0] = (i) => d(r.value, !0))
|
|
55
|
-
})) : x("", !0),
|
|
56
|
-
t.showAllButton ? (v(), C(e, {
|
|
57
|
-
key: 1,
|
|
58
|
-
status: "warning",
|
|
59
|
-
content: "BtnCollapse",
|
|
60
|
-
onClick: l[1] || (l[1] = (i) => d(r.value, !1))
|
|
61
|
-
})) : x("", !0),
|
|
62
|
-
y(n, {
|
|
63
|
-
icon: "vxe-icon-refresh",
|
|
64
|
-
onClick: m
|
|
65
|
-
})
|
|
66
|
-
]),
|
|
67
|
-
a("div", W, [
|
|
68
|
-
y(N, {
|
|
69
|
-
ref_key: "tree",
|
|
70
|
-
ref: o,
|
|
71
|
-
data: r.value,
|
|
72
|
-
props: t.treeOtions,
|
|
73
|
-
"expand-on-click-node": !1,
|
|
74
|
-
style: { "background-color": "#fff" },
|
|
75
|
-
class: "u-tree-panel",
|
|
76
|
-
"node-key": "id",
|
|
77
|
-
"highlight-current": "",
|
|
78
|
-
onNodeClick: E
|
|
79
|
-
}, {
|
|
80
|
-
default: j(({ node: i }) => [
|
|
81
|
-
a("span", {
|
|
82
|
-
class: K(["prefix", { "is-leaf": i.isLeaf }])
|
|
83
|
-
}, l[2] || (l[2] = [
|
|
84
|
-
a("i", {
|
|
85
|
-
class: "ri-folder-2-fill ri-lg mr-1",
|
|
86
|
-
style: { color: "#fadb14" }
|
|
87
|
-
}, null, -1)
|
|
88
|
-
]), 2),
|
|
89
|
-
a("span", null, g(i.label), 1)
|
|
90
|
-
]),
|
|
91
|
-
_: 1
|
|
92
|
-
}, 8, ["data", "props"])
|
|
93
|
-
])
|
|
94
|
-
]);
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
export {
|
|
99
|
-
R as K
|
|
100
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, ref as e, createElementBlock as m, provide as t, openBlock as s, createElementVNode as a, createVNode as r } from "vue";
|
|
2
|
-
import { R as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3-CTeY23xN.js";
|
|
3
|
-
import { K as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0-DFG90qAT.js";
|
|
4
|
-
import { t as f } from "./su-welcome-BjbuSrBZ-DrInu823.js";
|
|
5
|
-
const u = { class: "u-content-panel" }, v = { class: "u-left-panel" }, h = { class: "content" }, N = { name: "StaffPanel" }, B = /* @__PURE__ */ i({
|
|
6
|
-
...N,
|
|
7
|
-
setup(C) {
|
|
8
|
-
const l = e(!1), n = e([]), o = e({});
|
|
9
|
-
return t("scrollPanelChange", l), t("active", o), t("treeList", n), (c, P) => (s(), m("div", u, [
|
|
10
|
-
a("div", v, [
|
|
11
|
-
r(p, {
|
|
12
|
-
title: c.$t("department"),
|
|
13
|
-
url: "/uums/department/treeDepartment",
|
|
14
|
-
"tree-otions": { children: "children", label: "deptName" }
|
|
15
|
-
}, null, 8, ["title"])
|
|
16
|
-
]),
|
|
17
|
-
a("div", h, [
|
|
18
|
-
r(d)
|
|
19
|
-
])
|
|
20
|
-
]));
|
|
21
|
-
}
|
|
22
|
-
}), _ = /* @__PURE__ */ f(B, [["__scopeId", "data-v-021a8a4e"]]);
|
|
23
|
-
export {
|
|
24
|
-
_ as default
|
|
25
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, ref as e, createElementBlock as m, provide as t, openBlock as i, createElementVNode as a, createVNode as n } from "vue";
|
|
2
|
-
import { K as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk-D-4pB58A.js";
|
|
3
|
-
import { Q as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee-RiBDcMMj.js";
|
|
4
|
-
import { t as f } from "./su-welcome-t7YusM3U.js";
|
|
5
|
-
const u = { class: "u-content-panel" }, v = { class: "u-left-panel" }, h = { class: "content" }, N = { name: "StaffPanel" }, B = /* @__PURE__ */ c({
|
|
6
|
-
...N,
|
|
7
|
-
setup(C) {
|
|
8
|
-
const o = e(!1), r = e([]), l = e({});
|
|
9
|
-
return t("scrollPanelChange", o), t("active", l), t("treeList", r), (s, P) => (i(), m("div", u, [
|
|
10
|
-
a("div", v, [
|
|
11
|
-
n(p, {
|
|
12
|
-
title: s.$t("department"),
|
|
13
|
-
url: "/uums/department/treeDepartment",
|
|
14
|
-
"tree-otions": { children: "children", label: "deptName" }
|
|
15
|
-
}, null, 8, ["title"])
|
|
16
|
-
]),
|
|
17
|
-
a("div", h, [
|
|
18
|
-
n(d)
|
|
19
|
-
])
|
|
20
|
-
]));
|
|
21
|
-
}
|
|
22
|
-
}), b = /* @__PURE__ */ f(B, [["__scopeId", "data-v-021a8a4e"]]);
|
|
23
|
-
export {
|
|
24
|
-
b as default
|
|
25
|
-
};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, ref as m, onMounted as x, resolveComponent as n, createElementBlock as E, openBlock as U, createVNode as d, withCtx as c } from "vue";
|
|
2
|
-
import { useRender as _ } from "@utogether/utils";
|
|
3
|
-
import { W as v } from "./su-welcome-BjbuSrBZ-DrInu823.js";
|
|
4
|
-
const F = { class: "config" }, B = /* @__PURE__ */ b({
|
|
5
|
-
__name: "StaffInfo",
|
|
6
|
-
props: {
|
|
7
|
-
show: { type: Boolean, default: !0 },
|
|
8
|
-
record: { default: () => ({}) },
|
|
9
|
-
dataStatus: { default: "detail" }
|
|
10
|
-
},
|
|
11
|
-
emits: ["onClose"],
|
|
12
|
-
setup(y, { emit: R }) {
|
|
13
|
-
const i = y, t = _(), a = m({}), p = m(null), s = m(!1), w = { userName: "userName", userId: "id" }, I = { disabled: i.dataStatus !== "add" }, N = [
|
|
14
|
-
{
|
|
15
|
-
field: "employeeCode",
|
|
16
|
-
required: !0,
|
|
17
|
-
span: 8,
|
|
18
|
-
itemRender: t.renderInput({ props: I })
|
|
19
|
-
},
|
|
20
|
-
{ field: "employeeName", required: !0, span: 8, itemRender: t.renderInput() },
|
|
21
|
-
{ field: "gender", span: 8, itemRender: t.renderDict("SU.GENDER") },
|
|
22
|
-
{
|
|
23
|
-
field: "deptName",
|
|
24
|
-
required: !0,
|
|
25
|
-
span: 8,
|
|
26
|
-
itemRender: t.renderLov({ code: "SU.DEPARTMENT", field: "deptName" }, C)
|
|
27
|
-
},
|
|
28
|
-
{ field: "email", span: 8, itemRender: t.renderInput() },
|
|
29
|
-
{ field: "identity", span: 8, itemRender: t.renderInput() },
|
|
30
|
-
{ field: "employeeDate", span: 8, itemRender: t.renderDate() },
|
|
31
|
-
{ field: "solarDay", span: 8, itemRender: t.renderDate() },
|
|
32
|
-
{ field: "phone", span: 8, itemRender: t.renderInput() },
|
|
33
|
-
{ field: "mobile", span: 8, itemRender: t.renderInput() },
|
|
34
|
-
{
|
|
35
|
-
field: "attribute5",
|
|
36
|
-
title: "message.releateUser",
|
|
37
|
-
span: 8,
|
|
38
|
-
itemRender: t.renderSysUser({ mapField: w })
|
|
39
|
-
}
|
|
40
|
-
];
|
|
41
|
-
function C(e) {
|
|
42
|
-
var r, o, l;
|
|
43
|
-
e.row.deptName = ((r = e.item) == null ? void 0 : r.deptName) || e.row.deptName, e.row.deptCode = ((o = e.item) == null ? void 0 : o.deptCode) || e.row.deptCode, e.row.departmentId = ((l = e.item) == null ? void 0 : l.id) || e.row.departmentId;
|
|
44
|
-
}
|
|
45
|
-
const g = R, S = () => {
|
|
46
|
-
p.value.validateForm(async (e) => {
|
|
47
|
-
if (!e) {
|
|
48
|
-
const { dataStatus: r } = i;
|
|
49
|
-
s.value = !0, r === "add" ? await v().post("/uums/employee", a.value) : await v().put("/uums/employee", a.value), s.value = !1, u();
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
function u() {
|
|
54
|
-
g("onClose");
|
|
55
|
-
}
|
|
56
|
-
return x(() => {
|
|
57
|
-
a.value = i.record;
|
|
58
|
-
}), (e, r) => {
|
|
59
|
-
const o = n("ut-form"), l = n("el-divider"), f = n("ut-button"), D = n("el-row"), h = n("el-drawer");
|
|
60
|
-
return U(), E("div", F, [
|
|
61
|
-
d(h, {
|
|
62
|
-
"model-value": e.show,
|
|
63
|
-
"before-close": u,
|
|
64
|
-
direction: "rtl",
|
|
65
|
-
title: e.$t("message.title.employeeInfo"),
|
|
66
|
-
"destroy-on-close": "",
|
|
67
|
-
size: "66%"
|
|
68
|
-
}, {
|
|
69
|
-
default: c(() => [
|
|
70
|
-
d(o, {
|
|
71
|
-
ref_key: "suFormRef",
|
|
72
|
-
ref: p,
|
|
73
|
-
record: a.value,
|
|
74
|
-
loading: s.value,
|
|
75
|
-
items: N,
|
|
76
|
-
"data-status": e.dataStatus
|
|
77
|
-
}, null, 8, ["record", "loading", "data-status"]),
|
|
78
|
-
d(l),
|
|
79
|
-
d(D, {
|
|
80
|
-
type: "flex",
|
|
81
|
-
justify: "end",
|
|
82
|
-
style: { "padding-right": "22px" }
|
|
83
|
-
}, {
|
|
84
|
-
default: c(() => [
|
|
85
|
-
d(f, {
|
|
86
|
-
content: "cancel",
|
|
87
|
-
icon: "ri-close-fill",
|
|
88
|
-
onTap: u
|
|
89
|
-
}),
|
|
90
|
-
d(f, {
|
|
91
|
-
content: "confirm",
|
|
92
|
-
icon: "ri-save-3-fill",
|
|
93
|
-
status: "u-cyan",
|
|
94
|
-
onTap: S
|
|
95
|
-
})
|
|
96
|
-
]),
|
|
97
|
-
_: 1
|
|
98
|
-
})
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["model-value", "title"])
|
|
102
|
-
]);
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
export {
|
|
107
|
-
B as F
|
|
108
|
-
};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, ref as m, onMounted as x, resolveComponent as a, createElementBlock as E, openBlock as T, createVNode as r, withCtx as c } from "vue";
|
|
2
|
-
import { useRender as _ } from "@utogether/utils";
|
|
3
|
-
import { W as v } from "./su-welcome-t7YusM3U.js";
|
|
4
|
-
const U = { class: "config" }, F = /* @__PURE__ */ b({
|
|
5
|
-
__name: "StaffInfo",
|
|
6
|
-
props: {
|
|
7
|
-
show: { type: Boolean, default: !0 },
|
|
8
|
-
record: { default: () => ({}) },
|
|
9
|
-
dataStatus: { default: "detail" }
|
|
10
|
-
},
|
|
11
|
-
emits: ["onClose"],
|
|
12
|
-
setup(y, { emit: R }) {
|
|
13
|
-
const i = y, t = _(), n = m({}), p = m(null), s = m(!1), w = { userName: "userName", userId: "id" }, I = { disabled: i.dataStatus !== "add" }, N = [
|
|
14
|
-
{
|
|
15
|
-
field: "employeeCode",
|
|
16
|
-
required: !0,
|
|
17
|
-
span: 8,
|
|
18
|
-
itemRender: t.renderInput({ props: I })
|
|
19
|
-
},
|
|
20
|
-
{ field: "employeeName", required: !0, span: 8, itemRender: t.renderInput() },
|
|
21
|
-
{ field: "gender", span: 8, itemRender: t.renderDict("SU.GENDER") },
|
|
22
|
-
{
|
|
23
|
-
field: "deptName",
|
|
24
|
-
required: !0,
|
|
25
|
-
span: 8,
|
|
26
|
-
itemRender: t.renderLov({ code: "SU.DEPARTMENT", field: "deptName" }, C)
|
|
27
|
-
},
|
|
28
|
-
{ field: "email", span: 8, itemRender: t.renderInput() },
|
|
29
|
-
{ field: "identity", span: 8, itemRender: t.renderInput() },
|
|
30
|
-
{ field: "employeeDate", span: 8, itemRender: t.renderDate() },
|
|
31
|
-
{ field: "solarDay", span: 8, itemRender: t.renderDate() },
|
|
32
|
-
{ field: "phone", span: 8, itemRender: t.renderInput() },
|
|
33
|
-
{ field: "mobile", span: 8, itemRender: t.renderInput() },
|
|
34
|
-
{
|
|
35
|
-
field: "attribute5",
|
|
36
|
-
title: "message.releateUser",
|
|
37
|
-
span: 8,
|
|
38
|
-
itemRender: t.renderSysUser({ mapField: w })
|
|
39
|
-
}
|
|
40
|
-
];
|
|
41
|
-
function C(e) {
|
|
42
|
-
var d, o, l;
|
|
43
|
-
e.row.deptName = ((d = e.item) == null ? void 0 : d.deptName) || e.row.deptName, e.row.deptCode = ((o = e.item) == null ? void 0 : o.deptCode) || e.row.deptCode, e.row.departmentId = ((l = e.item) == null ? void 0 : l.id) || e.row.departmentId;
|
|
44
|
-
}
|
|
45
|
-
const g = R, S = () => {
|
|
46
|
-
p.value.validateForm(async (e) => {
|
|
47
|
-
if (!e) {
|
|
48
|
-
const { dataStatus: d } = i;
|
|
49
|
-
s.value = !0, d === "add" ? await v().post("/uums/employee", n.value) : await v().put("/uums/employee", n.value), s.value = !1, u();
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
function u() {
|
|
54
|
-
g("onClose");
|
|
55
|
-
}
|
|
56
|
-
return x(() => {
|
|
57
|
-
n.value = i.record;
|
|
58
|
-
}), (e, d) => {
|
|
59
|
-
const o = a("ut-form"), l = a("el-divider"), f = a("ut-button"), D = a("el-row"), h = a("el-drawer");
|
|
60
|
-
return T(), E("div", U, [
|
|
61
|
-
r(h, {
|
|
62
|
-
"model-value": e.show,
|
|
63
|
-
"before-close": u,
|
|
64
|
-
direction: "rtl",
|
|
65
|
-
title: e.$t("message.title.employeeInfo"),
|
|
66
|
-
"destroy-on-close": "",
|
|
67
|
-
size: "66%"
|
|
68
|
-
}, {
|
|
69
|
-
default: c(() => [
|
|
70
|
-
r(o, {
|
|
71
|
-
ref_key: "suFormRef",
|
|
72
|
-
ref: p,
|
|
73
|
-
record: n.value,
|
|
74
|
-
loading: s.value,
|
|
75
|
-
items: N,
|
|
76
|
-
"data-status": e.dataStatus
|
|
77
|
-
}, null, 8, ["record", "loading", "data-status"]),
|
|
78
|
-
r(l),
|
|
79
|
-
r(D, {
|
|
80
|
-
type: "flex",
|
|
81
|
-
justify: "end",
|
|
82
|
-
style: { "padding-right": "22px" }
|
|
83
|
-
}, {
|
|
84
|
-
default: c(() => [
|
|
85
|
-
r(f, {
|
|
86
|
-
content: "cancel",
|
|
87
|
-
icon: "ri-close-fill",
|
|
88
|
-
onTap: u
|
|
89
|
-
}),
|
|
90
|
-
r(f, {
|
|
91
|
-
content: "confirm",
|
|
92
|
-
icon: "ri-save-3-fill",
|
|
93
|
-
status: "u-cyan",
|
|
94
|
-
onTap: S
|
|
95
|
-
})
|
|
96
|
-
]),
|
|
97
|
-
_: 1
|
|
98
|
-
})
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["model-value", "title"])
|
|
102
|
-
]);
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
export {
|
|
107
|
-
F as x
|
|
108
|
-
};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as C, inject as S, reactive as V, watch as D, nextTick as B, resolveComponent as d, createElementBlock as M, openBlock as c, createVNode as n, createBlock as L, createCommentVNode as I, Fragment as P } from "vue";
|
|
2
|
-
import { useI18n as _ } from "vue-i18n";
|
|
3
|
-
import { clone as T } from "xe-utils";
|
|
4
|
-
import { warnMessage as U } from "@utogether/utils";
|
|
5
|
-
import { x as Y } from "./StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU-Cj9lcXG6.js";
|
|
6
|
-
import { W as i } from "./su-welcome-t7YusM3U.js";
|
|
7
|
-
import { VxeUI as j } from "vxe-pc-ui";
|
|
8
|
-
import { c as q } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
|
|
9
|
-
const A = {
|
|
10
|
-
class: "page-content"
|
|
11
|
-
}, s = "/uums/employee", K = /* @__PURE__ */ N({
|
|
12
|
-
__name: "StaffPanel",
|
|
13
|
-
setup(O) {
|
|
14
|
-
const a = C(null), {
|
|
15
|
-
t: u
|
|
16
|
-
} = _(), r = S("active"), t = V({
|
|
17
|
-
record: {},
|
|
18
|
-
showModelView: !1,
|
|
19
|
-
fetchExtParam: {}
|
|
20
|
-
});
|
|
21
|
-
D(() => r.value, () => {
|
|
22
|
-
t.fetchExtParam = {
|
|
23
|
-
departmentId: null
|
|
24
|
-
}, B(() => {
|
|
25
|
-
a.value.refreshData();
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
const m = [{
|
|
29
|
-
code: "sync",
|
|
30
|
-
auth: "wechat",
|
|
31
|
-
status: "success",
|
|
32
|
-
icon: "ri-refresh-line"
|
|
33
|
-
}, {
|
|
34
|
-
code: "sync",
|
|
35
|
-
auth: "dingding",
|
|
36
|
-
status: "success",
|
|
37
|
-
icon: "ri-refresh-line"
|
|
38
|
-
}, {
|
|
39
|
-
code: "sync",
|
|
40
|
-
auth: "OA",
|
|
41
|
-
status: "success",
|
|
42
|
-
icon: "ri-refresh-line"
|
|
43
|
-
}, {
|
|
44
|
-
code: "del",
|
|
45
|
-
auth: "/"
|
|
46
|
-
}], f = [{
|
|
47
|
-
field: "employeeCode"
|
|
48
|
-
}, {
|
|
49
|
-
field: "employeeName"
|
|
50
|
-
}], p = [{
|
|
51
|
-
type: "checkbox",
|
|
52
|
-
width: 50,
|
|
53
|
-
align: "center"
|
|
54
|
-
}, {
|
|
55
|
-
field: "employeeCode"
|
|
56
|
-
}, {
|
|
57
|
-
field: "employeeName",
|
|
58
|
-
width: 150
|
|
59
|
-
}, {
|
|
60
|
-
field: "gender",
|
|
61
|
-
width: 100,
|
|
62
|
-
formatter: ["formatDict", "SU.GENDER"]
|
|
63
|
-
}, {
|
|
64
|
-
field: "enabled",
|
|
65
|
-
width: 100,
|
|
66
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
67
|
-
}, {
|
|
68
|
-
field: "operate",
|
|
69
|
-
width: 150,
|
|
70
|
-
fixed: "right",
|
|
71
|
-
slots: {
|
|
72
|
-
default: ({
|
|
73
|
-
row: e
|
|
74
|
-
}) => {
|
|
75
|
-
const o = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", l = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", E = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
|
|
76
|
-
return [n(P, null, [n(d("ut-button"), {
|
|
77
|
-
icon: "ri-edit-box-line",
|
|
78
|
-
content: "edit",
|
|
79
|
-
onTap: () => v(e)
|
|
80
|
-
}, null), n(d("ut-button"), {
|
|
81
|
-
icon: l,
|
|
82
|
-
content: o,
|
|
83
|
-
status: E,
|
|
84
|
-
onTap: () => y(e)
|
|
85
|
-
}, null)])];
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}], h = {
|
|
89
|
-
toolbarButtonClick({
|
|
90
|
-
code: e
|
|
91
|
-
}) {
|
|
92
|
-
e === "add" && w();
|
|
93
|
-
}
|
|
94
|
-
}, w = () => {
|
|
95
|
-
var e, o;
|
|
96
|
-
if (!((e = r.value) != null && e.deptName))
|
|
97
|
-
return U("请先选择部门");
|
|
98
|
-
t.dataStatus = "add", t.record = {}, t.record.departmentId = (o = r.value) == null ? void 0 : o.id, t.record.deptName = r.value.deptName, t.record.enabled = "1", t.showModelView = !0;
|
|
99
|
-
}, v = (e) => {
|
|
100
|
-
t.dataStatus = "update", t.record = e, t.showModelView = !0;
|
|
101
|
-
}, y = async (e) => {
|
|
102
|
-
const o = T(e, !0);
|
|
103
|
-
a.value.showLoading(), o.enabled = o.enabled === "1" ? "0" : "1", await i().put(s, o), a.value.hiddenLoading(), a.value.refreshData();
|
|
104
|
-
}, b = async () => {
|
|
105
|
-
if (await j.modal.confirm(u("message.tip.confirmSync")) !== "confirm") return;
|
|
106
|
-
a.value.showLoading();
|
|
107
|
-
const [e] = await q(i().post("/uums/employee/syncEwEmp", {}));
|
|
108
|
-
a.value.hiddenLoading(), !e && a.value.refreshData();
|
|
109
|
-
}, g = (e) => {
|
|
110
|
-
e === "sync" && b();
|
|
111
|
-
}, x = {
|
|
112
|
-
querySuccess: (e) => {
|
|
113
|
-
}
|
|
114
|
-
}, k = () => {
|
|
115
|
-
t.showModelView = !1, a.value.refreshData();
|
|
116
|
-
};
|
|
117
|
-
return (e, o) => {
|
|
118
|
-
const l = d("ut-grid");
|
|
119
|
-
return c(), M("div", A, [n(l, {
|
|
120
|
-
ref_key: "xgrid",
|
|
121
|
-
ref: a,
|
|
122
|
-
items: f,
|
|
123
|
-
columns: p,
|
|
124
|
-
"default-params": t.fetchExtParam,
|
|
125
|
-
events: h,
|
|
126
|
-
"auto-load": !1,
|
|
127
|
-
buttons: m,
|
|
128
|
-
url: s,
|
|
129
|
-
callback: x,
|
|
130
|
-
mode: "form",
|
|
131
|
-
onButtonClick: g
|
|
132
|
-
}, null, 8, ["default-params"]), t.showModelView ? (c(), L(Y, {
|
|
133
|
-
key: 0,
|
|
134
|
-
record: t.record,
|
|
135
|
-
"data-status": t.dataStatus,
|
|
136
|
-
onOnClose: k
|
|
137
|
-
}, null, 8, ["record", "data-status"])) : I("", !0)]);
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
export {
|
|
142
|
-
K as Q
|
|
143
|
-
};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as C, inject as S, reactive as V, watch as D, nextTick as B, resolveComponent as d, createElementBlock as M, openBlock as s, createVNode as l, createBlock as L, createCommentVNode as I, Fragment as P } from "vue";
|
|
2
|
-
import { useI18n as A } from "vue-i18n";
|
|
3
|
-
import { clone as O } from "xe-utils";
|
|
4
|
-
import { warnMessage as T } from "@utogether/utils";
|
|
5
|
-
import { F as U } from "./StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn-p0kltEdZ.js";
|
|
6
|
-
import { W as i } from "./su-welcome-BjbuSrBZ-DrInu823.js";
|
|
7
|
-
import { VxeUI as Y } from "vxe-pc-ui";
|
|
8
|
-
import { r as _ } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes-CRQnmLCs.js";
|
|
9
|
-
const F = {
|
|
10
|
-
class: "page-content"
|
|
11
|
-
}, c = "/uums/employee", J = /* @__PURE__ */ N({
|
|
12
|
-
__name: "StaffPanel",
|
|
13
|
-
setup(j) {
|
|
14
|
-
const a = C(null), {
|
|
15
|
-
t: u
|
|
16
|
-
} = A(), r = S("active"), t = V({
|
|
17
|
-
record: {},
|
|
18
|
-
showModelView: !1,
|
|
19
|
-
fetchExtParam: {}
|
|
20
|
-
});
|
|
21
|
-
D(() => r.value, () => {
|
|
22
|
-
t.fetchExtParam = {
|
|
23
|
-
departmentId: null
|
|
24
|
-
}, B(() => {
|
|
25
|
-
a.value.refreshData();
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
const m = [{
|
|
29
|
-
code: "sync",
|
|
30
|
-
auth: "wechat",
|
|
31
|
-
status: "success",
|
|
32
|
-
icon: "ri-refresh-line"
|
|
33
|
-
}, {
|
|
34
|
-
code: "sync",
|
|
35
|
-
auth: "dingding",
|
|
36
|
-
status: "success",
|
|
37
|
-
icon: "ri-refresh-line"
|
|
38
|
-
}, {
|
|
39
|
-
code: "sync",
|
|
40
|
-
auth: "OA",
|
|
41
|
-
status: "success",
|
|
42
|
-
icon: "ri-refresh-line"
|
|
43
|
-
}, {
|
|
44
|
-
code: "del",
|
|
45
|
-
auth: "/"
|
|
46
|
-
}], f = [{
|
|
47
|
-
field: "employeeCode"
|
|
48
|
-
}, {
|
|
49
|
-
field: "employeeName"
|
|
50
|
-
}], p = [{
|
|
51
|
-
type: "checkbox",
|
|
52
|
-
width: 50,
|
|
53
|
-
align: "center"
|
|
54
|
-
}, {
|
|
55
|
-
field: "employeeCode"
|
|
56
|
-
}, {
|
|
57
|
-
field: "employeeName",
|
|
58
|
-
width: 150
|
|
59
|
-
}, {
|
|
60
|
-
field: "gender",
|
|
61
|
-
width: 100,
|
|
62
|
-
formatter: ["formatDict", "SU.GENDER"]
|
|
63
|
-
}, {
|
|
64
|
-
field: "enabled",
|
|
65
|
-
width: 100,
|
|
66
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
67
|
-
}, {
|
|
68
|
-
field: "operate",
|
|
69
|
-
width: 150,
|
|
70
|
-
fixed: "right",
|
|
71
|
-
slots: {
|
|
72
|
-
default: ({
|
|
73
|
-
row: e
|
|
74
|
-
}) => {
|
|
75
|
-
const o = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", n = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", E = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
|
|
76
|
-
return [l(P, null, [l(d("ut-button"), {
|
|
77
|
-
icon: "ri-edit-box-line",
|
|
78
|
-
content: "edit",
|
|
79
|
-
onTap: () => v(e)
|
|
80
|
-
}, null), l(d("ut-button"), {
|
|
81
|
-
icon: n,
|
|
82
|
-
content: o,
|
|
83
|
-
status: E,
|
|
84
|
-
onTap: () => y(e)
|
|
85
|
-
}, null)])];
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}], h = {
|
|
89
|
-
toolbarButtonClick({
|
|
90
|
-
code: e
|
|
91
|
-
}) {
|
|
92
|
-
e === "add" && w();
|
|
93
|
-
}
|
|
94
|
-
}, w = () => {
|
|
95
|
-
var e, o;
|
|
96
|
-
if (!((e = r.value) != null && e.deptName))
|
|
97
|
-
return T("请先选择部门");
|
|
98
|
-
t.dataStatus = "add", t.record = {}, t.record.departmentId = (o = r.value) == null ? void 0 : o.id, t.record.deptName = r.value.deptName, t.record.enabled = "1", t.showModelView = !0;
|
|
99
|
-
}, v = (e) => {
|
|
100
|
-
t.dataStatus = "update", t.record = e, t.showModelView = !0;
|
|
101
|
-
}, y = async (e) => {
|
|
102
|
-
const o = O(e, !0);
|
|
103
|
-
a.value.showLoading(), o.enabled = o.enabled === "1" ? "0" : "1", await i().put(c, o), a.value.hiddenLoading(), a.value.refreshData();
|
|
104
|
-
}, b = async () => {
|
|
105
|
-
if (await Y.modal.confirm(u("message.tip.confirmSync")) !== "confirm") return;
|
|
106
|
-
a.value.showLoading();
|
|
107
|
-
const [e] = await _(i().post("/uums/employee/syncEwEmp", {}));
|
|
108
|
-
a.value.hiddenLoading(), !e && a.value.refreshData();
|
|
109
|
-
}, g = (e) => {
|
|
110
|
-
e === "sync" && b();
|
|
111
|
-
}, x = {
|
|
112
|
-
querySuccess: (e) => {
|
|
113
|
-
}
|
|
114
|
-
}, k = () => {
|
|
115
|
-
t.showModelView = !1, a.value.refreshData();
|
|
116
|
-
};
|
|
117
|
-
return (e, o) => {
|
|
118
|
-
const n = d("ut-grid");
|
|
119
|
-
return s(), M("div", F, [l(n, {
|
|
120
|
-
ref_key: "xgrid",
|
|
121
|
-
ref: a,
|
|
122
|
-
items: f,
|
|
123
|
-
columns: p,
|
|
124
|
-
"default-params": t.fetchExtParam,
|
|
125
|
-
events: h,
|
|
126
|
-
"auto-load": !1,
|
|
127
|
-
buttons: m,
|
|
128
|
-
url: c,
|
|
129
|
-
callback: x,
|
|
130
|
-
mode: "form",
|
|
131
|
-
onButtonClick: g
|
|
132
|
-
}, null, 8, ["default-params"]), t.showModelView ? (s(), L(U, {
|
|
133
|
-
key: 0,
|
|
134
|
-
record: t.record,
|
|
135
|
-
"data-status": t.dataStatus,
|
|
136
|
-
onOnClose: k
|
|
137
|
-
}, null, 8, ["record", "data-status"])) : I("", !0)]);
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
export {
|
|
142
|
-
J as K
|
|
143
|
-
};
|