@utogether/udp-core 1.0.4 → 2.0.0-beta.1
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-DASI6Pwz.js → 403-CTJDBjz7.js} +1 -1
- package/dist/{404-YhBA92cb.js → 404-BFYkWIkQ.js} +1 -1
- package/dist/{500-ywbFF5MX.js → 500-DGG3qadg.js} +1 -1
- package/dist/{AuthorityInfo-tCSX2Fh7.js → AuthorityInfo-ozZIo1Te.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Cwd6UT2i.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.js} +1 -1
- package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-CRlAwbaI.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js} +31 -24
- package/dist/{Company-l23MEzdM.js → Company-6VJtwh23.js} +3 -3
- package/dist/{CompanyPanel-D_s0rh6h.js → CompanyPanel-B2P488mq.js} +1 -1
- package/dist/{Department-DSEvORLg.js → Department-BnwoLEOC.js} +3 -3
- package/dist/{DepartmentPanel-WN8nOgCV.js → DepartmentPanel-CRrrmxtv.js} +1 -1
- package/dist/{DesignPanel-DirEGh9M.js → DesignPanel-CvbccgX2.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-D02hXSrN.js → DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js} +2 -2
- package/dist/{DictView-DiIQdiek.js → DictView-Ce1LoVHh.js} +17 -16
- package/dist/{InvOrganization-b7v3g9EJ.js → InvOrganization-BwCFZO1X.js} +1 -1
- package/dist/{Org-BORfx1PL.js → Org-0hzs6b0R.js} +1 -1
- package/dist/{Preview-DkRn_TSc.js → Preview--DnEAhwh.js} +1 -1
- package/dist/{ReportDefine-Cd0QeaWA.js → ReportDefine-Cu983bTN.js} +1 -1
- package/dist/{ReportDesign-4qNqyeEW.js → ReportDesign-QsWXXgvo.js} +2 -2
- package/dist/{ReportQuery-BJfTFpec.js → ReportQuery-BjKIIhPu.js} +1 -1
- package/dist/{ReportQueryFrom-CB7sExZx.js → ReportQueryFrom-DIjBO6Fx.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CqO_2Ier.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js} +1 -1
- package/dist/{ReportTemplate-B69muSgT.js → ReportTemplate-2uk9tJcy.js} +1 -1
- package/dist/{Role-Bo4YrNDC.js → Role-_QP8QEaI.js} +3 -3
- package/dist/{RoleAssign-kOMYJ4s3.js → RoleAssign-C2gkcmEQ.js} +3 -3
- package/dist/{RolePanel-BSJmjyqc.js → RolePanel-B8FPNGaA.js} +1 -1
- package/dist/{RolePanel-B1d4e6uk.js → RolePanel-vnl_lXNY.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DCzX-ZP_.js → RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DgQpfjaU.js → RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-WNOYFxJ1.js → ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js} +1 -1
- package/dist/{Staff-BFp3zNNR.js → Staff-CHWrMIEb.js} +3 -3
- package/dist/{StaffInfo-DcU9_40C.js → StaffInfo-Cpq2eayz.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CtfN2CAr.js → StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js} +1 -1
- package/dist/{StaffPanel-7exWkZd9.js → StaffPanel-D2BMXt5p.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-v5xOXKRS.js → StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js} +2 -2
- package/dist/{SysUser-B3uB_cp2.js → SysUser-om6H1BeC.js} +2 -2
- package/dist/{SysUserPanel-B0CLp5AO.js → SysUserPanel-CH0HPP7h.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Cwea_4dY.js → SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js} +126 -111
- package/dist/{SystemMenu-a59l4hTk.js → SystemMenu-BkG_DKxA.js} +52 -49
- package/dist/{UserInfo-D1IA2oLt.js → UserInfo-D9croxUe.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DDVgYRD5.js → UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js} +1 -1
- package/dist/{childView-6rCeLcsx.js → childView-BY_Ip-l1.js} +1 -1
- package/dist/{childView-JdrkroL5.js → childView-CHp_TueS.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-BfcnWnx9.js → childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js} +25 -22
- package/dist/{childView.vue_vue_type_style_index_0_lang-B8x99f1B.js → childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js} +1 -1
- package/dist/{code-rule-2lkPF547.js → code-rule-Ce6yWqCq.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-DV1pGO1m.js → cron-task-DziaH0rI.js} +1 -1
- package/dist/{frameView-C0bzSB8c.js → frameView-DNeCVQaY.js} +1 -1
- package/dist/index-BabfUVv_.js +7241 -0
- package/dist/layout-home-Cis1KlEr.js +195 -0
- package/dist/{layoutView-CTV-E4Cj.js → layoutView-12Mlp9A2.js} +144 -145
- package/dist/{log-in-CoBP2x6u.js → log-in-1NGaA5OM.js} +1 -1
- package/dist/{log-out-KX8FiRVf.js → log-out-B8_atGcQ.js} +1 -1
- package/dist/{login-CtCoGWzD.js → login-5dydO6GR.js} +124 -134
- package/dist/{lov-view-Bm0JEzzg.js → lov-view-DPvGUu3h.js} +2 -2
- package/dist/{menuInfo-D2qPoRwz.js → menuInfo-DVADYfEK.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DoQjX9Ly.js → menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js} +37 -35
- package/dist/{pda-app-SbcIclbH.js → pda-app-BZXs-2BQ.js} +1 -1
- package/dist/{resource-Cdq1UKGI.js → resource-BZA9NFKc.js} +1 -1
- package/dist/su-welcome-BXe6Cdp3.js +580 -0
- package/dist/{sys-config-CCOf4xbj.js → sys-config-DQmNjWH4.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +71 -65
- package/src/components/udp/form-upload/form-upload.vue +492 -0
- package/src/components/udp/index.ts +2 -1
- package/src/layout/components/lay-content/index.vue +136 -143
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +1 -1
- package/src/layout/layoutView.vue +7 -6
- package/src/main.ts +4 -7
- package/src/plugins/i18n/zh.ts +16 -3
- package/src/plugins/vxe-table/render.tsx +19 -1
- package/src/style/vxetable.scss +356 -348
- package/src/views/system/layout/layout-home.vue +199 -0
- package/src/views/system/menu/AuthorityPanel.vue +141 -140
- package/src/views/system/menu/SystemMenu.vue +10 -1
- package/src/views/system/menu/menuInfo.vue +384 -384
- package/src/views/system/sysUser/SysUserPanel.vue +22 -6
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/udev/dict/childView.vue +1 -0
- package/src/views/uhome/dynamic-card.vue +32 -0
- package/src/views/uhome/su-welcome.vue +10 -5
- package/src/views/ulogin/login.vue +34 -23
- package/types/global.d.ts +1 -0
- package/dist/index-BbtbEMCH.js +0 -4649
- package/dist/su-welcome-BHDsjqqV.js +0 -524
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { defineComponent as H, ref as o, createVNode as a, Fragment as T, resolveComponent as d, mergeProps as $, createElementBlock as A, openBlock as m, createBlock as v, createCommentVNode as y } from "vue";
|
|
2
|
+
import { useRender as M, successMessage as C, warnMessage as P } from "@utogether/utils";
|
|
3
|
+
import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
+
import { clone as V } from "xe-utils";
|
|
5
|
+
import { VxeUI as U } from "vxe-pc-ui";
|
|
6
|
+
import { useI18n as W } from "vue-i18n";
|
|
7
|
+
import { y as R } from "./index-BabfUVv_.js";
|
|
8
|
+
const u = "/ucrm/sysHomeConfig", X = /* @__PURE__ */ H({
|
|
9
|
+
name: "HomeLayout",
|
|
10
|
+
__name: "layout-home",
|
|
11
|
+
setup(F) {
|
|
12
|
+
const l = M(), {
|
|
13
|
+
t: k
|
|
14
|
+
} = W(), p = o(null), r = o(null), f = o(null), g = o(!1), i = o(!1), c = o({}), w = [{
|
|
15
|
+
field: "code",
|
|
16
|
+
title: "message.udp.componentCode"
|
|
17
|
+
}, {
|
|
18
|
+
field: "title",
|
|
19
|
+
title: "message.udp.componentTitle"
|
|
20
|
+
}], N = [{
|
|
21
|
+
field: "roleName",
|
|
22
|
+
span: 9,
|
|
23
|
+
title: "message.udp.roleName"
|
|
24
|
+
}, {
|
|
25
|
+
field: "roleCode",
|
|
26
|
+
span: 9,
|
|
27
|
+
title: "message.udp.roleCode"
|
|
28
|
+
}], x = [{
|
|
29
|
+
label: 3,
|
|
30
|
+
value: 3
|
|
31
|
+
}, {
|
|
32
|
+
label: 4,
|
|
33
|
+
value: 4
|
|
34
|
+
}, {
|
|
35
|
+
label: 6,
|
|
36
|
+
value: 6
|
|
37
|
+
}, {
|
|
38
|
+
label: 8,
|
|
39
|
+
value: 8
|
|
40
|
+
}, {
|
|
41
|
+
label: 12,
|
|
42
|
+
value: 12
|
|
43
|
+
}, {
|
|
44
|
+
label: 24,
|
|
45
|
+
value: 24
|
|
46
|
+
}], I = [{
|
|
47
|
+
type: "checkbox",
|
|
48
|
+
width: 50,
|
|
49
|
+
align: "center"
|
|
50
|
+
}, {
|
|
51
|
+
field: "seqNo",
|
|
52
|
+
required: !0,
|
|
53
|
+
width: 100,
|
|
54
|
+
editRender: l.renderNumber({
|
|
55
|
+
min: 10,
|
|
56
|
+
step: 10
|
|
57
|
+
})
|
|
58
|
+
}, {
|
|
59
|
+
field: "code",
|
|
60
|
+
title: "message.udp.componentCode",
|
|
61
|
+
width: 120,
|
|
62
|
+
required: !0,
|
|
63
|
+
editRender: l.renderInput()
|
|
64
|
+
}, {
|
|
65
|
+
field: "title",
|
|
66
|
+
title: "message.udp.componentTitle",
|
|
67
|
+
minWidth: 150,
|
|
68
|
+
required: !0,
|
|
69
|
+
editRender: l.renderInput()
|
|
70
|
+
}, {
|
|
71
|
+
field: "span",
|
|
72
|
+
title: "message.udp.componentSpan",
|
|
73
|
+
required: !0,
|
|
74
|
+
width: 160,
|
|
75
|
+
editRender: l.renderSelectLocal({
|
|
76
|
+
options: x
|
|
77
|
+
})
|
|
78
|
+
}, {
|
|
79
|
+
field: "height",
|
|
80
|
+
title: "message.udp.componentHeight",
|
|
81
|
+
required: !0,
|
|
82
|
+
editRender: l.renderNumber({
|
|
83
|
+
min: 300
|
|
84
|
+
})
|
|
85
|
+
}, {
|
|
86
|
+
field: "url",
|
|
87
|
+
title: "message.udp.componentPath",
|
|
88
|
+
required: !0,
|
|
89
|
+
minWidth: 150,
|
|
90
|
+
editRender: l.renderInput()
|
|
91
|
+
}, {
|
|
92
|
+
field: "enabled",
|
|
93
|
+
width: 90,
|
|
94
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
95
|
+
}, {
|
|
96
|
+
field: "operate",
|
|
97
|
+
width: 140,
|
|
98
|
+
fixed: "right",
|
|
99
|
+
slots: {
|
|
100
|
+
default: ({
|
|
101
|
+
row: e
|
|
102
|
+
}) => {
|
|
103
|
+
if (!e.id) return;
|
|
104
|
+
const t = {
|
|
105
|
+
conent: e.enabled === "1" ? "disabled" : "enable",
|
|
106
|
+
status: e.enabled === "1" ? "warning" : "success",
|
|
107
|
+
icon: e.enabled === "1" ? "ri-pause-circle-line" : "ri-play-circle-line"
|
|
108
|
+
};
|
|
109
|
+
return [a(T, null, [a(d("ut-button"), {
|
|
110
|
+
content: "role",
|
|
111
|
+
auth: "role",
|
|
112
|
+
icon: "ri-user-line",
|
|
113
|
+
onTap: () => q(e)
|
|
114
|
+
}, null), a(d("ut-button"), $({
|
|
115
|
+
content: t.conent
|
|
116
|
+
}, t, {
|
|
117
|
+
onTap: () => S(e)
|
|
118
|
+
}), null)])];
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}], h = [{
|
|
122
|
+
type: "checkbox",
|
|
123
|
+
width: 40
|
|
124
|
+
}, {
|
|
125
|
+
field: "roleName",
|
|
126
|
+
title: "message.udp.roleName"
|
|
127
|
+
}, {
|
|
128
|
+
field: "roleCode",
|
|
129
|
+
title: "message.udp.roleCode"
|
|
130
|
+
}], q = (e) => {
|
|
131
|
+
c.value = e, g.value = !0;
|
|
132
|
+
}, B = () => {
|
|
133
|
+
i.value = !0;
|
|
134
|
+
}, S = async (e) => {
|
|
135
|
+
const t = e.enabled === "1" ? "tip_disabledrecord" : "tip_enabledrecord";
|
|
136
|
+
if (await U.modal.confirm(k(`message.${t}`)) === "confirm") {
|
|
137
|
+
const n = V(e, !0);
|
|
138
|
+
n.enabled = n.enabled === "1" ? "0" : "1";
|
|
139
|
+
const [b] = await _(R().put(u, [n]));
|
|
140
|
+
if (b) return;
|
|
141
|
+
C(), p.value.refreshData();
|
|
142
|
+
}
|
|
143
|
+
}, L = () => {
|
|
144
|
+
r.value.getSelectRecords().length && r.value.getInstance().commitProxy("delete");
|
|
145
|
+
}, D = async (e) => {
|
|
146
|
+
if (e.length === 0) return P("message.tip.selectRole");
|
|
147
|
+
e.forEach((s) => {
|
|
148
|
+
s.systemConfigId = c.value.id;
|
|
149
|
+
}), f.value.showLoading();
|
|
150
|
+
const [t] = await _(R().post(u + "/detail", e));
|
|
151
|
+
t || (C(), r.value.refreshData(), i.value = !1);
|
|
152
|
+
}, E = (e) => {
|
|
153
|
+
e === "add" && B(), e === "del" && L();
|
|
154
|
+
};
|
|
155
|
+
return (e, t) => {
|
|
156
|
+
const s = d("ut-grid"), n = d("ut-modal-grid");
|
|
157
|
+
return m(), A("div", null, [a(s, {
|
|
158
|
+
ref_key: "xgrid",
|
|
159
|
+
ref: p,
|
|
160
|
+
items: w,
|
|
161
|
+
columns: I,
|
|
162
|
+
url: u
|
|
163
|
+
}, null, 512), g.value ? (m(), v(n, {
|
|
164
|
+
key: 0,
|
|
165
|
+
ref_key: "ygrid",
|
|
166
|
+
ref: r,
|
|
167
|
+
columns: h,
|
|
168
|
+
mode: "form",
|
|
169
|
+
url: u + "/detail",
|
|
170
|
+
title: e.$t("message.title.layoutRole", {
|
|
171
|
+
name: c.value.title
|
|
172
|
+
}),
|
|
173
|
+
width: "50%",
|
|
174
|
+
onButtonClick: E
|
|
175
|
+
}, null, 8, ["url", "title"])) : y("", !0), i.value ? (m(), v(n, {
|
|
176
|
+
key: 1,
|
|
177
|
+
ref_key: "xmodal",
|
|
178
|
+
ref: f,
|
|
179
|
+
items: N,
|
|
180
|
+
columns: h,
|
|
181
|
+
"show-footer": !0,
|
|
182
|
+
editable: !1,
|
|
183
|
+
title: e.$t("message.udp.roleList"),
|
|
184
|
+
url: "/uums/role",
|
|
185
|
+
width: "60%",
|
|
186
|
+
height: "75%",
|
|
187
|
+
onClose: t[0] || (t[0] = (b) => i.value = !1),
|
|
188
|
+
onConfirm: D
|
|
189
|
+
}, null, 8, ["title"])) : y("", !0)]);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
export {
|
|
194
|
+
X as default
|
|
195
|
+
};
|