@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
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, ref as k, inject as f, watch as E, nextTick as N, resolveComponent as v, createElementBlock as D, openBlock as h, withModifiers as O, createElementVNode as a, createBlock as C, createCommentVNode as g, createVNode as y, toDisplayString as _, withCtx as S, normalizeClass as V } from "vue";
|
|
2
|
-
import { i as j } from "./index-BnxyUGKa.js";
|
|
3
|
-
const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ P({
|
|
4
|
-
__name: "ScrollPanel",
|
|
5
|
-
props: {
|
|
6
|
-
title: {},
|
|
7
|
-
url: {},
|
|
8
|
-
showAllButton: { type: Boolean, default: !1 },
|
|
9
|
-
initLoadAll: { type: Boolean, default: !1 },
|
|
10
|
-
treeOtions: { default: () => ({
|
|
11
|
-
children: "children",
|
|
12
|
-
label: "label"
|
|
13
|
-
}) },
|
|
14
|
-
defaultParams: { default: () => ({}) }
|
|
15
|
-
},
|
|
16
|
-
setup(b, { expose: B }) {
|
|
17
|
-
const c = b, r = k([]), o = k(null), s = f("active"), u = f("scrollPanelChange"), w = f("treeList");
|
|
18
|
-
E(
|
|
19
|
-
() => u.value,
|
|
20
|
-
() => {
|
|
21
|
-
u.value && d();
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
const d = async (l = {}) => {
|
|
25
|
-
const t = Object.assign(l, c.defaultParams), e = await j().get(c.url, t);
|
|
26
|
-
r.value = e.list || e, w.value = e.list || e, c.initLoadAll ? s.value = {} : s.value = e.list ? e.list[0] : e[0], N(() => {
|
|
27
|
-
var n;
|
|
28
|
-
o.value && (o == null || o.value.setCurrentKey(((n = s.value) == null ? void 0 : n.id) || ""));
|
|
29
|
-
}), u.value = !1;
|
|
30
|
-
}, x = (l) => {
|
|
31
|
-
s.value = l;
|
|
32
|
-
}, A = () => {
|
|
33
|
-
s.value = {};
|
|
34
|
-
}, p = (l, t) => {
|
|
35
|
-
l.forEach((e) => {
|
|
36
|
-
var n;
|
|
37
|
-
o.value.store.nodesMap[e.id].expanded = t, (n = e.children) != null && n.length && p(e.children, t);
|
|
38
|
-
});
|
|
39
|
-
}, m = () => {
|
|
40
|
-
d();
|
|
41
|
-
};
|
|
42
|
-
return B({
|
|
43
|
-
onRefresh: m
|
|
44
|
-
}), d(), (l, t) => {
|
|
45
|
-
const e = v("ut-button"), n = v("vxe-button"), L = v("el-tree");
|
|
46
|
-
return h(), D("div", {
|
|
47
|
-
class: "u-scroll-panel",
|
|
48
|
-
onClick: O(A, ["prevent"])
|
|
49
|
-
}, [
|
|
50
|
-
a("div", M, [
|
|
51
|
-
a("h2", null, _(l.title), 1),
|
|
52
|
-
l.showAllButton ? (h(), C(e, {
|
|
53
|
-
key: 0,
|
|
54
|
-
content: "BtnExpand",
|
|
55
|
-
onClick: t[0] || (t[0] = (i) => p(r.value, !0))
|
|
56
|
-
})) : g("", !0),
|
|
57
|
-
l.showAllButton ? (h(), C(e, {
|
|
58
|
-
key: 1,
|
|
59
|
-
status: "warning",
|
|
60
|
-
content: "BtnCollapse",
|
|
61
|
-
onClick: t[1] || (t[1] = (i) => p(r.value, !1))
|
|
62
|
-
})) : g("", !0),
|
|
63
|
-
y(n, {
|
|
64
|
-
icon: "vxe-icon-refresh",
|
|
65
|
-
onClick: m
|
|
66
|
-
})
|
|
67
|
-
]),
|
|
68
|
-
a("div", $, [
|
|
69
|
-
y(L, {
|
|
70
|
-
ref_key: "tree",
|
|
71
|
-
ref: o,
|
|
72
|
-
data: r.value,
|
|
73
|
-
props: l.treeOtions,
|
|
74
|
-
"expand-on-click-node": !1,
|
|
75
|
-
style: { "background-color": "#fff" },
|
|
76
|
-
class: "u-tree-panel",
|
|
77
|
-
"node-key": "id",
|
|
78
|
-
"highlight-current": "",
|
|
79
|
-
onNodeClick: x
|
|
80
|
-
}, {
|
|
81
|
-
default: S(({ node: i }) => [
|
|
82
|
-
a("span", {
|
|
83
|
-
class: V(["prefix", { "is-leaf": i.isLeaf }])
|
|
84
|
-
}, t[2] || (t[2] = [
|
|
85
|
-
a("i", {
|
|
86
|
-
class: "ri-folder-2-fill ri-lg mr-1",
|
|
87
|
-
style: { color: "#fadb14" }
|
|
88
|
-
}, null, -1)
|
|
89
|
-
]), 2),
|
|
90
|
-
a("span", null, _(i.label), 1)
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
}, 8, ["data", "props"])
|
|
94
|
-
])
|
|
95
|
-
]);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
export {
|
|
100
|
-
K as _
|
|
101
|
-
};
|
package/dist/Staff-sftZ0bIV.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as n, createVNode as o } from "vue";
|
|
2
|
-
import { _ as d } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js";
|
|
3
|
-
import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js";
|
|
4
|
-
import { _ as m } from "./index-BnxyUGKa.js";
|
|
5
|
-
const p = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = { name: "StaffPanel" }, C = /* @__PURE__ */ l({
|
|
6
|
-
...v,
|
|
7
|
-
setup(N) {
|
|
8
|
-
const a = e(!1), s = e([]), c = e({});
|
|
9
|
-
return t("scrollPanelChange", a), t("active", c), t("treeList", s), (r, P) => (_(), i("div", p, [
|
|
10
|
-
n("div", u, [
|
|
11
|
-
o(d, {
|
|
12
|
-
title: r.$t("department"),
|
|
13
|
-
"init-load-all": !0,
|
|
14
|
-
"tree-otions": { children: "children", label: "deptName" },
|
|
15
|
-
url: "/uums/department/treeDepartment"
|
|
16
|
-
}, null, 8, ["title"])
|
|
17
|
-
]),
|
|
18
|
-
n("div", h, [
|
|
19
|
-
o(f)
|
|
20
|
-
])
|
|
21
|
-
]));
|
|
22
|
-
}
|
|
23
|
-
}), B = /* @__PURE__ */ m(C, [["__scopeId", "data-v-1cfe93f2"]]);
|
|
24
|
-
export {
|
|
25
|
-
B as default
|
|
26
|
-
};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, ref as u, onMounted as D, resolveComponent as r, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
|
|
2
|
-
import { useRender as F } from "@utogether/utils";
|
|
3
|
-
import { i as _ } from "./index-BnxyUGKa.js";
|
|
4
|
-
const T = { class: "config" }, x = /* @__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(v, { emit: y }) {
|
|
13
|
-
const i = v, t = F(), d = u({}), p = u(null), l = u(!1), R = { userName: "userName", userId: "id" }, w = { disabled: i.dataStatus !== "add" }, N = [
|
|
14
|
-
{
|
|
15
|
-
field: "employeeCode",
|
|
16
|
-
required: !0,
|
|
17
|
-
span: 8,
|
|
18
|
-
itemRender: t.renderInput({ props: w })
|
|
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" }, g)
|
|
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: "userName",
|
|
36
|
-
title: "message.releateUser",
|
|
37
|
-
span: 8,
|
|
38
|
-
itemRender: t.renderSysUser({ mapField: R })
|
|
39
|
-
}
|
|
40
|
-
];
|
|
41
|
-
function g(e) {
|
|
42
|
-
var o, a, s;
|
|
43
|
-
e.row.deptName = ((o = e.item) == null ? void 0 : o.deptName) || e.row.deptName, e.row.deptCode = ((a = e.item) == null ? void 0 : a.deptCode) || e.row.deptCode, e.row.departmentId = ((s = e.item) == null ? void 0 : s.id) || e.row.departmentId;
|
|
44
|
-
}
|
|
45
|
-
const C = y, I = () => {
|
|
46
|
-
p.value.validateForm(async (e) => {
|
|
47
|
-
if (!e) {
|
|
48
|
-
const { dataStatus: o } = i;
|
|
49
|
-
l.value = !0, o === "add" ? await _().post("/uums/employee", d.value) : await _().put("/uums/employee", d.value), l.value = !1, m();
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
function m() {
|
|
54
|
-
C("onClose");
|
|
55
|
-
}
|
|
56
|
-
return D(() => {
|
|
57
|
-
d.value = i.record;
|
|
58
|
-
}), (e, o) => {
|
|
59
|
-
const a = r("ut-form"), s = r("el-divider"), c = r("ut-button"), S = r("el-row"), h = r("el-drawer");
|
|
60
|
-
return k(), E("div", T, [
|
|
61
|
-
n(h, {
|
|
62
|
-
"model-value": e.show,
|
|
63
|
-
"before-close": m,
|
|
64
|
-
direction: "rtl",
|
|
65
|
-
title: e.$t("message.title.employeeInfo"),
|
|
66
|
-
"destroy-on-close": "",
|
|
67
|
-
size: "66%"
|
|
68
|
-
}, {
|
|
69
|
-
default: f(() => [
|
|
70
|
-
n(a, {
|
|
71
|
-
ref_key: "suFormRef",
|
|
72
|
-
ref: p,
|
|
73
|
-
record: d.value,
|
|
74
|
-
loading: l.value,
|
|
75
|
-
items: N,
|
|
76
|
-
"data-status": e.dataStatus
|
|
77
|
-
}, null, 8, ["record", "loading", "data-status"]),
|
|
78
|
-
n(s),
|
|
79
|
-
n(S, {
|
|
80
|
-
type: "flex",
|
|
81
|
-
justify: "end",
|
|
82
|
-
style: { "padding-right": "22px" }
|
|
83
|
-
}, {
|
|
84
|
-
default: f(() => [
|
|
85
|
-
n(c, {
|
|
86
|
-
content: "cancel",
|
|
87
|
-
icon: "ri-close-fill",
|
|
88
|
-
onTap: m
|
|
89
|
-
}),
|
|
90
|
-
n(c, {
|
|
91
|
-
content: "confirm",
|
|
92
|
-
icon: "ri-save-3-fill",
|
|
93
|
-
status: "u-cyan",
|
|
94
|
-
onTap: I
|
|
95
|
-
})
|
|
96
|
-
]),
|
|
97
|
-
_: 1
|
|
98
|
-
})
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["model-value", "title"])
|
|
102
|
-
]);
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
export {
|
|
107
|
-
x as _
|
|
108
|
-
};
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, ref as N, inject as B, reactive as D, watch as L, nextTick as U, resolveComponent as c, createElementBlock as M, openBlock as i, createVNode as s, createBlock as I, createCommentVNode as A, Fragment as P } from "vue";
|
|
2
|
-
import { useI18n as V } from "vue-i18n";
|
|
3
|
-
import { clone as R } from "xe-utils";
|
|
4
|
-
import { warnMessage as T } from "@utogether/utils";
|
|
5
|
-
import { _ as Y } from "./StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js";
|
|
6
|
-
import { i as d } from "./index-BnxyUGKa.js";
|
|
7
|
-
import { VxeUI as O } from "vxe-pc-ui";
|
|
8
|
-
import { t as l } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
9
|
-
const j = {
|
|
10
|
-
class: "page-content"
|
|
11
|
-
}, u = "/uums/employee", W = /* @__PURE__ */ C({
|
|
12
|
-
__name: "StaffPanel",
|
|
13
|
-
setup(q) {
|
|
14
|
-
const o = N(null), {
|
|
15
|
-
t: m
|
|
16
|
-
} = V(), n = B("active"), t = D({
|
|
17
|
-
record: {},
|
|
18
|
-
showModelView: !1,
|
|
19
|
-
fetchExtParam: {}
|
|
20
|
-
});
|
|
21
|
-
L(() => n.value, (e) => {
|
|
22
|
-
t.fetchExtParam = {
|
|
23
|
-
departmentId: e == null ? void 0 : e.id
|
|
24
|
-
}, U(() => {
|
|
25
|
-
o.value.refreshData();
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
const f = [{
|
|
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: "bindUser",
|
|
45
|
-
auth: "bind",
|
|
46
|
-
status: "warning",
|
|
47
|
-
icon: "ri-bring-to-front"
|
|
48
|
-
}, {
|
|
49
|
-
code: "del",
|
|
50
|
-
auth: "/"
|
|
51
|
-
}], p = [{
|
|
52
|
-
field: "employeeCode"
|
|
53
|
-
}, {
|
|
54
|
-
field: "employeeName"
|
|
55
|
-
}], h = [{
|
|
56
|
-
type: "checkbox",
|
|
57
|
-
width: 50,
|
|
58
|
-
align: "center"
|
|
59
|
-
}, {
|
|
60
|
-
field: "employeeCode"
|
|
61
|
-
}, {
|
|
62
|
-
field: "employeeName",
|
|
63
|
-
width: 150
|
|
64
|
-
}, {
|
|
65
|
-
field: "gender",
|
|
66
|
-
width: 100,
|
|
67
|
-
formatter: ["formatDict", "SU.GENDER"]
|
|
68
|
-
}, {
|
|
69
|
-
field: "enabled",
|
|
70
|
-
width: 100,
|
|
71
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
72
|
-
}, {
|
|
73
|
-
field: "operate",
|
|
74
|
-
width: 150,
|
|
75
|
-
fixed: "right",
|
|
76
|
-
slots: {
|
|
77
|
-
default: ({
|
|
78
|
-
row: e
|
|
79
|
-
}) => {
|
|
80
|
-
const a = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", r = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", S = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
|
|
81
|
-
return [s(P, null, [s(c("ut-button"), {
|
|
82
|
-
icon: "ri-edit-box-line",
|
|
83
|
-
content: "edit",
|
|
84
|
-
onTap: () => b(e)
|
|
85
|
-
}, null), s(c("ut-button"), {
|
|
86
|
-
icon: r,
|
|
87
|
-
content: a,
|
|
88
|
-
status: S,
|
|
89
|
-
onTap: () => v(e)
|
|
90
|
-
}, null)])];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}], g = {
|
|
94
|
-
toolbarButtonClick({
|
|
95
|
-
code: e
|
|
96
|
-
}) {
|
|
97
|
-
e === "add" && y();
|
|
98
|
-
}
|
|
99
|
-
}, y = () => {
|
|
100
|
-
var e, a;
|
|
101
|
-
if (!((e = n.value) != null && e.deptName))
|
|
102
|
-
return T("请先选择部门");
|
|
103
|
-
t.dataStatus = "add", t.record = {}, t.record.departmentId = (a = n.value) == null ? void 0 : a.id, t.record.deptName = n.value.deptName, t.record.enabled = "1", t.showModelView = !0;
|
|
104
|
-
}, b = (e) => {
|
|
105
|
-
t.dataStatus = "update", t.record = e, t.showModelView = !0;
|
|
106
|
-
}, v = async (e) => {
|
|
107
|
-
const a = R(e, !0);
|
|
108
|
-
o.value.showLoading(), a.enabled = a.enabled === "1" ? "0" : "1", await d().put(u, a), o.value.hiddenLoading(), o.value.refreshData();
|
|
109
|
-
}, w = async () => {
|
|
110
|
-
if (await O.modal.confirm(m("message.tip.confirmSync")) !== "confirm") return;
|
|
111
|
-
o.value.showLoading();
|
|
112
|
-
const [a] = await l(d().post("/uums/employee/syncEwEmp", {}));
|
|
113
|
-
o.value.hiddenLoading(), !a && o.value.refreshData();
|
|
114
|
-
}, _ = async () => {
|
|
115
|
-
const e = o.value.getSelectRecords();
|
|
116
|
-
if (!e.length) return;
|
|
117
|
-
o.value.showLoading();
|
|
118
|
-
const [a] = await l(d().post("/uums/employee/bindUser", e));
|
|
119
|
-
o.value.hiddenLoading(), !a && o.value.refreshData();
|
|
120
|
-
}, k = (e) => {
|
|
121
|
-
e === "sync" && w(), e === "bindUser" && _();
|
|
122
|
-
}, x = {
|
|
123
|
-
querySuccess: (e) => {
|
|
124
|
-
}
|
|
125
|
-
}, E = () => {
|
|
126
|
-
t.showModelView = !1, o.value.refreshData();
|
|
127
|
-
};
|
|
128
|
-
return (e, a) => {
|
|
129
|
-
const r = c("ut-grid");
|
|
130
|
-
return i(), M("div", j, [s(r, {
|
|
131
|
-
ref_key: "xgrid",
|
|
132
|
-
ref: o,
|
|
133
|
-
items: p,
|
|
134
|
-
columns: h,
|
|
135
|
-
"default-params": t.fetchExtParam,
|
|
136
|
-
events: g,
|
|
137
|
-
"auto-load": !1,
|
|
138
|
-
buttons: f,
|
|
139
|
-
url: u,
|
|
140
|
-
callback: x,
|
|
141
|
-
mode: "form",
|
|
142
|
-
onButtonClick: k
|
|
143
|
-
}, null, 8, ["default-params"]), t.showModelView ? (i(), I(Y, {
|
|
144
|
-
key: 0,
|
|
145
|
-
record: t.record,
|
|
146
|
-
"data-status": t.dataStatus,
|
|
147
|
-
onOnClose: E
|
|
148
|
-
}, null, 8, ["record", "data-status"])) : A("", !0)]);
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
export {
|
|
153
|
-
W as _
|
|
154
|
-
};
|
package/dist/SysUser-qMGVHpJ_.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, ref as o, provide as s, createElementBlock as r, openBlock as c, createVNode as _ } from "vue";
|
|
2
|
-
import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js";
|
|
3
|
-
import { _ as a } from "./index-BnxyUGKa.js";
|
|
4
|
-
const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
|
|
5
|
-
__name: "SysUser",
|
|
6
|
-
setup(m) {
|
|
7
|
-
const e = o([]);
|
|
8
|
-
return s("treeList", e), (f, d) => (c(), r("div", p, [
|
|
9
|
-
_(n)
|
|
10
|
-
]));
|
|
11
|
-
}
|
|
12
|
-
}), x = /* @__PURE__ */ a(i, [["__scopeId", "data-v-8708bc91"]]);
|
|
13
|
-
export {
|
|
14
|
-
x as default
|
|
15
|
-
};
|