@utogether/udp-core 1.0.1-beta.4 → 1.0.1-beta.5
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/build/plugins.ts +39 -37
- package/dist/{403-CT4J-t-o.js → 403-CP2RkkAy.js} +10 -10
- package/dist/{404-BAudfnaK.js → 404-DwK-0wNQ.js} +4 -4
- package/dist/{500-BlOGtpEE.js → 500-CLbJDqnd.js} +1 -1
- package/dist/{AuthorityInfo-Bl03tEhF.js → AuthorityInfo-Bi1_uhMu.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CUwS2F3R.js → AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js} +8 -9
- package/dist/{Company-CIj9XgQn.js → Company-B--cokc6.js} +3 -3
- package/dist/{CompanyPanel-CublK5NN.js → CompanyPanel-B_gmcZ9L.js} +6 -6
- package/dist/{Department-BolPW-W3.js → Department-DbKdyNzK.js} +3 -3
- package/dist/{DepartmentPanel-BttxSHfM.js → DepartmentPanel-BmEttboJ.js} +23 -24
- package/dist/{DesignPanel-BwCbn92O.js → DesignPanel-LL68_36s.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-y2AnCTg6.js → DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js} +8 -9
- package/dist/{DictView-D85ziNV2.js → DictView-B8j-EWx5.js} +1 -1
- package/dist/{InvOrganization-CaAk_f7F.js → InvOrganization-DnGQlESM.js} +7 -8
- package/dist/Org-Dg9Xkd34.js +34 -0
- package/dist/{Preview-DMGbhV6q.js → Preview-yot4NBW5.js} +1 -1
- package/dist/{ReportDefine-DogZwa8T.js → ReportDefine-DHadqNYy.js} +1 -1
- package/dist/{ReportDesign-CdSsJJeA.js → ReportDesign-CBihGRth.js} +23 -24
- package/dist/{ReportQuery-DPvKqeUm.js → ReportQuery-CwHQ6LUU.js} +1 -1
- package/dist/{ReportQueryFrom-UokkfBx_.js → ReportQueryFrom-ie6lQcGL.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BlOoThY7.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js} +1 -1
- package/dist/{ReportTemplate-DCnmllXW.js → ReportTemplate-B2Smwo-z.js} +18 -18
- package/dist/{Role-sfmwLiNM.js → Role-Cf7DB7uS.js} +3 -3
- package/dist/{RoleAssign-WRk90VO2.js → RoleAssign-upUnqs_i.js} +3 -3
- package/dist/{RolePanel-iWysS02n.js → RolePanel-BBGDGK8V.js} +1 -1
- package/dist/{RolePanel-DhP0_5ur.js → RolePanel-EXL_FLvM.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CYXqW-d4.js → RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js} +8 -9
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-_hVY31HC.js → RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js} +9 -9
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BozDFES-.js → ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js} +13 -13
- package/dist/{Staff-Bha-Ijax.js → Staff-DYu5ZEyR.js} +3 -3
- package/dist/{StaffInfo-CbfYI8UW.js → StaffInfo-CHvNGjtz.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-Ce-MUVYH.js → StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js} +14 -14
- package/dist/{StaffPanel-B8094e97.js → StaffPanel-C-ygEY65.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-_kJIBCtx.js → StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js} +6 -6
- package/dist/{SysUser-D1J9vPnb.js → SysUser-BHk_szpK.js} +2 -2
- package/dist/{SysUserPanel-DGDPKKoY.js → SysUserPanel-DFvzA5d-.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-D-5-zKn6.js → SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js} +24 -25
- package/dist/{SystemMenu-Dz8Pllh5.js → SystemMenu-5TK9ZA11.js} +34 -35
- package/dist/{UserInfo-ecAJA2Yg.js → UserInfo-Bx3zQqHa.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-4_-I_sQN.js → UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js} +12 -13
- package/dist/{childView-4uI_RT2m.js → childView-BSUWnii7.js} +1 -1
- package/dist/{childView-OXXoMFg3.js → childView-CFC3gA_U.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DC-yx4Kv.js → childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js} +48 -49
- package/dist/{childView.vue_vue_type_style_index_0_lang-e43PUsUO.js → childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js} +9 -10
- package/dist/{code-rule-B667R66s.js → code-rule-DybjhotB.js} +6 -8
- package/dist/core.es.js +2 -2
- package/dist/{cron-task-DcmGSr2D.js → cron-task-DGdknqaF.js} +7 -8
- package/dist/{frameView-BzgaLYjQ.js → frameView-BOOZRv1S.js} +1 -1
- package/dist/index-BDE4-ZvN.js +5091 -0
- package/dist/{layoutView-BBQB8pDc.js → layoutView-BWeDLY9C.js} +11 -12
- package/dist/{login-DIG7pRU7.js → login-BcuCHhGE.js} +21 -21
- package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
- package/dist/{lov-view-CSIPKZSY.js → lov-view-DDgzqYSW.js} +8 -9
- package/dist/{menuInfo-CPHjl7id.js → menuInfo-B3MOxomU.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXNiinTg.js → menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js} +15 -16
- package/dist/{pda-app-BLjbMcdt.js → pda-app-Dy9WMHEG.js} +19 -20
- package/dist/{resource-MxqaSJqB.js → resource-BoCP7-dM.js} +8 -8
- package/dist/{su-welcome-C0flTYCx.js → su-welcome-DXpI1MHr.js} +97 -98
- package/dist/{sys-config-CXzGs3Nl.js → sys-config-BiUWzxGU.js} +19 -20
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-CFdIDuAT.js → utogether-DXDcsKt7.js} +1 -1
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/api/index.ts +1 -1
- package/src/components/udp/count-down.vue +536 -0
- package/src/components/udp/form.vue +107 -0
- package/src/components/udp/index.ts +4 -1
- package/src/components/udp/modal-form.vue +9 -0
- package/src/components/udp/upload.vue +425 -0
- package/src/components/udp/utils.ts +72 -3
- package/src/layout/components/lay-panel/index.vue +3 -3
- package/src/main.ts +21 -20
- package/src/style/vxetable.scss +24 -2
- package/src/utils/{http → udp/http}/index.ts +8 -24
- package/src/utils/{http → udp/http}/types.d.ts +8 -5
- package/src/views/login/login-view.vue +1 -1
- package/src/views/system/menu/menuInfo.vue +1 -1
- package/src/views/system/sys/sys-config.vue +1 -1
- package/src/views/udev/dict/childView.vue +6 -1
- package/src/views/uhome/su-welcome.vue +1 -1
- package/src/views/ulogin/login.vue +3 -2
- package/src/views/upms/user/login-log.vue +1 -1
- package/src/views/urpt/design/ReportDesign.vue +3 -3
- package/dist/Org-CreIihFE.js +0 -35
- package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
- package/dist/index-CLliRySq.js +0 -2606
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as A, ref as s, createVNode as r, Fragment as I, resolveComponent as l, nextTick as b, createElementBlock as x, openBlock as d, withDirectives as w, createBlock as p, createCommentVNode as c, vShow as E } from "vue";
|
|
2
2
|
import { useRender as S, successMessage as $ } from "@utogether/utils";
|
|
3
|
-
import { useClipboard as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
7
|
-
const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
|
|
3
|
+
import { useClipboard as V } from "@vueuse/core";
|
|
4
|
+
import { q as B, v as M } from "./index-BDE4-ZvN.js";
|
|
5
|
+
import { _ as U } from "./DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js";
|
|
6
|
+
const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
|
|
8
7
|
name: "ReportDesign",
|
|
9
8
|
__name: "ReportDesign",
|
|
10
9
|
setup(F) {
|
|
11
|
-
const
|
|
10
|
+
const a = s(null), o = s(!1), i = s(!1), n = S(), t = s({}), {
|
|
12
11
|
copy: v
|
|
13
|
-
} =
|
|
12
|
+
} = V(), g = M(), h = [{
|
|
14
13
|
field: "templateCode",
|
|
15
14
|
title: "message.file.templateCode"
|
|
16
15
|
}, {
|
|
@@ -61,7 +60,7 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
|
|
|
61
60
|
slots: {
|
|
62
61
|
default: ({
|
|
63
62
|
row: e
|
|
64
|
-
}) => e.id ? r(
|
|
63
|
+
}) => e.id ? r(I, null, [r(l("ut-button"), {
|
|
65
64
|
content: "design",
|
|
66
65
|
icon: "ri-quill-pen-line",
|
|
67
66
|
onTap: () => k(e)
|
|
@@ -115,38 +114,38 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
|
|
|
115
114
|
}, _ = (e) => {
|
|
116
115
|
v(e.templateContent), $("复制成功,快试试右键粘贴吧");
|
|
117
116
|
}, y = async () => {
|
|
118
|
-
const [e] = await
|
|
119
|
-
!e &&
|
|
117
|
+
const [e] = await B(g.post(f, [t.value]));
|
|
118
|
+
!e && a.value.refreshData(), i.value = !1;
|
|
120
119
|
}, k = (e) => {
|
|
121
|
-
t.value = e,
|
|
122
|
-
|
|
120
|
+
t.value = e, b(() => {
|
|
121
|
+
o.value = !0;
|
|
123
122
|
});
|
|
124
123
|
}, T = {
|
|
125
124
|
editActived({
|
|
126
125
|
row: e
|
|
127
126
|
}) {
|
|
128
|
-
e.id && (u[1].editRender.props.disabled = !0,
|
|
127
|
+
e.id && (u[1].editRender.props.disabled = !0, a.value.getInstance().refreshColumn());
|
|
129
128
|
}
|
|
130
129
|
}, N = ({
|
|
131
130
|
row: e
|
|
132
|
-
}) => e.enabled !== "1",
|
|
133
|
-
t.value = {},
|
|
131
|
+
}) => (e == null ? void 0 : e.enabled) !== "1", D = () => {
|
|
132
|
+
t.value = {}, o.value = !1, a.value.refreshData();
|
|
134
133
|
};
|
|
135
134
|
return (e, m) => {
|
|
136
|
-
const
|
|
137
|
-
return d(),
|
|
135
|
+
const q = l("ut-grid"), P = l("ut-modal-form");
|
|
136
|
+
return d(), x("div", null, [w(r(q, {
|
|
138
137
|
ref_key: "xgrid",
|
|
139
|
-
ref:
|
|
138
|
+
ref: a,
|
|
140
139
|
items: h,
|
|
141
140
|
columns: u,
|
|
142
|
-
|
|
141
|
+
"check-method": N,
|
|
143
142
|
url: f,
|
|
144
143
|
events: T
|
|
145
|
-
}, null, 512), [[E, !
|
|
144
|
+
}, null, 512), [[E, !o.value]]), o.value ? (d(), p(U, {
|
|
146
145
|
key: 0,
|
|
147
146
|
record: t.value,
|
|
148
|
-
onOnClose:
|
|
149
|
-
}, null, 8, ["record"])) : c("", !0), i.value ? (d(), p(
|
|
147
|
+
onOnClose: D
|
|
148
|
+
}, null, 8, ["record"])) : c("", !0), i.value ? (d(), p(P, {
|
|
150
149
|
key: 1,
|
|
151
150
|
record: t.value,
|
|
152
151
|
items: C,
|
|
@@ -161,5 +160,5 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
|
|
|
161
160
|
}
|
|
162
161
|
});
|
|
163
162
|
export {
|
|
164
|
-
|
|
163
|
+
z as default
|
|
165
164
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, reactive as c, watch as f, ref as p, onMounted as u, resolveComponent as h, createElementBlock as _, openBlock as r, withDirectives as w, createBlock as x, createCommentVNode as D, createVNode as R, vShow as C } from "vue";
|
|
2
2
|
import { useRoute as S } from "vue-router";
|
|
3
|
-
import { _ as g } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as g } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js";
|
|
4
4
|
import { useRender as N } from "@utogether/utils";
|
|
5
5
|
const T = { name: "ReportQuery" }, O = /* @__PURE__ */ m({
|
|
6
6
|
...T,
|
|
@@ -3,7 +3,7 @@ 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 { v as V } from "./index-BDE4-ZvN.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",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as a, createElementBlock as O, openBlock as f, createBlock as v, createCommentVNode as h } from "vue";
|
|
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 { e as C,
|
|
5
|
+
import { e as C, v as D } from "./index-BDE4-ZvN.js";
|
|
6
6
|
const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
7
7
|
__name: "ReportTemplate",
|
|
8
8
|
setup(W) {
|
|
9
9
|
const {
|
|
10
10
|
t: b
|
|
11
|
-
} =
|
|
11
|
+
} = q(), o = V(), s = r(null), l = r(!1), d = r(!1), g = r({}), u = r([]), i = r({}), R = [{
|
|
12
12
|
field: "templateCode",
|
|
13
13
|
title: "message.file.templateCode"
|
|
14
14
|
}, {
|
|
@@ -65,7 +65,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
|
65
65
|
slots: {
|
|
66
66
|
default: ({
|
|
67
67
|
row: t
|
|
68
|
-
}) => [p(S, null, [p(
|
|
68
|
+
}) => [p(S, null, [p(a("ut-button"), {
|
|
69
69
|
content: "inv",
|
|
70
70
|
icon: "ri-edit-line",
|
|
71
71
|
onTap: () => y(t)
|
|
@@ -84,17 +84,17 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
|
84
84
|
label: e.orgName
|
|
85
85
|
}))
|
|
86
86
|
}
|
|
87
|
-
}),
|
|
87
|
+
}), i.value = {}, l.value = !0;
|
|
88
88
|
}, _ = () => {
|
|
89
|
-
if (
|
|
89
|
+
if (i.value.orgName) {
|
|
90
90
|
const t = s.value.getInstance().getCheckboxRecords(), e = [];
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
91
|
+
t.forEach((m) => {
|
|
92
|
+
i.value.orgName.forEach((c) => {
|
|
93
|
+
const n = U(m, !0);
|
|
94
|
+
n.orgId = c, n.id = null, e.push(n);
|
|
95
95
|
});
|
|
96
96
|
}), D().post(I, e).then(() => {
|
|
97
|
-
|
|
97
|
+
l.value = !1, B();
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
}, x = {
|
|
@@ -123,8 +123,8 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
|
123
123
|
auth: "copy"
|
|
124
124
|
}];
|
|
125
125
|
return (t, e) => {
|
|
126
|
-
const m =
|
|
127
|
-
return f(),
|
|
126
|
+
const m = a("ut-grid"), c = a("ut-modal-form"), n = a("ut-modal-grid");
|
|
127
|
+
return f(), O("div", null, [p(m, {
|
|
128
128
|
ref_key: "xgrid",
|
|
129
129
|
ref: s,
|
|
130
130
|
items: R,
|
|
@@ -132,18 +132,18 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
|
132
132
|
columns: k,
|
|
133
133
|
events: x,
|
|
134
134
|
url: I
|
|
135
|
-
}, null, 512),
|
|
135
|
+
}, null, 512), l.value ? (f(), v(c, {
|
|
136
136
|
key: 0,
|
|
137
137
|
ref: "xmodal",
|
|
138
|
-
record:
|
|
138
|
+
record: i.value,
|
|
139
139
|
items: u.value,
|
|
140
140
|
width: "400",
|
|
141
141
|
height: "170",
|
|
142
142
|
"data-status": "update",
|
|
143
143
|
title: "单据复制",
|
|
144
144
|
onConfirm: _,
|
|
145
|
-
onClose: e[0] || (e[0] = (T) =>
|
|
146
|
-
}, null, 8, ["record", "items"])) : h("", !0), d.value ? (f(), v(
|
|
145
|
+
onClose: e[0] || (e[0] = (T) => l.value = !1)
|
|
146
|
+
}, null, 8, ["record", "items"])) : h("", !0), d.value ? (f(), v(n, {
|
|
147
147
|
key: 1,
|
|
148
148
|
ref: "xmgrid",
|
|
149
149
|
"default-value": g.value,
|
|
@@ -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 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-DbBGg32H.js";
|
|
3
|
+
import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js";
|
|
4
|
+
import { _ as d } from "./index-BDE4-ZvN.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, 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-DbBGg32H.js";
|
|
3
|
+
import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js";
|
|
4
|
+
import { _ as d } from "./index-BDE4-ZvN.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) {
|
|
@@ -2,12 +2,11 @@ import { defineComponent as V, reactive as b, ref as g, inject as N, watch as B,
|
|
|
2
2
|
import { useI18n as T } from "vue-i18n";
|
|
3
3
|
import { clone as U } from "xe-utils";
|
|
4
4
|
import { VxeUI as j } from "vxe-pc-ui";
|
|
5
|
-
import {
|
|
6
|
-
import { successMessage as
|
|
7
|
-
import { q as C } from "./index-CLliRySq.js";
|
|
5
|
+
import { q as _, v } from "./index-BDE4-ZvN.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", Q = /* @__PURE__ */ V({
|
|
11
10
|
__name: "RolePanel",
|
|
12
11
|
setup($) {
|
|
13
12
|
const e = b({
|
|
@@ -75,8 +74,8 @@ const q = {
|
|
|
75
74
|
roleId: t.id
|
|
76
75
|
};
|
|
77
76
|
e.loading = !0;
|
|
78
|
-
const [a] = await _(
|
|
79
|
-
a ||
|
|
77
|
+
const [a] = await _(v().delete(d, s));
|
|
78
|
+
a || C(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
|
|
80
79
|
}
|
|
81
80
|
}, I = async (t) => {
|
|
82
81
|
const r = [];
|
|
@@ -87,8 +86,8 @@ const q = {
|
|
|
87
86
|
orgRoleList: r
|
|
88
87
|
};
|
|
89
88
|
u.value.showLoading();
|
|
90
|
-
const [a] = await _(
|
|
91
|
-
a || (
|
|
89
|
+
const [a] = await _(v().post(d, s));
|
|
90
|
+
a || (C(), n.value.refreshData(), e.showModalView = !1);
|
|
92
91
|
}, y = (t) => {
|
|
93
92
|
t === "add" && k();
|
|
94
93
|
};
|
|
@@ -122,5 +121,5 @@ const q = {
|
|
|
122
121
|
}
|
|
123
122
|
});
|
|
124
123
|
export {
|
|
125
|
-
|
|
124
|
+
Q as _
|
|
126
125
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as N, reactive as S, inject as I, ref as l, watch as B, createVNode as s, Fragment as M, resolveComponent as r, createElementBlock as E, openBlock as d, createBlock as i, createCommentVNode as c } from "vue";
|
|
2
2
|
import { useRender as $ } from "@utogether/utils";
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
3
|
+
import { _ as O } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js";
|
|
4
|
+
import { _ as P } from "./UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js";
|
|
5
|
+
import { v as R, e as T } from "./index-BDE4-ZvN.js";
|
|
6
|
+
const q = {
|
|
7
7
|
class: "page-content"
|
|
8
8
|
}, J = /* @__PURE__ */ N({
|
|
9
9
|
__name: "RolePanel",
|
|
@@ -87,7 +87,7 @@ const T = {
|
|
|
87
87
|
t === "add" && C(), t === "del" && D();
|
|
88
88
|
}, C = () => {
|
|
89
89
|
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 =
|
|
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 = T().getOrgId, e.showModalView = !0;
|
|
91
91
|
}, k = (t) => {
|
|
92
92
|
n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
|
|
93
93
|
}, D = () => {
|
|
@@ -100,14 +100,14 @@ const T = {
|
|
|
100
100
|
async function U({
|
|
101
101
|
row: t
|
|
102
102
|
}) {
|
|
103
|
-
await
|
|
103
|
+
await R().put("/uums/role/singleUpdate", t), a.value.refreshData();
|
|
104
104
|
}
|
|
105
105
|
const m = () => {
|
|
106
106
|
e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
|
|
107
107
|
};
|
|
108
108
|
return (t, h) => {
|
|
109
109
|
const b = r("ut-grid"), x = r("ut-modal-form");
|
|
110
|
-
return d(), E("div",
|
|
110
|
+
return d(), E("div", q, [s(b, {
|
|
111
111
|
ref_key: "xgrid",
|
|
112
112
|
ref: a,
|
|
113
113
|
items: p,
|
|
@@ -115,13 +115,13 @@ const T = {
|
|
|
115
115
|
url: "/uums/role",
|
|
116
116
|
mode: "form",
|
|
117
117
|
onButtonClick: v
|
|
118
|
-
}, null, 512), e.showAuthView ? (d(), i(
|
|
118
|
+
}, null, 512), e.showAuthView ? (d(), i(O, {
|
|
119
119
|
key: 0,
|
|
120
120
|
show: e.showAuthView,
|
|
121
121
|
record: e.record,
|
|
122
122
|
"data-status": e.dataStatus,
|
|
123
123
|
onOnClose: m
|
|
124
|
-
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(
|
|
124
|
+
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(P, {
|
|
125
125
|
key: 1,
|
|
126
126
|
show: e.showUserView,
|
|
127
127
|
record: e.record,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as v, createElementBlock as D, openBlock as f, 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 {
|
|
3
|
-
const
|
|
2
|
+
import { v as j } from "./index-BDE4-ZvN.js";
|
|
3
|
+
const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
|
|
4
4
|
__name: "ScrollPanel",
|
|
5
5
|
props: {
|
|
6
6
|
title: {},
|
|
@@ -13,7 +13,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
13
13
|
extParam: { default: () => ({}) }
|
|
14
14
|
},
|
|
15
15
|
setup(b, { expose: x }) {
|
|
16
|
-
const h = b, s = k([]),
|
|
16
|
+
const h = b, s = k([]), o = k(null), r = p("active"), c = p("scrollPanelChange"), B = p("treeList");
|
|
17
17
|
A(
|
|
18
18
|
() => c.value,
|
|
19
19
|
() => {
|
|
@@ -23,8 +23,8 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
23
23
|
const u = async (l = {}) => {
|
|
24
24
|
const t = Object.assign(l, h.extParam), e = await j().get(h.url, t);
|
|
25
25
|
s.value = e.list || e, B.value = e.list || e, r.value = e.list ? e.list[0] : e[0], L(() => {
|
|
26
|
-
var
|
|
27
|
-
|
|
26
|
+
var n;
|
|
27
|
+
o.value && (o == null || o.value.setCurrentKey(((n = r.value) == null ? void 0 : n.id) || ""));
|
|
28
28
|
}), c.value = !1;
|
|
29
29
|
}, w = (l) => {
|
|
30
30
|
r.value = l;
|
|
@@ -32,21 +32,21 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
32
32
|
r.value = {};
|
|
33
33
|
}, d = (l, t) => {
|
|
34
34
|
l.forEach((e) => {
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
})
|
|
35
|
+
var n;
|
|
36
|
+
o.value.store.nodesMap[e.id].expanded = t, (n = e.children) != null && n.length && d(e.children, t);
|
|
37
|
+
});
|
|
38
38
|
}, m = () => {
|
|
39
39
|
u();
|
|
40
40
|
};
|
|
41
41
|
return x({
|
|
42
42
|
onRefresh: m
|
|
43
43
|
}), u(), (l, t) => {
|
|
44
|
-
const e = v("ut-button"),
|
|
44
|
+
const e = v("ut-button"), n = v("vxe-button"), E = v("el-tree");
|
|
45
45
|
return f(), D("div", {
|
|
46
46
|
class: "u-scroll-panel",
|
|
47
47
|
onClick: O(P, ["prevent"])
|
|
48
48
|
}, [
|
|
49
|
-
a("div",
|
|
49
|
+
a("div", M, [
|
|
50
50
|
a("h2", null, _(l.title), 1),
|
|
51
51
|
l.showAllButton ? (f(), C(e, {
|
|
52
52
|
key: 0,
|
|
@@ -59,15 +59,15 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
59
59
|
content: "BtnCollapse",
|
|
60
60
|
onClick: t[1] || (t[1] = (i) => d(s.value, !1))
|
|
61
61
|
})) : g("", !0),
|
|
62
|
-
y(
|
|
62
|
+
y(n, {
|
|
63
63
|
icon: "vxe-icon-refresh",
|
|
64
64
|
onClick: m
|
|
65
65
|
})
|
|
66
66
|
]),
|
|
67
|
-
a("div",
|
|
67
|
+
a("div", $, [
|
|
68
68
|
y(E, {
|
|
69
69
|
ref_key: "tree",
|
|
70
|
-
ref:
|
|
70
|
+
ref: o,
|
|
71
71
|
data: s.value,
|
|
72
72
|
props: l.treeOtions,
|
|
73
73
|
"expand-on-click-node": !1,
|
|
@@ -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-DbBGg32H.js";
|
|
3
|
+
import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js";
|
|
4
|
+
import { _ as p } from "./index-BDE4-ZvN.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,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as b, ref as u, onMounted as D, resolveComponent as
|
|
2
|
-
import { useRender as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as b, ref as u, onMounted as D, resolveComponent as r, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
|
|
2
|
+
import { useRender as F } from "@utogether/utils";
|
|
3
|
+
import { v as _ } from "./index-BDE4-ZvN.js";
|
|
4
|
+
const T = { class: "config" }, x = /* @__PURE__ */ b({
|
|
5
5
|
__name: "StaffInfo",
|
|
6
6
|
props: {
|
|
7
7
|
show: { type: Boolean, default: !0 },
|
|
@@ -10,7 +10,7 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
|
|
|
10
10
|
},
|
|
11
11
|
emits: ["onClose"],
|
|
12
12
|
setup(v, { emit: y }) {
|
|
13
|
-
const i = v, t =
|
|
13
|
+
const i = v, t = F(), d = u({}), p = u(null), l = u(!1), R = { userName: "userName", userId: "id" }, w = { disabled: i.dataStatus !== "add" }, g = [
|
|
14
14
|
{
|
|
15
15
|
field: "employeeCode",
|
|
16
16
|
required: !0,
|
|
@@ -39,14 +39,14 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
|
|
|
39
39
|
}
|
|
40
40
|
];
|
|
41
41
|
function C(e) {
|
|
42
|
-
var
|
|
43
|
-
e.row.deptName = ((
|
|
42
|
+
var o, a, s;
|
|
43
|
+
e.row.deptName = ((o = e.item) == null ? void 0 : o.deptName) || e.row.deptName, e.row.deptCode = ((a = e.item) == null ? void 0 : a.deptCode) || e.row.deptCode, e.row.departmentId = ((s = e.item) == null ? void 0 : s.id) || e.row.departmentId;
|
|
44
44
|
}
|
|
45
45
|
const I = y, N = () => {
|
|
46
46
|
p.value.validateForm(async (e) => {
|
|
47
47
|
if (!e) {
|
|
48
|
-
const { dataStatus:
|
|
49
|
-
l.value = !0,
|
|
48
|
+
const { dataStatus: o } = i;
|
|
49
|
+
l.value = !0, o === "add" ? await _().post("/uums/employee", d.value) : await _().put("/uums/employee", d.value), l.value = !1, m();
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
};
|
|
@@ -54,10 +54,10 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
|
|
|
54
54
|
I("onClose");
|
|
55
55
|
}
|
|
56
56
|
return D(() => {
|
|
57
|
-
|
|
58
|
-
}), (e,
|
|
59
|
-
const a =
|
|
60
|
-
return k(), E("div",
|
|
57
|
+
d.value = i.record;
|
|
58
|
+
}), (e, o) => {
|
|
59
|
+
const a = r("ut-form"), s = r("el-divider"), c = r("ut-button"), S = r("el-row"), h = r("el-drawer");
|
|
60
|
+
return k(), E("div", T, [
|
|
61
61
|
n(h, {
|
|
62
62
|
"model-value": e.show,
|
|
63
63
|
"before-close": m,
|
|
@@ -70,7 +70,7 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
|
|
|
70
70
|
n(a, {
|
|
71
71
|
ref_key: "suFormRef",
|
|
72
72
|
ref: p,
|
|
73
|
-
record:
|
|
73
|
+
record: d.value,
|
|
74
74
|
loading: l.value,
|
|
75
75
|
items: g,
|
|
76
76
|
"data-status": e.dataStatus
|
|
@@ -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 {
|
|
4
|
+
import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js";
|
|
5
|
+
import { v as P } from "./index-BDE4-ZvN.js";
|
|
6
6
|
const A = {
|
|
7
7
|
class: "page-content"
|
|
8
8
|
}, s = "/uums/employee", j = /* @__PURE__ */ b({
|
|
@@ -49,7 +49,7 @@ const A = {
|
|
|
49
49
|
default: ({
|
|
50
50
|
row: e
|
|
51
51
|
}) => {
|
|
52
|
-
const a = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", r = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill",
|
|
52
|
+
const a = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", r = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", _ = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
|
|
53
53
|
return [d(S, null, [d(l("ut-button"), {
|
|
54
54
|
icon: "ri-edit-box-line",
|
|
55
55
|
content: "edit",
|
|
@@ -57,7 +57,7 @@ const A = {
|
|
|
57
57
|
}, null), d(l("ut-button"), {
|
|
58
58
|
icon: r,
|
|
59
59
|
content: a,
|
|
60
|
-
status:
|
|
60
|
+
status: _,
|
|
61
61
|
onTap: () => h(e)
|
|
62
62
|
}, null)])];
|
|
63
63
|
}
|
|
@@ -78,7 +78,7 @@ const A = {
|
|
|
78
78
|
}, h = async (e) => {
|
|
79
79
|
const a = D(e, !0);
|
|
80
80
|
o.value.showLoading(), a.enabled = a.enabled === "1" ? "0" : "1", await P().put(s, a), o.value.hiddenLoading(), o.value.refreshData();
|
|
81
|
-
},
|
|
81
|
+
}, v = () => {
|
|
82
82
|
t.showModelView = !1, o.value.refreshData();
|
|
83
83
|
};
|
|
84
84
|
return (e, a) => {
|
|
@@ -101,7 +101,7 @@ const A = {
|
|
|
101
101
|
key: 0,
|
|
102
102
|
record: t.record,
|
|
103
103
|
"data-status": t.dataStatus,
|
|
104
|
-
onOnClose:
|
|
104
|
+
onOnClose: v
|
|
105
105
|
}, null, 8, ["record", "data-status"])) : C("", !0)]);
|
|
106
106
|
};
|
|
107
107
|
}
|
|
@@ -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-B9zUXXwa.js";
|
|
3
|
+
import { _ as a } from "./index-BDE4-ZvN.js";
|
|
4
4
|
const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
|
|
5
5
|
__name: "SysUser",
|
|
6
6
|
setup(m) {
|