@utogether/udp-core 1.0.1-beta.10 → 1.0.1-beta.12
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.
- package/dist/{403-Ctxjn4q8.js → 403-D7L5zm05.js} +1 -1
- package/dist/{404-W5yzyiZ9.js → 404-BQKzkK5W.js} +1 -1
- package/dist/{500-DXuGEOm4.js → 500-BM6k8XR5.js} +1 -1
- package/dist/{AuthorityInfo-C2tflCt8.js → AuthorityInfo-Dc-7W4L_.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js → AuthorityInfo.vue_vue_type_style_index_0_lang-CKvlh3lm.js} +1 -1
- package/dist/{Company-PLez5GoH.js → Company-BgwMUr-I.js} +3 -3
- package/dist/{CompanyPanel-CIGaQooL.js → CompanyPanel-CDfVCPKC.js} +1 -1
- package/dist/{Department-B9wLsXFm.js → Department-CFvEB4Ys.js} +3 -3
- package/dist/{DepartmentPanel-DSM4lTaz.js → DepartmentPanel-11Ytcj2u.js} +1 -1
- package/dist/{DesignPanel-B6a9wW_A.js → DesignPanel-CP8z6teZ.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js → DesignPanel.vue_vue_type_style_index_0_lang-Cp-WR8yE.js} +2 -2
- package/dist/{DictView-DhFbQxdJ.js → DictView-13NoDgPW.js} +1 -1
- package/dist/InvOrganization-DOD4QdEX.js +72 -0
- package/dist/{Org-DxBkYabD.js → Org-cezJs-6P.js} +1 -1
- package/dist/{Preview-BFtRpBxw.js → Preview-DzOKwnp8.js} +1 -1
- package/dist/{ReportDefine-BIa2QryC.js → ReportDefine-DWJq2q0f.js} +1 -1
- package/dist/{ReportDesign-CnyjI-WD.js → ReportDesign-f_ed8u_q.js} +2 -2
- package/dist/{ReportQuery-BiK7yEhV.js → ReportQuery-D58gv_yZ.js} +1 -1
- package/dist/{ReportQueryFrom-C2rqdFTm.js → ReportQueryFrom-R0R6EbYv.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CIFpgUAH.js} +1 -1
- package/dist/{ReportTemplate-DdkLscP3.js → ReportTemplate-BTknctTT.js} +1 -1
- package/dist/{Role-BrsxgK8D.js → Role-QTDJ16h8.js} +3 -3
- package/dist/{RoleAssign-DiqwJqDa.js → RoleAssign-7aZ3ufp5.js} +3 -3
- package/dist/{RolePanel-Dqx5dI3f.js → RolePanel-CSe-UoR5.js} +1 -1
- package/dist/{RolePanel-BDusGyo7.js → RolePanel-XXwmaAgy.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js → RolePanel.vue_vue_type_script_setup_true_lang-BsNhkvFo.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js → RolePanel.vue_vue_type_script_setup_true_lang-kConrKpo.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js → ScrollPanel.vue_vue_type_style_index_0_lang-DtaqM_iA.js} +1 -1
- package/dist/{Staff-Cwi9LQiZ.js → Staff-BsREgfrQ.js} +3 -3
- package/dist/{StaffInfo-XjVtyaMv.js → StaffInfo-CQtVXfvS.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js → StaffInfo.vue_vue_type_script_setup_true_lang-BRRtcGIH.js} +1 -1
- package/dist/{StaffPanel-C-wYcFdv.js → StaffPanel-cQTAulcP.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js → StaffPanel.vue_vue_type_script_setup_true_lang-BLeXlrI1.js} +2 -2
- package/dist/{SysUser-O4tvr-Ur.js → SysUser-DN5_46io.js} +2 -2
- package/dist/{SysUserPanel-B853docZ.js → SysUserPanel-DTBNR42y.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CF2pHcPP.js} +1 -1
- package/dist/{SystemMenu-CXR6mrXr.js → SystemMenu-D9TKZwgb.js} +2 -2
- package/dist/{UserInfo-BkP8pE2a.js → UserInfo-DJ5LRTMe.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js → UserInfo.vue_vue_type_style_index_0_lang-CIpPef_S.js} +1 -1
- package/dist/{childView-D0HwbgDT.js → childView-CGZSd19y.js} +1 -1
- package/dist/{childView-TRqUkSDC.js → childView-DrL_Qi-q.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js → childView.vue_vue_type_style_index_0_lang-B8wEeuFX.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js → childView.vue_vue_type_style_index_0_lang-D2AzjPNV.js} +1 -1
- package/dist/{code-rule-BV7PQWhK.js → code-rule-DVEoh1Z4.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-9ZS9bi7K.js → cron-task-BBpccUV_.js} +1 -1
- package/dist/{frameView-DE83AN50.js → frameView-Cw6_EqfJ.js} +1 -1
- package/dist/index-BAkwQh8m.js +4467 -0
- package/dist/{layoutView-D1U-c4By.js → layoutView-CL2Ef3bw.js} +1187 -1183
- package/dist/{login-sPCEiTGT.js → login-BDocwo7t.js} +115 -108
- package/dist/{lov-view-76NcYTYl.js → lov-view-R8nnUEbA.js} +2 -2
- package/dist/{menuInfo-CxjfjFpm.js → menuInfo-B-nGOcSv.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js → menuInfo.vue_vue_type_style_index_0_lang-1VuzxMb0.js} +1 -1
- package/dist/{pda-app-BUH16bLj.js → pda-app-D5wBClj0.js} +1 -1
- package/dist/{resource-CCuHzoA6.js → resource-BXGSsXzw.js} +1 -1
- package/dist/{su-welcome-mRArONsd.js → su-welcome-DISZAkBB.js} +1 -1
- package/dist/sys-config-DuyYdzXL.js +290 -0
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-Dm_VBQHR.js → utogether-C2KGHvut.js} +1 -1
- package/package.json +18 -18
- package/src/api/index.ts +31 -31
- package/src/components/udp/form.vue +2 -2
- package/src/components/udp/modal-form.vue +2 -1
- package/src/components/udp/modal-grid.vue +11 -1
- package/src/layout/components/lay-navbar/index.vue +239 -237
- package/src/layout/components/lay-search/index.vue +1 -1
- package/src/layout/components/lay-select-org/index.vue +64 -69
- package/src/layout/components/lay-sidebar/horizontal.vue +190 -191
- package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +92 -98
- package/src/layout/hooks/useNav.ts +173 -173
- package/src/main.ts +119 -119
- package/src/plugins/i18n/zh.ts +1 -0
- package/src/router/index.ts +3 -13
- package/src/store/modules/permission.ts +1 -4
- package/src/utils/propTypes.ts +42 -47
- package/src/utils/udp/http/index.ts +283 -281
- package/src/views/login/login-view.vue +300 -314
- package/src/views/organization/inv-org/InvOrganization.vue +68 -53
- package/src/views/system/sys/sys-config.vue +287 -291
- package/src/views/ulogin/login.vue +3 -4
- package/dist/InvOrganization-D90AbR3b.js +0 -66
- package/dist/index-DVARtten.js +0 -2623
- package/dist/sys-config-Cvt05yF6.js +0 -277
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, ref as j, reactive as E, computed as O, onMounted as S, resolveComponent as c, resolveDirective as T, withDirectives as q, createElementBlock as x, openBlock as A, createElementVNode as u, createVNode as a, withCtx as o, createTextVNode as v, toDisplayString as p } from "vue";
|
|
2
|
-
import { useI18n as B } from "vue-i18n";
|
|
3
|
-
import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
import { cookies as F, successMessage as J, warnMessage as K } from "@utogether/utils";
|
|
5
|
-
import { isArray as R } from "xe-utils";
|
|
6
|
-
import { x as Y, m as H, q as Q } from "./index-DVARtten.js";
|
|
7
|
-
const W = { class: "flex flex-col items-center bg-white u-system-config" }, X = { class: "flex justify-end w-1/2 p-2" }, Z = { class: "flex w-1/2 p-2 overflow-y-auto border border-gray-300 rounded-md" }, ee = { class: "flex items-center" }, te = { class: "pl-2 text-xs" }, se = { class: "pl-2" }, ae = { class: "pl-2" }, le = { class: "flex items-center" }, oe = { class: "pl-2 text-xs" }, ne = { class: "pl-2" }, ie = { class: "flex items-center" }, ue = { class: "pl-2 text-xs" }, k = "/upfm/v1/sysConfig", be = /* @__PURE__ */ M({
|
|
8
|
-
__name: "sys-config",
|
|
9
|
-
setup(de) {
|
|
10
|
-
const L = j(), _ = j(!1), s = E({
|
|
11
|
-
defaultLanguage: "zh",
|
|
12
|
-
title: "U-DP",
|
|
13
|
-
ispTitle: "U-DP",
|
|
14
|
-
i18nEnabled: "N",
|
|
15
|
-
copyright: "深圳友聚信息技术有限公司",
|
|
16
|
-
logo: [],
|
|
17
|
-
backgroundImg: [],
|
|
18
|
-
favicon: []
|
|
19
|
-
}), y = Q(), { t: m } = B(), f = j(Y());
|
|
20
|
-
let r = [];
|
|
21
|
-
const U = E({
|
|
22
|
-
defaultLanguage: [
|
|
23
|
-
{
|
|
24
|
-
required: !0,
|
|
25
|
-
message: m("message.required") + m("message.udp.defaultLanguage"),
|
|
26
|
-
trigger: "blur"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
title: [
|
|
30
|
-
{ required: !0, message: m("message.required") + m("message.udp.systemTitle"), trigger: "blur" }
|
|
31
|
-
]
|
|
32
|
-
}), h = O(() => {
|
|
33
|
-
const e = F.get(H);
|
|
34
|
-
return {
|
|
35
|
-
Authorization: "Bearer " + JSON.parse(e).accessToken
|
|
36
|
-
};
|
|
37
|
-
}), P = (e) => {
|
|
38
|
-
Object.keys(s).forEach((t) => {
|
|
39
|
-
const l = {
|
|
40
|
-
configCode: t,
|
|
41
|
-
configValue: s[t],
|
|
42
|
-
configCategory: "system",
|
|
43
|
-
fileName: ""
|
|
44
|
-
};
|
|
45
|
-
R(s[t]) && (l.configValue = C(s[t][0]).url, l.fileName = C(s[t][0]).name);
|
|
46
|
-
const d = r.findIndex((i) => i.configCode === t);
|
|
47
|
-
d !== -1 ? r[d] = Object.assign(r[d], l) : r.push(l);
|
|
48
|
-
}), e == null || e.validate(async (t) => {
|
|
49
|
-
if (t) {
|
|
50
|
-
_.value = !0;
|
|
51
|
-
const l = r.filter((g) => !g.id), d = r.filter((g) => g.id), i = [];
|
|
52
|
-
l.length ? i.push(y.post(k, l)) : i.push(y.put(k, d));
|
|
53
|
-
const [b] = await N(Promise.all(i));
|
|
54
|
-
b || (J(), w()), _.value = !1;
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}, C = (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) => {
|
|
58
|
-
if (e)
|
|
59
|
-
return K(m("message.tip.singleImg"));
|
|
60
|
-
}, w = () => {
|
|
61
|
-
Object.keys(s).forEach((e) => {
|
|
62
|
-
const t = r.find((l) => l.configCode === e);
|
|
63
|
-
if (t && (s[t.configCode] = t.configValue || s[t.configCode], t.fileName)) {
|
|
64
|
-
const { configValue: l, fileName: d } = t;
|
|
65
|
-
s[t.configCode] = [
|
|
66
|
-
{ url: f.value + "/ufil" + l, realpath: l, name: d }
|
|
67
|
-
];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}, z = async () => {
|
|
71
|
-
const [e, t] = await N(y.get(k, {}));
|
|
72
|
-
e || (r = t.list), w();
|
|
73
|
-
};
|
|
74
|
-
return S(() => {
|
|
75
|
-
z();
|
|
76
|
-
}), (e, t) => {
|
|
77
|
-
const l = c("el-button"), d = c("el-input"), i = c("el-form-item"), b = c("el-option"), g = c("el-select"), I = c("el-switch"), $ = c("el-upload"), D = c("el-form"), G = T("spinning");
|
|
78
|
-
return q((A(), x("div", W, [
|
|
79
|
-
u("div", X, [
|
|
80
|
-
a(l, {
|
|
81
|
-
type: "primary",
|
|
82
|
-
onClick: t[0] || (t[0] = (n) => P(L.value))
|
|
83
|
-
}, {
|
|
84
|
-
default: o(() => [
|
|
85
|
-
v(p(e.$t("message.btn.confirm")), 1)
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
})
|
|
89
|
-
]),
|
|
90
|
-
u("div", Z, [
|
|
91
|
-
a(D, {
|
|
92
|
-
ref_key: "xfrom",
|
|
93
|
-
ref: L,
|
|
94
|
-
model: s,
|
|
95
|
-
rules: U,
|
|
96
|
-
"label-width": "90",
|
|
97
|
-
size: "small",
|
|
98
|
-
"status-icon": "",
|
|
99
|
-
class: "w-full"
|
|
100
|
-
}, {
|
|
101
|
-
default: o(() => [
|
|
102
|
-
a(i, {
|
|
103
|
-
label: e.$t("message.udp.systemTitle"),
|
|
104
|
-
prop: "title"
|
|
105
|
-
}, {
|
|
106
|
-
default: o(() => [
|
|
107
|
-
a(d, {
|
|
108
|
-
modelValue: s.title,
|
|
109
|
-
"onUpdate:modelValue": t[1] || (t[1] = (n) => s.title = n)
|
|
110
|
-
}, null, 8, ["modelValue"])
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
}, 8, ["label"]),
|
|
114
|
-
a(i, {
|
|
115
|
-
label: e.$t("message.udp.copyright"),
|
|
116
|
-
prop: "copyright"
|
|
117
|
-
}, {
|
|
118
|
-
default: o(() => [
|
|
119
|
-
a(d, {
|
|
120
|
-
modelValue: s.copyright,
|
|
121
|
-
"onUpdate:modelValue": t[2] || (t[2] = (n) => s.copyright = n)
|
|
122
|
-
}, null, 8, ["modelValue"])
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
}, 8, ["label"]),
|
|
126
|
-
a(i, {
|
|
127
|
-
label: e.$t("message.udp.defaultLanguage"),
|
|
128
|
-
prop: "defaultLanguage"
|
|
129
|
-
}, {
|
|
130
|
-
default: o(() => [
|
|
131
|
-
a(g, {
|
|
132
|
-
modelValue: s.defaultLanguage,
|
|
133
|
-
"onUpdate:modelValue": t[3] || (t[3] = (n) => s.defaultLanguage = n),
|
|
134
|
-
placeholder: "please select"
|
|
135
|
-
}, {
|
|
136
|
-
default: o(() => [
|
|
137
|
-
a(b, {
|
|
138
|
-
label: "中文",
|
|
139
|
-
value: "zh"
|
|
140
|
-
}),
|
|
141
|
-
a(b, {
|
|
142
|
-
label: "英文",
|
|
143
|
-
value: "en"
|
|
144
|
-
})
|
|
145
|
-
]),
|
|
146
|
-
_: 1
|
|
147
|
-
}, 8, ["modelValue"])
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}, 8, ["label"]),
|
|
151
|
-
a(i, {
|
|
152
|
-
label: e.$t("message.udp.i18nEnabled"),
|
|
153
|
-
prop: "i18nEnabled"
|
|
154
|
-
}, {
|
|
155
|
-
default: o(() => [
|
|
156
|
-
a(I, {
|
|
157
|
-
modelValue: s.i18nEnabled,
|
|
158
|
-
"onUpdate:modelValue": t[4] || (t[4] = (n) => s.i18nEnabled = n),
|
|
159
|
-
"active-value": "Y",
|
|
160
|
-
"inactive-value": "N"
|
|
161
|
-
}, null, 8, ["modelValue"])
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}, 8, ["label"]),
|
|
165
|
-
a(i, {
|
|
166
|
-
label: e.$t("message.udp.systemLogo")
|
|
167
|
-
}, {
|
|
168
|
-
default: o(() => [
|
|
169
|
-
a($, {
|
|
170
|
-
"file-list": s.logo,
|
|
171
|
-
"onUpdate:fileList": t[5] || (t[5] = (n) => s.logo = n),
|
|
172
|
-
class: "u-upload",
|
|
173
|
-
action: f.value + "/ufil/file/uploadMultipart",
|
|
174
|
-
headers: h.value,
|
|
175
|
-
"on-exceed": V,
|
|
176
|
-
accept: ".png,.jpg,.jpeg,.PNG,.JPEG,.jPG",
|
|
177
|
-
"list-type": "picture",
|
|
178
|
-
limit: 1
|
|
179
|
-
}, {
|
|
180
|
-
default: o(() => [
|
|
181
|
-
u("div", ee, [
|
|
182
|
-
a(l, { type: "primary" }, {
|
|
183
|
-
default: o(() => [
|
|
184
|
-
v(p(e.$t("message.btn.upload")), 1)
|
|
185
|
-
]),
|
|
186
|
-
_: 1
|
|
187
|
-
}),
|
|
188
|
-
u("div", te, [
|
|
189
|
-
u("span", null, p(e.$t("message.tip.uploadFormat", { type: ": *.png,*.jpg;" })), 1),
|
|
190
|
-
u("span", se, p(e.$t("message.tip.imageSize", { size: ": 600 * 200" })), 1),
|
|
191
|
-
u("span", ae, p(e.$t("message.tip.imageCapacity", { capacity: ": <50kb" })), 1)
|
|
192
|
-
])
|
|
193
|
-
])
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
}, 8, ["file-list", "action", "headers"])
|
|
197
|
-
]),
|
|
198
|
-
_: 1
|
|
199
|
-
}, 8, ["label"]),
|
|
200
|
-
a(i, {
|
|
201
|
-
label: e.$t("message.udp.homeBackimg")
|
|
202
|
-
}, {
|
|
203
|
-
default: o(() => [
|
|
204
|
-
a($, {
|
|
205
|
-
"file-list": s.backgroundImg,
|
|
206
|
-
"onUpdate:fileList": t[6] || (t[6] = (n) => s.backgroundImg = n),
|
|
207
|
-
class: "u-upload",
|
|
208
|
-
action: f.value + "/ufil/file/uploadMultipart",
|
|
209
|
-
headers: h.value,
|
|
210
|
-
"on-exceed": V,
|
|
211
|
-
accept: ".png,.jpg,.jpeg,.PNG,.JPEG,.jPG",
|
|
212
|
-
"list-type": "picture",
|
|
213
|
-
limit: 1
|
|
214
|
-
}, {
|
|
215
|
-
default: o(() => [
|
|
216
|
-
u("div", le, [
|
|
217
|
-
a(l, { type: "primary" }, {
|
|
218
|
-
default: o(() => [
|
|
219
|
-
v(p(e.$t("message.btn.upload")), 1)
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
}),
|
|
223
|
-
u("div", oe, [
|
|
224
|
-
u("span", null, p(e.$t("message.tip.uploadFormat", { type: ": *.png,*.jpg;" })), 1),
|
|
225
|
-
u("span", ne, p(e.$t("message.tip.imageSize", { size: ": 4096 * 2048" })), 1)
|
|
226
|
-
])
|
|
227
|
-
])
|
|
228
|
-
]),
|
|
229
|
-
_: 1
|
|
230
|
-
}, 8, ["file-list", "action", "headers"])
|
|
231
|
-
]),
|
|
232
|
-
_: 1
|
|
233
|
-
}, 8, ["label"]),
|
|
234
|
-
a(i, {
|
|
235
|
-
label: e.$t("message.udp.systemFavicon")
|
|
236
|
-
}, {
|
|
237
|
-
default: o(() => [
|
|
238
|
-
a($, {
|
|
239
|
-
"file-list": s.favicon,
|
|
240
|
-
"onUpdate:fileList": t[7] || (t[7] = (n) => s.favicon = n),
|
|
241
|
-
class: "u-upload",
|
|
242
|
-
action: f.value + "/ufil/file/uploadMultipart",
|
|
243
|
-
headers: h.value,
|
|
244
|
-
"on-exceed": V,
|
|
245
|
-
accept: ".ico",
|
|
246
|
-
"list-type": "picture",
|
|
247
|
-
limit: 1
|
|
248
|
-
}, {
|
|
249
|
-
default: o(() => [
|
|
250
|
-
u("div", ie, [
|
|
251
|
-
a(l, { type: "primary" }, {
|
|
252
|
-
default: o(() => [
|
|
253
|
-
v(p(e.$t("message.btn.upload")), 1)
|
|
254
|
-
]),
|
|
255
|
-
_: 1
|
|
256
|
-
}),
|
|
257
|
-
u("div", ue, p(e.$t("message.tip.uploadFormat", { type: ": *.ico,.png*.jpg;" })), 1)
|
|
258
|
-
])
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
}, 8, ["file-list", "action", "headers"])
|
|
262
|
-
]),
|
|
263
|
-
_: 1
|
|
264
|
-
}, 8, ["label"])
|
|
265
|
-
]),
|
|
266
|
-
_: 1
|
|
267
|
-
}, 8, ["model", "rules"])
|
|
268
|
-
])
|
|
269
|
-
])), [
|
|
270
|
-
[G, _.value]
|
|
271
|
-
]);
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
export {
|
|
276
|
-
be as default
|
|
277
|
-
};
|