@utogether/udp-core 1.0.1 → 1.0.2

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 (239) hide show
  1. package/build/plugins.ts +13 -2
  2. package/dist/{403-JWjatlxJ.js → 403-B1rIjAAu.js} +7 -6
  3. package/dist/{404-BcdMJfPb.js → 404-mBqc2y4t.js} +14 -13
  4. package/dist/{500-bsa3F_cc.js → 500-BoI45Zdh.js} +10 -9
  5. package/dist/{AuthorityInfo-CqItgNs5.js → AuthorityInfo-B08NBIIn.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js +100 -0
  7. package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
  8. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
  9. package/dist/{Company-DVff9IA7.js → Company-JGGyWEWH.js} +3 -3
  10. package/dist/{CompanyPanel-CNrdq4XE.js → CompanyPanel-BQ_cCmDx.js} +16 -16
  11. package/dist/{Department-CqcpfL4i.js → Department-z2iO6hwM.js} +10 -10
  12. package/dist/{DepartmentPanel-Bvti4LGu.js → DepartmentPanel-BtQe7zwU.js} +108 -78
  13. package/dist/{DesignPanel-CjykspE1.js → DesignPanel-7mhtVWas.js} +1 -1
  14. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BK9EERdd.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +24 -26
  15. package/dist/DictView-CjchV2Yk.js +109 -0
  16. package/dist/InvOrganization-Pn1O_XP0.js +74 -0
  17. package/dist/Org-BqytV_vi.js +39 -0
  18. package/dist/{Preview-Cm_7RhYU.js → Preview-CLpUUMay.js} +2 -2
  19. package/dist/{ReportDefine-CJVlQ--7.js → ReportDefine-Cz1KtEUF.js} +1 -1
  20. package/dist/{ReportDesign-B0unlrkt.js → ReportDesign-BaORYud4.js} +46 -46
  21. package/dist/{ReportQuery-BKuMCEvF.js → ReportQuery-CPCPXiXz.js} +5 -5
  22. package/dist/{ReportQueryFrom-DAngMJLU.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
  23. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CPpwmztJ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +6 -5
  24. package/dist/{ReportTemplate-8YH3L8Pv.js → ReportTemplate-CFiNMz79.js} +26 -26
  25. package/dist/{Role-MxI30-0W.js → Role-B-XDoJd5.js} +6 -6
  26. package/dist/{RoleAssign-BzUY_y_y.js → RoleAssign-BolW8YVs.js} +9 -9
  27. package/dist/{RolePanel-DS_TErTn.js → RolePanel-2kfs5tw9.js} +1 -1
  28. package/dist/{RolePanel-CXdcvsR5.js → RolePanel-HilSuYns.js} +1 -1
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js +132 -0
  30. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Ddl-A7Zh.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +42 -36
  31. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DnchUgIF.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +20 -20
  32. package/dist/{Staff-D7tXo_Gn.js → Staff-BTk3whFC.js} +3 -3
  33. package/dist/{StaffInfo-Bk8BY8PO.js → StaffInfo-d3AuSzlA.js} +1 -1
  34. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DqKwZi5f.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +13 -13
  35. package/dist/{StaffPanel-VtpGCTIq.js → StaffPanel-DV-D4jjz.js} +1 -1
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
  37. package/dist/{SysUser-D0Q6OvD7.js → SysUser-BnjYytws.js} +2 -2
  38. package/dist/{SysUserPanel-1_vrsANQ.js → SysUserPanel-CBoyD-Qi.js} +1 -1
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
  40. package/dist/{SystemMenu-9PG3vESE.js → SystemMenu-kYB_ZaUt.js} +49 -47
  41. package/dist/{UserInfo-qgXUEGwi.js → UserInfo-4dx97VBL.js} +1 -1
  42. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CN0C5rVk.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +35 -33
  43. package/dist/{childView-C7ZSA5fR.js → childView-CHPNfTEb.js} +1 -1
  44. package/dist/{childView-yV2QLwfA.js → childView-CKA_JgVZ.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-DdKxPGdh.js → childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js} +7 -7
  46. package/dist/childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js +177 -0
  47. package/dist/{code-rule-95K1jr-u.js → code-rule-CbxuZg0-.js} +42 -41
  48. package/dist/core.es.js +19 -10
  49. package/dist/{cron-task-DGrQwOHs.js → cron-task-nTOpqQYf.js} +5 -5
  50. package/dist/flow-task-B07st2aD.js +10 -0
  51. package/dist/{frameView-7SmME93D.js → frameView-Z1tPUyCh.js} +15 -14
  52. package/dist/img/l_img.svg +1 -1
  53. package/dist/img/minicolors.png +0 -0
  54. package/dist/img/v_img.svg +1 -1
  55. package/dist/index-C3q8HoJM.js +4650 -0
  56. package/dist/{layoutView-C6WIVWGZ.js → layoutView--MGA9zUB.js} +1776 -1764
  57. package/dist/{log-in-e7D5Ss1P.js → log-in-CSYJDA6m.js} +36 -29
  58. package/dist/log-out-DiwGCg7p.js +130 -0
  59. package/dist/login-C6Y0ajDp.js +251 -0
  60. package/dist/{login-log-CvVnyGi3.js → login-log-C0V-_l3F.js} +6 -4
  61. package/dist/{lov-view-DoF5LqFQ.js → lov-view-Cmv7wZZ9.js} +9 -9
  62. package/dist/{menuInfo-CNzGQwOD.js → menuInfo-UeutJpOa.js} +1 -1
  63. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-51SYxVc_.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +144 -121
  64. package/dist/pda-app-B6w99SJo.js +710 -0
  65. package/dist/redirect-BqegffKC.js +15 -0
  66. package/dist/{resource-gVFFMO9l.js → resource-BybJvUv0.js} +17 -17
  67. package/dist/{su-welcome-BN_s_RX_.js → su-welcome-C1bmxHoY.js} +124 -126
  68. package/dist/sys-config-BnmIDnCj.js +370 -0
  69. package/dist/udp-core.css +1 -9
  70. package/dist/utogether-MlnyYtNS.js +4 -0
  71. package/index.ts +19 -6
  72. package/package.json +18 -17
  73. package/src/App.vue +2 -7
  74. package/src/api/http.ts +1 -4
  75. package/src/api/index.ts +5 -3
  76. package/src/api/user.ts +2 -2
  77. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  78. package/src/components/SuScrollTree/ScrollPanel.vue +4 -9
  79. package/src/components/udp/content/index.vue +88 -0
  80. package/src/components/udp/form/form.vue +109 -0
  81. package/src/components/udp/grid/index.vue +524 -0
  82. package/src/components/udp/index.ts +5 -4
  83. package/src/components/udp/ut-stamp-badge/index.vue +271 -0
  84. package/src/components/udp/utils.ts +408 -40
  85. package/src/directives/permission/index.ts +1 -1
  86. package/src/layout/components/lay-navbar/index.vue +9 -7
  87. package/src/layout/components/lay-panel/index.vue +3 -3
  88. package/src/layout/components/lay-search/index.vue +1 -1
  89. package/src/layout/components/lay-select-org/index.vue +4 -9
  90. package/src/layout/components/lay-setting/index.vue +503 -510
  91. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  92. package/src/layout/components/lay-sidebar/horizontal.vue +8 -6
  93. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  94. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -98
  95. package/src/layout/components/lay-tag/index.vue +598 -625
  96. package/src/layout/hooks/useDataThemeChange.ts +1 -1
  97. package/src/layout/hooks/useNav.ts +176 -173
  98. package/src/layout/hooks/useTag.ts +227 -233
  99. package/src/layout/layoutView.vue +215 -215
  100. package/src/layout/types.ts +93 -92
  101. package/src/main.ts +115 -109
  102. package/src/plugins/i18n/en.ts +26 -13
  103. package/src/plugins/i18n/module/u-workflow.ts +1 -1
  104. package/src/plugins/i18n/zh.ts +363 -337
  105. package/src/plugins/vxe-table/index.ts +74 -4
  106. package/src/plugins/vxe-table/render.tsx +186 -58
  107. package/src/router/index.ts +187 -183
  108. package/src/router/modules/flow.ts +35 -0
  109. package/src/router/modules/home.ts +32 -32
  110. package/src/router/modules/remaining.ts +1 -26
  111. package/src/router/utils.ts +420 -377
  112. package/src/store/modules/app.ts +2 -4
  113. package/src/store/modules/epTheme.ts +48 -49
  114. package/src/store/modules/multiTags.ts +15 -14
  115. package/src/store/modules/permission.ts +25 -15
  116. package/src/store/modules/system.ts +1 -3
  117. package/src/style/button.scss +11 -4
  118. package/src/style/login.css +1 -1
  119. package/src/style/tailwind.css +1 -68
  120. package/src/style/vxetable.scss +103 -11
  121. package/src/utils/authority/index.ts +1 -1
  122. package/src/utils/dataFormat/index.ts +223 -223
  123. package/src/utils/index.ts +3 -1
  124. package/src/utils/lifecycle.ts +39 -20
  125. package/src/utils/propTypes.ts +1 -6
  126. package/src/utils/storage/index.ts +2 -2
  127. package/src/utils/{http → udp/http}/index.ts +27 -30
  128. package/src/utils/{http → udp/http}/types.d.ts +2 -6
  129. package/src/views/login/login-view.vue +6 -20
  130. package/src/views/organization/company/CompanyPanel.vue +2 -2
  131. package/src/views/organization/department/Department.vue +58 -58
  132. package/src/views/organization/department/DepartmentPanel.vue +303 -283
  133. package/src/views/organization/inv-org/InvOrganization.vue +23 -9
  134. package/src/views/organization/org/Org.vue +9 -5
  135. package/src/views/organization/staff/StaffInfo.vue +127 -133
  136. package/src/views/organization/staff/StaffPanel.vue +162 -145
  137. package/src/views/system/cron/cron-task.vue +2 -12
  138. package/src/views/system/menu/AuthorityPanel.vue +2 -2
  139. package/src/views/system/menu/SystemMenu.vue +14 -20
  140. package/src/views/system/menu/menuInfo.vue +39 -23
  141. package/src/views/system/role/AuthorityInfo.vue +19 -15
  142. package/src/views/system/role/Role.vue +1 -5
  143. package/src/views/system/role/RolePanel.vue +11 -2
  144. package/src/views/system/role/UserInfo.vue +11 -9
  145. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  146. package/src/views/system/role-assign/RolePanel.vue +12 -9
  147. package/src/views/system/sys/sys-config.vue +70 -21
  148. package/src/views/system/sysUser/SysUserPanel.vue +347 -278
  149. package/src/views/uapp/pda/pda-app.vue +48 -16
  150. package/src/views/udev/coderule/code-rule.vue +132 -121
  151. package/src/views/udev/dict/DictView.vue +118 -106
  152. package/src/views/udev/dict/childView.vue +183 -222
  153. package/src/views/udev/lov/childView.vue +1 -7
  154. package/src/views/ufile/aggregation/File.vue +5 -5
  155. package/src/views/ufile/file/water-mark.vue +14 -14
  156. package/src/views/uhome/components/menu-favorite.vue +314 -331
  157. package/src/views/uhome/su-welcome.vue +319 -339
  158. package/src/views/ulogin/login.vue +325 -316
  159. package/src/views/upms/interface/log-in.vue +100 -106
  160. package/src/views/upms/interface/log-out.vue +104 -107
  161. package/src/views/upms/user/login-log.vue +54 -60
  162. package/src/views/urpt/design/DesignPanel.vue +16 -35
  163. package/src/views/urpt/design/Preview.vue +1 -0
  164. package/src/views/urpt/design/ReportDesign.vue +17 -23
  165. package/src/views/urpt/static-resource/resource.vue +3 -3
  166. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  167. package/src/views/utask/flow-task.vue +18 -0
  168. package/types/global.d.ts +231 -236
  169. package/vite.config.ts +13 -2
  170. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-32L40GY2.js +0 -102
  171. package/dist/DictView-q7kR9K--.js +0 -95
  172. package/dist/InvOrganization-DI45LqZV.js +0 -260
  173. package/dist/Org-CZju_ZiR.js +0 -35
  174. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DJKu6PXz.js +0 -126
  175. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C3Ixs12y.js +0 -111
  176. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-C5XEmxsV.js +0 -288
  177. package/dist/childView.vue_vue_type_style_index_0_lang-bkmucBUL.js +0 -187
  178. package/dist/core.umd.js +0 -173
  179. package/dist/index-OswH7SsT.js +0 -9937
  180. package/dist/log-out--RRncZhN.js +0 -120
  181. package/dist/login-BhCMeCLS.js +0 -251
  182. package/dist/pda-app-nn3llDUx.js +0 -2209
  183. package/dist/redirect-CmMplDV4.js +0 -15
  184. package/dist/sys-config-DGutV-VX.js +0 -277
  185. package/dist/utogether-wFDCI28t.js +0 -182
  186. package/src/assets/images/empty.png +0 -0
  187. package/src/assets/images/logo.png +0 -0
  188. package/src/components/ReCountTo/README.md +0 -2
  189. package/src/components/ReCountTo/index.ts +0 -18
  190. package/src/components/ReCountTo/src/normal/index.tsx +0 -165
  191. package/src/components/ReCountTo/src/normal/props.ts +0 -37
  192. package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
  193. package/src/components/ReCountTo/src/rebound/props.ts +0 -14
  194. package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
  195. package/src/components/ReCropper/index.ts +0 -14
  196. package/src/components/ReCropper/src/index.tsx +0 -141
  197. package/src/components/ReFlicker/index.css +0 -39
  198. package/src/components/ReFlicker/index.ts +0 -50
  199. package/src/components/ReFlop/index.ts +0 -14
  200. package/src/components/ReFlop/src/Filpper.tsx +0 -99
  201. package/src/components/ReFlop/src/filpper.css +0 -184
  202. package/src/components/ReFlop/src/index.vue +0 -126
  203. package/src/components/ReFlowChart/index.ts +0 -24
  204. package/src/components/ReFlowChart/src/Control.vue +0 -139
  205. package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
  206. package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
  207. package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
  208. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
  209. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
  210. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
  211. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
  212. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
  213. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
  214. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
  215. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
  216. package/src/components/ReFlowChart/src/config.ts +0 -62
  217. package/src/components/ReSplitPane/index.css +0 -49
  218. package/src/components/ReSplitPane/index.tsx +0 -119
  219. package/src/components/ReSplitPane/resizer.css +0 -45
  220. package/src/components/ReSplitPane/resizer.tsx +0 -30
  221. package/src/components/SuCommon/card/components/Card.vue +0 -148
  222. package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
  223. package/src/components/SuCommon/card/index.vue +0 -142
  224. package/src/components/SuCommon/icon-select/index.vue +0 -241
  225. package/src/components/SuCommon/table/index.vue +0 -208
  226. package/src/components/SuCommon/utils/index.ts +0 -103
  227. package/src/components/SuCommon/utils/slot.tsx +0 -50
  228. package/src/components/udp/form-upload.vue +0 -132
  229. package/src/components/udp/modal-form.vue +0 -180
  230. package/src/utils/udp/useRender.ts +0 -420
  231. package/src/views/components/contextmenu/basic.vue +0 -74
  232. package/src/views/components/contextmenu/context-menu.vue +0 -40
  233. package/src/views/components/contextmenu/menuDynamic.vue +0 -99
  234. package/src/views/components/contextmenu/menuGroup.vue +0 -71
  235. package/src/views/components/count-to/index.vue +0 -43
  236. package/src/views/components/cropping/index.vue +0 -59
  237. package/src/views/components/cropping/picture.jpeg +0 -0
  238. package/src/views/components/split-pane/index.vue +0 -82
  239. package/src/views/components/video/index.vue +0 -57
@@ -1,148 +1,178 @@
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";
1
+ import { defineComponent as U, reactive as O, inject as $, watch as R, resolveComponent as m, resolveDirective as H, createElementBlock as L, openBlock as d, createVNode as o, withDirectives as Y, createBlock as l, withCtx as c, createCommentVNode as p, unref as y, createElementVNode as s, createTextVNode as z, toDisplayString as G } from "vue";
2
+ import { useI18n as J } from "vue-i18n";
3
+ import { templateRef as K } from "@vueuse/core";
4
+ import { clone as Q } from "xe-utils";
5
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-OswH7SsT.js";
9
- const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__ */ V({
6
+ import { VxeUI as T } from "vxe-table";
7
+ import { warnMessage as W, successMessage as X } from "@utogether/utils";
8
+ import { i as Z, E as b, y as ee, _ as te } from "./index-C3q8HoJM.js";
9
+ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__ */ U({
10
10
  __name: "DepartmentPanel",
11
- setup(ae) {
12
- const e = j({
11
+ setup(se) {
12
+ const e = O({
13
13
  record: {},
14
14
  dataList: [],
15
15
  loading: !1,
16
16
  dialogFormVisible: !1,
17
17
  isChecked: !1,
18
18
  dataStatus: ""
19
- }), S = Q().getDataDict, { t: o } = Y(), f = W(), $ = {
19
+ }), D = Z().getDataDict, { t: i } = J(), u = ee(), N = {
20
20
  deptName: [
21
21
  {
22
22
  required: !0,
23
- message: `${o("message.required")}${o("message.deptName")}`
23
+ message: `${i("message.required")}${i("message.deptName")}`
24
24
  }
25
25
  ],
26
26
  deptCode: [
27
27
  {
28
28
  required: !0,
29
- message: `${o("message.required")}${o("message.deptCode")}`
29
+ message: `${i("message.required")}${i("message.deptCode")}`
30
30
  }
31
31
  ],
32
32
  deptType: [
33
33
  {
34
34
  required: !0,
35
- message: `${o("message.required")}${o("message.deptType")}`
35
+ message: `${i("message.required")}${i("message.deptType")}`
36
36
  }
37
37
  ]
38
- }, p = C("active"), h = C("scrollPanelChange");
39
- B(
40
- () => p.value,
38
+ }, f = $("active"), A = $("scrollPanelChange");
39
+ R(
40
+ () => f.value,
41
41
  (a, t) => {
42
- e.record = p.value, a != null && a.id && (t != null && t.id) && a !== t && x("detail");
42
+ e.record = f.value, a != null && a.id && (t != null && t.id) && a !== t && h("detail");
43
43
  }
44
44
  );
45
- const T = () => {
45
+ const F = () => {
46
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) => {
47
+ e.dataStatus = "add", e.record = {}, e.record.parentId = (a = f.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
48
+ }, h = (a) => {
49
+ e.dataStatus = a, e.record = Q(f.value, !0), e.dialogFormVisible = !0;
50
+ }, S = K("xForm", null), E = () => {
51
+ S.value.validate(async (a) => {
52
52
  if (!a) {
53
- const { record: t, dataStatus: i } = e;
53
+ const { record: t, dataStatus: n } = e;
54
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();
55
+ const [x] = n === "add" ? await k(u.post(C, t)) : await k(u.put(C, t));
56
+ e.loading = !1, x || w();
57
57
  }
58
58
  });
59
- }, N = async () => {
59
+ }, P = async () => {
60
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 = () => {
61
+ if (a.children.length) return W(i("message.deletePartment"));
62
+ await T.modal.confirm(i("message.tip.del")) === "confirm" && (await u.delete(C, a), w());
63
+ }, v = async (a) => {
64
+ if (await T.modal.confirm(i("message.tip.confirmSync")) === "confirm") {
65
+ const [n] = await k(u.post("/uums/department/syncEwDepartment", { code: a }));
66
+ if (n) return;
67
+ w();
68
+ }
69
+ }, w = () => {
70
+ A.value = !0, X(i("message.operateSuccess")), I();
71
+ }, q = () => {
66
72
  e.dataStatus === "add" && (e.dialogFormVisible = !1), e.dataStatus = "";
67
- }, P = () => {
73
+ }, I = () => {
68
74
  e.dialogFormVisible = !1;
69
75
  };
70
76
  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, {
77
+ const n = m("ut-button"), x = m("vxe-toolbar"), _ = m("vxe-form-item"), V = m("vxe-form"), g = m("el-row"), j = m("vxe-checkbox"), B = m("el-card"), M = H("spinning");
78
+ return d(), L("div", ae, [
79
+ o(x, {
74
80
  perfect: "",
75
81
  class: ""
76
82
  }, {
77
- buttons: d(() => [
78
- n(i, {
83
+ buttons: c(() => [
84
+ o(n, {
79
85
  status: "u-cyan",
80
86
  icon: "ri-add-line",
81
87
  content: "add",
82
- onTap: t[0] || (t[0] = (r) => T())
88
+ auth: "add",
89
+ onTap: t[0] || (t[0] = (r) => F())
83
90
  }),
84
- n(i, {
91
+ y(b)("wechat") ? (d(), l(n, {
92
+ key: 0,
93
+ status: "success",
94
+ icon: "ri-refresh-line",
95
+ content: "sync",
96
+ onTap: t[1] || (t[1] = (r) => v("wechat"))
97
+ })) : p("", !0),
98
+ y(b)("dingding") ? (d(), l(n, {
99
+ key: 1,
100
+ status: "success",
101
+ icon: "ri-refresh-line",
102
+ content: "sync",
103
+ onTap: t[2] || (t[2] = (r) => v("dingding"))
104
+ })) : p("", !0),
105
+ y(b)("OA") ? (d(), l(n, {
106
+ key: 2,
107
+ status: "success",
108
+ icon: "ri-refresh-line",
109
+ content: "sync",
110
+ onTap: t[3] || (t[3] = (r) => v("OA"))
111
+ })) : p("", !0),
112
+ o(n, {
85
113
  status: "primary",
86
114
  icon: "ri-edit-box-line",
115
+ auth: "edit",
87
116
  content: "edit",
88
- onTap: t[1] || (t[1] = (r) => x("update"))
117
+ onTap: t[4] || (t[4] = (r) => h("update"))
89
118
  }),
90
- n(i, {
119
+ o(n, {
91
120
  status: "danger",
92
121
  icon: "ri-close-fill",
122
+ auth: "del",
93
123
  content: "delete",
94
- onTap: t[2] || (t[2] = (r) => N())
124
+ onTap: t[5] || (t[5] = (r) => P())
95
125
  })
96
126
  ]),
97
127
  _: 1
98
128
  }),
99
- e.dialogFormVisible ? U((c(), m(u, {
129
+ e.dialogFormVisible ? Y((d(), l(g, {
100
130
  key: 0,
101
131
  type: "flex",
102
132
  justify: "center",
103
133
  align: "middle",
104
134
  class: "w-departInfo-wrapper"
105
135
  }, {
106
- default: d(() => [
107
- n(A, {
136
+ default: c(() => [
137
+ o(B, {
108
138
  width: "60%",
109
139
  shadow: "always",
110
140
  class: "box-card w-card-wrapper"
111
141
  }, {
112
- default: d(() => [
113
- t[4] || (t[4] = s("div", { class: "clearfix" }, [
142
+ default: c(() => [
143
+ t[7] || (t[7] = s("div", { class: "clearfix" }, [
114
144
  s("span", { class: "w-card-title" })
115
145
  ], -1)),
116
- n(u, null, {
117
- default: d(() => [
118
- n(E, {
146
+ o(g, null, {
147
+ default: c(() => [
148
+ o(V, {
119
149
  ref_key: "xForm",
120
- ref: w,
150
+ ref: S,
121
151
  data: e.record,
122
- rules: $,
152
+ rules: N,
123
153
  "label-width": "90px"
124
154
  }, {
125
- default: d(() => {
155
+ default: c(() => {
126
156
  var r;
127
157
  return [
128
- n(v, {
158
+ o(_, {
129
159
  title: a.$t("message.deptName"),
130
160
  field: "deptName",
131
161
  "item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
132
162
  span: 24
133
163
  }, null, 8, ["title", "item-render"]),
134
- n(v, {
164
+ o(_, {
135
165
  title: a.$t("message.deptCode"),
136
166
  field: "deptCode",
137
167
  "item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
138
168
  span: 24
139
169
  }, null, 8, ["title", "item-render"]),
140
- n(v, {
170
+ o(_, {
141
171
  title: a.$t("message.deptType"),
142
172
  field: "deptType",
143
173
  "item-render": {
144
174
  name: "$select",
145
- options: (r = H(S)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : r.children,
175
+ options: (r = y(D)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : r.children,
146
176
  optionProps: { label: "dictName", value: "dictCode" },
147
177
  props: { disabled: e.dataStatus === "detail" }
148
178
  },
@@ -155,34 +185,34 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
155
185
  ]),
156
186
  _: 1
157
187
  }),
158
- n(u, {
188
+ o(g, {
159
189
  type: "flex",
160
190
  justify: "center"
161
191
  }, {
162
- default: d(() => [
163
- e.dataStatus === "add" ? (c(), m(q, {
192
+ default: c(() => [
193
+ e.dataStatus === "add" ? (d(), l(j, {
164
194
  key: 0,
165
195
  modelValue: e.isChecked,
166
- "onUpdate:modelValue": t[3] || (t[3] = (r) => e.isChecked = r),
196
+ "onUpdate:modelValue": t[6] || (t[6] = (r) => e.isChecked = r),
167
197
  style: { "padding-top": "5px", "margin-right": "8px" }
168
198
  }, {
169
- default: d(() => [
170
- L(X(a.$t("message.udp.continueAdd")), 1)
199
+ default: c(() => [
200
+ z(G(a.$t("message.udp.continueAdd")), 1)
171
201
  ]),
172
202
  _: 1
173
- }, 8, ["modelValue"])) : _("", !0),
174
- e.dataStatus !== "detail" ? (c(), m(i, {
203
+ }, 8, ["modelValue"])) : p("", !0),
204
+ e.dataStatus !== "detail" ? (d(), l(n, {
175
205
  key: 1,
176
206
  status: "primary",
177
207
  content: "confirm",
178
- onTap: D
179
- })) : _("", !0),
180
- e.dataStatus !== "detail" ? (c(), m(i, {
208
+ onTap: E
209
+ })) : p("", !0),
210
+ e.dataStatus !== "detail" ? (d(), l(n, {
181
211
  key: 2,
182
212
  status: "warning",
183
213
  content: "cancel",
184
- onClick: F
185
- })) : _("", !0)
214
+ onClick: q
215
+ })) : p("", !0)
186
216
  ]),
187
217
  _: 1
188
218
  })
@@ -192,17 +222,17 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
192
222
  ]),
193
223
  _: 1
194
224
  })), [
195
- [I, e.loading]
196
- ]) : (c(), m(u, {
225
+ [M, e.loading]
226
+ ]) : (d(), l(g, {
197
227
  key: 1,
198
228
  class: "w-noclick-wrapper"
199
229
  }, {
200
- default: d(() => t[5] || (t[5] = [
230
+ default: c(() => t[8] || (t[8] = [
201
231
  s("div", { class: "w-content-wrapper" }, [
202
232
  s("ul", null, [
203
233
  s("li", { class: "w-department-line" }, [
204
234
  s("div", null, "● 点击新建,新建部门信息。"),
205
- s("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的部门名称,默认创建为当前部门的下属部门 "),
235
+ s("div", { style: { margin: "0", "text-indent": "2em" } }, "已点击树结构上的部门名称,默认创建为当前部门的下属部门"),
206
236
  s("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的部门名称,则创建为一级部门")
207
237
  ]),
208
238
  s("li", { class: "w-department-line" }, "● 点击树结构上的部门名称,点击修改按钮,修改部门信息。"),
@@ -218,7 +248,7 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
218
248
  ]);
219
249
  };
220
250
  }
221
- }), me = /* @__PURE__ */ Z(te, [["__scopeId", "data-v-c89aef1b"]]);
251
+ }), ue = /* @__PURE__ */ te(ne, [["__scopeId", "data-v-fd45e915"]]);
222
252
  export {
223
- me as default
253
+ ue as default
224
254
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DesignPanel.vue_vue_type_style_index_0_lang-BK9EERdd.js";
1
+ import { _ as f } from "./DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as it, ref as f, reactive as k, onMounted as ot, onBeforeUnmount as nt, resolveComponent as r, resolveDirective as pt, withDirectives as at, createElementBlock as N, openBlock as w, createVNode as l, createBlock as S, createCommentVNode as H, withCtx as i, createElementVNode as e, Fragment as rt, renderList as st, unref as dt, toDisplayString as D, withModifiers as ct, createTextVNode as O, nextTick as ht } from "vue";
2
- import { VXETable as U } from "vxe-table";
1
+ import { defineComponent as it, ref as f, reactive as M, onMounted as ot, onBeforeUnmount as nt, resolveComponent as r, resolveDirective as pt, withDirectives as at, createElementBlock as N, openBlock as w, createVNode as l, createBlock as S, createCommentVNode as H, withCtx as i, createElementVNode as e, Fragment as rt, renderList as st, unref as dt, toDisplayString as D, withModifiers as ct, createTextVNode as U, nextTick as ht } from "vue";
2
+ import { VxeUI as O } from "vxe-pc-ui";
3
3
  import { useGlobal as ut } from "@utogether/utils";
4
4
  import { t as mt } from "./await-to-js.es5-BtRbN2QH.js";
5
5
  import { clone as ft } from "xe-utils";
6
- import { i as gt, w as yt } from "./index-OswH7SsT.js";
7
- import vt from "./Preview-Cm_7RhYU.js";
6
+ import { i as gt, y as yt } from "./index-C3q8HoJM.js";
7
+ import vt from "./Preview-CLpUUMay.js";
8
8
  const xt = {
9
9
  panels: [
10
10
  {
@@ -490,11 +490,11 @@ const xt = {
490
490
  },
491
491
  emits: ["onClose"],
492
492
  setup(J, { emit: B }) {
493
- const R = J;
493
+ const I = J;
494
494
  let { $printPlugin: u } = ut();
495
- const I = gt().getDataDict, W = yt();
495
+ const R = gt().getDataDict, W = yt();
496
496
  let s = null;
497
- const C = f(!1), g = f(!1), y = f(!1), v = f(!1), z = f(null), T = f(""), m = f({}), d = k({}), h = k({ max: 5, min: 0.5, value: 1, ration: "100%" }), j = () => {
497
+ const C = f(!1), g = f(!1), y = f(!1), v = f(!1), z = f(null), T = f(""), m = f({}), d = M({}), h = M({ max: 5, min: 0.5, value: 1, ration: "100%" }), j = () => {
498
498
  g.value = !1, s.setPaper(d.width || 210, d.height || 296.6);
499
499
  }, V = async (n) => {
500
500
  const t = m.value;
@@ -512,24 +512,24 @@ const xt = {
512
512
  let t = h.value;
513
513
  n === "Y" ? (t += 0.1, t > h.max && (t = 5)) : (t -= 0.1, t < h.min && (t = 0.5)), s && (s.zoom(t), h.value = t, h.ration = `${(t * 100).toFixed(0)}%`);
514
514
  }, q = async () => {
515
- await U.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
515
+ await O.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
516
516
  }, L = async () => {
517
517
  y.value = !0;
518
518
  }, Y = async () => {
519
- await U.modal.confirm("导入后将覆盖原有的模板,您确定继续吗?", "温馨提示") === "confirm" && (V(P), y.value = !1);
519
+ await O.modal.confirm("导入后将覆盖原有的模板,您确定继续吗?", "温馨提示") === "confirm" && (V(P), y.value = !1);
520
520
  }, G = async () => {
521
521
  C.value = !0;
522
522
  const n = {};
523
523
  ht(() => {
524
524
  z.value.show(s, n, d.width || 220);
525
525
  });
526
- }, X = (n) => {
526
+ }, K = (n) => {
527
527
  if (n !== "customize") {
528
- const { width: t, height: p } = K(n);
528
+ const { width: t, height: p } = Q(n);
529
529
  d.width = t, d.height = p, s.setPaper(d.width, d.height);
530
530
  } else
531
531
  g.value = !0;
532
- }, K = (n) => ({
532
+ }, Q = (n) => ({
533
533
  A3: { width: 420, height: 296.6 },
534
534
  A4: { width: 210, height: 296.6 },
535
535
  A5: { width: 210, height: 147.6 },
@@ -537,7 +537,7 @@ const xt = {
537
537
  trisection: { width: 241, height: 93 }
538
538
  })[n];
539
539
  return ot(() => {
540
- const { record: n } = R;
540
+ const { record: n } = I;
541
541
  v.value = !0, m.value = ft(n, !0);
542
542
  const t = n.templateContent ? JSON.parse(n.templateContent) : xt;
543
543
  $("#hiprint-printTemplate").empty(), u.print.init({
@@ -560,7 +560,7 @@ const xt = {
560
560
  }), nt(() => {
561
561
  u = null, s = null;
562
562
  }), (n, t) => {
563
- const p = r("ut-button"), E = r("el-option"), _ = r("el-select"), x = r("vxe-input"), Q = r("el-popover"), M = r("vxe-button"), Z = r("el-space"), c = r("el-row"), a = r("el-col"), b = r("el-card"), tt = r("vxe-textarea"), et = r("vxe-modal"), lt = pt("spinning");
563
+ const p = r("ut-button"), E = r("el-option"), _ = r("el-select"), x = r("vxe-input"), X = r("el-popover"), k = r("vxe-button"), Z = r("el-space"), c = r("el-row"), a = r("el-col"), b = r("el-card"), tt = r("vxe-textarea"), et = r("vxe-modal"), lt = pt("spinning");
564
564
  return at((w(), N("div", wt, [
565
565
  l(b, { class: "design-panel-contain" }, {
566
566
  default: i(() => [
@@ -583,10 +583,10 @@ const xt = {
583
583
  placeholder: "Select Paper",
584
584
  class: "ml-1 mr-1",
585
585
  style: { width: "100px !important" },
586
- onChange: t[1] || (t[1] = (o) => X(m.value.paperType))
586
+ onChange: t[1] || (t[1] = (o) => K(m.value.paperType))
587
587
  }, {
588
588
  default: i(() => [
589
- (w(!0), N(rt, null, st(dt(I)["SU.PRINT.PAPER"].children, (o) => (w(), S(E, {
589
+ (w(!0), N(rt, null, st(dt(R)["SU.PRINT.PAPER"].children, (o) => (w(), S(E, {
590
590
  key: o.dictCode,
591
591
  label: o.dictName,
592
592
  value: o.dictCode
@@ -600,7 +600,7 @@ const xt = {
600
600
  ]),
601
601
  _: 1
602
602
  }, 8, ["modelValue"]),
603
- m.value.paperType === "customize" ? (w(), S(Q, {
603
+ m.value.paperType === "customize" ? (w(), S(X, {
604
604
  key: 0,
605
605
  visible: g.value,
606
606
  "onUpdate:visible": t[5] || (t[5] = (o) => g.value = o),
@@ -614,7 +614,7 @@ const xt = {
614
614
  l(p, {
615
615
  icon: "ri-font-size",
616
616
  content: "customSize",
617
- onClick: t[4] || (t[4] = ct((o) => g.value = !0, ["stop"]))
617
+ onTap: t[4] || (t[4] = ct((o) => g.value = !0, ["stop"]))
618
618
  })
619
619
  ]),
620
620
  default: i(() => [
@@ -652,7 +652,7 @@ const xt = {
652
652
  auth: "import",
653
653
  onTap: t[6] || (t[6] = (o) => L())
654
654
  }),
655
- l(M, {
655
+ l(k, {
656
656
  icon: "ri-indeterminate-circle-line ",
657
657
  class: "design-custom-button",
658
658
  onClick: t[7] || (t[7] = (o) => A("N"))
@@ -664,7 +664,7 @@ const xt = {
664
664
  align: "center",
665
665
  style: { width: "70px", "margin-left": "10px" }
666
666
  }, null, 8, ["modelValue"]),
667
- l(M, {
667
+ l(k, {
668
668
  icon: "ri-add-circle-fill ",
669
669
  class: "design-custom-button",
670
670
  onClick: t[9] || (t[9] = (o) => A("Y"))
@@ -710,7 +710,7 @@ const xt = {
710
710
  default: i(() => [
711
711
  l(c, { class: "drag_item_title" }, {
712
712
  default: i(() => t[17] || (t[17] = [
713
- O("拖拽组件列表")
713
+ U("拖拽组件列表")
714
714
  ])),
715
715
  _: 1
716
716
  }),
@@ -738,8 +738,7 @@ const xt = {
738
738
  }),
739
739
  l(a, {
740
740
  span: 12,
741
- class: "drag_item_box",
742
- tid: "defaultModule.text"
741
+ class: "drag_item_box"
743
742
  }, {
744
743
  default: i(() => t[19] || (t[19] = [
745
744
  e("div", null, [
@@ -785,8 +784,7 @@ const xt = {
785
784
  }),
786
785
  l(a, {
787
786
  span: 12,
788
- class: "drag_item_box",
789
- tid: "defaultModule.text"
787
+ class: "drag_item_box"
790
788
  }, {
791
789
  default: i(() => t[21] || (t[21] = [
792
790
  e("div", null, [
@@ -809,7 +807,7 @@ const xt = {
809
807
  }),
810
808
  l(c, { class: "drag_item_title" }, {
811
809
  default: i(() => t[22] || (t[22] = [
812
- O("辅助")
810
+ U("辅助")
813
811
  ])),
814
812
  _: 1
815
813
  }),
@@ -0,0 +1,109 @@
1
+ import { defineComponent as v, ref as o, createVNode as l, resolveComponent as c, nextTick as g, createElementBlock as C, openBlock as s, createBlock as k, createCommentVNode as D } from "vue";
2
+ import { _ as T } from "./childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js";
3
+ import { useRender as E } from "@utogether/utils";
4
+ const y = {
5
+ name: "DictView"
6
+ }, R = /* @__PURE__ */ v({
7
+ ...y,
8
+ setup(N) {
9
+ const i = o(null), u = [{
10
+ field: "dictCode",
11
+ title: "message.udp.dictCode"
12
+ }, {
13
+ field: "dictName",
14
+ title: "message.udp.dictName"
15
+ }, {
16
+ field: "dictType",
17
+ title: "message.udp.dictType",
18
+ code: "SU.DICT.TYPE"
19
+ }], t = E(), a = [
20
+ {
21
+ type: "checkbox",
22
+ width: 40,
23
+ align: "center"
24
+ },
25
+ {
26
+ field: "dictCode",
27
+ title: "message.udp.dictCode",
28
+ required: !0,
29
+ editRender: t.renderInput()
30
+ },
31
+ {
32
+ field: "dictName",
33
+ title: "message.udp.dictName",
34
+ required: !0,
35
+ editRender: t.renderInput()
36
+ },
37
+ // {
38
+ // field: 'userName',
39
+ // width: 300,
40
+ // editRender: renderHook.renderUpload()
41
+ // },
42
+ {
43
+ field: "dictType",
44
+ title: "message.udp.dictType",
45
+ required: !0,
46
+ editRender: t.renderDict("SU.DICT.TYPE"),
47
+ formatter: ["formatDict", "SU.DICT.TYPE"]
48
+ },
49
+ {
50
+ field: "dictDesc",
51
+ title: "message.remark",
52
+ editRender: t.renderInput()
53
+ },
54
+ {
55
+ field: "enabled",
56
+ width: 90,
57
+ editRender: t.renderDict({
58
+ code: "SU.ENABLE",
59
+ defaultValue: "1"
60
+ }),
61
+ formatter: ["formatDict", "SU.ENABLE"]
62
+ },
63
+ {
64
+ field: "operate",
65
+ width: 80,
66
+ slots: {
67
+ default: ({
68
+ row: e
69
+ }) => e.id ? [l(c("ut-button"), {
70
+ content: "lov",
71
+ onClick: () => m(e)
72
+ }, null)] : null
73
+ }
74
+ }
75
+ ], d = o(!1), r = o(null), m = (e) => {
76
+ g(() => {
77
+ var n;
78
+ d.value = !0, r.value = e, r.value.total = (n = e.children) == null ? void 0 : n.length;
79
+ });
80
+ }, f = () => {
81
+ i.value.refreshData(), d.value = !1;
82
+ }, p = {
83
+ editActived({
84
+ row: e
85
+ }) {
86
+ }
87
+ }, h = (e) => e.dictType !== "0";
88
+ return (e, n) => {
89
+ const _ = c("ut-grid");
90
+ return s(), C("div", null, [l(_, {
91
+ ref_key: "xgrid",
92
+ ref: i,
93
+ items: u,
94
+ columns: a,
95
+ "check-method": h,
96
+ events: p,
97
+ url: "/upfm/v1/lov"
98
+ }, null, 512), d.value ? (s(), k(T, {
99
+ key: 0,
100
+ show: d.value,
101
+ record: r.value,
102
+ onOnClose: f
103
+ }, null, 8, ["show", "record"])) : D("", !0)]);
104
+ };
105
+ }
106
+ });
107
+ export {
108
+ R as default
109
+ };