@utogether/udp-core 1.0.1-beta.6 → 1.0.1-beta.7
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-BQZ5OAKL.js} +1 -1
- package/dist/{404-BsseeBQQ.js → 404-H55ex36i.js} +1 -1
- package/dist/{500-DtKz7MA4.js → 500-bbrspTnK.js} +1 -1
- package/dist/{AuthorityInfo-iWYEWOmC.js → AuthorityInfo-BWni4UPQ.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-7WtOL6Hs.js +100 -0
- package/dist/{Company-CK8Zkcv3.js → Company-CuebFrQ0.js} +3 -3
- package/dist/{CompanyPanel-DL4UrYYG.js → CompanyPanel-DxPdJs6x.js} +1 -1
- package/dist/{Department-BPHn8to4.js → Department-D2a6Juur.js} +3 -3
- package/dist/{DepartmentPanel-Bqraa_NB.js → DepartmentPanel-C_s2R9yl.js} +1 -1
- package/dist/{DesignPanel-CFOIOZme.js → DesignPanel-CexZj3HF.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-H0FNG35Z.js → DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js} +19 -19
- package/dist/{DictView-CaD1yHQS.js → DictView-C0GS72rG.js} +19 -18
- package/dist/{InvOrganization-CoO0_wsY.js → InvOrganization-a1tQ2CEH.js} +1 -1
- package/dist/{Org-BU3oaFx3.js → Org-DifvzLLy.js} +1 -1
- package/dist/{Preview-B-K_bxDG.js → Preview-BOv5j9i6.js} +1 -1
- package/dist/{ReportDefine-DElbukSL.js → ReportDefine-Dli1Q0TB.js} +1 -1
- package/dist/{ReportDesign-DvUHOKDK.js → ReportDesign-zSWkcL_O.js} +26 -26
- package/dist/{ReportQuery-BcSYRNT3.js → ReportQuery-D5r3bvFc.js} +1 -1
- package/dist/{ReportQueryFrom-BGEA4Pqk.js → ReportQueryFrom-DiostHrX.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B-KEPnfY.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js} +1 -1
- package/dist/{ReportTemplate-DnPtEoxn.js → ReportTemplate-CYy4cZHQ.js} +1 -1
- package/dist/{Role-CMKkWZil.js → Role-BFQFxfQS.js} +6 -6
- package/dist/{RoleAssign-BToNzG9a.js → RoleAssign-BIdWSLTR.js} +3 -3
- package/dist/{RolePanel-BikZ-D2u.js → RolePanel-C7ybSknr.js} +1 -1
- package/dist/{RolePanel-BNqd7-M6.js → RolePanel-KC-UgmtF.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-C91CJO4e.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Nngq860f.js → RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js} +44 -38
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BDRDD2FX.js → ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js} +1 -1
- package/dist/{Staff-DBFATgM_.js → Staff-CY0DLsTN.js} +3 -3
- package/dist/{StaffInfo-CrfwZcEL.js → StaffInfo-DA7p265h.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CE3_NJF_.js → StaffInfo.vue_vue_type_script_setup_true_lang-f29A44gS.js} +1 -1
- package/dist/{StaffPanel-D54Rl_Bg.js → StaffPanel-DYP-mMp9.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js → StaffPanel.vue_vue_type_script_setup_true_lang-C0YAG2xV.js} +2 -2
- package/dist/{SysUser-CsuovBei.js → SysUser-FqS3Ctne.js} +2 -2
- package/dist/{SysUserPanel-DNUwWEVp.js → SysUserPanel-C_t6F99T.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-CY6mhBV0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CKZjy0OF.js} +96 -92
- package/dist/{SystemMenu-oLmwvaqT.js → SystemMenu-ChFrMzRg.js} +2 -2
- package/dist/{UserInfo-LyrDwBG1.js → UserInfo-I36LAXVj.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js → UserInfo.vue_vue_type_style_index_0_lang-BGY-LYeL.js} +30 -28
- package/dist/{childView-DGKp87fT.js → childView-CYpuOzRx.js} +1 -1
- package/dist/{childView-SmYl4G6c.js → childView-Csnlaqfs.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DU-Uun5d.js → childView.vue_vue_type_style_index_0_lang-B8EnA03l.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js → childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js} +1 -1
- package/dist/{code-rule-CfbGjmOs.js → code-rule-DHBSC5Qp.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-DMfwGfms.js → cron-task-CiI1MFla.js} +1 -1
- package/dist/{frameView-D-hu_pqQ.js → frameView-ZWKlbz9p.js} +1 -1
- package/dist/index-COBMRlmJ.js +5379 -0
- package/dist/{layoutView-D3SikBPr.js → layoutView-5OsbpP0u.js} +2 -2
- package/dist/{login-CQ1yBBdY.js → login-C55sa9gN.js} +2 -2
- package/dist/{lov-view-CSobDBH7.js → lov-view-DFfaUQ5m.js} +2 -2
- package/dist/{menuInfo-mFuM30f1.js → menuInfo-CZdLtLjN.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js → menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js} +1 -1
- package/dist/{pda-app-CIGFsvrX.js → pda-app-fLe8mrx-.js} +201 -189
- package/dist/{resource-mbd4LPi-.js → resource-ohWKO6Fh.js} +1 -1
- package/dist/{su-welcome-DruLsVvu.js → su-welcome-_UZTfrXX.js} +1 -1
- package/dist/{sys-config-TXb5cJM4.js → sys-config-DVuBsK7p.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/dist/{utogether-Cv0UXnEX.js → utogether-CxobZqGL.js} +1 -1
- package/package.json +1 -1
- package/src/components/udp/index.ts +2 -2
- package/src/components/udp/modal-grid.vue +288 -297
- package/src/components/udp/utils.ts +4 -11
- package/src/main.ts +10 -2
- package/src/plugins/i18n/zh.ts +7 -1
- package/src/plugins/vxe-table/index.ts +2 -2
- package/src/plugins/vxe-table/render.tsx +90 -15
- 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 +5 -3
- package/src/views/system/role-assign/RolePanel.vue +139 -136
- package/src/views/system/sysUser/SysUserPanel.vue +28 -32
- 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/urpt/design/DesignPanel.vue +10 -33
- 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/RolePanel.vue_vue_type_script_setup_true_lang-DYP3u1Nv.js +0 -126
- package/dist/index-ADANSV-q.js +0 -4278
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
v-if="showModal"
|
|
23
23
|
:record="record"
|
|
24
24
|
:items="items"
|
|
25
|
-
|
|
26
|
-
:height="
|
|
25
|
+
width="40%"
|
|
26
|
+
:height="290"
|
|
27
27
|
data-status="update"
|
|
28
28
|
title="复制模板"
|
|
29
29
|
@confirm="onConfirm"
|
|
@@ -94,12 +94,7 @@ const columns = [
|
|
|
94
94
|
return (
|
|
95
95
|
<>
|
|
96
96
|
<ut-button content="design" icon="ri-quill-pen-line" onTap={() => handleDesign(row)} />
|
|
97
|
-
<ut-button
|
|
98
|
-
content="copy"
|
|
99
|
-
status="warning"
|
|
100
|
-
icon="ri-file-copy-2-fill"
|
|
101
|
-
onTap={() => handleCopy(row)}
|
|
102
|
-
/>
|
|
97
|
+
<ut-button content="copy" status="warning" icon="ri-file-copy-2-fill" onTap={() => handleCopy(row)} />
|
|
103
98
|
<ut-button
|
|
104
99
|
content="export"
|
|
105
100
|
status="u-cyan"
|
|
@@ -117,25 +112,26 @@ const columns = [
|
|
|
117
112
|
const items = [
|
|
118
113
|
{
|
|
119
114
|
field: 'templateCode',
|
|
120
|
-
title: 'message.templateCode',
|
|
115
|
+
title: 'message.urpt.templateCode',
|
|
121
116
|
required: true,
|
|
122
117
|
itemRender: { name: '$input' },
|
|
123
118
|
span: 24
|
|
124
119
|
},
|
|
125
120
|
{
|
|
126
121
|
field: 'templateName',
|
|
127
|
-
title: 'message.templateName',
|
|
122
|
+
title: 'message.urpt.templateName',
|
|
128
123
|
required: true,
|
|
129
124
|
itemRender: { name: '$input' },
|
|
130
125
|
span: 24
|
|
131
126
|
},
|
|
132
127
|
{
|
|
133
128
|
field: 'paperType',
|
|
129
|
+
title: 'message.urpt.paperType',
|
|
134
130
|
width: 100,
|
|
135
131
|
required: true,
|
|
136
132
|
itemRender: renderHook.renderDict({ code: 'SU.PRINT.PAPER', defaultValue: 'A4' })
|
|
137
133
|
},
|
|
138
|
-
{ field: 'remarks', title: 'message.remark',
|
|
134
|
+
{ field: 'remarks', title: 'message.remark', itemRender: { name: '$input' }, span: 24 }
|
|
139
135
|
];
|
|
140
136
|
/*
|
|
141
137
|
// 启用/禁用
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as m, reactive as B, onBeforeMount as M, resolveComponent as n, resolveDirective as A, createElementBlock as f, openBlock as p, createVNode as t, withCtx as h, withDirectives as D, createElementVNode as _ } from "vue";
|
|
2
|
-
import { q as r } from "./index-ADANSV-q.js";
|
|
3
|
-
import { t as K } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
const S = { class: "config" }, E = {
|
|
5
|
-
"element-loading-text": "Loading...",
|
|
6
|
-
style: { position: "relative", height: "80vh" }
|
|
7
|
-
}, I = { style: { height: "85%", overflow: "auto" } }, V = { style: { position: "absolute", width: "100%", height: "15%" } }, R = /* @__PURE__ */ N({
|
|
8
|
-
__name: "AuthorityInfo",
|
|
9
|
-
props: {
|
|
10
|
-
show: { type: Boolean, default: !1 },
|
|
11
|
-
record: { default: () => ({}) },
|
|
12
|
-
dataStatus: { default: "detail" },
|
|
13
|
-
direction: { default: "rtl" }
|
|
14
|
-
},
|
|
15
|
-
emits: ["onClose"],
|
|
16
|
-
setup(v, { emit: y }) {
|
|
17
|
-
const c = v, d = m(null), o = m(!1), s = B({
|
|
18
|
-
dataList: [],
|
|
19
|
-
defaultCheckedKeys: []
|
|
20
|
-
// 默认权限
|
|
21
|
-
}), g = y, w = async () => {
|
|
22
|
-
const e = await r().get("/uums/menu/listMenuTree", {});
|
|
23
|
-
o.value = !1, s.dataList = e;
|
|
24
|
-
}, k = async () => {
|
|
25
|
-
const e = {
|
|
26
|
-
roleId: c.record.id,
|
|
27
|
-
menuType: "1"
|
|
28
|
-
}, a = await r().get("/uums/role/getRoleMenus", e);
|
|
29
|
-
s.defaultCheckedKeys = a.map((l) => l.id);
|
|
30
|
-
}, C = async () => {
|
|
31
|
-
const { record: e } = c;
|
|
32
|
-
o.value = !0;
|
|
33
|
-
const a = d.value.getCheckedNodes(!1, !0);
|
|
34
|
-
e.sysMenus = a, await K(r().put("/uums/role", [e])), o.value = !1, i();
|
|
35
|
-
};
|
|
36
|
-
function i() {
|
|
37
|
-
g("onClose");
|
|
38
|
-
}
|
|
39
|
-
return M(() => {
|
|
40
|
-
o.value = !0, k(), w();
|
|
41
|
-
}), (e, a) => {
|
|
42
|
-
const l = n("el-tree-v2"), b = n("el-divider"), u = n("ut-button"), x = n("el-row"), L = n("el-drawer"), T = A("spinning");
|
|
43
|
-
return p(), f("div", S, [
|
|
44
|
-
t(L, {
|
|
45
|
-
"model-value": e.show,
|
|
46
|
-
title: e.$t("message.title.authority", { role: e.record.roleName }),
|
|
47
|
-
"before-close": i,
|
|
48
|
-
direction: "rtl",
|
|
49
|
-
"destroy-on-close": "",
|
|
50
|
-
size: "40%"
|
|
51
|
-
}, {
|
|
52
|
-
default: h(() => [
|
|
53
|
-
D((p(), f("div", E, [
|
|
54
|
-
_("div", I, [
|
|
55
|
-
t(l, {
|
|
56
|
-
ref_key: "xTree",
|
|
57
|
-
ref: d,
|
|
58
|
-
data: s.dataList,
|
|
59
|
-
props: { children: "children", label: "menuName" },
|
|
60
|
-
"default-checked-keys": s.defaultCheckedKeys,
|
|
61
|
-
height: 420,
|
|
62
|
-
"show-checkbox": "",
|
|
63
|
-
"node-key": "id"
|
|
64
|
-
}, null, 8, ["data", "default-checked-keys"])
|
|
65
|
-
]),
|
|
66
|
-
_("div", V, [
|
|
67
|
-
t(b, { style: { margin: "16px 0" } }),
|
|
68
|
-
t(x, {
|
|
69
|
-
type: "flex",
|
|
70
|
-
justify: "end",
|
|
71
|
-
style: { "padding-right": "20px" }
|
|
72
|
-
}, {
|
|
73
|
-
default: h(() => [
|
|
74
|
-
t(u, {
|
|
75
|
-
content: "cancel",
|
|
76
|
-
icon: "ri-close-fill",
|
|
77
|
-
status: "warning",
|
|
78
|
-
onTap: i
|
|
79
|
-
}),
|
|
80
|
-
t(u, {
|
|
81
|
-
content: "confirm",
|
|
82
|
-
icon: "ri-save-3-fill",
|
|
83
|
-
status: "u-cyan",
|
|
84
|
-
onTap: C
|
|
85
|
-
})
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
})
|
|
89
|
-
])
|
|
90
|
-
])), [
|
|
91
|
-
[T, o.value]
|
|
92
|
-
])
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
}, 8, ["model-value", "title"])
|
|
96
|
-
]);
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
export {
|
|
101
|
-
R as _
|
|
102
|
-
};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, reactive as b, ref as g, inject as N, watch as B, nextTick as E, createVNode as h, resolveComponent as i, resolveDirective as M, withDirectives as A, createElementBlock as L, openBlock as w, createBlock as P, createCommentVNode as R, unref as S } from "vue";
|
|
2
|
-
import { useI18n as T } from "vue-i18n";
|
|
3
|
-
import { clone as U } from "xe-utils";
|
|
4
|
-
import { VxeUI as j } from "vxe-pc-ui";
|
|
5
|
-
import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
|
|
6
|
-
import { successMessage as v } from "@utogether/utils";
|
|
7
|
-
import { q as C } from "./index-ADANSV-q.js";
|
|
8
|
-
const q = {
|
|
9
|
-
class: "page-content"
|
|
10
|
-
}, d = "/uums/orgRole", W = /* @__PURE__ */ V({
|
|
11
|
-
__name: "RolePanel",
|
|
12
|
-
setup($) {
|
|
13
|
-
const e = b({
|
|
14
|
-
record: {},
|
|
15
|
-
loading: !1,
|
|
16
|
-
showModalView: !1
|
|
17
|
-
}), {
|
|
18
|
-
t: c
|
|
19
|
-
} = T(), n = g(null), u = g(null), o = N("active");
|
|
20
|
-
B(() => o.value, () => {
|
|
21
|
-
o != null && o.value.id && (e.fetchExtParam = {
|
|
22
|
-
orgId: o == null ? void 0 : o.value.id
|
|
23
|
-
}, E(() => {
|
|
24
|
-
n.value.refreshData();
|
|
25
|
-
}));
|
|
26
|
-
});
|
|
27
|
-
const x = [{
|
|
28
|
-
code: "del",
|
|
29
|
-
auth: "/"
|
|
30
|
-
}], m = [{
|
|
31
|
-
field: "roleName",
|
|
32
|
-
title: "message.udp.roleName"
|
|
33
|
-
}, {
|
|
34
|
-
field: "roleCode",
|
|
35
|
-
title: "message.udp.roleCode"
|
|
36
|
-
}], f = [{
|
|
37
|
-
type: "checkbox",
|
|
38
|
-
width: 40
|
|
39
|
-
}, {
|
|
40
|
-
field: "roleCode",
|
|
41
|
-
title: "message.udp.roleCode"
|
|
42
|
-
}, {
|
|
43
|
-
field: "roleName",
|
|
44
|
-
title: "message.udp.roleName"
|
|
45
|
-
}, {
|
|
46
|
-
field: "roleDesc",
|
|
47
|
-
title: "message.udp.roleDesc"
|
|
48
|
-
}, {
|
|
49
|
-
field: "enabled",
|
|
50
|
-
width: 100,
|
|
51
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
52
|
-
}], p = U(f, !0);
|
|
53
|
-
p.push({
|
|
54
|
-
field: "operate",
|
|
55
|
-
width: 80,
|
|
56
|
-
fixed: "right",
|
|
57
|
-
slots: {
|
|
58
|
-
default: ({
|
|
59
|
-
row: t
|
|
60
|
-
}) => [h(i("ut-button"), {
|
|
61
|
-
icon: "ri-delete-bin-5-fill",
|
|
62
|
-
content: "del",
|
|
63
|
-
status: "danger",
|
|
64
|
-
auth: "del",
|
|
65
|
-
onTap: () => D(t)
|
|
66
|
-
}, null)]
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
const k = () => {
|
|
70
|
-
e.record = {}, e.record.orgId = o.value.id, e.showModalView = !0;
|
|
71
|
-
}, D = async (t) => {
|
|
72
|
-
if (await j.modal.confirm(c("message.tip.del")) === "confirm") {
|
|
73
|
-
const s = {
|
|
74
|
-
orgId: o.value.id,
|
|
75
|
-
roleId: t.id
|
|
76
|
-
};
|
|
77
|
-
e.loading = !0;
|
|
78
|
-
const [a] = await _(C().delete(d, s));
|
|
79
|
-
a || v(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
|
|
80
|
-
}
|
|
81
|
-
}, I = async (t) => {
|
|
82
|
-
const r = [];
|
|
83
|
-
t.forEach((l) => {
|
|
84
|
-
l.orgId = o.value.id, l.roleId = l.id, r.push(l);
|
|
85
|
-
});
|
|
86
|
-
const s = {
|
|
87
|
-
orgRoleList: r
|
|
88
|
-
};
|
|
89
|
-
u.value.showLoading();
|
|
90
|
-
const [a] = await _(C().post(d, s));
|
|
91
|
-
a || (v(), n.value.refreshData(), e.showModalView = !1);
|
|
92
|
-
}, y = (t) => {
|
|
93
|
-
t === "add" && k();
|
|
94
|
-
};
|
|
95
|
-
return (t, r) => {
|
|
96
|
-
const s = i("ut-grid"), a = i("ut-modal-grid"), l = M("spinning");
|
|
97
|
-
return A((w(), L("div", q, [h(s, {
|
|
98
|
-
ref_key: "xgrid",
|
|
99
|
-
ref: n,
|
|
100
|
-
items: m,
|
|
101
|
-
columns: S(p),
|
|
102
|
-
"default-params": e.fetchExtParam,
|
|
103
|
-
buttons: x,
|
|
104
|
-
"auto-load": !1,
|
|
105
|
-
url: d,
|
|
106
|
-
mode: "form",
|
|
107
|
-
onButtonClick: y
|
|
108
|
-
}, null, 8, ["columns", "default-params"]), e.showModalView ? (w(), P(a, {
|
|
109
|
-
key: 0,
|
|
110
|
-
ref_key: "xmodal",
|
|
111
|
-
ref: u,
|
|
112
|
-
items: m,
|
|
113
|
-
columns: f,
|
|
114
|
-
"show-footer": !0,
|
|
115
|
-
editable: !1,
|
|
116
|
-
url: "/uums/role",
|
|
117
|
-
width: "60%",
|
|
118
|
-
onClose: r[0] || (r[0] = (z) => e.showModalView = !1),
|
|
119
|
-
onConfirm: I
|
|
120
|
-
}, null, 512)) : R("", !0)])), [[l, e.loading]]);
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
export {
|
|
125
|
-
W as _
|
|
126
|
-
};
|