@utogether/udp-core 1.0.1-beta.1 → 1.0.1-beta.10
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 -32
- package/dist/{403-Dp617CWX.js → 403-Ctxjn4q8.js} +1 -1
- package/dist/{404-Cz_Axb6Y.js → 404-W5yzyiZ9.js} +1 -1
- package/dist/{500-BGCtRNse.js → 500-DXuGEOm4.js} +1 -1
- package/dist/{AuthorityInfo-DGGfm7IS.js → AuthorityInfo-C2tflCt8.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js +100 -0
- package/dist/{Company-IV3GTnzY.js → Company-PLez5GoH.js} +3 -3
- package/dist/{CompanyPanel-qV-_VtoL.js → CompanyPanel-CIGaQooL.js} +16 -16
- package/dist/{Department-B3W-OxW8.js → Department-B9wLsXFm.js} +3 -3
- package/dist/{DepartmentPanel-Cw3OWxE7.js → DepartmentPanel-DSM4lTaz.js} +1 -1
- package/dist/{DesignPanel-BFxR2fHJ.js → DesignPanel-B6a9wW_A.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js → DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js} +24 -26
- package/dist/DictView-DhFbQxdJ.js +110 -0
- package/dist/InvOrganization-D90AbR3b.js +66 -0
- package/dist/Org-DxBkYabD.js +39 -0
- package/dist/{Preview-BlDMmpdR.js → Preview-BFtRpBxw.js} +1 -1
- package/dist/{ReportDefine-Cub_85LA.js → ReportDefine-BIa2QryC.js} +1 -1
- package/dist/{ReportDesign-hFhq5UVE.js → ReportDesign-CnyjI-WD.js} +43 -43
- package/dist/{ReportQuery-ChkWEyxT.js → ReportQuery-BiK7yEhV.js} +1 -1
- package/dist/{ReportQueryFrom-KVyD_8Dj.js → ReportQueryFrom-C2rqdFTm.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js} +1 -1
- package/dist/{ReportTemplate-ag9NDvh2.js → ReportTemplate-DdkLscP3.js} +28 -28
- package/dist/{Role-_q3lQ8CZ.js → Role-BrsxgK8D.js} +6 -6
- package/dist/{RoleAssign-DZb9IRsm.js → RoleAssign-DiqwJqDa.js} +8 -8
- package/dist/{RolePanel-CsLsz-Ds.js → RolePanel-BDusGyo7.js} +1 -1
- package/dist/{RolePanel-BQb1LlhD.js → RolePanel-Dqx5dI3f.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js → RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js} +44 -38
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js → ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js} +21 -21
- package/dist/{Staff-BSf9Ypbk.js → Staff-Cwi9LQiZ.js} +3 -3
- package/dist/{StaffInfo-BNKasyMF.js → StaffInfo-XjVtyaMv.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js → StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js} +11 -11
- package/dist/{StaffPanel-Bpq0WVlH.js → StaffPanel-C-wYcFdv.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js → StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js} +2 -2
- package/dist/{SysUser-FAABuNti.js → SysUser-O4tvr-Ur.js} +2 -2
- package/dist/{SysUserPanel-PxJeOgHm.js → SysUserPanel-B853docZ.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js +294 -0
- package/dist/{SystemMenu-C-7NAGon.js → SystemMenu-CXR6mrXr.js} +26 -26
- package/dist/{UserInfo-ClXKtyGo.js → UserInfo-BkP8pE2a.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js → UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js} +39 -37
- package/dist/{childView-C_HmDQNd.js → childView-D0HwbgDT.js} +1 -1
- package/dist/{childView-uUlBcTza.js → childView-TRqUkSDC.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js → childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js} +40 -40
- package/dist/{childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js → childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js} +1 -1
- package/dist/{code-rule-AgCVDKFy.js → code-rule-BV7PQWhK.js} +9 -10
- package/dist/core.es.js +14 -11
- package/dist/{cron-task-C6FgQxTi.js → cron-task-9ZS9bi7K.js} +1 -1
- package/dist/{frameView-BDgISK7N.js → frameView-DE83AN50.js} +1 -1
- package/dist/img/l_img.svg +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/index-DVARtten.js +2623 -0
- package/dist/{layoutView-yb3DV2DQ.js → layoutView-D1U-c4By.js} +111 -110
- package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
- package/dist/{login-RRpljbkm.js → login-sPCEiTGT.js} +106 -113
- package/dist/{lov-view-C9-rjzZR.js → lov-view-76NcYTYl.js} +2 -2
- package/dist/{menuInfo-CzPQyFhp.js → menuInfo-CxjfjFpm.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js → menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js} +100 -97
- package/dist/{pda-app-Dvy3U-b6.js → pda-app-BUH16bLj.js} +211 -197
- package/dist/{resource-Fy0lFkSV.js → resource-CCuHzoA6.js} +15 -15
- package/dist/{su-welcome-DYvSCUST.js → su-welcome-mRArONsd.js} +109 -110
- package/dist/{sys-config-DJ1vNQTy.js → sys-config-Cvt05yF6.js} +7 -7
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-CjmJiHoE.js → utogether-Dm_VBQHR.js} +1 -1
- package/index.ts +40 -36
- package/package.json +1 -1
- package/src/App.vue +65 -70
- package/src/api/index.ts +1 -1
- package/src/components/SuCharts/src/UserInfo.vue +78 -78
- 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-upload.vue +414 -64
- package/src/components/udp/form.vue +112 -0
- package/src/components/udp/grid.vue +495 -0
- package/src/components/udp/index.ts +10 -4
- package/src/components/udp/lov.vue +388 -0
- package/src/components/udp/modal-form.vue +11 -2
- package/src/components/udp/modal-grid.vue +288 -0
- package/src/components/udp/upload.vue +423 -0
- package/src/components/udp/utils.ts +447 -40
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +1 -1
- package/src/layout/components/lay-panel/index.vue +150 -150
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
- package/src/layout/components/lay-tag/index.vue +625 -625
- package/src/layout/layoutView.vue +215 -215
- package/src/main.ts +23 -13
- package/src/plugins/i18n/en.ts +302 -289
- package/src/plugins/i18n/zh.ts +348 -337
- package/src/plugins/vxe-table/index.ts +53 -46
- package/src/plugins/vxe-table/render.tsx +956 -817
- package/src/router/index.ts +187 -183
- package/src/router/modules/remaining.ts +58 -83
- package/src/style/button.scss +85 -78
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +44 -11
- package/src/utils/authority/index.ts +1 -1
- package/src/utils/{http → udp/http}/index.ts +8 -24
- package/src/utils/{http → udp/http}/types.d.ts +8 -5
- package/src/utils/udp/useRender.ts +17 -6
- package/src/views/login/login-view.vue +2 -2
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/inv-org/InvOrganization.vue +2 -3
- package/src/views/organization/org/Org.vue +9 -5
- package/src/views/system/menu/SystemMenu.vue +183 -197
- package/src/views/system/menu/menuInfo.vue +363 -371
- package/src/views/system/role/AuthorityInfo.vue +19 -15
- package/src/views/system/role/Role.vue +1 -5
- package/src/views/system/role/RolePanel.vue +11 -2
- package/src/views/system/role/UserInfo.vue +195 -193
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -136
- package/src/views/system/sys/sys-config.vue +1 -1
- package/src/views/system/sysUser/SysUserPanel.vue +278 -278
- package/src/views/uapp/pda/pda-app.vue +208 -176
- package/src/views/udev/dict/DictView.vue +118 -106
- package/src/views/udev/dict/childView.vue +7 -7
- package/src/views/udev/lov/lov-view.vue +91 -91
- 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 +14 -9
- package/src/views/upms/user/login-log.vue +1 -1
- package/src/views/urpt/design/DesignPanel.vue +507 -526
- package/src/views/urpt/design/ReportDesign.vue +15 -19
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/types/global.d.ts +2 -1
- package/vite.config.ts +6 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js +0 -102
- package/dist/DictView-C-i7e4hZ.js +0 -95
- package/dist/InvOrganization-cfT6riGU.js +0 -260
- package/dist/Org-CA7vTDIF.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js +0 -126
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js +0 -288
- package/dist/index-DzOzUkf6.js +0 -3388
package/dist/Org-CA7vTDIF.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, ref as m, resolveComponent as s, createBlock as u, openBlock as f } from "vue";
|
|
2
|
-
import { t as p } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
-
import { clone as g } from "xe-utils";
|
|
4
|
-
import { useRender as _ } from "@utogether/utils";
|
|
5
|
-
import { q as h } from "./index-DzOzUkf6.js";
|
|
6
|
-
const k = { name: "OrgUnit" }, q = /* @__PURE__ */ a({
|
|
7
|
-
...k,
|
|
8
|
-
setup(R) {
|
|
9
|
-
const r = "/uums/org", t = m(null), i = _(), d = [{ field: "orgCode" }, { field: "orgName" }, { field: "orgAlias" }], l = [
|
|
10
|
-
{ type: "checkbox", width: 50, align: "center" },
|
|
11
|
-
{ field: "orgCode", required: !0, editRender: { name: "$input" } },
|
|
12
|
-
{ field: "orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
|
|
13
|
-
{ field: "orgAlias", editRender: { name: "$input" } },
|
|
14
|
-
{ field: "orgDesc", editRender: { name: "$input" } },
|
|
15
|
-
{ field: "enabled", width: 80, cellRender: i.renderEnabled(c) }
|
|
16
|
-
];
|
|
17
|
-
async function c({ row: n }) {
|
|
18
|
-
const o = g(n, !0), [e] = await p(h().put(r, [o]));
|
|
19
|
-
!e && t.value.refreshData();
|
|
20
|
-
}
|
|
21
|
-
return (n, o) => {
|
|
22
|
-
const e = s("ut-grid");
|
|
23
|
-
return f(), u(e, {
|
|
24
|
-
ref_key: "xgrid",
|
|
25
|
-
ref: t,
|
|
26
|
-
items: d,
|
|
27
|
-
columns: l,
|
|
28
|
-
url: r
|
|
29
|
-
}, null, 512);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
q as default
|
|
35
|
-
};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, reactive as b, ref as g, inject as N, watch as B, nextTick as E, createVNode as h, resolveComponent as i, resolveDirective as M, withDirectives as A, createElementBlock as L, openBlock as w, createBlock as P, createCommentVNode as R, unref as S } from "vue";
|
|
2
|
-
import { useI18n as T } from "vue-i18n";
|
|
3
|
-
import { clone as U } from "xe-utils";
|
|
4
|
-
import { VxeUI as j } from "vxe-pc-ui";
|
|
5
|
-
import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
|
|
6
|
-
import { successMessage as v } from "@utogether/utils";
|
|
7
|
-
import { q as C } from "./index-DzOzUkf6.js";
|
|
8
|
-
const q = {
|
|
9
|
-
class: "page-content"
|
|
10
|
-
}, d = "/uums/orgRole", W = /* @__PURE__ */ V({
|
|
11
|
-
__name: "RolePanel",
|
|
12
|
-
setup($) {
|
|
13
|
-
const e = b({
|
|
14
|
-
record: {},
|
|
15
|
-
loading: !1,
|
|
16
|
-
showModalView: !1
|
|
17
|
-
}), {
|
|
18
|
-
t: c
|
|
19
|
-
} = T(), n = g(null), u = g(null), o = N("active");
|
|
20
|
-
B(() => o.value, () => {
|
|
21
|
-
o != null && o.value.id && (e.fetchExtParam = {
|
|
22
|
-
orgId: o == null ? void 0 : o.value.id
|
|
23
|
-
}, E(() => {
|
|
24
|
-
n.value.refreshData();
|
|
25
|
-
}));
|
|
26
|
-
});
|
|
27
|
-
const x = [{
|
|
28
|
-
code: "del",
|
|
29
|
-
auth: "/"
|
|
30
|
-
}], m = [{
|
|
31
|
-
field: "roleName",
|
|
32
|
-
title: "message.udp.roleName"
|
|
33
|
-
}, {
|
|
34
|
-
field: "roleCode",
|
|
35
|
-
title: "message.udp.roleCode"
|
|
36
|
-
}], f = [{
|
|
37
|
-
type: "checkbox",
|
|
38
|
-
width: 40
|
|
39
|
-
}, {
|
|
40
|
-
field: "roleCode",
|
|
41
|
-
title: "message.udp.roleCode"
|
|
42
|
-
}, {
|
|
43
|
-
field: "roleName",
|
|
44
|
-
title: "message.udp.roleName"
|
|
45
|
-
}, {
|
|
46
|
-
field: "roleDesc",
|
|
47
|
-
title: "message.udp.roleDesc"
|
|
48
|
-
}, {
|
|
49
|
-
field: "enabled",
|
|
50
|
-
width: 100,
|
|
51
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
52
|
-
}], p = U(f, !0);
|
|
53
|
-
p.push({
|
|
54
|
-
field: "operate",
|
|
55
|
-
width: 80,
|
|
56
|
-
fixed: "right",
|
|
57
|
-
slots: {
|
|
58
|
-
default: ({
|
|
59
|
-
row: t
|
|
60
|
-
}) => [h(i("ut-button"), {
|
|
61
|
-
icon: "ri-delete-bin-5-fill",
|
|
62
|
-
content: "del",
|
|
63
|
-
status: "danger",
|
|
64
|
-
auth: "del",
|
|
65
|
-
onTap: () => D(t)
|
|
66
|
-
}, null)]
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
const k = () => {
|
|
70
|
-
e.record = {}, e.record.orgId = o.value.id, e.showModalView = !0;
|
|
71
|
-
}, D = async (t) => {
|
|
72
|
-
if (await j.modal.confirm(c("message.tip.del")) === "confirm") {
|
|
73
|
-
const s = {
|
|
74
|
-
orgId: o.value.id,
|
|
75
|
-
roleId: t.id
|
|
76
|
-
};
|
|
77
|
-
e.loading = !0;
|
|
78
|
-
const [a] = await _(C().delete(d, s));
|
|
79
|
-
a || v(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
|
|
80
|
-
}
|
|
81
|
-
}, I = async (t) => {
|
|
82
|
-
const r = [];
|
|
83
|
-
t.forEach((l) => {
|
|
84
|
-
l.orgId = o.value.id, l.roleId = l.id, r.push(l);
|
|
85
|
-
});
|
|
86
|
-
const s = {
|
|
87
|
-
orgRoleList: r
|
|
88
|
-
};
|
|
89
|
-
u.value.showLoading();
|
|
90
|
-
const [a] = await _(C().post(d, s));
|
|
91
|
-
a || (v(), n.value.refreshData(), e.showModalView = !1);
|
|
92
|
-
}, y = (t) => {
|
|
93
|
-
t === "add" && k();
|
|
94
|
-
};
|
|
95
|
-
return (t, r) => {
|
|
96
|
-
const s = i("ut-grid"), a = i("ut-modal-grid"), l = M("spinning");
|
|
97
|
-
return A((w(), L("div", q, [h(s, {
|
|
98
|
-
ref_key: "xgrid",
|
|
99
|
-
ref: n,
|
|
100
|
-
items: m,
|
|
101
|
-
columns: S(p),
|
|
102
|
-
"default-params": e.fetchExtParam,
|
|
103
|
-
buttons: x,
|
|
104
|
-
"auto-load": !1,
|
|
105
|
-
url: d,
|
|
106
|
-
mode: "form",
|
|
107
|
-
onButtonClick: y
|
|
108
|
-
}, null, 8, ["columns", "default-params"]), e.showModalView ? (w(), P(a, {
|
|
109
|
-
key: 0,
|
|
110
|
-
ref_key: "xmodal",
|
|
111
|
-
ref: u,
|
|
112
|
-
items: m,
|
|
113
|
-
columns: f,
|
|
114
|
-
"show-footer": !0,
|
|
115
|
-
editable: !1,
|
|
116
|
-
url: "/uums/role",
|
|
117
|
-
width: "60%",
|
|
118
|
-
onClose: r[0] || (r[0] = (z) => e.showModalView = !1),
|
|
119
|
-
onConfirm: I
|
|
120
|
-
}, null, 512)) : R("", !0)])), [[l, e.loading]]);
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
export {
|
|
125
|
-
W as _
|
|
126
|
-
};
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import { defineComponent as z, reactive as G, ref as v, inject as H, createVNode as t, Fragment as R, resolveComponent as r, 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
|
-
import { useI18n as W } from "vue-i18n";
|
|
3
|
-
import { t as $ } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
import { useRender as X, warnMessage as Z, errorMessage as ee } from "@utogether/utils";
|
|
5
|
-
import { VxeUI as te } from "vxe-pc-ui";
|
|
6
|
-
import { isEmpty as se } from "xe-utils";
|
|
7
|
-
import { q as ae } from "./index-DzOzUkf6.js";
|
|
8
|
-
const re = {
|
|
9
|
-
class: "page"
|
|
10
|
-
}, u = "/uums/user", pe = /* @__PURE__ */ z({
|
|
11
|
-
__name: "SysUserPanel",
|
|
12
|
-
setup(le) {
|
|
13
|
-
const s = G({
|
|
14
|
-
record: {},
|
|
15
|
-
listQuery: {},
|
|
16
|
-
dataList: [],
|
|
17
|
-
roleList: [],
|
|
18
|
-
submitLoading: !1,
|
|
19
|
-
showModelView: !1,
|
|
20
|
-
showUserRole: !1,
|
|
21
|
-
showAuth: !1,
|
|
22
|
-
dataStatus: ""
|
|
23
|
-
}), d = ae(), {
|
|
24
|
-
t: l
|
|
25
|
-
} = W(), q = {
|
|
26
|
-
userName: [{
|
|
27
|
-
required: !0,
|
|
28
|
-
message: `${l("message.required")}${l("message.userCode")}`
|
|
29
|
-
}],
|
|
30
|
-
name: [{
|
|
31
|
-
required: !0,
|
|
32
|
-
message: `${l("message.required")}${l("message.userName")}`
|
|
33
|
-
}],
|
|
34
|
-
unitId: [{
|
|
35
|
-
required: !0,
|
|
36
|
-
message: `${l("message.required")}${l("message.unitName")}`
|
|
37
|
-
}],
|
|
38
|
-
userPwd: [{
|
|
39
|
-
required: !0,
|
|
40
|
-
message: `${l("message.required")}${l("message.userPwd")}`
|
|
41
|
-
}]
|
|
42
|
-
}, m = X(), y = v({}), C = H("treeList"), N = v(null), I = [{
|
|
43
|
-
field: "name",
|
|
44
|
-
title: "message.userName"
|
|
45
|
-
}, {
|
|
46
|
-
field: "userName",
|
|
47
|
-
title: "message.userCode"
|
|
48
|
-
}], h = [{
|
|
49
|
-
type: "checkbox",
|
|
50
|
-
width: 40,
|
|
51
|
-
align: "center"
|
|
52
|
-
}, {
|
|
53
|
-
field: "userName",
|
|
54
|
-
title: "message.userCode",
|
|
55
|
-
required: !0,
|
|
56
|
-
editRender: m.renderInput()
|
|
57
|
-
}, {
|
|
58
|
-
field: "name",
|
|
59
|
-
title: "message.userName",
|
|
60
|
-
required: !0,
|
|
61
|
-
editRender: m.renderInput()
|
|
62
|
-
}, {
|
|
63
|
-
field: "type",
|
|
64
|
-
title: "message.sysType",
|
|
65
|
-
formatter: ["formatDict", "SU.ENABLE"],
|
|
66
|
-
editRender: m.renderDict("SU.USER.TYPE")
|
|
67
|
-
}, {
|
|
68
|
-
field: "userPwd",
|
|
69
|
-
required: !0,
|
|
70
|
-
width: 150,
|
|
71
|
-
editRender: m.renderInput(),
|
|
72
|
-
formatter: () => "*******"
|
|
73
|
-
}, {
|
|
74
|
-
field: "enabled",
|
|
75
|
-
width: 80,
|
|
76
|
-
cellRender: m.renderEnabled(L)
|
|
77
|
-
}, {
|
|
78
|
-
field: "operate",
|
|
79
|
-
width: 240,
|
|
80
|
-
fixed: "right",
|
|
81
|
-
slots: {
|
|
82
|
-
default: ({
|
|
83
|
-
row: e
|
|
84
|
-
}) => [t(R, null, [t(r("ut-button"), {
|
|
85
|
-
icon: "ri-user-fill",
|
|
86
|
-
content: "role",
|
|
87
|
-
onTap: () => S(e)
|
|
88
|
-
}, null), t(r("ut-button"), {
|
|
89
|
-
icon: "ri-lock-fill",
|
|
90
|
-
content: "auth",
|
|
91
|
-
status: "success",
|
|
92
|
-
onTap: () => E(e)
|
|
93
|
-
}, null), t(r("ut-button"), {
|
|
94
|
-
icon: "ri-lock-fill",
|
|
95
|
-
content: "passwordReset",
|
|
96
|
-
status: "warning",
|
|
97
|
-
onTap: () => A(e)
|
|
98
|
-
}, null)])]
|
|
99
|
-
}
|
|
100
|
-
}];
|
|
101
|
-
async function L({
|
|
102
|
-
row: e
|
|
103
|
-
}) {
|
|
104
|
-
await $(d.put(u, [e])), N.value.refreshData();
|
|
105
|
-
}
|
|
106
|
-
const S = async (e) => {
|
|
107
|
-
var n;
|
|
108
|
-
const a = await d.get(u + "/getUserRole", {
|
|
109
|
-
userName: e.userName
|
|
110
|
-
});
|
|
111
|
-
s.roleList = (n = a[0]) == null ? void 0 : n.sysRoles, Q(() => {
|
|
112
|
-
s.showUserRole = !0;
|
|
113
|
-
});
|
|
114
|
-
}, A = async (e) => {
|
|
115
|
-
await d.put(u + "/resetPwd", e), await te.modal.alert(l("message.tip.initPassword"));
|
|
116
|
-
}, E = async (e) => {
|
|
117
|
-
var f;
|
|
118
|
-
const [a, n] = await $(d.get(u + "/getUserRole", {
|
|
119
|
-
userName: e.userName
|
|
120
|
-
}));
|
|
121
|
-
a || (se(n) ? Z(l("message.tip.emptyAuth")) : (s.roleList = (f = n[0]) == null ? void 0 : f.sysMenuExts, s.showAuth = !0));
|
|
122
|
-
}, P = {
|
|
123
|
-
editActived({
|
|
124
|
-
row: e
|
|
125
|
-
}) {
|
|
126
|
-
h[1].editRender.props.disabled = !!e.id, h[4].editRender.props.disabled = !!e.id;
|
|
127
|
-
}
|
|
128
|
-
}, b = v(null), M = () => {
|
|
129
|
-
b.value.validate(async (e) => {
|
|
130
|
-
if (!e) {
|
|
131
|
-
const {
|
|
132
|
-
record: a,
|
|
133
|
-
dataStatus: n
|
|
134
|
-
} = s;
|
|
135
|
-
n === "add" ? await d.post(u, a) : await d.put(u, a), x();
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
}, x = () => {
|
|
139
|
-
s.showModelView = !1;
|
|
140
|
-
}, T = () => {
|
|
141
|
-
d.get("/uums/unit", {
|
|
142
|
-
pageSize: 10
|
|
143
|
-
}).then((e) => {
|
|
144
|
-
y.value = {
|
|
145
|
-
unitId: e[0].id,
|
|
146
|
-
enabled: "1"
|
|
147
|
-
};
|
|
148
|
-
}).catch(() => {
|
|
149
|
-
ee("获取租户失败,刷新后重试");
|
|
150
|
-
});
|
|
151
|
-
};
|
|
152
|
-
return Y(() => {
|
|
153
|
-
T();
|
|
154
|
-
}), (e, a) => {
|
|
155
|
-
const n = r("ut-grid"), f = r("vxe-option"), D = r("vxe-select"), c = r("vxe-form-item"), V = r("ut-button"), B = r("vxe-form"), w = r("vxe-modal"), _ = r("vxe-column"), F = r("vxe-table"), j = r("el-tree-v2");
|
|
156
|
-
return g(), U("div", re, [t(n, {
|
|
157
|
-
ref_key: "xgrid",
|
|
158
|
-
ref: N,
|
|
159
|
-
columns: h,
|
|
160
|
-
items: I,
|
|
161
|
-
url: u,
|
|
162
|
-
"default-params": y.value,
|
|
163
|
-
events: P
|
|
164
|
-
}, null, 8, ["default-params"]), t(w, {
|
|
165
|
-
modelValue: s.showModelView,
|
|
166
|
-
"onUpdate:modelValue": a[0] || (a[0] = (o) => s.showModelView = o),
|
|
167
|
-
title: "用户信息",
|
|
168
|
-
width: "300"
|
|
169
|
-
}, {
|
|
170
|
-
default: i(() => [t(B, {
|
|
171
|
-
ref_key: "xForm",
|
|
172
|
-
ref: b,
|
|
173
|
-
data: s.record,
|
|
174
|
-
rules: q,
|
|
175
|
-
"title-align": "right"
|
|
176
|
-
}, {
|
|
177
|
-
default: i(() => [t(c, {
|
|
178
|
-
title: e.$t("message.unitName"),
|
|
179
|
-
field: "unitId",
|
|
180
|
-
span: "24"
|
|
181
|
-
}, {
|
|
182
|
-
default: i(({
|
|
183
|
-
data: o
|
|
184
|
-
}) => [t(D, {
|
|
185
|
-
modelValue: o.unitId,
|
|
186
|
-
"onUpdate:modelValue": (p) => o.unitId = p
|
|
187
|
-
}, {
|
|
188
|
-
default: i(() => [(g(!0), U(R, null, K(O(C), (p) => (g(), k(f, {
|
|
189
|
-
key: p.id,
|
|
190
|
-
value: p.id,
|
|
191
|
-
label: p.unitName
|
|
192
|
-
}, null, 8, ["value", "label"]))), 128))]),
|
|
193
|
-
_: 2
|
|
194
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])]),
|
|
195
|
-
_: 1
|
|
196
|
-
}, 8, ["title"]), t(c, {
|
|
197
|
-
title: e.$t("message.userCode"),
|
|
198
|
-
"item-render": {
|
|
199
|
-
name: "input",
|
|
200
|
-
attrs: {
|
|
201
|
-
disabled: s.dataStatus === "update"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
field: "userName",
|
|
205
|
-
span: "24"
|
|
206
|
-
}, null, 8, ["title", "item-render"]), t(c, {
|
|
207
|
-
title: e.$t("message.userName"),
|
|
208
|
-
field: "name",
|
|
209
|
-
span: "24",
|
|
210
|
-
"item-render": {
|
|
211
|
-
name: "input"
|
|
212
|
-
}
|
|
213
|
-
}, null, 8, ["title"]), s.dataStatus === "add" ? (g(), k(c, {
|
|
214
|
-
key: 0,
|
|
215
|
-
title: e.$t("message.userPwd"),
|
|
216
|
-
"item-render": {
|
|
217
|
-
name: "input"
|
|
218
|
-
},
|
|
219
|
-
field: "userPwd",
|
|
220
|
-
span: "24"
|
|
221
|
-
}, null, 8, ["title"])) : J("", !0), t(c, {
|
|
222
|
-
align: "right",
|
|
223
|
-
span: "24"
|
|
224
|
-
}, {
|
|
225
|
-
default: i(() => [t(V, {
|
|
226
|
-
content: "cancel",
|
|
227
|
-
icon: "ri-close-fill",
|
|
228
|
-
onClick: x
|
|
229
|
-
}), t(V, {
|
|
230
|
-
content: "confirm",
|
|
231
|
-
icon: "ri-save-3-fill",
|
|
232
|
-
status: "u-cyan",
|
|
233
|
-
onClick: M
|
|
234
|
-
})]),
|
|
235
|
-
_: 1
|
|
236
|
-
})]),
|
|
237
|
-
_: 1
|
|
238
|
-
}, 8, ["data"])]),
|
|
239
|
-
_: 1
|
|
240
|
-
}, 8, ["modelValue"]), t(w, {
|
|
241
|
-
modelValue: s.showUserRole,
|
|
242
|
-
"onUpdate:modelValue": a[1] || (a[1] = (o) => s.showUserRole = o),
|
|
243
|
-
title: e.$t("message.title.roleInfo"),
|
|
244
|
-
width: "600"
|
|
245
|
-
}, {
|
|
246
|
-
default: i(() => [t(F, {
|
|
247
|
-
height: "300",
|
|
248
|
-
data: s.roleList,
|
|
249
|
-
border: ""
|
|
250
|
-
}, {
|
|
251
|
-
default: i(() => [t(_, {
|
|
252
|
-
type: "seq",
|
|
253
|
-
width: "60"
|
|
254
|
-
}), t(_, {
|
|
255
|
-
field: "roleName",
|
|
256
|
-
title: e.$t("message.udp.roleName")
|
|
257
|
-
}, null, 8, ["title"]), t(_, {
|
|
258
|
-
field: "roleDesc",
|
|
259
|
-
title: e.$t("message.udp.roleDesc")
|
|
260
|
-
}, null, 8, ["title"])]),
|
|
261
|
-
_: 1
|
|
262
|
-
}, 8, ["data"])]),
|
|
263
|
-
_: 1
|
|
264
|
-
}, 8, ["modelValue", "title"]), t(w, {
|
|
265
|
-
modelValue: s.showAuth,
|
|
266
|
-
"onUpdate:modelValue": a[2] || (a[2] = (o) => s.showAuth = o),
|
|
267
|
-
title: e.$t("message.title.authority"),
|
|
268
|
-
height: "300",
|
|
269
|
-
width: "360"
|
|
270
|
-
}, {
|
|
271
|
-
default: i(() => [t(j, {
|
|
272
|
-
ref: "xTree",
|
|
273
|
-
data: s.roleList,
|
|
274
|
-
props: {
|
|
275
|
-
children: "children",
|
|
276
|
-
label: "menuName"
|
|
277
|
-
},
|
|
278
|
-
height: 420,
|
|
279
|
-
"node-key": "id"
|
|
280
|
-
}, null, 8, ["data"])]),
|
|
281
|
-
_: 1
|
|
282
|
-
}, 8, ["modelValue", "title"])]);
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
});
|
|
286
|
-
export {
|
|
287
|
-
pe as _
|
|
288
|
-
};
|