@utogether/udp-core 1.0.1-beta.14 → 1.0.1-beta.16

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 (82) hide show
  1. package/dist/{403-pRpb9luy.js → 403-RBzulrcG.js} +1 -1
  2. package/dist/{404-Bsowhpja.js → 404-DX-dU_6C.js} +1 -1
  3. package/dist/{500-DZuJN9lQ.js → 500-BCTk0__d.js} +1 -1
  4. package/dist/{AuthorityInfo-DsSMdxQ1.js → AuthorityInfo-BADTOenq.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DCRZ7hKU.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Cv46yAx_.js} +3 -3
  6. package/dist/{Company-JFHxazkc.js → Company-B-61KrWd.js} +3 -3
  7. package/dist/{CompanyPanel-Bt-5OX8x.js → CompanyPanel-CawSrEff.js} +10 -10
  8. package/dist/{Department-B1bTl93X.js → Department-CrzJPtvP.js} +3 -3
  9. package/dist/{DepartmentPanel-CVIvI8sf.js → DepartmentPanel-DYuL8H-j.js} +23 -23
  10. package/dist/{DesignPanel-snVLq3Gi.js → DesignPanel-DEAv6V68.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Cvb54DDl.js → DesignPanel.vue_vue_type_style_index_0_lang-BsnXZ2td.js} +6 -6
  12. package/dist/{DictView-OoNA8vMb.js → DictView-BuO-2b-c.js} +15 -16
  13. package/dist/{InvOrganization-CINznAuo.js → InvOrganization-CBgKBJAn.js} +1 -1
  14. package/dist/{Org-BA3ZHIpa.js → Org-BaQw2r-o.js} +3 -3
  15. package/dist/{Preview-C9rFs95x.js → Preview-DvCrmKNk.js} +2 -2
  16. package/dist/{ReportDefine-D2CXXxZp.js → ReportDefine-DyhWz0as.js} +1 -1
  17. package/dist/{ReportDesign-DWmFLxO_.js → ReportDesign-DgZ2f2zv.js} +10 -10
  18. package/dist/{ReportQuery-BBMEls-l.js → ReportQuery-DTZYbCDi.js} +1 -1
  19. package/dist/{ReportQueryFrom-CIeGY6UD.js → ReportQueryFrom-B-vtJegP.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-qtLKZPIW.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-D6izgxph.js} +1 -1
  21. package/dist/{ReportTemplate-CWxGNxLg.js → ReportTemplate-DA1ZqKGf.js} +11 -11
  22. package/dist/{Role-CF93718B.js → Role-mbqoav5t.js} +3 -3
  23. package/dist/{RoleAssign-BjoNSr6O.js → RoleAssign-ltEJIEcr.js} +3 -3
  24. package/dist/{RolePanel-qBGK6Ilt.js → RolePanel-1g1a-G8D.js} +1 -1
  25. package/dist/{RolePanel-DmQaKkm5.js → RolePanel-u90v9eS0.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BeNdAkYp.js → RolePanel.vue_vue_type_script_setup_true_lang-D9YxpGnt.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DdK59XHp.js → RolePanel.vue_vue_type_script_setup_true_lang-LC4Egk-Q.js} +9 -9
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-LU6W_QVY.js → ScrollPanel.vue_vue_type_style_index_0_lang-DZ3W1epK.js} +8 -8
  29. package/dist/{Staff-BrjfdZU2.js → Staff-CJ2GgCL3.js} +3 -3
  30. package/dist/{StaffInfo-DYmftNDC.js → StaffInfo-3KkodDCK.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DVLhL8tz.js → StaffInfo.vue_vue_type_script_setup_true_lang-CW-isIxJ.js} +7 -7
  32. package/dist/{StaffPanel-DJERIwT_.js → StaffPanel-DoXPSoY5.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-D_leV5A8.js → StaffPanel.vue_vue_type_script_setup_true_lang-DvhGnOMZ.js} +2 -2
  34. package/dist/{SysUser-WO0whf-F.js → SysUser-BuIZhMPh.js} +2 -2
  35. package/dist/{SysUserPanel-C64mSt4O.js → SysUserPanel-t1GJcJGM.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B19FuxOZ.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CDDkFLlN.js} +6 -6
  37. package/dist/{SystemMenu-CY1EDfzl.js → SystemMenu-DuLEL6_l.js} +10 -10
  38. package/dist/{UserInfo-DWXmMOD1.js → UserInfo-WWby4lts.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-pjHVXRtK.js → UserInfo.vue_vue_type_style_index_0_lang-B06ZSrJV.js} +10 -10
  40. package/dist/{childView-CMBPpTyj.js → childView-B0-EAoAi.js} +1 -1
  41. package/dist/{childView-Czd4yk_A.js → childView-IYY4L8VK.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-C9wXL52o.js → childView.vue_vue_type_style_index_0_lang-B56v6yK7.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-CaMQbFZm.js → childView.vue_vue_type_style_index_0_lang-CjF8nZuj.js} +6 -6
  44. package/dist/{code-rule-kHfdPgGA.js → code-rule-DDLdi3pP.js} +6 -6
  45. package/dist/core.es.js +17 -12
  46. package/dist/{cron-task-D1bbdvVP.js → cron-task-p3-AFN1w.js} +11 -11
  47. package/dist/{frameView-B5JStsSt.js → frameView-B_WAZErD.js} +1 -1
  48. package/dist/{index-Ce51XQgg.js → index-24fnvUBy.js} +748 -544
  49. package/dist/{layoutView-DR39l27s.js → layoutView-CoEp2afn.js} +25 -27
  50. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  51. package/dist/login-DP0oP70W.js +249 -0
  52. package/dist/{lov-view-wdnYE7wy.js → lov-view-BDoZRK-v.js} +5 -5
  53. package/dist/{menuInfo-D0746839.js → menuInfo-5Xls76qB.js} +1 -1
  54. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-p_yYtGl2.js → menuInfo.vue_vue_type_style_index_0_lang-BfZczW9a.js} +7 -7
  55. package/dist/{pda-app-zzzZfBj5.js → pda-app-DxGYn4G7.js} +20 -20
  56. package/dist/{resource-B7wnjBVW.js → resource-BnYWe_-Q.js} +7 -7
  57. package/dist/{su-welcome-CeajjyWS.js → su-welcome-B2rNhhDH.js} +88 -88
  58. package/dist/sys-config-Bb4WkxZK.js +355 -0
  59. package/dist/udp-core.css +2 -2
  60. package/dist/utogether-MlnyYtNS.js +4 -0
  61. package/index.ts +12 -4
  62. package/package.json +18 -18
  63. package/src/components/udp/form.vue +2 -2
  64. package/src/components/udp/utils.ts +11 -7
  65. package/src/layout/hooks/useTag.ts +221 -233
  66. package/src/main.ts +114 -113
  67. package/src/plugins/i18n/zh.ts +6 -1
  68. package/src/store/modules/system.ts +1 -3
  69. package/src/style/login.css +336 -336
  70. package/src/style/vxetable.scss +32 -0
  71. package/src/utils/index.ts +3 -1
  72. package/src/views/system/sys/sys-config.vue +50 -1
  73. package/src/views/uapp/pda/pda-app.vue +1 -1
  74. package/src/views/udev/dict/DictView.vue +2 -2
  75. package/src/views/ulogin/login.vue +323 -321
  76. package/src/views/upms/interface/log-out.vue +101 -107
  77. package/src/views/urpt/design/Preview.vue +1 -0
  78. package/src/views/urpt/design/ReportDesign.vue +2 -4
  79. package/types/global.d.ts +230 -236
  80. package/dist/login-d5LMP32l.js +0 -253
  81. package/dist/sys-config-CpfSg66g.js +0 -290
  82. package/dist/utogether-B_dUqXea.js +0 -182
