@utogether/udp-core 1.0.0

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.
Files changed (343) hide show
  1. package/build/index.ts +90 -0
  2. package/build/plugins.ts +26 -0
  3. package/dist/403-B1R-4vXw.js +64 -0
  4. package/dist/404-fXPl8csw.js +64 -0
  5. package/dist/500-eI5842YB.js +66 -0
  6. package/dist/AuthorityInfo-CfVH6PaB.js +4 -0
  7. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js +102 -0
  8. package/dist/AuthorityPanel-BaLMwMgW.js +4 -0
  9. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js +107 -0
  10. package/dist/Company-CYC9Avfz.js +25 -0
  11. package/dist/CompanyPanel-B4MzoqN_.js +206 -0
  12. package/dist/DataSet-DT-rGICv.js +147 -0
  13. package/dist/Department-B4BNSiYx.js +25 -0
  14. package/dist/DepartmentPanel-zJO89L2O.js +224 -0
  15. package/dist/DesignPanel-S8P0J97f.js +4 -0
  16. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js +1015 -0
  17. package/dist/DictView-bIS5-rK-.js +95 -0
  18. package/dist/InvOrganization-MuM2jtsG.js +66 -0
  19. package/dist/Org-kXHSjsgJ.js +35 -0
  20. package/dist/Preview-CRyiwUIR.js +48 -0
  21. package/dist/ReportDefine-WZYIx8Sm.js +10 -0
  22. package/dist/ReportDesign-D-7GKgpb.js +165 -0
  23. package/dist/ReportQuery-BIIJny6w.js +75 -0
  24. package/dist/ReportQueryFrom-OoUl7N2O.js +4 -0
  25. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js +177 -0
  26. package/dist/ReportTemplate-Cfeq9US-.js +161 -0
  27. package/dist/Role-BwTV2QMH.js +25 -0
  28. package/dist/RoleAssign-De1JjOun.js +26 -0
  29. package/dist/RolePanel-E3RcdByM.js +4 -0
  30. package/dist/RolePanel-pUBXsqCM.js +4 -0
  31. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js +148 -0
  32. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js +126 -0
  33. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js +100 -0
  34. package/dist/Staff-Czm7A8vI.js +25 -0
  35. package/dist/StaffInfo-DJzvBuxy.js +4 -0
  36. package/dist/StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js +108 -0
  37. package/dist/StaffPanel-CHk60LEz.js +4 -0
  38. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js +114 -0
  39. package/dist/SysUser-BGwbttRn.js +15 -0
  40. package/dist/SysUserPanel-BCbKoLKt.js +4 -0
  41. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js +289 -0
  42. package/dist/SystemMenu-BkqZSDKl.js +151 -0
  43. package/dist/UserInfo-BsyAcT2d.js +4 -0
  44. package/dist/UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js +158 -0
  45. package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
  46. package/dist/childView-CF83nhxb.js +4 -0
  47. package/dist/childView-CyuLTUqC.js +4 -0
  48. package/dist/childView.vue_vue_type_style_index_0_lang-CNSgGda3.js +187 -0
  49. package/dist/childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js +144 -0
  50. package/dist/code-rule-Bz-gnktN.js +147 -0
  51. package/dist/core.es.js +13 -0
  52. package/dist/core.umd.js +173 -0
  53. package/dist/cron-task-CIifSUdW.js +135 -0
  54. package/dist/frameView-_d2mqjjQ.js +43 -0
  55. package/dist/img/l_img.svg +1 -0
  56. package/dist/img/minicolors.png +0 -0
  57. package/dist/img/v_img.svg +1 -0
  58. package/dist/index-BKIw8tSn.js +9195 -0
  59. package/dist/layoutView-DLKVepB8.js +3317 -0
  60. package/dist/log-in-e7D5Ss1P.js +110 -0
  61. package/dist/log-out--RRncZhN.js +120 -0
  62. package/dist/login-LREiDfFU.js +251 -0
  63. package/dist/login-log-CvVnyGi3.js +68 -0
  64. package/dist/lov-view-DDrIVILB.js +97 -0
  65. package/dist/menuInfo-B1FUV-Sk.js +4 -0
  66. package/dist/menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js +338 -0
  67. package/dist/pda-app-CRhVGijN.js +2209 -0
  68. package/dist/redirect-DiaNDu8F.js +15 -0
  69. package/dist/resource-BCwx9fEv.js +97 -0
  70. package/dist/su-welcome-189A7N4r.js +526 -0
  71. package/dist/sys-config-BZ3sejow.js +277 -0
  72. package/dist/udp-core.css +9 -0
  73. package/dist/utogether-r08LNiIZ.js +182 -0
  74. package/index.ts +36 -0
  75. package/package.json +16 -0
  76. package/public/img/l_img.svg +1 -0
  77. package/public/img/minicolors.png +0 -0
  78. package/public/img/v_img.svg +1 -0
  79. package/src/App.vue +70 -0
  80. package/src/api/http.ts +50 -0
  81. package/src/api/index.ts +31 -0
  82. package/src/api/mock.ts +20 -0
  83. package/src/api/user.ts +43 -0
  84. package/src/assets/images/avatars.jpg +0 -0
  85. package/src/assets/images/empty.png +0 -0
  86. package/src/assets/images/login.png +0 -0
  87. package/src/assets/images/logo.png +0 -0
  88. package/src/assets/images/mask-text.jpg +0 -0
  89. package/src/assets/images/minicolors.png +0 -0
  90. package/src/assets/images/utogether.png +0 -0
  91. package/src/assets/images/welcome.png +0 -0
  92. package/src/assets/status/403.svg +1 -0
  93. package/src/assets/status/404.svg +1 -0
  94. package/src/assets/status/500.svg +1 -0
  95. package/src/assets/svg/back_top.svg +1 -0
  96. package/src/assets/svg/bg.svg +1 -0
  97. package/src/assets/svg/close.svg +1 -0
  98. package/src/assets/svg/close_all.svg +1 -0
  99. package/src/assets/svg/close_left.svg +1 -0
  100. package/src/assets/svg/close_other.svg +1 -0
  101. package/src/assets/svg/close_right.svg +1 -0
  102. package/src/assets/svg/dark.svg +1 -0
  103. package/src/assets/svg/day.svg +1 -0
  104. package/src/assets/svg/enter_outlined.svg +1 -0
  105. package/src/assets/svg/exit_screen.svg +1 -0
  106. package/src/assets/svg/full_screen.svg +1 -0
  107. package/src/assets/svg/globalization.svg +1 -0
  108. package/src/assets/svg/loading.svg +17 -0
  109. package/src/assets/svg/mdi_keyboard_esc.svg +1 -0
  110. package/src/assets/svg/refresh.svg +1 -0
  111. package/src/assets/svg/system.svg +1 -0
  112. package/src/components/ReCountTo/README.md +2 -0
  113. package/src/components/ReCountTo/index.ts +18 -0
  114. package/src/components/ReCountTo/src/normal/index.tsx +165 -0
  115. package/src/components/ReCountTo/src/normal/props.ts +37 -0
  116. package/src/components/ReCountTo/src/rebound/index.tsx +67 -0
  117. package/src/components/ReCountTo/src/rebound/props.ts +14 -0
  118. package/src/components/ReCountTo/src/rebound/rebound.css +77 -0
  119. package/src/components/ReCropper/index.ts +14 -0
  120. package/src/components/ReCropper/src/index.tsx +141 -0
  121. package/src/components/ReFlicker/index.css +39 -0
  122. package/src/components/ReFlicker/index.ts +50 -0
  123. package/src/components/ReFlop/index.ts +14 -0
  124. package/src/components/ReFlop/src/Filpper.tsx +99 -0
  125. package/src/components/ReFlop/src/filpper.css +184 -0
  126. package/src/components/ReFlop/src/index.vue +126 -0
  127. package/src/components/ReFlowChart/index.ts +24 -0
  128. package/src/components/ReFlowChart/src/Control.vue +139 -0
  129. package/src/components/ReFlowChart/src/DataDialog.vue +12 -0
  130. package/src/components/ReFlowChart/src/NodePanel.vue +151 -0
  131. package/src/components/ReFlowChart/src/adpterForTurbo.ts +160 -0
  132. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +49 -0
  133. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
  134. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +61 -0
  135. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +58 -0
  136. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +47 -0
  137. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
  138. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
  139. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
  140. package/src/components/ReFlowChart/src/config.ts +62 -0
  141. package/src/components/ReIcon/index.ts +12 -0
  142. package/src/components/ReIcon/src/Icon.vue +81 -0
  143. package/src/components/ReIcon/src/hooks.ts +63 -0
  144. package/src/components/ReIcon/src/iconfont.ts +45 -0
  145. package/src/components/ReIcon/src/iconifyIconOffline.ts +36 -0
  146. package/src/components/ReIcon/src/iconifyIconOnline.ts +28 -0
  147. package/src/components/ReIcon/src/offlineIcon.ts +64 -0
  148. package/src/components/ReIcon/src/types.ts +20 -0
  149. package/src/components/ReSplitPane/index.css +49 -0
  150. package/src/components/ReSplitPane/index.tsx +119 -0
  151. package/src/components/ReSplitPane/resizer.css +45 -0
  152. package/src/components/ReSplitPane/resizer.tsx +30 -0
  153. package/src/components/SuCharts/index.ts +36 -0
  154. package/src/components/SuCharts/src/EchartBar.vue +134 -0
  155. package/src/components/SuCharts/src/UserInfo.vue +78 -0
  156. package/src/components/SuCharts/src/echart-line.vue +85 -0
  157. package/src/components/SuCharts/src/echart-pie.vue +95 -0
  158. package/src/components/SuCommon/card/components/Card.vue +148 -0
  159. package/src/components/SuCommon/card/components/DialogForm.vue +127 -0
  160. package/src/components/SuCommon/card/index.vue +142 -0
  161. package/src/components/SuCommon/icon-select/index.vue +241 -0
  162. package/src/components/SuCommon/table/index.vue +208 -0
  163. package/src/components/SuCommon/utils/index.ts +103 -0
  164. package/src/components/SuCommon/utils/slot.tsx +50 -0
  165. package/src/components/SuFloatButton/index.vue +159 -0
  166. package/src/components/SuQrcode/index.ts +14 -0
  167. package/src/components/SuQrcode/src/index.scss +9 -0
  168. package/src/components/SuQrcode/src/index.tsx +236 -0
  169. package/src/components/SuScrollTree/ScrollPanel.vue +175 -0
  170. package/src/components/SuTable/SuTable.vue +334 -0
  171. package/src/components/SuTypeit/index.ts +51 -0
  172. package/src/config/index.ts +35 -0
  173. package/src/contant/index.ts +20 -0
  174. package/src/directives/elResizeDetector/index.ts +33 -0
  175. package/src/directives/index.ts +11 -0
  176. package/src/directives/permission/index.ts +29 -0
  177. package/src/layout/components/lay-chrome/index.vue +30 -0
  178. package/src/layout/components/lay-content/index.vue +143 -0
  179. package/src/layout/components/lay-navbar/index.vue +237 -0
  180. package/src/layout/components/lay-notice/data.ts +59 -0
  181. package/src/layout/components/lay-notice/index.vue +83 -0
  182. package/src/layout/components/lay-notice/noticeItem.vue +160 -0
  183. package/src/layout/components/lay-notice/noticeList.vue +19 -0
  184. package/src/layout/components/lay-panel/index.vue +150 -0
  185. package/src/layout/components/lay-search/components/SearchFooter.vue +67 -0
  186. package/src/layout/components/lay-search/components/SearchModal.vue +189 -0
  187. package/src/layout/components/lay-search/components/SearchResult.vue +132 -0
  188. package/src/layout/components/lay-search/components/index.ts +10 -0
  189. package/src/layout/components/lay-search/index.vue +25 -0
  190. package/src/layout/components/lay-select-org/index.vue +69 -0
  191. package/src/layout/components/lay-setting/index.vue +510 -0
  192. package/src/layout/components/lay-sidebar/breadCrumb.vue +131 -0
  193. package/src/layout/components/lay-sidebar/extraIcon.vue +25 -0
  194. package/src/layout/components/lay-sidebar/hamBurger.vue +72 -0
  195. package/src/layout/components/lay-sidebar/horizontal.vue +191 -0
  196. package/src/layout/components/lay-sidebar/mixNav.vue +258 -0
  197. package/src/layout/components/lay-sidebar/sidebar-logo.vue +98 -0
  198. package/src/layout/components/lay-sidebar/sidebarItem.vue +205 -0
  199. package/src/layout/components/lay-sidebar/vertical.vue +94 -0
  200. package/src/layout/components/lay-tag/index.scss +375 -0
  201. package/src/layout/components/lay-tag/index.vue +625 -0
  202. package/src/layout/frameView.vue +71 -0
  203. package/src/layout/hooks/useBoolean.ts +33 -0
  204. package/src/layout/hooks/useDataThemeChange.ts +142 -0
  205. package/src/layout/hooks/useLayout.ts +65 -0
  206. package/src/layout/hooks/useNav.ts +173 -0
  207. package/src/layout/hooks/useTag.ts +233 -0
  208. package/src/layout/hooks/useTranslationLang.ts +51 -0
  209. package/src/layout/layoutView.vue +215 -0
  210. package/src/layout/redirect.vue +30 -0
  211. package/src/layout/routerView/parent.vue +23 -0
  212. package/src/layout/types.ts +92 -0
  213. package/src/main.ts +108 -0
  214. package/src/plugins/echarts/index.ts +58 -0
  215. package/src/plugins/echarts/theme.json +394 -0
  216. package/src/plugins/i18n/en.ts +289 -0
  217. package/src/plugins/i18n/index.ts +76 -0
  218. package/src/plugins/i18n/module/u-report.ts +64 -0
  219. package/src/plugins/i18n/module/u-workflow.ts +71 -0
  220. package/src/plugins/i18n/module/umsg.ts +28 -0
  221. package/src/plugins/i18n/zh.ts +337 -0
  222. package/src/plugins/vxe-table/index.ts +46 -0
  223. package/src/plugins/vxe-table/render.tsx +397 -0
  224. package/src/router/createComponent.tsx +25 -0
  225. package/src/router/index.ts +183 -0
  226. package/src/router/modules/error.ts +32 -0
  227. package/src/router/modules/home.ts +32 -0
  228. package/src/router/modules/nested.ts +93 -0
  229. package/src/router/modules/remaining.ts +83 -0
  230. package/src/router/modules/tabs.ts +55 -0
  231. package/src/router/utils.ts +377 -0
  232. package/src/store/index.ts +9 -0
  233. package/src/store/modules/app.ts +69 -0
  234. package/src/store/modules/epTheme.ts +49 -0
  235. package/src/store/modules/multiTags.ts +109 -0
  236. package/src/store/modules/permission.ts +103 -0
  237. package/src/store/modules/settings.ts +40 -0
  238. package/src/store/modules/system.ts +180 -0
  239. package/src/store/modules/types.ts +49 -0
  240. package/src/style/button.scss +78 -0
  241. package/src/style/clear-mixin.scss +28 -0
  242. package/src/style/dark.scss +218 -0
  243. package/src/style/element-plus.scss +206 -0
  244. package/src/style/index.scss +76 -0
  245. package/src/style/login.css +336 -0
  246. package/src/style/login2.css +106 -0
  247. package/src/style/print-lock.css +375 -0
  248. package/src/style/reset.scss +272 -0
  249. package/src/style/sidebar.scss +770 -0
  250. package/src/style/suprint.css +985 -0
  251. package/src/style/tailwind.css +68 -0
  252. package/src/style/theme.scss +143 -0
  253. package/src/style/transition.scss +42 -0
  254. package/src/style/vxetable.scss +256 -0
  255. package/src/utils/authority/index.ts +29 -0
  256. package/src/utils/browers.ts +59 -0
  257. package/src/utils/dataFormat/index.ts +223 -0
  258. package/src/utils/http/index.ts +297 -0
  259. package/src/utils/http/types.d.ts +46 -0
  260. package/src/utils/index.ts +47 -0
  261. package/src/utils/lifecycle.ts +20 -0
  262. package/src/utils/mitt.ts +19 -0
  263. package/src/utils/propTypes.ts +47 -0
  264. package/src/utils/storage/index.ts +51 -0
  265. package/src/views/components/contextmenu/basic.vue +74 -0
  266. package/src/views/components/contextmenu/context-menu.vue +40 -0
  267. package/src/views/components/contextmenu/menuDynamic.vue +99 -0
  268. package/src/views/components/contextmenu/menuGroup.vue +71 -0
  269. package/src/views/components/count-to/index.vue +43 -0
  270. package/src/views/components/cropping/index.vue +59 -0
  271. package/src/views/components/cropping/picture.jpeg +0 -0
  272. package/src/views/components/split-pane/index.vue +82 -0
  273. package/src/views/components/video/index.vue +57 -0
  274. package/src/views/error/403.vue +50 -0
  275. package/src/views/error/404.vue +50 -0
  276. package/src/views/error/500.vue +52 -0
  277. package/src/views/login/login-view.vue +314 -0
  278. package/src/views/login/utils/motion.ts +47 -0
  279. package/src/views/login/utils/rule.ts +70 -0
  280. package/src/views/login/utils/verifyCode.ts +52 -0
  281. package/src/views/organization/company/Company.vue +56 -0
  282. package/src/views/organization/company/CompanyPanel.vue +259 -0
  283. package/src/views/organization/department/Department.vue +58 -0
  284. package/src/views/organization/department/DepartmentPanel.vue +283 -0
  285. package/src/views/organization/inv-org/InvOrganization.vue +53 -0
  286. package/src/views/organization/org/Org.vue +43 -0
  287. package/src/views/organization/staff/Staff.vue +58 -0
  288. package/src/views/organization/staff/StaffInfo.vue +163 -0
  289. package/src/views/organization/staff/StaffPanel.vue +144 -0
  290. package/src/views/system/cron/cron-task.vue +157 -0
  291. package/src/views/system/menu/AuthorityPanel.vue +140 -0
  292. package/src/views/system/menu/SystemMenu.vue +191 -0
  293. package/src/views/system/menu/menuInfo.vue +368 -0
  294. package/src/views/system/role/AuthorityInfo.vue +147 -0
  295. package/src/views/system/role/Role.vue +57 -0
  296. package/src/views/system/role/RolePanel.vue +191 -0
  297. package/src/views/system/role/UserInfo.vue +193 -0
  298. package/src/views/system/role-assign/RoleAssign.vue +57 -0
  299. package/src/views/system/role-assign/RolePanel.vue +136 -0
  300. package/src/views/system/sys/sys-config.vue +291 -0
  301. package/src/views/system/sysUser/SysUser.vue +45 -0
  302. package/src/views/system/sysUser/SysUserPanel.vue +278 -0
  303. package/src/views/uapp/pda/pda-app.vue +176 -0
  304. package/src/views/udev/coderule/code-rule.vue +121 -0
  305. package/src/views/udev/dict/DictView.vue +106 -0
  306. package/src/views/udev/dict/childView.vue +222 -0
  307. package/src/views/udev/lov/childView.vue +180 -0
  308. package/src/views/udev/lov/lov-view.vue +91 -0
  309. package/src/views/ufile/aggregation/File.vue +87 -0
  310. package/src/views/ufile/file/water-mark.vue +103 -0
  311. package/src/views/uhome/components/menu-favorite.vue +331 -0
  312. package/src/views/uhome/su-welcome.vue +339 -0
  313. package/src/views/ulogin/login.vue +316 -0
  314. package/src/views/umsg/monitor/msg-monitor.vue +36 -0
  315. package/src/views/umsg/msg/TemplateContent.vue +103 -0
  316. package/src/views/umsg/msg/msg-template.vue +66 -0
  317. package/src/views/umsg/send/childView.vue +142 -0
  318. package/src/views/umsg/send/msg-send.vue +95 -0
  319. package/src/views/upms/interface/log-in.vue +106 -0
  320. package/src/views/upms/interface/log-out.vue +107 -0
  321. package/src/views/upms/user/login-log.vue +60 -0
  322. package/src/views/urpt/dataSet/DataSet.vue +139 -0
  323. package/src/views/urpt/design/DesignPanel.vue +526 -0
  324. package/src/views/urpt/design/Preview.vue +65 -0
  325. package/src/views/urpt/design/ReportDesign.vue +249 -0
  326. package/src/views/urpt/design/bg.png +0 -0
  327. package/src/views/urpt/design/panel.ts +841 -0
  328. package/src/views/urpt/design/print-data.ts +59 -0
  329. package/src/views/urpt/query/ReportQuery.vue +122 -0
  330. package/src/views/urpt/query/ReportQueryFrom.vue +252 -0
  331. package/src/views/urpt/report-request/ReportDefine.vue +10 -0
  332. package/src/views/urpt/static-resource/resource.vue +116 -0
  333. package/src/views/urpt/template/ReportTemplate.vue +198 -0
  334. package/tsconfig.json +30 -0
  335. package/types/env.d.ts +1 -0
  336. package/types/global-components.d.ts +12 -0
  337. package/types/global.d.ts +236 -0
  338. package/types/image.d.ts +7 -0
  339. package/types/index.d.ts +73 -0
  340. package/types/router.d.ts +107 -0
  341. package/types/shims-tsx.d.ts +22 -0
  342. package/types/shims-vue.d.ts +20 -0
  343. package/vite.config.ts +73 -0
