@utogether/udp-core 2.0.0-beta.26 → 2.0.0-beta.27
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 +65 -0
- package/dist/404-Se2SF97M.js +65 -0
- package/dist/500-B6j9AqLo.js +67 -0
- package/dist/AuthorityInfo-CQ8ydZvr.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js +100 -0
- package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
- package/dist/Company-BzSVBSC4.js +25 -0
- package/dist/CompanyPanel-DBjZB4aJ.js +204 -0
- package/dist/DataSet-iBHzs75s.js +147 -0
- package/dist/Department-BkgseHo8.js +25 -0
- package/dist/DepartmentPanel-Sen93_2M.js +249 -0
- package/dist/DesignPanel-pqDcwaFC.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js +1013 -0
- package/dist/DictView-CJLG4LlE.js +110 -0
- package/dist/InvOrganization-D0Jq1IAa.js +74 -0
- package/dist/Org-CO_1WT39.js +39 -0
- package/dist/Preview-DLI4Bwel.js +48 -0
- package/dist/ReportDefine-Cw46OnJ_.js +10 -0
- package/dist/ReportDesign-D4sHTXT7.js +165 -0
- package/dist/ReportQuery-DtOCvQSN.js +74 -0
- package/dist/ReportQueryFrom-QjL-ETPq.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js +177 -0
- package/dist/ReportTemplate-BxAgc_Aj.js +161 -0
- package/dist/Role-Df77BBD-.js +25 -0
- package/dist/RoleAssign-BrunouML.js +26 -0
- package/dist/RolePanel-DSVwqhiD.js +4 -0
- package/dist/RolePanel-HLA7XBlN.js +4 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js +132 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js +152 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js +99 -0
- package/dist/Staff-BeL1xcRf.js +26 -0
- package/dist/StaffInfo-CIfnltyX.js +4 -0
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js +107 -0
- package/dist/StaffPanel-BV2CHWac.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js +153 -0
- package/dist/SysUser-DPfNvthk.js +15 -0
- package/dist/SysUserPanel-CoLKYlQE.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js +353 -0
- package/dist/SystemMenu-sdj1dRDA.js +156 -0
- package/dist/UserInfo-CTX4hhFl.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js +160 -0
- package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
- package/dist/childView-BDmWwJO5.js +4 -0
- package/dist/childView-Dx3ACtHa.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js +183 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js +143 -0
- package/dist/code-rule-cvN4gYC_.js +148 -0
- package/dist/core.es.js +24 -6
- package/dist/cron-task-B0TkxFdp.js +135 -0
- package/dist/flow-task-PoDnE_kE.js +10 -0
- package/dist/frameView-5cy5BSgS.js +43 -0
- package/dist/img/minicolors.png +0 -0
- package/dist/index-C5WRTwvI.js +3006 -0
- package/dist/layout-home-DrARg-3o.js +232 -0
- package/dist/layoutView-25v_ngk5.js +3191 -0
- package/dist/log-in-Bmz5Uhbt.js +116 -0
- package/dist/log-out-B-8m3oNj.js +130 -0
- package/dist/login-Cmp2RvvW.js +217 -0
- package/dist/login-log-CVvRgZSu.js +70 -0
- package/dist/lov-view-BATtzw2X.js +99 -0
- package/dist/menuInfo-BIvrE7nm.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js +360 -0
- package/dist/pda-app-CzHVyeEa.js +707 -0
- package/dist/redirect-DTz8GSnv.js +15 -0
- package/dist/resource-Y5lGB38n.js +97 -0
- package/dist/su-welcome-CXA6OzBw.js +878 -0
- package/dist/sys-config-CqO03LeC.js +385 -0
- package/dist/udp-core.css +1 -2
- package/dist/useNav-C-rCgubt.js +84 -0
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/dist/wecom-push-B75FLee5.js +70 -0
- package/index.ts +3 -2
- package/package.json +1 -1
- package/src/App.vue +79 -78
- package/src/api/index.ts +1 -1
- package/src/components/SuQrcode/src/index.tsx +231 -236
- package/src/layout/components/lay-panel/index.vue +2 -6
- package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
- package/src/main.ts +25 -23
- package/src/router/index.ts +156 -187
- package/src/store/modules/system.ts +7 -0
- package/src/style/vxetable.scss +372 -364
- package/src/utils/authority/index.ts +46 -29
- package/src/utils/udp/http/index.ts +115 -64
- package/src/utils/udp/http/types.d.ts +15 -14
- package/src/views/login/login-view.vue +4 -21
- package/src/views/organization/department/DepartmentPanel.vue +3 -4
- package/src/views/system/sys/sys-config.vue +344 -344
- package/src/views/uhome/components/home-todo.vue +179 -178
- package/src/views/ulogin/login.vue +5 -9
- package/tsconfig.json +2 -3
- package/types/global.d.ts +234 -234
- package/vite.config.ts +2 -1
- package/dist/403-D6Wb3JJh.js +0 -72
- package/dist/404-B_HNbPNV.js +0 -72
- package/dist/500-BMemTTy1.js +0 -77
- package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
- package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
- package/dist/Company-BLXSfow0.js +0 -21
- package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
- package/dist/DataSet-CuGZcKC-.js +0 -141
- package/dist/Department-oFhsa7cd.js +0 -21
- package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
- package/dist/DepartmentPanel-BL58AdoT.js +0 -2
- package/dist/DesignPanel-DmkFVw1N.js +0 -1196
- package/dist/DictView-CC5yMzOq.js +0 -100
- package/dist/File-WJXjGYxr.js +0 -89
- package/dist/InvOrganization-BwMmD8Ua.js +0 -76
- package/dist/Org-HgnOWubi.js +0 -76
- package/dist/Preview-CAzWxLmP.js +0 -45
- package/dist/ReIcon-DecitXmg.js +0 -413
- package/dist/ReportDefine-BgLM-Rjk.js +0 -10
- package/dist/ReportDesign-DwchGG2P.js +0 -158
- package/dist/ReportQuery-D5jaRJEn.js +0 -101
- package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
- package/dist/ReportTemplate-CNcTmccs.js +0 -162
- package/dist/Role-Be8WfdCA.js +0 -21
- package/dist/RoleAssign-CtehGAUf.js +0 -22
- package/dist/RolePanel-CAwITg_q.js +0 -131
- package/dist/RolePanel-SN0FGFZ7.js +0 -176
- package/dist/ScrollPanel-DW30pGz1.js +0 -88
- package/dist/Staff-V2YsNKcj.js +0 -22
- package/dist/StaffInfo-CKRPW0r4.js +0 -149
- package/dist/StaffPanel-BxcgMg7u.js +0 -143
- package/dist/SysUser-Dxyj5w5m.js +0 -12
- package/dist/SysUserPanel-DI6CWcZo.js +0 -365
- package/dist/SystemMenu-BBHREM8T.js +0 -154
- package/dist/UserInfo-BMVQ0xwE.js +0 -194
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
- package/dist/api-BFNxcxSN.js +0 -30
- package/dist/authority-BJFEUdrh.js +0 -20
- package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
- package/dist/childView-BBjPEraB.js +0 -184
- package/dist/childView-DNqG2UVm.js +0 -181
- package/dist/code-rule-QFrhqFrW.js +0 -151
- package/dist/contant-Q77dU_V3.js +0 -4
- package/dist/cron-task-BpUDKEAU.js +0 -131
- package/dist/flow-task-DAc2NrDU.js +0 -11
- package/dist/frameView-Di0zJZUR.js +0 -39
- package/dist/layout-home-BVp7vYLR.js +0 -239
- package/dist/layoutView-B6Mx2ERA.js +0 -2662
- package/dist/log-in-BrNB0mLz.js +0 -117
- package/dist/log-out-dYfqvzy6.js +0 -111
- package/dist/login-D_Hjy3Jd.js +0 -231
- package/dist/login-log-CJak-ANA.js +0 -79
- package/dist/lov-view-DM5Nm5tW.js +0 -95
- package/dist/menuInfo-BlOY1KZW.js +0 -346
- package/dist/mitt-CQgI7DYU.js +0 -27
- package/dist/pda-app-CA7YI37u.js +0 -589
- package/dist/redirect-N0k4tImU.js +0 -16
- package/dist/resource-CfQTHFcs.js +0 -94
- package/dist/su-welcome-DVD3S_du.js +0 -799
- package/dist/sys-config-Ddb3vBpK.js +0 -316
- package/dist/system-Cm3lyBas.js +0 -1528
- package/dist/udp-core-DaQd5CF1.js +0 -2028
- package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
- package/dist/useNav-BhOJIdrJ.js +0 -106
- package/dist/utogether-l7JXs4Lv.js +0 -4
- package/dist/water-mark-WDQZ9YqB.js +0 -119
- package/dist/wecom-push-kWkAVRCj.js +0 -77
|
@@ -1,176 +0,0 @@
|
|
|
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 };
|
|
@@ -1,88 +0,0 @@
|
|
|
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 };
|
package/dist/Staff-V2YsNKcj.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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 };
|
|
@@ -1,149 +0,0 @@
|
|
|
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 };
|
|
@@ -1,143 +0,0 @@
|
|
|
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 };
|
package/dist/SysUser-Dxyj5w5m.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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 };
|