@utogether/udp-core 2.0.0-beta.27 → 2.0.0-beta.28
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-gdcH0-Bo.js → 403-CyoOD-Ik.js} +1 -1
- package/dist/{404-Se2SF97M.js → 404-Ch_OHTw0.js} +1 -1
- package/dist/{500-B6j9AqLo.js → 500-Cf9am7HK.js} +1 -1
- package/dist/{AuthorityInfo-CQ8ydZvr.js → AuthorityInfo-BJ427cqG.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js → AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js} +11 -12
- package/dist/{Company-BzSVBSC4.js → Company-qo-lKPkv.js} +3 -3
- package/dist/{CompanyPanel-DBjZB4aJ.js → CompanyPanel-DkKWAKvY.js} +7 -7
- package/dist/{Department-BkgseHo8.js → Department-CHUQByKX.js} +3 -3
- package/dist/{DepartmentPanel-Sen93_2M.js → DepartmentPanel-C742dfOO.js} +27 -28
- package/dist/{DesignPanel-pqDcwaFC.js → DesignPanel-D9oE5R7m.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js → DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js} +192 -108
- package/dist/{DictView-CJLG4LlE.js → DictView-CrFXprP9.js} +1 -1
- package/dist/{InvOrganization-D0Jq1IAa.js → InvOrganization-Cz8SzIgs.js} +6 -7
- package/dist/{Org-CO_1WT39.js → Org-Bzt6yKox.js} +9 -10
- package/dist/{Preview-DLI4Bwel.js → Preview-jonigfMQ.js} +1 -1
- package/dist/{ReportDefine-Cw46OnJ_.js → ReportDefine-BpiM5Ovq.js} +1 -1
- package/dist/{ReportDesign-D4sHTXT7.js → ReportDesign-fp09cXJ7.js} +24 -25
- package/dist/{ReportQuery-DtOCvQSN.js → ReportQuery-52ZP1PYP.js} +1 -1
- package/dist/{ReportQueryFrom-QjL-ETPq.js → ReportQueryFrom-DSYavJb1.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js} +4 -4
- package/dist/{ReportTemplate-BxAgc_Aj.js → ReportTemplate-CA_UW0eD.js} +3 -3
- package/dist/{Role-Df77BBD-.js → Role-DqOt8Bk0.js} +3 -3
- package/dist/{RoleAssign-BrunouML.js → RoleAssign-BdxhefhQ.js} +3 -3
- package/dist/{RolePanel-HLA7XBlN.js → RolePanel-2gZ3H0ET.js} +1 -1
- package/dist/{RolePanel-DSVwqhiD.js → RolePanel-BsNd0svJ.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js → RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js} +9 -9
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js → RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js} +26 -27
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js → ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js} +7 -7
- package/dist/{Staff-BeL1xcRf.js → Staff-D3L8fEoY.js} +3 -3
- package/dist/{StaffInfo-CIfnltyX.js → StaffInfo-DYRw6ZYJ.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js → StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js} +1 -1
- package/dist/{StaffPanel-BV2CHWac.js → StaffPanel-DkrNH6Px.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js → StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js} +8 -9
- package/dist/{SysUser-DPfNvthk.js → SysUser-Bl1-cIpJ.js} +2 -2
- package/dist/{SysUserPanel-CoLKYlQE.js → SysUserPanel-yxNLaBwt.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js} +11 -12
- package/dist/{SystemMenu-sdj1dRDA.js → SystemMenu-C4_Arn12.js} +9 -10
- package/dist/{UserInfo-CTX4hhFl.js → UserInfo-QcNwJCUR.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js → UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js} +5 -6
- package/dist/{childView-BDmWwJO5.js → childView-B23DEO2u.js} +1 -1
- package/dist/{childView-Dx3ACtHa.js → childView-saDZQv9x.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js → childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js} +14 -15
- package/dist/{childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js → childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js} +11 -12
- package/dist/{code-rule-cvN4gYC_.js → code-rule-2_Ihx_by.js} +12 -13
- package/dist/core.es.js +21 -19
- package/dist/{cron-task-B0TkxFdp.js → cron-task-BFOPJQIk.js} +3 -4
- package/dist/{frameView-5cy5BSgS.js → frameView-f7Ya0Knj.js} +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/{index-C5WRTwvI.js → index-BpdTDaTk.js} +811 -604
- package/dist/{layout-home-DrARg-3o.js → layout-home-v3DPJ7rB.js} +12 -13
- package/dist/{layoutView-25v_ngk5.js → layoutView-DZHoQDH1.js} +186 -187
- package/dist/{log-in-Bmz5Uhbt.js → log-in-BPAMJTwH.js} +4 -5
- package/dist/{log-out-B-8m3oNj.js → log-out-DZACF0jg.js} +8 -9
- package/dist/{login-Cmp2RvvW.js → login-B8cwozax.js} +22 -23
- package/dist/{lov-view-BATtzw2X.js → lov-view-Ba7Y7xy0.js} +4 -5
- package/dist/{menuInfo-BIvrE7nm.js → menuInfo-BpRKFYK8.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js → menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js} +17 -18
- package/dist/{pda-app-CzHVyeEa.js → pda-app-C0jJecrL.js} +7 -8
- package/dist/{resource-Y5lGB38n.js → resource-BG22Cw4P.js} +4 -4
- package/dist/su-welcome-DaxhbrC6.js +879 -0
- package/dist/{sys-config-CqO03LeC.js → sys-config-CG2fMtak.js} +22 -23
- package/dist/udp-core.css +1 -1
- package/dist/{useNav-C-rCgubt.js → useNav-_u2UAQWk.js} +24 -24
- package/index.ts +54 -51
- package/package.json +21 -21
- package/src/api/http.ts +10 -4
- package/src/api/index.ts +51 -51
- package/src/api/user.ts +64 -64
- package/src/components/udp/content/index.vue +93 -93
- package/src/components/udp/form-upload/form-upload.vue +496 -496
- package/src/components/udp/grid/index.vue +643 -544
- package/src/components/udp/index.ts +2 -1
- package/src/components/udp/modal-form/index.vue +326 -0
- package/src/components/udp/utils.ts +420 -420
- package/src/layout/components/lay-navbar/index.vue +240 -240
- package/src/layout/components/lay-search/components/SearchModal.vue +185 -185
- package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
- package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
- package/src/layout/components/lay-sidebar/vertical.vue +92 -92
- package/src/layout/layoutView.vue +1 -0
- package/src/main.ts +111 -111
- package/src/plugins/i18n/zh.ts +5 -1
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/router/index.ts +158 -156
- package/src/router/utils.ts +434 -430
- package/src/store/modules/permission.ts +1 -1
- package/src/store/modules/system.ts +193 -193
- package/src/style/print-lock.css +380 -375
- package/src/style/suprint.css +990 -985
- package/src/utils/authority/index.ts +46 -46
- package/src/utils/dataFormat/index.ts +309 -222
- package/src/utils/udp/http/index.ts +19 -11
- package/src/views/uhome/components/home-todo.vue +15 -3
- package/src/views/uhome/dynamic-card.vue +31 -31
- package/src/views/uhome/su-welcome.vue +310 -310
- package/src/views/ulogin/login.vue +292 -292
- package/src/views/urpt/design/DesignPanel.vue +538 -507
- package/src/views/urpt/design/print-data.ts +39 -59
- package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
- package/dist/su-welcome-CXA6OzBw.js +0 -878
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as O, ref as $, reactive as T, computed as q, onMounted as J, resolveComponent as p, resolveDirective as R, withDirectives as K, openBlock as k, createElementBlock as H, createElementVNode as u, createVNode as a, withCtx as s, unref as b, createBlock as A, createCommentVNode as P, createTextVNode as F, toDisplayString as d } from "vue";
|
|
2
2
|
import { useI18n as Q } from "vue-i18n";
|
|
3
|
-
import {
|
|
4
|
-
import { cookies as
|
|
5
|
-
import { isArray as
|
|
6
|
-
|
|
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" }, ie = { class: "pl-2 text-xs" }, ne = { class: "pl-2" }, ue = { class: "pl-2" }, de = { class: "flex items-center" }, re = { class: "pl-2 text-xs" }, pe = { class: "pl-2" }, me = { class: "flex items-center" }, ce = { class: "pl-2 text-xs" }, ge = { class: "flex justify-end w-1/2 p-2" }, N = "/upfm/v1/sysConfig", Ve = /* @__PURE__ */ x({
|
|
3
|
+
import { x as W, y as X, z, i as B, j as Z } from "./index-BpdTDaTk.js";
|
|
4
|
+
import { cookies as j, successMessage as ee, warnMessage as le } from "@utogether/utils";
|
|
5
|
+
import { isArray as te } from "xe-utils";
|
|
6
|
+
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" }, ie = { class: "pl-2 text-xs" }, ne = { class: "pl-2" }, ue = { class: "pl-2" }, de = { class: "flex items-center" }, re = { class: "pl-2 text-xs" }, pe = { class: "pl-2" }, me = { class: "flex items-center" }, ce = { class: "pl-2 text-xs" }, ge = { class: "flex justify-end w-1/2 p-2" }, E = "/upfm/v1/sysConfig", _e = /* @__PURE__ */ O({
|
|
8
7
|
__name: "sys-config",
|
|
9
8
|
setup(fe) {
|
|
10
|
-
const
|
|
9
|
+
const N = $(), y = $(!1), t = T({
|
|
11
10
|
defaultLanguage: "zh",
|
|
12
11
|
title: "U-DP",
|
|
13
12
|
ispTitle: "U-DP",
|
|
@@ -21,7 +20,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
|
|
|
21
20
|
logo: [],
|
|
22
21
|
backgroundImg: [],
|
|
23
22
|
favicon: []
|
|
24
|
-
}), h =
|
|
23
|
+
}), h = Z(), { t: g } = Q(), f = $(W());
|
|
25
24
|
let m = [];
|
|
26
25
|
const M = [
|
|
27
26
|
"#DC143C",
|
|
@@ -64,7 +63,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
|
|
|
64
63
|
],
|
|
65
64
|
title: [{ required: !0, message: g("message.required") + g("message.udp.systemTitle"), trigger: "blur" }]
|
|
66
65
|
}), _ = q(() => {
|
|
67
|
-
const l =
|
|
66
|
+
const l = j.get(X);
|
|
68
67
|
return {
|
|
69
68
|
Authorization: "Bearer " + JSON.parse(l).accessToken
|
|
70
69
|
};
|
|
@@ -76,21 +75,21 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
|
|
|
76
75
|
configCategory: "system",
|
|
77
76
|
fileName: ""
|
|
78
77
|
};
|
|
79
|
-
|
|
78
|
+
te(t[e]) && (n.configValue = L(t[e][0]).url, n.fileName = L(t[e][0]).name);
|
|
80
79
|
const i = m.findIndex((c) => c.configCode === e);
|
|
81
80
|
i !== -1 ? m[i] = Object.assign(m[i], n) : m.push(n);
|
|
82
81
|
}), l?.validate(async (e) => {
|
|
83
82
|
if (e) {
|
|
84
83
|
y.value = !0;
|
|
85
84
|
const n = m.filter((r) => !r.id), i = m.filter((r) => r.id), c = [];
|
|
86
|
-
n.length ? c.push(h.post(
|
|
87
|
-
const [C] = await
|
|
88
|
-
C || (
|
|
85
|
+
n.length ? c.push(h.post(E, n)) : c.push(h.put(E, i));
|
|
86
|
+
const [C] = await B(Promise.all(c));
|
|
87
|
+
C || (ee(), U()), y.value = !1;
|
|
89
88
|
}
|
|
90
89
|
});
|
|
91
90
|
}, L = (l) => l?.response ? { url: l.response.data, name: l.name } : { url: l?.realpath || l?.url, name: l?.name }, V = (l) => {
|
|
92
91
|
if (l)
|
|
93
|
-
return
|
|
92
|
+
return le(g("message.tip.singleImg"));
|
|
94
93
|
}, U = () => {
|
|
95
94
|
Object.keys(t).forEach((l) => {
|
|
96
95
|
const e = m.find((n) => n.configCode === l);
|
|
@@ -102,18 +101,18 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
|
|
|
102
101
|
}
|
|
103
102
|
});
|
|
104
103
|
}, I = async () => {
|
|
105
|
-
const [l, e] = await
|
|
104
|
+
const [l, e] = await B(h.get(E, {}));
|
|
106
105
|
l || (m = e.list), U();
|
|
107
106
|
};
|
|
108
107
|
return J(() => {
|
|
109
108
|
I();
|
|
110
109
|
}), (l, e) => {
|
|
111
|
-
const n = p("el-input"), i = p("el-form-item"), c = p("el-option"), C = p("el-select"), r = p("el-switch"), Y = p("vxe-color-picker"), v = p("el-button"), w = p("el-upload"),
|
|
110
|
+
const n = p("el-input"), i = p("el-form-item"), c = p("el-option"), C = p("el-select"), r = p("el-switch"), Y = p("vxe-color-picker"), v = p("el-button"), w = p("el-upload"), x = p("el-form"), G = R("spinning");
|
|
112
111
|
return K((k(), H("div", ae, [
|
|
113
112
|
u("div", oe, [
|
|
114
|
-
a(
|
|
113
|
+
a(x, {
|
|
115
114
|
ref_key: "xfrom",
|
|
116
|
-
ref:
|
|
115
|
+
ref: N,
|
|
117
116
|
model: t,
|
|
118
117
|
rules: S,
|
|
119
118
|
"label-width": "90",
|
|
@@ -227,7 +226,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
|
|
|
227
226
|
]),
|
|
228
227
|
_: 1
|
|
229
228
|
}, 8, ["label"]),
|
|
230
|
-
["liwei", "yanhuaijun", "phr", "zhonglijun", "ccl"].includes(b(
|
|
229
|
+
["liwei", "yanhuaijun", "phr", "zhonglijun", "ccl"].includes(b(j).get(b(z))) ? (k(), A(i, {
|
|
231
230
|
key: 0,
|
|
232
231
|
label: l.$t("message.udp.techSupport"),
|
|
233
232
|
prop: "techSupport"
|
|
@@ -242,7 +241,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
|
|
|
242
241
|
]),
|
|
243
242
|
_: 1
|
|
244
243
|
}, 8, ["label"])) : P("", !0),
|
|
245
|
-
["liwei", "yanhuaijun", "phr", "zhonglijun", "ccl"].includes(b(
|
|
244
|
+
["liwei", "yanhuaijun", "phr", "zhonglijun", "ccl"].includes(b(j).get(b(z))) ? (k(), A(i, {
|
|
246
245
|
key: 1,
|
|
247
246
|
label: l.$t("message.udp.baseColor"),
|
|
248
247
|
prop: "baseColor"
|
|
@@ -366,7 +365,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
|
|
|
366
365
|
u("div", ge, [
|
|
367
366
|
a(v, {
|
|
368
367
|
type: "primary",
|
|
369
|
-
onClick: e[12] || (e[12] = (o) => D(
|
|
368
|
+
onClick: e[12] || (e[12] = (o) => D(N.value))
|
|
370
369
|
}, {
|
|
371
370
|
default: s(() => [
|
|
372
371
|
F(d(l.$t("message.btn.confirm")), 1)
|
|
@@ -375,11 +374,11 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
|
|
|
375
374
|
})
|
|
376
375
|
])
|
|
377
376
|
])), [
|
|
378
|
-
[
|
|
377
|
+
[G, y.value]
|
|
379
378
|
]);
|
|
380
379
|
};
|
|
381
380
|
}
|
|
382
381
|
});
|
|
383
382
|
export {
|
|
384
|
-
|
|
383
|
+
_e as default
|
|
385
384
|
};
|