@@ -0,0 +1,206 @@
1
+ import { defineComponent as V, reactive as j, inject as C, watch as B, resolveComponent as i, createElementBlock as E, openBlock as l, createVNode as s, createBlock as m, withCtx as d, createElementVNode as n, createCommentVNode as v, createTextVNode as D, 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 R } from "@vueuse/core";
5
+ import { clone as z } from "xe-utils";
6
+ import { warnMessage as G, successMessage as H } from "@utogether/utils";
7
+ import { w as J, _ as K } from "./index-BKIw8tSn.js";
8
+ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
9
+ __name: "CompanyPanel",
10
+ setup(W) {
11
+ const e = j({
12
+ record: {},
13
+ dataList: [],
14
+ submitLoading: !1,
15
+ dialogFormVisible: !1,
16
+ isChecked: !1,
17
+ dataStatus: ""
18
+ }), { t: r } = M(), k = {
19
+ unitName: [
20
+ {
21
+ required: !0,
22
+ message: `${r("message.required")}${r("message.udp.unitName")}`
23
+ }
24
+ ],
25
+ unitCode: [
26
+ {
27
+ required: !0,
28
+ message: `${r("message.required")}${r("message.udp.unitCode")}`
29
+ }
30
+ ]
31
+ }, u = C("active"), $ = C("scrollPanelChange"), f = J();
32
+ B(
33
+ () => u.value,
34
+ (t, a) => {
35
+ e.record = u.value, t != null && t.id && (a != null && a.id) && t !== a && x("detail");
36
+ }
37
+ );
38
+ const S = () => {
39
+ var t;
40
+ e.dataStatus = "add", e.record = {}, e.record.parentId = (t = u.value) == null ? void 0 : t.id, e.isChecked = !1, e.dialogFormVisible = !0;
41
+ }, x = (t) => {
42
+ e.dataStatus = t, e.record = z(u.value, !0), e.dialogFormVisible = !0;
43
+ }, y = R("xForm", null), h = () => {
44
+ y.value.validate(async (t) => {
45
+ if (!t) {
46
+ const { record: a, dataStatus: o } = e;
47
+ o === "add" ? await f.post(_, a) : await f.put(_, a), b();
48
+ }
49
+ });
50
+ }, N = async () => {
51
+ var o;
52
+ const { record: t } = e;
53
+ if ((o = t.children) != null && o.length) return G(r("message.deletePartment"));
54
+ await U.modal.confirm(r("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(_, t), b());
55
+ }, b = () => {
56
+ $.value = !0, H(r("message.operateSuccess")), I();
57
+ }, F = () => {
58
+ e.dialogFormVisible = !1, e.dataStatus = "";
59
+ }, I = () => {
60
+ e.dialogFormVisible = !1;
61
+ };
62
+ return (t, a) => {
63
+ const o = i("ut-button"), P = i("vxe-toolbar"), g = i("vxe-form-item"), q = i("vxe-form"), c = i("el-row"), A = i("vxe-checkbox"), w = i("vxe-button"), T = i("el-card");
64
+ return l(), E("div", O, [
65
+ s(P, {
66
+ perfect: "",
67
+ class: ""
68
+ }, {
69
+ buttons: d(() => [
70
+ s(o, {
71
+ status: "u-cyan",
72
+ icon: "ri-add-line",
73
+ content: "add",
74
+ onTap: a[0] || (a[0] = (p) => S())
75
+ }),
76
+ s(o, {
77
+ status: "primary",
78
+ icon: "ri-edit-box-line",
79
+ content: "edit",
80
+ onTap: a[1] || (a[1] = (p) => x("update"))
81
+ }),
82
+ s(o, {
83
+ status: "danger",
84
+ icon: "ri-close-fill",
85
+ content: "delete",
86
+ onTap: a[2] || (a[2] = (p) => N())
87
+ })
88
+ ]),
89
+ _: 1
90
+ }),
91
+ e.dialogFormVisible ? (l(), m(c, {
92
+ key: 0,
93
+ type: "flex",
94
+ justify: "center",
95
+ align: "middle",
96
+ class: "w-departInfo-wrapper"
97
+ }, {
98
+ default: d(() => [
99
+ s(T, {
100
+ width: "60%",
101
+ shadow: "always",
102
+ class: "box-card w-card-wrapper"
103
+ }, {
104
+ default: d(() => [
105
+ a[4] || (a[4] = n("div", { class: "clearfix" }, [
106
+ n("span", { class: "w-card-title" })
107
+ ], -1)),
108
+ s(c, null, {
109
+ default: d(() => [
110
+ s(q, {
111
+ ref_key: "xForm",
112
+ ref: y,
113
+ data: e.record,
114
+ rules: k,
115
+ "label-width": "80px"
116
+ }, {
117
+ default: d(() => [
118
+ s(g, {
119
+ title: t.$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
+ s(g, {
125
+ title: t.$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
+ s(g, {
131
+ title: t.$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
+ s(c, {
143
+ type: "flex",
144
+ justify: "center"
145
+ }, {
146
+ default: d(() => [
147
+ e.dataStatus === "add" ? (l(), m(A, {
148
+ key: 0,
149
+ modelValue: e.isChecked,
150
+ "onUpdate:modelValue": a[3] || (a[3] = (p) => e.isChecked = p),
151
+ style: { "padding-top": "5px", "margin-right": "8px" }
152
+ }, {
153
+ default: d(() => [
154
+ D(L(t.$t("message.udp.continueAdd")), 1)
155
+ ]),
156
+ _: 1
157
+ }, 8, ["modelValue"])) : v("", !0),
158
+ e.dataStatus !== "detail" ? (l(), m(w, {
159
+ key: 1,
160
+ status: "primary",
161
+ content: t.$t("message.btn.confirm"),
162
+ onClick: h
163
+ }, null, 8, ["content"])) : v("", !0),
164
+ e.dataStatus !== "detail" ? (l(), m(w, {
165
+ key: 2,
166
+ status: "warning",
167
+ content: t.$t("message.btn.cancel"),
168
+ onClick: F
169
+ }, null, 8, ["content"])) : v("", !0)
170
+ ]),
171
+ _: 1
172
+ })
173
+ ]),
174
+ _: 1
175
+ })
176
+ ]),
177
+ _: 1
178
+ })) : (l(), m(c, {
179
+ key: 1,
180
+ class: "w-noclick-wrapper"
181
+ }, {
182
+ default: d(() => a[5] || (a[5] = [
183
+ n("div", { class: "w-content-wrapper" }, [
184
+ n("ul", null, [
185
+ n("li", { class: "w-department-line" }, [
186
+ n("div", null, "● 点击新建,新建租户信息。"),
187
+ n("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的租户名称,默认创建为当前租户的下属租户 "),
188
+ n("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的租户名称,则创建为一级租户")
189
+ ]),
190
+ n("li", { class: "w-department-line" }, "● 点击树结构上的租户名称,点击修改按钮,修改租户信息。"),
191
+ n("li", { class: "w-department-line" }, [
192
+ n("div", null, "● 点击树结构上的租户名称,点击删除按钮,删除租户信息。"),
193
+ n("div", { style: { "text-indent": "2em" } }, "当租户下有单位存在时,不允许删除租户信息。")
194
+ ])
195
+ ])
196
+ ], -1)
197
+ ])),
198
+ _: 1
199
+ }))
200
+ ]);
201
+ };
202
+ }
203
+ }), se = /* @__PURE__ */ K(Q, [["__scopeId", "data-v-e3e008df"]]);
204
+ export {
205
+ se as default
206
+ };
@@ -0,0 +1,147 @@
1
+ import { defineComponent as _, ref as o, reactive as E, createVNode as d, Fragment as u, resolveComponent as n, createElementBlock as C, openBlock as m, createBlock as v, createCommentVNode as k } from "vue";
2
+ import { useRender as w } from "@utogether/utils";
3
+ import { clone as b } from "xe-utils";
4
+ const I = {
5
+ name: "DataSet"
6
+ }, q = /* @__PURE__ */ _({
7
+ ...I,
8
+ setup(g) {
9
+ const a = o(null), i = o({}), t = w(), r = E({
10
+ paramExt: {},
11
+ showChild: !1
12
+ }), c = [{
13
+ field: "dataSetCode"
14
+ }, {
15
+ field: "dataSetName"
16
+ }], l = [{
17
+ type: "checkbox",
18
+ width: 50,
19
+ align: "center"
20
+ }, {
21
+ field: "dataSetCode",
22
+ required: !0,
23
+ width: 150,
24
+ editRender: t.renderSelect({
25
+ optionProps: {
26
+ label: "templateCode",
27
+ value: "templateCode"
28
+ },
29
+ props: {
30
+ code: "SYS075",
31
+ fetchField: "templateCode"
32
+ }
33
+ })
34
+ }, {
35
+ field: "dataSetName",
36
+ required: !0,
37
+ width: 150,
38
+ editRender: t.renderInput()
39
+ }, {
40
+ field: "dataSetType",
41
+ required: !0,
42
+ editRender: t.renderDict("SU.DATASET.TYPE"),
43
+ formatter: ["formatDict", "SU.DATASET.TYPE"]
44
+ }, {
45
+ field: "dataSetUrl",
46
+ width: 180,
47
+ required: !0,
48
+ editRender: t.renderInput()
49
+ }, {
50
+ field: "remark",
51
+ minWidth: 80,
52
+ editRender: t.renderInput()
53
+ }, {
54
+ field: "enabled",
55
+ width: 80,
56
+ formatter: ["formatDict", "SU.ENABLE"]
57
+ }, {
58
+ field: "operate",
59
+ width: 150,
60
+ slots: {
61
+ default: ({
62
+ row: e
63
+ }) => e.id ? [
64
+ d(u, null, [d(n("ut-button"), {
65
+ icon: "ri-save-3-fill",
66
+ content: "paramSet",
67
+ onClick: () => s(e)
68
+ }, null)])
69
+ // <ut-button row={row} onTap={() => handleClick(row)} />
70
+ ] : null
71
+ }
72
+ }], f = [{
73
+ type: "checkbox",
74
+ width: 50,
75
+ align: "center"
76
+ }, {
77
+ field: "seqNo",
78
+ editRender: t.renderInput({
79
+ props: {
80
+ type: "number"
81
+ }
82
+ })
83
+ }, {
84
+ field: "paramCode",
85
+ editRender: t.renderInput()
86
+ }, {
87
+ field: "paramName",
88
+ editRender: t.renderInput()
89
+ }, {
90
+ field: "defaultValue",
91
+ editRender: t.renderInput()
92
+ }, {
93
+ field: "isRequired",
94
+ required: !0,
95
+ editRender: t.renderDict("SU.WHETHER"),
96
+ formatter: ["formatDict", "SU.WHETHER"]
97
+ }, {
98
+ field: "remark",
99
+ width: 100,
100
+ editRender: t.renderInput()
101
+ }, {
102
+ field: "operate",
103
+ width: 80,
104
+ fixed: "right",
105
+ slots: {
106
+ default: ({
107
+ row: e
108
+ }) => e.id ? [d(u, null, [d(n("ut-button"), {
109
+ row: e
110
+ }, null)])] : null
111
+ }
112
+ }], s = (e) => {
113
+ i.value = b(e, !0), r.paramExt = {
114
+ dataSetId: e.id
115
+ }, r.showChild = !0;
116
+ }, p = {
117
+ editActived({
118
+ row: e,
119
+ column: h
120
+ }) {
121
+ e.id && (l[1].editRender.props.disabled = !0, a.value.refreshColumn());
122
+ }
123
+ };
124
+ return (e, h) => {
125
+ const S = n("ut-grid"), R = n("ut-modal-grif");
126
+ return m(), C("div", null, [d(S, {
127
+ ref_key: "SuGridRef",
128
+ ref: a,
129
+ items: c,
130
+ columns: l,
131
+ events: p
132
+ }, null, 512), r.showChild ? (m(), v(R, {
133
+ key: 0,
134
+ record: i.value,
135
+ "default-value": r.paramExt,
136
+ "default-params": r.paramExt,
137
+ columns: f,
138
+ title: e.$t("message.paramSet"),
139
+ editable: !0,
140
+ width: "60%"
141
+ }, null, 8, ["record", "default-value", "default-params", "title"])) : k("", !0)]);
142
+ };
143
+ }
144
+ });
145
+ export {
146
+ q as default
147
+ };
@@ -0,0 +1,25 @@
1
+ import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as m, createElementVNode as n, createVNode as o } from "vue";
2
+ import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js";
3
+ import _ from "./DepartmentPanel-zJO89L2O.js";
4
+ import { _ as d } from "./index-BKIw8tSn.js";
5
+ const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ l({
6
+ __name: "Department",
7
+ setup(D) {
8
+ const a = e({}), r = e(!1), s = e([]);
9
+ return t("active", a), t("scrollPanelChange", r), t("treeList", s), (c, C) => (m(), i("div", f, [
10
+ n("div", u, [
11
+ o(p, {
12
+ title: c.$t("department"),
13
+ url: "/uums/department/treeDepartment",
14
+ "tree-otions": { children: "children", label: "deptName" }
15
+ }, null, 8, ["title"])
16
+ ]),
17
+ n("div", h, [
18
+ o(_)
19
+ ])
20
+ ]));
21
+ }
22
+ }), x = /* @__PURE__ */ d(v, [["__scopeId", "data-v-30dd7ea4"]]);
23
+ export {
24
+ x as default
25
+ };
@@ -0,0 +1,224 @@
1
+ import { defineComponent as V, reactive as j, inject as C, watch as B, resolveComponent as l, resolveDirective as M, createElementBlock as R, openBlock as c, createVNode as n, withDirectives as U, createBlock as m, withCtx as d, createElementVNode as s, unref as H, createCommentVNode as _, createTextVNode as L, toDisplayString as X } from "vue";
2
+ import { useI18n as Y } from "vue-i18n";
3
+ import { templateRef as z } from "@vueuse/core";
4
+ import { clone as G } from "xe-utils";
5
+ import { t as k } from "./await-to-js.es5-BtRbN2QH.js";
6
+ import { VXETable as J } from "vxe-table";
7
+ import { warnMessage as K, successMessage as O } from "@utogether/utils";
8
+ import { i as Q, w as W, _ as Z } from "./index-BKIw8tSn.js";
9
+ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__ */ V({
10
+ __name: "DepartmentPanel",
11
+ setup(ae) {
12
+ const e = j({
13
+ record: {},
14
+ dataList: [],
15
+ loading: !1,
16
+ dialogFormVisible: !1,
17
+ isChecked: !1,
18
+ dataStatus: ""
19
+ }), S = Q().getDataDict, { t: o } = Y(), f = W(), $ = {
20
+ deptName: [
21
+ {
22
+ required: !0,
23
+ message: `${o("message.required")}${o("message.deptName")}`
24
+ }
25
+ ],
26
+ deptCode: [
27
+ {
28
+ required: !0,
29
+ message: `${o("message.required")}${o("message.deptCode")}`
30
+ }
31
+ ],
32
+ deptType: [
33
+ {
34
+ required: !0,
35
+ message: `${o("message.required")}${o("message.deptType")}`
36
+ }
37
+ ]
38
+ }, p = C("active"), h = C("scrollPanelChange");
39
+ B(
40
+ () => p.value,
41
+ (a, t) => {
42
+ e.record = p.value, a != null && a.id && (t != null && t.id) && a !== t && x("detail");
43
+ }
44
+ );
45
+ const T = () => {
46
+ var a;
47
+ e.dataStatus = "add", e.record = {}, e.record.parentId = (a = p.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
48
+ }, x = (a) => {
49
+ e.dataStatus = a, e.record = G(p.value, !0), e.dialogFormVisible = !0;
50
+ }, w = z("xForm", null), D = () => {
51
+ w.value.validate(async (a) => {
52
+ if (!a) {
53
+ const { record: t, dataStatus: i } = e;
54
+ e.loading = !0;
55
+ const [g] = i === "add" ? await k(f.post(y, t)) : await k(f.put(y, t));
56
+ e.loading = !1, g || b();
57
+ }
58
+ });
59
+ }, N = async () => {
60
+ const { record: a } = e;
61
+ if (a.children.length) return K(o("message.deletePartment"));
62
+ await J.modal.confirm(o("message.tip.del")) === "confirm" && (await f.delete(y, a), b());
63
+ }, b = () => {
64
+ h.value = !0, O(o("message.operateSuccess")), P();
65
+ }, F = () => {
66
+ e.dataStatus === "add" && (e.dialogFormVisible = !1), e.dataStatus = "";
67
+ }, P = () => {
68
+ e.dialogFormVisible = !1;
69
+ };
70
+ return (a, t) => {
71
+ const i = l("ut-button"), g = l("vxe-toolbar"), v = l("vxe-form-item"), E = l("vxe-form"), u = l("el-row"), q = l("vxe-checkbox"), A = l("el-card"), I = M("spinning");
72
+ return c(), R("div", ee, [
73
+ n(g, {
74
+ perfect: "",
75
+ class: ""
76
+ }, {
77
+ buttons: d(() => [
78
+ n(i, {
79
+ status: "u-cyan",
80
+ icon: "ri-add-line",
81
+ content: "add",
82
+ onTap: t[0] || (t[0] = (r) => T())
83
+ }),
84
+ n(i, {
85
+ status: "primary",
86
+ icon: "ri-edit-box-line",
87
+ content: "edit",
88
+ onTap: t[1] || (t[1] = (r) => x("update"))
89
+ }),
90
+ n(i, {
91
+ status: "danger",
92
+ icon: "ri-close-fill",
93
+ content: "delete",
94
+ onTap: t[2] || (t[2] = (r) => N())
95
+ })
96
+ ]),
97
+ _: 1
98
+ }),
99
+ e.dialogFormVisible ? U((c(), m(u, {
100
+ key: 0,
101
+ type: "flex",
102
+ justify: "center",
103
+ align: "middle",
104
+ class: "w-departInfo-wrapper"
105
+ }, {
106
+ default: d(() => [
107
+ n(A, {
108
+ width: "60%",
109
+ shadow: "always",
110
+ class: "box-card w-card-wrapper"
111
+ }, {
112
+ default: d(() => [
113
+ t[4] || (t[4] = s("div", { class: "clearfix" }, [
114
+ s("span", { class: "w-card-title" })
115
+ ], -1)),
116
+ n(u, null, {
117
+ default: d(() => [
118
+ n(E, {
119
+ ref_key: "xForm",
120
+ ref: w,
121
+ data: e.record,
122
+ rules: $,
123
+ "label-width": "90px"
124
+ }, {
125
+ default: d(() => {
126
+ var r;
127
+ return [
128
+ n(v, {
129
+ title: a.$t("message.deptName"),
130
+ field: "deptName",
131
+ "item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
132
+ span: 24
133
+ }, null, 8, ["title", "item-render"]),
134
+ n(v, {
135
+ title: a.$t("message.deptCode"),
136
+ field: "deptCode",
137
+ "item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
138
+ span: 24
139
+ }, null, 8, ["title", "item-render"]),
140
+ n(v, {
141
+ title: a.$t("message.deptType"),
142
+ field: "deptType",
143
+ "item-render": {
144
+ name: "$select",
145
+ options: (r = H(S)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : r.children,
146
+ optionProps: { label: "dictName", value: "dictCode" },
147
+ props: { disabled: e.dataStatus === "detail" }
148
+ },
149
+ span: 24
150
+ }, null, 8, ["title", "item-render"])
151
+ ];
152
+ }),
153
+ _: 1
154
+ }, 8, ["data"])
155
+ ]),
156
+ _: 1
157
+ }),
158
+ n(u, {
159
+ type: "flex",
160
+ justify: "center"
161
+ }, {
162
+ default: d(() => [
163
+ e.dataStatus === "add" ? (c(), m(q, {
164
+ key: 0,
165
+ modelValue: e.isChecked,
166
+ "onUpdate:modelValue": t[3] || (t[3] = (r) => e.isChecked = r),
167
+ style: { "padding-top": "5px", "margin-right": "8px" }
168
+ }, {
169
+ default: d(() => [
170
+ L(X(a.$t("message.udp.continueAdd")), 1)
171
+ ]),
172
+ _: 1
173
+ }, 8, ["modelValue"])) : _("", !0),
174
+ e.dataStatus !== "detail" ? (c(), m(i, {
175
+ key: 1,
176
+ status: "primary",
177
+ content: "confirm",
178
+ onTap: D
179
+ })) : _("", !0),
180
+ e.dataStatus !== "detail" ? (c(), m(i, {
181
+ key: 2,
182
+ status: "warning",
183
+ content: "cancel",
184
+ onClick: F
185
+ })) : _("", !0)
186
+ ]),
187
+ _: 1
188
+ })
189
+ ]),
190
+ _: 1
191
+ })
192
+ ]),
193
+ _: 1
194
+ })), [
195
+ [I, e.loading]
196
+ ]) : (c(), m(u, {
197
+ key: 1,
198
+ class: "w-noclick-wrapper"
199
+ }, {
200
+ default: d(() => t[5] || (t[5] = [
201
+ s("div", { class: "w-content-wrapper" }, [
202
+ s("ul", null, [
203
+ s("li", { class: "w-department-line" }, [
204
+ s("div", null, "● 点击新建,新建部门信息。"),
205
+ s("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的部门名称,默认创建为当前部门的下属部门 "),
206
+ s("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的部门名称,则创建为一级部门")
207
+ ]),
208
+ s("li", { class: "w-department-line" }, "● 点击树结构上的部门名称,点击修改按钮,修改部门信息。"),
209
+ s("li", { class: "w-department-line" }, [
210
+ s("div", null, "● 点击树结构上的部门名称,点击删除按钮,删除部门信息。"),
211
+ s("div", { style: { "text-indent": "2em" } }, "当部门下有人员存在时,不允许删除部门信息。")
212
+ ])
213
+ ])
214
+ ], -1)
215
+ ])),
216
+ _: 1
217
+ }))
218
+ ]);
219
+ };
220
+ }
221
+ }), me = /* @__PURE__ */ Z(te, [["__scopeId", "data-v-c89aef1b"]]);
222
+ export {
223
+ me as default
224
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js";
2
+ export {
3
+ f as default
4
+ };