@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.21

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 (159) hide show
  1. package/build/plugins.ts +8 -1
  2. package/dist/{403-BBQoJwTM.js → 403-B_l9Q9w_.js} +1 -1
  3. package/dist/{404-BbJPSIWM.js → 404-33KZO3Vz.js} +1 -1
  4. package/dist/{500-BtFL9R4M.js → 500-oI74ZkQH.js} +1 -1
  5. package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-CNoxrmPS.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-CO01EWKQ.js +100 -0
  7. package/dist/{Company-CGqmslx-.js → Company-DOCRUvUs.js} +3 -3
  8. package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-Do2JlJ3U.js} +26 -26
  9. package/dist/{Department-BZyJtacc.js → Department-BAlx8Am2.js} +3 -3
  10. package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-BvQUkRaM.js} +25 -25
  11. package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-BMr-c76z.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-COERxrYp.js} +28 -30
  13. package/dist/DictView-DkG5lo6m.js +109 -0
  14. package/dist/InvOrganization-D_PuTpPt.js +74 -0
  15. package/dist/Org-CtVfZAjI.js +39 -0
  16. package/dist/{Preview-pHD84xqI.js → Preview-Cuj_akRk.js} +2 -2
  17. package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-CM2aNEVp.js} +1 -1
  18. package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-B1y79NKM.js} +43 -43
  19. package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-CZEfKCWP.js} +1 -1
  20. package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-C_cUB8bs.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBqJnvTQ.js} +1 -1
  22. package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-BprAuCb1.js} +28 -28
  23. package/dist/{Role-eFZoTpXc.js → Role-CAaLVGNy.js} +6 -6
  24. package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-DuFp2Ty7.js} +9 -9
  25. package/dist/{RolePanel-DlFw6HSf.js → RolePanel-BRStoO0e.js} +1 -1
  26. package/dist/{RolePanel-CoUOc3sX.js → RolePanel-FnyN7LiS.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CNIA7zdk.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-CS7drFhn.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-CEnqhlSE.js} +23 -23
  30. package/dist/{Staff-DFBLCsAd.js → Staff-D493jHwR.js} +3 -3
  31. package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-suU_pcyD.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-DV16a2Nz.js} +16 -16
  33. package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-BbYWu-xZ.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-CfRIanr5.js} +2 -2
  35. package/dist/{SysUser-BdZvYxQH.js → SysUser-YXOsIVpJ.js} +2 -2
  36. package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-C1tQzih_.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BfT40pDr.js +298 -0
  38. package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-DzKl8RAz.js} +33 -33
  39. package/dist/{UserInfo-DqXCRZts.js → UserInfo-CYeYQNq8.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-DYVdi2Ck.js} +41 -39
  41. package/dist/{childView-B2lSsqS3.js → childView-BNYdfnMx.js} +1 -1
  42. package/dist/{childView-DRUNqgjI.js → childView-C6rHVrT6.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-6o00J0a7.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-O_zWFjYY.js} +43 -43
  45. package/dist/{code-rule-DZC9T6cl.js → code-rule-MxcRbYZR.js} +13 -15
  46. package/dist/core.es.js +18 -10
  47. package/dist/{cron-task-BJwPeA5F.js → cron-task-B0yfTtm6.js} +11 -11
  48. package/dist/{frameView-C6wkvok-.js → frameView-DtHY5dLd.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/index-BWtOrjW2.js +4603 -0
  53. package/dist/{layoutView-CeJBpZb_.js → layoutView-D0Q7EG0u.js} +1564 -1559
  54. package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
  55. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  56. package/dist/login-CuO8YgN1.js +249 -0
  57. package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
  58. package/dist/{lov-view-DRF-99U4.js → lov-view-DcRVGqsD.js} +5 -5
  59. package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-ccOqhCC8.js} +1 -1
  60. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-DTBPgTe_.js} +34 -32
  61. package/dist/{pda-app-B9tn7jdv.js → pda-app-D7n4oxyn.js} +202 -188
  62. package/dist/{resource-BqnxbQNe.js → resource-_h2OtsKS.js} +18 -18
  63. package/dist/{su-welcome-VwifUK_O.js → su-welcome-Co6e4akE.js} +118 -120
  64. package/dist/sys-config-C6Es9vZl.js +355 -0
  65. package/dist/udp-core.css +1 -9
  66. package/dist/utogether-MlnyYtNS.js +4 -0
  67. package/index.ts +17 -5
  68. package/package.json +1 -1
  69. package/src/App.vue +2 -7
  70. package/src/api/http.ts +1 -4
  71. package/src/api/index.ts +5 -3
  72. package/src/api/user.ts +2 -2
  73. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  74. package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
  75. package/src/components/udp/form/form.vue +109 -0
  76. package/src/components/udp/grid/index.vue +509 -0
  77. package/src/components/udp/index.ts +4 -4
  78. package/src/components/udp/utils.ts +405 -40
  79. package/src/directives/permission/index.ts +1 -1
  80. package/src/layout/components/lay-navbar/index.vue +9 -7
  81. package/src/layout/components/lay-panel/index.vue +3 -3
  82. package/src/layout/components/lay-search/index.vue +1 -1
  83. package/src/layout/components/lay-select-org/index.vue +4 -9
  84. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  85. package/src/layout/components/lay-sidebar/horizontal.vue +4 -5
  86. package/src/layout/components/lay-sidebar/mixNav.vue +6 -4
  87. package/src/layout/components/lay-sidebar/sidebar-logo.vue +94 -98
  88. package/src/layout/components/lay-tag/index.vue +596 -625
  89. package/src/layout/hooks/useTag.ts +223 -233
  90. package/src/layout/layoutView.vue +215 -215
  91. package/src/layout/types.ts +3 -2
  92. package/src/main.ts +39 -31
  93. package/src/plugins/i18n/en.ts +26 -13
  94. package/src/plugins/i18n/zh.ts +35 -16
  95. package/src/plugins/vxe-table/index.ts +65 -2
  96. package/src/plugins/vxe-table/render.tsx +945 -817
  97. package/src/router/index.ts +186 -183
  98. package/src/router/modules/remaining.ts +1 -26
  99. package/src/router/utils.ts +393 -377
  100. package/src/store/modules/app.ts +1 -3
  101. package/src/store/modules/multiTags.ts +110 -109
  102. package/src/store/modules/permission.ts +113 -103
  103. package/src/store/modules/system.ts +1 -3
  104. package/src/style/button.scss +10 -3
  105. package/src/style/login.css +1 -1
  106. package/src/style/tailwind.css +1 -68
  107. package/src/style/vxetable.scss +348 -256
  108. package/src/utils/authority/index.ts +1 -1
  109. package/src/utils/index.ts +3 -1
  110. package/src/utils/propTypes.ts +1 -6
  111. package/src/views/login/login-view.vue +6 -20
  112. package/src/views/organization/company/CompanyPanel.vue +2 -2
  113. package/src/views/organization/department/DepartmentPanel.vue +269 -283
  114. package/src/views/organization/inv-org/InvOrganization.vue +23 -9
  115. package/src/views/organization/org/Org.vue +9 -5
  116. package/src/views/system/menu/SystemMenu.vue +183 -197
  117. package/src/views/system/menu/menuInfo.vue +8 -18
  118. package/src/views/system/role/AuthorityInfo.vue +19 -15
  119. package/src/views/system/role/Role.vue +1 -5
  120. package/src/views/system/role/RolePanel.vue +11 -2
  121. package/src/views/system/role/UserInfo.vue +11 -9
  122. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  123. package/src/views/system/role-assign/RolePanel.vue +12 -9
  124. package/src/views/system/sys/sys-config.vue +66 -21
  125. package/src/views/system/sysUser/SysUserPanel.vue +44 -43
  126. package/src/views/uapp/pda/pda-app.vue +48 -16
  127. package/src/views/udev/coderule/code-rule.vue +120 -121
  128. package/src/views/udev/dict/DictView.vue +16 -4
  129. package/src/views/udev/dict/childView.vue +8 -8
  130. package/src/views/ufile/aggregation/File.vue +5 -5
  131. package/src/views/ufile/file/water-mark.vue +14 -14
  132. package/src/views/uhome/components/menu-favorite.vue +314 -331
  133. package/src/views/uhome/su-welcome.vue +3 -3
  134. package/src/views/ulogin/login.vue +19 -12
  135. package/src/views/upms/interface/log-in.vue +100 -106
  136. package/src/views/upms/interface/log-out.vue +2 -8
  137. package/src/views/upms/user/login-log.vue +54 -60
  138. package/src/views/urpt/design/DesignPanel.vue +16 -35
  139. package/src/views/urpt/design/Preview.vue +1 -0
  140. package/src/views/urpt/design/ReportDesign.vue +17 -23
  141. package/src/views/urpt/static-resource/resource.vue +3 -3
  142. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  143. package/types/global.d.ts +4 -9
  144. package/vite.config.ts +6 -2
  145. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js +0 -102
  146. package/dist/DictView-B4a7Hs1X.js +0 -95
  147. package/dist/InvOrganization-q4T3y8dQ.js +0 -260
  148. package/dist/Org-BTGTrAVz.js +0 -35
  149. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js +0 -126
  150. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js +0 -288
  151. package/dist/index-DZc3qRTx.js +0 -2650
  152. package/dist/login-BOxwzwdB.js +0 -252
  153. package/dist/sys-config-C0-gSBFO.js +0 -277
  154. package/dist/utogether-Di1byIum.js +0 -182
  155. package/src/components/udp/form-upload.vue +0 -183
  156. package/src/components/udp/modal-form.vue +0 -180
  157. package/src/utils/http/index.ts +0 -297
  158. package/src/utils/http/types.d.ts +0 -46
  159. package/src/utils/udp/useRender.ts +0 -420
@@ -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-BWtOrjW2.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
+ };