@utogether/udp-core 2.0.0-beta.27 → 2.0.0-beta.28
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-gdcH0-Bo.js → 403-CyoOD-Ik.js} +1 -1
- package/dist/{404-Se2SF97M.js → 404-Ch_OHTw0.js} +1 -1
- package/dist/{500-B6j9AqLo.js → 500-Cf9am7HK.js} +1 -1
- package/dist/{AuthorityInfo-CQ8ydZvr.js → AuthorityInfo-BJ427cqG.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js → AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js} +11 -12
- package/dist/{Company-BzSVBSC4.js → Company-qo-lKPkv.js} +3 -3
- package/dist/{CompanyPanel-DBjZB4aJ.js → CompanyPanel-DkKWAKvY.js} +7 -7
- package/dist/{Department-BkgseHo8.js → Department-CHUQByKX.js} +3 -3
- package/dist/{DepartmentPanel-Sen93_2M.js → DepartmentPanel-C742dfOO.js} +27 -28
- package/dist/{DesignPanel-pqDcwaFC.js → DesignPanel-D9oE5R7m.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js → DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js} +192 -108
- package/dist/{DictView-CJLG4LlE.js → DictView-CrFXprP9.js} +1 -1
- package/dist/{InvOrganization-D0Jq1IAa.js → InvOrganization-Cz8SzIgs.js} +6 -7
- package/dist/{Org-CO_1WT39.js → Org-Bzt6yKox.js} +9 -10
- package/dist/{Preview-DLI4Bwel.js → Preview-jonigfMQ.js} +1 -1
- package/dist/{ReportDefine-Cw46OnJ_.js → ReportDefine-BpiM5Ovq.js} +1 -1
- package/dist/{ReportDesign-D4sHTXT7.js → ReportDesign-fp09cXJ7.js} +24 -25
- package/dist/{ReportQuery-DtOCvQSN.js → ReportQuery-52ZP1PYP.js} +1 -1
- package/dist/{ReportQueryFrom-QjL-ETPq.js → ReportQueryFrom-DSYavJb1.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js} +4 -4
- package/dist/{ReportTemplate-BxAgc_Aj.js → ReportTemplate-CA_UW0eD.js} +3 -3
- package/dist/{Role-Df77BBD-.js → Role-DqOt8Bk0.js} +3 -3
- package/dist/{RoleAssign-BrunouML.js → RoleAssign-BdxhefhQ.js} +3 -3
- package/dist/{RolePanel-HLA7XBlN.js → RolePanel-2gZ3H0ET.js} +1 -1
- package/dist/{RolePanel-DSVwqhiD.js → RolePanel-BsNd0svJ.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js → RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js} +9 -9
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js → RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js} +26 -27
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js → ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js} +7 -7
- package/dist/{Staff-BeL1xcRf.js → Staff-D3L8fEoY.js} +3 -3
- package/dist/{StaffInfo-CIfnltyX.js → StaffInfo-DYRw6ZYJ.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js → StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js} +1 -1
- package/dist/{StaffPanel-BV2CHWac.js → StaffPanel-DkrNH6Px.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js → StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js} +8 -9
- package/dist/{SysUser-DPfNvthk.js → SysUser-Bl1-cIpJ.js} +2 -2
- package/dist/{SysUserPanel-CoLKYlQE.js → SysUserPanel-yxNLaBwt.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js} +11 -12
- package/dist/{SystemMenu-sdj1dRDA.js → SystemMenu-C4_Arn12.js} +9 -10
- package/dist/{UserInfo-CTX4hhFl.js → UserInfo-QcNwJCUR.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js → UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js} +5 -6
- package/dist/{childView-BDmWwJO5.js → childView-B23DEO2u.js} +1 -1
- package/dist/{childView-Dx3ACtHa.js → childView-saDZQv9x.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js → childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js} +14 -15
- package/dist/{childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js → childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js} +11 -12
- package/dist/{code-rule-cvN4gYC_.js → code-rule-2_Ihx_by.js} +12 -13
- package/dist/core.es.js +21 -19
- package/dist/{cron-task-B0TkxFdp.js → cron-task-BFOPJQIk.js} +3 -4
- package/dist/{frameView-5cy5BSgS.js → frameView-f7Ya0Knj.js} +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/{index-C5WRTwvI.js → index-BpdTDaTk.js} +811 -604
- package/dist/{layout-home-DrARg-3o.js → layout-home-v3DPJ7rB.js} +12 -13
- package/dist/{layoutView-25v_ngk5.js → layoutView-DZHoQDH1.js} +186 -187
- package/dist/{log-in-Bmz5Uhbt.js → log-in-BPAMJTwH.js} +4 -5
- package/dist/{log-out-B-8m3oNj.js → log-out-DZACF0jg.js} +8 -9
- package/dist/{login-Cmp2RvvW.js → login-B8cwozax.js} +22 -23
- package/dist/{lov-view-BATtzw2X.js → lov-view-Ba7Y7xy0.js} +4 -5
- package/dist/{menuInfo-BIvrE7nm.js → menuInfo-BpRKFYK8.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js → menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js} +17 -18
- package/dist/{pda-app-CzHVyeEa.js → pda-app-C0jJecrL.js} +7 -8
- package/dist/{resource-Y5lGB38n.js → resource-BG22Cw4P.js} +4 -4
- package/dist/su-welcome-DaxhbrC6.js +879 -0
- package/dist/{sys-config-CqO03LeC.js → sys-config-CG2fMtak.js} +22 -23
- package/dist/udp-core.css +1 -1
- package/dist/{useNav-C-rCgubt.js → useNav-_u2UAQWk.js} +24 -24
- package/index.ts +54 -51
- package/package.json +21 -21
- package/src/api/http.ts +10 -4
- package/src/api/index.ts +51 -51
- package/src/api/user.ts +64 -64
- package/src/components/udp/content/index.vue +93 -93
- package/src/components/udp/form-upload/form-upload.vue +496 -496
- package/src/components/udp/grid/index.vue +643 -544
- package/src/components/udp/index.ts +2 -1
- package/src/components/udp/modal-form/index.vue +326 -0
- package/src/components/udp/utils.ts +420 -420
- package/src/layout/components/lay-navbar/index.vue +240 -240
- package/src/layout/components/lay-search/components/SearchModal.vue +185 -185
- package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
- package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
- package/src/layout/components/lay-sidebar/vertical.vue +92 -92
- package/src/layout/layoutView.vue +1 -0
- package/src/main.ts +111 -111
- package/src/plugins/i18n/zh.ts +5 -1
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/router/index.ts +158 -156
- package/src/router/utils.ts +434 -430
- package/src/store/modules/permission.ts +1 -1
- package/src/store/modules/system.ts +193 -193
- package/src/style/print-lock.css +380 -375
- package/src/style/suprint.css +990 -985
- package/src/utils/authority/index.ts +46 -46
- package/src/utils/dataFormat/index.ts +309 -222
- package/src/utils/udp/http/index.ts +19 -11
- package/src/views/uhome/components/home-todo.vue +15 -3
- package/src/views/uhome/dynamic-card.vue +31 -31
- package/src/views/uhome/su-welcome.vue +310 -310
- package/src/views/ulogin/login.vue +292 -292
- package/src/views/urpt/design/DesignPanel.vue +538 -507
- package/src/views/urpt/design/print-data.ts +39 -59
- package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
- package/dist/su-welcome-CXA6OzBw.js +0 -878
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as a, createElementBlock as l, createStaticVNode as m, defineComponent as r, resolveComponent as F, resolveDirective as n, createVNode as f, unref as M, createElementVNode as B, withDirectives as h, createTextVNode as e, createBlock as k, withCtx as u } from "vue";
|
|
2
2
|
import { useRouter as y, useRoute as v } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { M as C } from "./index-BpdTDaTk.js";
|
|
4
4
|
const E = {
|
|
5
5
|
width: "251",
|
|
6
6
|
height: "294"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as a, createElementBlock as l, createStaticVNode as m, defineComponent as r, resolveComponent as n, resolveDirective as F, createVNode as f, unref as M, createElementVNode as v, withDirectives as p, createTextVNode as e, createBlock as B, withCtx as D } from "vue";
|
|
2
2
|
import { useRouter as k, useRoute as u } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { M as C } from "./index-BpdTDaTk.js";
|
|
4
4
|
const y = {
|
|
5
5
|
width: "252",
|
|
6
6
|
height: "294"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as a, createElementBlock as s, createStaticVNode as o, defineComponent as r, resolveComponent as F, resolveDirective as f, createVNode as n, unref as M, createElementVNode as k, withDirectives as p, createTextVNode as e, createBlock as v, withCtx as B } from "vue";
|
|
2
2
|
import { useRouter as u, useRoute as C } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { M as D } from "./index-BpdTDaTk.js";
|
|
4
4
|
const y = {
|
|
5
5
|
width: "254",
|
|
6
6
|
height: "294"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent as N, ref as p, reactive as B, onBeforeMount as M, resolveComponent as n, resolveDirective as A, openBlock as h, createElementBlock as _, createVNode as t, withCtx as c, withDirectives as D, createElementVNode as K } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const E = { class: "config" }, I = { style: { position: "relative", height: "100%" } }, H = /* @__PURE__ */ N({
|
|
2
|
+
import { j as d, i as S } from "./index-BpdTDaTk.js";
|
|
3
|
+
const j = { class: "config" }, E = { style: { position: "relative", height: "100%" } }, z = /* @__PURE__ */ N({
|
|
5
4
|
__name: "AuthorityInfo",
|
|
6
5
|
props: {
|
|
7
6
|
show: { type: Boolean, default: !1 },
|
|
@@ -11,7 +10,7 @@ const E = { class: "config" }, I = { style: { position: "relative", height: "100
|
|
|
11
10
|
},
|
|
12
11
|
emits: ["onClose"],
|
|
13
12
|
setup(l, { emit: y }) {
|
|
14
|
-
const u = l,
|
|
13
|
+
const u = l, f = p(null), o = p(!1), s = B({
|
|
15
14
|
dataList: [],
|
|
16
15
|
defaultCheckedKeys: []
|
|
17
16
|
// 默认权限
|
|
@@ -27,7 +26,7 @@ const E = { class: "config" }, I = { style: { position: "relative", height: "100
|
|
|
27
26
|
}, C = async () => {
|
|
28
27
|
const { record: e } = u;
|
|
29
28
|
o.value = !0;
|
|
30
|
-
const a =
|
|
29
|
+
const a = f.value.getCheckedNodes(!1, !0);
|
|
31
30
|
e.sysMenus = a, await S(d().put("/uums/role", [e])), o.value = !1, i();
|
|
32
31
|
};
|
|
33
32
|
function i() {
|
|
@@ -36,8 +35,8 @@ const E = { class: "config" }, I = { style: { position: "relative", height: "100
|
|
|
36
35
|
return M(() => {
|
|
37
36
|
o.value = !0, k(), w();
|
|
38
37
|
}), (e, a) => {
|
|
39
|
-
const r = n("el-tree-v2"), b = n("el-divider"),
|
|
40
|
-
return h(), _("div",
|
|
38
|
+
const r = n("el-tree-v2"), b = n("el-divider"), m = n("ut-button"), x = n("el-row"), T = n("el-drawer"), L = A("spinning");
|
|
39
|
+
return h(), _("div", j, [
|
|
41
40
|
t(T, {
|
|
42
41
|
"model-value": l.show,
|
|
43
42
|
title: e.$t("message.title.authority", { role: l.record.roleName }),
|
|
@@ -55,13 +54,13 @@ const E = { class: "config" }, I = { style: { position: "relative", height: "100
|
|
|
55
54
|
style: { "padding-right": "20px" }
|
|
56
55
|
}, {
|
|
57
56
|
default: c(() => [
|
|
58
|
-
t(
|
|
57
|
+
t(m, {
|
|
59
58
|
content: "cancel",
|
|
60
59
|
icon: "ri-close-fill",
|
|
61
60
|
status: "warning",
|
|
62
61
|
onTap: i
|
|
63
62
|
}),
|
|
64
|
-
t(
|
|
63
|
+
t(m, {
|
|
65
64
|
content: "confirm",
|
|
66
65
|
icon: "ri-save-3-fill",
|
|
67
66
|
status: "u-cyan",
|
|
@@ -72,11 +71,11 @@ const E = { class: "config" }, I = { style: { position: "relative", height: "100
|
|
|
72
71
|
})
|
|
73
72
|
]),
|
|
74
73
|
default: c(() => [
|
|
75
|
-
D((h(), _("div",
|
|
74
|
+
D((h(), _("div", E, [
|
|
76
75
|
K("div", null, [
|
|
77
76
|
t(r, {
|
|
78
77
|
ref_key: "xTree",
|
|
79
|
-
ref:
|
|
78
|
+
ref: f,
|
|
80
79
|
data: s.dataList,
|
|
81
80
|
props: { children: "children", label: "menuName" },
|
|
82
81
|
"default-checked-keys": s.defaultCheckedKeys,
|
|
@@ -96,5 +95,5 @@ const E = { class: "config" }, I = { style: { position: "relative", height: "100
|
|
|
96
95
|
}
|
|
97
96
|
});
|
|
98
97
|
export {
|
|
99
|
-
|
|
98
|
+
z as _
|
|
100
99
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, ref as e, provide as t, openBlock as i, createElementBlock as _, createElementVNode as o, createVNode as n } from "vue";
|
|
2
|
-
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import p from "./CompanyPanel-
|
|
4
|
-
import { _ as d } from "./index-
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js";
|
|
3
|
+
import p from "./CompanyPanel-DkKWAKvY.js";
|
|
4
|
+
import { _ as d } from "./index-BpdTDaTk.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
|
|
6
6
|
__name: "Company",
|
|
7
7
|
setup(C) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as A, reactive as T, inject as C, watch as B, resolveComponent as s, openBlock as d, createElementBlock as E, createVNode as o, withCtx as i, createBlock as c, createElementVNode as n, createTextVNode as D, toDisplayString as L, createCommentVNode as v } from "vue";
|
|
2
2
|
import { useI18n as M } from "vue-i18n";
|
|
3
3
|
import { VxeUI as U } from "vxe-table";
|
|
4
4
|
import { templateRef as R } from "@vueuse/core";
|
|
5
5
|
import { clone as z } from "xe-utils";
|
|
6
6
|
import { warnMessage as G, successMessage as H } from "@utogether/utils";
|
|
7
|
-
import {
|
|
8
|
-
const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */
|
|
7
|
+
import { j as J, _ as K } from "./index-BpdTDaTk.js";
|
|
8
|
+
const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ A({
|
|
9
9
|
__name: "CompanyPanel",
|
|
10
10
|
setup(W) {
|
|
11
|
-
const e =
|
|
11
|
+
const e = T({
|
|
12
12
|
record: {},
|
|
13
13
|
dataList: [],
|
|
14
14
|
submitLoading: !1,
|
|
@@ -58,7 +58,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ T({
|
|
|
58
58
|
e.dialogFormVisible = !1;
|
|
59
59
|
};
|
|
60
60
|
return (a, t) => {
|
|
61
|
-
const r = s("ut-button"), I = s("vxe-toolbar"), g = s("vxe-form-item"), P = s("vxe-form"), u = s("el-row"),
|
|
61
|
+
const r = s("ut-button"), I = s("vxe-toolbar"), g = s("vxe-form-item"), P = s("vxe-form"), u = s("el-row"), j = s("vxe-checkbox"), y = s("vxe-button"), q = s("el-card");
|
|
62
62
|
return d(), E("div", O, [
|
|
63
63
|
o(I, {
|
|
64
64
|
perfect: "",
|
|
@@ -94,7 +94,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ T({
|
|
|
94
94
|
class: "w-departInfo-wrapper"
|
|
95
95
|
}, {
|
|
96
96
|
default: i(() => [
|
|
97
|
-
o(
|
|
97
|
+
o(q, {
|
|
98
98
|
width: "60%",
|
|
99
99
|
shadow: "always",
|
|
100
100
|
class: "box-card w-card-wrapper"
|
|
@@ -142,7 +142,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ T({
|
|
|
142
142
|
justify: "center"
|
|
143
143
|
}, {
|
|
144
144
|
default: i(() => [
|
|
145
|
-
e.dataStatus === "add" ? (d(), c(
|
|
145
|
+
e.dataStatus === "add" ? (d(), c(j, {
|
|
146
146
|
key: 0,
|
|
147
147
|
modelValue: e.isChecked,
|
|
148
148
|
"onUpdate:modelValue": t[3] || (t[3] = (p) => e.isChecked = p),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, ref as e, provide as t, openBlock as i, createElementBlock as m, createElementVNode as n, createVNode as a } from "vue";
|
|
2
|
-
import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import _ from "./DepartmentPanel-
|
|
4
|
-
import { _ as d } from "./index-
|
|
2
|
+
import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js";
|
|
3
|
+
import _ from "./DepartmentPanel-C742dfOO.js";
|
|
4
|
+
import { _ as d } from "./index-BpdTDaTk.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ l({
|
|
6
6
|
__name: "Department",
|
|
7
7
|
setup(D) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent as U, reactive as O, inject as $, watch as H, ref as L, resolveComponent as m, resolveDirective as R, openBlock as r, createElementBlock as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { clone as
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as U, reactive as O, inject as $, watch as H, ref as L, resolveComponent as m, resolveDirective as R, openBlock as r, createElementBlock as Y, createVNode as o, withCtx as d, unref as v, createBlock as l, createCommentVNode as p, withDirectives as z, createElementVNode as s, createTextVNode as G, toDisplayString as J } from "vue";
|
|
2
|
+
import { useI18n as K } from "vue-i18n";
|
|
3
|
+
import { clone as Q } from "xe-utils";
|
|
4
|
+
import { h as W, w as k, i as b, j as X, _ as Z } from "./index-BpdTDaTk.js";
|
|
5
5
|
import { VxeUI as T } from "vxe-table";
|
|
6
|
-
import { warnMessage as
|
|
7
|
-
|
|
8
|
-
const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__ */ U({
|
|
6
|
+
import { warnMessage as ee, successMessage as te } from "@utogether/utils";
|
|
7
|
+
const ae = { class: "page-content" }, h = "/uums/department", ne = /* @__PURE__ */ U({
|
|
9
8
|
__name: "DepartmentPanel",
|
|
10
9
|
setup(se) {
|
|
11
10
|
const e = O({
|
|
@@ -15,7 +14,7 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
|
|
|
15
14
|
dialogFormVisible: !1,
|
|
16
15
|
isChecked: !1,
|
|
17
16
|
dataStatus: ""
|
|
18
|
-
}), V =
|
|
17
|
+
}), V = W().getDataDict, { t: i } = K(), u = X(), D = {
|
|
19
18
|
deptName: [
|
|
20
19
|
{
|
|
21
20
|
required: !0,
|
|
@@ -38,42 +37,42 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
|
|
|
38
37
|
H(
|
|
39
38
|
() => f.value,
|
|
40
39
|
(a, t) => {
|
|
41
|
-
e.record = f.value, a?.id && t?.id && a !== t &&
|
|
40
|
+
e.record = f.value, a?.id && t?.id && a !== t && C("detail");
|
|
42
41
|
}
|
|
43
42
|
);
|
|
44
43
|
const A = () => {
|
|
45
44
|
e.dataStatus = "add", e.record = {}, e.record.parentId = f.value?.id, e.isChecked = !1, e.dialogFormVisible = !0;
|
|
46
|
-
},
|
|
47
|
-
e.dataStatus = a, e.record =
|
|
45
|
+
}, C = (a) => {
|
|
46
|
+
e.dataStatus = a, e.record = Q(f.value, !0), e.dialogFormVisible = !0;
|
|
48
47
|
}, S = L("xForm"), F = () => {
|
|
49
48
|
S.value.validate(async (a) => {
|
|
50
49
|
if (!a) {
|
|
51
50
|
const { record: t, dataStatus: n } = e;
|
|
52
51
|
e.loading = !0;
|
|
53
|
-
const [x] = n === "add" ? await
|
|
52
|
+
const [x] = n === "add" ? await b(u.post(h, t)) : await b(u.put(h, t));
|
|
54
53
|
e.loading = !1, x || w();
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
56
|
}, P = async () => {
|
|
58
57
|
const { record: a } = e;
|
|
59
|
-
if (a.children.length) return
|
|
60
|
-
await T.modal.confirm(i("message.tip.del")) === "confirm" && (await u.delete(
|
|
58
|
+
if (a.children.length) return ee(i("message.deletePartment"));
|
|
59
|
+
await T.modal.confirm(i("message.tip.del")) === "confirm" && (await u.delete(h, a), w());
|
|
61
60
|
}, y = async (a) => {
|
|
62
61
|
if (await T.modal.confirm(i("message.tip.confirmSync")) === "confirm") {
|
|
63
|
-
const [n] = await
|
|
62
|
+
const [n] = await b(u.post("/uums/department/syncEwDepartment", { code: a }));
|
|
64
63
|
if (n) return;
|
|
65
64
|
w();
|
|
66
65
|
}
|
|
67
66
|
}, w = () => {
|
|
68
|
-
N.value = !0,
|
|
69
|
-
}, q = () => {
|
|
70
|
-
e.dataStatus === "add" && (e.dialogFormVisible = !1), e.dataStatus = "";
|
|
67
|
+
N.value = !0, te(i("message.operateSuccess")), q();
|
|
71
68
|
}, E = () => {
|
|
69
|
+
e.dataStatus === "add" && (e.dialogFormVisible = !1), e.dataStatus = "";
|
|
70
|
+
}, q = () => {
|
|
72
71
|
e.dialogFormVisible = !1;
|
|
73
72
|
};
|
|
74
73
|
return (a, t) => {
|
|
75
74
|
const n = m("ut-button"), x = m("vxe-toolbar"), _ = m("vxe-form-item"), I = m("vxe-form"), g = m("el-row"), j = m("vxe-checkbox"), B = m("el-card"), M = R("spinning");
|
|
76
|
-
return r(),
|
|
75
|
+
return r(), Y("div", ae, [
|
|
77
76
|
o(x, {
|
|
78
77
|
perfect: "",
|
|
79
78
|
class: ""
|
|
@@ -86,21 +85,21 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
|
|
|
86
85
|
auth: "add",
|
|
87
86
|
onTap: t[0] || (t[0] = (c) => A())
|
|
88
87
|
}),
|
|
89
|
-
v(
|
|
88
|
+
v(k)("wechat") ? (r(), l(n, {
|
|
90
89
|
key: 0,
|
|
91
90
|
status: "success",
|
|
92
91
|
icon: "ri-refresh-line",
|
|
93
92
|
content: "sync",
|
|
94
93
|
onTap: t[1] || (t[1] = (c) => y("wechat"))
|
|
95
94
|
})) : p("", !0),
|
|
96
|
-
v(
|
|
95
|
+
v(k)("dingding") ? (r(), l(n, {
|
|
97
96
|
key: 1,
|
|
98
97
|
status: "success",
|
|
99
98
|
icon: "ri-refresh-line",
|
|
100
99
|
content: "sync",
|
|
101
100
|
onTap: t[2] || (t[2] = (c) => y("dingding"))
|
|
102
101
|
})) : p("", !0),
|
|
103
|
-
v(
|
|
102
|
+
v(k)("OA") ? (r(), l(n, {
|
|
104
103
|
key: 2,
|
|
105
104
|
status: "success",
|
|
106
105
|
icon: "ri-refresh-line",
|
|
@@ -112,7 +111,7 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
|
|
|
112
111
|
icon: "ri-edit-box-line",
|
|
113
112
|
auth: "edit",
|
|
114
113
|
content: "edit",
|
|
115
|
-
onTap: t[4] || (t[4] = (c) =>
|
|
114
|
+
onTap: t[4] || (t[4] = (c) => C("update"))
|
|
116
115
|
}),
|
|
117
116
|
o(n, {
|
|
118
117
|
status: "danger",
|
|
@@ -124,7 +123,7 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
|
|
|
124
123
|
]),
|
|
125
124
|
_: 1
|
|
126
125
|
}),
|
|
127
|
-
e.dialogFormVisible ?
|
|
126
|
+
e.dialogFormVisible ? z((r(), l(g, {
|
|
128
127
|
key: 0,
|
|
129
128
|
type: "flex",
|
|
130
129
|
justify: "center",
|
|
@@ -192,7 +191,7 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
|
|
|
192
191
|
style: { "padding-top": "5px", "margin-right": "8px" }
|
|
193
192
|
}, {
|
|
194
193
|
default: d(() => [
|
|
195
|
-
|
|
194
|
+
G(J(a.$t("message.udp.continueAdd")), 1)
|
|
196
195
|
]),
|
|
197
196
|
_: 1
|
|
198
197
|
}, 8, ["modelValue"])) : p("", !0),
|
|
@@ -206,7 +205,7 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
|
|
|
206
205
|
key: 2,
|
|
207
206
|
status: "warning",
|
|
208
207
|
content: "cancel",
|
|
209
|
-
onClick:
|
|
208
|
+
onClick: E
|
|
210
209
|
})) : p("", !0)
|
|
211
210
|
]),
|
|
212
211
|
_: 1
|
|
@@ -243,7 +242,7 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
|
|
|
243
242
|
]);
|
|
244
243
|
};
|
|
245
244
|
}
|
|
246
|
-
}),
|
|
245
|
+
}), me = /* @__PURE__ */ Z(ne, [["__scopeId", "data-v-aafa42c0"]]);
|
|
247
246
|
export {
|
|
248
|
-
|
|
247
|
+
me as default
|
|
249
248
|
};
|