@utogether/udp-core 1.0.1 → 1.0.2
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 +13 -2
- package/dist/{403-JWjatlxJ.js → 403-B1rIjAAu.js} +7 -6
- package/dist/{404-BcdMJfPb.js → 404-mBqc2y4t.js} +14 -13
- package/dist/{500-bsa3F_cc.js → 500-BoI45Zdh.js} +10 -9
- package/dist/{AuthorityInfo-CqItgNs5.js → AuthorityInfo-B08NBIIn.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js +100 -0
- package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
- package/dist/{Company-DVff9IA7.js → Company-JGGyWEWH.js} +3 -3
- package/dist/{CompanyPanel-CNrdq4XE.js → CompanyPanel-BQ_cCmDx.js} +16 -16
- package/dist/{Department-CqcpfL4i.js → Department-z2iO6hwM.js} +10 -10
- package/dist/{DepartmentPanel-Bvti4LGu.js → DepartmentPanel-BtQe7zwU.js} +108 -78
- package/dist/{DesignPanel-CjykspE1.js → DesignPanel-7mhtVWas.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BK9EERdd.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +24 -26
- package/dist/DictView-CjchV2Yk.js +109 -0
- package/dist/InvOrganization-Pn1O_XP0.js +74 -0
- package/dist/Org-BqytV_vi.js +39 -0
- package/dist/{Preview-Cm_7RhYU.js → Preview-CLpUUMay.js} +2 -2
- package/dist/{ReportDefine-CJVlQ--7.js → ReportDefine-Cz1KtEUF.js} +1 -1
- package/dist/{ReportDesign-B0unlrkt.js → ReportDesign-BaORYud4.js} +46 -46
- package/dist/{ReportQuery-BKuMCEvF.js → ReportQuery-CPCPXiXz.js} +5 -5
- package/dist/{ReportQueryFrom-DAngMJLU.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CPpwmztJ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +6 -5
- package/dist/{ReportTemplate-8YH3L8Pv.js → ReportTemplate-CFiNMz79.js} +26 -26
- package/dist/{Role-MxI30-0W.js → Role-B-XDoJd5.js} +6 -6
- package/dist/{RoleAssign-BzUY_y_y.js → RoleAssign-BolW8YVs.js} +9 -9
- package/dist/{RolePanel-DS_TErTn.js → RolePanel-2kfs5tw9.js} +1 -1
- package/dist/{RolePanel-CXdcvsR5.js → RolePanel-HilSuYns.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Ddl-A7Zh.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +42 -36
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DnchUgIF.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +20 -20
- package/dist/{Staff-D7tXo_Gn.js → Staff-BTk3whFC.js} +3 -3
- package/dist/{StaffInfo-Bk8BY8PO.js → StaffInfo-d3AuSzlA.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DqKwZi5f.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +13 -13
- package/dist/{StaffPanel-VtpGCTIq.js → StaffPanel-DV-D4jjz.js} +1 -1
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
- package/dist/{SysUser-D0Q6OvD7.js → SysUser-BnjYytws.js} +2 -2
- package/dist/{SysUserPanel-1_vrsANQ.js → SysUserPanel-CBoyD-Qi.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
- package/dist/{SystemMenu-9PG3vESE.js → SystemMenu-kYB_ZaUt.js} +49 -47
- package/dist/{UserInfo-qgXUEGwi.js → UserInfo-4dx97VBL.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CN0C5rVk.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +35 -33
- package/dist/{childView-C7ZSA5fR.js → childView-CHPNfTEb.js} +1 -1
- package/dist/{childView-yV2QLwfA.js → childView-CKA_JgVZ.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DdKxPGdh.js → childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js} +7 -7
- package/dist/childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js +177 -0
- package/dist/{code-rule-95K1jr-u.js → code-rule-CbxuZg0-.js} +42 -41
- package/dist/core.es.js +19 -10
- package/dist/{cron-task-DGrQwOHs.js → cron-task-nTOpqQYf.js} +5 -5
- package/dist/flow-task-B07st2aD.js +10 -0
- package/dist/{frameView-7SmME93D.js → frameView-Z1tPUyCh.js} +15 -14
- 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-C3q8HoJM.js +4650 -0
- package/dist/{layoutView-C6WIVWGZ.js → layoutView--MGA9zUB.js} +1776 -1764
- package/dist/{log-in-e7D5Ss1P.js → log-in-CSYJDA6m.js} +36 -29
- package/dist/log-out-DiwGCg7p.js +130 -0
- package/dist/login-C6Y0ajDp.js +251 -0
- package/dist/{login-log-CvVnyGi3.js → login-log-C0V-_l3F.js} +6 -4
- package/dist/{lov-view-DoF5LqFQ.js → lov-view-Cmv7wZZ9.js} +9 -9
- package/dist/{menuInfo-CNzGQwOD.js → menuInfo-UeutJpOa.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-51SYxVc_.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +144 -121
- package/dist/pda-app-B6w99SJo.js +710 -0
- package/dist/redirect-BqegffKC.js +15 -0
- package/dist/{resource-gVFFMO9l.js → resource-BybJvUv0.js} +17 -17
- package/dist/{su-welcome-BN_s_RX_.js → su-welcome-C1bmxHoY.js} +124 -126
- package/dist/sys-config-BnmIDnCj.js +370 -0
- package/dist/udp-core.css +1 -9
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +19 -6
- package/package.json +18 -17
- 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 +4 -9
- package/src/components/udp/content/index.vue +88 -0
- package/src/components/udp/form/form.vue +109 -0
- package/src/components/udp/grid/index.vue +524 -0
- package/src/components/udp/index.ts +5 -4
- package/src/components/udp/ut-stamp-badge/index.vue +271 -0
- package/src/components/udp/utils.ts +408 -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-setting/index.vue +503 -510
- package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
- package/src/layout/components/lay-sidebar/horizontal.vue +8 -6
- package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -98
- package/src/layout/components/lay-tag/index.vue +598 -625
- package/src/layout/hooks/useDataThemeChange.ts +1 -1
- package/src/layout/hooks/useNav.ts +176 -173
- package/src/layout/hooks/useTag.ts +227 -233
- package/src/layout/layoutView.vue +215 -215
- package/src/layout/types.ts +93 -92
- package/src/main.ts +115 -109
- package/src/plugins/i18n/en.ts +26 -13
- package/src/plugins/i18n/module/u-workflow.ts +1 -1
- package/src/plugins/i18n/zh.ts +363 -337
- package/src/plugins/vxe-table/index.ts +74 -4
- package/src/plugins/vxe-table/render.tsx +186 -58
- package/src/router/index.ts +187 -183
- package/src/router/modules/flow.ts +35 -0
- package/src/router/modules/home.ts +32 -32
- package/src/router/modules/remaining.ts +1 -26
- package/src/router/utils.ts +420 -377
- package/src/store/modules/app.ts +2 -4
- package/src/store/modules/epTheme.ts +48 -49
- package/src/store/modules/multiTags.ts +15 -14
- package/src/store/modules/permission.ts +25 -15
- package/src/store/modules/system.ts +1 -3
- package/src/style/button.scss +11 -4
- package/src/style/login.css +1 -1
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +103 -11
- package/src/utils/authority/index.ts +1 -1
- package/src/utils/dataFormat/index.ts +223 -223
- package/src/utils/index.ts +3 -1
- package/src/utils/lifecycle.ts +39 -20
- package/src/utils/propTypes.ts +1 -6
- package/src/utils/storage/index.ts +2 -2
- package/src/utils/{http → udp/http}/index.ts +27 -30
- package/src/utils/{http → udp/http}/types.d.ts +2 -6
- package/src/views/login/login-view.vue +6 -20
- package/src/views/organization/company/CompanyPanel.vue +2 -2
- package/src/views/organization/department/Department.vue +58 -58
- package/src/views/organization/department/DepartmentPanel.vue +303 -283
- package/src/views/organization/inv-org/InvOrganization.vue +23 -9
- package/src/views/organization/org/Org.vue +9 -5
- package/src/views/organization/staff/StaffInfo.vue +127 -133
- package/src/views/organization/staff/StaffPanel.vue +162 -145
- package/src/views/system/cron/cron-task.vue +2 -12
- package/src/views/system/menu/AuthorityPanel.vue +2 -2
- package/src/views/system/menu/SystemMenu.vue +14 -20
- package/src/views/system/menu/menuInfo.vue +39 -23
- 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 +70 -21
- package/src/views/system/sysUser/SysUserPanel.vue +347 -278
- package/src/views/uapp/pda/pda-app.vue +48 -16
- package/src/views/udev/coderule/code-rule.vue +132 -121
- package/src/views/udev/dict/DictView.vue +118 -106
- package/src/views/udev/dict/childView.vue +183 -222
- package/src/views/udev/lov/childView.vue +1 -7
- 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 +319 -339
- package/src/views/ulogin/login.vue +325 -316
- package/src/views/upms/interface/log-in.vue +100 -106
- package/src/views/upms/interface/log-out.vue +104 -107
- 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/src/views/utask/flow-task.vue +18 -0
- package/types/global.d.ts +231 -236
- package/vite.config.ts +13 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-32L40GY2.js +0 -102
- package/dist/DictView-q7kR9K--.js +0 -95
- package/dist/InvOrganization-DI45LqZV.js +0 -260
- package/dist/Org-CZju_ZiR.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DJKu6PXz.js +0 -126
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C3Ixs12y.js +0 -111
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-C5XEmxsV.js +0 -288
- package/dist/childView.vue_vue_type_style_index_0_lang-bkmucBUL.js +0 -187
- package/dist/core.umd.js +0 -173
- package/dist/index-OswH7SsT.js +0 -9937
- package/dist/log-out--RRncZhN.js +0 -120
- package/dist/login-BhCMeCLS.js +0 -251
- package/dist/pda-app-nn3llDUx.js +0 -2209
- package/dist/redirect-CmMplDV4.js +0 -15
- package/dist/sys-config-DGutV-VX.js +0 -277
- package/dist/utogether-wFDCI28t.js +0 -182
- package/src/assets/images/empty.png +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/components/ReCountTo/README.md +0 -2
- package/src/components/ReCountTo/index.ts +0 -18
- package/src/components/ReCountTo/src/normal/index.tsx +0 -165
- package/src/components/ReCountTo/src/normal/props.ts +0 -37
- package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
- package/src/components/ReCountTo/src/rebound/props.ts +0 -14
- package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
- package/src/components/ReCropper/index.ts +0 -14
- package/src/components/ReCropper/src/index.tsx +0 -141
- package/src/components/ReFlicker/index.css +0 -39
- package/src/components/ReFlicker/index.ts +0 -50
- package/src/components/ReFlop/index.ts +0 -14
- package/src/components/ReFlop/src/Filpper.tsx +0 -99
- package/src/components/ReFlop/src/filpper.css +0 -184
- package/src/components/ReFlop/src/index.vue +0 -126
- package/src/components/ReFlowChart/index.ts +0 -24
- package/src/components/ReFlowChart/src/Control.vue +0 -139
- package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
- package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
- package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/components/ReFlowChart/src/config.ts +0 -62
- package/src/components/ReSplitPane/index.css +0 -49
- package/src/components/ReSplitPane/index.tsx +0 -119
- package/src/components/ReSplitPane/resizer.css +0 -45
- package/src/components/ReSplitPane/resizer.tsx +0 -30
- package/src/components/SuCommon/card/components/Card.vue +0 -148
- package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
- package/src/components/SuCommon/card/index.vue +0 -142
- package/src/components/SuCommon/icon-select/index.vue +0 -241
- package/src/components/SuCommon/table/index.vue +0 -208
- package/src/components/SuCommon/utils/index.ts +0 -103
- package/src/components/SuCommon/utils/slot.tsx +0 -50
- package/src/components/udp/form-upload.vue +0 -132
- package/src/components/udp/modal-form.vue +0 -180
- package/src/utils/udp/useRender.ts +0 -420
- package/src/views/components/contextmenu/basic.vue +0 -74
- package/src/views/components/contextmenu/context-menu.vue +0 -40
- package/src/views/components/contextmenu/menuDynamic.vue +0 -99
- package/src/views/components/contextmenu/menuGroup.vue +0 -71
- package/src/views/components/count-to/index.vue +0 -43
- package/src/views/components/cropping/index.vue +0 -59
- package/src/views/components/cropping/picture.jpeg +0 -0
- package/src/views/components/split-pane/index.vue +0 -82
- package/src/views/components/video/index.vue +0 -57
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { defineComponent as b, reactive as E, ref as g, inject as M, watch as N, nextTick as B, createVNode as h, resolveComponent as i, resolveDirective as L, withDirectives as P, createElementBlock as A, openBlock as w, createBlock as R, createCommentVNode as S, unref as T } from "vue";
|
|
2
|
+
import { useI18n as U } from "vue-i18n";
|
|
3
|
+
import { clone as $ } from "xe-utils";
|
|
4
|
+
import { VxeUI as j } from "vxe-pc-ui";
|
|
5
|
+
import { t as v } from "./await-to-js.es5-BtRbN2QH.js";
|
|
6
|
+
import { successMessage as _ } from "@utogether/utils";
|
|
7
|
+
import { y as C } from "./index-C3q8HoJM.js";
|
|
8
|
+
const q = {
|
|
9
|
+
class: "page-content"
|
|
10
|
+
}, d = "/uums/orgRole", X = /* @__PURE__ */ b({
|
|
11
|
+
__name: "RolePanel",
|
|
12
|
+
setup(z) {
|
|
13
|
+
const e = E({
|
|
14
|
+
record: {},
|
|
15
|
+
loading: !1,
|
|
16
|
+
showModalView: !1
|
|
17
|
+
}), {
|
|
18
|
+
t: c
|
|
19
|
+
} = U(), n = g(null), u = g(null), t = M("active");
|
|
20
|
+
N(() => t.value, () => {
|
|
21
|
+
t != null && t.value.id && (e.fetchExtParam = {
|
|
22
|
+
orgId: t == null ? void 0 : t.value.id
|
|
23
|
+
}, B(() => {
|
|
24
|
+
n.value.refreshData();
|
|
25
|
+
}));
|
|
26
|
+
});
|
|
27
|
+
const k = [{
|
|
28
|
+
code: "del",
|
|
29
|
+
auth: "/"
|
|
30
|
+
}], m = [{
|
|
31
|
+
field: "roleName",
|
|
32
|
+
title: "message.udp.roleName",
|
|
33
|
+
span: 9
|
|
34
|
+
}, {
|
|
35
|
+
field: "roleCode",
|
|
36
|
+
title: "message.udp.roleCode",
|
|
37
|
+
span: 9
|
|
38
|
+
}], f = [{
|
|
39
|
+
type: "checkbox",
|
|
40
|
+
width: 40
|
|
41
|
+
}, {
|
|
42
|
+
field: "roleCode",
|
|
43
|
+
title: "message.udp.roleCode"
|
|
44
|
+
}, {
|
|
45
|
+
field: "roleName",
|
|
46
|
+
title: "message.udp.roleName"
|
|
47
|
+
}, {
|
|
48
|
+
field: "roleDesc",
|
|
49
|
+
title: "message.udp.roleDesc"
|
|
50
|
+
}, {
|
|
51
|
+
field: "enabled",
|
|
52
|
+
width: 100,
|
|
53
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
54
|
+
}], p = $(f, !0);
|
|
55
|
+
p.push({
|
|
56
|
+
field: "operate",
|
|
57
|
+
width: 80,
|
|
58
|
+
fixed: "right",
|
|
59
|
+
slots: {
|
|
60
|
+
default: ({
|
|
61
|
+
row: o
|
|
62
|
+
}) => o.roleCode === "admin" ? null : [h(i("ut-button"), {
|
|
63
|
+
icon: "ri-delete-bin-5-fill",
|
|
64
|
+
content: "del",
|
|
65
|
+
status: "danger",
|
|
66
|
+
auth: "del",
|
|
67
|
+
onTap: () => y(o)
|
|
68
|
+
}, null)]
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const x = () => {
|
|
72
|
+
e.record = {}, e.record.orgId = t.value.id, e.showModalView = !0;
|
|
73
|
+
}, y = async (o) => {
|
|
74
|
+
if (await j.modal.confirm(c("message.tip.del")) === "confirm") {
|
|
75
|
+
const a = {
|
|
76
|
+
orgId: t.value.id,
|
|
77
|
+
roleId: o.id
|
|
78
|
+
};
|
|
79
|
+
e.loading = !0;
|
|
80
|
+
const [s] = await v(C().delete(d, a));
|
|
81
|
+
s || _(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
|
|
82
|
+
}
|
|
83
|
+
}, D = async (o) => {
|
|
84
|
+
const r = [];
|
|
85
|
+
o.forEach((l) => {
|
|
86
|
+
l.orgId = t.value.id, l.roleId = l.id, r.push(l);
|
|
87
|
+
});
|
|
88
|
+
const a = {
|
|
89
|
+
orgRoleList: r
|
|
90
|
+
};
|
|
91
|
+
u.value.showLoading();
|
|
92
|
+
const [s] = await v(C().post(d, a));
|
|
93
|
+
s || (_(), n.value.refreshData(), e.showModalView = !1);
|
|
94
|
+
}, I = (o) => o.roleCode !== "admin", V = (o) => {
|
|
95
|
+
o === "add" && x();
|
|
96
|
+
};
|
|
97
|
+
return (o, r) => {
|
|
98
|
+
const a = i("ut-grid"), s = i("ut-modal-grid"), l = L("spinning");
|
|
99
|
+
return P((w(), A("div", q, [h(a, {
|
|
100
|
+
ref_key: "xgrid",
|
|
101
|
+
ref: n,
|
|
102
|
+
items: m,
|
|
103
|
+
columns: T(p),
|
|
104
|
+
"default-params": e.fetchExtParam,
|
|
105
|
+
"default-value": e.fetchExtParam,
|
|
106
|
+
buttons: k,
|
|
107
|
+
"auto-load": !1,
|
|
108
|
+
url: d,
|
|
109
|
+
"check-method": I,
|
|
110
|
+
mode: "form",
|
|
111
|
+
onButtonClick: V
|
|
112
|
+
}, null, 8, ["columns", "default-params", "default-value"]), e.showModalView ? (w(), R(s, {
|
|
113
|
+
key: 0,
|
|
114
|
+
ref_key: "xmodal",
|
|
115
|
+
ref: u,
|
|
116
|
+
items: m,
|
|
117
|
+
columns: f,
|
|
118
|
+
"show-footer": !0,
|
|
119
|
+
editable: !1,
|
|
120
|
+
title: o.$t("message.udp.roleList"),
|
|
121
|
+
url: "/uums/role",
|
|
122
|
+
width: "60%",
|
|
123
|
+
height: "75%",
|
|
124
|
+
onClose: r[0] || (r[0] = (F) => e.showModalView = !1),
|
|
125
|
+
onConfirm: D
|
|
126
|
+
}, null, 8, ["title"])) : S("", !0)])), [[l, e.loading]]);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
export {
|
|
131
|
+
X as _
|
|
132
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRender as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as S, reactive as I, inject as M, ref as l, watch as B, createVNode as s, Fragment as E, resolveComponent as r, createElementBlock as $, openBlock as d, createBlock as i, createCommentVNode as c } from "vue";
|
|
2
|
+
import { useRender as O } from "@utogether/utils";
|
|
3
|
+
import { _ as P } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js";
|
|
4
|
+
import { _ as R } from "./UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js";
|
|
5
|
+
import { y as T, i as q } from "./index-C3q8HoJM.js";
|
|
6
|
+
const H = {
|
|
7
7
|
class: "page-content"
|
|
8
|
-
},
|
|
8
|
+
}, K = /* @__PURE__ */ S({
|
|
9
9
|
__name: "RolePanel",
|
|
10
|
-
setup(
|
|
11
|
-
const e =
|
|
10
|
+
setup(j) {
|
|
11
|
+
const e = I({
|
|
12
12
|
record: {},
|
|
13
13
|
showAuthView: !1,
|
|
14
14
|
showModalView: !1,
|
|
15
15
|
showUserView: !1,
|
|
16
16
|
dataStatus: ""
|
|
17
|
-
}), o =
|
|
17
|
+
}), o = M("active"), f = O(), a = l(null), n = l(""), p = l({}), u = l("");
|
|
18
18
|
B(() => o.value, () => {
|
|
19
|
-
|
|
19
|
+
C();
|
|
20
20
|
});
|
|
21
|
-
const
|
|
21
|
+
const w = [{
|
|
22
22
|
field: "roleName",
|
|
23
23
|
title: "message.udp.roleName"
|
|
24
24
|
}, {
|
|
@@ -52,7 +52,7 @@ const q = {
|
|
|
52
52
|
}, {
|
|
53
53
|
field: "enabled",
|
|
54
54
|
width: 90,
|
|
55
|
-
cellRender:
|
|
55
|
+
cellRender: f.renderEnabled(A)
|
|
56
56
|
}, {
|
|
57
57
|
field: "operate",
|
|
58
58
|
width: 260,
|
|
@@ -60,16 +60,17 @@ const q = {
|
|
|
60
60
|
slots: {
|
|
61
61
|
default: ({
|
|
62
62
|
row: t
|
|
63
|
-
}) => [s(
|
|
63
|
+
}) => [s(E, null, [s(r("ut-button"), {
|
|
64
64
|
content: "edit",
|
|
65
65
|
auth: "edit",
|
|
66
|
+
disabled: t.roleCode === "admin",
|
|
66
67
|
onTap: () => k(t)
|
|
67
68
|
}, null), s(r("ut-button"), {
|
|
68
69
|
content: "dispatchUser",
|
|
69
70
|
status: "warning",
|
|
70
71
|
icon: "ri-user-3-line",
|
|
71
72
|
auth: "user",
|
|
72
|
-
onTap: () =>
|
|
73
|
+
onTap: () => D(t)
|
|
73
74
|
}, null), s(r("ut-button"), {
|
|
74
75
|
content: "dispatchAuth",
|
|
75
76
|
status: "success",
|
|
@@ -78,56 +79,61 @@ const q = {
|
|
|
78
79
|
onTap: () => y(t)
|
|
79
80
|
}, null)])]
|
|
80
81
|
}
|
|
81
|
-
}],
|
|
82
|
+
}], C = () => {
|
|
82
83
|
var t;
|
|
83
|
-
|
|
84
|
+
p.value = {
|
|
84
85
|
unitId: (t = o == null ? void 0 : o.value) == null ? void 0 : t.id
|
|
85
86
|
}, a.value.refreshData();
|
|
86
|
-
},
|
|
87
|
-
t === "add" &&
|
|
88
|
-
},
|
|
87
|
+
}, V = (t) => {
|
|
88
|
+
t === "add" && v(), t === "del" && b();
|
|
89
|
+
}, v = () => {
|
|
89
90
|
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 =
|
|
91
|
+
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 = q().getOrgId, e.showModalView = !0;
|
|
91
92
|
}, k = (t) => {
|
|
92
93
|
n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
|
|
93
|
-
},
|
|
94
|
+
}, b = () => {
|
|
94
95
|
a.value.getInstance().commitProxy("delete");
|
|
95
96
|
}, y = (t) => {
|
|
96
97
|
e.record = t, e.showAuthView = !0;
|
|
97
|
-
},
|
|
98
|
+
}, D = (t) => {
|
|
98
99
|
e.record = t, e.showUserView = !0;
|
|
99
100
|
};
|
|
100
|
-
async function
|
|
101
|
+
async function A({
|
|
101
102
|
row: t
|
|
102
103
|
}) {
|
|
103
|
-
|
|
104
|
+
if (t.roleCode === "admin") {
|
|
105
|
+
t.enabled = "1";
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
await T().put("/uums/role/singleUpdate", t), a.value.refreshData();
|
|
104
109
|
}
|
|
105
110
|
const m = () => {
|
|
106
111
|
e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
|
|
107
|
-
};
|
|
112
|
+
}, U = (t) => t.roleCode !== "admin";
|
|
108
113
|
return (t, h) => {
|
|
109
|
-
const
|
|
110
|
-
return d(),
|
|
114
|
+
const x = r("ut-grid"), N = r("ut-modal-form");
|
|
115
|
+
return d(), $("div", H, [s(x, {
|
|
111
116
|
ref_key: "xgrid",
|
|
112
117
|
ref: a,
|
|
113
|
-
items:
|
|
118
|
+
items: w,
|
|
114
119
|
columns: _,
|
|
120
|
+
"check-method": U,
|
|
115
121
|
url: "/uums/role",
|
|
116
122
|
mode: "form",
|
|
117
|
-
onButtonClick:
|
|
118
|
-
}, null, 512), e.showAuthView ? (d(), i(
|
|
123
|
+
onButtonClick: V
|
|
124
|
+
}, null, 512), e.showAuthView ? (d(), i(P, {
|
|
119
125
|
key: 0,
|
|
120
126
|
show: e.showAuthView,
|
|
121
127
|
record: e.record,
|
|
122
128
|
"data-status": e.dataStatus,
|
|
123
129
|
onOnClose: m
|
|
124
|
-
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(
|
|
130
|
+
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(R, {
|
|
125
131
|
key: 1,
|
|
126
132
|
show: e.showUserView,
|
|
127
133
|
record: e.record,
|
|
128
134
|
"data-status": e.dataStatus,
|
|
129
135
|
onOnClose: m
|
|
130
|
-
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(
|
|
136
|
+
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(N, {
|
|
131
137
|
key: 2,
|
|
132
138
|
ref: "xmodal",
|
|
133
139
|
record: e.record,
|
|
@@ -135,14 +141,14 @@ const q = {
|
|
|
135
141
|
url: u.value,
|
|
136
142
|
method: n.value,
|
|
137
143
|
width: "400",
|
|
138
|
-
height: "
|
|
144
|
+
height: "240",
|
|
139
145
|
"data-status": "update",
|
|
140
146
|
title: t.$t("message.title.authEdit"),
|
|
141
|
-
onClose: h[0] || (h[0] = (
|
|
147
|
+
onClose: h[0] || (h[0] = (F) => e.showModalView = !1)
|
|
142
148
|
}, null, 8, ["record", "url", "method", "title"])) : c("", !0)]);
|
|
143
149
|
};
|
|
144
150
|
}
|
|
145
151
|
});
|
|
146
152
|
export {
|
|
147
|
-
|
|
153
|
+
K as _
|
|
148
154
|
};
|
|
@@ -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 {
|
|
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 { y as j } from "./index-C3q8HoJM.js";
|
|
3
3
|
const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
|
|
4
4
|
__name: "ScrollPanel",
|
|
5
5
|
props: {
|
|
@@ -10,10 +10,10 @@ const M = { class: "u-panel-header" }, $ = { 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 M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
|
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
const u = async (l = {}) => {
|
|
24
|
-
const t = Object.assign(l, h.
|
|
24
|
+
const t = Object.assign(l, h.defaultParams), e = await j().get(h.url, t);
|
|
25
25
|
s.value = e.list || e, w.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
|
+
}, 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", M, [
|
|
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 M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
|
|
|
67
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,
|
|
@@ -75,7 +75,7 @@ const M = { class: "u-panel-header" }, $ = { 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-CCTH4RkH.js";
|
|
3
|
+
import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js";
|
|
4
|
+
import { _ as p } from "./index-C3q8HoJM.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 F } from "@utogether/utils";
|
|
3
|
-
import {
|
|
3
|
+
import { y as _ } from "./index-C3q8HoJM.js";
|
|
4
4
|
const T = { class: "config" }, x = /* @__PURE__ */ b({
|
|
5
5
|
__name: "StaffInfo",
|
|
6
6
|
props: {
|
|
@@ -10,12 +10,12 @@ const T = { class: "config" }, x = /* @__PURE__ */ b({
|
|
|
10
10
|
},
|
|
11
11
|
emits: ["onClose"],
|
|
12
12
|
setup(v, { emit: y }) {
|
|
13
|
-
const i = v, t = F(),
|
|
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,
|
|
17
17
|
span: 8,
|
|
18
|
-
itemRender: t.renderInput({ props:
|
|
18
|
+
itemRender: t.renderInput({ props: w })
|
|
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 T = { 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: R })
|
|
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 T = { 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", T, [
|
|
61
61
|
n(h, {
|
|
62
62
|
"model-value": e.show,
|
|
@@ -70,7 +70,7 @@ const T = { 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
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent as E, ref as k, inject as C, reactive as N, watch as S, nextTick as B, resolveComponent as r, createElementBlock as D, openBlock as d, createVNode as s, createBlock as M, createCommentVNode as I, Fragment as L } from "vue";
|
|
2
|
+
import { useI18n as A } from "vue-i18n";
|
|
3
|
+
import { clone as P } from "xe-utils";
|
|
4
|
+
import { warnMessage as U } from "@utogether/utils";
|
|
5
|
+
import { _ as V } from "./StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js";
|
|
6
|
+
import { y as i } from "./index-C3q8HoJM.js";
|
|
7
|
+
import { VxeUI as T } from "vxe-pc-ui";
|
|
8
|
+
const Y = {
|
|
9
|
+
class: "page-content"
|
|
10
|
+
}, l = "/uums/employee", H = /* @__PURE__ */ E({
|
|
11
|
+
__name: "StaffPanel",
|
|
12
|
+
setup(O) {
|
|
13
|
+
const o = k(null), {
|
|
14
|
+
t: u
|
|
15
|
+
} = A(), n = C("active"), t = N({
|
|
16
|
+
record: {},
|
|
17
|
+
showModelView: !1,
|
|
18
|
+
fetchExtParam: {}
|
|
19
|
+
});
|
|
20
|
+
S(() => n.value, (e) => {
|
|
21
|
+
t.fetchExtParam = {
|
|
22
|
+
departmentId: e == null ? void 0 : e.id
|
|
23
|
+
}, B(() => {
|
|
24
|
+
o.value.refreshData();
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
const m = [{
|
|
28
|
+
code: "sync",
|
|
29
|
+
auth: "wechat",
|
|
30
|
+
status: "success",
|
|
31
|
+
icon: "ri-refresh-line"
|
|
32
|
+
}, {
|
|
33
|
+
code: "sync",
|
|
34
|
+
auth: "dingding",
|
|
35
|
+
status: "success",
|
|
36
|
+
icon: "ri-refresh-line"
|
|
37
|
+
}, {
|
|
38
|
+
code: "sync",
|
|
39
|
+
auth: "OA",
|
|
40
|
+
status: "success",
|
|
41
|
+
icon: "ri-refresh-line"
|
|
42
|
+
}, {
|
|
43
|
+
code: "del",
|
|
44
|
+
auth: "/"
|
|
45
|
+
}], f = [{
|
|
46
|
+
field: "employeeCode"
|
|
47
|
+
}, {
|
|
48
|
+
field: "employeeName"
|
|
49
|
+
}], p = [{
|
|
50
|
+
type: "checkbox",
|
|
51
|
+
width: 50,
|
|
52
|
+
align: "center"
|
|
53
|
+
}, {
|
|
54
|
+
field: "employeeCode"
|
|
55
|
+
}, {
|
|
56
|
+
field: "employeeName",
|
|
57
|
+
width: 150
|
|
58
|
+
}, {
|
|
59
|
+
field: "gender",
|
|
60
|
+
width: 100,
|
|
61
|
+
formatter: ["formatDict", "SU.GENDER"]
|
|
62
|
+
}, {
|
|
63
|
+
field: "enabled",
|
|
64
|
+
width: 100,
|
|
65
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
66
|
+
}, {
|
|
67
|
+
field: "operate",
|
|
68
|
+
width: 150,
|
|
69
|
+
fixed: "right",
|
|
70
|
+
slots: {
|
|
71
|
+
default: ({
|
|
72
|
+
row: e
|
|
73
|
+
}) => {
|
|
74
|
+
const a = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", c = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", x = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
|
|
75
|
+
return [s(L, null, [s(r("ut-button"), {
|
|
76
|
+
icon: "ri-edit-box-line",
|
|
77
|
+
content: "edit",
|
|
78
|
+
onTap: () => v(e)
|
|
79
|
+
}, null), s(r("ut-button"), {
|
|
80
|
+
icon: c,
|
|
81
|
+
content: a,
|
|
82
|
+
status: x,
|
|
83
|
+
onTap: () => g(e)
|
|
84
|
+
}, null)])];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}], h = {
|
|
88
|
+
toolbarButtonClick({
|
|
89
|
+
code: e
|
|
90
|
+
}) {
|
|
91
|
+
e === "add" && y();
|
|
92
|
+
}
|
|
93
|
+
}, y = () => {
|
|
94
|
+
var e, a;
|
|
95
|
+
if (!((e = n.value) != null && e.deptName))
|
|
96
|
+
return U("请先选择部门");
|
|
97
|
+
t.dataStatus = "add", t.record = {}, t.record.departmentId = (a = n.value) == null ? void 0 : a.id, t.record.deptName = n.value.deptName, t.record.enabled = "1", t.showModelView = !0;
|
|
98
|
+
}, v = (e) => {
|
|
99
|
+
t.dataStatus = "update", t.record = e, t.showModelView = !0;
|
|
100
|
+
}, g = async (e) => {
|
|
101
|
+
const a = P(e, !0);
|
|
102
|
+
o.value.showLoading(), a.enabled = a.enabled === "1" ? "0" : "1", await i().put(l, a), o.value.hiddenLoading(), o.value.refreshData();
|
|
103
|
+
}, _ = async () => {
|
|
104
|
+
await T.modal.confirm(u("message.tip.confirmSync")) === "confirm" && (o.value.showLoading(), await i().post("/uums/employee/syncEwEmp", {}), o.value.hiddenLoading(), o.value.refreshData());
|
|
105
|
+
}, b = (e) => {
|
|
106
|
+
e === "sync" && _();
|
|
107
|
+
}, w = () => {
|
|
108
|
+
t.showModelView = !1, o.value.refreshData();
|
|
109
|
+
};
|
|
110
|
+
return (e, a) => {
|
|
111
|
+
const c = r("ut-grid");
|
|
112
|
+
return d(), D("div", Y, [s(c, {
|
|
113
|
+
ref_key: "xgrid",
|
|
114
|
+
ref: o,
|
|
115
|
+
items: f,
|
|
116
|
+
columns: p,
|
|
117
|
+
"default-params": t.fetchExtParam,
|
|
118
|
+
events: h,
|
|
119
|
+
"auto-load": !1,
|
|
120
|
+
buttons: m,
|
|
121
|
+
url: l,
|
|
122
|
+
mode: "form",
|
|
123
|
+
onButtonClick: b
|
|
124
|
+
}, null, 8, ["default-params"]), t.showModelView ? (d(), M(V, {
|
|
125
|
+
key: 0,
|
|
126
|
+
record: t.record,
|
|
127
|
+
"data-status": t.dataStatus,
|
|
128
|
+
onOnClose: w
|
|
129
|
+
}, null, 8, ["record", "data-status"])) : I("", !0)]);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
H as _
|
|
135
|
+
};
|
|
@@ -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-PrTlTZR-.js";
|
|
3
|
+
import { _ as a } from "./index-C3q8HoJM.js";
|
|
4
4
|
const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
|
|
5
5
|
__name: "SysUser",
|
|
6
6
|
setup(m) {
|