@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.21
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 +8 -1
- package/dist/{403-BBQoJwTM.js → 403-B_l9Q9w_.js} +1 -1
- package/dist/{404-BbJPSIWM.js → 404-33KZO3Vz.js} +1 -1
- package/dist/{500-BtFL9R4M.js → 500-oI74ZkQH.js} +1 -1
- package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-CNoxrmPS.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-CO01EWKQ.js +100 -0
- package/dist/{Company-CGqmslx-.js → Company-DOCRUvUs.js} +3 -3
- package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-Do2JlJ3U.js} +26 -26
- package/dist/{Department-BZyJtacc.js → Department-BAlx8Am2.js} +3 -3
- package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-BvQUkRaM.js} +25 -25
- package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-BMr-c76z.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-COERxrYp.js} +28 -30
- package/dist/DictView-DkG5lo6m.js +109 -0
- package/dist/InvOrganization-D_PuTpPt.js +74 -0
- package/dist/Org-CtVfZAjI.js +39 -0
- package/dist/{Preview-pHD84xqI.js → Preview-Cuj_akRk.js} +2 -2
- package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-CM2aNEVp.js} +1 -1
- package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-B1y79NKM.js} +43 -43
- package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-CZEfKCWP.js} +1 -1
- package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-C_cUB8bs.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBqJnvTQ.js} +1 -1
- package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-BprAuCb1.js} +28 -28
- package/dist/{Role-eFZoTpXc.js → Role-CAaLVGNy.js} +6 -6
- package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-DuFp2Ty7.js} +9 -9
- package/dist/{RolePanel-DlFw6HSf.js → RolePanel-BRStoO0e.js} +1 -1
- package/dist/{RolePanel-CoUOc3sX.js → RolePanel-FnyN7LiS.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CNIA7zdk.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-CS7drFhn.js} +44 -38
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-CEnqhlSE.js} +23 -23
- package/dist/{Staff-DFBLCsAd.js → Staff-D493jHwR.js} +3 -3
- package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-suU_pcyD.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-DV16a2Nz.js} +16 -16
- package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-BbYWu-xZ.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-CfRIanr5.js} +2 -2
- package/dist/{SysUser-BdZvYxQH.js → SysUser-YXOsIVpJ.js} +2 -2
- package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-C1tQzih_.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BfT40pDr.js +298 -0
- package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-DzKl8RAz.js} +33 -33
- package/dist/{UserInfo-DqXCRZts.js → UserInfo-CYeYQNq8.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-DYVdi2Ck.js} +41 -39
- package/dist/{childView-B2lSsqS3.js → childView-BNYdfnMx.js} +1 -1
- package/dist/{childView-DRUNqgjI.js → childView-C6rHVrT6.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-6o00J0a7.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-O_zWFjYY.js} +43 -43
- package/dist/{code-rule-DZC9T6cl.js → code-rule-MxcRbYZR.js} +13 -15
- package/dist/core.es.js +18 -10
- package/dist/{cron-task-BJwPeA5F.js → cron-task-B0yfTtm6.js} +11 -11
- package/dist/{frameView-C6wkvok-.js → frameView-DtHY5dLd.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-BWtOrjW2.js +4603 -0
- package/dist/{layoutView-CeJBpZb_.js → layoutView-D0Q7EG0u.js} +1564 -1559
- package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
- package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
- package/dist/login-CuO8YgN1.js +249 -0
- package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
- package/dist/{lov-view-DRF-99U4.js → lov-view-DcRVGqsD.js} +5 -5
- package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-ccOqhCC8.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-DTBPgTe_.js} +34 -32
- package/dist/{pda-app-B9tn7jdv.js → pda-app-D7n4oxyn.js} +202 -188
- package/dist/{resource-BqnxbQNe.js → resource-_h2OtsKS.js} +18 -18
- package/dist/{su-welcome-VwifUK_O.js → su-welcome-Co6e4akE.js} +118 -120
- package/dist/sys-config-C6Es9vZl.js +355 -0
- package/dist/udp-core.css +1 -9
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +17 -5
- package/package.json +1 -1
- package/src/App.vue +2 -7
- package/src/api/http.ts +1 -4
- package/src/api/index.ts +5 -3
- package/src/api/user.ts +2 -2
- package/src/components/SuCharts/src/UserInfo.vue +3 -3
- package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
- package/src/components/udp/form/form.vue +109 -0
- package/src/components/udp/grid/index.vue +509 -0
- package/src/components/udp/index.ts +4 -4
- package/src/components/udp/utils.ts +405 -40
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +9 -7
- package/src/layout/components/lay-panel/index.vue +3 -3
- package/src/layout/components/lay-search/index.vue +1 -1
- package/src/layout/components/lay-select-org/index.vue +4 -9
- package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
- package/src/layout/components/lay-sidebar/horizontal.vue +4 -5
- package/src/layout/components/lay-sidebar/mixNav.vue +6 -4
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +94 -98
- package/src/layout/components/lay-tag/index.vue +596 -625
- package/src/layout/hooks/useTag.ts +223 -233
- package/src/layout/layoutView.vue +215 -215
- package/src/layout/types.ts +3 -2
- package/src/main.ts +39 -31
- package/src/plugins/i18n/en.ts +26 -13
- package/src/plugins/i18n/zh.ts +35 -16
- package/src/plugins/vxe-table/index.ts +65 -2
- package/src/plugins/vxe-table/render.tsx +945 -817
- package/src/router/index.ts +186 -183
- package/src/router/modules/remaining.ts +1 -26
- package/src/router/utils.ts +393 -377
- package/src/store/modules/app.ts +1 -3
- package/src/store/modules/multiTags.ts +110 -109
- package/src/store/modules/permission.ts +113 -103
- package/src/store/modules/system.ts +1 -3
- package/src/style/button.scss +10 -3
- package/src/style/login.css +1 -1
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +348 -256
- package/src/utils/authority/index.ts +1 -1
- package/src/utils/index.ts +3 -1
- package/src/utils/propTypes.ts +1 -6
- package/src/views/login/login-view.vue +6 -20
- package/src/views/organization/company/CompanyPanel.vue +2 -2
- package/src/views/organization/department/DepartmentPanel.vue +269 -283
- package/src/views/organization/inv-org/InvOrganization.vue +23 -9
- 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 +8 -18
- 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 +11 -9
- package/src/views/system/role-assign/RoleAssign.vue +2 -2
- package/src/views/system/role-assign/RolePanel.vue +12 -9
- package/src/views/system/sys/sys-config.vue +66 -21
- package/src/views/system/sysUser/SysUserPanel.vue +44 -43
- package/src/views/uapp/pda/pda-app.vue +48 -16
- package/src/views/udev/coderule/code-rule.vue +120 -121
- package/src/views/udev/dict/DictView.vue +16 -4
- package/src/views/udev/dict/childView.vue +8 -8
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- package/src/views/uhome/components/menu-favorite.vue +314 -331
- package/src/views/uhome/su-welcome.vue +3 -3
- package/src/views/ulogin/login.vue +19 -12
- package/src/views/upms/interface/log-in.vue +100 -106
- package/src/views/upms/interface/log-out.vue +2 -8
- package/src/views/upms/user/login-log.vue +54 -60
- package/src/views/urpt/design/DesignPanel.vue +16 -35
- package/src/views/urpt/design/Preview.vue +1 -0
- package/src/views/urpt/design/ReportDesign.vue +17 -23
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/types/global.d.ts +4 -9
- package/vite.config.ts +6 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js +0 -102
- package/dist/DictView-B4a7Hs1X.js +0 -95
- package/dist/InvOrganization-q4T3y8dQ.js +0 -260
- package/dist/Org-BTGTrAVz.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js +0 -126
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js +0 -288
- package/dist/index-DZc3qRTx.js +0 -2650
- package/dist/login-BOxwzwdB.js +0 -252
- package/dist/sys-config-C0-gSBFO.js +0 -277
- package/dist/utogether-Di1byIum.js +0 -182
- package/src/components/udp/form-upload.vue +0 -183
- package/src/components/udp/modal-form.vue +0 -180
- package/src/utils/http/index.ts +0 -297
- package/src/utils/http/types.d.ts +0 -46
- package/src/utils/udp/useRender.ts +0 -420
|
@@ -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 { w as _ } from "./index-BWtOrjW2.js";
|
|
4
|
+
const T = { class: "config" }, x = /* @__PURE__ */ b({
|
|
5
5
|
__name: "StaffInfo",
|
|
6
6
|
props: {
|
|
7
7
|
show: { type: Boolean, default: !0 },
|
|
@@ -10,12 +10,12 @@ 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), w = { userName: "userName", userId: "id" }, R = { disabled: i.dataStatus !== "add" }, g = [
|
|
14
14
|
{
|
|
15
15
|
field: "employeeCode",
|
|
16
16
|
required: !0,
|
|
17
17
|
span: 8,
|
|
18
|
-
itemRender: t.renderInput({ props:
|
|
18
|
+
itemRender: t.renderInput({ props: R })
|
|
19
19
|
},
|
|
20
20
|
{ field: "employeeName", required: !0, span: 8, itemRender: t.renderInput() },
|
|
21
21
|
{ field: "gender", span: 8, itemRender: t.renderDict("SU.GENDER") },
|
|
@@ -35,18 +35,18 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
|
|
|
35
35
|
field: "attribute5",
|
|
36
36
|
title: "message.releateUser",
|
|
37
37
|
span: 8,
|
|
38
|
-
itemRender: t.renderSysUser({ mapField:
|
|
38
|
+
itemRender: t.renderSysUser({ mapField: w })
|
|
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-DV16a2Nz.js";
|
|
5
|
+
import { w as P } from "./index-BWtOrjW2.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-BfT40pDr.js";
|
|
3
|
+
import { _ as a } from "./index-BWtOrjW2.js";
|
|
4
4
|
const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
|
|
5
5
|
__name: "SysUser",
|
|
6
6
|
setup(m) {
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { defineComponent as z, reactive as G, ref as h, inject as H, createVNode as s, Fragment as x, resolveComponent as l, onMounted as Q, createElementBlock as $, openBlock as v, 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 S } from "./await-to-js.es5-BtRbN2QH.js";
|
|
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 { w as le } from "./index-BWtOrjW2.js";
|
|
8
|
+
const re = {
|
|
9
|
+
class: "page"
|
|
10
|
+
}, u = "/uums/user", fe = /* @__PURE__ */ z({
|
|
11
|
+
__name: "SysUserPanel",
|
|
12
|
+
setup(oe) {
|
|
13
|
+
const t = 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 = le(), {
|
|
24
|
+
t: r
|
|
25
|
+
} = W(), L = {
|
|
26
|
+
userName: [{
|
|
27
|
+
required: !0,
|
|
28
|
+
message: `${r("message.required")}${r("message.userCode")}`
|
|
29
|
+
}],
|
|
30
|
+
name: [{
|
|
31
|
+
required: !0,
|
|
32
|
+
message: `${r("message.required")}${r("message.userName")}`
|
|
33
|
+
}],
|
|
34
|
+
unitId: [{
|
|
35
|
+
required: !0,
|
|
36
|
+
message: `${r("message.required")}${r("message.unitName")}`
|
|
37
|
+
}],
|
|
38
|
+
userPwd: [{
|
|
39
|
+
required: !0,
|
|
40
|
+
message: `${r("message.required")}${r("message.userPwd")}`
|
|
41
|
+
}]
|
|
42
|
+
}, c = X(), w = h({}), P = H("treeList"), m = h(!1), _ = h(null), q = [{
|
|
43
|
+
field: "name",
|
|
44
|
+
title: "message.udp.userName"
|
|
45
|
+
}, {
|
|
46
|
+
field: "userName",
|
|
47
|
+
title: "message.udp.userCode"
|
|
48
|
+
}, {
|
|
49
|
+
field: "type",
|
|
50
|
+
title: "message.udp.userType",
|
|
51
|
+
code: "SU.USER.TYPE"
|
|
52
|
+
}], y = [{
|
|
53
|
+
type: "checkbox",
|
|
54
|
+
width: 40,
|
|
55
|
+
align: "center"
|
|
56
|
+
}, {
|
|
57
|
+
field: "userName",
|
|
58
|
+
title: "message.udp.userCode",
|
|
59
|
+
required: !0,
|
|
60
|
+
editRender: c.renderInput()
|
|
61
|
+
}, {
|
|
62
|
+
field: "name",
|
|
63
|
+
title: "message.udp.userName",
|
|
64
|
+
required: !0,
|
|
65
|
+
editRender: c.renderInput()
|
|
66
|
+
}, {
|
|
67
|
+
field: "type",
|
|
68
|
+
title: "message.udp.userType",
|
|
69
|
+
formatter: ["formatDict", "SU.USER.TYPE"],
|
|
70
|
+
editRender: c.renderDict("SU.USER.TYPE")
|
|
71
|
+
}, {
|
|
72
|
+
field: "userPwd",
|
|
73
|
+
required: !0,
|
|
74
|
+
width: 150,
|
|
75
|
+
editRender: c.renderInput(),
|
|
76
|
+
formatter: () => "*******"
|
|
77
|
+
}, {
|
|
78
|
+
field: "enabled",
|
|
79
|
+
width: 80,
|
|
80
|
+
cellRender: c.renderEnabled(C)
|
|
81
|
+
}, {
|
|
82
|
+
field: "operate",
|
|
83
|
+
width: 240,
|
|
84
|
+
fixed: "right",
|
|
85
|
+
slots: {
|
|
86
|
+
default: ({
|
|
87
|
+
row: e
|
|
88
|
+
}) => e.id ? [s(x, null, [s(l("ut-button"), {
|
|
89
|
+
icon: "ri-user-fill",
|
|
90
|
+
content: "role",
|
|
91
|
+
onTap: () => I(e)
|
|
92
|
+
}, null), s(l("ut-button"), {
|
|
93
|
+
icon: "ri-lock-fill",
|
|
94
|
+
content: "auth",
|
|
95
|
+
status: "success",
|
|
96
|
+
onTap: () => A(e)
|
|
97
|
+
}, null), s(l("ut-button"), {
|
|
98
|
+
icon: "ri-lock-fill",
|
|
99
|
+
content: "passwordReset",
|
|
100
|
+
status: "warning",
|
|
101
|
+
onTap: () => E(e)
|
|
102
|
+
}, null)])] : null
|
|
103
|
+
}
|
|
104
|
+
}];
|
|
105
|
+
async function C({
|
|
106
|
+
row: e
|
|
107
|
+
}) {
|
|
108
|
+
await S(d.put(u, [e])), _.value.refreshData();
|
|
109
|
+
}
|
|
110
|
+
const I = async (e) => {
|
|
111
|
+
var o;
|
|
112
|
+
t.roleList = [], t.showUserRole = !0, m.value = !0;
|
|
113
|
+
const a = await d.get(u + "/getUserRole", {
|
|
114
|
+
userName: e.userName
|
|
115
|
+
});
|
|
116
|
+
m.value = !1, t.roleList = (o = a[0]) == null ? void 0 : o.sysRoles;
|
|
117
|
+
}, E = async (e) => {
|
|
118
|
+
await d.put(u + "/resetPwd", e), await se.modal.alert(r("message.tip.initPassword"));
|
|
119
|
+
}, A = async (e) => {
|
|
120
|
+
var g;
|
|
121
|
+
t.roleList = [], t.showAuth = !0, m.value = !0, t.record = e;
|
|
122
|
+
const [a, o] = await S(d.get(u + "/getUserRole", {
|
|
123
|
+
userName: e.userName
|
|
124
|
+
}));
|
|
125
|
+
m.value = !1, a || (ae(o) ? Z(r("message.tip.emptyAuth")) : t.roleList = (g = o[0]) == null ? void 0 : g.sysMenuExts);
|
|
126
|
+
}, T = {
|
|
127
|
+
editActived({
|
|
128
|
+
row: e
|
|
129
|
+
}) {
|
|
130
|
+
y[1].editRender.props.disabled = !!e.id, y[4].editRender.props.disabled = !!e.id;
|
|
131
|
+
}
|
|
132
|
+
}, N = h(null), M = () => {
|
|
133
|
+
N.value.validate(async (e) => {
|
|
134
|
+
if (!e) {
|
|
135
|
+
const {
|
|
136
|
+
record: a,
|
|
137
|
+
dataStatus: o
|
|
138
|
+
} = t;
|
|
139
|
+
o === "add" ? await d.post(u, a) : await d.put(u, a), U();
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}, U = () => {
|
|
143
|
+
t.showModelView = !1;
|
|
144
|
+
}, D = () => {
|
|
145
|
+
d.get("/uums/unit", {
|
|
146
|
+
pageSize: 10
|
|
147
|
+
}).then(async (e) => {
|
|
148
|
+
w.value = {
|
|
149
|
+
unitId: e[0].id,
|
|
150
|
+
enabled: "1"
|
|
151
|
+
}, await ee(100), _.value.refreshData();
|
|
152
|
+
}).catch(() => {
|
|
153
|
+
te("获取租户失败,刷新后重试");
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
return Q(() => {
|
|
157
|
+
D();
|
|
158
|
+
}), (e, a) => {
|
|
159
|
+
const o = l("ut-grid"), g = l("vxe-option"), B = l("vxe-select"), p = l("vxe-form-item"), V = l("ut-button"), F = l("vxe-form"), R = l("vxe-modal"), b = l("vxe-column"), Y = l("vxe-table"), j = l("el-tree-v2");
|
|
160
|
+
return v(), $("div", re, [s(o, {
|
|
161
|
+
ref_key: "xgrid",
|
|
162
|
+
ref: _,
|
|
163
|
+
columns: y,
|
|
164
|
+
items: q,
|
|
165
|
+
url: u,
|
|
166
|
+
"auto-load": !1,
|
|
167
|
+
"default-params": w.value,
|
|
168
|
+
"default-value": w.value,
|
|
169
|
+
events: T
|
|
170
|
+
}, null, 8, ["default-params", "default-value"]), s(R, {
|
|
171
|
+
modelValue: t.showModelView,
|
|
172
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => t.showModelView = n),
|
|
173
|
+
title: "用户信息",
|
|
174
|
+
width: "300"
|
|
175
|
+
}, {
|
|
176
|
+
default: i(() => [s(F, {
|
|
177
|
+
ref_key: "xForm",
|
|
178
|
+
ref: N,
|
|
179
|
+
data: t.record,
|
|
180
|
+
rules: L,
|
|
181
|
+
"title-align": "right"
|
|
182
|
+
}, {
|
|
183
|
+
default: i(() => [s(p, {
|
|
184
|
+
title: e.$t("message.unitName"),
|
|
185
|
+
field: "unitId",
|
|
186
|
+
span: "24"
|
|
187
|
+
}, {
|
|
188
|
+
default: i(({
|
|
189
|
+
data: n
|
|
190
|
+
}) => [s(B, {
|
|
191
|
+
modelValue: n.unitId,
|
|
192
|
+
"onUpdate:modelValue": (f) => n.unitId = f
|
|
193
|
+
}, {
|
|
194
|
+
default: i(() => [(v(!0), $(x, null, K(O(P), (f) => (v(), k(g, {
|
|
195
|
+
key: f.id,
|
|
196
|
+
value: f.id,
|
|
197
|
+
label: f.unitName
|
|
198
|
+
}, null, 8, ["value", "label"]))), 128))]),
|
|
199
|
+
_: 2
|
|
200
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])]),
|
|
201
|
+
_: 1
|
|
202
|
+
}, 8, ["title"]), s(p, {
|
|
203
|
+
title: e.$t("message.userCode"),
|
|
204
|
+
"item-render": {
|
|
205
|
+
name: "input",
|
|
206
|
+
attrs: {
|
|
207
|
+
disabled: t.dataStatus === "update"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
field: "userName",
|
|
211
|
+
span: "24"
|
|
212
|
+
}, null, 8, ["title", "item-render"]), s(p, {
|
|
213
|
+
title: e.$t("message.userName"),
|
|
214
|
+
field: "name",
|
|
215
|
+
span: "24",
|
|
216
|
+
"item-render": {
|
|
217
|
+
name: "input"
|
|
218
|
+
}
|
|
219
|
+
}, null, 8, ["title"]), t.dataStatus === "add" ? (v(), k(p, {
|
|
220
|
+
key: 0,
|
|
221
|
+
title: e.$t("message.userPwd"),
|
|
222
|
+
"item-render": {
|
|
223
|
+
name: "input"
|
|
224
|
+
},
|
|
225
|
+
field: "userPwd",
|
|
226
|
+
span: "24"
|
|
227
|
+
}, null, 8, ["title"])) : J("", !0), s(p, {
|
|
228
|
+
align: "right",
|
|
229
|
+
span: "24"
|
|
230
|
+
}, {
|
|
231
|
+
default: i(() => [s(V, {
|
|
232
|
+
content: "cancel",
|
|
233
|
+
icon: "ri-close-fill",
|
|
234
|
+
onClick: U
|
|
235
|
+
}), s(V, {
|
|
236
|
+
content: "confirm",
|
|
237
|
+
icon: "ri-save-3-fill",
|
|
238
|
+
status: "u-cyan",
|
|
239
|
+
onClick: M
|
|
240
|
+
})]),
|
|
241
|
+
_: 1
|
|
242
|
+
})]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["data"])]),
|
|
245
|
+
_: 1
|
|
246
|
+
}, 8, ["modelValue"]), s(R, {
|
|
247
|
+
modelValue: t.showUserRole,
|
|
248
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => t.showUserRole = n),
|
|
249
|
+
loading: m.value,
|
|
250
|
+
title: e.$t("message.title.roleInfo"),
|
|
251
|
+
width: "600"
|
|
252
|
+
}, {
|
|
253
|
+
default: i(() => [s(Y, {
|
|
254
|
+
height: "300",
|
|
255
|
+
data: t.roleList,
|
|
256
|
+
border: ""
|
|
257
|
+
}, {
|
|
258
|
+
default: i(() => [s(b, {
|
|
259
|
+
type: "seq",
|
|
260
|
+
width: "60"
|
|
261
|
+
}), s(b, {
|
|
262
|
+
field: "roleName",
|
|
263
|
+
title: e.$t("message.udp.roleName")
|
|
264
|
+
}, null, 8, ["title"]), s(b, {
|
|
265
|
+
field: "roleDesc",
|
|
266
|
+
title: e.$t("message.udp.roleDesc")
|
|
267
|
+
}, null, 8, ["title"])]),
|
|
268
|
+
_: 1
|
|
269
|
+
}, 8, ["data"])]),
|
|
270
|
+
_: 1
|
|
271
|
+
}, 8, ["modelValue", "loading", "title"]), s(R, {
|
|
272
|
+
modelValue: t.showAuth,
|
|
273
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => t.showAuth = n),
|
|
274
|
+
loading: m.value,
|
|
275
|
+
title: e.$t("message.title.authority", {
|
|
276
|
+
role: t.record.name || "88888"
|
|
277
|
+
}),
|
|
278
|
+
height: "620",
|
|
279
|
+
width: "560"
|
|
280
|
+
}, {
|
|
281
|
+
default: i(() => [s(j, {
|
|
282
|
+
ref: "xTree",
|
|
283
|
+
data: t.roleList,
|
|
284
|
+
props: {
|
|
285
|
+
children: "children",
|
|
286
|
+
label: "menuName"
|
|
287
|
+
},
|
|
288
|
+
height: 560,
|
|
289
|
+
"node-key": "id"
|
|
290
|
+
}, null, 8, ["data"])]),
|
|
291
|
+
_: 1
|
|
292
|
+
}, 8, ["modelValue", "loading", "title"])]);
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
export {
|
|
297
|
+
fe as _
|
|
298
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
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-DTBPgTe_.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 {
|
|
9
|
+
import { w as B } from "./index-BWtOrjW2.js";
|
|
10
10
|
const P = {
|
|
11
11
|
class: "page-content"
|
|
12
12
|
}, z = {
|
|
13
13
|
name: "SystemMenu"
|
|
14
|
-
},
|
|
14
|
+
}, q = /* @__PURE__ */ S({
|
|
15
15
|
...z,
|
|
16
16
|
setup(F) {
|
|
17
17
|
const t = k({
|
|
@@ -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,62 +66,62 @@ 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
|
-
onTap: () =>
|
|
74
|
-
}, null), x =
|
|
73
|
+
onTap: () => u(e)
|
|
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",
|
|
83
|
-
onTap: () =>
|
|
83
|
+
onTap: () => g(e)
|
|
84
84
|
}, null), ["0", "5"].includes(e.menuCategory) ? a : x])])];
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
}],
|
|
87
|
+
}], w = ({
|
|
88
88
|
code: e
|
|
89
89
|
}) => {
|
|
90
|
-
e === "add" &&
|
|
90
|
+
e === "add" && u(), e === "del" && T();
|
|
91
91
|
}, y = 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
|
-
},
|
|
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 || [],
|
|
102
|
-
},
|
|
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 || [], l = e;
|
|
102
|
+
}, g = (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
|
-
},
|
|
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,
|
|
@@ -131,23 +131,23 @@ const P = {
|
|
|
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: w
|
|
138
|
+
}, null, 8, ["tree-config"]), o(I, {
|
|
139
139
|
show: t.showDrawer,
|
|
140
140
|
record: t.record,
|
|
141
141
|
"data-status": t.dataStatus,
|
|
142
|
-
onClose:
|
|
143
|
-
}, null, 8, ["show", "record", "data-status"]),
|
|
142
|
+
onClose: c
|
|
143
|
+
}, null, 8, ["show", "record", "data-status"]), o(N, {
|
|
144
144
|
show: t.showAuthority,
|
|
145
145
|
record: t.record,
|
|
146
|
-
onClose:
|
|
146
|
+
onClose: c
|
|
147
147
|
}, null, 8, ["show", "record"])]);
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
151
|
export {
|
|
152
|
-
|
|
152
|
+
q as default
|
|
153
153
|
};
|