@@ -0,0 +1,355 @@
1
+ import { defineComponent as q, ref as $, reactive as A, computed as x, onMounted as J, resolveComponent as p, resolveDirective as R, withDirectives as K, createElementBlock as H, openBlock as E, createElementVNode as u, createVNode as a, withCtx as s, createBlock as B, createCommentVNode as S, unref as v, createTextVNode as F, toDisplayString as r } from "vue";
2
+ import { useI18n as Q } from "vue-i18n";
3
+ import { t as T } from "./await-to-js.es5-BtRbN2QH.js";
4
+ import { cookies as j, successMessage as W, warnMessage as X } from "@utogether/utils";
5
+ import { isArray as Z } from "xe-utils";
6
+ import { B as ee, o as te, p as z, w as le } from "./index-24fnvUBy.js";
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" }, ce = { class: "flex items-center" }, me = { class: "pl-2 text-xs" }, ge = { class: "flex justify-end w-1/2 p-2" }, L = "/upfm/v1/sysConfig", Ce = /* @__PURE__ */ q({
8
+ __name: "sys-config",
9
+ setup(fe) {
10
+ const N = $(), y = $(!1), l = A({
11
+ defaultLanguage: "zh",
12
+ title: "U-DP",
13
+ ispTitle: "U-DP",
14
+ baseColor: "#FFF",
15
+ i18nEnabled: "N",
16
+ orgTaggle: "Y",
17
+ techSupport: "Y",
18
+ copyright: "深圳友聚信息技术有限公司",
19
+ logo: [],
20
+ backgroundImg: [],
21
+ favicon: []
22
+ }), _ = le(), { t: g } = Q(), f = $(ee());
23
+ let d = [];
24
+ const D = [
25
+ "#DC143C",
26
+ "#FF1493",
27
+ "#FF00FF",
28
+ "#9932CC",
29
+ "#6A5ACD",
30
+ "#0000FF",
31
+ "#00008B",
32
+ "#778899",
33
+ "#1E90FF",
34
+ "#00BFFF",
35
+ "#5F9EA0",
36
+ "#00FFFF",
37
+ "#008080",
38
+ "#7FFFAA",
39
+ "#3CB371",
40
+ "#8FBC8F",
41
+ "#008000",
42
+ "#7CFC00",
43
+ "#556B2F",
44
+ "#FFFFE0",
45
+ "#FFFF00",
46
+ "#808000",
47
+ "#EEE8AA",
48
+ "#FFD700",
49
+ "#FFA500",
50
+ "#FF4500",
51
+ "#FA8072",
52
+ "#FF0000",
53
+ "#800000",
54
+ "#C0C0C0"
55
+ ], P = A({
56
+ defaultLanguage: [
57
+ {
58
+ required: !0,
59
+ message: g("message.required") + g("message.udp.defaultLanguage"),
60
+ trigger: "blur"
61
+ }
62
+ ],
63
+ title: [{ required: !0, message: g("message.required") + g("message.udp.systemTitle"), trigger: "blur" }]
64
+ }), h = x(() => {
65
+ const e = j.get(te);
66
+ return {
67
+ Authorization: "Bearer " + JSON.parse(e).accessToken
68
+ };
69
+ }), I = (e) => {
70
+ Object.keys(l).forEach((t) => {
71
+ const i = {
72
+ configCode: t,
73
+ configValue: l[t],
74
+ configCategory: "system",
75
+ fileName: ""
76
+ };
77
+ Z(l[t]) && (i.configValue = w(l[t][0]).url, i.fileName = w(l[t][0]).name);
78
+ const n = d.findIndex((c) => c.configCode === t);
79
+ n !== -1 ? d[n] = Object.assign(d[n], i) : d.push(i);
80
+ }), e == null || e.validate(async (t) => {
81
+ if (t) {
82
+ y.value = !0;
83
+ const i = d.filter((m) => !m.id), n = d.filter((m) => m.id), c = [];
84
+ i.length ? c.push(_.post(L, i)) : c.push(_.put(L, n));
85
+ const [V] = await T(Promise.all(c));
86
+ V || (W(), U()), y.value = !1;
87
+ }
88
+ });
89
+ }, w = (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) => {
90
+ if (e)
91
+ return X(g("message.tip.singleImg"));
92
+ }, U = () => {
93
+ Object.keys(l).forEach((e) => {
94
+ const t = d.find((i) => i.configCode === e);
95
+ if (t && (l[t.configCode] = t.configValue || l[t.configCode], t.fileName)) {
96
+ const { configValue: i, fileName: n } = t;
97
+ l[t.configCode] = [
98
+ { url: f.value + "/ufil" + i, realpath: i, name: n }
99
+ ];
100
+ }
101
+ });
102
+ }, G = async () => {
103
+ const [e, t] = await T(_.get(L, {}));
104
+ e || (d = t.list), U();
105
+ };
106
+ return J(() => {
107
+ G();
108
+ }), (e, t) => {
109
+ const i = p("el-input"), n = p("el-form-item"), c = p("el-option"), V = p("el-select"), m = p("el-switch"), O = p("vxe-color-picker"), b = p("el-button"), k = p("el-upload"), M = p("el-form"), Y = R("spinning");
110
+ return K((E(), H("div", ae, [
111
+ u("div", oe, [
112
+ a(M, {
113
+ ref_key: "xfrom",
114
+ ref: N,
115
+ model: l,
116
+ rules: P,
117
+ "label-width": "90",
118
+ size: "small",
119
+ "status-icon": "",
120
+ class: "w-full"
121
+ }, {
122
+ default: s(() => [
123
+ a(n, {
124
+ label: e.$t("message.udp.systemTitle"),
125
+ prop: "title"
126
+ }, {
127
+ default: s(() => [
128
+ a(i, {
129
+ modelValue: l.title,
130
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => l.title = o)
131
+ }, null, 8, ["modelValue"])
132
+ ]),
133
+ _: 1
134
+ }, 8, ["label"]),
135
+ a(n, {
136
+ label: e.$t("message.udp.copyright"),
137
+ prop: "copyright"
138
+ }, {
139
+ default: s(() => [
140
+ a(i, {
141
+ modelValue: l.copyright,
142
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => l.copyright = o)
143
+ }, null, 8, ["modelValue"])
144
+ ]),
145
+ _: 1
146
+ }, 8, ["label"]),
147
+ a(n, {
148
+ label: e.$t("message.udp.defaultLanguage"),
149
+ prop: "defaultLanguage"
150
+ }, {
151
+ default: s(() => [
152
+ a(V, {
153
+ modelValue: l.defaultLanguage,
154
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => l.defaultLanguage = o),
155
+ placeholder: "please select"
156
+ }, {
157
+ default: s(() => [
158
+ a(c, {
159
+ label: "中文",
160
+ value: "zh"
161
+ }),
162
+ a(c, {
163
+ label: "英文",
164
+ value: "en"
165
+ })
166
+ ]),
167
+ _: 1
168
+ }, 8, ["modelValue"])
169
+ ]),
170
+ _: 1
171
+ }, 8, ["label"]),
172
+ a(n, {
173
+ label: e.$t("message.udp.i18nEnabled"),
174
+ prop: "i18nEnabled"
175
+ }, {
176
+ default: s(() => [
177
+ a(m, {
178
+ modelValue: l.i18nEnabled,
179
+ "onUpdate:modelValue": t[3] || (t[3] = (o) => l.i18nEnabled = o),
180
+ "active-value": "Y",
181
+ "inactive-value": "N"
182
+ }, null, 8, ["modelValue"])
183
+ ]),
184
+ _: 1
185
+ }, 8, ["label"]),
186
+ a(n, {
187
+ label: e.$t("message.udp.orgTaggle"),
188
+ prop: "orgTaggle"
189
+ }, {
190
+ default: s(() => [
191
+ a(m, {
192
+ modelValue: l.orgTaggle,
193
+ "onUpdate:modelValue": t[4] || (t[4] = (o) => l.orgTaggle = o),
194
+ "active-value": "Y",
195
+ "inactive-value": "N"
196
+ }, null, 8, ["modelValue"])
197
+ ]),
198
+ _: 1
199
+ }, 8, ["label"]),
200
+ ["liwei", "yanhuaijun", "phr", "zhonglijun", "ccl"].includes(v(j).get(v(z))) ? (E(), B(n, {
201
+ key: 0,
202
+ label: e.$t("message.udp.techSupport"),
203
+ prop: "techSupport"
204
+ }, {
205
+ default: s(() => [
206
+ a(m, {
207
+ modelValue: l.techSupport,
208
+ "onUpdate:modelValue": t[5] || (t[5] = (o) => l.techSupport = o),
209
+ "active-value": "Y",
210
+ "inactive-value": "N"
211
+ }, null, 8, ["modelValue"])
212
+ ]),
213
+ _: 1
214
+ }, 8, ["label"])) : S("", !0),
215
+ ["liwei", "yanhuaijun", "phr", "zhonglijun", "ccl"].includes(v(j).get(v(z))) ? (E(), B(n, {
216
+ key: 1,
217
+ label: e.$t("message.udp.baseColor"),
218
+ prop: "baseColor"
219
+ }, {
220
+ default: s(() => [
221
+ a(O, {
222
+ modelValue: l.baseColor,
223
+ "onUpdate:modelValue": t[6] || (t[6] = (o) => l.baseColor = o),
224
+ colors: D,
225
+ type: "hex",
226
+ clearable: "",
227
+ transfer: ""
228
+ }, null, 8, ["modelValue"])
229
+ ]),
230
+ _: 1
231
+ }, 8, ["label"])) : S("", !0),
232
+ a(n, {
233
+ label: e.$t("message.udp.systemLogo")
234
+ }, {
235
+ default: s(() => [
236
+ a(k, {
237
+ "file-list": l.logo,
238
+ "onUpdate:fileList": t[7] || (t[7] = (o) => l.logo = o),
239
+ class: "u-upload",
240
+ action: f.value + "/ufil/file/uploadMultipart",
241
+ headers: h.value,
242
+ "on-exceed": C,
243
+ accept: ".png,.jpg,.jpeg,.PNG,.JPEG,.jPG",
244
+ "list-type": "picture",
245
+ limit: 1
246
+ }, {
247
+ default: s(() => [
248
+ u("div", se, [
249
+ a(b, { type: "primary" }, {
250
+ default: s(() => [
251
+ F(r(e.$t("message.btn.upload")), 1)
252
+ ]),
253
+ _: 1
254
+ }),
255
+ u("div", ne, [
256
+ u("span", null, r(e.$t("message.tip.uploadFormat", { type: ": *.png,*.jpg;" })), 1),
257
+ u("span", ie, r(e.$t("message.tip.imageSize", { size: ": 600 * 200" })), 1),
258
+ u("span", ue, r(e.$t("message.tip.imageCapacity", { capacity: ": <50kb" })), 1)
259
+ ])
260
+ ])
261
+ ]),
262
+ _: 1
263
+ }, 8, ["file-list", "action", "headers"])
264
+ ]),
265
+ _: 1
266
+ }, 8, ["label"]),
267
+ a(n, {
268
+ label: e.$t("message.udp.homeBackimg")
269
+ }, {
270
+ default: s(() => [
271
+ a(k, {
272
+ "file-list": l.backgroundImg,
273
+ "onUpdate:fileList": t[8] || (t[8] = (o) => l.backgroundImg = o),
274
+ class: "u-upload",
275
+ action: f.value + "/ufil/file/uploadMultipart",
276
+ headers: h.value,
277
+ "on-exceed": C,
278
+ accept: ".png,.jpg,.jpeg,.PNG,.JPEG,.jPG",
279
+ "list-type": "picture",
280
+ limit: 1
281
+ }, {
282
+ default: s(() => [
283
+ u("div", re, [
284
+ a(b, { type: "primary" }, {
285
+ default: s(() => [
286
+ F(r(e.$t("message.btn.upload")), 1)
287
+ ]),
288
+ _: 1
289
+ }),
290
+ u("div", pe, [
291
+ u("span", null, r(e.$t("message.tip.uploadFormat", { type: ": *.png,*.jpg;" })), 1),
292
+ u("span", de, r(e.$t("message.tip.imageSize", { size: ": 4096 * 2048" })), 1)
293
+ ])
294
+ ])
295
+ ]),
296
+ _: 1
297
+ }, 8, ["file-list", "action", "headers"])
298
+ ]),
299
+ _: 1
300
+ }, 8, ["label"]),
301
+ a(n, {
302
+ label: e.$t("message.udp.systemFavicon")
303
+ }, {
304
+ default: s(() => [
305
+ a(k, {
306
+ "file-list": l.favicon,
307
+ "onUpdate:fileList": t[9] || (t[9] = (o) => l.favicon = o),
308
+ class: "u-upload",
309
+ action: f.value + "/ufil/file/uploadMultipart",
310
+ headers: h.value,
311
+ "on-exceed": C,
312
+ accept: ".ico",
313
+ "list-type": "picture",
314
+ limit: 1
315
+ }, {
316
+ default: s(() => [
317
+ u("div", ce, [
318
+ a(b, { type: "primary" }, {
319
+ default: s(() => [
320
+ F(r(e.$t("message.btn.upload")), 1)
321
+ ]),
322
+ _: 1
323
+ }),
324
+ u("div", me, r(e.$t("message.tip.uploadFormat", { type: ": *.ico,.png*.jpg;" })), 1)
325
+ ])
326
+ ]),
327
+ _: 1
328
+ }, 8, ["file-list", "action", "headers"])
329
+ ]),
330
+ _: 1
331
+ }, 8, ["label"])
332
+ ]),
333
+ _: 1
334
+ }, 8, ["model", "rules"])
335
+ ]),
336
+ u("div", ge, [
337
+ a(b, {
338
+ type: "primary",
339
+ onClick: t[10] || (t[10] = (o) => I(N.value))
340
+ }, {
341
+ default: s(() => [
342
+ F(r(e.$t("message.btn.confirm")), 1)
343
+ ]),
344
+ _: 1
345
+ })
346
+ ])
347
+ ])), [
348
+ [Y, y.value]
349
+ ]);
350
+ };
351
+ }
352
+ });
353
+ export {
354
+ Ce as default
355
+ };