@utogether/udp-core 2.0.0-beta.24 → 2.0.0-beta.26
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-D6Wb3JJh.js +72 -0
- package/dist/404-B_HNbPNV.js +72 -0
- package/dist/500-BMemTTy1.js +77 -0
- package/dist/AuthorityInfo-6wHxwiFM.js +91 -0
- package/dist/AuthorityPanel-OqF_DvXA.js +98 -0
- package/dist/Company-BLXSfow0.js +21 -0
- package/dist/CompanyPanel-B4kRZ5Cg.js +199 -0
- package/dist/DataSet-CuGZcKC-.js +141 -0
- package/dist/Department-oFhsa7cd.js +21 -0
- package/dist/DepartmentPanel-B1UGpu-r.js +242 -0
- package/dist/DepartmentPanel-BL58AdoT.js +2 -0
- package/dist/DesignPanel-DmkFVw1N.js +1196 -0
- package/dist/DictView-CC5yMzOq.js +100 -0
- package/dist/File-WJXjGYxr.js +89 -0
- package/dist/InvOrganization-BwMmD8Ua.js +76 -0
- package/dist/Org-HgnOWubi.js +76 -0
- package/dist/Preview-CAzWxLmP.js +45 -0
- package/dist/ReIcon-DecitXmg.js +413 -0
- package/dist/ReportDefine-BgLM-Rjk.js +10 -0
- package/dist/ReportDesign-DwchGG2P.js +158 -0
- package/dist/ReportQuery-D5jaRJEn.js +101 -0
- package/dist/ReportQueryFrom-CNlmtYey.js +198 -0
- package/dist/ReportTemplate-CNcTmccs.js +162 -0
- package/dist/Role-Be8WfdCA.js +21 -0
- package/dist/RoleAssign-CtehGAUf.js +22 -0
- package/dist/RolePanel-CAwITg_q.js +131 -0
- package/dist/RolePanel-SN0FGFZ7.js +176 -0
- package/dist/ScrollPanel-DW30pGz1.js +88 -0
- package/dist/Staff-V2YsNKcj.js +22 -0
- package/dist/StaffInfo-CKRPW0r4.js +149 -0
- package/dist/StaffPanel-BxcgMg7u.js +143 -0
- package/dist/SysUser-Dxyj5w5m.js +12 -0
- package/dist/SysUserPanel-DI6CWcZo.js +365 -0
- package/dist/SystemMenu-BBHREM8T.js +154 -0
- package/dist/UserInfo-BMVQ0xwE.js +194 -0
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
- package/dist/api-BFNxcxSN.js +30 -0
- package/dist/authority-BJFEUdrh.js +20 -0
- package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
- package/dist/childView-BBjPEraB.js +184 -0
- package/dist/childView-DNqG2UVm.js +181 -0
- package/dist/code-rule-QFrhqFrW.js +151 -0
- package/dist/contant-Q77dU_V3.js +4 -0
- package/dist/core.es.js +6 -23
- package/dist/cron-task-BpUDKEAU.js +131 -0
- package/dist/flow-task-DAc2NrDU.js +11 -0
- package/dist/frameView-Di0zJZUR.js +39 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/layout-home-BVp7vYLR.js +239 -0
- package/dist/layoutView-B6Mx2ERA.js +2662 -0
- package/dist/log-in-BrNB0mLz.js +117 -0
- package/dist/log-out-dYfqvzy6.js +111 -0
- package/dist/login-D_Hjy3Jd.js +231 -0
- package/dist/login-log-CJak-ANA.js +79 -0
- package/dist/lov-view-DM5Nm5tW.js +95 -0
- package/dist/menuInfo-BlOY1KZW.js +346 -0
- package/dist/mitt-CQgI7DYU.js +27 -0
- package/dist/pda-app-CA7YI37u.js +589 -0
- package/dist/redirect-N0k4tImU.js +16 -0
- package/dist/resource-CfQTHFcs.js +94 -0
- package/dist/su-welcome-DVD3S_du.js +799 -0
- package/dist/sys-config-Ddb3vBpK.js +316 -0
- package/dist/system-Cm3lyBas.js +1528 -0
- package/dist/udp-core-DaQd5CF1.js +2028 -0
- package/dist/udp-core.css +2 -1
- package/dist/useDataThemeChange-DJ4K3VGp.js +226 -0
- package/dist/useNav-BhOJIdrJ.js +106 -0
- package/dist/utogether-l7JXs4Lv.js +4 -0
- package/dist/water-mark-WDQZ9YqB.js +119 -0
- package/dist/wecom-push-kWkAVRCj.js +77 -0
- package/package.json +1 -1
- package/src/App.vue +5 -0
- package/src/api/index.ts +51 -51
- package/src/components/udp/grid/index.vue +9 -11
- package/src/components/udp/index.ts +9 -8
- package/src/components/udp/lov/index.vue +430 -0
- package/src/components/udp/upload/index.vue +444 -444
- package/src/components/udp/utils.ts +420 -414
- package/src/main.ts +4 -6
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +999 -998
- package/src/router/utils.ts +2 -3
- package/src/views/login/login-view.vue +297 -301
- package/src/views/ulogin/login.vue +3 -32
- package/tsconfig.json +1 -1
- package/vite.config.ts +8 -3
- package/dist/403-DDCAPCYb.js +0 -65
- package/dist/404-BclWW4UB.js +0 -65
- package/dist/500-BAggMgTl.js +0 -67
- package/dist/AuthorityInfo-liCxYVNc.js +0 -4
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js +0 -100
- package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
- package/dist/Company-DjaOAaWM.js +0 -25
- package/dist/CompanyPanel-Dp_2z717.js +0 -206
- package/dist/DataSet-DT-rGICv.js +0 -147
- package/dist/Department-Bp5RGbl9.js +0 -25
- package/dist/DepartmentPanel-Bg4xM4Lx.js +0 -254
- package/dist/DesignPanel-BS2ioHd_.js +0 -4
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DWwfRVCj.js +0 -1013
- package/dist/DictView-pYJXt6IS.js +0 -111
- package/dist/InvOrganization-D90gRzlN.js +0 -74
- package/dist/Org-Dk4KuIx2.js +0 -39
- package/dist/Preview-DpZR6uKs.js +0 -48
- package/dist/ReportDefine-PtJnfaLw.js +0 -10
- package/dist/ReportDesign-4HWkcTtA.js +0 -165
- package/dist/ReportQuery-BPY1lWFn.js +0 -75
- package/dist/ReportQueryFrom-CHFlkZ42.js +0 -4
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DbbQydKz.js +0 -178
- package/dist/ReportTemplate-C2F3oy8I.js +0 -161
- package/dist/Role-iTP6DYOi.js +0 -25
- package/dist/RoleAssign-DIYNHQeF.js +0 -26
- package/dist/RolePanel-0ojFIz9G.js +0 -4
- package/dist/RolePanel-B0Yr5vjo.js +0 -4
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js +0 -154
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js +0 -101
- package/dist/Staff-sftZ0bIV.js +0 -26
- package/dist/StaffInfo-BG2FMXzR.js +0 -4
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js +0 -108
- package/dist/StaffPanel-BydqiitC.js +0 -4
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js +0 -154
- package/dist/SysUser-qMGVHpJ_.js +0 -15
- package/dist/SysUserPanel-Bh1HgSAr.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js +0 -356
- package/dist/SystemMenu-DUbWmLip.js +0 -156
- package/dist/UserInfo-DNkiTdWm.js +0 -4
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js +0 -160
- package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
- package/dist/childView-CjUjh8Da.js +0 -4
- package/dist/childView-DT9luEEK.js +0 -4
- package/dist/childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js +0 -183
- package/dist/childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js +0 -143
- package/dist/code-rule-uOazxFfn.js +0 -148
- package/dist/cron-task-DEykunjo.js +0 -135
- package/dist/flow-task-B07st2aD.js +0 -10
- package/dist/frameView-FxzlbkeM.js +0 -44
- package/dist/index-BnxyUGKa.js +0 -7944
- package/dist/layout-home-C0jme8Ju.js +0 -232
- package/dist/layoutView-BqMAHIxF.js +0 -3239
- package/dist/log-in-skZaWMBY.js +0 -117
- package/dist/log-out-BiND7muW.js +0 -130
- package/dist/login-C-184YPO.js +0 -235
- package/dist/login-log-BEHYT0v0.js +0 -70
- package/dist/lov-view-Df-swRfy.js +0 -99
- package/dist/menuInfo-CpyjX4a4.js +0 -4
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-D09-OKji.js +0 -363
- package/dist/pda-app-DP87aTBc.js +0 -710
- package/dist/redirect-BqegffKC.js +0 -15
- package/dist/resource-CAldbnw4.js +0 -97
- package/dist/su-welcome-DoBUqadB.js +0 -42225
- package/dist/sys-config-hGuE7DUf.js +0 -385
- package/dist/useNav-Cf_e5pBY.js +0 -92
- package/dist/utogether-MlnyYtNS.js +0 -4
- package/dist/wecom-push-DR7NsNro.js +0 -70
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { I as e, t } from "./system-Cm3lyBas.js";
|
|
2
|
+
import { r as n } from "./api-BFNxcxSN.js";
|
|
3
|
+
import { t as r } from "./AuthorityInfo-6wHxwiFM.js";
|
|
4
|
+
import { t as i } from "./UserInfo-BMVQ0xwE.js";
|
|
5
|
+
import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createVNode as l, defineComponent as u, inject as d, openBlock as f, reactive as p, ref as m, resolveComponent as h, watch as g } from "vue";
|
|
6
|
+
import { useRender as _ } from "@utogether/utils";
|
|
7
|
+
//#region src/views/system/role/RolePanel.vue?vue&type=script&setup=true&lang.tsx
|
|
8
|
+
var v = { class: "page-content" }, y = /* @__PURE__ */ u({
|
|
9
|
+
__name: "RolePanel",
|
|
10
|
+
setup(e) {
|
|
11
|
+
let u = p({
|
|
12
|
+
record: {},
|
|
13
|
+
showAuthView: !1,
|
|
14
|
+
showModalView: !1,
|
|
15
|
+
showUserView: !1,
|
|
16
|
+
dataStatus: ""
|
|
17
|
+
}), y = d("active"), b = _(), x = m(null), S = m(""), C = m({}), w = m("");
|
|
18
|
+
g(() => y.value, () => {
|
|
19
|
+
O();
|
|
20
|
+
});
|
|
21
|
+
let T = [{
|
|
22
|
+
field: "roleName",
|
|
23
|
+
title: "message.udp.roleName"
|
|
24
|
+
}, {
|
|
25
|
+
field: "roleCode",
|
|
26
|
+
title: "message.udp.roleCode"
|
|
27
|
+
}], E = [
|
|
28
|
+
{
|
|
29
|
+
field: "roleName",
|
|
30
|
+
title: "message.udp.roleName",
|
|
31
|
+
required: !0
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
field: "roleCode",
|
|
35
|
+
title: "message.udp.roleCode",
|
|
36
|
+
required: !0
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
field: "roleDesc",
|
|
40
|
+
title: "message.udp.roleDesc"
|
|
41
|
+
}
|
|
42
|
+
], D = [
|
|
43
|
+
{
|
|
44
|
+
type: "checkbox",
|
|
45
|
+
width: 40,
|
|
46
|
+
align: "center",
|
|
47
|
+
fixed: "left"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
field: "roleCode",
|
|
51
|
+
title: "message.udp.roleCode"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
field: "roleName",
|
|
55
|
+
title: "message.udp.roleName"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
field: "roleDesc",
|
|
59
|
+
title: "message.udp.roleDesc"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
field: "enabled",
|
|
63
|
+
width: 90,
|
|
64
|
+
cellRender: b.renderEnabled(F)
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
field: "operate",
|
|
68
|
+
width: 260,
|
|
69
|
+
fixed: "right",
|
|
70
|
+
slots: { default: ({ row: e }) => [l(a, null, [
|
|
71
|
+
l(h("ut-button"), {
|
|
72
|
+
content: "edit",
|
|
73
|
+
auth: "edit",
|
|
74
|
+
disabled: e.roleCode === "admin",
|
|
75
|
+
onTap: () => j(e)
|
|
76
|
+
}, null),
|
|
77
|
+
l(h("ut-button"), {
|
|
78
|
+
content: "dispatchUser",
|
|
79
|
+
status: "warning",
|
|
80
|
+
icon: "ri-user-3-line",
|
|
81
|
+
auth: "user",
|
|
82
|
+
onTap: () => P(e)
|
|
83
|
+
}, null),
|
|
84
|
+
l(h("ut-button"), {
|
|
85
|
+
content: "dispatchAuth",
|
|
86
|
+
status: "success",
|
|
87
|
+
icon: "ri-plane-line",
|
|
88
|
+
auth: "auth",
|
|
89
|
+
onTap: () => N(e)
|
|
90
|
+
}, null)
|
|
91
|
+
])] }
|
|
92
|
+
}
|
|
93
|
+
], O = () => {
|
|
94
|
+
C.value = { unitId: y?.value?.id }, x.value.refreshData();
|
|
95
|
+
}, k = (e) => {
|
|
96
|
+
e === "add" && A(), e === "del" && M();
|
|
97
|
+
}, A = () => {
|
|
98
|
+
u.dataStatus = "add", S.value = "post", w.value = "/uums/role", u.record = {}, u.record.unitId = y?.value?.id, u.record.enabled = "1", u.record.orgId = t().getOrgId, u.showModalView = !0;
|
|
99
|
+
}, j = (e) => {
|
|
100
|
+
S.value = "put", w.value = "/uums/role/singleUpdate", u.dataStatus = "update", u.record = e, u.showModalView = !0;
|
|
101
|
+
}, M = () => {
|
|
102
|
+
x.value.getInstance().commitProxy("delete");
|
|
103
|
+
}, N = (e) => {
|
|
104
|
+
u.record = e, u.showAuthView = !0;
|
|
105
|
+
}, P = (e) => {
|
|
106
|
+
u.record = e, u.showUserView = !0;
|
|
107
|
+
};
|
|
108
|
+
async function F({ row: e }) {
|
|
109
|
+
if (e.roleCode === "admin") {
|
|
110
|
+
e.enabled = "1";
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
await n().put("/uums/role/singleUpdate", e), x.value.refreshData();
|
|
114
|
+
}
|
|
115
|
+
let I = () => {
|
|
116
|
+
u.showDrawView = !1, u.showAuthView = !1, u.showUserView = !1;
|
|
117
|
+
}, L = (e) => e.roleCode !== "admin";
|
|
118
|
+
return (e, t) => {
|
|
119
|
+
let n = h("ut-grid"), a = h("ut-modal-form");
|
|
120
|
+
return f(), c("div", v, [
|
|
121
|
+
l(n, {
|
|
122
|
+
ref_key: "xgrid",
|
|
123
|
+
ref: x,
|
|
124
|
+
items: T,
|
|
125
|
+
columns: D,
|
|
126
|
+
"check-method": L,
|
|
127
|
+
url: "/uums/role",
|
|
128
|
+
mode: "form",
|
|
129
|
+
onButtonClick: k
|
|
130
|
+
}, null, 512),
|
|
131
|
+
u.showAuthView ? (f(), o(r, {
|
|
132
|
+
key: 0,
|
|
133
|
+
show: u.showAuthView,
|
|
134
|
+
record: u.record,
|
|
135
|
+
"data-status": u.dataStatus,
|
|
136
|
+
onOnClose: I
|
|
137
|
+
}, null, 8, [
|
|
138
|
+
"show",
|
|
139
|
+
"record",
|
|
140
|
+
"data-status"
|
|
141
|
+
])) : s("", !0),
|
|
142
|
+
u.showUserView ? (f(), o(i, {
|
|
143
|
+
key: 1,
|
|
144
|
+
show: u.showUserView,
|
|
145
|
+
record: u.record,
|
|
146
|
+
"data-status": u.dataStatus,
|
|
147
|
+
onOnClose: I
|
|
148
|
+
}, null, 8, [
|
|
149
|
+
"show",
|
|
150
|
+
"record",
|
|
151
|
+
"data-status"
|
|
152
|
+
])) : s("", !0),
|
|
153
|
+
u.showModalView ? (f(), o(a, {
|
|
154
|
+
key: 2,
|
|
155
|
+
ref: "xmodal",
|
|
156
|
+
record: u.record,
|
|
157
|
+
items: E,
|
|
158
|
+
url: w.value,
|
|
159
|
+
method: S.value,
|
|
160
|
+
width: "400",
|
|
161
|
+
height: "240",
|
|
162
|
+
"data-status": "update",
|
|
163
|
+
title: e.$t("message.title.authEdit"),
|
|
164
|
+
onClose: t[0] ||= (e) => u.showModalView = !1
|
|
165
|
+
}, null, 8, [
|
|
166
|
+
"record",
|
|
167
|
+
"url",
|
|
168
|
+
"method",
|
|
169
|
+
"title"
|
|
170
|
+
])) : s("", !0)
|
|
171
|
+
]);
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}), b = /* @__PURE__ */ e({ default: () => x }), x = y;
|
|
175
|
+
//#endregion
|
|
176
|
+
export { b as n, x as t };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { r as e } from "./api-BFNxcxSN.js";
|
|
2
|
+
import { createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, inject as s, nextTick as c, normalizeClass as l, openBlock as u, ref as d, resolveComponent as f, toDisplayString as p, watch as m, withCtx as h, withModifiers as g } from "vue";
|
|
3
|
+
//#region src/components/SuScrollTree/ScrollPanel.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _ = { class: "u-panel-header" }, v = { class: "u-panel-content system-scrollbar" }, y = /* @__PURE__ */ o({
|
|
5
|
+
__name: "ScrollPanel",
|
|
6
|
+
props: {
|
|
7
|
+
title: {},
|
|
8
|
+
url: {},
|
|
9
|
+
showAllButton: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
},
|
|
13
|
+
initLoadAll: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
treeOtions: { default: () => ({
|
|
18
|
+
children: "children",
|
|
19
|
+
label: "label"
|
|
20
|
+
}) },
|
|
21
|
+
defaultParams: { default: () => ({}) }
|
|
22
|
+
},
|
|
23
|
+
setup(o, { expose: y }) {
|
|
24
|
+
let b = o, x = d([]), S = d(null), C = s("active"), w = s("scrollPanelChange"), T = s("treeList");
|
|
25
|
+
m(() => w.value, () => {
|
|
26
|
+
w.value && E();
|
|
27
|
+
});
|
|
28
|
+
let E = async (t = {}) => {
|
|
29
|
+
let n = Object.assign(t, b.defaultParams), r = await e().get(b.url, n);
|
|
30
|
+
x.value = r.list || r, T.value = r.list || r, b.initLoadAll ? C.value = {} : C.value = r.list ? r.list[0] : r[0], c(() => {
|
|
31
|
+
S.value && S?.value.setCurrentKey(C.value?.id || "");
|
|
32
|
+
}), w.value = !1;
|
|
33
|
+
}, D = (e) => {
|
|
34
|
+
C.value = e;
|
|
35
|
+
}, O = () => {
|
|
36
|
+
C.value = {};
|
|
37
|
+
}, k = (e, t) => {
|
|
38
|
+
e.forEach((e) => {
|
|
39
|
+
S.value.store.nodesMap[e.id].expanded = t, e.children?.length && k(e.children, t);
|
|
40
|
+
});
|
|
41
|
+
}, A = () => {
|
|
42
|
+
E();
|
|
43
|
+
};
|
|
44
|
+
return y({ onRefresh: A }), E(), (e, s) => {
|
|
45
|
+
let c = f("ut-button"), d = f("vxe-button"), m = f("el-tree");
|
|
46
|
+
return u(), r("div", {
|
|
47
|
+
class: "u-scroll-panel",
|
|
48
|
+
onClick: g(O, ["prevent"])
|
|
49
|
+
}, [i("div", _, [
|
|
50
|
+
i("h2", null, p(o.title), 1),
|
|
51
|
+
o.showAllButton ? (u(), t(c, {
|
|
52
|
+
key: 0,
|
|
53
|
+
content: "BtnExpand",
|
|
54
|
+
onClick: s[0] ||= (e) => k(x.value, !0)
|
|
55
|
+
})) : n("", !0),
|
|
56
|
+
o.showAllButton ? (u(), t(c, {
|
|
57
|
+
key: 1,
|
|
58
|
+
status: "warning",
|
|
59
|
+
content: "BtnCollapse",
|
|
60
|
+
onClick: s[1] ||= (e) => k(x.value, !1)
|
|
61
|
+
})) : n("", !0),
|
|
62
|
+
a(d, {
|
|
63
|
+
icon: "vxe-icon-refresh",
|
|
64
|
+
onClick: A
|
|
65
|
+
})
|
|
66
|
+
]), i("div", v, [a(m, {
|
|
67
|
+
ref_key: "tree",
|
|
68
|
+
ref: S,
|
|
69
|
+
data: x.value,
|
|
70
|
+
props: o.treeOtions,
|
|
71
|
+
"expand-on-click-node": !1,
|
|
72
|
+
style: { "background-color": "#fff" },
|
|
73
|
+
class: "u-tree-panel",
|
|
74
|
+
"node-key": "id",
|
|
75
|
+
"highlight-current": "",
|
|
76
|
+
onNodeClick: D
|
|
77
|
+
}, {
|
|
78
|
+
default: h(({ node: e }) => [i("span", { class: l(["prefix", { "is-leaf": e.isLeaf }]) }, [...s[2] ||= [i("i", {
|
|
79
|
+
class: "ri-folder-2-fill ri-lg mr-1",
|
|
80
|
+
style: { color: "#fadb14" }
|
|
81
|
+
}, null, -1)]], 2), i("span", null, p(e.label), 1)]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["data", "props"])])]);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
//#endregion
|
|
88
|
+
export { y as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
+
import { t } from "./ScrollPanel-DW30pGz1.js";
|
|
3
|
+
import { t as n } from "./StaffPanel-BxcgMg7u.js";
|
|
4
|
+
import { createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, provide as c, ref as l } from "vue";
|
|
5
|
+
//#region src/views/organization/staff/Staff.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var u = { class: "u-content-panel" }, d = { class: "u-left-panel" }, f = { class: "content" }, p = /* @__PURE__ */ e(/* @__PURE__ */ o({
|
|
7
|
+
name: "StaffPanel",
|
|
8
|
+
setup(e) {
|
|
9
|
+
let o = l(!1), p = l([]), m = l({});
|
|
10
|
+
return c("scrollPanelChange", o), c("active", m), c("treeList", p), (e, o) => (s(), r("div", u, [i("div", d, [a(t, {
|
|
11
|
+
title: e.$t("department"),
|
|
12
|
+
"init-load-all": !0,
|
|
13
|
+
"tree-otions": {
|
|
14
|
+
children: "children",
|
|
15
|
+
label: "deptName"
|
|
16
|
+
},
|
|
17
|
+
url: "/uums/department/treeDepartment"
|
|
18
|
+
}, null, 8, ["title"])]), i("div", f, [a(n)])]));
|
|
19
|
+
}
|
|
20
|
+
}), [["__scopeId", "data-v-1cfe93f2"]]);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { p as default };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { I as e } from "./system-Cm3lyBas.js";
|
|
2
|
+
import { r as t } from "./api-BFNxcxSN.js";
|
|
3
|
+
import { createElementBlock as n, createVNode as r, defineComponent as i, onMounted as a, openBlock as o, ref as s, resolveComponent as c, withCtx as l } from "vue";
|
|
4
|
+
import { useRender as u } from "@utogether/utils";
|
|
5
|
+
//#region src/views/organization/staff/StaffInfo.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var d = { class: "config" }, f = /* @__PURE__ */ i({
|
|
7
|
+
__name: "StaffInfo",
|
|
8
|
+
props: {
|
|
9
|
+
show: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !0
|
|
12
|
+
},
|
|
13
|
+
record: { default: () => ({}) },
|
|
14
|
+
dataStatus: { default: "detail" }
|
|
15
|
+
},
|
|
16
|
+
emits: ["onClose"],
|
|
17
|
+
setup(e, { emit: i }) {
|
|
18
|
+
let f = e, p = u(), m = s({}), h = s(null), g = s(!1), _ = {
|
|
19
|
+
userName: "userName",
|
|
20
|
+
userId: "id"
|
|
21
|
+
}, v = { disabled: f.dataStatus !== "add" }, y = [
|
|
22
|
+
{
|
|
23
|
+
field: "employeeCode",
|
|
24
|
+
required: !0,
|
|
25
|
+
span: 8,
|
|
26
|
+
itemRender: p.renderInput({ props: v })
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
field: "employeeName",
|
|
30
|
+
required: !0,
|
|
31
|
+
span: 8,
|
|
32
|
+
itemRender: p.renderInput()
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
field: "gender",
|
|
36
|
+
span: 8,
|
|
37
|
+
itemRender: p.renderDict("SU.GENDER")
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
field: "deptName",
|
|
41
|
+
required: !0,
|
|
42
|
+
span: 8,
|
|
43
|
+
itemRender: p.renderLov({
|
|
44
|
+
code: "SU.DEPARTMENT",
|
|
45
|
+
field: "deptName"
|
|
46
|
+
}, b)
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
field: "email",
|
|
50
|
+
span: 8,
|
|
51
|
+
itemRender: p.renderInput()
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
field: "identity",
|
|
55
|
+
span: 8,
|
|
56
|
+
itemRender: p.renderInput()
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
field: "employeeDate",
|
|
60
|
+
span: 8,
|
|
61
|
+
itemRender: p.renderDate()
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
field: "solarDay",
|
|
65
|
+
span: 8,
|
|
66
|
+
itemRender: p.renderDate()
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
field: "phone",
|
|
70
|
+
span: 8,
|
|
71
|
+
itemRender: p.renderInput()
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
field: "mobile",
|
|
75
|
+
span: 8,
|
|
76
|
+
itemRender: p.renderInput()
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
field: "userName",
|
|
80
|
+
title: "message.releateUser",
|
|
81
|
+
span: 8,
|
|
82
|
+
itemRender: p.renderSysUser({ mapField: _ })
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
function b(e) {
|
|
86
|
+
e.row.deptName = e.item?.deptName || e.row.deptName, e.row.deptCode = e.item?.deptCode || e.row.deptCode, e.row.departmentId = e.item?.id || e.row.departmentId;
|
|
87
|
+
}
|
|
88
|
+
let x = i, S = () => {
|
|
89
|
+
h.value.validateForm(async (e) => {
|
|
90
|
+
if (!e) {
|
|
91
|
+
let { dataStatus: e } = f;
|
|
92
|
+
g.value = !0, e === "add" ? await t().post("/uums/employee", m.value) : await t().put("/uums/employee", m.value), g.value = !1, C();
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
function C() {
|
|
97
|
+
x("onClose");
|
|
98
|
+
}
|
|
99
|
+
return a(() => {
|
|
100
|
+
m.value = f.record;
|
|
101
|
+
}), (t, i) => {
|
|
102
|
+
let a = c("ut-form"), s = c("el-divider"), u = c("ut-button"), f = c("el-row"), p = c("el-drawer");
|
|
103
|
+
return o(), n("div", d, [r(p, {
|
|
104
|
+
"model-value": e.show,
|
|
105
|
+
"before-close": C,
|
|
106
|
+
direction: "rtl",
|
|
107
|
+
title: t.$t("message.title.employeeInfo"),
|
|
108
|
+
"destroy-on-close": "",
|
|
109
|
+
size: "66%"
|
|
110
|
+
}, {
|
|
111
|
+
default: l(() => [
|
|
112
|
+
r(a, {
|
|
113
|
+
ref_key: "suFormRef",
|
|
114
|
+
ref: h,
|
|
115
|
+
record: m.value,
|
|
116
|
+
loading: g.value,
|
|
117
|
+
items: y,
|
|
118
|
+
"data-status": e.dataStatus
|
|
119
|
+
}, null, 8, [
|
|
120
|
+
"record",
|
|
121
|
+
"loading",
|
|
122
|
+
"data-status"
|
|
123
|
+
]),
|
|
124
|
+
r(s),
|
|
125
|
+
r(f, {
|
|
126
|
+
type: "flex",
|
|
127
|
+
justify: "end",
|
|
128
|
+
style: { "padding-right": "22px" }
|
|
129
|
+
}, {
|
|
130
|
+
default: l(() => [r(u, {
|
|
131
|
+
content: "cancel",
|
|
132
|
+
icon: "ri-close-fill",
|
|
133
|
+
onTap: C
|
|
134
|
+
}), r(u, {
|
|
135
|
+
content: "confirm",
|
|
136
|
+
icon: "ri-save-3-fill",
|
|
137
|
+
status: "u-cyan",
|
|
138
|
+
onTap: S
|
|
139
|
+
})]),
|
|
140
|
+
_: 1
|
|
141
|
+
})
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
}, 8, ["model-value", "title"])]);
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
}), p = /* @__PURE__ */ e({ default: () => m }), m = f;
|
|
148
|
+
//#endregion
|
|
149
|
+
export { p as n, m as t };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { I as e } from "./system-Cm3lyBas.js";
|
|
2
|
+
import { r as t } from "./api-BFNxcxSN.js";
|
|
3
|
+
import { t as n } from "./await-to-js.es5-DkWYmPXW.js";
|
|
4
|
+
import { t as r } from "./StaffInfo-CKRPW0r4.js";
|
|
5
|
+
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, defineComponent as l, inject as u, nextTick as d, openBlock as f, reactive as p, ref as m, resolveComponent as h, watch as g } from "vue";
|
|
6
|
+
import { warnMessage as _ } from "@utogether/utils";
|
|
7
|
+
import { clone as v } from "xe-utils";
|
|
8
|
+
import { useI18n as y } from "vue-i18n";
|
|
9
|
+
import { VxeUI as b } from "vxe-pc-ui";
|
|
10
|
+
//#region src/views/organization/staff/StaffPanel.vue?vue&type=script&setup=true&lang.tsx
|
|
11
|
+
var x = { class: "page-content" }, S = "/uums/employee", C = /* @__PURE__ */ l({
|
|
12
|
+
__name: "StaffPanel",
|
|
13
|
+
setup(e) {
|
|
14
|
+
let l = m(null), { t: C } = y(), w = u("active"), T = p({
|
|
15
|
+
record: {},
|
|
16
|
+
showModelView: !1,
|
|
17
|
+
fetchExtParam: {}
|
|
18
|
+
});
|
|
19
|
+
g(() => w.value, (e) => {
|
|
20
|
+
T.fetchExtParam = { departmentId: e?.id }, d(() => {
|
|
21
|
+
l.value.refreshData();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
let E = [
|
|
25
|
+
{
|
|
26
|
+
code: "sync",
|
|
27
|
+
auth: "wechat",
|
|
28
|
+
status: "success",
|
|
29
|
+
icon: "ri-refresh-line"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
code: "sync",
|
|
33
|
+
auth: "dingding",
|
|
34
|
+
status: "success",
|
|
35
|
+
icon: "ri-refresh-line"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
code: "sync",
|
|
39
|
+
auth: "OA",
|
|
40
|
+
status: "success",
|
|
41
|
+
icon: "ri-refresh-line"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
code: "bindUser",
|
|
45
|
+
auth: "bind",
|
|
46
|
+
status: "warning",
|
|
47
|
+
icon: "ri-bring-to-front"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
code: "del",
|
|
51
|
+
auth: "/"
|
|
52
|
+
}
|
|
53
|
+
], D = [{ field: "employeeCode" }, { field: "employeeName" }], O = [
|
|
54
|
+
{
|
|
55
|
+
type: "checkbox",
|
|
56
|
+
width: 50,
|
|
57
|
+
align: "center"
|
|
58
|
+
},
|
|
59
|
+
{ field: "employeeCode" },
|
|
60
|
+
{
|
|
61
|
+
field: "employeeName",
|
|
62
|
+
width: 150
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
field: "gender",
|
|
66
|
+
width: 100,
|
|
67
|
+
formatter: ["formatDict", "SU.GENDER"]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
field: "enabled",
|
|
71
|
+
width: 100,
|
|
72
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
field: "operate",
|
|
76
|
+
width: 150,
|
|
77
|
+
fixed: "right",
|
|
78
|
+
slots: { default: ({ row: e }) => {
|
|
79
|
+
let t = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", n = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", r = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
|
|
80
|
+
return [c(i, null, [c(h("ut-button"), {
|
|
81
|
+
icon: "ri-edit-box-line",
|
|
82
|
+
content: "edit",
|
|
83
|
+
onTap: () => j(e)
|
|
84
|
+
}, null), c(h("ut-button"), {
|
|
85
|
+
icon: n,
|
|
86
|
+
content: t,
|
|
87
|
+
status: r,
|
|
88
|
+
onTap: () => M(e)
|
|
89
|
+
}, null)])];
|
|
90
|
+
} }
|
|
91
|
+
}
|
|
92
|
+
], k = { toolbarButtonClick({ code: e }) {
|
|
93
|
+
e === "add" && A();
|
|
94
|
+
} }, A = () => {
|
|
95
|
+
if (!w.value?.deptName) return _("请先选择部门");
|
|
96
|
+
T.dataStatus = "add", T.record = {}, T.record.departmentId = w.value?.id, T.record.deptName = w.value.deptName, T.record.enabled = "1", T.showModelView = !0;
|
|
97
|
+
}, j = (e) => {
|
|
98
|
+
T.dataStatus = "update", T.record = e, T.showModelView = !0;
|
|
99
|
+
}, M = async (e) => {
|
|
100
|
+
let n = v(e, !0);
|
|
101
|
+
l.value.showLoading(), n.enabled = n.enabled === "1" ? "0" : "1", await t().put(S, n), l.value.hiddenLoading(), l.value.refreshData();
|
|
102
|
+
}, N = async () => {
|
|
103
|
+
if (await b.modal.confirm(C("message.tip.confirmSync")) !== "confirm") return;
|
|
104
|
+
l.value.showLoading();
|
|
105
|
+
let [e] = await n(t().post("/uums/employee/syncEwEmp", {}));
|
|
106
|
+
l.value.hiddenLoading(), !e && l.value.refreshData();
|
|
107
|
+
}, P = async () => {
|
|
108
|
+
let e = l.value.getSelectRecords();
|
|
109
|
+
if (!e.length) return;
|
|
110
|
+
l.value.showLoading();
|
|
111
|
+
let [r] = await n(t().post("/uums/employee/bindUser", e));
|
|
112
|
+
l.value.hiddenLoading(), !r && l.value.refreshData();
|
|
113
|
+
}, F = (e) => {
|
|
114
|
+
e === "sync" && N(), e === "bindUser" && P();
|
|
115
|
+
}, I = { querySuccess: (e) => {} }, L = () => {
|
|
116
|
+
T.showModelView = !1, l.value.refreshData();
|
|
117
|
+
};
|
|
118
|
+
return (e, t) => {
|
|
119
|
+
let n = h("ut-grid");
|
|
120
|
+
return f(), s("div", x, [c(n, {
|
|
121
|
+
ref_key: "xgrid",
|
|
122
|
+
ref: l,
|
|
123
|
+
items: D,
|
|
124
|
+
columns: O,
|
|
125
|
+
"default-params": T.fetchExtParam,
|
|
126
|
+
events: k,
|
|
127
|
+
"auto-load": !1,
|
|
128
|
+
buttons: E,
|
|
129
|
+
url: S,
|
|
130
|
+
callback: I,
|
|
131
|
+
mode: "form",
|
|
132
|
+
onButtonClick: F
|
|
133
|
+
}, null, 8, ["default-params"]), T.showModelView ? (f(), a(r, {
|
|
134
|
+
key: 0,
|
|
135
|
+
record: T.record,
|
|
136
|
+
"data-status": T.dataStatus,
|
|
137
|
+
onOnClose: L
|
|
138
|
+
}, null, 8, ["record", "data-status"])) : o("", !0)]);
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
}), w = /* @__PURE__ */ e({ default: () => T }), T = C;
|
|
142
|
+
//#endregion
|
|
143
|
+
export { w as n, T as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
+
import { t } from "./SysUserPanel-DI6CWcZo.js";
|
|
3
|
+
import { createElementBlock as n, createVNode as r, defineComponent as i, openBlock as a, provide as o, ref as s } from "vue";
|
|
4
|
+
//#region src/views/system/sysUser/SysUser.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var c = { class: "u-content-panel1" }, l = /* @__PURE__ */ e(/* @__PURE__ */ i({
|
|
6
|
+
__name: "SysUser",
|
|
7
|
+
setup(e) {
|
|
8
|
+
return o("treeList", s([])), (e, i) => (a(), n("div", c, [r(t)]));
|
|
9
|
+
}
|
|
10
|
+
}), [["__scopeId", "data-v-8708bc91"]]);
|
|
11
|
+
//#endregion
|
|
12
|
+
export { l as default };
|