@utogether/udp-core 2.0.0-beta.27 → 2.0.0-beta.28
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-gdcH0-Bo.js → 403-CyoOD-Ik.js} +1 -1
- package/dist/{404-Se2SF97M.js → 404-Ch_OHTw0.js} +1 -1
- package/dist/{500-B6j9AqLo.js → 500-Cf9am7HK.js} +1 -1
- package/dist/{AuthorityInfo-CQ8ydZvr.js → AuthorityInfo-BJ427cqG.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js → AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js} +11 -12
- package/dist/{Company-BzSVBSC4.js → Company-qo-lKPkv.js} +3 -3
- package/dist/{CompanyPanel-DBjZB4aJ.js → CompanyPanel-DkKWAKvY.js} +7 -7
- package/dist/{Department-BkgseHo8.js → Department-CHUQByKX.js} +3 -3
- package/dist/{DepartmentPanel-Sen93_2M.js → DepartmentPanel-C742dfOO.js} +27 -28
- package/dist/{DesignPanel-pqDcwaFC.js → DesignPanel-D9oE5R7m.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js → DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js} +192 -108
- package/dist/{DictView-CJLG4LlE.js → DictView-CrFXprP9.js} +1 -1
- package/dist/{InvOrganization-D0Jq1IAa.js → InvOrganization-Cz8SzIgs.js} +6 -7
- package/dist/{Org-CO_1WT39.js → Org-Bzt6yKox.js} +9 -10
- package/dist/{Preview-DLI4Bwel.js → Preview-jonigfMQ.js} +1 -1
- package/dist/{ReportDefine-Cw46OnJ_.js → ReportDefine-BpiM5Ovq.js} +1 -1
- package/dist/{ReportDesign-D4sHTXT7.js → ReportDesign-fp09cXJ7.js} +24 -25
- package/dist/{ReportQuery-DtOCvQSN.js → ReportQuery-52ZP1PYP.js} +1 -1
- package/dist/{ReportQueryFrom-QjL-ETPq.js → ReportQueryFrom-DSYavJb1.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js} +4 -4
- package/dist/{ReportTemplate-BxAgc_Aj.js → ReportTemplate-CA_UW0eD.js} +3 -3
- package/dist/{Role-Df77BBD-.js → Role-DqOt8Bk0.js} +3 -3
- package/dist/{RoleAssign-BrunouML.js → RoleAssign-BdxhefhQ.js} +3 -3
- package/dist/{RolePanel-HLA7XBlN.js → RolePanel-2gZ3H0ET.js} +1 -1
- package/dist/{RolePanel-DSVwqhiD.js → RolePanel-BsNd0svJ.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js → RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js} +9 -9
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js → RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js} +26 -27
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js → ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js} +7 -7
- package/dist/{Staff-BeL1xcRf.js → Staff-D3L8fEoY.js} +3 -3
- package/dist/{StaffInfo-CIfnltyX.js → StaffInfo-DYRw6ZYJ.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js → StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js} +1 -1
- package/dist/{StaffPanel-BV2CHWac.js → StaffPanel-DkrNH6Px.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js → StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js} +8 -9
- package/dist/{SysUser-DPfNvthk.js → SysUser-Bl1-cIpJ.js} +2 -2
- package/dist/{SysUserPanel-CoLKYlQE.js → SysUserPanel-yxNLaBwt.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js} +11 -12
- package/dist/{SystemMenu-sdj1dRDA.js → SystemMenu-C4_Arn12.js} +9 -10
- package/dist/{UserInfo-CTX4hhFl.js → UserInfo-QcNwJCUR.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js → UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js} +5 -6
- package/dist/{childView-BDmWwJO5.js → childView-B23DEO2u.js} +1 -1
- package/dist/{childView-Dx3ACtHa.js → childView-saDZQv9x.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js → childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js} +14 -15
- package/dist/{childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js → childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js} +11 -12
- package/dist/{code-rule-cvN4gYC_.js → code-rule-2_Ihx_by.js} +12 -13
- package/dist/core.es.js +21 -19
- package/dist/{cron-task-B0TkxFdp.js → cron-task-BFOPJQIk.js} +3 -4
- package/dist/{frameView-5cy5BSgS.js → frameView-f7Ya0Knj.js} +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/{index-C5WRTwvI.js → index-BpdTDaTk.js} +811 -604
- package/dist/{layout-home-DrARg-3o.js → layout-home-v3DPJ7rB.js} +12 -13
- package/dist/{layoutView-25v_ngk5.js → layoutView-DZHoQDH1.js} +186 -187
- package/dist/{log-in-Bmz5Uhbt.js → log-in-BPAMJTwH.js} +4 -5
- package/dist/{log-out-B-8m3oNj.js → log-out-DZACF0jg.js} +8 -9
- package/dist/{login-Cmp2RvvW.js → login-B8cwozax.js} +22 -23
- package/dist/{lov-view-BATtzw2X.js → lov-view-Ba7Y7xy0.js} +4 -5
- package/dist/{menuInfo-BIvrE7nm.js → menuInfo-BpRKFYK8.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js → menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js} +17 -18
- package/dist/{pda-app-CzHVyeEa.js → pda-app-C0jJecrL.js} +7 -8
- package/dist/{resource-Y5lGB38n.js → resource-BG22Cw4P.js} +4 -4
- package/dist/su-welcome-DaxhbrC6.js +879 -0
- package/dist/{sys-config-CqO03LeC.js → sys-config-CG2fMtak.js} +22 -23
- package/dist/udp-core.css +1 -1
- package/dist/{useNav-C-rCgubt.js → useNav-_u2UAQWk.js} +24 -24
- package/index.ts +54 -51
- package/package.json +21 -21
- package/src/api/http.ts +10 -4
- package/src/api/index.ts +51 -51
- package/src/api/user.ts +64 -64
- package/src/components/udp/content/index.vue +93 -93
- package/src/components/udp/form-upload/form-upload.vue +496 -496
- package/src/components/udp/grid/index.vue +643 -544
- package/src/components/udp/index.ts +2 -1
- package/src/components/udp/modal-form/index.vue +326 -0
- package/src/components/udp/utils.ts +420 -420
- package/src/layout/components/lay-navbar/index.vue +240 -240
- package/src/layout/components/lay-search/components/SearchModal.vue +185 -185
- package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
- package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
- package/src/layout/components/lay-sidebar/vertical.vue +92 -92
- package/src/layout/layoutView.vue +1 -0
- package/src/main.ts +111 -111
- package/src/plugins/i18n/zh.ts +5 -1
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/router/index.ts +158 -156
- package/src/router/utils.ts +434 -430
- package/src/store/modules/permission.ts +1 -1
- package/src/store/modules/system.ts +193 -193
- package/src/style/print-lock.css +380 -375
- package/src/style/suprint.css +990 -985
- package/src/utils/authority/index.ts +46 -46
- package/src/utils/dataFormat/index.ts +309 -222
- package/src/utils/udp/http/index.ts +19 -11
- package/src/views/uhome/components/home-todo.vue +15 -3
- package/src/views/uhome/dynamic-card.vue +31 -31
- package/src/views/uhome/su-welcome.vue +310 -310
- package/src/views/ulogin/login.vue +292 -292
- package/src/views/urpt/design/DesignPanel.vue +538 -507
- package/src/views/urpt/design/print-data.ts +39 -59
- package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
- package/dist/su-welcome-CXA6OzBw.js +0 -878
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { defineComponent as A, ref as s, createVNode as
|
|
1
|
+
import { defineComponent as A, ref as s, createVNode as r, Fragment as I, resolveComponent as a, nextTick as b, openBlock as u, createElementBlock as q, withDirectives as x, vShow as E, createBlock as m, createCommentVNode as c } from "vue";
|
|
2
2
|
import { useRender as S, successMessage as $ } from "@utogether/utils";
|
|
3
3
|
import { useClipboard as V } from "@vueuse/core";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
7
|
-
const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
|
|
4
|
+
import { i as B, j as M } from "./index-BpdTDaTk.js";
|
|
5
|
+
import { _ as U } from "./DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js";
|
|
6
|
+
const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
|
|
8
7
|
name: "ReportDesign",
|
|
9
8
|
__name: "ReportDesign",
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
9
|
+
setup(j) {
|
|
10
|
+
const o = s(null), l = s(!1), i = s(!1), n = S(), t = s({}), {
|
|
12
11
|
copy: v
|
|
13
|
-
} = V(), g =
|
|
12
|
+
} = V(), g = M(), h = [{
|
|
14
13
|
field: "templateCode",
|
|
15
14
|
title: "message.urpt.templateCode"
|
|
16
15
|
}, {
|
|
@@ -27,21 +26,21 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
|
|
|
27
26
|
title: "message.urpt.templateCode",
|
|
28
27
|
required: !0,
|
|
29
28
|
width: 150,
|
|
30
|
-
editRender:
|
|
29
|
+
editRender: n.renderInput()
|
|
31
30
|
},
|
|
32
31
|
{
|
|
33
32
|
field: "templateName",
|
|
34
33
|
title: "message.urpt.templateName",
|
|
35
34
|
required: !0,
|
|
36
35
|
width: 240,
|
|
37
|
-
editRender:
|
|
36
|
+
editRender: n.renderInput()
|
|
38
37
|
},
|
|
39
38
|
{
|
|
40
39
|
field: "paperType",
|
|
41
40
|
title: "message.urpt.paperType",
|
|
42
41
|
width: 120,
|
|
43
42
|
required: !0,
|
|
44
|
-
editRender:
|
|
43
|
+
editRender: n.renderDict({
|
|
45
44
|
code: "SU.PRINT.PAPER",
|
|
46
45
|
defaultValue: "A4"
|
|
47
46
|
}),
|
|
@@ -52,7 +51,7 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
|
|
|
52
51
|
field: "remarks",
|
|
53
52
|
title: "message.remark",
|
|
54
53
|
minWidth: 120,
|
|
55
|
-
editRender:
|
|
54
|
+
editRender: n.renderInput()
|
|
56
55
|
},
|
|
57
56
|
// { field: 'enabled', width: 55, formatter: ['formatDict', 'SU.ENABLE'] },
|
|
58
57
|
{
|
|
@@ -61,16 +60,16 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
|
|
|
61
60
|
slots: {
|
|
62
61
|
default: ({
|
|
63
62
|
row: e
|
|
64
|
-
}) => e.id ?
|
|
63
|
+
}) => e.id ? r(I, null, [r(a("ut-button"), {
|
|
65
64
|
content: "design",
|
|
66
65
|
icon: "ri-quill-pen-line",
|
|
67
66
|
onTap: () => k(e)
|
|
68
|
-
}, null),
|
|
67
|
+
}, null), r(a("ut-button"), {
|
|
69
68
|
content: "copy",
|
|
70
69
|
status: "warning",
|
|
71
70
|
icon: "ri-file-copy-2-fill",
|
|
72
71
|
onTap: () => R(e)
|
|
73
|
-
}, null),
|
|
72
|
+
}, null), r(a("ut-button"), {
|
|
74
73
|
content: "export",
|
|
75
74
|
status: "u-cyan",
|
|
76
75
|
icon: "ri-folder-download-fill",
|
|
@@ -99,7 +98,7 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
|
|
|
99
98
|
title: "message.urpt.paperType",
|
|
100
99
|
width: 100,
|
|
101
100
|
required: !0,
|
|
102
|
-
itemRender:
|
|
101
|
+
itemRender: n.renderDict({
|
|
103
102
|
code: "SU.PRINT.PAPER",
|
|
104
103
|
defaultValue: "A4"
|
|
105
104
|
})
|
|
@@ -116,7 +115,7 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
|
|
|
116
115
|
v(e.templateContent), $("复制成功,快试试右键粘贴吧");
|
|
117
116
|
}, _ = async () => {
|
|
118
117
|
const [e] = await B(g.post(f, [t.value]));
|
|
119
|
-
!e &&
|
|
118
|
+
!e && o.value.refreshData(), i.value = !1;
|
|
120
119
|
}, k = (e) => {
|
|
121
120
|
t.value = e, b(() => {
|
|
122
121
|
l.value = !0;
|
|
@@ -125,24 +124,24 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
|
|
|
125
124
|
editActived({
|
|
126
125
|
row: e
|
|
127
126
|
}) {
|
|
128
|
-
d[1].editRender.props.disabled = !!e.id,
|
|
127
|
+
d[1].editRender.props.disabled = !!e.id, o.value.getInstance().refreshColumn();
|
|
129
128
|
}
|
|
130
129
|
}, N = ({
|
|
131
130
|
row: e
|
|
132
131
|
}) => e?.enabled !== "1", w = () => {
|
|
133
|
-
t.value = {}, l.value = !1,
|
|
132
|
+
t.value = {}, l.value = !1, o.value.refreshData();
|
|
134
133
|
};
|
|
135
134
|
return (e, p) => {
|
|
136
|
-
const D =
|
|
137
|
-
return u(), q("div", null, [x(
|
|
135
|
+
const D = a("ut-grid"), P = a("ut-modal-form");
|
|
136
|
+
return u(), q("div", null, [x(r(D, {
|
|
138
137
|
ref_key: "xgrid",
|
|
139
|
-
ref:
|
|
138
|
+
ref: o,
|
|
140
139
|
items: h,
|
|
141
140
|
columns: d,
|
|
142
141
|
"check-method": N,
|
|
143
142
|
url: f,
|
|
144
143
|
events: T
|
|
145
|
-
}, null, 512), [[E, !l.value]]), l.value ? (u(), m(
|
|
144
|
+
}, null, 512), [[E, !l.value]]), l.value ? (u(), m(U, {
|
|
146
145
|
key: 0,
|
|
147
146
|
record: t.value,
|
|
148
147
|
onOnClose: w
|
|
@@ -155,11 +154,11 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
|
|
|
155
154
|
"data-status": "update",
|
|
156
155
|
title: "复制模板",
|
|
157
156
|
onConfirm: _,
|
|
158
|
-
onClose: p[0] || (p[0] = (
|
|
157
|
+
onClose: p[0] || (p[0] = (F) => i.value = !1)
|
|
159
158
|
}, null, 8, ["record"])) : c("", !0)]);
|
|
160
159
|
};
|
|
161
160
|
}
|
|
162
161
|
});
|
|
163
162
|
export {
|
|
164
|
-
|
|
163
|
+
z as default
|
|
165
164
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, reactive as m, watch as c, ref as f, onMounted as u, resolveComponent as p, openBlock as o, createElementBlock as h, withDirectives as _, createVNode as w, vShow as x, createBlock as D, createCommentVNode as R } from "vue";
|
|
2
2
|
import { useRoute as C } from "vue-router";
|
|
3
|
-
import { _ as S } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as S } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js";
|
|
4
4
|
import { useRender as g } from "@utogether/utils";
|
|
5
5
|
const N = { name: "ReportQuery" }, O = /* @__PURE__ */ s({
|
|
6
6
|
...N,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as T, ref as $, computed as S, nextTick as I, reactive as q, onBeforeMount as X, resolveComponent as i, openBlock as B, createElementBlock as
|
|
1
|
+
import { defineComponent as T, ref as $, computed as S, nextTick as I, reactive as q, onBeforeMount as X, resolveComponent as i, openBlock as B, createElementBlock as j, createVNode as a, withCtx as F, createElementVNode as D } from "vue";
|
|
2
2
|
import { useI18n as z } from "vue-i18n";
|
|
3
3
|
import { clone as A } from "xe-utils";
|
|
4
4
|
import { useRoute as J } from "vue-router";
|
|
5
5
|
import { templateRef as O } from "@vueuse/core";
|
|
6
|
-
import {
|
|
6
|
+
import { j as V } from "./index-BpdTDaTk.js";
|
|
7
7
|
import { useRender as Y } from "@utogether/utils";
|
|
8
8
|
const H = { class: "ut-drawer-template" }, M = { class: "flex" }, te = /* @__PURE__ */ T({
|
|
9
9
|
__name: "ReportQueryFrom",
|
|
@@ -124,7 +124,7 @@ const H = { class: "ut-drawer-template" }, M = { class: "flex" }, te = /* @__PUR
|
|
|
124
124
|
}));
|
|
125
125
|
}), (e, t) => {
|
|
126
126
|
const n = i("vxe-form"), o = i("el-divider"), d = i("ut-button"), p = i("el-row"), l = i("el-drawer");
|
|
127
|
-
return B(),
|
|
127
|
+
return B(), j("div", H, [
|
|
128
128
|
a(l, {
|
|
129
129
|
"model-value": c.show,
|
|
130
130
|
title: c.drawTitle,
|
|
@@ -133,7 +133,7 @@ const H = { class: "ut-drawer-template" }, M = { class: "flex" }, te = /* @__PUR
|
|
|
133
133
|
size: "66%"
|
|
134
134
|
}, {
|
|
135
135
|
default: F(() => [
|
|
136
|
-
|
|
136
|
+
D("div", M, [
|
|
137
137
|
a(n, {
|
|
138
138
|
ref_key: "xForm",
|
|
139
139
|
ref: w,
|
|
@@ -2,8 +2,8 @@ import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolv
|
|
|
2
2
|
import { useI18n as q } 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 {
|
|
6
|
-
const I = "/upms/v1/printTemplateConfig",
|
|
5
|
+
import { h as C, j as D } from "./index-BpdTDaTk.js";
|
|
6
|
+
const I = "/upms/v1/printTemplateConfig", A = /* @__PURE__ */ E({
|
|
7
7
|
__name: "ReportTemplate",
|
|
8
8
|
setup(W) {
|
|
9
9
|
const {
|
|
@@ -157,5 +157,5 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
export {
|
|
160
|
-
|
|
160
|
+
A as default
|
|
161
161
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, ref as e, provide as t, openBlock as i, createElementBlock 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 d } from "./RolePanel.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-B9ptUMeI.js";
|
|
3
|
+
import { _ as d } from "./RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js";
|
|
4
|
+
import { _ as p } from "./index-BpdTDaTk.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) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, ref as e, provide as t, openBlock as i, createElementBlock 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-B9ptUMeI.js";
|
|
3
|
+
import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js";
|
|
4
|
+
import { _ as d } from "./index-BpdTDaTk.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) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as S, reactive as I, inject as M, ref as r, watch as B, createVNode as o, Fragment as E, resolveComponent as s, openBlock as l, createElementBlock as $, createBlock as i, createCommentVNode as c } from "vue";
|
|
2
2
|
import { useRender as O } from "@utogether/utils";
|
|
3
|
-
import { _ as P } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as R } from "./UserInfo.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
3
|
+
import { _ as P } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js";
|
|
4
|
+
import { _ as R } from "./UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js";
|
|
5
|
+
import { j as T, h as j } from "./index-BpdTDaTk.js";
|
|
6
|
+
const q = {
|
|
7
7
|
class: "page-content"
|
|
8
|
-
},
|
|
8
|
+
}, K = /* @__PURE__ */ S({
|
|
9
9
|
__name: "RolePanel",
|
|
10
|
-
setup(
|
|
10
|
+
setup(H) {
|
|
11
11
|
const e = I({
|
|
12
12
|
record: {},
|
|
13
13
|
showAuthView: !1,
|
|
@@ -86,7 +86,7 @@ const H = {
|
|
|
86
86
|
}, C = (t) => {
|
|
87
87
|
t === "add" && V(), t === "del" && b();
|
|
88
88
|
}, V = () => {
|
|
89
|
-
e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = d?.value?.id, e.record.enabled = "1", e.record.orgId =
|
|
89
|
+
e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = d?.value?.id, e.record.enabled = "1", e.record.orgId = j().getOrgId, e.showModalView = !0;
|
|
90
90
|
}, k = (t) => {
|
|
91
91
|
n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
|
|
92
92
|
}, b = () => {
|
|
@@ -110,7 +110,7 @@ const H = {
|
|
|
110
110
|
}, U = (t) => t.roleCode !== "admin";
|
|
111
111
|
return (t, h) => {
|
|
112
112
|
const x = s("ut-grid"), N = s("ut-modal-form");
|
|
113
|
-
return l(), $("div",
|
|
113
|
+
return l(), $("div", q, [o(x, {
|
|
114
114
|
ref_key: "xgrid",
|
|
115
115
|
ref: a,
|
|
116
116
|
items: w,
|
|
@@ -148,5 +148,5 @@ const H = {
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
export {
|
|
151
|
-
|
|
151
|
+
K as _
|
|
152
152
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
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, openBlock as v, createElementBlock as A, unref as R, createBlock as S, createCommentVNode as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { clone as
|
|
4
|
-
import { VxeUI as
|
|
5
|
-
import {
|
|
6
|
-
import { successMessage as
|
|
7
|
-
import { n as C } from "./index-C5WRTwvI.js";
|
|
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, openBlock as v, createElementBlock as A, unref as R, createBlock as S, createCommentVNode as j } from "vue";
|
|
2
|
+
import { useI18n as T } from "vue-i18n";
|
|
3
|
+
import { clone as U } from "xe-utils";
|
|
4
|
+
import { VxeUI as $ } from "vxe-pc-ui";
|
|
5
|
+
import { i as w, j as _ } from "./index-BpdTDaTk.js";
|
|
6
|
+
import { successMessage as C } from "@utogether/utils";
|
|
8
7
|
const q = {
|
|
9
8
|
class: "page-content"
|
|
10
|
-
}, d = "/uums/orgRole",
|
|
9
|
+
}, d = "/uums/orgRole", W = /* @__PURE__ */ b({
|
|
11
10
|
__name: "RolePanel",
|
|
12
11
|
setup(z) {
|
|
13
12
|
const e = E({
|
|
@@ -16,7 +15,7 @@ const q = {
|
|
|
16
15
|
showModalView: !1
|
|
17
16
|
}), {
|
|
18
17
|
t: c
|
|
19
|
-
} =
|
|
18
|
+
} = T(), n = g(null), u = g(null), t = M("active");
|
|
20
19
|
N(() => t.value, () => {
|
|
21
20
|
t?.value.id && (e.fetchExtParam = {
|
|
22
21
|
orgId: t?.value.id
|
|
@@ -51,7 +50,7 @@ const q = {
|
|
|
51
50
|
field: "enabled",
|
|
52
51
|
width: 100,
|
|
53
52
|
formatter: ["formatDict", "SU.ENABLE"]
|
|
54
|
-
}], p =
|
|
53
|
+
}], p = U(f, !0);
|
|
55
54
|
p.push({
|
|
56
55
|
field: "operate",
|
|
57
56
|
width: 80,
|
|
@@ -71,32 +70,32 @@ const q = {
|
|
|
71
70
|
const x = () => {
|
|
72
71
|
e.record = {}, e.record.orgId = t.value.id, e.showModalView = !0;
|
|
73
72
|
}, D = async (o) => {
|
|
74
|
-
if (await
|
|
75
|
-
const
|
|
73
|
+
if (await $.modal.confirm(c("message.tip.del")) === "confirm") {
|
|
74
|
+
const r = {
|
|
76
75
|
orgId: t.value.id,
|
|
77
76
|
roleId: o.id
|
|
78
77
|
};
|
|
79
78
|
e.loading = !0;
|
|
80
|
-
const [s] = await w(
|
|
81
|
-
s ||
|
|
79
|
+
const [s] = await w(_().delete(d, r));
|
|
80
|
+
s || C(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
|
|
82
81
|
}
|
|
83
82
|
}, I = async (o) => {
|
|
84
|
-
const
|
|
85
|
-
o.forEach((
|
|
86
|
-
|
|
83
|
+
const a = [];
|
|
84
|
+
o.forEach((l) => {
|
|
85
|
+
l.orgId = t.value.id, l.roleId = l.id, a.push(l);
|
|
87
86
|
});
|
|
88
|
-
const
|
|
89
|
-
orgRoleList:
|
|
87
|
+
const r = {
|
|
88
|
+
orgRoleList: a
|
|
90
89
|
};
|
|
91
90
|
u.value.showLoading();
|
|
92
|
-
const [s] = await w(
|
|
93
|
-
s || (
|
|
91
|
+
const [s] = await w(_().post(d, r));
|
|
92
|
+
s || (C(), n.value.refreshData(), e.showModalView = !1);
|
|
94
93
|
}, y = (o) => o.roleCode !== "admin", V = (o) => {
|
|
95
94
|
o === "add" && x();
|
|
96
95
|
};
|
|
97
|
-
return (o,
|
|
98
|
-
const
|
|
99
|
-
return P((v(), A("div", q, [h(
|
|
96
|
+
return (o, a) => {
|
|
97
|
+
const r = i("ut-grid"), s = i("ut-modal-grid"), l = L("spinning");
|
|
98
|
+
return P((v(), A("div", q, [h(r, {
|
|
100
99
|
ref_key: "xgrid",
|
|
101
100
|
ref: n,
|
|
102
101
|
items: m,
|
|
@@ -121,12 +120,12 @@ const q = {
|
|
|
121
120
|
url: "/uums/role",
|
|
122
121
|
width: "60%",
|
|
123
122
|
height: "75%",
|
|
124
|
-
onClose:
|
|
123
|
+
onClose: a[0] || (a[0] = (F) => e.showModalView = !1),
|
|
125
124
|
onConfirm: I
|
|
126
|
-
}, null, 8, ["title"])) :
|
|
125
|
+
}, null, 8, ["title"])) : j("", !0)])), [[l, e.loading]]);
|
|
127
126
|
};
|
|
128
127
|
}
|
|
129
128
|
});
|
|
130
129
|
export {
|
|
131
|
-
|
|
130
|
+
W as _
|
|
132
131
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as P, ref as k, inject as v, watch as E, nextTick as N, resolveComponent as p, openBlock as h, createElementBlock as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as P, ref as k, inject as v, watch as E, nextTick as N, resolveComponent as p, openBlock as h, createElementBlock as j, withModifiers as D, createElementVNode as n, toDisplayString as C, createBlock as g, createCommentVNode as y, createVNode as x, withCtx as O, normalizeClass as S } from "vue";
|
|
2
|
+
import { j as V } from "./index-BpdTDaTk.js";
|
|
3
3
|
const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ P({
|
|
4
4
|
__name: "ScrollPanel",
|
|
5
5
|
props: {
|
|
@@ -22,7 +22,7 @@ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
|
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
const d = async (l = {}) => {
|
|
25
|
-
const t = Object.assign(l, c.defaultParams), e = await
|
|
25
|
+
const t = Object.assign(l, c.defaultParams), e = await V().get(c.url, t);
|
|
26
26
|
s.value = e.list || e, B.value = e.list || e, c.initLoadAll ? o.value = {} : o.value = e.list ? e.list[0] : e[0], N(() => {
|
|
27
27
|
r.value && r?.value.setCurrentKey(o.value?.id || "");
|
|
28
28
|
}), u.value = !1;
|
|
@@ -41,9 +41,9 @@ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
|
|
|
41
41
|
onRefresh: m
|
|
42
42
|
}), d(), (l, t) => {
|
|
43
43
|
const e = p("ut-button"), A = p("vxe-button"), L = p("el-tree");
|
|
44
|
-
return h(),
|
|
44
|
+
return h(), j("div", {
|
|
45
45
|
class: "u-scroll-panel",
|
|
46
|
-
onClick:
|
|
46
|
+
onClick: D(_, ["prevent"])
|
|
47
47
|
}, [
|
|
48
48
|
n("div", M, [
|
|
49
49
|
n("h2", null, C(a.title), 1),
|
|
@@ -76,9 +76,9 @@ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
|
|
|
76
76
|
"highlight-current": "",
|
|
77
77
|
onNodeClick: w
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
79
|
+
default: O(({ node: i }) => [
|
|
80
80
|
n("span", {
|
|
81
|
-
class:
|
|
81
|
+
class: S(["prefix", { "is-leaf": i.isLeaf }])
|
|
82
82
|
}, [...t[2] || (t[2] = [
|
|
83
83
|
n("i", {
|
|
84
84
|
class: "ri-folder-2-fill ri-lg mr-1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, ref as e, provide as t, openBlock as i, createElementBlock as _, createElementVNode as n, createVNode as o } from "vue";
|
|
2
|
-
import { _ as d } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as m } from "./index-
|
|
2
|
+
import { _ as d } from "./ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js";
|
|
3
|
+
import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js";
|
|
4
|
+
import { _ as m } from "./index-BpdTDaTk.js";
|
|
5
5
|
const p = { 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 l, onMounted as D, resolveComponent as o, openBlock as E, createElementBlock as k, createVNode as n, withCtx as c } from "vue";
|
|
2
2
|
import { useRender as x } from "@utogether/utils";
|
|
3
|
-
import {
|
|
3
|
+
import { j as f } from "./index-BpdTDaTk.js";
|
|
4
4
|
const F = { class: "config" }, B = /* @__PURE__ */ b({
|
|
5
5
|
__name: "StaffInfo",
|
|
6
6
|
props: {
|
|
@@ -2,13 +2,12 @@ import { defineComponent as C, ref as N, inject as B, reactive as D, watch as V,
|
|
|
2
2
|
import { useI18n as P } from "vue-i18n";
|
|
3
3
|
import { clone as R } from "xe-utils";
|
|
4
4
|
import { warnMessage as T } from "@utogether/utils";
|
|
5
|
-
import { _ as Y } from "./StaffInfo.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import {
|
|
7
|
-
import { VxeUI as
|
|
8
|
-
|
|
9
|
-
const j = {
|
|
5
|
+
import { _ as Y } from "./StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js";
|
|
6
|
+
import { j as d, i as l } from "./index-BpdTDaTk.js";
|
|
7
|
+
import { VxeUI as j } from "vxe-pc-ui";
|
|
8
|
+
const O = {
|
|
10
9
|
class: "page-content"
|
|
11
|
-
}, u = "/uums/employee",
|
|
10
|
+
}, u = "/uums/employee", Q = /* @__PURE__ */ C({
|
|
12
11
|
__name: "StaffPanel",
|
|
13
12
|
setup(q) {
|
|
14
13
|
const a = N(null), {
|
|
@@ -106,7 +105,7 @@ const j = {
|
|
|
106
105
|
const n = R(e, !0);
|
|
107
106
|
a.value.showLoading(), n.enabled = n.enabled === "1" ? "0" : "1", await d().put(u, n), a.value.hiddenLoading(), a.value.refreshData();
|
|
108
107
|
}, w = async () => {
|
|
109
|
-
if (await
|
|
108
|
+
if (await j.modal.confirm(m("message.tip.confirmSync")) !== "confirm") return;
|
|
110
109
|
a.value.showLoading();
|
|
111
110
|
const [n] = await l(d().post("/uums/employee/syncEwEmp", {}));
|
|
112
111
|
a.value.hiddenLoading(), !n && a.value.refreshData();
|
|
@@ -126,7 +125,7 @@ const j = {
|
|
|
126
125
|
};
|
|
127
126
|
return (e, n) => {
|
|
128
127
|
const r = c("ut-grid");
|
|
129
|
-
return i(), U("div",
|
|
128
|
+
return i(), U("div", O, [s(r, {
|
|
130
129
|
ref_key: "xgrid",
|
|
131
130
|
ref: a,
|
|
132
131
|
items: p,
|
|
@@ -149,5 +148,5 @@ const j = {
|
|
|
149
148
|
}
|
|
150
149
|
});
|
|
151
150
|
export {
|
|
152
|
-
|
|
151
|
+
Q as _
|
|
153
152
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, ref as o, provide as s, openBlock as r, createElementBlock 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-BDcsgSl5.js";
|
|
3
|
+
import { _ as a } from "./index-BpdTDaTk.js";
|
|
4
4
|
const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
|
|
5
5
|
__name: "SysUser",
|
|
6
6
|
setup(m) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { defineComponent as re, reactive as ne, ref as w, inject as ie, createVNode as o, Fragment as x, resolveComponent as l, onMounted as de, openBlock as g, createElementBlock as S, withCtx as u, renderList as ue, unref as me, createBlock as N, createCommentVNode as $ } from "vue";
|
|
2
2
|
import { useI18n as ce } from "vue-i18n";
|
|
3
|
-
import {
|
|
4
|
-
import { useRender as
|
|
3
|
+
import { i as M, j as fe } from "./index-BpdTDaTk.js";
|
|
4
|
+
import { useRender as pe, warnMessage as ge, delay as he, errorMessage as we, getDictChildren as ve } from "@utogether/utils";
|
|
5
5
|
import { VxeUI as v } from "vxe-pc-ui";
|
|
6
|
-
import { clone as U, isEmpty as
|
|
7
|
-
import { n as _e } from "./index-C5WRTwvI.js";
|
|
6
|
+
import { clone as U, isEmpty as _e } from "xe-utils";
|
|
8
7
|
const ye = {
|
|
9
8
|
class: "page"
|
|
10
|
-
}, n = "/uums/user",
|
|
9
|
+
}, n = "/uums/user", ke = /* @__PURE__ */ re({
|
|
11
10
|
__name: "SysUserPanel",
|
|
12
11
|
setup(be) {
|
|
13
12
|
const t = ne({
|
|
@@ -22,7 +21,7 @@ const ye = {
|
|
|
22
21
|
showModal: !1,
|
|
23
22
|
showAuth: !1,
|
|
24
23
|
dataStatus: ""
|
|
25
|
-
}), i =
|
|
24
|
+
}), i = fe(), {
|
|
26
25
|
t: a
|
|
27
26
|
} = ce(), L = {
|
|
28
27
|
userName: [{
|
|
@@ -41,7 +40,7 @@ const ye = {
|
|
|
41
40
|
required: !0,
|
|
42
41
|
message: `${a("message.required")}${a("message.userPwd")}`
|
|
43
42
|
}]
|
|
44
|
-
}, q =
|
|
43
|
+
}, q = pe(), _ = w({}), D = ie("treeList"), c = w(!1);
|
|
45
44
|
let h = "";
|
|
46
45
|
const E = [{
|
|
47
46
|
code: "resetPassword",
|
|
@@ -165,7 +164,7 @@ const ye = {
|
|
|
165
164
|
const [s, d] = await M(i.get(n + "/getUserRole", {
|
|
166
165
|
userName: e.userName
|
|
167
166
|
}));
|
|
168
|
-
c.value = !1, s || (
|
|
167
|
+
c.value = !1, s || (_e(d) ? ge(a("message.tip.emptyAuth")) : t.roleList = d[0]?.sysMenuExts);
|
|
169
168
|
}, R = w(null), K = () => {
|
|
170
169
|
R.value.validate(async (e) => {
|
|
171
170
|
if (!e) {
|
|
@@ -187,12 +186,12 @@ const ye = {
|
|
|
187
186
|
_.value = {
|
|
188
187
|
unitId: e[0].id,
|
|
189
188
|
enabled: "1"
|
|
190
|
-
}, await
|
|
189
|
+
}, await he(100), m.value.refreshData();
|
|
191
190
|
}).catch(() => {
|
|
192
|
-
|
|
191
|
+
we("获取租户失败,刷新后重试");
|
|
193
192
|
});
|
|
194
193
|
}, ee = () => {
|
|
195
|
-
h = (
|
|
194
|
+
h = (ve("SU.DEFAULT_PASSWORD")?.find((s) => s.dictCode === "default")).dictName;
|
|
196
195
|
};
|
|
197
196
|
return de(() => {
|
|
198
197
|
ee(), Z();
|
|
@@ -349,5 +348,5 @@ const ye = {
|
|
|
349
348
|
}
|
|
350
349
|
});
|
|
351
350
|
export {
|
|
352
|
-
|
|
351
|
+
ke as _
|
|
353
352
|
};
|