@utogether/udp-core 2.0.0-beta.1 → 2.0.0-beta.3
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/dist/{403-CTJDBjz7.js → 403-CxOqlq0f.js} +3 -3
- package/dist/403-WCboRvzZ-ZAPgYStl.js +65 -0
- package/dist/404-2V0Qi-d7-DkNwQggp.js +65 -0
- package/dist/{404-BFYkWIkQ.js → 404-xdB6lFeQ.js} +1 -1
- package/dist/500-BYfzvixf-CGpEieyQ.js +67 -0
- package/dist/{500-DGG3qadg.js → 500-C94bRK2S.js} +2 -2
- package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5.js +4 -0
- package/dist/{AuthorityInfo-ozZIo1Te.js → AuthorityInfo-Dy3b_nFN.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY.js} +2 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz.js +100 -0
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +114 -0
- package/dist/Company-B4vsXy2I-CkNCOqjJ.js +25 -0
- package/dist/{Company-6VJtwh23.js → Company-gKkfnhLt.js} +3 -3
- package/dist/{CompanyPanel-B2P488mq.js → CompanyPanel-BF5Pc35s.js} +7 -7
- package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_.js +206 -0
- package/dist/DataSet-DT-rGICv-DaUfgbxk.js +147 -0
- package/dist/{Department-BnwoLEOC.js → Department-D0I3QVZe.js} +3 -3
- package/dist/Department-D0dVUrGC-C6HJcYI1.js +25 -0
- package/dist/{DepartmentPanel-CRrrmxtv.js → DepartmentPanel-2LHODgc7.js} +22 -22
- package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd.js +254 -0
- package/dist/{DesignPanel-CvbccgX2.js → DesignPanel-CtF3cAAQ.js} +1 -1
- package/dist/DesignPanel-DdFl_ohi-uCwFxcl1.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY.js +1013 -0
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js → DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt.js} +3 -3
- package/dist/DictView-BzQLOf_P-DDicwdmM.js +111 -0
- package/dist/{DictView-Ce1LoVHh.js → DictView-H3V5hxg3.js} +1 -1
- package/dist/{InvOrganization-BwCFZO1X.js → InvOrganization-BiGLnbqe.js} +2 -2
- package/dist/InvOrganization-atbhw0CI-BABbVt9V.js +74 -0
- package/dist/Org-BW1YHG-Q-Cow7JWlD.js +39 -0
- package/dist/{Org-0hzs6b0R.js → Org-DQTCQHNY.js} +2 -2
- package/dist/Preview-DJtVsoq1-CCGidQjJ.js +48 -0
- package/dist/{Preview--DnEAhwh.js → Preview-DXaiis29.js} +1 -1
- package/dist/{ReportDefine-Cu983bTN.js → ReportDefine-BLh4CiER.js} +1 -1
- package/dist/ReportDefine-CNx_ob99-6NQAHK-Q.js +10 -0
- package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp.js +165 -0
- package/dist/{ReportDesign-QsWXXgvo.js → ReportDesign-Ni1YxrLC.js} +7 -7
- package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda.js +75 -0
- package/dist/{ReportQuery-BjKIIhPu.js → ReportQuery-C8G88_qF.js} +1 -1
- package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy.js +4 -0
- package/dist/{ReportQueryFrom-DIjBO6Fx.js → ReportQueryFrom-CuZKPtB4.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW.js} +7 -7
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl.js +178 -0
- package/dist/ReportTemplate-BDANdIWv-D_IGjR1w.js +161 -0
- package/dist/{ReportTemplate-2uk9tJcy.js → ReportTemplate-DFnDXWmx.js} +8 -8
- package/dist/{Role-_QP8QEaI.js → Role-BQ7hsfPn.js} +3 -3
- package/dist/Role-ByB0WbxW-5E8Mb148.js +25 -0
- package/dist/RoleAssign-DW6iC_0v-Bis61auk.js +26 -0
- package/dist/{RoleAssign-C2gkcmEQ.js → RoleAssign-UPCg2d4G.js} +3 -3
- package/dist/RolePanel-BM2MaQPU-CgcsbfaX.js +4 -0
- package/dist/{RolePanel-vnl_lXNY.js → RolePanel-C-mQ5XRq.js} +1 -1
- package/dist/RolePanel-ClQy8DBL-DARL4O-o.js +4 -0
- package/dist/{RolePanel-B8FPNGaA.js → RolePanel-CoSXOCZN.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js → RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js → RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8.js} +8 -8
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js +154 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js +100 -0
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js} +1 -1
- package/dist/Staff-CuxzvhD9-D0KTcyRh.js +25 -0
- package/dist/{Staff-CHWrMIEb.js → Staff-D-CmvG1R.js} +3 -3
- package/dist/StaffInfo-CY7gUICu-EZUhUwIp.js +4 -0
- package/dist/{StaffInfo-Cpq2eayz.js → StaffInfo-Idhvuc6e.js} +1 -1
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js +108 -0
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js → StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js} +1 -1
- package/dist/{StaffPanel-D2BMXt5p.js → StaffPanel-CDDmAYE5.js} +1 -1
- package/dist/StaffPanel-CwqG0_xr-CrvzLJoc.js +4 -0
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js → StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee.js} +42 -42
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js +143 -0
- package/dist/SysUser-9Q2UJWhi-DprWXFlR.js +15 -0
- package/dist/{SysUser-om6H1BeC.js → SysUser-a-j5bppr.js} +2 -2
- package/dist/{SysUserPanel-CH0HPP7h.js → SysUserPanel-6V232wwB.js} +1 -1
- package/dist/SysUserPanel-bJy69O7x-BJtBgFEs.js +4 -0
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js} +2 -2
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js +356 -0
- package/dist/{SystemMenu-BkG_DKxA.js → SystemMenu-BnVeOSOQ.js} +7 -7
- package/dist/SystemMenu-DGOAolc1-CJSLHP8i.js +156 -0
- package/dist/UserInfo-CKoOHkAM-DDWp0I_U.js +4 -0
- package/dist/{UserInfo-D9croxUe.js → UserInfo-Cax9b2nw.js} +1 -1
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js +160 -0
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js → UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js} +2 -2
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +10 -0
- package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
- package/dist/childView-0YZQ6GBn-CEqg7k5d.js +4 -0
- package/dist/{childView-BY_Ip-l1.js → childView-DKG3eZo8.js} +1 -1
- package/dist/childView-DKkgi3yo-D47ft-vi.js +4 -0
- package/dist/{childView-CHp_TueS.js → childView-siumuBz0.js} +1 -1
- package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js +143 -0
- package/dist/{childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js → childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js} +8 -8
- package/dist/{childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js → childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js} +8 -8
- package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js +180 -0
- package/dist/{code-rule-Ce6yWqCq.js → code-rule-Dtoree6F.js} +2 -2
- package/dist/code-rule-wQyfgpNL-C4evD4Co.js +148 -0
- package/dist/core.es.js +10 -10
- package/dist/cron-task-C-kryDtd-C0NuGZCe.js +135 -0
- package/dist/{cron-task-DziaH0rI.js → cron-task-GSRgA7S5.js} +2 -2
- package/dist/flow-task-B07st2aD-CgQvagSQ.js +10 -0
- package/dist/frameView-BOGA3ezf-QoSxzmSQ.js +44 -0
- package/dist/{frameView-DNeCVQaY.js → frameView-Cy6wxW0K.js} +1 -1
- package/dist/{index-BabfUVv_.js → index-Dc7xWMiC.js} +1057 -1033
- package/dist/layout-home-3Dy4onl4.js +228 -0
- package/dist/layout-home-CYHksXN_-Basy-3IH.js +228 -0
- package/dist/layoutView-BaRvAbIa-xVgfqspc.js +3302 -0
- package/dist/{layoutView-12Mlp9A2.js → layoutView-DMjNscJ-.js} +8 -8
- package/dist/log-in-Cx1dGik8-BVeEHeZ8.js +117 -0
- package/dist/{log-in-1NGaA5OM.js → log-in-VAG6Cvcx.js} +8 -8
- package/dist/log-out-COYdxrNC-ftopGZdE.js +130 -0
- package/dist/{log-out-B8_atGcQ.js → log-out-DZGaMCjC.js} +4 -4
- package/dist/{login-5dydO6GR.js → login-CqVMdNHs.js} +16 -16
- package/dist/login-Dg9ofNS8-Bocp1XMA.js +241 -0
- package/dist/login-log-DJBGJVV0-AoOyj0jD.js +70 -0
- package/dist/lov-view-C0T5prk8-B2DBmn55.js +97 -0
- package/dist/{lov-view-DPvGUu3h.js → lov-view-Cc68_28B.js} +7 -7
- package/dist/{menuInfo-DVADYfEK.js → menuInfo-BIrIaJlH.js} +1 -1
- package/dist/menuInfo-BZJ_q7bz-Drho-_QC.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js +363 -0
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js → menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js} +2 -2
- package/dist/{pda-app-BZXs-2BQ.js → pda-app-DnjphrRS.js} +9 -9
- package/dist/pda-app-m9hsppHo-B4xyja1o.js +710 -0
- package/dist/redirect-BqegffKC-CBCIuqmz.js +15 -0
- package/dist/resource-C6KEIXu--B_ddyecm.js +97 -0
- package/dist/{resource-BZA9NFKc.js → resource-DISgPDM7.js} +4 -4
- package/dist/su-welcome-BjbuSrBZ.js +49424 -0
- package/dist/su-welcome-CYYy-dzr-D3RKPoB0.js +42089 -0
- package/dist/sys-config-DCjJGtht-DARDjlrt.js +370 -0
- package/dist/{sys-config-DQmNjWH4.js → sys-config-Yc9vh1t1.js} +13 -13
- package/dist/udp-core.css +1 -1
- package/dist/utogether-MlnyYtNS-CGgjFNPS.js +4 -0
- package/package.json +5 -2
- package/src/App.vue +71 -71
- package/src/components/udp/content/index.vue +88 -88
- package/src/components/udp/form-upload/form-upload.vue +492 -492
- package/src/components/udp/grid/index.vue +524 -524
- package/src/components/udp/index.ts +6 -6
- package/src/components/udp/ut-stamp-badge/index.vue +271 -271
- package/src/components/udp/utils.ts +408 -408
- package/src/layout/components/lay-content/index.vue +136 -136
- package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
- package/src/layout/components/lay-setting/index.vue +503 -503
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
- package/src/layout/components/lay-tag/index.vue +598 -598
- package/src/layout/hooks/useNav.ts +176 -176
- package/src/layout/hooks/useTag.ts +227 -227
- package/src/layout/layoutView.vue +216 -216
- package/src/layout/types.ts +93 -93
- package/src/main.ts +111 -112
- package/src/plugins/i18n/zh.ts +1 -0
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/plugins/vxe-table/render.tsx +968 -968
- package/src/router/index.ts +187 -187
- package/src/router/modules/home.ts +32 -32
- package/src/router/utils.ts +420 -420
- package/src/store/modules/epTheme.ts +48 -48
- package/src/style/vxetable.scss +364 -356
- package/src/utils/dataFormat/index.ts +222 -222
- package/src/utils/lifecycle.ts +39 -39
- package/src/views/organization/department/DepartmentPanel.vue +303 -303
- package/src/views/organization/staff/StaffInfo.vue +127 -127
- package/src/views/organization/staff/StaffPanel.vue +3 -3
- package/src/views/system/layout/layout-home.vue +45 -7
- package/src/views/system/menu/AuthorityPanel.vue +141 -141
- package/src/views/system/menu/SystemMenu.vue +194 -194
- package/src/views/system/menu/menuInfo.vue +1 -1
- package/src/views/system/sysUser/SysUserPanel.vue +363 -363
- package/src/views/udev/coderule/code-rule.vue +132 -132
- package/src/views/udev/dict/DictView.vue +118 -118
- package/src/views/udev/dict/childView.vue +184 -184
- package/src/views/udev/lov/childView.vue +174 -174
- package/src/views/uhome/components/common-menu.vue +118 -0
- package/src/views/uhome/components/dynamic-component.vue +66 -0
- package/src/views/uhome/components/home-todo.vue +170 -0
- package/src/views/uhome/components/menu-favorite.vue +315 -315
- package/src/views/uhome/dynamic-card.vue +18 -19
- package/src/views/uhome/su-welcome.vue +46 -116
- package/src/views/ulogin/login.vue +336 -336
- package/src/views/upms/interface/log-in.vue +100 -100
- package/src/views/upms/interface/log-out.vue +104 -104
- package/src/views/upms/user/login-log.vue +54 -54
- package/types/global.d.ts +232 -232
- package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
- package/dist/layout-home-Cis1KlEr.js +0 -195
- package/dist/su-welcome-BXe6Cdp3.js +0 -580
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as E, ref as C, inject as S, reactive as N, watch as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { clone as
|
|
4
|
-
import { warnMessage as
|
|
5
|
-
import { _ as T } from "./StaffInfo.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import {
|
|
1
|
+
import { defineComponent as E, ref as C, inject as S, reactive as N, watch as V, nextTick as B, resolveComponent as r, createElementBlock as D, openBlock as l, 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 T } from "./StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js";
|
|
6
|
+
import { g as d } from "./index-Dc7xWMiC.js";
|
|
7
7
|
import { VxeUI as Y } from "vxe-pc-ui";
|
|
8
|
-
import { t as O } from "./await-to-js.es5-
|
|
8
|
+
import { t as O } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
9
9
|
const j = {
|
|
10
10
|
class: "page-content"
|
|
11
|
-
},
|
|
11
|
+
}, i = "/uums/employee", Q = /* @__PURE__ */ E({
|
|
12
12
|
__name: "StaffPanel",
|
|
13
13
|
setup(q) {
|
|
14
|
-
const
|
|
14
|
+
const o = C(null), {
|
|
15
15
|
t: u
|
|
16
|
-
} =
|
|
16
|
+
} = A(), n = S("active"), t = N({
|
|
17
17
|
record: {},
|
|
18
18
|
showModelView: !1,
|
|
19
19
|
fetchExtParam: {}
|
|
20
20
|
});
|
|
21
|
-
|
|
21
|
+
V(() => n.value, () => {
|
|
22
22
|
t.fetchExtParam = {
|
|
23
|
-
departmentId:
|
|
24
|
-
},
|
|
25
|
-
|
|
23
|
+
departmentId: null
|
|
24
|
+
}, B(() => {
|
|
25
|
+
o.value.refreshData();
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
28
|
const m = [{
|
|
@@ -72,16 +72,16 @@ const j = {
|
|
|
72
72
|
default: ({
|
|
73
73
|
row: e
|
|
74
74
|
}) => {
|
|
75
|
-
const
|
|
76
|
-
return [s(
|
|
75
|
+
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";
|
|
76
|
+
return [s(L, null, [s(r("ut-button"), {
|
|
77
77
|
icon: "ri-edit-box-line",
|
|
78
78
|
content: "edit",
|
|
79
|
-
onTap: () =>
|
|
79
|
+
onTap: () => w(e)
|
|
80
80
|
}, null), s(r("ut-button"), {
|
|
81
81
|
icon: c,
|
|
82
|
-
content:
|
|
82
|
+
content: a,
|
|
83
83
|
status: x,
|
|
84
|
-
onTap: () =>
|
|
84
|
+
onTap: () => g(e)
|
|
85
85
|
}, null)])];
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -92,49 +92,49 @@ const j = {
|
|
|
92
92
|
e === "add" && y();
|
|
93
93
|
}
|
|
94
94
|
}, y = () => {
|
|
95
|
-
var e,
|
|
95
|
+
var e, a;
|
|
96
96
|
if (!((e = n.value) != null && e.deptName))
|
|
97
|
-
return
|
|
98
|
-
t.dataStatus = "add", t.record = {}, t.record.departmentId = (
|
|
99
|
-
},
|
|
97
|
+
return U("请先选择部门");
|
|
98
|
+
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;
|
|
99
|
+
}, w = (e) => {
|
|
100
100
|
t.dataStatus = "update", t.record = e, t.showModelView = !0;
|
|
101
|
-
},
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
},
|
|
101
|
+
}, g = async (e) => {
|
|
102
|
+
const a = P(e, !0);
|
|
103
|
+
o.value.showLoading(), a.enabled = a.enabled === "1" ? "0" : "1", await d().put(i, a), o.value.hiddenLoading(), o.value.refreshData();
|
|
104
|
+
}, v = async () => {
|
|
105
105
|
if (await Y.modal.confirm(u("message.tip.confirmSync")) !== "confirm") return;
|
|
106
|
-
|
|
107
|
-
const [
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
e === "sync" &&
|
|
111
|
-
},
|
|
106
|
+
o.value.showLoading();
|
|
107
|
+
const [a] = await O(d().post("/uums/employee/syncEwEmp", {}));
|
|
108
|
+
o.value.hiddenLoading(), !a && o.value.refreshData();
|
|
109
|
+
}, b = (e) => {
|
|
110
|
+
e === "sync" && v();
|
|
111
|
+
}, _ = {
|
|
112
112
|
querySuccess: (e) => {
|
|
113
113
|
}
|
|
114
114
|
}, k = () => {
|
|
115
|
-
t.showModelView = !1,
|
|
115
|
+
t.showModelView = !1, o.value.refreshData();
|
|
116
116
|
};
|
|
117
|
-
return (e,
|
|
117
|
+
return (e, a) => {
|
|
118
118
|
const c = r("ut-grid");
|
|
119
|
-
return
|
|
119
|
+
return l(), D("div", j, [s(c, {
|
|
120
120
|
ref_key: "xgrid",
|
|
121
|
-
ref:
|
|
121
|
+
ref: o,
|
|
122
122
|
items: f,
|
|
123
123
|
columns: p,
|
|
124
124
|
"default-params": t.fetchExtParam,
|
|
125
125
|
events: h,
|
|
126
126
|
"auto-load": !1,
|
|
127
127
|
buttons: m,
|
|
128
|
-
url:
|
|
129
|
-
callback:
|
|
128
|
+
url: i,
|
|
129
|
+
callback: _,
|
|
130
130
|
mode: "form",
|
|
131
|
-
onButtonClick:
|
|
132
|
-
}, null, 8, ["default-params"]), t.showModelView ? (
|
|
131
|
+
onButtonClick: b
|
|
132
|
+
}, null, 8, ["default-params"]), t.showModelView ? (l(), M(T, {
|
|
133
133
|
key: 0,
|
|
134
134
|
record: t.record,
|
|
135
135
|
"data-status": t.dataStatus,
|
|
136
136
|
onOnClose: k
|
|
137
|
-
}, null, 8, ["record", "data-status"])) :
|
|
137
|
+
}, null, 8, ["record", "data-status"])) : I("", !0)]);
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
});
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent as N, ref as C, inject as S, reactive as V, watch as D, nextTick as B, resolveComponent as d, createElementBlock as M, openBlock as c, createVNode as n, createBlock as L, createCommentVNode as I, Fragment as P } from "vue";
|
|
2
|
+
import { useI18n as _ } from "vue-i18n";
|
|
3
|
+
import { clone as T } from "xe-utils";
|
|
4
|
+
import { warnMessage as U } from "@utogether/utils";
|
|
5
|
+
import { x as Y } from "./StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js";
|
|
6
|
+
import { W as i } from "./su-welcome-BjbuSrBZ.js";
|
|
7
|
+
import { VxeUI as j } from "vxe-pc-ui";
|
|
8
|
+
import { c as q } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
|
|
9
|
+
const A = {
|
|
10
|
+
class: "page-content"
|
|
11
|
+
}, s = "/uums/employee", K = /* @__PURE__ */ N({
|
|
12
|
+
__name: "StaffPanel",
|
|
13
|
+
setup(O) {
|
|
14
|
+
const a = C(null), {
|
|
15
|
+
t: u
|
|
16
|
+
} = _(), r = S("active"), t = V({
|
|
17
|
+
record: {},
|
|
18
|
+
showModelView: !1,
|
|
19
|
+
fetchExtParam: {}
|
|
20
|
+
});
|
|
21
|
+
D(() => r.value, () => {
|
|
22
|
+
t.fetchExtParam = {
|
|
23
|
+
departmentId: null
|
|
24
|
+
}, B(() => {
|
|
25
|
+
a.value.refreshData();
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
const m = [{
|
|
29
|
+
code: "sync",
|
|
30
|
+
auth: "wechat",
|
|
31
|
+
status: "success",
|
|
32
|
+
icon: "ri-refresh-line"
|
|
33
|
+
}, {
|
|
34
|
+
code: "sync",
|
|
35
|
+
auth: "dingding",
|
|
36
|
+
status: "success",
|
|
37
|
+
icon: "ri-refresh-line"
|
|
38
|
+
}, {
|
|
39
|
+
code: "sync",
|
|
40
|
+
auth: "OA",
|
|
41
|
+
status: "success",
|
|
42
|
+
icon: "ri-refresh-line"
|
|
43
|
+
}, {
|
|
44
|
+
code: "del",
|
|
45
|
+
auth: "/"
|
|
46
|
+
}], f = [{
|
|
47
|
+
field: "employeeCode"
|
|
48
|
+
}, {
|
|
49
|
+
field: "employeeName"
|
|
50
|
+
}], p = [{
|
|
51
|
+
type: "checkbox",
|
|
52
|
+
width: 50,
|
|
53
|
+
align: "center"
|
|
54
|
+
}, {
|
|
55
|
+
field: "employeeCode"
|
|
56
|
+
}, {
|
|
57
|
+
field: "employeeName",
|
|
58
|
+
width: 150
|
|
59
|
+
}, {
|
|
60
|
+
field: "gender",
|
|
61
|
+
width: 100,
|
|
62
|
+
formatter: ["formatDict", "SU.GENDER"]
|
|
63
|
+
}, {
|
|
64
|
+
field: "enabled",
|
|
65
|
+
width: 100,
|
|
66
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
67
|
+
}, {
|
|
68
|
+
field: "operate",
|
|
69
|
+
width: 150,
|
|
70
|
+
fixed: "right",
|
|
71
|
+
slots: {
|
|
72
|
+
default: ({
|
|
73
|
+
row: e
|
|
74
|
+
}) => {
|
|
75
|
+
const o = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", l = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", E = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
|
|
76
|
+
return [n(P, null, [n(d("ut-button"), {
|
|
77
|
+
icon: "ri-edit-box-line",
|
|
78
|
+
content: "edit",
|
|
79
|
+
onTap: () => v(e)
|
|
80
|
+
}, null), n(d("ut-button"), {
|
|
81
|
+
icon: l,
|
|
82
|
+
content: o,
|
|
83
|
+
status: E,
|
|
84
|
+
onTap: () => y(e)
|
|
85
|
+
}, null)])];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}], h = {
|
|
89
|
+
toolbarButtonClick({
|
|
90
|
+
code: e
|
|
91
|
+
}) {
|
|
92
|
+
e === "add" && w();
|
|
93
|
+
}
|
|
94
|
+
}, w = () => {
|
|
95
|
+
var e, o;
|
|
96
|
+
if (!((e = r.value) != null && e.deptName))
|
|
97
|
+
return U("请先选择部门");
|
|
98
|
+
t.dataStatus = "add", t.record = {}, t.record.departmentId = (o = r.value) == null ? void 0 : o.id, t.record.deptName = r.value.deptName, t.record.enabled = "1", t.showModelView = !0;
|
|
99
|
+
}, v = (e) => {
|
|
100
|
+
t.dataStatus = "update", t.record = e, t.showModelView = !0;
|
|
101
|
+
}, y = async (e) => {
|
|
102
|
+
const o = T(e, !0);
|
|
103
|
+
a.value.showLoading(), o.enabled = o.enabled === "1" ? "0" : "1", await i().put(s, o), a.value.hiddenLoading(), a.value.refreshData();
|
|
104
|
+
}, b = async () => {
|
|
105
|
+
if (await j.modal.confirm(u("message.tip.confirmSync")) !== "confirm") return;
|
|
106
|
+
a.value.showLoading();
|
|
107
|
+
const [e] = await q(i().post("/uums/employee/syncEwEmp", {}));
|
|
108
|
+
a.value.hiddenLoading(), !e && a.value.refreshData();
|
|
109
|
+
}, g = (e) => {
|
|
110
|
+
e === "sync" && b();
|
|
111
|
+
}, x = {
|
|
112
|
+
querySuccess: (e) => {
|
|
113
|
+
}
|
|
114
|
+
}, k = () => {
|
|
115
|
+
t.showModelView = !1, a.value.refreshData();
|
|
116
|
+
};
|
|
117
|
+
return (e, o) => {
|
|
118
|
+
const l = d("ut-grid");
|
|
119
|
+
return c(), M("div", A, [n(l, {
|
|
120
|
+
ref_key: "xgrid",
|
|
121
|
+
ref: a,
|
|
122
|
+
items: f,
|
|
123
|
+
columns: p,
|
|
124
|
+
"default-params": t.fetchExtParam,
|
|
125
|
+
events: h,
|
|
126
|
+
"auto-load": !1,
|
|
127
|
+
buttons: m,
|
|
128
|
+
url: s,
|
|
129
|
+
callback: x,
|
|
130
|
+
mode: "form",
|
|
131
|
+
onButtonClick: g
|
|
132
|
+
}, null, 8, ["default-params"]), t.showModelView ? (c(), L(Y, {
|
|
133
|
+
key: 0,
|
|
134
|
+
record: t.record,
|
|
135
|
+
"data-status": t.dataStatus,
|
|
136
|
+
onOnClose: k
|
|
137
|
+
}, null, 8, ["record", "data-status"])) : I("", !0)]);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
export {
|
|
142
|
+
K as Q
|
|
143
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineComponent as t, ref as o, createElementBlock as r, provide as s, openBlock as n, createVNode as a } from "vue";
|
|
2
|
+
import { x as p } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js";
|
|
3
|
+
import { t as c } from "./su-welcome-BjbuSrBZ.js";
|
|
4
|
+
const m = { class: "u-content-panel1" }, d = /* @__PURE__ */ t({
|
|
5
|
+
__name: "SysUser",
|
|
6
|
+
setup(i) {
|
|
7
|
+
const e = o([]);
|
|
8
|
+
return s("treeList", e), (f, l) => (n(), r("div", m, [
|
|
9
|
+
a(p)
|
|
10
|
+
]));
|
|
11
|
+
}
|
|
12
|
+
}), v = /* @__PURE__ */ c(d, [["__scopeId", "data-v-8708bc91"]]);
|
|
13
|
+
export {
|
|
14
|
+
v as default
|
|
15
|
+
};
|
|
@@ -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-BOtHuMVy.js";
|
|
3
|
+
import { _ as a } from "./index-Dc7xWMiC.js";
|
|
4
4
|
const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
|
|
5
5
|
__name: "SysUser",
|
|
6
6
|
setup(m) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as re, reactive as ne, ref as v, inject as ie, createVNode as o, Fragment as x, resolveComponent as r, onMounted as de, createElementBlock as S, openBlock as h, createBlock as N, createCommentVNode as $, withCtx as u, renderList as ue, unref as me } from "vue";
|
|
2
2
|
import { useI18n as ce } from "vue-i18n";
|
|
3
|
-
import { t as M } from "./await-to-js.es5-
|
|
3
|
+
import { t as M } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
4
4
|
import { useRender as fe, warnMessage as pe, delay as ge, errorMessage as he, getDictChildren as we } from "@utogether/utils";
|
|
5
5
|
import { VxeUI as _ } from "vxe-pc-ui";
|
|
6
6
|
import { clone as U, isEmpty as ve } from "xe-utils";
|
|
7
|
-
import {
|
|
7
|
+
import { g as _e } from "./index-Dc7xWMiC.js";
|
|
8
8
|
const ye = {
|
|
9
9
|
class: "page"
|
|
10
10
|
}, i = "/uums/user", xe = /* @__PURE__ */ re({
|