@utogether/udp-core 1.0.2 → 1.0.4-beta.1
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-B1rIjAAu.js → 403-CH-5FVhN.js} +1 -1
- package/dist/{404-mBqc2y4t.js → 404-CFk6Ivq-.js} +1 -1
- package/dist/{500-BoI45Zdh.js → 500-DRjSNKN3.js} +1 -1
- package/dist/{AuthorityInfo-B08NBIIn.js → AuthorityInfo-DxNFwxdz.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BI2PKcqq.js} +1 -1
- package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-BzIh29KB.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js} +32 -24
- package/dist/{Company-JGGyWEWH.js → Company-DGFD7_MF.js} +3 -3
- package/dist/{CompanyPanel-BQ_cCmDx.js → CompanyPanel-BHXndpIr.js} +1 -1
- package/dist/{Department-z2iO6hwM.js → Department-CFcjdf8m.js} +3 -3
- package/dist/{DepartmentPanel-BtQe7zwU.js → DepartmentPanel-DrBtJClY.js} +1 -1
- package/dist/{DesignPanel-7mhtVWas.js → DesignPanel-EAKuwOqp.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js → DesignPanel.vue_vue_type_style_index_0_lang-BOP4Q41a.js} +2 -2
- package/dist/{DictView-CjchV2Yk.js → DictView-CpRvxDO0.js} +10 -9
- package/dist/{InvOrganization-Pn1O_XP0.js → InvOrganization-DZC9aKKv.js} +1 -1
- package/dist/{Org-BqytV_vi.js → Org-D5heLogi.js} +1 -1
- package/dist/{Preview-CLpUUMay.js → Preview-DWuThn2_.js} +1 -1
- package/dist/{ReportDefine-Cz1KtEUF.js → ReportDefine-FeHx3B-B.js} +1 -1
- package/dist/{ReportDesign-BaORYud4.js → ReportDesign-Deo5AK76.js} +2 -2
- package/dist/{ReportQuery-CPCPXiXz.js → ReportQuery-WK5BPREv.js} +1 -1
- package/dist/{ReportQueryFrom-C_AcrfkJ.js → ReportQueryFrom-BcbRvwcp.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DEXuBXHO.js} +1 -1
- package/dist/{ReportTemplate-CFiNMz79.js → ReportTemplate-DAk0qIJq.js} +1 -1
- package/dist/{Role-B-XDoJd5.js → Role-sSVr8txF.js} +3 -3
- package/dist/{RoleAssign-BolW8YVs.js → RoleAssign-gg9O7P1_.js} +3 -3
- package/dist/{RolePanel-HilSuYns.js → RolePanel-D2M-Wc-X.js} +1 -1
- package/dist/{RolePanel-2kfs5tw9.js → RolePanel-DsyVPcoq.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js → RolePanel.vue_vue_type_script_setup_true_lang-C4fuYoIS.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js → RolePanel.vue_vue_type_script_setup_true_lang-RR24avbF.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js → ScrollPanel.vue_vue_type_style_index_0_lang-6v5vVx-e.js} +1 -1
- package/dist/{Staff-BTk3whFC.js → Staff-DTDrOuE0.js} +3 -3
- package/dist/{StaffInfo-d3AuSzlA.js → StaffInfo-B2H_6lwQ.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js → StaffInfo.vue_vue_type_script_setup_true_lang-BkDRBn9p.js} +1 -1
- package/dist/{StaffPanel-DV-D4jjz.js → StaffPanel-dpmnAD0A.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js → StaffPanel.vue_vue_type_script_setup_true_lang-dgV9B37R.js} +47 -39
- package/dist/{SysUser-BnjYytws.js → SysUser-BjpQdzSo.js} +2 -2
- package/dist/{SysUserPanel-CBoyD-Qi.js → SysUserPanel-C5IHO7JB.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js → SysUserPanel.vue_vue_type_script_setup_true_lang-HvJ4Hrps.js} +1 -1
- package/dist/{SystemMenu-kYB_ZaUt.js → SystemMenu-D7W9E8SF.js} +53 -50
- package/dist/{UserInfo-4dx97VBL.js → UserInfo-D_lbSbUh.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js → UserInfo.vue_vue_type_style_index_0_lang-NLl8VJ5I.js} +1 -1
- package/dist/{childView-CHPNfTEb.js → childView-B1XV2jZ7.js} +1 -1
- package/dist/{childView-CKA_JgVZ.js → childView-LQllG9vw.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js → childView.vue_vue_type_style_index_0_lang-DN19uWOO.js} +31 -31
- package/dist/{childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js → childView.vue_vue_type_style_index_0_lang-Dpo_nfX9.js} +19 -20
- package/dist/{code-rule-CbxuZg0-.js → code-rule-DkKKcosO.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-nTOpqQYf.js → cron-task-bGVrr2Jg.js} +1 -1
- package/dist/{frameView-Z1tPUyCh.js → frameView-B3n2JXTj.js} +1 -1
- package/dist/index-DYT0k5Sg.js +8134 -0
- package/dist/{layoutView--MGA9zUB.js → layoutView-bh22tftc.js} +144 -145
- package/dist/{log-in-CSYJDA6m.js → log-in-Dk_xyZ_l.js} +1 -1
- package/dist/{log-out-DiwGCg7p.js → log-out-CERhlqtr.js} +1 -1
- package/dist/{login-C6Y0ajDp.js → login-C5EJWWLi.js} +124 -134
- package/dist/{login-log-C0V-_l3F.js → login-log-DJBGJVV0.js} +4 -4
- package/dist/{lov-view-Cmv7wZZ9.js → lov-view-BNGHpq-d.js} +2 -2
- package/dist/{menuInfo-UeutJpOa.js → menuInfo-2DBTH6Vf.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js → menuInfo.vue_vue_type_style_index_0_lang-KtLS__XM.js} +37 -35
- package/dist/{pda-app-B6w99SJo.js → pda-app-BzmHIT9A.js} +1 -1
- package/dist/{resource-BybJvUv0.js → resource-D6UY8vN8.js} +1 -1
- package/dist/{su-welcome-C1bmxHoY.js → su-welcome-okexK2W2.js} +20 -20
- package/dist/{sys-config-BnmIDnCj.js → sys-config-9F_C1LzR.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +73 -65
- package/src/components/udp/form-upload/form-upload.vue +492 -0
- package/src/components/udp/index.ts +2 -1
- package/src/layout/components/lay-content/index.vue +136 -143
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +1 -1
- package/src/layout/layoutView.vue +7 -6
- package/src/main.ts +2 -2
- package/src/plugins/i18n/zh.ts +1 -0
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/plugins/vxe-table/render.tsx +968 -945
- package/src/style/vxetable.scss +356 -348
- package/src/utils/dataFormat/index.ts +17 -18
- package/src/views/organization/staff/StaffPanel.vue +12 -3
- package/src/views/system/menu/AuthorityPanel.vue +142 -140
- package/src/views/system/menu/SystemMenu.vue +194 -185
- package/src/views/system/menu/menuInfo.vue +384 -384
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/udev/dict/childView.vue +6 -6
- package/src/views/udev/lov/childView.vue +174 -174
- package/src/views/uhome/components/menu-favorite.vue +3 -2
- package/src/views/ulogin/login.vue +34 -23
- package/src/views/upms/user/login-log.vue +5 -5
- package/dist/index-C3q8HoJM.js +0 -4650
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { defineComponent as E, ref as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { clone as
|
|
4
|
-
import { warnMessage as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { y as i } from "./index-
|
|
7
|
-
import { VxeUI as
|
|
8
|
-
|
|
1
|
+
import { defineComponent as E, ref as C, inject as S, reactive as N, watch as B, nextTick as D, resolveComponent as r, createElementBlock as M, openBlock as d, createVNode as s, createBlock as I, createCommentVNode as L, Fragment as A } from "vue";
|
|
2
|
+
import { useI18n as P } from "vue-i18n";
|
|
3
|
+
import { clone as U } from "xe-utils";
|
|
4
|
+
import { warnMessage as V } from "@utogether/utils";
|
|
5
|
+
import { _ as T } from "./StaffInfo.vue_vue_type_script_setup_true_lang-BkDRBn9p.js";
|
|
6
|
+
import { y as i } from "./index-DYT0k5Sg.js";
|
|
7
|
+
import { VxeUI as Y } from "vxe-pc-ui";
|
|
8
|
+
import { t as O } from "./await-to-js.es5-BtRbN2QH.js";
|
|
9
|
+
const j = {
|
|
9
10
|
class: "page-content"
|
|
10
|
-
}, l = "/uums/employee",
|
|
11
|
+
}, l = "/uums/employee", Q = /* @__PURE__ */ E({
|
|
11
12
|
__name: "StaffPanel",
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
13
|
+
setup(q) {
|
|
14
|
+
const a = C(null), {
|
|
14
15
|
t: u
|
|
15
|
-
} =
|
|
16
|
+
} = P(), n = S("active"), t = N({
|
|
16
17
|
record: {},
|
|
17
18
|
showModelView: !1,
|
|
18
19
|
fetchExtParam: {}
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
+
B(() => n.value, (e) => {
|
|
21
22
|
t.fetchExtParam = {
|
|
22
23
|
departmentId: e == null ? void 0 : e.id
|
|
23
|
-
},
|
|
24
|
-
|
|
24
|
+
}, D(() => {
|
|
25
|
+
a.value.refreshData();
|
|
25
26
|
});
|
|
26
27
|
});
|
|
27
28
|
const m = [{
|
|
@@ -71,16 +72,16 @@ const Y = {
|
|
|
71
72
|
default: ({
|
|
72
73
|
row: e
|
|
73
74
|
}) => {
|
|
74
|
-
const
|
|
75
|
-
return [s(
|
|
75
|
+
const o = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", c = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", x = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
|
|
76
|
+
return [s(A, null, [s(r("ut-button"), {
|
|
76
77
|
icon: "ri-edit-box-line",
|
|
77
78
|
content: "edit",
|
|
78
79
|
onTap: () => v(e)
|
|
79
80
|
}, null), s(r("ut-button"), {
|
|
80
81
|
icon: c,
|
|
81
|
-
content:
|
|
82
|
+
content: o,
|
|
82
83
|
status: x,
|
|
83
|
-
onTap: () =>
|
|
84
|
+
onTap: () => b(e)
|
|
84
85
|
}, null)])];
|
|
85
86
|
}
|
|
86
87
|
}
|
|
@@ -91,27 +92,33 @@ const Y = {
|
|
|
91
92
|
e === "add" && y();
|
|
92
93
|
}
|
|
93
94
|
}, y = () => {
|
|
94
|
-
var e,
|
|
95
|
+
var e, o;
|
|
95
96
|
if (!((e = n.value) != null && e.deptName))
|
|
96
|
-
return
|
|
97
|
-
t.dataStatus = "add", t.record = {}, t.record.departmentId = (
|
|
97
|
+
return V("请先选择部门");
|
|
98
|
+
t.dataStatus = "add", t.record = {}, t.record.departmentId = (o = n.value) == null ? void 0 : o.id, t.record.deptName = n.value.deptName, t.record.enabled = "1", t.showModelView = !0;
|
|
98
99
|
}, v = (e) => {
|
|
99
100
|
t.dataStatus = "update", t.record = e, t.showModelView = !0;
|
|
100
|
-
},
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
await
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
}, b = async (e) => {
|
|
102
|
+
const o = U(e, !0);
|
|
103
|
+
a.value.showLoading(), o.enabled = o.enabled === "1" ? "0" : "1", await i().put(l, o), a.value.hiddenLoading(), a.value.refreshData();
|
|
104
|
+
}, g = async () => {
|
|
105
|
+
if (await Y.modal.confirm(u("message.tip.confirmSync")) !== "confirm") return;
|
|
106
|
+
a.value.showLoading();
|
|
107
|
+
const [o] = await O(i().post("/uums/employee/syncEwEmp", {}));
|
|
108
|
+
a.value.hiddenLoading(), !o && a.value.refreshData();
|
|
109
|
+
}, _ = (e) => {
|
|
110
|
+
e === "sync" && g();
|
|
111
|
+
}, w = {
|
|
112
|
+
querySuccess: (e) => {
|
|
113
|
+
}
|
|
114
|
+
}, k = () => {
|
|
115
|
+
t.showModelView = !1, a.value.refreshData();
|
|
109
116
|
};
|
|
110
|
-
return (e,
|
|
117
|
+
return (e, o) => {
|
|
111
118
|
const c = r("ut-grid");
|
|
112
|
-
return d(),
|
|
119
|
+
return d(), M("div", j, [s(c, {
|
|
113
120
|
ref_key: "xgrid",
|
|
114
|
-
ref:
|
|
121
|
+
ref: a,
|
|
115
122
|
items: f,
|
|
116
123
|
columns: p,
|
|
117
124
|
"default-params": t.fetchExtParam,
|
|
@@ -119,17 +126,18 @@ const Y = {
|
|
|
119
126
|
"auto-load": !1,
|
|
120
127
|
buttons: m,
|
|
121
128
|
url: l,
|
|
129
|
+
callback: w,
|
|
122
130
|
mode: "form",
|
|
123
|
-
onButtonClick:
|
|
124
|
-
}, null, 8, ["default-params"]), t.showModelView ? (d(),
|
|
131
|
+
onButtonClick: _
|
|
132
|
+
}, null, 8, ["default-params"]), t.showModelView ? (d(), I(T, {
|
|
125
133
|
key: 0,
|
|
126
134
|
record: t.record,
|
|
127
135
|
"data-status": t.dataStatus,
|
|
128
|
-
onOnClose:
|
|
129
|
-
}, null, 8, ["record", "data-status"])) :
|
|
136
|
+
onOnClose: k
|
|
137
|
+
}, null, 8, ["record", "data-status"])) : L("", !0)]);
|
|
130
138
|
};
|
|
131
139
|
}
|
|
132
140
|
});
|
|
133
141
|
export {
|
|
134
|
-
|
|
142
|
+
Q as _
|
|
135
143
|
};
|
|
@@ -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-HvJ4Hrps.js";
|
|
3
|
+
import { _ as a } from "./index-DYT0k5Sg.js";
|
|
4
4
|
const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
|
|
5
5
|
__name: "SysUser",
|
|
6
6
|
setup(m) {
|
|
@@ -4,7 +4,7 @@ import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
|
|
|
4
4
|
import { useRender as ue, warnMessage as me, delay as ce, errorMessage as fe, getDictChildren as pe } from "@utogether/utils";
|
|
5
5
|
import { VxeUI as ge } from "vxe-pc-ui";
|
|
6
6
|
import { clone as C, isEmpty as he } from "xe-utils";
|
|
7
|
-
import { y as we } from "./index-
|
|
7
|
+
import { y as we } from "./index-DYT0k5Sg.js";
|
|
8
8
|
const ve = {
|
|
9
9
|
class: "page"
|
|
10
10
|
}, i = "/uums/user", ke = /* @__PURE__ */ oe({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as k, reactive as S, ref as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as
|
|
5
|
-
import { clone as
|
|
6
|
-
import { t as
|
|
7
|
-
import { VxeUI as
|
|
8
|
-
import { useRender as
|
|
9
|
-
import { y as
|
|
1
|
+
import { defineComponent as k, reactive as S, ref as D, createVNode as o, resolveComponent as i, Fragment as h, createElementBlock as A, openBlock as E } from "vue";
|
|
2
|
+
import { useI18n as I } from "vue-i18n";
|
|
3
|
+
import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-KtLS__XM.js";
|
|
4
|
+
import { _ as P } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js";
|
|
5
|
+
import { clone as f } from "xe-utils";
|
|
6
|
+
import { t as R } from "./await-to-js.es5-BtRbN2QH.js";
|
|
7
|
+
import { VxeUI as M } from "vxe-pc-ui";
|
|
8
|
+
import { useRender as U } from "@utogether/utils";
|
|
9
|
+
import { y as W } from "./index-DYT0k5Sg.js";
|
|
10
10
|
const B = {
|
|
11
11
|
class: "page-content"
|
|
12
12
|
}, L = {
|
|
13
13
|
name: "SystemMenu"
|
|
14
|
-
},
|
|
14
|
+
}, G = /* @__PURE__ */ k({
|
|
15
15
|
...L,
|
|
16
16
|
setup(z) {
|
|
17
17
|
const t = S({
|
|
@@ -26,26 +26,26 @@ const B = {
|
|
|
26
26
|
pageNum: 1
|
|
27
27
|
}
|
|
28
28
|
}), {
|
|
29
|
-
t:
|
|
30
|
-
} =
|
|
29
|
+
t: g
|
|
30
|
+
} = I(), y = U(), d = W(), a = D(null), s = "/uums/menu";
|
|
31
31
|
let l;
|
|
32
|
-
const
|
|
32
|
+
const C = [{
|
|
33
33
|
type: "checkbox",
|
|
34
34
|
width: 50,
|
|
35
35
|
align: "center"
|
|
36
36
|
}, {
|
|
37
37
|
field: "menuName",
|
|
38
|
-
|
|
38
|
+
minWidth: 220,
|
|
39
39
|
treeNode: !0
|
|
40
40
|
}, {
|
|
41
41
|
field: "menuNameEn",
|
|
42
|
-
|
|
42
|
+
minWidth: 180
|
|
43
43
|
}, {
|
|
44
44
|
field: "sort",
|
|
45
45
|
width: 70
|
|
46
46
|
}, {
|
|
47
47
|
field: "menuCode",
|
|
48
|
-
|
|
48
|
+
minWidth: 220
|
|
49
49
|
}, {
|
|
50
50
|
field: "permissionCode",
|
|
51
51
|
minWidth: 180
|
|
@@ -57,7 +57,7 @@ const B = {
|
|
|
57
57
|
}, {
|
|
58
58
|
field: "enabled",
|
|
59
59
|
width: 80,
|
|
60
|
-
cellRender:
|
|
60
|
+
cellRender: y.renderEnabled(b)
|
|
61
61
|
}, {
|
|
62
62
|
field: "operate",
|
|
63
63
|
width: 140,
|
|
@@ -66,81 +66,84 @@ const B = {
|
|
|
66
66
|
default: ({
|
|
67
67
|
row: e
|
|
68
68
|
}) => {
|
|
69
|
-
const
|
|
69
|
+
const n = e.menuType, r = o(i("ut-button"), {
|
|
70
70
|
status: "u-cyan",
|
|
71
71
|
icon: "ri-add-fill",
|
|
72
72
|
content: "add",
|
|
73
73
|
onTap: () => u(e)
|
|
74
|
-
}, null),
|
|
74
|
+
}, null), m = o(i("ut-button"), {
|
|
75
75
|
icon: "ri-lock-fill",
|
|
76
76
|
content: "auth",
|
|
77
|
-
onTap: () =>
|
|
77
|
+
onTap: () => v(e)
|
|
78
78
|
}, null);
|
|
79
|
-
return [
|
|
79
|
+
return [o(h, null, [n ? null : o(h, null, [o(i("ut-button"), {
|
|
80
80
|
status: "success",
|
|
81
81
|
icon: "ri-edit-box-line",
|
|
82
82
|
content: "edit",
|
|
83
|
-
onTap: () =>
|
|
84
|
-
}, null), ["0", "5"].includes(e.menuCategory) ?
|
|
83
|
+
onTap: () => T(e)
|
|
84
|
+
}, null), ["0", "5"].includes(e.menuCategory) ? r : m])])];
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
}],
|
|
87
|
+
}], w = ({
|
|
88
88
|
code: e
|
|
89
89
|
}) => {
|
|
90
|
-
e === "add" && u(), e === "del" &&
|
|
91
|
-
},
|
|
90
|
+
e === "add" && u(), e === "del" && x();
|
|
91
|
+
}, _ = async ({
|
|
92
92
|
row: e
|
|
93
93
|
}) => {
|
|
94
|
-
const
|
|
94
|
+
const n = await d.get(s, {
|
|
95
95
|
parentId: e.id
|
|
96
96
|
});
|
|
97
|
-
return new Promise((
|
|
98
|
-
|
|
97
|
+
return new Promise((r) => {
|
|
98
|
+
r(n.list);
|
|
99
99
|
});
|
|
100
100
|
}, u = (e) => {
|
|
101
101
|
t.showDrawer = !0, t.dataStatus = "add", t.record.dispalyCode = e == null ? void 0 : e.permissionCode, t.record.permissionCode = e == null ? void 0 : e.permissionCode, t.record.menuType = "0", t.record.showLink = "Y", t.record.isApprovalPage = "N", t.record.menuCategory = e ? "" : "0", t.record.parentId = e == null ? void 0 : e.id, t.record.hasChildren = e == null ? void 0 : e.hasChildren, t.record.children = t.record.children || [], l = e;
|
|
102
|
-
},
|
|
103
|
-
t.showDrawer = !0, t.dataStatus = "update", t.record =
|
|
102
|
+
}, T = (e) => {
|
|
103
|
+
t.showDrawer = !0, t.dataStatus = "update", t.record = f(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
|
|
104
104
|
};
|
|
105
|
-
async function
|
|
105
|
+
async function b({
|
|
106
106
|
row: e
|
|
107
107
|
}) {
|
|
108
|
-
await d.put(s, [e]),
|
|
108
|
+
await d.put(s, [e]), a.value.refreshData();
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
const e = await
|
|
110
|
+
const x = async () => {
|
|
111
|
+
const e = await M.modal.confirm(g("message.delRecord")), n = a.value.getInstance().getCheckboxRecords();
|
|
112
112
|
if (e === "confirm") {
|
|
113
|
-
const [
|
|
113
|
+
const [r, m] = await R(d.delete(s, n));
|
|
114
|
+
if (r) return;
|
|
115
|
+
const p = a.value.getInstance().getTreeParentRow(n[0]);
|
|
116
|
+
p ? a.value.getInstance().reloadTreeExpand(p) : a.value.refreshData();
|
|
114
117
|
}
|
|
115
|
-
},
|
|
116
|
-
t.showAuthority = !0, t.dataStatus = "update", t.record =
|
|
117
|
-
}, c = (e,
|
|
118
|
-
e === "submit" && (l ||
|
|
118
|
+
}, v = (e) => {
|
|
119
|
+
t.showAuthority = !0, t.dataStatus = "update", t.record = f(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
|
|
120
|
+
}, c = (e, n) => {
|
|
121
|
+
e === "submit" && (l || n) && a.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
|
|
119
122
|
};
|
|
120
|
-
return (e,
|
|
121
|
-
const
|
|
122
|
-
return
|
|
123
|
+
return (e, n) => {
|
|
124
|
+
const r = i("ut-grid");
|
|
125
|
+
return E(), A("div", B, [o(r, {
|
|
123
126
|
ref_key: "xgrid",
|
|
124
|
-
ref:
|
|
127
|
+
ref: a,
|
|
125
128
|
"tree-config": {
|
|
126
129
|
childrenField: "children",
|
|
127
130
|
lazy: !0,
|
|
128
131
|
hasChild: "hasChildren",
|
|
129
|
-
loadMethod:
|
|
132
|
+
loadMethod: _,
|
|
130
133
|
iconOpen: "ri-checkbox-indeterminate-line ri-lg",
|
|
131
134
|
iconClose: "ri-add-box-line ri-lg"
|
|
132
135
|
},
|
|
133
|
-
columns:
|
|
136
|
+
columns: C,
|
|
134
137
|
url: s,
|
|
135
138
|
stripe: !1,
|
|
136
139
|
mode: "form",
|
|
137
|
-
onToolbarButtonClick:
|
|
138
|
-
}, null, 8, ["tree-config"]),
|
|
140
|
+
onToolbarButtonClick: w
|
|
141
|
+
}, null, 8, ["tree-config"]), o(N, {
|
|
139
142
|
show: t.showDrawer,
|
|
140
143
|
record: t.record,
|
|
141
144
|
"data-status": t.dataStatus,
|
|
142
145
|
onClose: c
|
|
143
|
-
}, null, 8, ["show", "record", "data-status"]),
|
|
146
|
+
}, null, 8, ["show", "record", "data-status"]), o(P, {
|
|
144
147
|
show: t.showAuthority,
|
|
145
148
|
record: t.record,
|
|
146
149
|
onClose: c
|
|
@@ -149,5 +152,5 @@ const B = {
|
|
|
149
152
|
}
|
|
150
153
|
});
|
|
151
154
|
export {
|
|
152
|
-
|
|
155
|
+
G as default
|
|
153
156
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as R, ref as i, reactive as x, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as m, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as A, mergeProps as E, toHandlers as P } from "vue";
|
|
2
2
|
import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
-
import { y as V } from "./index-
|
|
3
|
+
import { y as V } from "./index-DYT0k5Sg.js";
|
|
4
4
|
const q = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
|
|
5
5
|
__name: "UserInfo",
|
|
6
6
|
props: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { defineComponent as S, ref as l, resolveComponent as a, createElementBlock as E, openBlock as m, createVNode as n, withCtx as T, createBlock as H, createCommentVNode as U, Fragment as $ } from "vue";
|
|
2
|
+
import { useI18n as z } from "vue-i18n";
|
|
3
3
|
import { t as F } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
4
|
import { VxeUI as M } from "vxe-pc-ui";
|
|
5
5
|
import { useRender as O, successMessage as f } from "@utogether/utils";
|
|
6
|
-
import { y as p, i as
|
|
6
|
+
import { y as p, i as h } from "./index-DYT0k5Sg.js";
|
|
7
7
|
import { clone as j } from "xe-utils";
|
|
8
8
|
const G = {
|
|
9
9
|
class: "u-dict-config_wrapper"
|
|
10
|
-
},
|
|
10
|
+
}, v = "/upfm/v1/lov", ee = /* @__PURE__ */ S({
|
|
11
11
|
__name: "childView",
|
|
12
12
|
props: {
|
|
13
13
|
record: {
|
|
@@ -19,12 +19,12 @@ const G = {
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
emits: ["onClose"],
|
|
22
|
-
setup(
|
|
22
|
+
setup(g, {
|
|
23
23
|
emit: C
|
|
24
24
|
}) {
|
|
25
|
-
const w =
|
|
25
|
+
const w = g, y = O(), {
|
|
26
26
|
t: _
|
|
27
|
-
} =
|
|
27
|
+
} = z(), d = l(!1), i = l(null), s = l(null), t = l({}), o = l("add"), I = window.innerHeight - 70, k = [{
|
|
28
28
|
field: "dictCode",
|
|
29
29
|
title: "message.udp.dictCode",
|
|
30
30
|
required: !0,
|
|
@@ -47,7 +47,7 @@ const G = {
|
|
|
47
47
|
slots: {
|
|
48
48
|
default: ({
|
|
49
49
|
row: e
|
|
50
|
-
}) => [n(
|
|
50
|
+
}) => [n($, null, [n(a("ut-button"), {
|
|
51
51
|
content: "add",
|
|
52
52
|
status: "warning",
|
|
53
53
|
auth: "edit",
|
|
@@ -57,7 +57,7 @@ const G = {
|
|
|
57
57
|
content: "edit",
|
|
58
58
|
status: "primary",
|
|
59
59
|
auth: "edit",
|
|
60
|
-
onTap: () =>
|
|
60
|
+
onTap: () => x(e)
|
|
61
61
|
}, null), n(a("ut-button"), {
|
|
62
62
|
content: "del",
|
|
63
63
|
status: "danger",
|
|
@@ -65,7 +65,7 @@ const G = {
|
|
|
65
65
|
onTap: () => V(e)
|
|
66
66
|
}, null)])]
|
|
67
67
|
}
|
|
68
|
-
}],
|
|
68
|
+
}], b = [{
|
|
69
69
|
field: "dictCode",
|
|
70
70
|
title: "message.udp.dictCode",
|
|
71
71
|
required: !0
|
|
@@ -94,17 +94,17 @@ const G = {
|
|
|
94
94
|
parentId: e.id
|
|
95
95
|
};
|
|
96
96
|
}, V = async (e) => {
|
|
97
|
-
await M.modal.confirm(_("message.delRecord")) === "confirm" && (await p().delete(
|
|
98
|
-
},
|
|
97
|
+
await M.modal.confirm(_("message.delRecord")) === "confirm" && (await p().delete(v, [e]), f(), i.value.refreshData());
|
|
98
|
+
}, x = async (e) => {
|
|
99
99
|
d.value = !0, o.value = "edit", t.value = j(e, !0);
|
|
100
|
-
},
|
|
100
|
+
}, D = async () => {
|
|
101
101
|
const e = {
|
|
102
102
|
...t.value,
|
|
103
|
-
orgId:
|
|
104
|
-
organizationId:
|
|
103
|
+
orgId: h().getOrgId,
|
|
104
|
+
organizationId: h().getOrganizationId
|
|
105
105
|
};
|
|
106
106
|
s.value.showLoading();
|
|
107
|
-
const r = o.value === "add" ? "post" : "put", [u] = await F(p()[r](
|
|
107
|
+
const r = o.value === "add" ? "post" : "put", [u] = await F(p()[r](v, [e]));
|
|
108
108
|
if (s.value.hiddenLoading(), !u) {
|
|
109
109
|
if (d.value = o.value !== "edit", o.value === "add") {
|
|
110
110
|
const c = t.value.parentId;
|
|
@@ -115,28 +115,28 @@ const G = {
|
|
|
115
115
|
}
|
|
116
116
|
f(), i.value.refreshData();
|
|
117
117
|
}
|
|
118
|
-
},
|
|
118
|
+
}, q = (e) => {
|
|
119
119
|
e === "add" && N();
|
|
120
|
-
},
|
|
121
|
-
function
|
|
122
|
-
|
|
120
|
+
}, A = C;
|
|
121
|
+
function L() {
|
|
122
|
+
A("onClose");
|
|
123
123
|
}
|
|
124
124
|
return (e, r) => {
|
|
125
|
-
const u = a("ut-grid"), c = a("ut-modal-form"),
|
|
126
|
-
return m(), E("div", G, [n(
|
|
125
|
+
const u = a("ut-grid"), c = a("ut-modal-form"), R = a("vxe-drawer");
|
|
126
|
+
return m(), E("div", G, [n(R, {
|
|
127
127
|
"model-value": e.show,
|
|
128
|
-
"before-close": R,
|
|
129
128
|
title: e.$t("message.title.dictList", {
|
|
130
129
|
name: e.record.dictName
|
|
131
130
|
}),
|
|
132
|
-
|
|
131
|
+
position: "right",
|
|
133
132
|
"destroy-on-close": "",
|
|
134
|
-
|
|
133
|
+
width: "67%",
|
|
134
|
+
onClose: L
|
|
135
135
|
}, {
|
|
136
136
|
default: T(() => [n(u, {
|
|
137
137
|
ref_key: "xgrid",
|
|
138
138
|
ref: i,
|
|
139
|
-
columns:
|
|
139
|
+
columns: k,
|
|
140
140
|
height: I,
|
|
141
141
|
"default-params": {
|
|
142
142
|
parentId: e.record.id
|
|
@@ -151,13 +151,13 @@ const G = {
|
|
|
151
151
|
},
|
|
152
152
|
url: "/upfm/v1/lov/children",
|
|
153
153
|
mode: "form",
|
|
154
|
-
onButtonClick:
|
|
155
|
-
}, null, 8, ["default-params"]), d.value ? (m(),
|
|
154
|
+
onButtonClick: q
|
|
155
|
+
}, null, 8, ["default-params"]), d.value ? (m(), H(c, {
|
|
156
156
|
key: 0,
|
|
157
157
|
ref_key: "xmodal",
|
|
158
158
|
ref: s,
|
|
159
159
|
record: t.value,
|
|
160
|
-
items:
|
|
160
|
+
items: b,
|
|
161
161
|
width: "400",
|
|
162
162
|
height: "280",
|
|
163
163
|
"data-status": o.value,
|
|
@@ -165,8 +165,8 @@ const G = {
|
|
|
165
165
|
name: e.record.dictName
|
|
166
166
|
}),
|
|
167
167
|
onClose: r[0] || (r[0] = (J) => d.value = !1),
|
|
168
|
-
onConfirm:
|
|
169
|
-
}, null, 8, ["record", "data-status", "title"])) :
|
|
168
|
+
onConfirm: D
|
|
169
|
+
}, null, 8, ["record", "data-status", "title"])) : U("", !0)]),
|
|
170
170
|
_: 1
|
|
171
171
|
}, 8, ["model-value", "title"])]);
|
|
172
172
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as
|
|
1
|
+
import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as w, openBlock as _, createVNode as d, withCtx as c, withDirectives as W } from "vue";
|
|
2
2
|
import { t as u } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
3
|
import { useRender as P } from "@utogether/utils";
|
|
4
|
-
import { i as $, y as f } from "./index-
|
|
5
|
-
const
|
|
4
|
+
import { i as $, y as f } from "./index-DYT0k5Sg.js";
|
|
5
|
+
const x = { class: "ut-loview-wrapper" }, B = "/upfm/v1/lovViewHeader", p = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
|
|
6
6
|
__name: "childView",
|
|
7
7
|
props: {
|
|
8
8
|
record: { default: () => ({}) },
|
|
@@ -10,7 +10,7 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
|
|
|
10
10
|
},
|
|
11
11
|
emits: ["onClose"],
|
|
12
12
|
setup(R, { emit: g }) {
|
|
13
|
-
const l = R, t = P(),
|
|
13
|
+
const l = R, t = P(), m = $().dicts, s = a(!1), C = { value: "dictCode", label: "dictName" }, v = a(null), T = [
|
|
14
14
|
{ field: "lovCode", disabled: !0 },
|
|
15
15
|
{ field: "lovName", required: !0 },
|
|
16
16
|
{ field: "valueField", required: !0 },
|
|
@@ -41,8 +41,8 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
|
|
|
41
41
|
field: "dictCode",
|
|
42
42
|
title: "message.dictName",
|
|
43
43
|
width: 120,
|
|
44
|
-
editRender: t.renderSelectLocal({ options:
|
|
45
|
-
formatter: ["formatSelectLocal", [
|
|
44
|
+
editRender: t.renderSelectLocal({ options: m, optionProps: C }),
|
|
45
|
+
formatter: ["formatSelectLocal", [m, "dictCode", "dictName"]]
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
field: "isSearch",
|
|
@@ -58,7 +58,7 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
|
|
|
58
58
|
editRender: t.renderDict("SU.WHETHER"),
|
|
59
59
|
formatter: ["formatDict", "SU.WHETHER"]
|
|
60
60
|
}
|
|
61
|
-
],
|
|
61
|
+
], h = a(null), q = window.innerHeight - 195, y = {
|
|
62
62
|
editActived({ row: e }) {
|
|
63
63
|
i[6].editRender.props.disabled = e.fieldType !== "dictCode";
|
|
64
64
|
}
|
|
@@ -70,10 +70,10 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
|
|
|
70
70
|
v.value.validateForm(async (e) => {
|
|
71
71
|
if (!e) {
|
|
72
72
|
s.value = !0;
|
|
73
|
-
const [n] = await u(f().put(
|
|
73
|
+
const [n] = await u(f().put(B, [l.record]));
|
|
74
74
|
if (!n) {
|
|
75
|
-
const r =
|
|
76
|
-
r.insertRecords.length && await u(f().post(
|
|
75
|
+
const r = h.value.getInstance().getRecordset();
|
|
76
|
+
r.insertRecords.length && await u(f().post(p, r.insertRecords)), r.updateRecords.length && await u(f().put(p, r.updateRecords));
|
|
77
77
|
}
|
|
78
78
|
s.value = !1;
|
|
79
79
|
}
|
|
@@ -83,17 +83,16 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
|
|
|
83
83
|
b("onClose");
|
|
84
84
|
}
|
|
85
85
|
return (e, n) => {
|
|
86
|
-
const r = o("ut-button"), D = o("ut-form"), N = o("ut-divider"), U = o("ut-grid"), k = o("ut-content"), I = o("
|
|
87
|
-
return _(),
|
|
86
|
+
const r = o("ut-button"), D = o("ut-form"), N = o("ut-divider"), U = o("ut-grid"), k = o("ut-content"), I = o("vxe-drawer"), L = F("spinning");
|
|
87
|
+
return _(), w("div", x, [
|
|
88
88
|
d(I, {
|
|
89
89
|
"model-value": e.show,
|
|
90
|
-
"
|
|
91
|
-
"show-
|
|
92
|
-
"
|
|
93
|
-
size: "90%"
|
|
90
|
+
position: "right",
|
|
91
|
+
"show-header": !1,
|
|
92
|
+
width: "90%"
|
|
94
93
|
}, {
|
|
95
94
|
default: c(() => [
|
|
96
|
-
W((_(),
|
|
95
|
+
W((_(), w("div", null, [
|
|
97
96
|
d(k, {
|
|
98
97
|
title: e.$t("message.title.lovView"),
|
|
99
98
|
onClose: H
|
|
@@ -102,7 +101,7 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
|
|
|
102
101
|
d(r, {
|
|
103
102
|
icon: "ri-save-3-fill",
|
|
104
103
|
content: "save",
|
|
105
|
-
onTap: n[0] || (n[0] = (
|
|
104
|
+
onTap: n[0] || (n[0] = (Y) => S())
|
|
106
105
|
})
|
|
107
106
|
]),
|
|
108
107
|
body: c(() => [
|
|
@@ -118,9 +117,9 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
|
|
|
118
117
|
}, null, 8, ["title"]),
|
|
119
118
|
d(U, {
|
|
120
119
|
ref_key: "xgrid",
|
|
121
|
-
ref:
|
|
120
|
+
ref: h,
|
|
122
121
|
columns: i,
|
|
123
|
-
url:
|
|
122
|
+
url: p,
|
|
124
123
|
"default-value": { headerId: e.record.id },
|
|
125
124
|
"default-params": { headerId: e.record.id },
|
|
126
125
|
height: q,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as U, ref as d, createVNode as f, resolveComponent as i, nextTick as C, createElementBlock as y, openBlock as p, createBlock as b, createCommentVNode as q } from "vue";
|
|
2
2
|
import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
3
|
import { useRender as B } from "@utogether/utils";
|
|
4
|
-
import { y as D } from "./index-
|
|
4
|
+
import { y as D } from "./index-DYT0k5Sg.js";
|
|
5
5
|
const I = {
|
|
6
6
|
name: "CodeRule"
|
|
7
7
|
}, M = /* @__PURE__ */ U({
|