@utogether/udp-core 2.0.0-beta.1 → 2.0.0-beta.3

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 (182) hide show
  1. package/dist/{403-CTJDBjz7.js → 403-CxOqlq0f.js} +3 -3
  2. package/dist/403-WCboRvzZ-ZAPgYStl.js +65 -0
  3. package/dist/404-2V0Qi-d7-DkNwQggp.js +65 -0
  4. package/dist/{404-BFYkWIkQ.js → 404-xdB6lFeQ.js} +1 -1
  5. package/dist/500-BYfzvixf-CGpEieyQ.js +67 -0
  6. package/dist/{500-DGG3qadg.js → 500-C94bRK2S.js} +2 -2
  7. package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5.js +4 -0
  8. package/dist/{AuthorityInfo-ozZIo1Te.js → AuthorityInfo-Dy3b_nFN.js} +1 -1
  9. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY.js} +2 -2
  10. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz.js +100 -0
  11. package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +4 -0
  12. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +114 -0
  13. package/dist/Company-B4vsXy2I-CkNCOqjJ.js +25 -0
  14. package/dist/{Company-6VJtwh23.js → Company-gKkfnhLt.js} +3 -3
  15. package/dist/{CompanyPanel-B2P488mq.js → CompanyPanel-BF5Pc35s.js} +7 -7
  16. package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_.js +206 -0
  17. package/dist/DataSet-DT-rGICv-DaUfgbxk.js +147 -0
  18. package/dist/{Department-BnwoLEOC.js → Department-D0I3QVZe.js} +3 -3
  19. package/dist/Department-D0dVUrGC-C6HJcYI1.js +25 -0
  20. package/dist/{DepartmentPanel-CRrrmxtv.js → DepartmentPanel-2LHODgc7.js} +22 -22
  21. package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd.js +254 -0
  22. package/dist/{DesignPanel-CvbccgX2.js → DesignPanel-CtF3cAAQ.js} +1 -1
  23. package/dist/DesignPanel-DdFl_ohi-uCwFxcl1.js +4 -0
  24. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY.js +1013 -0
  25. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js → DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt.js} +3 -3
  26. package/dist/DictView-BzQLOf_P-DDicwdmM.js +111 -0
  27. package/dist/{DictView-Ce1LoVHh.js → DictView-H3V5hxg3.js} +1 -1
  28. package/dist/{InvOrganization-BwCFZO1X.js → InvOrganization-BiGLnbqe.js} +2 -2
  29. package/dist/InvOrganization-atbhw0CI-BABbVt9V.js +74 -0
  30. package/dist/Org-BW1YHG-Q-Cow7JWlD.js +39 -0
  31. package/dist/{Org-0hzs6b0R.js → Org-DQTCQHNY.js} +2 -2
  32. package/dist/Preview-DJtVsoq1-CCGidQjJ.js +48 -0
  33. package/dist/{Preview--DnEAhwh.js → Preview-DXaiis29.js} +1 -1
  34. package/dist/{ReportDefine-Cu983bTN.js → ReportDefine-BLh4CiER.js} +1 -1
  35. package/dist/ReportDefine-CNx_ob99-6NQAHK-Q.js +10 -0
  36. package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp.js +165 -0
  37. package/dist/{ReportDesign-QsWXXgvo.js → ReportDesign-Ni1YxrLC.js} +7 -7
  38. package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda.js +75 -0
  39. package/dist/{ReportQuery-BjKIIhPu.js → ReportQuery-C8G88_qF.js} +1 -1
  40. package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy.js +4 -0
  41. package/dist/{ReportQueryFrom-DIjBO6Fx.js → ReportQueryFrom-CuZKPtB4.js} +1 -1
  42. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW.js} +7 -7
  43. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl.js +178 -0
  44. package/dist/ReportTemplate-BDANdIWv-D_IGjR1w.js +161 -0
  45. package/dist/{ReportTemplate-2uk9tJcy.js → ReportTemplate-DFnDXWmx.js} +8 -8
  46. package/dist/{Role-_QP8QEaI.js → Role-BQ7hsfPn.js} +3 -3
  47. package/dist/Role-ByB0WbxW-5E8Mb148.js +25 -0
  48. package/dist/RoleAssign-DW6iC_0v-Bis61auk.js +26 -0
  49. package/dist/{RoleAssign-C2gkcmEQ.js → RoleAssign-UPCg2d4G.js} +3 -3
  50. package/dist/RolePanel-BM2MaQPU-CgcsbfaX.js +4 -0
  51. package/dist/{RolePanel-vnl_lXNY.js → RolePanel-C-mQ5XRq.js} +1 -1
  52. package/dist/RolePanel-ClQy8DBL-DARL4O-o.js +4 -0
  53. package/dist/{RolePanel-B8FPNGaA.js → RolePanel-CoSXOCZN.js} +1 -1
  54. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js +132 -0
  55. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js → RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF.js} +7 -7
  56. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js → RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8.js} +8 -8
  57. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js +154 -0
  58. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js +100 -0
  59. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js} +1 -1
  60. package/dist/Staff-CuxzvhD9-D0KTcyRh.js +25 -0
  61. package/dist/{Staff-CHWrMIEb.js → Staff-D-CmvG1R.js} +3 -3
  62. package/dist/StaffInfo-CY7gUICu-EZUhUwIp.js +4 -0
  63. package/dist/{StaffInfo-Cpq2eayz.js → StaffInfo-Idhvuc6e.js} +1 -1
  64. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js +108 -0
  65. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js → StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js} +1 -1
  66. package/dist/{StaffPanel-D2BMXt5p.js → StaffPanel-CDDmAYE5.js} +1 -1
  67. package/dist/StaffPanel-CwqG0_xr-CrvzLJoc.js +4 -0
  68. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js → StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee.js} +42 -42
  69. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js +143 -0
  70. package/dist/SysUser-9Q2UJWhi-DprWXFlR.js +15 -0
  71. package/dist/{SysUser-om6H1BeC.js → SysUser-a-j5bppr.js} +2 -2
  72. package/dist/{SysUserPanel-CH0HPP7h.js → SysUserPanel-6V232wwB.js} +1 -1
  73. package/dist/SysUserPanel-bJy69O7x-BJtBgFEs.js +4 -0
  74. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js} +2 -2
  75. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js +356 -0
  76. package/dist/{SystemMenu-BkG_DKxA.js → SystemMenu-BnVeOSOQ.js} +7 -7
  77. package/dist/SystemMenu-DGOAolc1-CJSLHP8i.js +156 -0
  78. package/dist/UserInfo-CKoOHkAM-DDWp0I_U.js +4 -0
  79. package/dist/{UserInfo-D9croxUe.js → UserInfo-Cax9b2nw.js} +1 -1
  80. package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js +160 -0
  81. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js → UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js} +2 -2
  82. package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +10 -0
  83. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  84. package/dist/childView-0YZQ6GBn-CEqg7k5d.js +4 -0
  85. package/dist/{childView-BY_Ip-l1.js → childView-DKG3eZo8.js} +1 -1
  86. package/dist/childView-DKkgi3yo-D47ft-vi.js +4 -0
  87. package/dist/{childView-CHp_TueS.js → childView-siumuBz0.js} +1 -1
  88. package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js +143 -0
  89. package/dist/{childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js → childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js} +8 -8
  90. package/dist/{childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js → childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js} +8 -8
  91. package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js +180 -0
  92. package/dist/{code-rule-Ce6yWqCq.js → code-rule-Dtoree6F.js} +2 -2
  93. package/dist/code-rule-wQyfgpNL-C4evD4Co.js +148 -0
  94. package/dist/core.es.js +10 -10
  95. package/dist/cron-task-C-kryDtd-C0NuGZCe.js +135 -0
  96. package/dist/{cron-task-DziaH0rI.js → cron-task-GSRgA7S5.js} +2 -2
  97. package/dist/flow-task-B07st2aD-CgQvagSQ.js +10 -0
  98. package/dist/frameView-BOGA3ezf-QoSxzmSQ.js +44 -0
  99. package/dist/{frameView-DNeCVQaY.js → frameView-Cy6wxW0K.js} +1 -1
  100. package/dist/{index-BabfUVv_.js → index-Dc7xWMiC.js} +1057 -1033
  101. package/dist/layout-home-3Dy4onl4.js +228 -0
  102. package/dist/layout-home-CYHksXN_-Basy-3IH.js +228 -0
  103. package/dist/layoutView-BaRvAbIa-xVgfqspc.js +3302 -0
  104. package/dist/{layoutView-12Mlp9A2.js → layoutView-DMjNscJ-.js} +8 -8
  105. package/dist/log-in-Cx1dGik8-BVeEHeZ8.js +117 -0
  106. package/dist/{log-in-1NGaA5OM.js → log-in-VAG6Cvcx.js} +8 -8
  107. package/dist/log-out-COYdxrNC-ftopGZdE.js +130 -0
  108. package/dist/{log-out-B8_atGcQ.js → log-out-DZGaMCjC.js} +4 -4
  109. package/dist/{login-5dydO6GR.js → login-CqVMdNHs.js} +16 -16
  110. package/dist/login-Dg9ofNS8-Bocp1XMA.js +241 -0
  111. package/dist/login-log-DJBGJVV0-AoOyj0jD.js +70 -0
  112. package/dist/lov-view-C0T5prk8-B2DBmn55.js +97 -0
  113. package/dist/{lov-view-DPvGUu3h.js → lov-view-Cc68_28B.js} +7 -7
  114. package/dist/{menuInfo-DVADYfEK.js → menuInfo-BIrIaJlH.js} +1 -1
  115. package/dist/menuInfo-BZJ_q7bz-Drho-_QC.js +4 -0
  116. package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js +363 -0
  117. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js → menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js} +2 -2
  118. package/dist/{pda-app-BZXs-2BQ.js → pda-app-DnjphrRS.js} +9 -9
  119. package/dist/pda-app-m9hsppHo-B4xyja1o.js +710 -0
  120. package/dist/redirect-BqegffKC-CBCIuqmz.js +15 -0
  121. package/dist/resource-C6KEIXu--B_ddyecm.js +97 -0
  122. package/dist/{resource-BZA9NFKc.js → resource-DISgPDM7.js} +4 -4
  123. package/dist/su-welcome-BjbuSrBZ.js +49424 -0
  124. package/dist/su-welcome-CYYy-dzr-D3RKPoB0.js +42089 -0
  125. package/dist/sys-config-DCjJGtht-DARDjlrt.js +370 -0
  126. package/dist/{sys-config-DQmNjWH4.js → sys-config-Yc9vh1t1.js} +13 -13
  127. package/dist/udp-core.css +1 -1
  128. package/dist/utogether-MlnyYtNS-CGgjFNPS.js +4 -0
  129. package/package.json +5 -2
  130. package/src/App.vue +71 -71
  131. package/src/components/udp/content/index.vue +88 -88
  132. package/src/components/udp/form-upload/form-upload.vue +492 -492
  133. package/src/components/udp/grid/index.vue +524 -524
  134. package/src/components/udp/index.ts +6 -6
  135. package/src/components/udp/ut-stamp-badge/index.vue +271 -271
  136. package/src/components/udp/utils.ts +408 -408
  137. package/src/layout/components/lay-content/index.vue +136 -136
  138. package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
  139. package/src/layout/components/lay-setting/index.vue +503 -503
  140. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
  141. package/src/layout/components/lay-tag/index.vue +598 -598
  142. package/src/layout/hooks/useNav.ts +176 -176
  143. package/src/layout/hooks/useTag.ts +227 -227
  144. package/src/layout/layoutView.vue +216 -216
  145. package/src/layout/types.ts +93 -93
  146. package/src/main.ts +111 -112
  147. package/src/plugins/i18n/zh.ts +1 -0
  148. package/src/plugins/vxe-table/index.ts +116 -116
  149. package/src/plugins/vxe-table/render.tsx +968 -968
  150. package/src/router/index.ts +187 -187
  151. package/src/router/modules/home.ts +32 -32
  152. package/src/router/utils.ts +420 -420
  153. package/src/store/modules/epTheme.ts +48 -48
  154. package/src/style/vxetable.scss +364 -356
  155. package/src/utils/dataFormat/index.ts +222 -222
  156. package/src/utils/lifecycle.ts +39 -39
  157. package/src/views/organization/department/DepartmentPanel.vue +303 -303
  158. package/src/views/organization/staff/StaffInfo.vue +127 -127
  159. package/src/views/organization/staff/StaffPanel.vue +3 -3
  160. package/src/views/system/layout/layout-home.vue +45 -7
  161. package/src/views/system/menu/AuthorityPanel.vue +141 -141
  162. package/src/views/system/menu/SystemMenu.vue +194 -194
  163. package/src/views/system/menu/menuInfo.vue +1 -1
  164. package/src/views/system/sysUser/SysUserPanel.vue +363 -363
  165. package/src/views/udev/coderule/code-rule.vue +132 -132
  166. package/src/views/udev/dict/DictView.vue +118 -118
  167. package/src/views/udev/dict/childView.vue +184 -184
  168. package/src/views/udev/lov/childView.vue +174 -174
  169. package/src/views/uhome/components/common-menu.vue +118 -0
  170. package/src/views/uhome/components/dynamic-component.vue +66 -0
  171. package/src/views/uhome/components/home-todo.vue +170 -0
  172. package/src/views/uhome/components/menu-favorite.vue +315 -315
  173. package/src/views/uhome/dynamic-card.vue +18 -19
  174. package/src/views/uhome/su-welcome.vue +46 -116
  175. package/src/views/ulogin/login.vue +336 -336
  176. package/src/views/upms/interface/log-in.vue +100 -100
  177. package/src/views/upms/interface/log-out.vue +104 -104
  178. package/src/views/upms/user/login-log.vue +54 -54
  179. package/types/global.d.ts +232 -232
  180. package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
  181. package/dist/layout-home-Cis1KlEr.js +0 -195
  182. package/dist/su-welcome-BXe6Cdp3.js +0 -580
