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

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 (74) hide show
  1. package/dist/{403-pRpb9luy.js → 403-DpJevH-h.js} +1 -1
  2. package/dist/{404-Bsowhpja.js → 404-BpqJK3YD.js} +1 -1
  3. package/dist/{500-DZuJN9lQ.js → 500-DyvRbMD_.js} +1 -1
  4. package/dist/{AuthorityInfo-DsSMdxQ1.js → AuthorityInfo-Cyu4XHXx.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DCRZ7hKU.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BxmnEEFq.js} +1 -1
  6. package/dist/{Company-JFHxazkc.js → Company-BLygcYrI.js} +3 -3
  7. package/dist/{CompanyPanel-Bt-5OX8x.js → CompanyPanel-D5Tgw6LF.js} +1 -1
  8. package/dist/{Department-B1bTl93X.js → Department-qI9OninZ.js} +3 -3
  9. package/dist/{DepartmentPanel-CVIvI8sf.js → DepartmentPanel-P-P8fPZQ.js} +1 -1
  10. package/dist/{DesignPanel-snVLq3Gi.js → DesignPanel-BxjD0AZi.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Cvb54DDl.js → DesignPanel.vue_vue_type_style_index_0_lang-DN_OKxCu.js} +2 -2
  12. package/dist/{DictView-OoNA8vMb.js → DictView-PWL_Vf0T.js} +1 -1
  13. package/dist/{InvOrganization-CINznAuo.js → InvOrganization-JXBXyn3G.js} +1 -1
  14. package/dist/{Org-BA3ZHIpa.js → Org-DcTJn6YQ.js} +1 -1
  15. package/dist/{Preview-C9rFs95x.js → Preview-IKvbHI8a.js} +2 -2
  16. package/dist/{ReportDefine-D2CXXxZp.js → ReportDefine-_G7ts7Ch.js} +1 -1
  17. package/dist/{ReportDesign-DWmFLxO_.js → ReportDesign-7h5oFklh.js} +3 -3
  18. package/dist/{ReportQuery-BBMEls-l.js → ReportQuery-dj0BQUyi.js} +1 -1
  19. package/dist/{ReportQueryFrom-CIeGY6UD.js → ReportQueryFrom-6WaZPg9i.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-qtLKZPIW.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-ChhcBPqa.js} +1 -1
  21. package/dist/{ReportTemplate-CWxGNxLg.js → ReportTemplate-DIvJ3RrB.js} +1 -1
  22. package/dist/{Role-CF93718B.js → Role-ia_3qAZU.js} +3 -3
  23. package/dist/{RoleAssign-BjoNSr6O.js → RoleAssign-D0zVl4y3.js} +3 -3
  24. package/dist/{RolePanel-qBGK6Ilt.js → RolePanel-BiGGmP2w.js} +1 -1
  25. package/dist/{RolePanel-DmQaKkm5.js → RolePanel-CQxOiAzj.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BeNdAkYp.js → RolePanel.vue_vue_type_script_setup_true_lang-BYDLRS_x.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DdK59XHp.js → RolePanel.vue_vue_type_script_setup_true_lang-Dwv5LFbf.js} +3 -3
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-LU6W_QVY.js → ScrollPanel.vue_vue_type_style_index_0_lang-gPP4duO8.js} +1 -1
  29. package/dist/{Staff-BrjfdZU2.js → Staff-Bf_oUqF6.js} +3 -3
  30. package/dist/{StaffInfo-DYmftNDC.js → StaffInfo-D5aisjx2.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DVLhL8tz.js → StaffInfo.vue_vue_type_script_setup_true_lang-6PX7Bx6A.js} +1 -1
  32. package/dist/{StaffPanel-DJERIwT_.js → StaffPanel--zKzd4rt.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-BWZSIFpq.js} +2 -2
  34. package/dist/{SysUser-WO0whf-F.js → SysUser-BelbESLR.js} +2 -2
  35. package/dist/{SysUserPanel-C64mSt4O.js → SysUserPanel-BixKqQcA.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B19FuxOZ.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BhaWZEfo.js} +1 -1
  37. package/dist/{SystemMenu-CY1EDfzl.js → SystemMenu-D40tzcSj.js} +2 -2
  38. package/dist/{UserInfo-DWXmMOD1.js → UserInfo-DTyk071j.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-pjHVXRtK.js → UserInfo.vue_vue_type_style_index_0_lang-p9MByikC.js} +1 -1
  40. package/dist/{childView-CMBPpTyj.js → childView-so5qSxr0.js} +1 -1
  41. package/dist/{childView-Czd4yk_A.js → childView-xL3iE1yN.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-CaMQbFZm.js → childView.vue_vue_type_style_index_0_lang-CKcXpSqa.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-C9wXL52o.js → childView.vue_vue_type_style_index_0_lang-DK1ei5uM.js} +1 -1
  44. package/dist/{code-rule-kHfdPgGA.js → code-rule-DC35y76w.js} +1 -1
  45. package/dist/core.es.js +1 -1
  46. package/dist/{cron-task-D1bbdvVP.js → cron-task-BhjQ4S68.js} +1 -1
  47. package/dist/{frameView-B5JStsSt.js → frameView-G_zhG9pf.js} +1 -1
  48. package/dist/{index-Ce51XQgg.js → index-C6ehxLLO.js} +52 -49
  49. package/dist/{layoutView-DR39l27s.js → layoutView-CO2U8qCQ.js} +2 -2
  50. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  51. package/dist/{login-d5LMP32l.js → login-DzyK2soP.js} +146 -121
  52. package/dist/{lov-view-wdnYE7wy.js → lov-view-Cr929NMD.js} +2 -2
  53. package/dist/{menuInfo-D0746839.js → menuInfo-BWuROp7u.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-9nouHUjO.js} +1 -1
  55. package/dist/{pda-app-zzzZfBj5.js → pda-app-CQP1sMAI.js} +3 -3
  56. package/dist/{resource-B7wnjBVW.js → resource-BDQLrMpK.js} +1 -1
  57. package/dist/{su-welcome-CeajjyWS.js → su-welcome-CZysrZQ1.js} +1 -1
  58. package/dist/sys-config-BiGNMYSA.js +355 -0
  59. package/dist/udp-core.css +2 -2
  60. package/dist/{utogether-B_dUqXea.js → utogether-BRirriOz.js} +1 -1
  61. package/package.json +18 -18
  62. package/src/components/udp/form.vue +2 -2
  63. package/src/components/udp/utils.ts +11 -7
  64. package/src/plugins/i18n/zh.ts +6 -1
  65. package/src/store/modules/system.ts +1 -3
  66. package/src/style/vxetable.scss +19 -0
  67. package/src/views/system/sys/sys-config.vue +50 -1
  68. package/src/views/uapp/pda/pda-app.vue +1 -1
  69. package/src/views/udev/dict/DictView.vue +1 -1
  70. package/src/views/ulogin/login.vue +4 -2
  71. package/src/views/upms/interface/log-out.vue +101 -107
  72. package/src/views/urpt/design/Preview.vue +1 -0
  73. package/src/views/urpt/design/ReportDesign.vue +2 -4
  74. package/dist/sys-config-CpfSg66g.js +0 -290
