@utogether/udp-core 1.0.1-beta.6 → 1.0.1-beta.8
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-Co4hnzlW.js → 403-Cjzd1bv9.js} +1 -1
- package/dist/{404-BsseeBQQ.js → 404-CJ-3SXgP.js} +1 -1
- package/dist/{500-DtKz7MA4.js → 500-CQ65MvIK.js} +1 -1
- package/dist/{AuthorityInfo-iWYEWOmC.js → AuthorityInfo-BdISFrap.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-DsLG5slc.js +100 -0
- package/dist/{Company-CK8Zkcv3.js → Company-Mj-z1hNb.js} +3 -3
- package/dist/{CompanyPanel-DL4UrYYG.js → CompanyPanel-BNXZ7ER3.js} +1 -1
- package/dist/{Department-BPHn8to4.js → Department-C4ygVbSP.js} +3 -3
- package/dist/{DepartmentPanel-Bqraa_NB.js → DepartmentPanel-Bk96mDlD.js} +1 -1
- package/dist/{DesignPanel-CFOIOZme.js → DesignPanel-Bwx2QwMM.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-H0FNG35Z.js → DesignPanel.vue_vue_type_style_index_0_lang-B3OjJTHG.js} +24 -26
- package/dist/{DictView-CaD1yHQS.js → DictView-DE3jnxnq.js} +19 -18
- package/dist/{InvOrganization-CoO0_wsY.js → InvOrganization-Drce3xUC.js} +1 -1
- package/dist/Org-C42D9lDj.js +39 -0
- package/dist/{Preview-B-K_bxDG.js → Preview-CCXoRvWF.js} +1 -1
- package/dist/{ReportDefine-DElbukSL.js → ReportDefine-BWsExcQU.js} +1 -1
- package/dist/{ReportDesign-DvUHOKDK.js → ReportDesign-BTzpUpGj.js} +26 -26
- package/dist/{ReportQuery-BcSYRNT3.js → ReportQuery-eoSmPXzc.js} +1 -1
- package/dist/{ReportQueryFrom-BGEA4Pqk.js → ReportQueryFrom-D4YlI5jl.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B-KEPnfY.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DPDGKW9a.js} +1 -1
- package/dist/{ReportTemplate-DnPtEoxn.js → ReportTemplate-BTa2YWq0.js} +1 -1
- package/dist/{Role-CMKkWZil.js → Role-BTGB91P1.js} +6 -6
- package/dist/{RoleAssign-BToNzG9a.js → RoleAssign-BBSY6bYM.js} +3 -3
- package/dist/{RolePanel-BikZ-D2u.js → RolePanel-BaTuyeVC.js} +1 -1
- package/dist/{RolePanel-BNqd7-M6.js → RolePanel-DNDI7e0g.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BCwAp_1a.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Nngq860f.js → RolePanel.vue_vue_type_script_setup_true_lang-QUeAQHrg.js} +44 -38
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BDRDD2FX.js → ScrollPanel.vue_vue_type_style_index_0_lang-nqrbOaQP.js} +1 -1
- package/dist/{Staff-DBFATgM_.js → Staff-4dbkOqzl.js} +3 -3
- package/dist/{StaffInfo-CrfwZcEL.js → StaffInfo-xFAMTWgD.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CE3_NJF_.js → StaffInfo.vue_vue_type_script_setup_true_lang-CocRlLsO.js} +1 -1
- package/dist/{StaffPanel-D54Rl_Bg.js → StaffPanel-Cx-8MHBz.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js → StaffPanel.vue_vue_type_script_setup_true_lang-B3wfpxel.js} +2 -2
- package/dist/{SysUser-CsuovBei.js → SysUser-BHpgPXsI.js} +2 -2
- package/dist/{SysUserPanel-DNUwWEVp.js → SysUserPanel-DH79Lsnm.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-CY6mhBV0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BONl2R1a.js} +104 -100
- package/dist/{SystemMenu-oLmwvaqT.js → SystemMenu-C2JbVgyr.js} +2 -2
- package/dist/{UserInfo-LyrDwBG1.js → UserInfo-Efo-_yRo.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js → UserInfo.vue_vue_type_style_index_0_lang-DnjjBjMU.js} +39 -37
- package/dist/{childView-DGKp87fT.js → childView-D7U7qh_A.js} +1 -1
- package/dist/{childView-SmYl4G6c.js → childView-wFMGHGiX.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js → childView.vue_vue_type_style_index_0_lang-Bshn4N8Y.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DU-Uun5d.js → childView.vue_vue_type_style_index_0_lang-w2CkZij-.js} +1 -1
- package/dist/{code-rule-CfbGjmOs.js → code-rule-B5dIxV6g.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-DMfwGfms.js → cron-task-DWGtihrw.js} +1 -1
- package/dist/{frameView-D-hu_pqQ.js → frameView-DF2mXAwO.js} +1 -1
- package/dist/{index-ADANSV-q.js → index-VU6c04nN.js} +1562 -1309
- package/dist/{layoutView-D3SikBPr.js → layoutView-DUUKW0KX.js} +2 -2
- package/dist/{login-CQ1yBBdY.js → login-ByEoQ2HH.js} +11 -11
- package/dist/{lov-view-CSobDBH7.js → lov-view-DqD__3-w.js} +2 -2
- package/dist/{menuInfo-mFuM30f1.js → menuInfo-a7jPwS1r.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js → menuInfo.vue_vue_type_style_index_0_lang-ZzGrkylA.js} +2 -2
- package/dist/{pda-app-CIGFsvrX.js → pda-app-EP9d0Ypd.js} +201 -189
- package/dist/{resource-mbd4LPi-.js → resource-eughqxkP.js} +1 -1
- package/dist/{su-welcome-DruLsVvu.js → su-welcome-98GLKyZM.js} +1 -1
- package/dist/{sys-config-TXb5cJM4.js → sys-config-gs16tgwA.js} +1 -1
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-Cv0UXnEX.js → utogether-C4Dd2epc.js} +1 -1
- package/package.json +1 -1
- package/src/App.vue +1 -6
- package/src/components/SuCharts/src/UserInfo.vue +78 -78
- package/src/components/udp/grid.vue +2 -18
- package/src/components/udp/index.ts +2 -2
- package/src/components/udp/modal-grid.vue +288 -297
- package/src/components/udp/utils.ts +11 -18
- package/src/main.ts +10 -2
- package/src/plugins/i18n/en.ts +24 -13
- package/src/plugins/i18n/zh.ts +348 -342
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +92 -17
- package/src/style/vxetable.scss +293 -287
- package/src/views/organization/org/Org.vue +9 -5
- package/src/views/system/menu/SystemMenu.vue +4 -18
- package/src/views/system/menu/menuInfo.vue +4 -17
- package/src/views/system/role/AuthorityInfo.vue +19 -15
- package/src/views/system/role/Role.vue +1 -5
- package/src/views/system/role/RolePanel.vue +11 -2
- package/src/views/system/role/UserInfo.vue +195 -193
- package/src/views/system/role-assign/RolePanel.vue +139 -136
- package/src/views/system/sysUser/SysUserPanel.vue +278 -282
- package/src/views/uapp/pda/pda-app.vue +36 -11
- package/src/views/udev/dict/DictView.vue +6 -1
- package/src/views/udev/dict/childView.vue +1 -6
- package/src/views/ulogin/login.vue +1 -5
- package/src/views/urpt/design/DesignPanel.vue +507 -526
- package/src/views/urpt/design/ReportDesign.vue +7 -11
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BWp7PKyH.js +0 -102
- package/dist/Org-BU3oaFx3.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DYP3u1Nv.js +0 -126
|
@@ -2,7 +2,7 @@ import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolv
|
|
|
2
2
|
import { useI18n as O } from "vue-i18n";
|
|
3
3
|
import { clone as U } from "xe-utils";
|
|
4
4
|
import { useRender as V, successMessage as B, warnMessage as M } from "@utogether/utils";
|
|
5
|
-
import { e as C, q as D } from "./index-
|
|
5
|
+
import { e as C, q as D } from "./index-VU6c04nN.js";
|
|
6
6
|
const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
7
7
|
__name: "ReportTemplate",
|
|
8
8
|
setup(W) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as n } from "vue";
|
|
2
|
-
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-nqrbOaQP.js";
|
|
3
|
+
import { _ as d } from "./RolePanel.vue_vue_type_script_setup_true_lang-QUeAQHrg.js";
|
|
4
|
+
import { _ as p } from "./index-VU6c04nN.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
|
|
6
6
|
__name: "Role",
|
|
7
7
|
setup(C) {
|
|
@@ -15,11 +15,11 @@ const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { cla
|
|
|
15
15
|
}, null, 8, ["title"])
|
|
16
16
|
]),
|
|
17
17
|
o("div", h, [
|
|
18
|
-
n(
|
|
18
|
+
n(d)
|
|
19
19
|
])
|
|
20
20
|
]));
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
22
|
+
}), x = /* @__PURE__ */ p(v, [["__scopeId", "data-v-e31bcedc"]]);
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
x as default
|
|
25
25
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as s } from "vue";
|
|
2
|
-
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as d } from "./index-
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-nqrbOaQP.js";
|
|
3
|
+
import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-BCwAp_1a.js";
|
|
4
|
+
import { _ as d } from "./index-VU6c04nN.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, g = { class: "content" }, h = /* @__PURE__ */ l({
|
|
6
6
|
__name: "RoleAssign",
|
|
7
7
|
setup(v) {
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { defineComponent as b, reactive as E, ref as g, inject as M, watch as N, nextTick as B, createVNode as h, resolveComponent as i, resolveDirective as L, withDirectives as P, createElementBlock as A, openBlock as w, createBlock as R, createCommentVNode as S, unref as T } from "vue";
|
|
2
|
+
import { useI18n as U } from "vue-i18n";
|
|
3
|
+
import { clone as $ } from "xe-utils";
|
|
4
|
+
import { VxeUI as j } from "vxe-pc-ui";
|
|
5
|
+
import { t as v } from "./await-to-js.es5-BtRbN2QH.js";
|
|
6
|
+
import { successMessage as _ } from "@utogether/utils";
|
|
7
|
+
import { q as C } from "./index-VU6c04nN.js";
|
|
8
|
+
const q = {
|
|
9
|
+
class: "page-content"
|
|
10
|
+
}, d = "/uums/orgRole", X = /* @__PURE__ */ b({
|
|
11
|
+
__name: "RolePanel",
|
|
12
|
+
setup(z) {
|
|
13
|
+
const e = E({
|
|
14
|
+
record: {},
|
|
15
|
+
loading: !1,
|
|
16
|
+
showModalView: !1
|
|
17
|
+
}), {
|
|
18
|
+
t: c
|
|
19
|
+
} = U(), n = g(null), u = g(null), t = M("active");
|
|
20
|
+
N(() => t.value, () => {
|
|
21
|
+
t != null && t.value.id && (e.fetchExtParam = {
|
|
22
|
+
orgId: t == null ? void 0 : t.value.id
|
|
23
|
+
}, B(() => {
|
|
24
|
+
n.value.refreshData();
|
|
25
|
+
}));
|
|
26
|
+
});
|
|
27
|
+
const k = [{
|
|
28
|
+
code: "del",
|
|
29
|
+
auth: "/"
|
|
30
|
+
}], m = [{
|
|
31
|
+
field: "roleName",
|
|
32
|
+
title: "message.udp.roleName",
|
|
33
|
+
span: 9
|
|
34
|
+
}, {
|
|
35
|
+
field: "roleCode",
|
|
36
|
+
title: "message.udp.roleCode",
|
|
37
|
+
span: 9
|
|
38
|
+
}], f = [{
|
|
39
|
+
type: "checkbox",
|
|
40
|
+
width: 40
|
|
41
|
+
}, {
|
|
42
|
+
field: "roleCode",
|
|
43
|
+
title: "message.udp.roleCode"
|
|
44
|
+
}, {
|
|
45
|
+
field: "roleName",
|
|
46
|
+
title: "message.udp.roleName"
|
|
47
|
+
}, {
|
|
48
|
+
field: "roleDesc",
|
|
49
|
+
title: "message.udp.roleDesc"
|
|
50
|
+
}, {
|
|
51
|
+
field: "enabled",
|
|
52
|
+
width: 100,
|
|
53
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
54
|
+
}], p = $(f, !0);
|
|
55
|
+
p.push({
|
|
56
|
+
field: "operate",
|
|
57
|
+
width: 80,
|
|
58
|
+
fixed: "right",
|
|
59
|
+
slots: {
|
|
60
|
+
default: ({
|
|
61
|
+
row: o
|
|
62
|
+
}) => o.roleCode === "admin" ? null : [h(i("ut-button"), {
|
|
63
|
+
icon: "ri-delete-bin-5-fill",
|
|
64
|
+
content: "del",
|
|
65
|
+
status: "danger",
|
|
66
|
+
auth: "del",
|
|
67
|
+
onTap: () => D(o)
|
|
68
|
+
}, null)]
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const x = () => {
|
|
72
|
+
e.record = {}, e.record.orgId = t.value.id, e.showModalView = !0;
|
|
73
|
+
}, D = async (o) => {
|
|
74
|
+
if (await j.modal.confirm(c("message.tip.del")) === "confirm") {
|
|
75
|
+
const a = {
|
|
76
|
+
orgId: t.value.id,
|
|
77
|
+
roleId: o.id
|
|
78
|
+
};
|
|
79
|
+
e.loading = !0;
|
|
80
|
+
const [s] = await v(C().delete(d, a));
|
|
81
|
+
s || _(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
|
|
82
|
+
}
|
|
83
|
+
}, I = async (o) => {
|
|
84
|
+
const r = [];
|
|
85
|
+
o.forEach((l) => {
|
|
86
|
+
l.orgId = t.value.id, l.roleId = l.id, r.push(l);
|
|
87
|
+
});
|
|
88
|
+
const a = {
|
|
89
|
+
orgRoleList: r
|
|
90
|
+
};
|
|
91
|
+
u.value.showLoading();
|
|
92
|
+
const [s] = await v(C().post(d, a));
|
|
93
|
+
s || (_(), n.value.refreshData(), e.showModalView = !1);
|
|
94
|
+
}, y = (o) => o.roleCode !== "admin", V = (o) => {
|
|
95
|
+
o === "add" && x();
|
|
96
|
+
};
|
|
97
|
+
return (o, r) => {
|
|
98
|
+
const a = i("ut-grid"), s = i("ut-modal-grid"), l = L("spinning");
|
|
99
|
+
return P((w(), A("div", q, [h(a, {
|
|
100
|
+
ref_key: "xgrid",
|
|
101
|
+
ref: n,
|
|
102
|
+
items: m,
|
|
103
|
+
columns: T(p),
|
|
104
|
+
"default-params": e.fetchExtParam,
|
|
105
|
+
"default-value": e.fetchExtParam,
|
|
106
|
+
buttons: k,
|
|
107
|
+
"auto-load": !1,
|
|
108
|
+
url: d,
|
|
109
|
+
"check-method": y,
|
|
110
|
+
mode: "form",
|
|
111
|
+
onButtonClick: V
|
|
112
|
+
}, null, 8, ["columns", "default-params", "default-value"]), e.showModalView ? (w(), R(s, {
|
|
113
|
+
key: 0,
|
|
114
|
+
ref_key: "xmodal",
|
|
115
|
+
ref: u,
|
|
116
|
+
items: m,
|
|
117
|
+
columns: f,
|
|
118
|
+
"show-footer": !0,
|
|
119
|
+
editable: !1,
|
|
120
|
+
title: o.$t("message.udp.roleList"),
|
|
121
|
+
url: "/uums/role",
|
|
122
|
+
width: "60%",
|
|
123
|
+
height: "75%",
|
|
124
|
+
onClose: r[0] || (r[0] = (F) => e.showModalView = !1),
|
|
125
|
+
onConfirm: I
|
|
126
|
+
}, null, 8, ["title"])) : S("", !0)])), [[l, e.loading]]);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
export {
|
|
131
|
+
X as _
|
|
132
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRender as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { q as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as S, reactive as I, inject as M, ref as l, watch as B, createVNode as s, Fragment as E, resolveComponent as r, createElementBlock as $, openBlock as d, createBlock as i, createCommentVNode as c } from "vue";
|
|
2
|
+
import { useRender as q } from "@utogether/utils";
|
|
3
|
+
import { _ as O } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-DsLG5slc.js";
|
|
4
|
+
import { _ as P } from "./UserInfo.vue_vue_type_style_index_0_lang-DnjjBjMU.js";
|
|
5
|
+
import { q as R, e as T } from "./index-VU6c04nN.js";
|
|
6
|
+
const H = {
|
|
7
7
|
class: "page-content"
|
|
8
|
-
},
|
|
8
|
+
}, K = /* @__PURE__ */ S({
|
|
9
9
|
__name: "RolePanel",
|
|
10
|
-
setup(
|
|
11
|
-
const e =
|
|
10
|
+
setup(j) {
|
|
11
|
+
const e = I({
|
|
12
12
|
record: {},
|
|
13
13
|
showAuthView: !1,
|
|
14
14
|
showModalView: !1,
|
|
15
15
|
showUserView: !1,
|
|
16
16
|
dataStatus: ""
|
|
17
|
-
}), o =
|
|
17
|
+
}), o = M("active"), f = q(), a = l(null), n = l(""), p = l({}), u = l("");
|
|
18
18
|
B(() => o.value, () => {
|
|
19
|
-
|
|
19
|
+
C();
|
|
20
20
|
});
|
|
21
|
-
const
|
|
21
|
+
const w = [{
|
|
22
22
|
field: "roleName",
|
|
23
23
|
title: "message.udp.roleName"
|
|
24
24
|
}, {
|
|
@@ -52,7 +52,7 @@ const T = {
|
|
|
52
52
|
}, {
|
|
53
53
|
field: "enabled",
|
|
54
54
|
width: 90,
|
|
55
|
-
cellRender: f.renderEnabled(
|
|
55
|
+
cellRender: f.renderEnabled(A)
|
|
56
56
|
}, {
|
|
57
57
|
field: "operate",
|
|
58
58
|
width: 260,
|
|
@@ -60,74 +60,80 @@ const T = {
|
|
|
60
60
|
slots: {
|
|
61
61
|
default: ({
|
|
62
62
|
row: t
|
|
63
|
-
}) => [s(
|
|
63
|
+
}) => [s(E, null, [s(r("ut-button"), {
|
|
64
64
|
content: "edit",
|
|
65
65
|
auth: "edit",
|
|
66
|
+
disabled: t.roleCode === "admin",
|
|
66
67
|
onTap: () => k(t)
|
|
67
68
|
}, null), s(r("ut-button"), {
|
|
68
69
|
content: "dispatchUser",
|
|
69
70
|
status: "warning",
|
|
70
71
|
icon: "ri-user-3-line",
|
|
71
72
|
auth: "user",
|
|
72
|
-
onTap: () =>
|
|
73
|
+
onTap: () => y(t)
|
|
73
74
|
}, null), s(r("ut-button"), {
|
|
74
75
|
content: "dispatchAuth",
|
|
75
76
|
status: "success",
|
|
76
77
|
icon: "ri-plane-line",
|
|
77
78
|
auth: "auth",
|
|
78
|
-
onTap: () =>
|
|
79
|
+
onTap: () => D(t)
|
|
79
80
|
}, null)])]
|
|
80
81
|
}
|
|
81
|
-
}],
|
|
82
|
+
}], C = () => {
|
|
82
83
|
var t;
|
|
83
|
-
|
|
84
|
+
p.value = {
|
|
84
85
|
unitId: (t = o == null ? void 0 : o.value) == null ? void 0 : t.id
|
|
85
86
|
}, a.value.refreshData();
|
|
86
|
-
},
|
|
87
|
-
t === "add" &&
|
|
88
|
-
},
|
|
87
|
+
}, V = (t) => {
|
|
88
|
+
t === "add" && v(), t === "del" && b();
|
|
89
|
+
}, v = () => {
|
|
89
90
|
var t;
|
|
90
|
-
e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId =
|
|
91
|
+
e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId = T().getOrgId, e.showModalView = !0;
|
|
91
92
|
}, k = (t) => {
|
|
92
93
|
n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
|
|
93
|
-
},
|
|
94
|
+
}, b = () => {
|
|
94
95
|
a.value.getInstance().commitProxy("delete");
|
|
95
|
-
},
|
|
96
|
+
}, D = (t) => {
|
|
96
97
|
e.record = t, e.showAuthView = !0;
|
|
97
|
-
},
|
|
98
|
+
}, y = (t) => {
|
|
98
99
|
e.record = t, e.showUserView = !0;
|
|
99
100
|
};
|
|
100
|
-
async function
|
|
101
|
+
async function A({
|
|
101
102
|
row: t
|
|
102
103
|
}) {
|
|
103
|
-
|
|
104
|
+
if (t.roleCode === "admin") {
|
|
105
|
+
t.enabled = "1";
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
await R().put("/uums/role/singleUpdate", t), a.value.refreshData();
|
|
104
109
|
}
|
|
105
110
|
const m = () => {
|
|
106
111
|
e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
|
|
107
|
-
};
|
|
112
|
+
}, U = (t) => t.roleCode !== "admin";
|
|
108
113
|
return (t, h) => {
|
|
109
|
-
const
|
|
110
|
-
return d(),
|
|
114
|
+
const x = r("ut-grid"), N = r("ut-modal-form");
|
|
115
|
+
return d(), $("div", H, [s(x, {
|
|
111
116
|
ref_key: "xgrid",
|
|
112
117
|
ref: a,
|
|
113
|
-
items:
|
|
118
|
+
items: w,
|
|
114
119
|
columns: _,
|
|
120
|
+
"check-method": U,
|
|
115
121
|
url: "/uums/role",
|
|
116
122
|
mode: "form",
|
|
117
|
-
onButtonClick:
|
|
118
|
-
}, null, 512), e.showAuthView ? (d(), i(
|
|
123
|
+
onButtonClick: V
|
|
124
|
+
}, null, 512), e.showAuthView ? (d(), i(O, {
|
|
119
125
|
key: 0,
|
|
120
126
|
show: e.showAuthView,
|
|
121
127
|
record: e.record,
|
|
122
128
|
"data-status": e.dataStatus,
|
|
123
129
|
onOnClose: m
|
|
124
|
-
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(
|
|
130
|
+
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(P, {
|
|
125
131
|
key: 1,
|
|
126
132
|
show: e.showUserView,
|
|
127
133
|
record: e.record,
|
|
128
134
|
"data-status": e.dataStatus,
|
|
129
135
|
onOnClose: m
|
|
130
|
-
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(
|
|
136
|
+
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(N, {
|
|
131
137
|
key: 2,
|
|
132
138
|
ref: "xmodal",
|
|
133
139
|
record: e.record,
|
|
@@ -135,14 +141,14 @@ const T = {
|
|
|
135
141
|
url: u.value,
|
|
136
142
|
method: n.value,
|
|
137
143
|
width: "400",
|
|
138
|
-
height: "
|
|
144
|
+
height: "240",
|
|
139
145
|
"data-status": "update",
|
|
140
146
|
title: t.$t("message.title.authEdit"),
|
|
141
|
-
onClose: h[0] || (h[0] = (
|
|
147
|
+
onClose: h[0] || (h[0] = (F) => e.showModalView = !1)
|
|
142
148
|
}, null, 8, ["record", "url", "method", "title"])) : c("", !0)]);
|
|
143
149
|
};
|
|
144
150
|
}
|
|
145
151
|
});
|
|
146
152
|
export {
|
|
147
|
-
|
|
153
|
+
K as _
|
|
148
154
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as f, createElementBlock as D, openBlock as v, 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 { q as j } from "./index-
|
|
2
|
+
import { q as j } from "./index-VU6c04nN.js";
|
|
3
3
|
const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
|
|
4
4
|
__name: "ScrollPanel",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, ref as e, provide as t, createElementBlock as _, openBlock as i, createElementVNode as n, createVNode as a } from "vue";
|
|
2
|
-
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as p } from "./index-
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-nqrbOaQP.js";
|
|
3
|
+
import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-B3wfpxel.js";
|
|
4
|
+
import { _ as p } from "./index-VU6c04nN.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = { name: "StaffPanel" }, C = /* @__PURE__ */ l({
|
|
6
6
|
...v,
|
|
7
7
|
setup(N) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
import { useRender as q } from "@utogether/utils";
|
|
3
|
-
import { q as _ } from "./index-
|
|
3
|
+
import { q as _ } from "./index-VU6c04nN.js";
|
|
4
4
|
const F = { class: "config" }, x = /* @__PURE__ */ b({
|
|
5
5
|
__name: "StaffInfo",
|
|
6
6
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as b, ref as g, inject as w, reactive as x, watch as y, nextTick as E, resolveComponent as l, createElementBlock as N, openBlock as c, createVNode as d, createBlock as k, createCommentVNode as C, Fragment as S } from "vue";
|
|
2
2
|
import { clone as D } from "xe-utils";
|
|
3
3
|
import { warnMessage as M } from "@utogether/utils";
|
|
4
|
-
import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { q as P } from "./index-
|
|
4
|
+
import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-CocRlLsO.js";
|
|
5
|
+
import { q as P } from "./index-VU6c04nN.js";
|
|
6
6
|
const A = {
|
|
7
7
|
class: "page-content"
|
|
8
8
|
}, s = "/uums/employee", j = /* @__PURE__ */ b({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
-
import { _ as a } from "./index-
|
|
2
|
+
import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-BONl2R1a.js";
|
|
3
|
+
import { _ as a } from "./index-VU6c04nN.js";
|
|
4
4
|
const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
|
|
5
5
|
__name: "SysUser",
|
|
6
6
|
setup(m) {
|