@@ -0,0 +1,370 @@
1
+ import { defineComponent as O, ref as $, reactive as U, computed as q, onMounted as J, resolveComponent as r, resolveDirective as W, withDirectives as H, createElementBlock as K, openBlock as j, createElementVNode as n, createVNode as t, withCtx as s, createBlock as L, createCommentVNode as A, unref as v, createTextVNode as F, toDisplayString as p } from "vue";
2
+ import { useI18n as Q } from "vue-i18n";
3
+ import { c as P } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
4
+ import { cookies as w, warnMessage as R, successMessage as X } from "@utogether/utils";
5
+ import { isArray as Z } from "xe-utils";
6
+ import { u as ee, h as le, j as z, W as ae } from "./su-welcome-BjbuSrBZ.js";
7
+ const te = { class: "flex flex-col items-center pt-20 bg-white u-system-config" }, oe = { class: "flex w-1/2 p-3 overflow-y-auto border border-gray-300 rounded-md" }, se = { class: "flex items-center" }, ie = { class: "pl-2 text-xs" }, ue = { class: "pl-2" }, ne = { class: "pl-2" }, pe = { class: "flex items-center" }, re = { class: "pl-2 text-xs" }, de = { class: "pl-2" }, ce = { class: "flex items-center" }, ge = { class: "pl-2 text-xs" }, me = { class: "flex justify-end w-1/2 p-2" }, k = "/upfm/v1/sysConfig", Ce = /* @__PURE__ */ O({
8
+ __name: "sys-config",
9
+ setup(fe) {
10
+ const E = $(), h = $(!1), a = U({
11
+ defaultLanguage: "zh",
12
+ title: "U-DP",
13
+ ispTitle: "U-DP",
14
+ baseColor: "#FFF",
15
+ i18nEnabled: "N",
16
+ orgTaggle: "Y",
17
+ showTitle: "Y",
18
+ techSupport: "Y",
19
+ copyright: "深圳友聚信息技术有限公司",
20
+ logo: [],
21
+ backgroundImg: [],
22
+ favicon: []
23
+ }), y = ae(), { t: m } = Q(), f = $(ee());
24
+ let d = [];
25
+ const B = [
26
+ "#DC143C",
27
+ "#FF1493",
28
+ "#FF00FF",
29
+ "#9932CC",
30
+ "#6A5ACD",
31
+ "#0000FF",
32
+ "#00008B",
33
+ "#778899",
34
+ "#1E90FF",
35
+ "#00BFFF",
36
+ "#5F9EA0",
37
+ "#00FFFF",
38
+ "#008080",
39
+ "#7FFFAA",
40
+ "#3CB371",
41
+ "#8FBC8F",
42
+ "#008000",
43
+ "#7CFC00",
44
+ "#556B2F",
45
+ "#FFFFE0",
46
+ "#FFFF00",
47
+ "#808000",
48
+ "#EEE8AA",
49
+ "#FFD700",
50
+ "#FFA500",
51
+ "#FF4500",
52
+ "#FA8072",
53
+ "#FF0000",
54
+ "#800000",
55
+ "#C0C0C0"
56
+ ], D = U({
57
+ defaultLanguage: [
58
+ {
59
+ required: !0,
60
+ message: m("message.required") + m("message.udp.defaultLanguage"),
61
+ trigger: "blur"
62
+ }
63
+ ],
64
+ title: [{ required: !0, message: m("message.required") + m("message.udp.systemTitle"), trigger: "blur" }]
65
+ }), V = q(() => {
66
+ const e = w.get(le);
67
+ return {
68
+ Authorization: "Bearer " + JSON.parse(e).accessToken
69
+ };
70
+ }), S = (e) => {
71
+ Object.keys(a).forEach((l) => {
72
+ const u = {
73
+ configCode: l,
74
+ configValue: a[l],
75
+ configCategory: "system",
76
+ fileName: ""
77
+ };
78
+ Z(a[l]) && (u.configValue = N(a[l][0]).url, u.fileName = N(a[l][0]).name);
79
+ const i = d.findIndex((c) => c.configCode === l);
80
+ i !== -1 ? d[i] = Object.assign(d[i], u) : d.push(u);
81
+ }), e == null || e.validate(async (l) => {
82
+ if (l) {
83
+ h.value = !0;
84
+ const u = d.filter((g) => !g.id), i = d.filter((g) => g.id), c = [];
85
+ u.length ? c.push(y.post(k, u)) : c.push(y.put(k, i));
86
+ const [_] = await P(Promise.all(c));
87
+ _ || (X(), T()), h.value = !1;
88
+ }
89
+ });
90
+ }, N = (e) => e != null && e.response ? { url: e.response.data, name: e.name } : { url: (e == null ? void 0 : e.realpath) || (e == null ? void 0 : e.url), name: e == null ? void 0 : e.name }, C = (e) => {
91
+ if (e)
92
+ return R(m("message.tip.singleImg"));
93
+ }, T = () => {
94
+ Object.keys(a).forEach((e) => {
95
+ const l = d.find((u) => u.configCode === e);
96
+ if (l && (a[l.configCode] = l.configValue || a[l.configCode], l.fileName)) {
97
+ const { configValue: u, fileName: i } = l;
98
+ a[l.configCode] = [
99
+ { url: f.value + "/ufil" + u, realpath: u, name: i }
100
+ ];
101
+ }
102
+ });
103
+ }, Y = async () => {
104
+ const [e, l] = await P(y.get(k, {}));
105
+ e || (d = l.list), T();
106
+ };
107
+ return J(() => {
108
+ Y();
109
+ }), (e, l) => {
110
+ const u = r("el-input"), i = r("el-form-item"), c = r("el-option"), _ = r("el-select"), g = r("el-switch"), G = r("vxe-color-picker"), b = r("el-button"), x = r("el-upload"), I = r("el-form"), M = W("spinning");
111
+ return H((j(), K("div", te, [
112
+ n("div", oe, [
113
+ t(I, {
114
+ ref_key: "xfrom",
115
+ ref: E,
116
+ model: a,
117
+ rules: D,
118
+ "label-width": "90",
119
+ size: "small",
120
+ "status-icon": "",
121
+ class: "w-full"
122
+ }, {
123
+ default: s(() => [
124
+ t(i, {
125
+ label: e.$t("message.udp.systemTitle"),
126
+ prop: "title"
127
+ }, {
128
+ default: s(() => [
129
+ t(u, {
130
+ modelValue: a.title,
131
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => a.title = o)
132
+ }, null, 8, ["modelValue"])
133
+ ]),
134
+ _: 1
135
+ }, 8, ["label"]),
136
+ t(i, {
137
+ label: e.$t("message.udp.copyright"),
138
+ prop: "copyright"
139
+ }, {
140
+ default: s(() => [
141
+ t(u, {
142
+ modelValue: a.copyright,
143
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => a.copyright = o)
144
+ }, null, 8, ["modelValue"])
145
+ ]),
146
+ _: 1
147
+ }, 8, ["label"]),
148
+ t(i, {
149
+ label: e.$t("message.udp.defaultLanguage"),
150
+ prop: "defaultLanguage"
151
+ }, {
152
+ default: s(() => [
153
+ t(_, {
154
+ modelValue: a.defaultLanguage,
155
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => a.defaultLanguage = o),
156
+ placeholder: "please select"
157
+ }, {
158
+ default: s(() => [
159
+ t(c, {
160
+ label: "中文",
161
+ value: "zh"
162
+ }),
163
+ t(c, {
164
+ label: "英文",
165
+ value: "en"
166
+ })
167
+ ]),
168
+ _: 1
169
+ }, 8, ["modelValue"])
170
+ ]),
171
+ _: 1
172
+ }, 8, ["label"]),
173
+ t(i, {
174
+ label: e.$t("message.udp.i18nEnabled"),
175
+ prop: "i18nEnabled"
176
+ }, {
177
+ default: s(() => [
178
+ t(g, {
179
+ modelValue: a.i18nEnabled,
180
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => a.i18nEnabled = o),
181
+ "active-value": "Y",
182
+ "inactive-value": "N"
183
+ }, null, 8, ["modelValue"])
184
+ ]),
185
+ _: 1
186
+ }, 8, ["label"]),
187
+ t(i, {
188
+ label: e.$t("message.udp.orgTaggle"),
189
+ prop: "orgTaggle"
190
+ }, {
191
+ default: s(() => [
192
+ t(g, {
193
+ modelValue: a.orgTaggle,
194
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => a.orgTaggle = o),
195
+ "active-value": "Y",
196
+ "inactive-value": "N"
197
+ }, null, 8, ["modelValue"])
198
+ ]),
199
+ _: 1
200
+ }, 8, ["label"]),
201
+ t(i, {
202
+ label: e.$t("message.udp.showTitle"),
203
+ prop: "showTitle"
204
+ }, {
205
+ default: s(() => [
206
+ t(g, {
207
+ modelValue: a.showTitle,
208
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => a.showTitle = o),
209
+ "active-value": "Y",
210
+ "inactive-value": "N"
211
+ }, null, 8, ["modelValue"])
212
+ ]),
213
+ _: 1
214
+ }, 8, ["label"]),
215
+ ["liwei", "yanhuaijun", "phr", "zhonglijun", "ccl"].includes(v(w).get(v(z))) ? (j(), L(i, {
216
+ key: 0,
217
+ label: e.$t("message.udp.techSupport"),
218
+ prop: "techSupport"
219
+ }, {
220
+ default: s(() => [
221
+ t(g, {
222
+ modelValue: a.techSupport,
223
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => a.techSupport = o),
224
+ "active-value": "Y",
225
+ "inactive-value": "N"
226
+ }, null, 8, ["modelValue"])
227
+ ]),
228
+ _: 1
229
+ }, 8, ["label"])) : A("", !0),
230
+ ["liwei", "yanhuaijun", "phr", "zhonglijun", "ccl"].includes(v(w).get(v(z))) ? (j(), L(i, {
231
+ key: 1,
232
+ label: e.$t("message.udp.baseColor"),
233
+ prop: "baseColor"
234
+ }, {
235
+ default: s(() => [
236
+ t(G, {
237
+ modelValue: a.baseColor,
238
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => a.baseColor = o),
239
+ colors: B,
240
+ type: "hex",
241
+ clearable: "",
242
+ transfer: ""
243
+ }, null, 8, ["modelValue"])
244
+ ]),
245
+ _: 1
246
+ }, 8, ["label"])) : A("", !0),
247
+ t(i, {
248
+ label: e.$t("message.udp.systemLogo")
249
+ }, {
250
+ default: s(() => [
251
+ t(x, {
252
+ "file-list": a.logo,
253
+ "onUpdate:fileList": l[8] || (l[8] = (o) => a.logo = o),
254
+ class: "u-upload",
255
+ action: f.value + "/ufil/file/uploadMultipart",
256
+ headers: V.value,
257
+ "on-exceed": C,
258
+ accept: ".png,.jpg,.jpeg,.PNG,.JPEG,.jPG",
259
+ "list-type": "picture",
260
+ limit: 1
261
+ }, {
262
+ default: s(() => [
263
+ n("div", se, [
264
+ t(b, { type: "primary" }, {
265
+ default: s(() => [
266
+ F(p(e.$t("message.btn.upload")), 1)
267
+ ]),
268
+ _: 1
269
+ }),
270
+ n("div", ie, [
271
+ n("span", null, p(e.$t("message.tip.uploadFormat", { type: ": *.png,*.jpg;" })), 1),
272
+ n("span", ue, p(e.$t("message.tip.imageSize", { size: ": 600 * 200" })), 1),
273
+ n("span", ne, p(e.$t("message.tip.imageCapacity", { capacity: ": <50kb" })), 1)
274
+ ])
275
+ ])
276
+ ]),
277
+ _: 1
278
+ }, 8, ["file-list", "action", "headers"])
279
+ ]),
280
+ _: 1
281
+ }, 8, ["label"]),
282
+ t(i, {
283
+ label: e.$t("message.udp.homeBackimg")
284
+ }, {
285
+ default: s(() => [
286
+ t(x, {
287
+ "file-list": a.backgroundImg,
288
+ "onUpdate:fileList": l[9] || (l[9] = (o) => a.backgroundImg = o),
289
+ class: "u-upload",
290
+ action: f.value + "/ufil/file/uploadMultipart",
291
+ headers: V.value,
292
+ "on-exceed": C,
293
+ accept: ".png,.jpg,.jpeg,.PNG,.JPEG,.jPG",
294
+ "list-type": "picture",
295
+ limit: 1
296
+ }, {
297
+ default: s(() => [
298
+ n("div", pe, [
299
+ t(b, { type: "primary" }, {
300
+ default: s(() => [
301
+ F(p(e.$t("message.btn.upload")), 1)
302
+ ]),
303
+ _: 1
304
+ }),
305
+ n("div", re, [
306
+ n("span", null, p(e.$t("message.tip.uploadFormat", { type: ": *.png,*.jpg;" })), 1),
307
+ n("span", de, p(e.$t("message.tip.imageSize", { size: ": 4096 * 2048" })), 1)
308
+ ])
309
+ ])
310
+ ]),
311
+ _: 1
312
+ }, 8, ["file-list", "action", "headers"])
313
+ ]),
314
+ _: 1
315
+ }, 8, ["label"]),
316
+ t(i, {
317
+ label: e.$t("message.udp.systemFavicon")
318
+ }, {
319
+ default: s(() => [
320
+ t(x, {
321
+ "file-list": a.favicon,
322
+ "onUpdate:fileList": l[10] || (l[10] = (o) => a.favicon = o),
323
+ class: "u-upload",
324
+ action: f.value + "/ufil/file/uploadMultipart",
325
+ headers: V.value,
326
+ "on-exceed": C,
327
+ accept: ".ico",
328
+ "list-type": "picture",
329
+ limit: 1
330
+ }, {
331
+ default: s(() => [
332
+ n("div", ce, [
333
+ t(b, { type: "primary" }, {
334
+ default: s(() => [
335
+ F(p(e.$t("message.btn.upload")), 1)
336
+ ]),
337
+ _: 1
338
+ }),
339
+ n("div", ge, p(e.$t("message.tip.uploadFormat", { type: ": *.ico,.png*.jpg;" })), 1)
340
+ ])
341
+ ]),
342
+ _: 1
343
+ }, 8, ["file-list", "action", "headers"])
344
+ ]),
345
+ _: 1
346
+ }, 8, ["label"])
347
+ ]),
348
+ _: 1
349
+ }, 8, ["model", "rules"])
350
+ ]),
351
+ n("div", me, [
352
+ t(b, {
353
+ type: "primary",
354
+ onClick: l[11] || (l[11] = (o) => S(E.value))
355
+ }, {
356
+ default: s(() => [
357
+ F(p(e.$t("message.btn.confirm")), 1)
358
+ ]),
359
+ _: 1
360
+ })
361
+ ])
362
+ ])), [
363
+ [M, h.value]
364
+ ]);
365
+ };
366
+ }
367
+ });
368
+ export {
369
+ Ce as default
370
+ };
@@ -1,13 +1,13 @@
1
- import { defineComponent as q, ref as k, reactive as U, computed as x, onMounted as J, resolveComponent as p, resolveDirective as R, withDirectives as K, createElementBlock as H, openBlock as w, createElementVNode as u, createVNode as a, withCtx as s, createBlock as A, createCommentVNode as B, unref as v, createTextVNode as F, toDisplayString as r } from "vue";
1
+ import { defineComponent as q, ref as $, reactive as U, computed as x, onMounted as J, resolveComponent as p, resolveDirective as R, withDirectives as K, createElementBlock as H, openBlock as w, createElementVNode as u, createVNode as a, withCtx as s, createBlock as A, createCommentVNode as B, unref as v, createTextVNode as F, toDisplayString as r } from "vue";
2
2
  import { useI18n as Q } from "vue-i18n";
