@utogether/udp-core 1.0.1-beta.4 → 1.0.1-beta.6
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-Co4hnzlW.js} +1 -1
- package/dist/{404-BAudfnaK.js → 404-BsseeBQQ.js} +1 -1
- package/dist/{500-BlOGtpEE.js → 500-DtKz7MA4.js} +1 -1
- package/dist/{AuthorityInfo-Bl03tEhF.js → AuthorityInfo-iWYEWOmC.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CUwS2F3R.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BWp7PKyH.js} +1 -1
- package/dist/{Company-CIj9XgQn.js → Company-CK8Zkcv3.js} +3 -3
- package/dist/{CompanyPanel-CublK5NN.js → CompanyPanel-DL4UrYYG.js} +1 -1
- package/dist/{Department-BolPW-W3.js → Department-BPHn8to4.js} +3 -3
- package/dist/{DepartmentPanel-BttxSHfM.js → DepartmentPanel-Bqraa_NB.js} +1 -1
- package/dist/{DesignPanel-BwCbn92O.js → DesignPanel-CFOIOZme.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-y2AnCTg6.js → DesignPanel.vue_vue_type_style_index_0_lang-H0FNG35Z.js} +2 -2
- package/dist/{DictView-D85ziNV2.js → DictView-CaD1yHQS.js} +1 -1
- package/dist/{InvOrganization-CaAk_f7F.js → InvOrganization-CoO0_wsY.js} +1 -1
- package/dist/{Org-CreIihFE.js → Org-BU3oaFx3.js} +1 -1
- package/dist/{Preview-DMGbhV6q.js → Preview-B-K_bxDG.js} +1 -1
- package/dist/{ReportDefine-DogZwa8T.js → ReportDefine-DElbukSL.js} +1 -1
- package/dist/{ReportDesign-CdSsJJeA.js → ReportDesign-DvUHOKDK.js} +27 -27
- package/dist/{ReportQuery-DPvKqeUm.js → ReportQuery-BcSYRNT3.js} +1 -1
- package/dist/{ReportQueryFrom-UokkfBx_.js → ReportQueryFrom-BGEA4Pqk.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BlOoThY7.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-B-KEPnfY.js} +1 -1
- package/dist/{ReportTemplate-DCnmllXW.js → ReportTemplate-DnPtEoxn.js} +28 -28
- package/dist/{Role-sfmwLiNM.js → Role-CMKkWZil.js} +3 -3
- package/dist/{RoleAssign-WRk90VO2.js → RoleAssign-BToNzG9a.js} +8 -8
- package/dist/{RolePanel-iWysS02n.js → RolePanel-BNqd7-M6.js} +1 -1
- package/dist/{RolePanel-DhP0_5ur.js → RolePanel-BikZ-D2u.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CYXqW-d4.js → RolePanel.vue_vue_type_script_setup_true_lang-DYP3u1Nv.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-_hVY31HC.js → RolePanel.vue_vue_type_script_setup_true_lang-Nngq860f.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BozDFES-.js → ScrollPanel.vue_vue_type_style_index_0_lang-BDRDD2FX.js} +21 -21
- package/dist/{Staff-Bha-Ijax.js → Staff-DBFATgM_.js} +3 -3
- package/dist/{StaffInfo-CbfYI8UW.js → StaffInfo-CrfwZcEL.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-Ce-MUVYH.js → StaffInfo.vue_vue_type_script_setup_true_lang-CE3_NJF_.js} +11 -11
- package/dist/{StaffPanel-B8094e97.js → StaffPanel-D54Rl_Bg.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-_kJIBCtx.js → StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js} +2 -2
- package/dist/{SysUser-D1J9vPnb.js → SysUser-CsuovBei.js} +2 -2
- package/dist/{SysUserPanel-DGDPKKoY.js → SysUserPanel-DNUwWEVp.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-CY6mhBV0.js} +55 -53
- package/dist/{SystemMenu-Dz8Pllh5.js → SystemMenu-oLmwvaqT.js} +26 -26
- package/dist/{UserInfo-ecAJA2Yg.js → UserInfo-LyrDwBG1.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-vinrRyOG.js} +1 -1
- package/dist/{childView-4uI_RT2m.js → childView-DGKp87fT.js} +1 -1
- package/dist/{childView-OXXoMFg3.js → childView-SmYl4G6c.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DC-yx4Kv.js → childView.vue_vue_type_style_index_0_lang-DU-Uun5d.js} +40 -40
- package/dist/{childView.vue_vue_type_style_index_0_lang-e43PUsUO.js → childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js} +1 -1
- package/dist/{code-rule-B667R66s.js → code-rule-CfbGjmOs.js} +9 -10
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-DcmGSr2D.js → cron-task-DMfwGfms.js} +1 -1
- package/dist/{frameView-BzgaLYjQ.js → frameView-D-hu_pqQ.js} +1 -1
- package/dist/index-ADANSV-q.js +4278 -0
- package/dist/{layoutView-BBQB8pDc.js → layoutView-D3SikBPr.js} +5 -5
- package/dist/{login-DIG7pRU7.js → login-CQ1yBBdY.js} +39 -38
- package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
- package/dist/{lov-view-CSIPKZSY.js → lov-view-CSobDBH7.js} +2 -2
- package/dist/{menuInfo-CPHjl7id.js → menuInfo-mFuM30f1.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXNiinTg.js → menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js} +1 -1
- package/dist/{pda-app-BLjbMcdt.js → pda-app-CIGFsvrX.js} +51 -47
- package/dist/{resource-MxqaSJqB.js → resource-mbd4LPi-.js} +15 -15
- package/dist/{su-welcome-C0flTYCx.js → su-welcome-DruLsVvu.js} +109 -110
- package/dist/{sys-config-CXzGs3Nl.js → sys-config-TXb5cJM4.js} +7 -7
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-CFdIDuAT.js → utogether-Cv0UXnEX.js} +1 -1
- package/package.json +18 -18
- package/src/App.vue +1 -1
- package/src/api/index.ts +1 -1
- package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
- package/src/components/udp/count-down.vue +536 -0
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
- package/src/components/udp/form.vue +107 -0
- package/src/components/udp/grid.vue +12 -6
- package/src/components/udp/index.ts +4 -1
- package/src/components/udp/lov.vue +1 -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/layout/components/lay-search/index.vue +25 -25
- package/src/main.ts +21 -20
- package/src/plugins/i18n/zh.ts +342 -338
- package/src/plugins/vxe-table/render.tsx +5 -3
- 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 +2 -2
- package/src/views/system/menu/menuInfo.vue +1 -1
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/sys/sys-config.vue +1 -1
- package/src/views/system/sysUser/SysUserPanel.vue +9 -5
- package/src/views/uapp/pda/pda-app.vue +9 -3
- package/src/views/udev/dict/childView.vue +6 -1
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- package/src/views/uhome/su-welcome.vue +3 -3
- package/src/views/ulogin/login.vue +11 -2
- package/src/views/upms/user/login-log.vue +1 -1
- package/src/views/urpt/design/ReportDesign.vue +8 -8
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/dist/index-CLliRySq.js +0 -2606
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as
|
|
2
|
-
import { q as j } from "./index-
|
|
1
|
+
import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as f, createElementBlock as D, openBlock as v, withModifiers as O, createElementVNode as a, createBlock as C, createCommentVNode as g, createVNode as y, toDisplayString as _, withCtx as S, normalizeClass as V } from "vue";
|
|
2
|
+
import { q as j } from "./index-ADANSV-q.js";
|
|
3
3
|
const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
|
|
4
4
|
__name: "ScrollPanel",
|
|
5
5
|
props: {
|
|
@@ -10,10 +10,10 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
10
10
|
children: "children",
|
|
11
11
|
label: "label"
|
|
12
12
|
}) },
|
|
13
|
-
|
|
13
|
+
defaultParams: { default: () => ({}) }
|
|
14
14
|
},
|
|
15
|
-
setup(b, { expose:
|
|
16
|
-
const h = b, s = k([]),
|
|
15
|
+
setup(b, { expose: B }) {
|
|
16
|
+
const h = b, s = k([]), o = k(null), r = p("active"), c = p("scrollPanelChange"), w = p("treeList");
|
|
17
17
|
A(
|
|
18
18
|
() => c.value,
|
|
19
19
|
() => {
|
|
@@ -21,45 +21,45 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
const u = async (l = {}) => {
|
|
24
|
-
const t = Object.assign(l, h.
|
|
25
|
-
s.value = e.list || e,
|
|
26
|
-
var
|
|
27
|
-
|
|
24
|
+
const t = Object.assign(l, h.defaultParams), e = await j().get(h.url, t);
|
|
25
|
+
s.value = e.list || e, w.value = e.list || e, r.value = e.list ? e.list[0] : e[0], L(() => {
|
|
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
|
+
}, x = (l) => {
|
|
30
30
|
r.value = l;
|
|
31
31
|
}, P = () => {
|
|
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
|
-
return
|
|
41
|
+
return B({
|
|
42
42
|
onRefresh: m
|
|
43
43
|
}), u(), (l, t) => {
|
|
44
|
-
const e =
|
|
45
|
-
return
|
|
44
|
+
const e = f("ut-button"), n = f("vxe-button"), E = f("el-tree");
|
|
45
|
+
return v(), D("div", {
|
|
46
46
|
class: "u-scroll-panel",
|
|
47
47
|
onClick: O(P, ["prevent"])
|
|
48
48
|
}, [
|
|
49
49
|
a("div", q, [
|
|
50
50
|
a("h2", null, _(l.title), 1),
|
|
51
|
-
l.showAllButton ? (
|
|
51
|
+
l.showAllButton ? (v(), C(e, {
|
|
52
52
|
key: 0,
|
|
53
53
|
content: "BtnExpand",
|
|
54
54
|
onClick: t[0] || (t[0] = (i) => d(s.value, !0))
|
|
55
55
|
})) : g("", !0),
|
|
56
|
-
l.showAllButton ? (
|
|
56
|
+
l.showAllButton ? (v(), C(e, {
|
|
57
57
|
key: 1,
|
|
58
58
|
status: "warning",
|
|
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
|
})
|
|
@@ -67,7 +67,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
67
67
|
a("div", M, [
|
|
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,
|
|
@@ -75,7 +75,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
75
75
|
class: "u-tree-panel",
|
|
76
76
|
"node-key": "id",
|
|
77
77
|
"highlight-current": "",
|
|
78
|
-
onNodeClick:
|
|
78
|
+
onNodeClick: x
|
|
79
79
|
}, {
|
|
80
80
|
default: S(({ node: i }) => [
|
|
81
81
|
a("span", {
|
|
@@ -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-BDRDD2FX.js";
|
|
3
|
+
import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js";
|
|
4
|
+
import { _ as p } from "./index-ADANSV-q.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = { name: "StaffPanel" }, C = /* @__PURE__ */ l({
|
|
6
6
|
...v,
|
|
7
7
|
setup(N) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as b, ref as u, onMounted as D, resolveComponent as
|
|
1
|
+
import { defineComponent as b, ref as u, onMounted as D, resolveComponent as r, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
|
|
2
2
|
import { useRender as q } from "@utogether/utils";
|
|
3
|
-
import { q as _ } from "./index-
|
|
3
|
+
import { q as _ } from "./index-ADANSV-q.js";
|
|
4
4
|
const F = { class: "config" }, x = /* @__PURE__ */ b({
|
|
5
5
|
__name: "StaffInfo",
|
|
6
6
|
props: {
|
|
@@ -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 = q(),
|
|
13
|
+
const i = v, t = q(), 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,9 +54,9 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
|
|
|
54
54
|
I("onClose");
|
|
55
55
|
}
|
|
56
56
|
return D(() => {
|
|
57
|
-
|
|
58
|
-
}), (e,
|
|
59
|
-
const a =
|
|
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
60
|
return k(), E("div", F, [
|
|
61
61
|
n(h, {
|
|
62
62
|
"model-value": e.show,
|
|
@@ -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 { q as P } from "./index-
|
|
4
|
+
import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-CE3_NJF_.js";
|
|
5
|
+
import { q as P } from "./index-ADANSV-q.js";
|
|
6
6
|
const A = {
|
|
7
7
|
class: "page-content"
|
|
8
8
|
}, s = "/uums/employee", j = /* @__PURE__ */ b({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, ref as o, provide as s, createElementBlock as r, openBlock as c, createVNode as _ } from "vue";
|
|
2
|
-
import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as a } from "./index-
|
|
2
|
+
import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-CY6mhBV0.js";
|
|
3
|
+
import { _ as a } from "./index-ADANSV-q.js";
|
|
4
4
|
const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
|
|
5
5
|
__name: "SysUser",
|
|
6
6
|
setup(m) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as z, reactive as G, ref as
|
|
1
|
+
import { defineComponent as z, reactive as G, ref as N, inject as H, createVNode as t, Fragment as R, resolveComponent as l, nextTick as Q, onMounted as Y, createElementBlock as U, openBlock as g, withCtx as i, createBlock as k, createCommentVNode as J, renderList as K, unref as O } from "vue";
|
|
2
2
|
import { useI18n as W } from "vue-i18n";
|
|
3
3
|
import { t as $ } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
import { useRender as X, warnMessage as Z,
|
|
5
|
-
import { VxeUI as
|
|
6
|
-
import { isEmpty as
|
|
7
|
-
import { q as
|
|
4
|
+
import { useRender as X, warnMessage as Z, delay as ee, errorMessage as te } from "@utogether/utils";
|
|
5
|
+
import { VxeUI as se } from "vxe-pc-ui";
|
|
6
|
+
import { isEmpty as ae } from "xe-utils";
|
|
7
|
+
import { q as le } from "./index-ADANSV-q.js";
|
|
8
8
|
const re = {
|
|
9
9
|
class: "page"
|
|
10
|
-
}, u = "/uums/user",
|
|
10
|
+
}, u = "/uums/user", fe = /* @__PURE__ */ z({
|
|
11
11
|
__name: "SysUserPanel",
|
|
12
|
-
setup(
|
|
12
|
+
setup(ne) {
|
|
13
13
|
const s = G({
|
|
14
14
|
record: {},
|
|
15
15
|
listQuery: {},
|
|
@@ -20,32 +20,32 @@ const re = {
|
|
|
20
20
|
showUserRole: !1,
|
|
21
21
|
showAuth: !1,
|
|
22
22
|
dataStatus: ""
|
|
23
|
-
}), d =
|
|
24
|
-
t:
|
|
23
|
+
}), d = le(), {
|
|
24
|
+
t: r
|
|
25
25
|
} = W(), q = {
|
|
26
26
|
userName: [{
|
|
27
27
|
required: !0,
|
|
28
|
-
message: `${
|
|
28
|
+
message: `${r("message.required")}${r("message.userCode")}`
|
|
29
29
|
}],
|
|
30
30
|
name: [{
|
|
31
31
|
required: !0,
|
|
32
|
-
message: `${
|
|
32
|
+
message: `${r("message.required")}${r("message.userName")}`
|
|
33
33
|
}],
|
|
34
34
|
unitId: [{
|
|
35
35
|
required: !0,
|
|
36
|
-
message: `${
|
|
36
|
+
message: `${r("message.required")}${r("message.unitName")}`
|
|
37
37
|
}],
|
|
38
38
|
userPwd: [{
|
|
39
39
|
required: !0,
|
|
40
|
-
message: `${
|
|
40
|
+
message: `${r("message.required")}${r("message.userPwd")}`
|
|
41
41
|
}]
|
|
42
|
-
}, m = X(),
|
|
42
|
+
}, m = X(), h = N({}), C = H("treeList"), w = N(null), I = [{
|
|
43
43
|
field: "name",
|
|
44
44
|
title: "message.userName"
|
|
45
45
|
}, {
|
|
46
46
|
field: "userName",
|
|
47
47
|
title: "message.userCode"
|
|
48
|
-
}],
|
|
48
|
+
}], _ = [{
|
|
49
49
|
type: "checkbox",
|
|
50
50
|
width: 40,
|
|
51
51
|
align: "center"
|
|
@@ -81,29 +81,29 @@ const re = {
|
|
|
81
81
|
slots: {
|
|
82
82
|
default: ({
|
|
83
83
|
row: e
|
|
84
|
-
}) => [t(R, null, [t(
|
|
84
|
+
}) => [t(R, null, [t(l("ut-button"), {
|
|
85
85
|
icon: "ri-user-fill",
|
|
86
86
|
content: "role",
|
|
87
|
-
onTap: () =>
|
|
88
|
-
}, null), t(
|
|
87
|
+
onTap: () => P(e)
|
|
88
|
+
}, null), t(l("ut-button"), {
|
|
89
89
|
icon: "ri-lock-fill",
|
|
90
90
|
content: "auth",
|
|
91
91
|
status: "success",
|
|
92
|
-
onTap: () =>
|
|
93
|
-
}, null), t(
|
|
92
|
+
onTap: () => A(e)
|
|
93
|
+
}, null), t(l("ut-button"), {
|
|
94
94
|
icon: "ri-lock-fill",
|
|
95
95
|
content: "passwordReset",
|
|
96
96
|
status: "warning",
|
|
97
|
-
onTap: () =>
|
|
97
|
+
onTap: () => S(e)
|
|
98
98
|
}, null)])]
|
|
99
99
|
}
|
|
100
100
|
}];
|
|
101
101
|
async function L({
|
|
102
102
|
row: e
|
|
103
103
|
}) {
|
|
104
|
-
await $(d.put(u, [e])),
|
|
104
|
+
await $(d.put(u, [e])), w.value.refreshData();
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const P = async (e) => {
|
|
107
107
|
var n;
|
|
108
108
|
const a = await d.get(u + "/getUserRole", {
|
|
109
109
|
userName: e.userName
|
|
@@ -111,57 +111,59 @@ const re = {
|
|
|
111
111
|
s.roleList = (n = a[0]) == null ? void 0 : n.sysRoles, Q(() => {
|
|
112
112
|
s.showUserRole = !0;
|
|
113
113
|
});
|
|
114
|
+
}, S = async (e) => {
|
|
115
|
+
await d.put(u + "/resetPwd", e), await se.modal.alert(r("message.tip.initPassword"));
|
|
114
116
|
}, A = async (e) => {
|
|
115
|
-
await d.put(u + "/resetPwd", e), await te.modal.alert(l("message.tip.initPassword"));
|
|
116
|
-
}, E = async (e) => {
|
|
117
117
|
var f;
|
|
118
118
|
const [a, n] = await $(d.get(u + "/getUserRole", {
|
|
119
119
|
userName: e.userName
|
|
120
120
|
}));
|
|
121
|
-
a || (
|
|
122
|
-
},
|
|
121
|
+
a || (ae(n) ? Z(r("message.tip.emptyAuth")) : (s.roleList = (f = n[0]) == null ? void 0 : f.sysMenuExts, s.showAuth = !0));
|
|
122
|
+
}, E = {
|
|
123
123
|
editActived({
|
|
124
124
|
row: e
|
|
125
125
|
}) {
|
|
126
|
-
|
|
126
|
+
_[1].editRender.props.disabled = !!e.id, _[4].editRender.props.disabled = !!e.id;
|
|
127
127
|
}
|
|
128
|
-
}, b =
|
|
128
|
+
}, b = N(null), M = () => {
|
|
129
129
|
b.value.validate(async (e) => {
|
|
130
130
|
if (!e) {
|
|
131
131
|
const {
|
|
132
132
|
record: a,
|
|
133
133
|
dataStatus: n
|
|
134
134
|
} = s;
|
|
135
|
-
n === "add" ? await d.post(u, a) : await d.put(u, a),
|
|
135
|
+
n === "add" ? await d.post(u, a) : await d.put(u, a), V();
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
|
-
},
|
|
138
|
+
}, V = () => {
|
|
139
139
|
s.showModelView = !1;
|
|
140
|
-
},
|
|
140
|
+
}, D = () => {
|
|
141
141
|
d.get("/uums/unit", {
|
|
142
142
|
pageSize: 10
|
|
143
|
-
}).then((e) => {
|
|
144
|
-
|
|
143
|
+
}).then(async (e) => {
|
|
144
|
+
h.value = {
|
|
145
145
|
unitId: e[0].id,
|
|
146
146
|
enabled: "1"
|
|
147
|
-
};
|
|
147
|
+
}, await ee(100), w.value.refreshData();
|
|
148
148
|
}).catch(() => {
|
|
149
|
-
|
|
149
|
+
te("获取租户失败,刷新后重试");
|
|
150
150
|
});
|
|
151
151
|
};
|
|
152
152
|
return Y(() => {
|
|
153
|
-
|
|
153
|
+
D();
|
|
154
154
|
}), (e, a) => {
|
|
155
|
-
const n =
|
|
155
|
+
const n = l("ut-grid"), f = l("vxe-option"), T = l("vxe-select"), c = l("vxe-form-item"), x = l("ut-button"), B = l("vxe-form"), v = l("vxe-modal"), y = l("vxe-column"), F = l("vxe-table"), j = l("el-tree-v2");
|
|
156
156
|
return g(), U("div", re, [t(n, {
|
|
157
157
|
ref_key: "xgrid",
|
|
158
|
-
ref:
|
|
159
|
-
columns:
|
|
158
|
+
ref: w,
|
|
159
|
+
columns: _,
|
|
160
160
|
items: I,
|
|
161
161
|
url: u,
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
"auto-load": !1,
|
|
163
|
+
"default-params": h.value,
|
|
164
|
+
"default-value": h.value,
|
|
165
|
+
events: E
|
|
166
|
+
}, null, 8, ["default-params", "default-value"]), t(v, {
|
|
165
167
|
modelValue: s.showModelView,
|
|
166
168
|
"onUpdate:modelValue": a[0] || (a[0] = (o) => s.showModelView = o),
|
|
167
169
|
title: "用户信息",
|
|
@@ -181,7 +183,7 @@ const re = {
|
|
|
181
183
|
}, {
|
|
182
184
|
default: i(({
|
|
183
185
|
data: o
|
|
184
|
-
}) => [t(
|
|
186
|
+
}) => [t(T, {
|
|
185
187
|
modelValue: o.unitId,
|
|
186
188
|
"onUpdate:modelValue": (p) => o.unitId = p
|
|
187
189
|
}, {
|
|
@@ -222,11 +224,11 @@ const re = {
|
|
|
222
224
|
align: "right",
|
|
223
225
|
span: "24"
|
|
224
226
|
}, {
|
|
225
|
-
default: i(() => [t(
|
|
227
|
+
default: i(() => [t(x, {
|
|
226
228
|
content: "cancel",
|
|
227
229
|
icon: "ri-close-fill",
|
|
228
|
-
onClick:
|
|
229
|
-
}), t(
|
|
230
|
+
onClick: V
|
|
231
|
+
}), t(x, {
|
|
230
232
|
content: "confirm",
|
|
231
233
|
icon: "ri-save-3-fill",
|
|
232
234
|
status: "u-cyan",
|
|
@@ -237,7 +239,7 @@ const re = {
|
|
|
237
239
|
_: 1
|
|
238
240
|
}, 8, ["data"])]),
|
|
239
241
|
_: 1
|
|
240
|
-
}, 8, ["modelValue"]), t(
|
|
242
|
+
}, 8, ["modelValue"]), t(v, {
|
|
241
243
|
modelValue: s.showUserRole,
|
|
242
244
|
"onUpdate:modelValue": a[1] || (a[1] = (o) => s.showUserRole = o),
|
|
243
245
|
title: e.$t("message.title.roleInfo"),
|
|
@@ -248,20 +250,20 @@ const re = {
|
|
|
248
250
|
data: s.roleList,
|
|
249
251
|
border: ""
|
|
250
252
|
}, {
|
|
251
|
-
default: i(() => [t(
|
|
253
|
+
default: i(() => [t(y, {
|
|
252
254
|
type: "seq",
|
|
253
255
|
width: "60"
|
|
254
|
-
}), t(
|
|
256
|
+
}), t(y, {
|
|
255
257
|
field: "roleName",
|
|
256
258
|
title: e.$t("message.udp.roleName")
|
|
257
|
-
}, null, 8, ["title"]), t(
|
|
259
|
+
}, null, 8, ["title"]), t(y, {
|
|
258
260
|
field: "roleDesc",
|
|
259
261
|
title: e.$t("message.udp.roleDesc")
|
|
260
262
|
}, null, 8, ["title"])]),
|
|
261
263
|
_: 1
|
|
262
264
|
}, 8, ["data"])]),
|
|
263
265
|
_: 1
|
|
264
|
-
}, 8, ["modelValue", "title"]), t(
|
|
266
|
+
}, 8, ["modelValue", "title"]), t(v, {
|
|
265
267
|
modelValue: s.showAuth,
|
|
266
268
|
"onUpdate:modelValue": a[2] || (a[2] = (o) => s.showAuth = o),
|
|
267
269
|
title: e.$t("message.title.authority"),
|
|
@@ -284,5 +286,5 @@ const re = {
|
|
|
284
286
|
}
|
|
285
287
|
});
|
|
286
288
|
export {
|
|
287
|
-
|
|
289
|
+
fe as _
|
|
288
290
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as S, reactive as k, ref as v, createVNode as
|
|
1
|
+
import { defineComponent as S, reactive as k, ref as v, createVNode as o, resolveComponent as r, Fragment as m, createElementBlock as D, openBlock as A } from "vue";
|
|
2
2
|
import { useI18n as E } from "vue-i18n";
|
|
3
|
-
import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js";
|
|
4
4
|
import { _ as N } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
|
|
5
5
|
import { clone as p } from "xe-utils";
|
|
6
6
|
import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
|
|
7
7
|
import { VxeUI as R } from "vxe-pc-ui";
|
|
8
8
|
import { useRender as U } from "@utogether/utils";
|
|
9
|
-
import { q as B } from "./index-
|
|
9
|
+
import { q as B } from "./index-ADANSV-q.js";
|
|
10
10
|
const P = {
|
|
11
11
|
class: "page-content"
|
|
12
12
|
}, z = {
|
|
@@ -27,7 +27,7 @@ const P = {
|
|
|
27
27
|
}
|
|
28
28
|
}), {
|
|
29
29
|
t: h
|
|
30
|
-
} = E(), f = U(), d = B(),
|
|
30
|
+
} = E(), f = U(), d = B(), s = v(null), i = "/uums/menu";
|
|
31
31
|
let l;
|
|
32
32
|
const C = [{
|
|
33
33
|
type: "checkbox",
|
|
@@ -66,17 +66,17 @@ const P = {
|
|
|
66
66
|
default: ({
|
|
67
67
|
row: e
|
|
68
68
|
}) => {
|
|
69
|
-
const
|
|
69
|
+
const n = e.menuType, a = o(r("ut-button"), {
|
|
70
70
|
status: "u-cyan",
|
|
71
71
|
icon: "ri-add-fill",
|
|
72
72
|
content: "add",
|
|
73
73
|
onTap: () => u(e)
|
|
74
|
-
}, null), x =
|
|
74
|
+
}, null), x = o(r("ut-button"), {
|
|
75
75
|
icon: "ri-lock-fill",
|
|
76
76
|
content: "auth",
|
|
77
77
|
onTap: () => b(e)
|
|
78
78
|
}, null);
|
|
79
|
-
return [
|
|
79
|
+
return [o(m, null, [n ? null : o(m, null, [o(r("ut-button"), {
|
|
80
80
|
status: "success",
|
|
81
81
|
icon: "ri-edit-box-line",
|
|
82
82
|
content: "edit",
|
|
@@ -84,63 +84,63 @@ const P = {
|
|
|
84
84
|
}, null), ["0", "5"].includes(e.menuCategory) ? a : x])])];
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
}],
|
|
87
|
+
}], y = ({
|
|
88
88
|
code: e
|
|
89
89
|
}) => {
|
|
90
90
|
e === "add" && u(), e === "del" && T();
|
|
91
|
-
},
|
|
91
|
+
}, g = async ({
|
|
92
92
|
row: e
|
|
93
93
|
}) => {
|
|
94
|
-
const
|
|
94
|
+
const n = await d.get(i, {
|
|
95
95
|
parentId: e.id
|
|
96
96
|
});
|
|
97
97
|
return new Promise((a) => {
|
|
98
|
-
a(
|
|
98
|
+
a(n.list);
|
|
99
99
|
});
|
|
100
100
|
}, u = (e) => {
|
|
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.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 || [],
|
|
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.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
102
|
}, w = (e) => {
|
|
103
103
|
t.showDrawer = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
|
|
104
104
|
};
|
|
105
105
|
async function _({
|
|
106
106
|
row: e
|
|
107
107
|
}) {
|
|
108
|
-
await d.put(
|
|
108
|
+
await d.put(i, [e]), s.value.refreshData();
|
|
109
109
|
}
|
|
110
110
|
const T = async () => {
|
|
111
|
-
const e = await R.modal.confirm(h("message.delRecord")),
|
|
111
|
+
const e = await R.modal.confirm(h("message.delRecord")), n = s.value.getInstance().getCheckboxRecords();
|
|
112
112
|
if (e === "confirm") {
|
|
113
|
-
const [a] = await M(d.delete(
|
|
113
|
+
const [a] = await M(d.delete(i, n));
|
|
114
114
|
}
|
|
115
115
|
}, b = (e) => {
|
|
116
116
|
t.showAuthority = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
|
|
117
|
-
}, c = (e,
|
|
118
|
-
e === "submit" && (l ||
|
|
117
|
+
}, c = (e, n) => {
|
|
118
|
+
e === "submit" && (l || n) && s.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
|
|
119
119
|
};
|
|
120
|
-
return (e,
|
|
121
|
-
const a =
|
|
122
|
-
return A(), D("div", P, [
|
|
120
|
+
return (e, n) => {
|
|
121
|
+
const a = r("ut-grid");
|
|
122
|
+
return A(), D("div", P, [o(a, {
|
|
123
123
|
ref_key: "xgrid",
|
|
124
|
-
ref:
|
|
124
|
+
ref: s,
|
|
125
125
|
"tree-config": {
|
|
126
126
|
childrenField: "children",
|
|
127
127
|
lazy: !0,
|
|
128
128
|
hasChild: "hasChildren",
|
|
129
|
-
loadMethod:
|
|
129
|
+
loadMethod: g,
|
|
130
130
|
iconOpen: "ri-checkbox-indeterminate-line ri-lg",
|
|
131
131
|
iconClose: "ri-add-box-line ri-lg"
|
|
132
132
|
},
|
|
133
133
|
columns: C,
|
|
134
|
-
url:
|
|
134
|
+
url: i,
|
|
135
135
|
stripe: !1,
|
|
136
136
|
mode: "form",
|
|
137
|
-
onToolbarButtonClick:
|
|
138
|
-
}, null, 8, ["tree-config"]),
|
|
137
|
+
onToolbarButtonClick: y
|
|
138
|
+
}, null, 8, ["tree-config"]), o(I, {
|
|
139
139
|
show: t.showDrawer,
|
|
140
140
|
record: t.record,
|
|
141
141
|
"data-status": t.dataStatus,
|
|
142
142
|
onClose: c
|
|
143
|
-
}, null, 8, ["show", "record", "data-status"]),
|
|
143
|
+
}, null, 8, ["show", "record", "data-status"]), o(N, {
|
|
144
144
|
show: t.showAuthority,
|
|
145
145
|
record: t.record,
|
|
146
146
|
onClose: c
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, ref as i, reactive as R, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as u, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as q, mergeProps as A, toHandlers as E } from "vue";
|
|
2
2
|
import { t as P } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
-
import { q as S } from "./index-
|
|
3
|
+
import { q as S } from "./index-ADANSV-q.js";
|
|
4
4
|
const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
|
|
5
5
|
__name: "UserInfo",
|
|
6
6
|
props: {
|