@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,114 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, watch as v, ref as w, createVNode as n, resolveComponent as a, createElementBlock as y, openBlock as g, withCtx as I, createTextVNode as N } from "vue";
|
|
2
|
-
import { useRender as x } from "@utogether/utils";
|
|
3
|
-
const B = {
|
|
4
|
-
class: "u-dict-config_wrapper"
|
|
5
|
-
}, E = /* @__PURE__ */ h({
|
|
6
|
-
__name: "AuthorityPanel",
|
|
7
|
-
props: {
|
|
8
|
-
record: {
|
|
9
|
-
default: () => ({})
|
|
10
|
-
},
|
|
11
|
-
show: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: !1
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
emits: ["close"],
|
|
17
|
-
setup(s, {
|
|
18
|
-
emit: u
|
|
19
|
-
}) {
|
|
20
|
-
const i = s;
|
|
21
|
-
v(() => i.show, () => {
|
|
22
|
-
o.value = i.show && c();
|
|
23
|
-
});
|
|
24
|
-
const o = w(""), l = x(), p = [{
|
|
25
|
-
type: "checkbox",
|
|
26
|
-
width: 50,
|
|
27
|
-
align: "center"
|
|
28
|
-
}, {
|
|
29
|
-
field: "menuName",
|
|
30
|
-
title: "message.permissionName",
|
|
31
|
-
required: !0,
|
|
32
|
-
editRender: l.renderInput()
|
|
33
|
-
}, {
|
|
34
|
-
field: "permissionCode",
|
|
35
|
-
required: !0,
|
|
36
|
-
minWidth: 180,
|
|
37
|
-
editRender: l.renderInput(),
|
|
38
|
-
slots: {
|
|
39
|
-
edit: ({
|
|
40
|
-
row: e
|
|
41
|
-
}) => {
|
|
42
|
-
var t;
|
|
43
|
-
const r = {
|
|
44
|
-
prefix: () => n("span", null, [o.value, N(".")])
|
|
45
|
-
};
|
|
46
|
-
return e.dispalyCode = (t = e.permissionCode) == null ? void 0 : t.replace(`${o.value}.`, ""), [n(a("vxe-input"), {
|
|
47
|
-
modelValue: e.dispalyCode,
|
|
48
|
-
"onUpdate:modelValue": (d) => e.dispalyCode = d,
|
|
49
|
-
className: "ut-slot-input",
|
|
50
|
-
onInput: () => m(e)
|
|
51
|
-
}, r)];
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}, {
|
|
55
|
-
field: "remark",
|
|
56
|
-
title: "message.udp.description",
|
|
57
|
-
editRender: l.renderInput()
|
|
58
|
-
}, {
|
|
59
|
-
field: "enabled",
|
|
60
|
-
title: "message.enabled",
|
|
61
|
-
width: 90,
|
|
62
|
-
editRender: l.renderDict({
|
|
63
|
-
code: "SU.ENABLE",
|
|
64
|
-
defaultValue: "1"
|
|
65
|
-
}),
|
|
66
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
67
|
-
}], c = () => {
|
|
68
|
-
const {
|
|
69
|
-
record: e
|
|
70
|
-
} = i, {
|
|
71
|
-
id: t,
|
|
72
|
-
parentId: r,
|
|
73
|
-
hasChildren: d
|
|
74
|
-
} = e;
|
|
75
|
-
return !t && !r ? "su" : (d && (e.dispalyCode = ""), e.permissionCode);
|
|
76
|
-
}, m = (e) => {
|
|
77
|
-
e.permissionCode = `${o.value}.${e.dispalyCode}`;
|
|
78
|
-
}, f = u;
|
|
79
|
-
function C() {
|
|
80
|
-
f("close");
|
|
81
|
-
}
|
|
82
|
-
return (e, t) => {
|
|
83
|
-
const r = a("ut-grid"), d = a("el-drawer");
|
|
84
|
-
return g(), y("div", B, [n(d, {
|
|
85
|
-
"model-value": e.show,
|
|
86
|
-
"before-close": C,
|
|
87
|
-
title: "权限明细",
|
|
88
|
-
direction: "rtl",
|
|
89
|
-
"destroy-on-close": "",
|
|
90
|
-
size: "66%"
|
|
91
|
-
}, {
|
|
92
|
-
default: I(() => [n(r, {
|
|
93
|
-
ref: "SuGridRef",
|
|
94
|
-
columns: p,
|
|
95
|
-
url: "/uums/menu",
|
|
96
|
-
"default-params": {
|
|
97
|
-
parentId: e.record.id
|
|
98
|
-
},
|
|
99
|
-
"default-value": {
|
|
100
|
-
parentId: e.record.id,
|
|
101
|
-
menuType: 1
|
|
102
|
-
},
|
|
103
|
-
"pager-config": {
|
|
104
|
-
layouts: []
|
|
105
|
-
}
|
|
106
|
-
}, null, 8, ["default-params", "default-value"])]),
|
|
107
|
-
_: 1
|
|
108
|
-
}, 8, ["model-value"])]);
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
export {
|
|
113
|
-
E as V
|
|
114
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, watch as v, ref as w, createVNode as n, resolveComponent as a, createElementBlock as y, openBlock as g, withCtx as x, createTextVNode as I } from "vue";
|
|
2
|
-
import { useRender as N } from "@utogether/utils";
|
|
3
|
-
const B = {
|
|
4
|
-
class: "u-dict-config_wrapper"
|
|
5
|
-
}, V = /* @__PURE__ */ h({
|
|
6
|
-
__name: "AuthorityPanel",
|
|
7
|
-
props: {
|
|
8
|
-
record: {
|
|
9
|
-
default: () => ({})
|
|
10
|
-
},
|
|
11
|
-
show: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: !1
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
emits: ["close"],
|
|
17
|
-
setup(s, {
|
|
18
|
-
emit: u
|
|
19
|
-
}) {
|
|
20
|
-
const i = s;
|
|
21
|
-
v(() => i.show, () => {
|
|
22
|
-
o.value = i.show && c();
|
|
23
|
-
});
|
|
24
|
-
const o = w(""), l = N(), p = [{
|
|
25
|
-
type: "checkbox",
|
|
26
|
-
width: 50,
|
|
27
|
-
align: "center"
|
|
28
|
-
}, {
|
|
29
|
-
field: "menuName",
|
|
30
|
-
title: "message.permissionName",
|
|
31
|
-
required: !0,
|
|
32
|
-
editRender: l.renderInput()
|
|
33
|
-
}, {
|
|
34
|
-
field: "permissionCode",
|
|
35
|
-
required: !0,
|
|
36
|
-
minWidth: 180,
|
|
37
|
-
editRender: l.renderInput(),
|
|
38
|
-
slots: {
|
|
39
|
-
edit: ({
|
|
40
|
-
row: e
|
|
41
|
-
}) => {
|
|
42
|
-
var t;
|
|
43
|
-
const r = {
|
|
44
|
-
prefix: () => n("span", null, [o.value, I(".")])
|
|
45
|
-
};
|
|
46
|
-
return e.dispalyCode = (t = e.permissionCode) == null ? void 0 : t.replace(`${o.value}.`, ""), [n(a("vxe-input"), {
|
|
47
|
-
modelValue: e.dispalyCode,
|
|
48
|
-
"onUpdate:modelValue": (d) => e.dispalyCode = d,
|
|
49
|
-
className: "ut-slot-input",
|
|
50
|
-
onInput: () => m(e)
|
|
51
|
-
}, r)];
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}, {
|
|
55
|
-
field: "remark",
|
|
56
|
-
title: "message.udp.description",
|
|
57
|
-
editRender: l.renderInput()
|
|
58
|
-
}, {
|
|
59
|
-
field: "enabled",
|
|
60
|
-
title: "message.enabled",
|
|
61
|
-
width: 90,
|
|
62
|
-
editRender: l.renderDict({
|
|
63
|
-
code: "SU.ENABLE",
|
|
64
|
-
defaultValue: "1"
|
|
65
|
-
}),
|
|
66
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
67
|
-
}], c = () => {
|
|
68
|
-
const {
|
|
69
|
-
record: e
|
|
70
|
-
} = i, {
|
|
71
|
-
id: t,
|
|
72
|
-
parentId: r,
|
|
73
|
-
hasChildren: d
|
|
74
|
-
} = e;
|
|
75
|
-
return !t && !r ? "su" : (d && (e.dispalyCode = ""), e.permissionCode);
|
|
76
|
-
}, m = (e) => {
|
|
77
|
-
e.permissionCode = `${o.value}.${e.dispalyCode}`;
|
|
78
|
-
}, f = u;
|
|
79
|
-
function C() {
|
|
80
|
-
f("close");
|
|
81
|
-
}
|
|
82
|
-
return (e, t) => {
|
|
83
|
-
const r = a("ut-grid"), d = a("el-drawer");
|
|
84
|
-
return g(), y("div", B, [n(d, {
|
|
85
|
-
"model-value": e.show,
|
|
86
|
-
"before-close": C,
|
|
87
|
-
title: "权限明细",
|
|
88
|
-
direction: "rtl",
|
|
89
|
-
"destroy-on-close": "",
|
|
90
|
-
size: "66%"
|
|
91
|
-
}, {
|
|
92
|
-
default: x(() => [n(r, {
|
|
93
|
-
ref: "SuGridRef",
|
|
94
|
-
columns: p,
|
|
95
|
-
url: "/uums/menu",
|
|
96
|
-
"default-params": {
|
|
97
|
-
parentId: e.record.id
|
|
98
|
-
},
|
|
99
|
-
"default-value": {
|
|
100
|
-
parentId: e.record.id,
|
|
101
|
-
menuType: 1
|
|
102
|
-
},
|
|
103
|
-
"pager-config": {
|
|
104
|
-
layouts: []
|
|
105
|
-
}
|
|
106
|
-
}, null, 8, ["default-params", "default-value"])]),
|
|
107
|
-
_: 1
|
|
108
|
-
}, 8, ["model-value"])]);
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
export {
|
|
113
|
-
V as B
|
|
114
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, ref as e, createElementBlock as s, provide as t, openBlock as m, createElementVNode as o, createVNode as n } from "vue";
|
|
2
|
-
import { R as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3-CTeY23xN.js";
|
|
3
|
-
import d from "./CompanyPanel-Czcx8Gyw-CvndXwB_-mYpxegRQ.js";
|
|
4
|
-
import { t as f } from "./su-welcome-BjbuSrBZ-DrInu823.js";
|
|
5
|
-
const u = { class: "u-content-panel" }, v = { class: "u-left-panel" }, _ = { class: "content" }, h = /* @__PURE__ */ c({
|
|
6
|
-
__name: "Company",
|
|
7
|
-
setup(C) {
|
|
8
|
-
const a = e({}), l = e(!1), r = e([]);
|
|
9
|
-
return t("active", a), t("scrollPanelChange", l), t("treeList", r), (i, y) => (m(), s("div", u, [
|
|
10
|
-
o("div", v, [
|
|
11
|
-
n(p, {
|
|
12
|
-
title: i.$t("company"),
|
|
13
|
-
url: "/uums/unit",
|
|
14
|
-
"tree-otions": { children: "children", label: "unitName" }
|
|
15
|
-
}, null, 8, ["title"])
|
|
16
|
-
]),
|
|
17
|
-
o("div", _, [
|
|
18
|
-
n(d)
|
|
19
|
-
])
|
|
20
|
-
]));
|
|
21
|
-
}
|
|
22
|
-
}), V = /* @__PURE__ */ f(h, [["__scopeId", "data-v-a3f1da33"]]);
|
|
23
|
-
export {
|
|
24
|
-
V as default
|
|
25
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, ref as e, createElementBlock as i, provide as t, openBlock as m, createElementVNode as o, 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 d from "./CompanyPanel-BF5Pc35s-CtpymP6a.js";
|
|
4
|
-
import { t as u } from "./su-welcome-t7YusM3U.js";
|
|
5
|
-
const f = { class: "u-content-panel" }, v = { class: "u-left-panel" }, h = { class: "content" }, C = /* @__PURE__ */ c({
|
|
6
|
-
__name: "Company",
|
|
7
|
-
setup(_) {
|
|
8
|
-
const a = e({}), l = e(!1), r = e([]);
|
|
9
|
-
return t("active", a), t("scrollPanelChange", l), t("treeList", r), (s, y) => (m(), i("div", f, [
|
|
10
|
-
o("div", v, [
|
|
11
|
-
n(p, {
|
|
12
|
-
title: s.$t("company"),
|
|
13
|
-
url: "/uums/unit",
|
|
14
|
-
"tree-otions": { children: "children", label: "unitName" }
|
|
15
|
-
}, null, 8, ["title"])
|
|
16
|
-
]),
|
|
17
|
-
o("div", h, [
|
|
18
|
-
n(d)
|
|
19
|
-
])
|
|
20
|
-
]));
|
|
21
|
-
}
|
|
22
|
-
}), E = /* @__PURE__ */ u(C, [["__scopeId", "data-v-a3f1da33"]]);
|
|
23
|
-
export {
|
|
24
|
-
E as default
|
|
25
|
-
};
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { defineComponent as j, reactive as B, inject as C, watch as W, resolveComponent as s, createElementBlock as A, openBlock as r, createVNode as i, createBlock as u, withCtx as d, createElementVNode as l, createCommentVNode as v, createTextVNode as E, toDisplayString as L } from "vue";
|
|
2
|
-
import { useI18n as M } from "vue-i18n";
|
|
3
|
-
import { VxeUI as U } from "vxe-table";
|
|
4
|
-
import { templateRef as D } from "@vueuse/core";
|
|
5
|
-
import { clone as O } from "xe-utils";
|
|
6
|
-
import { warnMessage as Q, successMessage as R } from "@utogether/utils";
|
|
7
|
-
import { t as z, W as G } from "./su-welcome-t7YusM3U.js";
|
|
8
|
-
const H = { class: "page-content" }, w = "/uums/unit", J = /* @__PURE__ */ j({
|
|
9
|
-
__name: "CompanyPanel",
|
|
10
|
-
setup(K) {
|
|
11
|
-
const e = B({
|
|
12
|
-
record: {},
|
|
13
|
-
dataList: [],
|
|
14
|
-
submitLoading: !1,
|
|
15
|
-
dialogFormVisible: !1,
|
|
16
|
-
isChecked: !1,
|
|
17
|
-
dataStatus: ""
|
|
18
|
-
}), { t: n } = M(), h = {
|
|
19
|
-
unitName: [
|
|
20
|
-
{
|
|
21
|
-
required: !0,
|
|
22
|
-
message: `${n("message.required")}${n("message.udp.unitName")}`
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
unitCode: [
|
|
26
|
-
{
|
|
27
|
-
required: !0,
|
|
28
|
-
message: `${n("message.required")}${n("message.udp.unitCode")}`
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}, c = C("active"), S = C("scrollPanelChange"), f = G();
|
|
32
|
-
W(
|
|
33
|
-
() => c.value,
|
|
34
|
-
(a, t) => {
|
|
35
|
-
e.record = c.value, a != null && a.id && t != null && t.id && a !== t && x("detail");
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
const V = () => {
|
|
39
|
-
var a;
|
|
40
|
-
e.dataStatus = "add", e.record = {}, e.record.parentId = (a = c.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
|
|
41
|
-
}, x = (a) => {
|
|
42
|
-
e.dataStatus = a, e.record = O(c.value, !0), e.dialogFormVisible = !0;
|
|
43
|
-
}, y = D("xForm", null), _ = () => {
|
|
44
|
-
y.value.validate(async (a) => {
|
|
45
|
-
if (!a) {
|
|
46
|
-
const { record: t, dataStatus: o } = e;
|
|
47
|
-
o === "add" ? await f.post(w, t) : await f.put(w, t), b();
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}, $ = async () => {
|
|
51
|
-
var a;
|
|
52
|
-
const { record: t } = e;
|
|
53
|
-
if ((a = t.children) != null && a.length) return Q(n("message.deletePartment"));
|
|
54
|
-
await U.modal.confirm(n("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(w, t), b());
|
|
55
|
-
}, b = () => {
|
|
56
|
-
S.value = !0, R(n("message.operateSuccess")), F();
|
|
57
|
-
}, N = () => {
|
|
58
|
-
e.dialogFormVisible = !1, e.dataStatus = "";
|
|
59
|
-
}, F = () => {
|
|
60
|
-
e.dialogFormVisible = !1;
|
|
61
|
-
};
|
|
62
|
-
return (a, t) => {
|
|
63
|
-
const o = s("ut-button"), I = s("vxe-toolbar"), g = s("vxe-form-item"), q = s("vxe-form"), m = s("el-row"), T = s("vxe-checkbox"), k = s("vxe-button"), P = s("el-card");
|
|
64
|
-
return r(), A("div", H, [
|
|
65
|
-
i(I, {
|
|
66
|
-
perfect: "",
|
|
67
|
-
class: ""
|
|
68
|
-
}, {
|
|
69
|
-
buttons: d(() => [
|
|
70
|
-
i(o, {
|
|
71
|
-
status: "u-cyan",
|
|
72
|
-
icon: "ri-add-line",
|
|
73
|
-
content: "add",
|
|
74
|
-
onTap: t[0] || (t[0] = (p) => V())
|
|
75
|
-
}),
|
|
76
|
-
i(o, {
|
|
77
|
-
status: "primary",
|
|
78
|
-
icon: "ri-edit-box-line",
|
|
79
|
-
content: "edit",
|
|
80
|
-
onTap: t[1] || (t[1] = (p) => x("update"))
|
|
81
|
-
}),
|
|
82
|
-
i(o, {
|
|
83
|
-
status: "danger",
|
|
84
|
-
icon: "ri-close-fill",
|
|
85
|
-
content: "delete",
|
|
86
|
-
onTap: t[2] || (t[2] = (p) => $())
|
|
87
|
-
})
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}),
|
|
91
|
-
e.dialogFormVisible ? (r(), u(m, {
|
|
92
|
-
key: 0,
|
|
93
|
-
type: "flex",
|
|
94
|
-
justify: "center",
|
|
95
|
-
align: "middle",
|
|
96
|
-
class: "w-departInfo-wrapper"
|
|
97
|
-
}, {
|
|
98
|
-
default: d(() => [
|
|
99
|
-
i(P, {
|
|
100
|
-
width: "60%",
|
|
101
|
-
shadow: "always",
|
|
102
|
-
class: "box-card w-card-wrapper"
|
|
103
|
-
}, {
|
|
104
|
-
default: d(() => [
|
|
105
|
-
t[4] || (t[4] = l("div", { class: "clearfix" }, [
|
|
106
|
-
l("span", { class: "w-card-title" })
|
|
107
|
-
], -1)),
|
|
108
|
-
i(m, null, {
|
|
109
|
-
default: d(() => [
|
|
110
|
-
i(q, {
|
|
111
|
-
ref_key: "xForm",
|
|
112
|
-
ref: y,
|
|
113
|
-
data: e.record,
|
|
114
|
-
rules: h,
|
|
115
|
-
"label-width": "80px"
|
|
116
|
-
}, {
|
|
117
|
-
default: d(() => [
|
|
118
|
-
i(g, {
|
|
119
|
-
title: a.$t("message.udp.unitName"),
|
|
120
|
-
field: "unitName",
|
|
121
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
122
|
-
span: 24
|
|
123
|
-
}, null, 8, ["title", "item-render"]),
|
|
124
|
-
i(g, {
|
|
125
|
-
title: a.$t("message.udp.unitCode"),
|
|
126
|
-
field: "unitCode",
|
|
127
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
|
|
128
|
-
span: 24
|
|
129
|
-
}, null, 8, ["title", "item-render"]),
|
|
130
|
-
i(g, {
|
|
131
|
-
title: a.$t("message.udp.unitNote"),
|
|
132
|
-
field: "unitNote",
|
|
133
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
134
|
-
span: 24
|
|
135
|
-
}, null, 8, ["title", "item-render"])
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["data"])
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
}),
|
|
142
|
-
i(m, {
|
|
143
|
-
type: "flex",
|
|
144
|
-
justify: "center"
|
|
145
|
-
}, {
|
|
146
|
-
default: d(() => [
|
|
147
|
-
e.dataStatus === "add" ? (r(), u(T, {
|
|
148
|
-
key: 0,
|
|
149
|
-
modelValue: e.isChecked,
|
|
150
|
-
"onUpdate:modelValue": t[3] || (t[3] = (p) => e.isChecked = p),
|
|
151
|
-
style: { "padding-top": "5px", "margin-right": "8px" }
|
|
152
|
-
}, {
|
|
153
|
-
default: d(() => [
|
|
154
|
-
E(L(a.$t("message.udp.continueAdd")), 1)
|
|
155
|
-
]),
|
|
156
|
-
_: 1
|
|
157
|
-
}, 8, ["modelValue"])) : v("", !0),
|
|
158
|
-
e.dataStatus !== "detail" ? (r(), u(k, {
|
|
159
|
-
key: 1,
|
|
160
|
-
status: "primary",
|
|
161
|
-
content: a.$t("message.btn.confirm"),
|
|
162
|
-
onClick: _
|
|
163
|
-
}, null, 8, ["content"])) : v("", !0),
|
|
164
|
-
e.dataStatus !== "detail" ? (r(), u(k, {
|
|
165
|
-
key: 2,
|
|
166
|
-
status: "warning",
|
|
167
|
-
content: a.$t("message.btn.cancel"),
|
|
168
|
-
onClick: N
|
|
169
|
-
}, null, 8, ["content"])) : v("", !0)
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
})
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
})
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
})) : (r(), u(m, {
|
|
179
|
-
key: 1,
|
|
180
|
-
class: "w-noclick-wrapper"
|
|
181
|
-
}, {
|
|
182
|
-
default: d(() => t[5] || (t[5] = [
|
|
183
|
-
l("div", { class: "w-content-wrapper" }, [
|
|
184
|
-
l("ul", null, [
|
|
185
|
-
l("li", { class: "w-department-line" }, [
|
|
186
|
-
l("div", null, "● 点击新建,新建租户信息。"),
|
|
187
|
-
l("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的租户名称,默认创建为当前租户的下属租户 "),
|
|
188
|
-
l("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的租户名称,则创建为一级租户")
|
|
189
|
-
]),
|
|
190
|
-
l("li", { class: "w-department-line" }, "● 点击树结构上的租户名称,点击修改按钮,修改租户信息。"),
|
|
191
|
-
l("li", { class: "w-department-line" }, [
|
|
192
|
-
l("div", null, "● 点击树结构上的租户名称,点击删除按钮,删除租户信息。"),
|
|
193
|
-
l("div", { style: { "text-indent": "2em" } }, "当租户下有单位存在时,不允许删除租户信息。")
|
|
194
|
-
])
|
|
195
|
-
])
|
|
196
|
-
], -1)
|
|
197
|
-
])),
|
|
198
|
-
_: 1
|
|
199
|
-
}))
|
|
200
|
-
]);
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
}), ie = /* @__PURE__ */ z(J, [["__scopeId", "data-v-bc1a230e"]]);
|
|
204
|
-
export {
|
|
205
|
-
ie as default
|
|
206
|
-
};
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { defineComponent as j, reactive as B, inject as C, watch as E, resolveComponent as d, createElementBlock as L, openBlock as r, createVNode as i, createBlock as u, withCtx as n, createElementVNode as l, createCommentVNode as v, createTextVNode as M, toDisplayString as U } from "vue";
|
|
2
|
-
import { useI18n as A } from "vue-i18n";
|
|
3
|
-
import { VxeUI as D } from "vxe-table";
|
|
4
|
-
import { templateRef as H } from "@vueuse/core";
|
|
5
|
-
import { clone as J } from "xe-utils";
|
|
6
|
-
import { warnMessage as K, successMessage as R } from "@utogether/utils";
|
|
7
|
-
import { t as W, W as z } from "./su-welcome-BjbuSrBZ-DrInu823.js";
|
|
8
|
-
const G = { class: "page-content" }, w = "/uums/unit", O = /* @__PURE__ */ j({
|
|
9
|
-
__name: "CompanyPanel",
|
|
10
|
-
setup(Q) {
|
|
11
|
-
const e = B({
|
|
12
|
-
record: {},
|
|
13
|
-
dataList: [],
|
|
14
|
-
submitLoading: !1,
|
|
15
|
-
dialogFormVisible: !1,
|
|
16
|
-
isChecked: !1,
|
|
17
|
-
dataStatus: ""
|
|
18
|
-
}), { t: s } = A(), h = {
|
|
19
|
-
unitName: [
|
|
20
|
-
{
|
|
21
|
-
required: !0,
|
|
22
|
-
message: `${s("message.required")}${s("message.udp.unitName")}`
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
unitCode: [
|
|
26
|
-
{
|
|
27
|
-
required: !0,
|
|
28
|
-
message: `${s("message.required")}${s("message.udp.unitCode")}`
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}, c = C("active"), V = C("scrollPanelChange"), f = z();
|
|
32
|
-
E(
|
|
33
|
-
() => c.value,
|
|
34
|
-
(a, t) => {
|
|
35
|
-
e.record = c.value, a != null && a.id && t != null && t.id && a !== t && x("detail");
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
const S = () => {
|
|
39
|
-
var a;
|
|
40
|
-
e.dataStatus = "add", e.record = {}, e.record.parentId = (a = c.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
|
|
41
|
-
}, x = (a) => {
|
|
42
|
-
e.dataStatus = a, e.record = J(c.value, !0), e.dialogFormVisible = !0;
|
|
43
|
-
}, y = H("xForm", null), _ = () => {
|
|
44
|
-
y.value.validate(async (a) => {
|
|
45
|
-
if (!a) {
|
|
46
|
-
const { record: t, dataStatus: o } = e;
|
|
47
|
-
o === "add" ? await f.post(w, t) : await f.put(w, t), b();
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}, $ = async () => {
|
|
51
|
-
var a;
|
|
52
|
-
const { record: t } = e;
|
|
53
|
-
if ((a = t.children) != null && a.length) return K(s("message.deletePartment"));
|
|
54
|
-
await D.modal.confirm(s("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(w, t), b());
|
|
55
|
-
}, b = () => {
|
|
56
|
-
V.value = !0, R(s("message.operateSuccess")), F();
|
|
57
|
-
}, N = () => {
|
|
58
|
-
e.dialogFormVisible = !1, e.dataStatus = "";
|
|
59
|
-
}, F = () => {
|
|
60
|
-
e.dialogFormVisible = !1;
|
|
61
|
-
};
|
|
62
|
-
return (a, t) => {
|
|
63
|
-
const o = d("ut-button"), I = d("vxe-toolbar"), g = d("vxe-form-item"), q = d("vxe-form"), m = d("el-row"), T = d("vxe-checkbox"), k = d("vxe-button"), P = d("el-card");
|
|
64
|
-
return r(), L("div", G, [
|
|
65
|
-
i(I, {
|
|
66
|
-
perfect: "",
|
|
67
|
-
class: ""
|
|
68
|
-
}, {
|
|
69
|
-
buttons: n(() => [
|
|
70
|
-
i(o, {
|
|
71
|
-
status: "u-cyan",
|
|
72
|
-
icon: "ri-add-line",
|
|
73
|
-
content: "add",
|
|
74
|
-
onTap: t[0] || (t[0] = (p) => S())
|
|
75
|
-
}),
|
|
76
|
-
i(o, {
|
|
77
|
-
status: "primary",
|
|
78
|
-
icon: "ri-edit-box-line",
|
|
79
|
-
content: "edit",
|
|
80
|
-
onTap: t[1] || (t[1] = (p) => x("update"))
|
|
81
|
-
}),
|
|
82
|
-
i(o, {
|
|
83
|
-
status: "danger",
|
|
84
|
-
icon: "ri-close-fill",
|
|
85
|
-
content: "delete",
|
|
86
|
-
onTap: t[2] || (t[2] = (p) => $())
|
|
87
|
-
})
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}),
|
|
91
|
-
e.dialogFormVisible ? (r(), u(m, {
|
|
92
|
-
key: 0,
|
|
93
|
-
type: "flex",
|
|
94
|
-
justify: "center",
|
|
95
|
-
align: "middle",
|
|
96
|
-
class: "w-departInfo-wrapper"
|
|
97
|
-
}, {
|
|
98
|
-
default: n(() => [
|
|
99
|
-
i(P, {
|
|
100
|
-
width: "60%",
|
|
101
|
-
shadow: "always",
|
|
102
|
-
class: "box-card w-card-wrapper"
|
|
103
|
-
}, {
|
|
104
|
-
default: n(() => [
|
|
105
|
-
t[4] || (t[4] = l("div", { class: "clearfix" }, [
|
|
106
|
-
l("span", { class: "w-card-title" })
|
|
107
|
-
], -1)),
|
|
108
|
-
i(m, null, {
|
|
109
|
-
default: n(() => [
|
|
110
|
-
i(q, {
|
|
111
|
-
ref_key: "xForm",
|
|
112
|
-
ref: y,
|
|
113
|
-
data: e.record,
|
|
114
|
-
rules: h,
|
|
115
|
-
"label-width": "80px"
|
|
116
|
-
}, {
|
|
117
|
-
default: n(() => [
|
|
118
|
-
i(g, {
|
|
119
|
-
title: a.$t("message.udp.unitName"),
|
|
120
|
-
field: "unitName",
|
|
121
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
122
|
-
span: 24
|
|
123
|
-
}, null, 8, ["title", "item-render"]),
|
|
124
|
-
i(g, {
|
|
125
|
-
title: a.$t("message.udp.unitCode"),
|
|
126
|
-
field: "unitCode",
|
|
127
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
|
|
128
|
-
span: 24
|
|
129
|
-
}, null, 8, ["title", "item-render"]),
|
|
130
|
-
i(g, {
|
|
131
|
-
title: a.$t("message.udp.unitNote"),
|
|
132
|
-
field: "unitNote",
|
|
133
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
134
|
-
span: 24
|
|
135
|
-
}, null, 8, ["title", "item-render"])
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["data"])
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
}),
|
|
142
|
-
i(m, {
|
|
143
|
-
type: "flex",
|
|
144
|
-
justify: "center"
|
|
145
|
-
}, {
|
|
146
|
-
default: n(() => [
|
|
147
|
-
e.dataStatus === "add" ? (r(), u(T, {
|
|
148
|
-
key: 0,
|
|
149
|
-
modelValue: e.isChecked,
|
|
150
|
-
"onUpdate:modelValue": t[3] || (t[3] = (p) => e.isChecked = p),
|
|
151
|
-
style: { "padding-top": "5px", "margin-right": "8px" }
|
|
152
|
-
}, {
|
|
153
|
-
default: n(() => [
|
|
154
|
-
M(U(a.$t("message.udp.continueAdd")), 1)
|
|
155
|
-
]),
|
|
156
|
-
_: 1
|
|
157
|
-
}, 8, ["modelValue"])) : v("", !0),
|
|
158
|
-
e.dataStatus !== "detail" ? (r(), u(k, {
|
|
159
|
-
key: 1,
|
|
160
|
-
status: "primary",
|
|
161
|
-
content: a.$t("message.btn.confirm"),
|
|
162
|
-
onClick: _
|
|
163
|
-
}, null, 8, ["content"])) : v("", !0),
|
|
164
|
-
e.dataStatus !== "detail" ? (r(), u(k, {
|
|
165
|
-
key: 2,
|
|
166
|
-
status: "warning",
|
|
167
|
-
content: a.$t("message.btn.cancel"),
|
|
168
|
-
onClick: N
|
|
169
|
-
}, null, 8, ["content"])) : v("", !0)
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
})
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
})
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
})) : (r(), u(m, {
|
|
179
|
-
key: 1,
|
|
180
|
-
class: "w-noclick-wrapper"
|
|
181
|
-
}, {
|
|
182
|
-
default: n(() => t[5] || (t[5] = [
|
|
183
|
-
l("div", { class: "w-content-wrapper" }, [
|
|
184
|
-
l("ul", null, [
|
|
185
|
-
l("li", { class: "w-department-line" }, [
|
|
186
|
-
l("div", null, "● 点击新建,新建租户信息。"),
|
|
187
|
-
l("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的租户名称,默认创建为当前租户的下属租户 "),
|
|
188
|
-
l("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的租户名称,则创建为一级租户")
|
|
189
|
-
]),
|
|
190
|
-
l("li", { class: "w-department-line" }, "● 点击树结构上的租户名称,点击修改按钮,修改租户信息。"),
|
|
191
|
-
l("li", { class: "w-department-line" }, [
|
|
192
|
-
l("div", null, "● 点击树结构上的租户名称,点击删除按钮,删除租户信息。"),
|
|
193
|
-
l("div", { style: { "text-indent": "2em" } }, "当租户下有单位存在时,不允许删除租户信息。")
|
|
194
|
-
])
|
|
195
|
-
])
|
|
196
|
-
], -1)
|
|
197
|
-
])),
|
|
198
|
-
_: 1
|
|
199
|
-
}))
|
|
200
|
-
]);
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
}), ie = /* @__PURE__ */ W(O, [["__scopeId", "data-v-bc1a230e"]]);
|
|
204
|
-
export {
|
|
205
|
-
ie as default
|
|
206
|
-
};
|