3
- import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { t as S } from "./await-to-js.es5-Bv3Eu4mi.js";
4
4
  import { cookies as E, successMessage as W, warnMessage as X } from "@utogether/utils";
5
5
  import { isArray as Z } from "xe-utils";
6
- import { G as ee, o as te, p as z, y as le } from "./index-BabfUVv_.js";
6
+ import { b as ee, k as te, c as z, g as le } from "./index-Dc7xWMiC.js";
7
7
  const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config" }, oe = { class: "flex w-1/2 p-3 overflow-y-auto border border-gray-300 rounded-md" }, se = { class: "flex items-center" }, ne = { class: "pl-2 text-xs" }, ie = { class: "pl-2" }, ue = { class: "pl-2" }, re = { class: "flex items-center" }, pe = { class: "pl-2 text-xs" }, de = { class: "pl-2" }, me = { class: "flex items-center" }, ce = { class: "pl-2 text-xs" }, ge = { class: "flex justify-end w-1/2 p-2" }, j = "/upfm/v1/sysConfig", Ce = /* @__PURE__ */ q({
8
8
  __name: "sys-config",
9
9
  setup(fe) {
10
- const N = k(), y = k(!1), l = U({
10
+ const N = $(), y = $(!1), l = U({
11
11
  defaultLanguage: "zh",
12
12
  title: "U-DP",
13
13
  ispTitle: "U-DP",
@@ -20,7 +20,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
20
20
  logo: [],
21
21
  backgroundImg: [],
22
22
  favicon: []
23
- }), h = le(), { t: g } = Q(), f = k(ee());
23
+ }), h = le(), { t: g } = Q(), f = $(ee());
24
24
  let d = [];
25
25
  const D = [
26
26
  "#DC143C",
@@ -67,7 +67,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
67
67
  return {
68
68
  Authorization: "Bearer " + JSON.parse(e).accessToken
69
69
  };
70
- }), G = (e) => {
70
+ }), I = (e) => {
71
71
  Object.keys(l).forEach((t) => {
72
72
  const i = {
73
73
  configCode: t,
@@ -100,14 +100,14 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
100
100
  ];
101
101
  }
102
102
  });
