@utogether/udp-core 2.0.0-beta.24 → 2.0.0-beta.26
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-D6Wb3JJh.js +72 -0
- package/dist/404-B_HNbPNV.js +72 -0
- package/dist/500-BMemTTy1.js +77 -0
- package/dist/AuthorityInfo-6wHxwiFM.js +91 -0
- package/dist/AuthorityPanel-OqF_DvXA.js +98 -0
- package/dist/Company-BLXSfow0.js +21 -0
- package/dist/CompanyPanel-B4kRZ5Cg.js +199 -0
- package/dist/DataSet-CuGZcKC-.js +141 -0
- package/dist/Department-oFhsa7cd.js +21 -0
- package/dist/DepartmentPanel-B1UGpu-r.js +242 -0
- package/dist/DepartmentPanel-BL58AdoT.js +2 -0
- package/dist/DesignPanel-DmkFVw1N.js +1196 -0
- package/dist/DictView-CC5yMzOq.js +100 -0
- package/dist/File-WJXjGYxr.js +89 -0
- package/dist/InvOrganization-BwMmD8Ua.js +76 -0
- package/dist/Org-HgnOWubi.js +76 -0
- package/dist/Preview-CAzWxLmP.js +45 -0
- package/dist/ReIcon-DecitXmg.js +413 -0
- package/dist/ReportDefine-BgLM-Rjk.js +10 -0
- package/dist/ReportDesign-DwchGG2P.js +158 -0
- package/dist/ReportQuery-D5jaRJEn.js +101 -0
- package/dist/ReportQueryFrom-CNlmtYey.js +198 -0
- package/dist/ReportTemplate-CNcTmccs.js +162 -0
- package/dist/Role-Be8WfdCA.js +21 -0
- package/dist/RoleAssign-CtehGAUf.js +22 -0
- package/dist/RolePanel-CAwITg_q.js +131 -0
- package/dist/RolePanel-SN0FGFZ7.js +176 -0
- package/dist/ScrollPanel-DW30pGz1.js +88 -0
- package/dist/Staff-V2YsNKcj.js +22 -0
- package/dist/StaffInfo-CKRPW0r4.js +149 -0
- package/dist/StaffPanel-BxcgMg7u.js +143 -0
- package/dist/SysUser-Dxyj5w5m.js +12 -0
- package/dist/SysUserPanel-DI6CWcZo.js +365 -0
- package/dist/SystemMenu-BBHREM8T.js +154 -0
- package/dist/UserInfo-BMVQ0xwE.js +194 -0
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
- package/dist/api-BFNxcxSN.js +30 -0
- package/dist/authority-BJFEUdrh.js +20 -0
- package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
- package/dist/childView-BBjPEraB.js +184 -0
- package/dist/childView-DNqG2UVm.js +181 -0
- package/dist/code-rule-QFrhqFrW.js +151 -0
- package/dist/contant-Q77dU_V3.js +4 -0
- package/dist/core.es.js +6 -23
- package/dist/cron-task-BpUDKEAU.js +131 -0
- package/dist/flow-task-DAc2NrDU.js +11 -0
- package/dist/frameView-Di0zJZUR.js +39 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/layout-home-BVp7vYLR.js +239 -0
- package/dist/layoutView-B6Mx2ERA.js +2662 -0
- package/dist/log-in-BrNB0mLz.js +117 -0
- package/dist/log-out-dYfqvzy6.js +111 -0
- package/dist/login-D_Hjy3Jd.js +231 -0
- package/dist/login-log-CJak-ANA.js +79 -0
- package/dist/lov-view-DM5Nm5tW.js +95 -0
- package/dist/menuInfo-BlOY1KZW.js +346 -0
- package/dist/mitt-CQgI7DYU.js +27 -0
- package/dist/pda-app-CA7YI37u.js +589 -0
- package/dist/redirect-N0k4tImU.js +16 -0
- package/dist/resource-CfQTHFcs.js +94 -0
- package/dist/su-welcome-DVD3S_du.js +799 -0
- package/dist/sys-config-Ddb3vBpK.js +316 -0
- package/dist/system-Cm3lyBas.js +1528 -0
- package/dist/udp-core-DaQd5CF1.js +2028 -0
- package/dist/udp-core.css +2 -1
- package/dist/useDataThemeChange-DJ4K3VGp.js +226 -0
- package/dist/useNav-BhOJIdrJ.js +106 -0
- package/dist/utogether-l7JXs4Lv.js +4 -0
- package/dist/water-mark-WDQZ9YqB.js +119 -0
- package/dist/wecom-push-kWkAVRCj.js +77 -0
- package/package.json +1 -1
- package/src/App.vue +5 -0
- package/src/api/index.ts +51 -51
- package/src/components/udp/grid/index.vue +9 -11
- package/src/components/udp/index.ts +9 -8
- package/src/components/udp/lov/index.vue +430 -0
- package/src/components/udp/upload/index.vue +444 -444
- package/src/components/udp/utils.ts +420 -414
- package/src/main.ts +4 -6
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +999 -998
- package/src/router/utils.ts +2 -3
- package/src/views/login/login-view.vue +297 -301
- package/src/views/ulogin/login.vue +3 -32
- package/tsconfig.json +1 -1
- package/vite.config.ts +8 -3
- package/dist/403-DDCAPCYb.js +0 -65
- package/dist/404-BclWW4UB.js +0 -65
- package/dist/500-BAggMgTl.js +0 -67
- package/dist/AuthorityInfo-liCxYVNc.js +0 -4
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js +0 -100
- package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
- package/dist/Company-DjaOAaWM.js +0 -25
- package/dist/CompanyPanel-Dp_2z717.js +0 -206
- package/dist/DataSet-DT-rGICv.js +0 -147
- package/dist/Department-Bp5RGbl9.js +0 -25
- package/dist/DepartmentPanel-Bg4xM4Lx.js +0 -254
- package/dist/DesignPanel-BS2ioHd_.js +0 -4
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DWwfRVCj.js +0 -1013
- package/dist/DictView-pYJXt6IS.js +0 -111
- package/dist/InvOrganization-D90gRzlN.js +0 -74
- package/dist/Org-Dk4KuIx2.js +0 -39
- package/dist/Preview-DpZR6uKs.js +0 -48
- package/dist/ReportDefine-PtJnfaLw.js +0 -10
- package/dist/ReportDesign-4HWkcTtA.js +0 -165
- package/dist/ReportQuery-BPY1lWFn.js +0 -75
- package/dist/ReportQueryFrom-CHFlkZ42.js +0 -4
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DbbQydKz.js +0 -178
- package/dist/ReportTemplate-C2F3oy8I.js +0 -161
- package/dist/Role-iTP6DYOi.js +0 -25
- package/dist/RoleAssign-DIYNHQeF.js +0 -26
- package/dist/RolePanel-0ojFIz9G.js +0 -4
- package/dist/RolePanel-B0Yr5vjo.js +0 -4
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js +0 -154
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js +0 -101
- package/dist/Staff-sftZ0bIV.js +0 -26
- package/dist/StaffInfo-BG2FMXzR.js +0 -4
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js +0 -108
- package/dist/StaffPanel-BydqiitC.js +0 -4
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js +0 -154
- package/dist/SysUser-qMGVHpJ_.js +0 -15
- package/dist/SysUserPanel-Bh1HgSAr.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js +0 -356
- package/dist/SystemMenu-DUbWmLip.js +0 -156
- package/dist/UserInfo-DNkiTdWm.js +0 -4
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js +0 -160
- package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
- package/dist/childView-CjUjh8Da.js +0 -4
- package/dist/childView-DT9luEEK.js +0 -4
- package/dist/childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js +0 -183
- package/dist/childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js +0 -143
- package/dist/code-rule-uOazxFfn.js +0 -148
- package/dist/cron-task-DEykunjo.js +0 -135
- package/dist/flow-task-B07st2aD.js +0 -10
- package/dist/frameView-FxzlbkeM.js +0 -44
- package/dist/index-BnxyUGKa.js +0 -7944
- package/dist/layout-home-C0jme8Ju.js +0 -232
- package/dist/layoutView-BqMAHIxF.js +0 -3239
- package/dist/log-in-skZaWMBY.js +0 -117
- package/dist/log-out-BiND7muW.js +0 -130
- package/dist/login-C-184YPO.js +0 -235
- package/dist/login-log-BEHYT0v0.js +0 -70
- package/dist/lov-view-Df-swRfy.js +0 -99
- package/dist/menuInfo-CpyjX4a4.js +0 -4
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-D09-OKji.js +0 -363
- package/dist/pda-app-DP87aTBc.js +0 -710
- package/dist/redirect-BqegffKC.js +0 -15
- package/dist/resource-CAldbnw4.js +0 -97
- package/dist/su-welcome-DoBUqadB.js +0 -42225
- package/dist/sys-config-hGuE7DUf.js +0 -385
- package/dist/useNav-Cf_e5pBY.js +0 -92
- package/dist/utogether-MlnyYtNS.js +0 -4
- package/dist/wecom-push-DR7NsNro.js +0 -70
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, reactive as j, inject as w, watch as B, resolveComponent as i, createElementBlock as E, openBlock as l, createVNode as s, createBlock as c, withCtx as d, createElementVNode as n, createCommentVNode as v, createTextVNode as D, toDisplayString as L } from "vue";
|
|
2
|
-
import { useI18n as M } from "vue-i18n";
|
|
3
|
-
import { VxeUI as U } from "vxe-table";
|
|
4
|
-
import { templateRef as R } from "@vueuse/core";
|
|
5
|
-
import { clone as z } from "xe-utils";
|
|
6
|
-
import { warnMessage as G, successMessage as H } from "@utogether/utils";
|
|
7
|
-
import { i as J, _ as K } from "./index-BnxyUGKa.js";
|
|
8
|
-
const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
|
|
9
|
-
__name: "CompanyPanel",
|
|
10
|
-
setup(W) {
|
|
11
|
-
const e = j({
|
|
12
|
-
record: {},
|
|
13
|
-
dataList: [],
|
|
14
|
-
submitLoading: !1,
|
|
15
|
-
dialogFormVisible: !1,
|
|
16
|
-
isChecked: !1,
|
|
17
|
-
dataStatus: ""
|
|
18
|
-
}), { t: r } = M(), k = {
|
|
19
|
-
unitName: [
|
|
20
|
-
{
|
|
21
|
-
required: !0,
|
|
22
|
-
message: `${r("message.required")}${r("message.udp.unitName")}`
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
unitCode: [
|
|
26
|
-
{
|
|
27
|
-
required: !0,
|
|
28
|
-
message: `${r("message.required")}${r("message.udp.unitCode")}`
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}, m = w("active"), $ = w("scrollPanelChange"), f = J();
|
|
32
|
-
B(
|
|
33
|
-
() => m.value,
|
|
34
|
-
(t, a) => {
|
|
35
|
-
e.record = m.value, t != null && t.id && (a != null && a.id) && t !== a && x("detail");
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
const S = () => {
|
|
39
|
-
var t;
|
|
40
|
-
e.dataStatus = "add", e.record = {}, e.record.parentId = (t = m.value) == null ? void 0 : t.id, e.isChecked = !1, e.dialogFormVisible = !0;
|
|
41
|
-
}, x = (t) => {
|
|
42
|
-
e.dataStatus = t, e.record = z(m.value, !0), e.dialogFormVisible = !0;
|
|
43
|
-
}, b = R("xForm", null), h = () => {
|
|
44
|
-
b.value.validate(async (t) => {
|
|
45
|
-
if (!t) {
|
|
46
|
-
const { record: a, dataStatus: o } = e;
|
|
47
|
-
o === "add" ? await f.post(_, a) : await f.put(_, a), y();
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}, N = async () => {
|
|
51
|
-
var o;
|
|
52
|
-
const { record: t } = e;
|
|
53
|
-
if ((o = t.children) != null && o.length) return G(r("message.deletePartment"));
|
|
54
|
-
await U.modal.confirm(r("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(_, t), y());
|
|
55
|
-
}, y = () => {
|
|
56
|
-
$.value = !0, H(r("message.operateSuccess")), I();
|
|
57
|
-
}, F = () => {
|
|
58
|
-
e.dialogFormVisible = !1, e.dataStatus = "";
|
|
59
|
-
}, I = () => {
|
|
60
|
-
e.dialogFormVisible = !1;
|
|
61
|
-
};
|
|
62
|
-
return (t, a) => {
|
|
63
|
-
const o = i("ut-button"), P = i("vxe-toolbar"), g = i("vxe-form-item"), q = i("vxe-form"), u = i("el-row"), A = i("vxe-checkbox"), C = i("vxe-button"), T = i("el-card");
|
|
64
|
-
return l(), E("div", O, [
|
|
65
|
-
s(P, {
|
|
66
|
-
perfect: "",
|
|
67
|
-
class: ""
|
|
68
|
-
}, {
|
|
69
|
-
buttons: d(() => [
|
|
70
|
-
s(o, {
|
|
71
|
-
status: "u-cyan",
|
|
72
|
-
icon: "ri-add-line",
|
|
73
|
-
content: "add",
|
|
74
|
-
onTap: a[0] || (a[0] = (p) => S())
|
|
75
|
-
}),
|
|
76
|
-
s(o, {
|
|
77
|
-
status: "primary",
|
|
78
|
-
icon: "ri-edit-box-line",
|
|
79
|
-
content: "edit",
|
|
80
|
-
onTap: a[1] || (a[1] = (p) => x("update"))
|
|
81
|
-
}),
|
|
82
|
-
s(o, {
|
|
83
|
-
status: "danger",
|
|
84
|
-
icon: "ri-close-fill",
|
|
85
|
-
content: "delete",
|
|
86
|
-
onTap: a[2] || (a[2] = (p) => N())
|
|
87
|
-
})
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}),
|
|
91
|
-
e.dialogFormVisible ? (l(), c(u, {
|
|
92
|
-
key: 0,
|
|
93
|
-
type: "flex",
|
|
94
|
-
justify: "center",
|
|
95
|
-
align: "middle",
|
|
96
|
-
class: "w-departInfo-wrapper"
|
|
97
|
-
}, {
|
|
98
|
-
default: d(() => [
|
|
99
|
-
s(T, {
|
|
100
|
-
width: "60%",
|
|
101
|
-
shadow: "always",
|
|
102
|
-
class: "box-card w-card-wrapper"
|
|
103
|
-
}, {
|
|
104
|
-
default: d(() => [
|
|
105
|
-
a[4] || (a[4] = n("div", { class: "clearfix" }, [
|
|
106
|
-
n("span", { class: "w-card-title" })
|
|
107
|
-
], -1)),
|
|
108
|
-
s(u, null, {
|
|
109
|
-
default: d(() => [
|
|
110
|
-
s(q, {
|
|
111
|
-
ref_key: "xForm",
|
|
112
|
-
ref: b,
|
|
113
|
-
data: e.record,
|
|
114
|
-
rules: k,
|
|
115
|
-
"label-width": "80px"
|
|
116
|
-
}, {
|
|
117
|
-
default: d(() => [
|
|
118
|
-
s(g, {
|
|
119
|
-
title: t.$t("message.udp.unitName"),
|
|
120
|
-
field: "unitName",
|
|
121
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
122
|
-
span: 24
|
|
123
|
-
}, null, 8, ["title", "item-render"]),
|
|
124
|
-
s(g, {
|
|
125
|
-
title: t.$t("message.udp.unitCode"),
|
|
126
|
-
field: "unitCode",
|
|
127
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
|
|
128
|
-
span: 24
|
|
129
|
-
}, null, 8, ["title", "item-render"]),
|
|
130
|
-
s(g, {
|
|
131
|
-
title: t.$t("message.udp.unitNote"),
|
|
132
|
-
field: "unitNote",
|
|
133
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
134
|
-
span: 24
|
|
135
|
-
}, null, 8, ["title", "item-render"])
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["data"])
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
}),
|
|
142
|
-
s(u, {
|
|
143
|
-
type: "flex",
|
|
144
|
-
justify: "center"
|
|
145
|
-
}, {
|
|
146
|
-
default: d(() => [
|
|
147
|
-
e.dataStatus === "add" ? (l(), c(A, {
|
|
148
|
-
key: 0,
|
|
149
|
-
modelValue: e.isChecked,
|
|
150
|
-
"onUpdate:modelValue": a[3] || (a[3] = (p) => e.isChecked = p),
|
|
151
|
-
style: { "padding-top": "5px", "margin-right": "8px" }
|
|
152
|
-
}, {
|
|
153
|
-
default: d(() => [
|
|
154
|
-
D(L(t.$t("message.udp.continueAdd")), 1)
|
|
155
|
-
]),
|
|
156
|
-
_: 1
|
|
157
|
-
}, 8, ["modelValue"])) : v("", !0),
|
|
158
|
-
e.dataStatus !== "detail" ? (l(), c(C, {
|
|
159
|
-
key: 1,
|
|
160
|
-
status: "primary",
|
|
161
|
-
content: t.$t("message.btn.confirm"),
|
|
162
|
-
onClick: h
|
|
163
|
-
}, null, 8, ["content"])) : v("", !0),
|
|
164
|
-
e.dataStatus !== "detail" ? (l(), c(C, {
|
|
165
|
-
key: 2,
|
|
166
|
-
status: "warning",
|
|
167
|
-
content: t.$t("message.btn.cancel"),
|
|
168
|
-
onClick: F
|
|
169
|
-
}, null, 8, ["content"])) : v("", !0)
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
})
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
})
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
})) : (l(), c(u, {
|
|
179
|
-
key: 1,
|
|
180
|
-
class: "w-noclick-wrapper"
|
|
181
|
-
}, {
|
|
182
|
-
default: d(() => a[5] || (a[5] = [
|
|
183
|
-
n("div", { class: "w-content-wrapper" }, [
|
|
184
|
-
n("ul", null, [
|
|
185
|
-
n("li", { class: "w-department-line" }, [
|
|
186
|
-
n("div", null, "● 点击新建,新建租户信息。"),
|
|
187
|
-
n("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的租户名称,默认创建为当前租户的下属租户 "),
|
|
188
|
-
n("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的租户名称,则创建为一级租户")
|
|
189
|
-
]),
|
|
190
|
-
n("li", { class: "w-department-line" }, "● 点击树结构上的租户名称,点击修改按钮,修改租户信息。"),
|
|
191
|
-
n("li", { class: "w-department-line" }, [
|
|
192
|
-
n("div", null, "● 点击树结构上的租户名称,点击删除按钮,删除租户信息。"),
|
|
193
|
-
n("div", { style: { "text-indent": "2em" } }, "当租户下有单位存在时,不允许删除租户信息。")
|
|
194
|
-
])
|
|
195
|
-
])
|
|
196
|
-
], -1)
|
|
197
|
-
])),
|
|
198
|
-
_: 1
|
|
199
|
-
}))
|
|
200
|
-
]);
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
}), se = /* @__PURE__ */ K(Q, [["__scopeId", "data-v-bc1a230e"]]);
|
|
204
|
-
export {
|
|
205
|
-
se as default
|
|
206
|
-
};
|
package/dist/DataSet-DT-rGICv.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, ref as o, reactive as E, createVNode as d, Fragment as u, resolveComponent as n, createElementBlock as C, openBlock as m, createBlock as v, createCommentVNode as k } from "vue";
|
|
2
|
-
import { useRender as w } from "@utogether/utils";
|
|
3
|
-
import { clone as b } from "xe-utils";
|
|
4
|
-
const I = {
|
|
5
|
-
name: "DataSet"
|
|
6
|
-
}, q = /* @__PURE__ */ _({
|
|
7
|
-
...I,
|
|
8
|
-
setup(g) {
|
|
9
|
-
const a = o(null), i = o({}), t = w(), r = E({
|
|
10
|
-
paramExt: {},
|
|
11
|
-
showChild: !1
|
|
12
|
-
}), c = [{
|
|
13
|
-
field: "dataSetCode"
|
|
14
|
-
}, {
|
|
15
|
-
field: "dataSetName"
|
|
16
|
-
}], l = [{
|
|
17
|
-
type: "checkbox",
|
|
18
|
-
width: 50,
|
|
19
|
-
align: "center"
|
|
20
|
-
}, {
|
|
21
|
-
field: "dataSetCode",
|
|
22
|
-
required: !0,
|
|
23
|
-
width: 150,
|
|
24
|
-
editRender: t.renderSelect({
|
|
25
|
-
optionProps: {
|
|
26
|
-
label: "templateCode",
|
|
27
|
-
value: "templateCode"
|
|
28
|
-
},
|
|
29
|
-
props: {
|
|
30
|
-
code: "SYS075",
|
|
31
|
-
fetchField: "templateCode"
|
|
32
|
-
}
|
|
33
|
-
})
|
|
34
|
-
}, {
|
|
35
|
-
field: "dataSetName",
|
|
36
|
-
required: !0,
|
|
37
|
-
width: 150,
|
|
38
|
-
editRender: t.renderInput()
|
|
39
|
-
}, {
|
|
40
|
-
field: "dataSetType",
|
|
41
|
-
required: !0,
|
|
42
|
-
editRender: t.renderDict("SU.DATASET.TYPE"),
|
|
43
|
-
formatter: ["formatDict", "SU.DATASET.TYPE"]
|
|
44
|
-
}, {
|
|
45
|
-
field: "dataSetUrl",
|
|
46
|
-
width: 180,
|
|
47
|
-
required: !0,
|
|
48
|
-
editRender: t.renderInput()
|
|
49
|
-
}, {
|
|
50
|
-
field: "remark",
|
|
51
|
-
minWidth: 80,
|
|
52
|
-
editRender: t.renderInput()
|
|
53
|
-
}, {
|
|
54
|
-
field: "enabled",
|
|
55
|
-
width: 80,
|
|
56
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
57
|
-
}, {
|
|
58
|
-
field: "operate",
|
|
59
|
-
width: 150,
|
|
60
|
-
slots: {
|
|
61
|
-
default: ({
|
|
62
|
-
row: e
|
|
63
|
-
}) => e.id ? [
|
|
64
|
-
d(u, null, [d(n("ut-button"), {
|
|
65
|
-
icon: "ri-save-3-fill",
|
|
66
|
-
content: "paramSet",
|
|
67
|
-
onClick: () => s(e)
|
|
68
|
-
}, null)])
|
|
69
|
-
// <ut-button row={row} onTap={() => handleClick(row)} />
|
|
70
|
-
] : null
|
|
71
|
-
}
|
|
72
|
-
}], f = [{
|
|
73
|
-
type: "checkbox",
|
|
74
|
-
width: 50,
|
|
75
|
-
align: "center"
|
|
76
|
-
}, {
|
|
77
|
-
field: "seqNo",
|
|
78
|
-
editRender: t.renderInput({
|
|
79
|
-
props: {
|
|
80
|
-
type: "number"
|
|
81
|
-
}
|
|
82
|
-
})
|
|
83
|
-
}, {
|
|
84
|
-
field: "paramCode",
|
|
85
|
-
editRender: t.renderInput()
|
|
86
|
-
}, {
|
|
87
|
-
field: "paramName",
|
|
88
|
-
editRender: t.renderInput()
|
|
89
|
-
}, {
|
|
90
|
-
field: "defaultValue",
|
|
91
|
-
editRender: t.renderInput()
|
|
92
|
-
}, {
|
|
93
|
-
field: "isRequired",
|
|
94
|
-
required: !0,
|
|
95
|
-
editRender: t.renderDict("SU.WHETHER"),
|
|
96
|
-
formatter: ["formatDict", "SU.WHETHER"]
|
|
97
|
-
}, {
|
|
98
|
-
field: "remark",
|
|
99
|
-
width: 100,
|
|
100
|
-
editRender: t.renderInput()
|
|
101
|
-
}, {
|
|
102
|
-
field: "operate",
|
|
103
|
-
width: 80,
|
|
104
|
-
fixed: "right",
|
|
105
|
-
slots: {
|
|
106
|
-
default: ({
|
|
107
|
-
row: e
|
|
108
|
-
}) => e.id ? [d(u, null, [d(n("ut-button"), {
|
|
109
|
-
row: e
|
|
110
|
-
}, null)])] : null
|
|
111
|
-
}
|
|
112
|
-
}], s = (e) => {
|
|
113
|
-
i.value = b(e, !0), r.paramExt = {
|
|
114
|
-
dataSetId: e.id
|
|
115
|
-
}, r.showChild = !0;
|
|
116
|
-
}, p = {
|
|
117
|
-
editActived({
|
|
118
|
-
row: e,
|
|
119
|
-
column: h
|
|
120
|
-
}) {
|
|
121
|
-
e.id && (l[1].editRender.props.disabled = !0, a.value.refreshColumn());
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
return (e, h) => {
|
|
125
|
-
const S = n("ut-grid"), R = n("ut-modal-grif");
|
|
126
|
-
return m(), C("div", null, [d(S, {
|
|
127
|
-
ref_key: "SuGridRef",
|
|
128
|
-
ref: a,
|
|
129
|
-
items: c,
|
|
130
|
-
columns: l,
|
|
131
|
-
events: p
|
|
132
|
-
}, null, 512), r.showChild ? (m(), v(R, {
|
|
133
|
-
key: 0,
|
|
134
|
-
record: i.value,
|
|
135
|
-
"default-value": r.paramExt,
|
|
136
|
-
"default-params": r.paramExt,
|
|
137
|
-
columns: f,
|
|
138
|
-
title: e.$t("message.paramSet"),
|
|
139
|
-
editable: !0,
|
|
140
|
-
width: "60%"
|
|
141
|
-
}, null, 8, ["record", "default-value", "default-params", "title"])) : k("", !0)]);
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
export {
|
|
146
|
-
q as default
|
|
147
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as m, createElementVNode as n, createVNode as a } from "vue";
|
|
2
|
-
import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js";
|
|
3
|
-
import _ from "./DepartmentPanel-Bg4xM4Lx.js";
|
|
4
|
-
import { _ as d } from "./index-BnxyUGKa.js";
|
|
5
|
-
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ l({
|
|
6
|
-
__name: "Department",
|
|
7
|
-
setup(D) {
|
|
8
|
-
const o = e({}), r = e(!1), s = e([]);
|
|
9
|
-
return t("active", o), t("scrollPanelChange", r), t("treeList", s), (c, C) => (m(), i("div", f, [
|
|
10
|
-
n("div", u, [
|
|
11
|
-
a(p, {
|
|
12
|
-
title: c.$t("department"),
|
|
13
|
-
url: "/uums/department/treeDepartment",
|
|
14
|
-
"tree-otions": { children: "children", label: "deptName" }
|
|
15
|
-
}, null, 8, ["title"])
|
|
16
|
-
]),
|
|
17
|
-
n("div", h, [
|
|
18
|
-
a(_)
|
|
19
|
-
])
|
|
20
|
-
]));
|
|
21
|
-
}
|
|
22
|
-
}), k = /* @__PURE__ */ d(v, [["__scopeId", "data-v-a043aab6"]]);
|
|
23
|
-
export {
|
|
24
|
-
k as default
|
|
25
|
-
};
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, reactive as O, inject as $, watch as R, resolveComponent as m, resolveDirective as H, createElementBlock as L, openBlock as d, createVNode as o, withDirectives as Y, createBlock as l, withCtx as c, createCommentVNode as p, unref as v, createElementVNode as s, createTextVNode as z, toDisplayString as G } from "vue";
|
|
2
|
-
import { useI18n as J } from "vue-i18n";
|
|
3
|
-
import { templateRef as K } from "@vueuse/core";
|
|
4
|
-
import { clone as Q } from "xe-utils";
|
|
5
|
-
import { t as k } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
6
|
-
import { VxeUI as T } from "vxe-table";
|
|
7
|
-
import { warnMessage as W, successMessage as X } from "@utogether/utils";
|
|
8
|
-
import { h as Z, x as b, i as ee, _ as te } from "./index-BnxyUGKa.js";
|
|
9
|
-
const ae = { class: "page-content" }, h = "/uums/department", ne = /* @__PURE__ */ U({
|
|
10
|
-
__name: "DepartmentPanel",
|
|
11
|
-
setup(se) {
|
|
12
|
-
const e = O({
|
|
13
|
-
record: {},
|
|
14
|
-
dataList: [],
|
|
15
|
-
loading: !1,
|
|
16
|
-
dialogFormVisible: !1,
|
|
17
|
-
isChecked: !1,
|
|
18
|
-
dataStatus: ""
|
|
19
|
-
}), D = Z().getDataDict, { t: i } = J(), u = ee(), N = {
|
|
20
|
-
deptName: [
|
|
21
|
-
{
|
|
22
|
-
required: !0,
|
|
23
|
-
message: `${i("message.required")}${i("message.deptName")}`
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
deptCode: [
|
|
27
|
-
{
|
|
28
|
-
required: !0,
|
|
29
|
-
message: `${i("message.required")}${i("message.deptCode")}`
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
deptType: [
|
|
33
|
-
{
|
|
34
|
-
required: !0,
|
|
35
|
-
message: `${i("message.required")}${i("message.deptType")}`
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
}, f = $("active"), A = $("scrollPanelChange");
|
|
39
|
-
R(
|
|
40
|
-
() => f.value,
|
|
41
|
-
(a, t) => {
|
|
42
|
-
e.record = f.value, a != null && a.id && (t != null && t.id) && a !== t && C("detail");
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
const F = () => {
|
|
46
|
-
var a;
|
|
47
|
-
e.dataStatus = "add", e.record = {}, e.record.parentId = (a = f.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
|
|
48
|
-
}, C = (a) => {
|
|
49
|
-
e.dataStatus = a, e.record = Q(f.value, !0), e.dialogFormVisible = !0;
|
|
50
|
-
}, S = K("xForm", null), P = () => {
|
|
51
|
-
S.value.validate(async (a) => {
|
|
52
|
-
if (!a) {
|
|
53
|
-
const { record: t, dataStatus: n } = e;
|
|
54
|
-
e.loading = !0;
|
|
55
|
-
const [x] = n === "add" ? await k(u.post(h, t)) : await k(u.put(h, t));
|
|
56
|
-
e.loading = !1, x || w();
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}, E = async () => {
|
|
60
|
-
const { record: a } = e;
|
|
61
|
-
if (a.children.length) return W(i("message.deletePartment"));
|
|
62
|
-
await T.modal.confirm(i("message.tip.del")) === "confirm" && (await u.delete(h, a), w());
|
|
63
|
-
}, y = async (a) => {
|
|
64
|
-
if (await T.modal.confirm(i("message.tip.confirmSync")) === "confirm") {
|
|
65
|
-
const [n] = await k(u.post("/uums/department/syncEwDepartment", { code: a }));
|
|
66
|
-
if (n) return;
|
|
67
|
-
w();
|
|
68
|
-
}
|
|
69
|
-
}, w = () => {
|
|
70
|
-
A.value = !0, X(i("message.operateSuccess")), I();
|
|
71
|
-
}, q = () => {
|
|
72
|
-
e.dataStatus === "add" && (e.dialogFormVisible = !1), e.dataStatus = "";
|
|
73
|
-
}, I = () => {
|
|
74
|
-
e.dialogFormVisible = !1;
|
|
75
|
-
};
|
|
76
|
-
return (a, t) => {
|
|
77
|
-
const n = m("ut-button"), x = m("vxe-toolbar"), _ = m("vxe-form-item"), V = m("vxe-form"), g = m("el-row"), j = m("vxe-checkbox"), B = m("el-card"), M = H("spinning");
|
|
78
|
-
return d(), L("div", ae, [
|
|
79
|
-
o(x, {
|
|
80
|
-
perfect: "",
|
|
81
|
-
class: ""
|
|
82
|
-
}, {
|
|
83
|
-
buttons: c(() => [
|
|
84
|
-
o(n, {
|
|
85
|
-
status: "u-cyan",
|
|
86
|
-
icon: "ri-add-line",
|
|
87
|
-
content: "add",
|
|
88
|
-
auth: "add",
|
|
89
|
-
onTap: t[0] || (t[0] = (r) => F())
|
|
90
|
-
}),
|
|
91
|
-
v(b)("wechat") ? (d(), l(n, {
|
|
92
|
-
key: 0,
|
|
93
|
-
status: "success",
|
|
94
|
-
icon: "ri-refresh-line",
|
|
95
|
-
content: "sync",
|
|
96
|
-
onTap: t[1] || (t[1] = (r) => y("wechat"))
|
|
97
|
-
})) : p("", !0),
|
|
98
|
-
v(b)("dingding") ? (d(), l(n, {
|
|
99
|
-
key: 1,
|
|
100
|
-
status: "success",
|
|
101
|
-
icon: "ri-refresh-line",
|
|
102
|
-
content: "sync",
|
|
103
|
-
onTap: t[2] || (t[2] = (r) => y("dingding"))
|
|
104
|
-
})) : p("", !0),
|
|
105
|
-
v(b)("OA") ? (d(), l(n, {
|
|
106
|
-
key: 2,
|
|
107
|
-
status: "success",
|
|
108
|
-
icon: "ri-refresh-line",
|
|
109
|
-
content: "sync",
|
|
110
|
-
onTap: t[3] || (t[3] = (r) => y("OA"))
|
|
111
|
-
})) : p("", !0),
|
|
112
|
-
o(n, {
|
|
113
|
-
status: "primary",
|
|
114
|
-
icon: "ri-edit-box-line",
|
|
115
|
-
auth: "edit",
|
|
116
|
-
content: "edit",
|
|
117
|
-
onTap: t[4] || (t[4] = (r) => C("update"))
|
|
118
|
-
}),
|
|
119
|
-
o(n, {
|
|
120
|
-
status: "danger",
|
|
121
|
-
icon: "ri-close-fill",
|
|
122
|
-
auth: "del",
|
|
123
|
-
content: "delete",
|
|
124
|
-
onTap: t[5] || (t[5] = (r) => E())
|
|
125
|
-
})
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
}),
|
|
129
|
-
e.dialogFormVisible ? Y((d(), l(g, {
|
|
130
|
-
key: 0,
|
|
131
|
-
type: "flex",
|
|
132
|
-
justify: "center",
|
|
133
|
-
align: "middle",
|
|
134
|
-
class: "w-departInfo-wrapper"
|
|
135
|
-
}, {
|
|
136
|
-
default: c(() => [
|
|
137
|
-
o(B, {
|
|
138
|
-
width: "60%",
|
|
139
|
-
shadow: "always",
|
|
140
|
-
class: "box-card w-card-wrapper"
|
|
141
|
-
}, {
|
|
142
|
-
default: c(() => [
|
|
143
|
-
t[7] || (t[7] = s("div", { class: "clearfix" }, [
|
|
144
|
-
s("span", { class: "w-card-title" })
|
|
145
|
-
], -1)),
|
|
146
|
-
o(g, null, {
|
|
147
|
-
default: c(() => [
|
|
148
|
-
o(V, {
|
|
149
|
-
ref_key: "xForm",
|
|
150
|
-
ref: S,
|
|
151
|
-
data: e.record,
|
|
152
|
-
rules: N,
|
|
153
|
-
"label-width": "90px"
|
|
154
|
-
}, {
|
|
155
|
-
default: c(() => {
|
|
156
|
-
var r;
|
|
157
|
-
return [
|
|
158
|
-
o(_, {
|
|
159
|
-
title: a.$t("message.deptName"),
|
|
160
|
-
field: "deptName",
|
|
161
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
162
|
-
span: 24
|
|
163
|
-
}, null, 8, ["title", "item-render"]),
|
|
164
|
-
o(_, {
|
|
165
|
-
title: a.$t("message.deptCode"),
|
|
166
|
-
field: "deptCode",
|
|
167
|
-
"item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
|
|
168
|
-
span: 24
|
|
169
|
-
}, null, 8, ["title", "item-render"]),
|
|
170
|
-
o(_, {
|
|
171
|
-
title: a.$t("message.deptType"),
|
|
172
|
-
field: "deptType",
|
|
173
|
-
"item-render": {
|
|
174
|
-
name: "$select",
|
|
175
|
-
options: (r = v(D)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : r.children,
|
|
176
|
-
optionProps: { label: "dictName", value: "dictCode" },
|
|
177
|
-
props: { disabled: e.dataStatus === "detail" }
|
|
178
|
-
},
|
|
179
|
-
span: 24
|
|
180
|
-
}, null, 8, ["title", "item-render"])
|
|
181
|
-
];
|
|
182
|
-
}),
|
|
183
|
-
_: 1
|
|
184
|
-
}, 8, ["data"])
|
|
185
|
-
]),
|
|
186
|
-
_: 1
|
|
187
|
-
}),
|
|
188
|
-
o(g, {
|
|
189
|
-
type: "flex",
|
|
190
|
-
justify: "center"
|
|
191
|
-
}, {
|
|
192
|
-
default: c(() => [
|
|
193
|
-
e.dataStatus === "add" ? (d(), l(j, {
|
|
194
|
-
key: 0,
|
|
195
|
-
modelValue: e.isChecked,
|
|
196
|
-
"onUpdate:modelValue": t[6] || (t[6] = (r) => e.isChecked = r),
|
|
197
|
-
style: { "padding-top": "5px", "margin-right": "8px" }
|
|
198
|
-
}, {
|
|
199
|
-
default: c(() => [
|
|
200
|
-
z(G(a.$t("message.udp.continueAdd")), 1)
|
|
201
|
-
]),
|
|
202
|
-
_: 1
|
|
203
|
-
}, 8, ["modelValue"])) : p("", !0),
|
|
204
|
-
e.dataStatus !== "detail" ? (d(), l(n, {
|
|
205
|
-
key: 1,
|
|
206
|
-
status: "primary",
|
|
207
|
-
content: "confirm",
|
|
208
|
-
onTap: P
|
|
209
|
-
})) : p("", !0),
|
|
210
|
-
e.dataStatus !== "detail" ? (d(), l(n, {
|
|
211
|
-
key: 2,
|
|
212
|
-
status: "warning",
|
|
213
|
-
content: "cancel",
|
|
214
|
-
onClick: q
|
|
215
|
-
})) : p("", !0)
|
|
216
|
-
]),
|
|
217
|
-
_: 1
|
|
218
|
-
})
|
|
219
|
-
]),
|
|
220
|
-
_: 1
|
|
221
|
-
})
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
})), [
|
|
225
|
-
[M, e.loading]
|
|
226
|
-
]) : (d(), l(g, {
|
|
227
|
-
key: 1,
|
|
228
|
-
class: "w-noclick-wrapper"
|
|
229
|
-
}, {
|
|
230
|
-
default: c(() => t[8] || (t[8] = [
|
|
231
|
-
s("div", { class: "w-content-wrapper" }, [
|
|
232
|
-
s("ul", null, [
|
|
233
|
-
s("li", { class: "w-department-line" }, [
|
|
234
|
-
s("div", null, "● 点击新建,新建部门信息。"),
|
|
235
|
-
s("div", { style: { margin: "0", "text-indent": "2em" } }, "已点击树结构上的部门名称,默认创建为当前部门的下属部门"),
|
|
236
|
-
s("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的部门名称,则创建为一级部门")
|
|
237
|
-
]),
|
|
238
|
-
s("li", { class: "w-department-line" }, "● 点击树结构上的部门名称,点击修改按钮,修改部门信息。"),
|
|
239
|
-
s("li", { class: "w-department-line" }, [
|
|
240
|
-
s("div", null, "● 点击树结构上的部门名称,点击删除按钮,删除部门信息。"),
|
|
241
|
-
s("div", { style: { "text-indent": "2em" } }, "当部门下有人员存在时,不允许删除部门信息。")
|
|
242
|
-
])
|
|
243
|
-
])
|
|
244
|
-
], -1)
|
|
245
|
-
])),
|
|
246
|
-
_: 1
|
|
247
|
-
}))
|
|
248
|
-
]);
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
}), ue = /* @__PURE__ */ te(ne, [["__scopeId", "data-v-7c92a83d"]]);
|
|
252
|
-
export {
|
|
253
|
-
ue as default
|
|
254
|
-
};
|