@utogether/udp-core 2.0.0-beta.3 → 2.0.0-beta.5
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-CxOqlq0f.js → 403-y4Id7pky.js} +1 -1
- package/dist/{404-xdB6lFeQ.js → 404-DdxstlUr.js} +1 -1
- package/dist/{500-C94bRK2S.js → 500-BpsDn21g.js} +1 -1
- package/dist/{AuthorityInfo-Dy3b_nFN.js → AuthorityInfo-0CnlrZVd.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY.js → AuthorityInfo.vue_vue_type_style_index_0_lang-D5cXM84w.js} +1 -1
- package/dist/{Company-gKkfnhLt.js → Company-BPAqJfZm.js} +3 -3
- package/dist/{CompanyPanel-BF5Pc35s.js → CompanyPanel-CCeM96w4.js} +7 -7
- package/dist/{Department-D0I3QVZe.js → Department-BsLrIIrS.js} +3 -3
- package/dist/{DepartmentPanel-2LHODgc7.js → DepartmentPanel-B2YqwLmq.js} +20 -20
- package/dist/{DesignPanel-CtF3cAAQ.js → DesignPanel-CVSOCMvU.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt.js → DesignPanel.vue_vue_type_style_index_0_lang-Dte8DQnU.js} +2 -2
- package/dist/{DictView-H3V5hxg3.js → DictView-CKVpPtFg.js} +1 -1
- package/dist/{InvOrganization-BiGLnbqe.js → InvOrganization-BBODO8aK.js} +1 -1
- package/dist/{Org-DQTCQHNY.js → Org-BYRi0OAt.js} +1 -1
- package/dist/{Preview-DXaiis29.js → Preview-COI8NwWh.js} +1 -1
- package/dist/{ReportDefine-BLh4CiER.js → ReportDefine-Dbh_8ykf.js} +1 -1
- package/dist/{ReportDesign-Ni1YxrLC.js → ReportDesign-DOeKYL9V.js} +6 -6
- package/dist/{ReportQuery-C8G88_qF.js → ReportQuery-Bb4r9lNR.js} +1 -1
- package/dist/{ReportQueryFrom-CuZKPtB4.js → ReportQueryFrom-CavcWtL3.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-tuLRWEK9.js} +7 -7
- package/dist/{ReportTemplate-DFnDXWmx.js → ReportTemplate-C9NzPxM4.js} +8 -8
- package/dist/{Role-BQ7hsfPn.js → Role-Bqt4d9Lz.js} +3 -3
- package/dist/{RoleAssign-UPCg2d4G.js → RoleAssign-CWcytVz3.js} +3 -3
- package/dist/{RolePanel-CoSXOCZN.js → RolePanel-Di5nsMqt.js} +1 -1
- package/dist/{RolePanel-C-mQ5XRq.js → RolePanel-DlU0aCnL.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF.js → RolePanel.vue_vue_type_script_setup_true_lang-BOq0iJsT.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8.js → RolePanel.vue_vue_type_script_setup_true_lang-hzbUepuW.js} +7 -7
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js → ScrollPanel.vue_vue_type_style_index_0_lang-Bg3rg4P4.js} +1 -1
- package/dist/{Staff-D-CmvG1R.js → Staff-DXr2Ka1N.js} +3 -3
- package/dist/{StaffInfo-Idhvuc6e.js → StaffInfo-C6lDK0S_.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js → StaffInfo.vue_vue_type_script_setup_true_lang-YRJm87-b.js} +1 -1
- package/dist/{StaffPanel-CDDmAYE5.js → StaffPanel-WNpg0HWl.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee.js → StaffPanel.vue_vue_type_script_setup_true_lang-azLpvFRo.js} +8 -8
- package/dist/{SysUser-a-j5bppr.js → SysUser-Dph6Qi_a.js} +2 -2
- package/dist/{SysUserPanel-6V232wwB.js → SysUserPanel-Iz024NS_.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js → SysUserPanel.vue_vue_type_script_setup_true_lang-D8GUQHic.js} +1 -1
- package/dist/{SystemMenu-BnVeOSOQ.js → SystemMenu-6mTYGwbK.js} +6 -6
- package/dist/{UserInfo-Cax9b2nw.js → UserInfo-RQ7VgSbk.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js → UserInfo.vue_vue_type_style_index_0_lang-BYp2-i9R.js} +1 -1
- package/dist/{childView-DKG3eZo8.js → childView-B8L4By2o.js} +1 -1
- package/dist/{childView-siumuBz0.js → childView-nCa8t4tr.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js → childView.vue_vue_type_style_index_0_lang-Bl1MzDS9.js} +7 -7
- package/dist/{childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js → childView.vue_vue_type_style_index_0_lang-DDx9z61J.js} +7 -7
- package/dist/{code-rule-Dtoree6F.js → code-rule-8dQLPHni.js} +1 -1
- package/dist/core.es.js +10 -10
- package/dist/{cron-task-GSRgA7S5.js → cron-task-aDBWT_Uh.js} +1 -1
- package/dist/{frameView-Cy6wxW0K.js → frameView-DM3flfo5.js} +1 -1
- package/dist/{index-Dc7xWMiC.js → index-ClHeZ3q4.js} +88 -88
- package/dist/{layout-home-3Dy4onl4.js → layout-home-DNPOu6R4.js} +27 -23
- package/dist/{layoutView-DMjNscJ-.js → layoutView-Ymyja_uK.js} +1 -1
- package/dist/{log-in-VAG6Cvcx.js → log-in-DtHf5ZcG.js} +8 -8
- package/dist/{log-out-DZGaMCjC.js → log-out-DZ8OkPM6.js} +3 -3
- package/dist/{login-CqVMdNHs.js → login-CoX7TNHE.js} +15 -15
- package/dist/{lov-view-Cc68_28B.js → lov-view-BWtIPBNm.js} +6 -6
- package/dist/{menuInfo-BIrIaJlH.js → menuInfo-wG5Zt00s.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js → menuInfo.vue_vue_type_style_index_0_lang-DiPeALce.js} +1 -1
- package/dist/{pda-app-DnjphrRS.js → pda-app-9b3JC2he.js} +8 -8
- package/dist/{resource-DISgPDM7.js → resource-DiHXYgfm.js} +4 -4
- package/dist/{su-welcome-CYYy-dzr-D3RKPoB0.js → su-welcome-COvSPTOW.js} +21215 -21131
- package/dist/{sys-config-Yc9vh1t1.js → sys-config-Mm50Y0LQ.js} +12 -12
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/views/system/layout/layout-home.vue +6 -5
- package/src/views/ufile/aggregation/File.vue +87 -87
- package/src/views/uhome/components/home-todo.vue +6 -6
- package/src/views/uhome/su-welcome.vue +2 -4
- package/vite.config.ts +0 -1
- package/dist/403-WCboRvzZ-ZAPgYStl.js +0 -65
- package/dist/404-2V0Qi-d7-DkNwQggp.js +0 -65
- package/dist/500-BYfzvixf-CGpEieyQ.js +0 -67
- package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5.js +0 -4
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz.js +0 -100
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +0 -4
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +0 -114
- package/dist/Company-B4vsXy2I-CkNCOqjJ.js +0 -25
- package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_.js +0 -206
- package/dist/DataSet-DT-rGICv-DaUfgbxk.js +0 -147
- package/dist/Department-D0dVUrGC-C6HJcYI1.js +0 -25
- package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd.js +0 -254
- package/dist/DesignPanel-DdFl_ohi-uCwFxcl1.js +0 -4
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY.js +0 -1013
- package/dist/DictView-BzQLOf_P-DDicwdmM.js +0 -111
- package/dist/InvOrganization-atbhw0CI-BABbVt9V.js +0 -74
- package/dist/Org-BW1YHG-Q-Cow7JWlD.js +0 -39
- package/dist/Preview-DJtVsoq1-CCGidQjJ.js +0 -48
- package/dist/ReportDefine-CNx_ob99-6NQAHK-Q.js +0 -10
- package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp.js +0 -165
- package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda.js +0 -75
- package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy.js +0 -4
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl.js +0 -178
- package/dist/ReportTemplate-BDANdIWv-D_IGjR1w.js +0 -161
- package/dist/Role-ByB0WbxW-5E8Mb148.js +0 -25
- package/dist/RoleAssign-DW6iC_0v-Bis61auk.js +0 -26
- package/dist/RolePanel-BM2MaQPU-CgcsbfaX.js +0 -4
- package/dist/RolePanel-ClQy8DBL-DARL4O-o.js +0 -4
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js +0 -154
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js +0 -100
- package/dist/Staff-CuxzvhD9-D0KTcyRh.js +0 -25
- package/dist/StaffInfo-CY7gUICu-EZUhUwIp.js +0 -4
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js +0 -108
- package/dist/StaffPanel-CwqG0_xr-CrvzLJoc.js +0 -4
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js +0 -143
- package/dist/SysUser-9Q2UJWhi-DprWXFlR.js +0 -15
- package/dist/SysUserPanel-bJy69O7x-BJtBgFEs.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js +0 -356
- package/dist/SystemMenu-DGOAolc1-CJSLHP8i.js +0 -156
- package/dist/UserInfo-CKoOHkAM-DDWp0I_U.js +0 -4
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js +0 -160
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +0 -10
- package/dist/childView-0YZQ6GBn-CEqg7k5d.js +0 -4
- package/dist/childView-DKkgi3yo-D47ft-vi.js +0 -4
- package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js +0 -143
- package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js +0 -180
- package/dist/code-rule-wQyfgpNL-C4evD4Co.js +0 -148
- package/dist/cron-task-C-kryDtd-C0NuGZCe.js +0 -135
- package/dist/flow-task-B07st2aD-CgQvagSQ.js +0 -10
- package/dist/frameView-BOGA3ezf-QoSxzmSQ.js +0 -44
- package/dist/layout-home-CYHksXN_-Basy-3IH.js +0 -228
- package/dist/layoutView-BaRvAbIa-xVgfqspc.js +0 -3302
- package/dist/log-in-Cx1dGik8-BVeEHeZ8.js +0 -117
- package/dist/log-out-COYdxrNC-ftopGZdE.js +0 -130
- package/dist/login-Dg9ofNS8-Bocp1XMA.js +0 -241
- package/dist/login-log-DJBGJVV0-AoOyj0jD.js +0 -70
- package/dist/lov-view-C0T5prk8-B2DBmn55.js +0 -97
- package/dist/menuInfo-BZJ_q7bz-Drho-_QC.js +0 -4
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js +0 -363
- package/dist/pda-app-m9hsppHo-B4xyja1o.js +0 -710
- package/dist/redirect-BqegffKC-CBCIuqmz.js +0 -15
- package/dist/resource-C6KEIXu--B_ddyecm.js +0 -97
- package/dist/su-welcome-BjbuSrBZ.js +0 -49424
- package/dist/sys-config-DCjJGtht-DARDjlrt.js +0 -370
- package/dist/utogether-MlnyYtNS-CGgjFNPS.js +0 -4
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, ref as k, inject as f, watch as A, nextTick as M, resolveComponent as p, createElementBlock as O, openBlock as v, withModifiers as V, createElementVNode as a, createBlock as C, createCommentVNode as x, createVNode as y, toDisplayString as g, withCtx as j, normalizeClass as K } from "vue";
|
|
2
|
-
import { W as L } from "./su-welcome-BjbuSrBZ.js";
|
|
3
|
-
const S = { class: "u-panel-header" }, W = { class: "u-panel-content system-scrollbar" }, R = /* @__PURE__ */ _({
|
|
4
|
-
__name: "ScrollPanel",
|
|
5
|
-
props: {
|
|
6
|
-
title: {},
|
|
7
|
-
url: {},
|
|
8
|
-
showAllButton: { type: Boolean, default: !1 },
|
|
9
|
-
treeOtions: { default: () => ({
|
|
10
|
-
children: "children",
|
|
11
|
-
label: "label"
|
|
12
|
-
}) },
|
|
13
|
-
defaultParams: { default: () => ({}) }
|
|
14
|
-
},
|
|
15
|
-
setup(b, { expose: w }) {
|
|
16
|
-
const h = b, r = k([]), o = k(null), s = f("active"), c = f("scrollPanelChange"), B = f("treeList");
|
|
17
|
-
A(
|
|
18
|
-
() => c.value,
|
|
19
|
-
() => {
|
|
20
|
-
c.value && u();
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
const u = async (t = {}) => {
|
|
24
|
-
const l = Object.assign(t, h.defaultParams), e = await L().get(h.url, l);
|
|
25
|
-
r.value = e.list || e, B.value = e.list || e, s.value = e.list ? e.list[0] : e[0], M(() => {
|
|
26
|
-
var n;
|
|
27
|
-
o.value && (o == null || o.value.setCurrentKey(((n = s.value) == null ? void 0 : n.id) || ""));
|
|
28
|
-
}), c.value = !1;
|
|
29
|
-
}, E = (t) => {
|
|
30
|
-
s.value = t;
|
|
31
|
-
}, P = () => {
|
|
32
|
-
s.value = {};
|
|
33
|
-
}, d = (t, l) => {
|
|
34
|
-
t.forEach((e) => {
|
|
35
|
-
var n;
|
|
36
|
-
o.value.store.nodesMap[e.id].expanded = l, (n = e.children) != null && n.length && d(e.children, l);
|
|
37
|
-
});
|
|
38
|
-
}, m = () => {
|
|
39
|
-
u();
|
|
40
|
-
};
|
|
41
|
-
return w({
|
|
42
|
-
onRefresh: m
|
|
43
|
-
}), u(), (t, l) => {
|
|
44
|
-
const e = p("ut-button"), n = p("vxe-button"), N = p("el-tree");
|
|
45
|
-
return v(), O("div", {
|
|
46
|
-
class: "u-scroll-panel",
|
|
47
|
-
onClick: V(P, ["prevent"])
|
|
48
|
-
}, [
|
|
49
|
-
a("div", S, [
|
|
50
|
-
a("h2", null, g(t.title), 1),
|
|
51
|
-
t.showAllButton ? (v(), C(e, {
|
|
52
|
-
key: 0,
|
|
53
|
-
content: "BtnExpand",
|
|
54
|
-
onClick: l[0] || (l[0] = (i) => d(r.value, !0))
|
|
55
|
-
})) : x("", !0),
|
|
56
|
-
t.showAllButton ? (v(), C(e, {
|
|
57
|
-
key: 1,
|
|
58
|
-
status: "warning",
|
|
59
|
-
content: "BtnCollapse",
|
|
60
|
-
onClick: l[1] || (l[1] = (i) => d(r.value, !1))
|
|
61
|
-
})) : x("", !0),
|
|
62
|
-
y(n, {
|
|
63
|
-
icon: "vxe-icon-refresh",
|
|
64
|
-
onClick: m
|
|
65
|
-
})
|
|
66
|
-
]),
|
|
67
|
-
a("div", W, [
|
|
68
|
-
y(N, {
|
|
69
|
-
ref_key: "tree",
|
|
70
|
-
ref: o,
|
|
71
|
-
data: r.value,
|
|
72
|
-
props: t.treeOtions,
|
|
73
|
-
"expand-on-click-node": !1,
|
|
74
|
-
style: { "background-color": "#fff" },
|
|
75
|
-
class: "u-tree-panel",
|
|
76
|
-
"node-key": "id",
|
|
77
|
-
"highlight-current": "",
|
|
78
|
-
onNodeClick: E
|
|
79
|
-
}, {
|
|
80
|
-
default: j(({ node: i }) => [
|
|
81
|
-
a("span", {
|
|
82
|
-
class: K(["prefix", { "is-leaf": i.isLeaf }])
|
|
83
|
-
}, l[2] || (l[2] = [
|
|
84
|
-
a("i", {
|
|
85
|
-
class: "ri-folder-2-fill ri-lg mr-1",
|
|
86
|
-
style: { color: "#fadb14" }
|
|
87
|
-
}, null, -1)
|
|
88
|
-
]), 2),
|
|
89
|
-
a("span", null, g(i.label), 1)
|
|
90
|
-
]),
|
|
91
|
-
_: 1
|
|
92
|
-
}, 8, ["data", "props"])
|
|
93
|
-
])
|
|
94
|
-
]);
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
export {
|
|
99
|
-
R as K
|
|
100
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, ref as e, createElementBlock as m, provide as t, openBlock as i, createElementVNode as a, createVNode as n } from "vue";
|
|
2
|
-
import { K as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js";
|
|
3
|
-
import { Q as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js";
|
|
4
|
-
import { t as f } from "./su-welcome-BjbuSrBZ.js";
|
|
5
|
-
const u = { class: "u-content-panel" }, v = { class: "u-left-panel" }, h = { class: "content" }, N = { name: "StaffPanel" }, B = /* @__PURE__ */ c({
|
|
6
|
-
...N,
|
|
7
|
-
setup(C) {
|
|
8
|
-
const o = e(!1), r = e([]), l = e({});
|
|
9
|
-
return t("scrollPanelChange", o), t("active", l), t("treeList", r), (s, P) => (i(), m("div", u, [
|
|
10
|
-
a("div", v, [
|
|
11
|
-
n(p, {
|
|
12
|
-
title: s.$t("department"),
|
|
13
|
-
url: "/uums/department/treeDepartment",
|
|
14
|
-
"tree-otions": { children: "children", label: "deptName" }
|
|
15
|
-
}, null, 8, ["title"])
|
|
16
|
-
]),
|
|
17
|
-
a("div", h, [
|
|
18
|
-
n(d)
|
|
19
|
-
])
|
|
20
|
-
]));
|
|
21
|
-
}
|
|
22
|
-
}), b = /* @__PURE__ */ f(B, [["__scopeId", "data-v-021a8a4e"]]);
|
|
23
|
-
export {
|
|
24
|
-
b as default
|
|
25
|
-
};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, ref as m, onMounted as x, resolveComponent as a, createElementBlock as E, openBlock as T, createVNode as r, withCtx as c } from "vue";
|
|
2
|
-
import { useRender as _ } from "@utogether/utils";
|
|
3
|
-
import { W as v } from "./su-welcome-BjbuSrBZ.js";
|
|
4
|
-
const U = { class: "config" }, F = /* @__PURE__ */ b({
|
|
5
|
-
__name: "StaffInfo",
|
|
6
|
-
props: {
|
|
7
|
-
show: { type: Boolean, default: !0 },
|
|
8
|
-
record: { default: () => ({}) },
|
|
9
|
-
dataStatus: { default: "detail" }
|
|
10
|
-
},
|
|
11
|
-
emits: ["onClose"],
|
|
12
|
-
setup(y, { emit: R }) {
|
|
13
|
-
const i = y, t = _(), n = m({}), p = m(null), s = m(!1), w = { userName: "userName", userId: "id" }, I = { disabled: i.dataStatus !== "add" }, N = [
|
|
14
|
-
{
|
|
15
|
-
field: "employeeCode",
|
|
16
|
-
required: !0,
|
|
17
|
-
span: 8,
|
|
18
|
-
itemRender: t.renderInput({ props: I })
|
|
19
|
-
},
|
|
20
|
-
{ field: "employeeName", required: !0, span: 8, itemRender: t.renderInput() },
|
|
21
|
-
{ field: "gender", span: 8, itemRender: t.renderDict("SU.GENDER") },
|
|
22
|
-
{
|
|
23
|
-
field: "deptName",
|
|
24
|
-
required: !0,
|
|
25
|
-
span: 8,
|
|
26
|
-
itemRender: t.renderLov({ code: "SU.DEPARTMENT", field: "deptName" }, C)
|
|
27
|
-
},
|
|
28
|
-
{ field: "email", span: 8, itemRender: t.renderInput() },
|
|
29
|
-
{ field: "identity", span: 8, itemRender: t.renderInput() },
|
|
30
|
-
{ field: "employeeDate", span: 8, itemRender: t.renderDate() },
|
|
31
|
-
{ field: "solarDay", span: 8, itemRender: t.renderDate() },
|
|
32
|
-
{ field: "phone", span: 8, itemRender: t.renderInput() },
|
|
33
|
-
{ field: "mobile", span: 8, itemRender: t.renderInput() },
|
|
34
|
-
{
|
|
35
|
-
field: "attribute5",
|
|
36
|
-
title: "message.releateUser",
|
|
37
|
-
span: 8,
|
|
38
|
-
itemRender: t.renderSysUser({ mapField: w })
|
|
39
|
-
}
|
|
40
|
-
];
|
|
41
|
-
function C(e) {
|
|
42
|
-
var d, o, l;
|
|
43
|
-
e.row.deptName = ((d = e.item) == null ? void 0 : d.deptName) || e.row.deptName, e.row.deptCode = ((o = e.item) == null ? void 0 : o.deptCode) || e.row.deptCode, e.row.departmentId = ((l = e.item) == null ? void 0 : l.id) || e.row.departmentId;
|
|
44
|
-
}
|
|
45
|
-
const g = R, S = () => {
|
|
46
|
-
p.value.validateForm(async (e) => {
|
|
47
|
-
if (!e) {
|
|
48
|
-
const { dataStatus: d } = i;
|
|
49
|
-
s.value = !0, d === "add" ? await v().post("/uums/employee", n.value) : await v().put("/uums/employee", n.value), s.value = !1, u();
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
function u() {
|
|
54
|
-
g("onClose");
|
|
55
|
-
}
|
|
56
|
-
return x(() => {
|
|
57
|
-
n.value = i.record;
|
|
58
|
-
}), (e, d) => {
|
|
59
|
-
const o = a("ut-form"), l = a("el-divider"), f = a("ut-button"), D = a("el-row"), h = a("el-drawer");
|
|
60
|
-
return T(), E("div", U, [
|
|
61
|
-
r(h, {
|
|
62
|
-
"model-value": e.show,
|
|
63
|
-
"before-close": u,
|
|
64
|
-
direction: "rtl",
|
|
65
|
-
title: e.$t("message.title.employeeInfo"),
|
|
66
|
-
"destroy-on-close": "",
|
|
67
|
-
size: "66%"
|
|
68
|
-
}, {
|
|
69
|
-
default: c(() => [
|
|
70
|
-
r(o, {
|
|
71
|
-
ref_key: "suFormRef",
|
|
72
|
-
ref: p,
|
|
73
|
-
record: n.value,
|
|
74
|
-
loading: s.value,
|
|
75
|
-
items: N,
|
|
76
|
-
"data-status": e.dataStatus
|
|
77
|
-
}, null, 8, ["record", "loading", "data-status"]),
|
|
78
|
-
r(l),
|
|
79
|
-
r(D, {
|
|
80
|
-
type: "flex",
|
|
81
|
-
justify: "end",
|
|
82
|
-
style: { "padding-right": "22px" }
|
|
83
|
-
}, {
|
|
84
|
-
default: c(() => [
|
|
85
|
-
r(f, {
|
|
86
|
-
content: "cancel",
|
|
87
|
-
icon: "ri-close-fill",
|
|
88
|
-
onTap: u
|
|
89
|
-
}),
|
|
90
|
-
r(f, {
|
|
91
|
-
content: "confirm",
|
|
92
|
-
icon: "ri-save-3-fill",
|
|
93
|
-
status: "u-cyan",
|
|
94
|
-
onTap: S
|
|
95
|
-
})
|
|
96
|
-
]),
|
|
97
|
-
_: 1
|
|
98
|
-
})
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["model-value", "title"])
|
|
102
|
-
]);
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
export {
|
|
107
|
-
F as x
|
|
108
|
-
};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as C, inject as S, reactive as V, watch as D, nextTick as B, resolveComponent as d, createElementBlock as M, openBlock as c, createVNode as n, createBlock as L, createCommentVNode as I, Fragment as P } from "vue";
|
|
2
|
-
import { useI18n as _ } from "vue-i18n";
|
|
3
|
-
import { clone as T } from "xe-utils";
|
|
4
|
-
import { warnMessage as U } from "@utogether/utils";
|
|
5
|
-
import { x as Y } from "./StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js";
|
|
6
|
-
import { W as i } from "./su-welcome-BjbuSrBZ.js";
|
|
7
|
-
import { VxeUI as j } from "vxe-pc-ui";
|
|
8
|
-
import { c as q } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
|
|
9
|
-
const A = {
|
|
10
|
-
class: "page-content"
|
|
11
|
-
}, s = "/uums/employee", K = /* @__PURE__ */ N({
|
|
12
|
-
__name: "StaffPanel",
|
|
13
|
-
setup(O) {
|
|
14
|
-
const a = C(null), {
|
|
15
|
-
t: u
|
|
16
|
-
} = _(), r = S("active"), t = V({
|
|
17
|
-
record: {},
|
|
18
|
-
showModelView: !1,
|
|
19
|
-
fetchExtParam: {}
|
|
20
|
-
});
|
|
21
|
-
D(() => r.value, () => {
|
|
22
|
-
t.fetchExtParam = {
|
|
23
|
-
departmentId: null
|
|
24
|
-
}, B(() => {
|
|
25
|
-
a.value.refreshData();
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
const m = [{
|
|
29
|
-
code: "sync",
|
|
30
|
-
auth: "wechat",
|
|
31
|
-
status: "success",
|
|
32
|
-
icon: "ri-refresh-line"
|
|
33
|
-
}, {
|
|
34
|
-
code: "sync",
|
|
35
|
-
auth: "dingding",
|
|
36
|
-
status: "success",
|
|
37
|
-
icon: "ri-refresh-line"
|
|
38
|
-
}, {
|
|
39
|
-
code: "sync",
|
|
40
|
-
auth: "OA",
|
|
41
|
-
status: "success",
|
|
42
|
-
icon: "ri-refresh-line"
|
|
43
|
-
}, {
|
|
44
|
-
code: "del",
|
|
45
|
-
auth: "/"
|
|
46
|
-
}], f = [{
|
|
47
|
-
field: "employeeCode"
|
|
48
|
-
}, {
|
|
49
|
-
field: "employeeName"
|
|
50
|
-
}], p = [{
|
|
51
|
-
type: "checkbox",
|
|
52
|
-
width: 50,
|
|
53
|
-
align: "center"
|
|
54
|
-
}, {
|
|
55
|
-
field: "employeeCode"
|
|
56
|
-
}, {
|
|
57
|
-
field: "employeeName",
|
|
58
|
-
width: 150
|
|
59
|
-
}, {
|
|
60
|
-
field: "gender",
|
|
61
|
-
width: 100,
|
|
62
|
-
formatter: ["formatDict", "SU.GENDER"]
|
|
63
|
-
}, {
|
|
64
|
-
field: "enabled",
|
|
65
|
-
width: 100,
|
|
66
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
67
|
-
}, {
|
|
68
|
-
field: "operate",
|
|
69
|
-
width: 150,
|
|
70
|
-
fixed: "right",
|
|
71
|
-
slots: {
|
|
72
|
-
default: ({
|
|
73
|
-
row: e
|
|
74
|
-
}) => {
|
|
75
|
-
const o = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", l = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", E = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
|
|
76
|
-
return [n(P, null, [n(d("ut-button"), {
|
|
77
|
-
icon: "ri-edit-box-line",
|
|
78
|
-
content: "edit",
|
|
79
|
-
onTap: () => v(e)
|
|
80
|
-
}, null), n(d("ut-button"), {
|
|
81
|
-
icon: l,
|
|
82
|
-
content: o,
|
|
83
|
-
status: E,
|
|
84
|
-
onTap: () => y(e)
|
|
85
|
-
}, null)])];
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}], h = {
|
|
89
|
-
toolbarButtonClick({
|
|
90
|
-
code: e
|
|
91
|
-
}) {
|
|
92
|
-
e === "add" && w();
|
|
93
|
-
}
|
|
94
|
-
}, w = () => {
|
|
95
|
-
var e, o;
|
|
96
|
-
if (!((e = r.value) != null && e.deptName))
|
|
97
|
-
return U("请先选择部门");
|
|
98
|
-
t.dataStatus = "add", t.record = {}, t.record.departmentId = (o = r.value) == null ? void 0 : o.id, t.record.deptName = r.value.deptName, t.record.enabled = "1", t.showModelView = !0;
|
|
99
|
-
}, v = (e) => {
|
|
100
|
-
t.dataStatus = "update", t.record = e, t.showModelView = !0;
|
|
101
|
-
}, y = async (e) => {
|
|
102
|
-
const o = T(e, !0);
|
|
103
|
-
a.value.showLoading(), o.enabled = o.enabled === "1" ? "0" : "1", await i().put(s, o), a.value.hiddenLoading(), a.value.refreshData();
|
|
104
|
-
}, b = async () => {
|
|
105
|
-
if (await j.modal.confirm(u("message.tip.confirmSync")) !== "confirm") return;
|
|
106
|
-
a.value.showLoading();
|
|
107
|
-
const [e] = await q(i().post("/uums/employee/syncEwEmp", {}));
|
|
108
|
-
a.value.hiddenLoading(), !e && a.value.refreshData();
|
|
109
|
-
}, g = (e) => {
|
|
110
|
-
e === "sync" && b();
|
|
111
|
-
}, x = {
|
|
112
|
-
querySuccess: (e) => {
|
|
113
|
-
}
|
|
114
|
-
}, k = () => {
|
|
115
|
-
t.showModelView = !1, a.value.refreshData();
|
|
116
|
-
};
|
|
117
|
-
return (e, o) => {
|
|
118
|
-
const l = d("ut-grid");
|
|
119
|
-
return c(), M("div", A, [n(l, {
|
|
120
|
-
ref_key: "xgrid",
|
|
121
|
-
ref: a,
|
|
122
|
-
items: f,
|
|
123
|
-
columns: p,
|
|
124
|
-
"default-params": t.fetchExtParam,
|
|
125
|
-
events: h,
|
|
126
|
-
"auto-load": !1,
|
|
127
|
-
buttons: m,
|
|
128
|
-
url: s,
|
|
129
|
-
callback: x,
|
|
130
|
-
mode: "form",
|
|
131
|
-
onButtonClick: g
|
|
132
|
-
}, null, 8, ["default-params"]), t.showModelView ? (c(), L(Y, {
|
|
133
|
-
key: 0,
|
|
134
|
-
record: t.record,
|
|
135
|
-
"data-status": t.dataStatus,
|
|
136
|
-
onOnClose: k
|
|
137
|
-
}, null, 8, ["record", "data-status"])) : I("", !0)]);
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
export {
|
|
142
|
-
K as Q
|
|
143
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, ref as o, createElementBlock as r, provide as s, openBlock as n, createVNode as a } from "vue";
|
|
2
|
-
import { x as p } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js";
|
|
3
|
-
import { t as c } from "./su-welcome-BjbuSrBZ.js";
|
|
4
|
-
const m = { class: "u-content-panel1" }, d = /* @__PURE__ */ t({
|
|
5
|
-
__name: "SysUser",
|
|
6
|
-
setup(i) {
|
|
7
|
-
const e = o([]);
|
|
8
|
-
return s("treeList", e), (f, l) => (n(), r("div", m, [
|
|
9
|
-
a(p)
|
|
10
|
-
]));
|
|
11
|
-
}
|
|
12
|
-
}), v = /* @__PURE__ */ c(d, [["__scopeId", "data-v-8708bc91"]]);
|
|
13
|
-
export {
|
|
14
|
-
v as default
|
|
15
|
-
};
|