103
- }, I = async () => {
103
+ }, G = async () => {
104
104
  const [e, t] = await S(h.get(j, {}));
105
105
  e || (d = t.list), T();
106
106
  };
107
107
  return J(() => {
108
- I();
108
+ G();
109
109
  }), (e, t) => {
110
- const i = p("el-input"), n = p("el-form-item"), m = p("el-option"), V = p("el-select"), c = p("el-switch"), O = p("vxe-color-picker"), b = p("el-button"), $ = p("el-upload"), Y = p("el-form"), M = R("spinning");
110
+ const i = p("el-input"), n = p("el-form-item"), m = p("el-option"), V = p("el-select"), c = p("el-switch"), O = p("vxe-color-picker"), b = p("el-button"), k = p("el-upload"), Y = p("el-form"), M = R("spinning");
111
111
  return K((w(), H("div", ae, [
112
112
  u("div", oe, [
113
113
  a(Y, {
@@ -248,7 +248,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
248
248
  label: e.$t("message.udp.systemLogo")
249
249
  }, {
250
250
  default: s(() => [
251
- a($, {
251
+ a(k, {
252
252
  "file-list": l.logo,
253
253
  "onUpdate:fileList": t[8] || (t[8] = (o) => l.logo = o),
254
254
  class: "u-upload",
@@ -283,7 +283,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
283
283
  label: e.$t("message.udp.homeBackimg")
284
284
  }, {
285
285
  default: s(() => [
286
- a($, {
286
+ a(k, {
287
287
  "file-list": l.backgroundImg,
288
288
  "onUpdate:fileList": t[9] || (t[9] = (o) => l.backgroundImg = o),
289
289
  class: "u-upload",
@@ -317,7 +317,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
317
317
  label: e.$t("message.udp.systemFavicon")
318
318
  }, {
319
319
  default: s(() => [
320
- a($, {
320
+ a(k, {
321
321
  "file-list": l.favicon,
322
322
  "onUpdate:fileList": t[10] || (t[10] = (o) => l.favicon = o),
323
323
  class: "u-upload",
@@ -351,7 +351,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
351
351
  u("div", ge, [
352
352
  a(b, {
353
353
  type: "primary",
354
- onClick: t[11] || (t[11] = (o) => G(N.value))
354
+ onClick: t[11] || (t[11] = (o) => I(N.value))
355
355
  }, {
356
356
  default: s(() => [
357
357
  F(r(e.$t("message.btn.confirm")), 1)