@@ -1,290 +0,0 @@
1
- import { defineComponent as G, ref as k, reactive as E, computed as M, onMounted as O, resolveComponent as g, resolveDirective as S, withDirectives as q, createElementBlock as A, openBlock as B, createElementVNode as u, createVNode as l, withCtx as s, createTextVNode as b, toDisplayString as d } from "vue";
2
- import { useI18n as F } from "vue-i18n";
3
- import { t as U } from "./await-to-js.es5-BtRbN2QH.js";
4
- import { cookies as x, successMessage as J, warnMessage as Y } from "@utogether/utils";
5
- import { isArray as K } from "xe-utils";
6
- import { x as R, m as H, q as Q } from "./index-Ce51XQgg.js";
7
- const W = { class: "flex flex-col items-center pt-20 bg-white u-system-config" }, X = { class: "flex w-1/2 p-3 overflow-y-auto border border-gray-300 rounded-md" }, Z = { class: "flex items-center" }, ee = { class: "pl-2 text-xs" }, te = { class: "pl-2" }, ae = { class: "pl-2" }, le = { class: "flex items-center" }, se = { class: "pl-2 text-xs" }, oe = { class: "pl-2" }, ne = { class: "flex items-center" }, ie = { class: "pl-2 text-xs" }, ue = { class: "flex justify-end w-1/2 p-2" }, L = "/upfm/v1/sysConfig", ve = /* @__PURE__ */ G({
8
- __name: "sys-config",
9
- setup(de) {
10
- const C = k(), y = k(!1), a = E({
11
- defaultLanguage: "zh",
12
- title: "U-DP",
13
- ispTitle: "U-DP",
14
- i18nEnabled: "N",
15
- orgTaggle: "Y",
16
- copyright: "深圳友聚信息技术有限公司",
17
- logo: [],
18
- backgroundImg: [],
19
- favicon: []
20
- }), _ = Q(), { t: c } = F(), f = k(R());
21
- let r = [];
22
- const T = E({
23
- defaultLanguage: [
24
- {
25
- required: !0,
26
- message: c("message.required") + c("message.udp.defaultLanguage"),
27
- trigger: "blur"
28
- }
29
- ],
30
- title: [{ required: !0, message: c("message.required") + c("message.udp.systemTitle"), trigger: "blur" }]
31
- }), h = M(() => {
32
- const e = x.get(H);
33
- return {
34
- Authorization: "Bearer " + JSON.parse(e).accessToken
35
- };
36
- }), P = (e) => {
37
- Object.keys(a).forEach((t) => {
38
- const o = {
39
- configCode: t,
40
- configValue: a[t],
41
- configCategory: "system",
42
- fileName: ""
43
- };
44
- K(a[t]) && (o.configValue = N(a[t][0]).url, o.fileName = N(a[t][0]).name);
45
- const n = r.findIndex((p) => p.configCode === t);
46
- n !== -1 ? r[n] = Object.assign(r[n], o) : r.push(o);
47
- }), e == null || e.validate(async (t) => {
48
- if (t) {
49
- y.value = !0;
50
- const o = r.filter((m) => !m.id), n = r.filter((m) => m.id), p = [];
51
- o.length ? p.push(_.post(L, o)) : p.push(_.put(L, n));
52
- const [$] = await U(Promise.all(p));
53
- $ || (J(), w()), y.value = !1;
54
- }
55
- });
56
- }, 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 }, V = (e) => {
57
- if (e)
58
- return Y(c("message.tip.singleImg"));
59
- }, w = () => {
60
- Object.keys(a).forEach((e) => {
61
- const t = r.find((o) => o.configCode === e);
62
- if (t && (a[t.configCode] = t.configValue || a[t.configCode], t.fileName)) {
63
- const { configValue: o, fileName: n } = t;
64
- a[t.configCode] = [
65
- { url: f.value + "/ufil" + o, realpath: o, name: n }
66
- ];
67
- }
68
- });
69
- }, z = async () => {
70
- const [e, t] = await U(_.get(L, {}));
71
- e || (r = t.list), w();
72
- };
73
- return O(() => {
74
- z();
75
- }), (e, t) => {
76
- const o = g("el-input"), n = g("el-form-item"), p = g("el-option"), $ = g("el-select"), m = g("el-switch"), v = g("el-button"), j = g("el-upload"), I = g("el-form"), D = S("spinning");
77
- return q((B(), A("div", W, [
78
- u("div", X, [
79
- l(I, {
80
- ref_key: "xfrom",
81
- ref: C,
82
- model: a,
83
- rules: T,
84
- "label-width": "90",
85
- size: "small",
86
- "status-icon": "",
87
- class: "w-full"
88
- }, {
89
- default: s(() => [
90
- l(n, {
91
- label: e.$t("message.udp.systemTitle"),
92
- prop: "title"
93
- }, {
94
- default: s(() => [
95
- l(o, {
96
- modelValue: a.title,
97
- "onUpdate:modelValue": t[0] || (t[0] = (i) => a.title = i)
98
- }, null, 8, ["modelValue"])
99
- ]),
100
- _: 1
101
- }, 8, ["label"]),
102
- l(n, {
103
- label: e.$t("message.udp.copyright"),
104
- prop: "copyright"
105
- }, {
106
- default: s(() => [
107
- l(o, {
108
- modelValue: a.copyright,
109
- "onUpdate:modelValue": t[1] || (t[1] = (i) => a.copyright = i)
110
- }, null, 8, ["modelValue"])
111
- ]),
112
- _: 1
113
- }, 8, ["label"]),
114
- l(n, {
115
- label: e.$t("message.udp.defaultLanguage"),
116
- prop: "defaultLanguage"
117
- }, {
118
- default: s(() => [
119
- l($, {
120
- modelValue: a.defaultLanguage,
121
- "onUpdate:modelValue": t[2] || (t[2] = (i) => a.defaultLanguage = i),
122
- placeholder: "please select"
123
- }, {
124
- default: s(() => [
125
- l(p, {
126
- label: "中文",
127
- value: "zh"
128
- }),
129
- l(p, {
130
- label: "英文",
131
- value: "en"
132
- })
133
- ]),
134
- _: 1
135
- }, 8, ["modelValue"])
136
- ]),
137
- _: 1
138
- }, 8, ["label"]),
139
- l(n, {
140
- label: e.$t("message.udp.i18nEnabled"),
141
- prop: "i18nEnabled"
142
- }, {
143
- default: s(() => [
144
- l(m, {
145
- modelValue: a.i18nEnabled,
146
- "onUpdate:modelValue": t[3] || (t[3] = (i) => a.i18nEnabled = i),
147
- "active-value": "Y",
148
- "inactive-value": "N"
149
- }, null, 8, ["modelValue"])
150
- ]),
151
- _: 1
152
- }, 8, ["label"]),
153
- l(n, {
154
- label: e.$t("message.udp.orgTaggle"),
155
- prop: "orgTaggle"
156
- }, {
157
- default: s(() => [
158
- l(m, {
159
- modelValue: a.orgTaggle,
160
- "onUpdate:modelValue": t[4] || (t[4] = (i) => a.orgTaggle = i),
161
- "active-value": "Y",
162
- "inactive-value": "N"
163
- }, null, 8, ["modelValue"])
164
- ]),
165
- _: 1
166
- }, 8, ["label"]),
167
- l(n, {
168
- label: e.$t("message.udp.systemLogo")
169
- }, {
170
- default: s(() => [
171
- l(j, {
172
- "file-list": a.logo,
173
- "onUpdate:fileList": t[5] || (t[5] = (i) => a.logo = i),
174
- class: "u-upload",
175
- action: f.value + "/ufil/file/uploadMultipart",
176
- headers: h.value,
177
- "on-exceed": V,
178
- accept: ".png,.jpg,.jpeg,.PNG,.JPEG,.jPG",
179
- "list-type": "picture",
180
- limit: 1
181
- }, {
182
- default: s(() => [
183
- u("div", Z, [
184
- l(v, { type: "primary" }, {
185
- default: s(() => [
186
- b(d(e.$t("message.btn.upload")), 1)
187
- ]),
188
- _: 1
189
- }),
190
- u("div", ee, [
191
- u("span", null, d(e.$t("message.tip.uploadFormat", { type: ": *.png,*.jpg;" })), 1),
192
- u("span", te, d(e.$t("message.tip.imageSize", { size: ": 600 * 200" })), 1),
193
- u("span", ae, d(e.$t("message.tip.imageCapacity", { capacity: ": <50kb" })), 1)
194
- ])
195
- ])
196
- ]),
197
- _: 1
198
- }, 8, ["file-list", "action", "headers"])
199
- ]),
200
- _: 1
201
- }, 8, ["label"]),
202
- l(n, {
203
- label: e.$t("message.udp.homeBackimg")
204
- }, {
205
- default: s(() => [
206
- l(j, {
207
- "file-list": a.backgroundImg,
208
- "onUpdate:fileList": t[6] || (t[6] = (i) => a.backgroundImg = i),
209
- class: "u-upload",
210
- action: f.value + "/ufil/file/uploadMultipart",
211
- headers: h.value,
212
- "on-exceed": V,
213
- accept: ".png,.jpg,.jpeg,.PNG,.JPEG,.jPG",
214
- "list-type": "picture",
215
- limit: 1
216
- }, {
217
- default: s(() => [
218
- u("div", le, [
219
- l(v, { type: "primary" }, {
220
- default: s(() => [
221
- b(d(e.$t("message.btn.upload")), 1)
222
- ]),
223
- _: 1
224
- }),
225
- u("div", se, [
226
- u("span", null, d(e.$t("message.tip.uploadFormat", { type: ": *.png,*.jpg;" })), 1),
227
- u("span", oe, d(e.$t("message.tip.imageSize", { size: ": 4096 * 2048" })), 1)
228
- ])
229
- ])
230
- ]),
231
- _: 1
232
- }, 8, ["file-list", "action", "headers"])
233
- ]),
234
- _: 1
235
- }, 8, ["label"]),
236
- l(n, {
237
- label: e.$t("message.udp.systemFavicon")
238
- }, {
239
- default: s(() => [
240
- l(j, {
241
- "file-list": a.favicon,
242
- "onUpdate:fileList": t[7] || (t[7] = (i) => a.favicon = i),
243
- class: "u-upload",
244
- action: f.value + "/ufil/file/uploadMultipart",
245
- headers: h.value,
246
- "on-exceed": V,
247
- accept: ".ico",
248
- "list-type": "picture",
249
- limit: 1
250
- }, {
251
- default: s(() => [
252
- u("div", ne, [
253
- l(v, { type: "primary" }, {
254
- default: s(() => [
255
- b(d(e.$t("message.btn.upload")), 1)
256
- ]),
257
- _: 1
258
- }),
259
- u("div", ie, d(e.$t("message.tip.uploadFormat", { type: ": *.ico,.png*.jpg;" })), 1)
260
- ])
261
- ]),
262
- _: 1
263
- }, 8, ["file-list", "action", "headers"])
264
- ]),
265
- _: 1
266
- }, 8, ["label"])
267
- ]),
268
- _: 1
269
- }, 8, ["model", "rules"])
270
- ]),
271
- u("div", ue, [
272
- l(v, {
273
- type: "primary",
274
- onClick: t[8] || (t[8] = (i) => P(C.value))
275
- }, {
276
- default: s(() => [
277
- b(d(e.$t("message.btn.confirm")), 1)
278
- ]),
279
- _: 1
280
- })
281
- ])
282
- ])), [
283
- [D, y.value]
284
- ]);
285
- };
286
- }
287
- });
288
- export {
289
- ve as default
290
- };