@utogether/udp-core 2.0.0-beta.24 → 2.0.0-beta.25
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-QwBKrRZE.js +72 -0
- package/dist/404-Cr7MbzNV.js +72 -0
- package/dist/500-B7kCOeIA.js +77 -0
- package/dist/AuthorityInfo-Dwml2K4S.js +91 -0
- package/dist/AuthorityPanel-DzPhsPpa.js +98 -0
- package/dist/Company-BhOlvl7Q.js +21 -0
- package/dist/CompanyPanel-ByhY5-Sq.js +199 -0
- package/dist/DataSet-CuGZcKC-.js +141 -0
- package/dist/Department-QvngN63N.js +21 -0
- package/dist/DepartmentPanel-BCXqC39J.js +2 -0
- package/dist/DepartmentPanel-DntGycxr.js +242 -0
- package/dist/DesignPanel-BMN4DZ0R.js +1196 -0
- package/dist/DictView-ERFqZ5VD.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-CVZdnHB1.js +45 -0
- package/dist/ReIcon-DecitXmg.js +413 -0
- package/dist/ReportDefine-BgLM-Rjk.js +10 -0
- package/dist/ReportDesign-CjfTyyy_.js +158 -0
- package/dist/ReportQuery-CP-E0Puv.js +101 -0
- package/dist/ReportQueryFrom-D7SPPAps.js +198 -0
- package/dist/ReportTemplate-DE25zc1f.js +162 -0
- package/dist/Role-K7v_ZhFE.js +21 -0
- package/dist/RoleAssign-C16fjLaX.js +22 -0
- package/dist/RolePanel-CV-xPlYJ.js +176 -0
- package/dist/RolePanel-DPCe9k8f.js +131 -0
- package/dist/ScrollPanel-DW30pGz1.js +88 -0
- package/dist/Staff-w2ly4qd0.js +22 -0
- package/dist/StaffInfo-DPDRpz6F.js +149 -0
- package/dist/StaffPanel-DI1eTTp9.js +143 -0
- package/dist/SysUser-BMTX1cJM.js +12 -0
- package/dist/SysUserPanel-xwZdVjdp.js +365 -0
- package/dist/SystemMenu-TXhiQZVm.js +154 -0
- package/dist/UserInfo-JQqw8FMT.js +194 -0
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
- package/dist/api-BFNxcxSN.js +30 -0
- package/dist/authority-Bi6BGB5B.js +20 -0
- package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
- package/dist/childView-Bk8OD9bV.js +181 -0
- package/dist/childView-CyrcwshT.js +184 -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-DFUjrqAS.js +2662 -0
- package/dist/log-in-BrNB0mLz.js +117 -0
- package/dist/log-out-dYfqvzy6.js +111 -0
- package/dist/login-BdCDnuXL.js +233 -0
- package/dist/login-log-CJak-ANA.js +79 -0
- package/dist/lov-view-DkmG4K57.js +95 -0
- package/dist/menuInfo-kp2wNYOp.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/router-CeluSGiD.js +1531 -0
- package/dist/su-welcome-JeiovGpe.js +799 -0
- package/dist/sys-config-Ddb3vBpK.js +316 -0
- package/dist/udp-core-Dhm-BlAs.js +2032 -0
- package/dist/udp-core.css +2 -1
- package/dist/useDataThemeChange-BCy8JBG7.js +226 -0
- package/dist/useNav-DY8FkltH.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/api/index.ts +51 -51
- 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/main.ts +110 -111
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +999 -998
- 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
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { I as e } from "./router-CeluSGiD.js";
|
|
2
|
+
import { r as t } from "./api-BFNxcxSN.js";
|
|
3
|
+
import { t as n } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
4
|
+
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, openBlock as d, reactive as f, resolveComponent as p, toDisplayString as m, watch as h, withCtx as g } from "vue";
|
|
5
|
+
import { successMessage as _, warnMessage as v } from "@utogether/utils";
|
|
6
|
+
import { clone as y } from "xe-utils";
|
|
7
|
+
import { templateRef as b } from "@vueuse/core";
|
|
8
|
+
import { useI18n as x } from "vue-i18n";
|
|
9
|
+
import { VxeUI as S } from "vxe-table";
|
|
10
|
+
//#region src/views/organization/company/CompanyPanel.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var C = { class: "page-content" }, w = "/uums/unit", T = /* @__PURE__ */ l({
|
|
12
|
+
__name: "CompanyPanel",
|
|
13
|
+
setup(e) {
|
|
14
|
+
let n = f({
|
|
15
|
+
record: {},
|
|
16
|
+
dataList: [],
|
|
17
|
+
submitLoading: !1,
|
|
18
|
+
dialogFormVisible: !1,
|
|
19
|
+
isChecked: !1,
|
|
20
|
+
dataStatus: ""
|
|
21
|
+
}), { t: l } = x(), T = {
|
|
22
|
+
unitName: [{
|
|
23
|
+
required: !0,
|
|
24
|
+
message: `${l("message.required")}${l("message.udp.unitName")}`
|
|
25
|
+
}],
|
|
26
|
+
unitCode: [{
|
|
27
|
+
required: !0,
|
|
28
|
+
message: `${l("message.required")}${l("message.udp.unitCode")}`
|
|
29
|
+
}]
|
|
30
|
+
}, E = u("active"), D = u("scrollPanelChange"), O = t();
|
|
31
|
+
h(() => E.value, (e, t) => {
|
|
32
|
+
n.record = E.value, e?.id && t?.id && e !== t && A("detail");
|
|
33
|
+
});
|
|
34
|
+
let k = () => {
|
|
35
|
+
n.dataStatus = "add", n.record = {}, n.record.parentId = E.value?.id, n.isChecked = !1, n.dialogFormVisible = !0;
|
|
36
|
+
}, A = (e) => {
|
|
37
|
+
n.dataStatus = e, n.record = y(E.value, !0), n.dialogFormVisible = !0;
|
|
38
|
+
}, j = b("xForm", null), M = () => {
|
|
39
|
+
j.value.validate(async (e) => {
|
|
40
|
+
if (!e) {
|
|
41
|
+
let { record: e, dataStatus: t } = n;
|
|
42
|
+
t === "add" ? await O.post(w, e) : await O.put(w, e), P();
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}, N = async () => {
|
|
46
|
+
let { record: e } = n;
|
|
47
|
+
if (e.children?.length) return v(l("message.deletePartment"));
|
|
48
|
+
await S.modal.confirm(l("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await O.delete(w, e), P());
|
|
49
|
+
}, P = () => {
|
|
50
|
+
D.value = !0, _(l("message.operateSuccess")), I();
|
|
51
|
+
}, F = () => {
|
|
52
|
+
n.dialogFormVisible = !1, n.dataStatus = "";
|
|
53
|
+
}, I = () => {
|
|
54
|
+
n.dialogFormVisible = !1;
|
|
55
|
+
};
|
|
56
|
+
return (e, t) => {
|
|
57
|
+
let l = p("ut-button"), u = p("vxe-toolbar"), f = p("vxe-form-item"), h = p("vxe-form"), _ = p("el-row"), v = p("vxe-checkbox"), y = p("vxe-button"), b = p("el-card");
|
|
58
|
+
return d(), a("div", C, [c(u, {
|
|
59
|
+
perfect: "",
|
|
60
|
+
class: ""
|
|
61
|
+
}, {
|
|
62
|
+
buttons: g(() => [
|
|
63
|
+
c(l, {
|
|
64
|
+
status: "u-cyan",
|
|
65
|
+
icon: "ri-add-line",
|
|
66
|
+
content: "add",
|
|
67
|
+
onTap: t[0] ||= (e) => k()
|
|
68
|
+
}),
|
|
69
|
+
c(l, {
|
|
70
|
+
status: "primary",
|
|
71
|
+
icon: "ri-edit-box-line",
|
|
72
|
+
content: "edit",
|
|
73
|
+
onTap: t[1] ||= (e) => A("update")
|
|
74
|
+
}),
|
|
75
|
+
c(l, {
|
|
76
|
+
status: "danger",
|
|
77
|
+
icon: "ri-close-fill",
|
|
78
|
+
content: "delete",
|
|
79
|
+
onTap: t[2] ||= (e) => N()
|
|
80
|
+
})
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}), n.dialogFormVisible ? (d(), r(_, {
|
|
84
|
+
key: 0,
|
|
85
|
+
type: "flex",
|
|
86
|
+
justify: "center",
|
|
87
|
+
align: "middle",
|
|
88
|
+
class: "w-departInfo-wrapper"
|
|
89
|
+
}, {
|
|
90
|
+
default: g(() => [c(b, {
|
|
91
|
+
width: "60%",
|
|
92
|
+
shadow: "always",
|
|
93
|
+
class: "box-card w-card-wrapper"
|
|
94
|
+
}, {
|
|
95
|
+
default: g(() => [
|
|
96
|
+
t[4] ||= o("div", { class: "clearfix" }, [o("span", { class: "w-card-title" })], -1),
|
|
97
|
+
c(_, null, {
|
|
98
|
+
default: g(() => [c(h, {
|
|
99
|
+
ref_key: "xForm",
|
|
100
|
+
ref: j,
|
|
101
|
+
data: n.record,
|
|
102
|
+
rules: T,
|
|
103
|
+
"label-width": "80px"
|
|
104
|
+
}, {
|
|
105
|
+
default: g(() => [
|
|
106
|
+
c(f, {
|
|
107
|
+
title: e.$t("message.udp.unitName"),
|
|
108
|
+
field: "unitName",
|
|
109
|
+
"item-render": {
|
|
110
|
+
name: "$input",
|
|
111
|
+
props: { disabled: n.dataStatus === "detail" }
|
|
112
|
+
},
|
|
113
|
+
span: 24
|
|
114
|
+
}, null, 8, ["title", "item-render"]),
|
|
115
|
+
c(f, {
|
|
116
|
+
title: e.$t("message.udp.unitCode"),
|
|
117
|
+
field: "unitCode",
|
|
118
|
+
"item-render": {
|
|
119
|
+
name: "$input",
|
|
120
|
+
props: { disabled: n.dataStatus !== "add" }
|
|
121
|
+
},
|
|
122
|
+
span: 24
|
|
123
|
+
}, null, 8, ["title", "item-render"]),
|
|
124
|
+
c(f, {
|
|
125
|
+
title: e.$t("message.udp.unitNote"),
|
|
126
|
+
field: "unitNote",
|
|
127
|
+
"item-render": {
|
|
128
|
+
name: "$input",
|
|
129
|
+
props: { disabled: n.dataStatus === "detail" }
|
|
130
|
+
},
|
|
131
|
+
span: 24
|
|
132
|
+
}, null, 8, ["title", "item-render"])
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["data"])]),
|
|
136
|
+
_: 1
|
|
137
|
+
}),
|
|
138
|
+
c(_, {
|
|
139
|
+
type: "flex",
|
|
140
|
+
justify: "center"
|
|
141
|
+
}, {
|
|
142
|
+
default: g(() => [
|
|
143
|
+
n.dataStatus === "add" ? (d(), r(v, {
|
|
144
|
+
key: 0,
|
|
145
|
+
modelValue: n.isChecked,
|
|
146
|
+
"onUpdate:modelValue": t[3] ||= (e) => n.isChecked = e,
|
|
147
|
+
style: {
|
|
148
|
+
"padding-top": "5px",
|
|
149
|
+
"margin-right": "8px"
|
|
150
|
+
}
|
|
151
|
+
}, {
|
|
152
|
+
default: g(() => [s(m(e.$t("message.udp.continueAdd")), 1)]),
|
|
153
|
+
_: 1
|
|
154
|
+
}, 8, ["modelValue"])) : i("", !0),
|
|
155
|
+
n.dataStatus === "detail" ? i("", !0) : (d(), r(y, {
|
|
156
|
+
key: 1,
|
|
157
|
+
status: "primary",
|
|
158
|
+
content: e.$t("message.btn.confirm"),
|
|
159
|
+
onClick: M
|
|
160
|
+
}, null, 8, ["content"])),
|
|
161
|
+
n.dataStatus === "detail" ? i("", !0) : (d(), r(y, {
|
|
162
|
+
key: 2,
|
|
163
|
+
status: "warning",
|
|
164
|
+
content: e.$t("message.btn.cancel"),
|
|
165
|
+
onClick: F
|
|
166
|
+
}, null, 8, ["content"]))
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
})
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
})]),
|
|
173
|
+
_: 1
|
|
174
|
+
})) : (d(), r(_, {
|
|
175
|
+
key: 1,
|
|
176
|
+
class: "w-noclick-wrapper"
|
|
177
|
+
}, {
|
|
178
|
+
default: g(() => [...t[5] ||= [o("div", { class: "w-content-wrapper" }, [o("ul", null, [
|
|
179
|
+
o("li", { class: "w-department-line" }, [
|
|
180
|
+
o("div", null, "● 点击新建,新建租户信息。"),
|
|
181
|
+
o("div", { style: {
|
|
182
|
+
margin: "0",
|
|
183
|
+
"text-indent": "2em"
|
|
184
|
+
} }, " 已点击树结构上的租户名称,默认创建为当前租户的下属租户 "),
|
|
185
|
+
o("div", { style: {
|
|
186
|
+
margin: "0",
|
|
187
|
+
"text-indent": "2em"
|
|
188
|
+
} }, "未点击树结构上的租户名称,则创建为一级租户")
|
|
189
|
+
]),
|
|
190
|
+
o("li", { class: "w-department-line" }, "● 点击树结构上的租户名称,点击修改按钮,修改租户信息。"),
|
|
191
|
+
o("li", { class: "w-department-line" }, [o("div", null, "● 点击树结构上的租户名称,点击删除按钮,删除租户信息。"), o("div", { style: { "text-indent": "2em" } }, "当租户下有单位存在时,不允许删除租户信息。")])
|
|
192
|
+
])], -1)]]),
|
|
193
|
+
_: 1
|
|
194
|
+
}))]);
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
}), E = /* @__PURE__ */ e({ default: () => D }), D = /* @__PURE__ */ n(T, [["__scopeId", "data-v-bc1a230e"]]);
|
|
198
|
+
//#endregion
|
|
199
|
+
export { E as n, D as t };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createVNode as i, defineComponent as a, openBlock as o, reactive as s, ref as c, resolveComponent as l } from "vue";
|
|
2
|
+
import { useRender as u } from "@utogether/utils";
|
|
3
|
+
import { clone as d } from "xe-utils";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/views/urpt/dataSet/DataSet.vue
|
|
6
|
+
var f = /* @__PURE__ */ a({
|
|
7
|
+
name: "DataSet",
|
|
8
|
+
setup(a) {
|
|
9
|
+
let f = c(null), p = c({}), m = u(), h = s({
|
|
10
|
+
paramExt: {},
|
|
11
|
+
showChild: !1
|
|
12
|
+
}), g = [{ field: "dataSetCode" }, { field: "dataSetName" }], _ = [
|
|
13
|
+
{
|
|
14
|
+
type: "checkbox",
|
|
15
|
+
width: 50,
|
|
16
|
+
align: "center"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
field: "dataSetCode",
|
|
20
|
+
required: !0,
|
|
21
|
+
width: 150,
|
|
22
|
+
editRender: m.renderSelect({
|
|
23
|
+
optionProps: {
|
|
24
|
+
label: "templateCode",
|
|
25
|
+
value: "templateCode"
|
|
26
|
+
},
|
|
27
|
+
props: {
|
|
28
|
+
code: "SYS075",
|
|
29
|
+
fetchField: "templateCode"
|
|
30
|
+
}
|
|
31
|
+
})
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
field: "dataSetName",
|
|
35
|
+
required: !0,
|
|
36
|
+
width: 150,
|
|
37
|
+
editRender: m.renderInput()
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
field: "dataSetType",
|
|
41
|
+
required: !0,
|
|
42
|
+
editRender: m.renderDict("SU.DATASET.TYPE"),
|
|
43
|
+
formatter: ["formatDict", "SU.DATASET.TYPE"]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
field: "dataSetUrl",
|
|
47
|
+
width: 180,
|
|
48
|
+
required: !0,
|
|
49
|
+
editRender: m.renderInput()
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
field: "remark",
|
|
53
|
+
minWidth: 80,
|
|
54
|
+
editRender: m.renderInput()
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
field: "enabled",
|
|
58
|
+
width: 80,
|
|
59
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
field: "operate",
|
|
63
|
+
width: 150,
|
|
64
|
+
slots: { default: ({ row: t }) => t.id ? [i(e, null, [i(l("ut-button"), {
|
|
65
|
+
icon: "ri-save-3-fill",
|
|
66
|
+
content: "paramSet",
|
|
67
|
+
onClick: () => y(t)
|
|
68
|
+
}, null)])] : null }
|
|
69
|
+
}
|
|
70
|
+
], v = [
|
|
71
|
+
{
|
|
72
|
+
type: "checkbox",
|
|
73
|
+
width: 50,
|
|
74
|
+
align: "center"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
field: "seqNo",
|
|
78
|
+
editRender: m.renderInput({ props: { type: "number" } })
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
field: "paramCode",
|
|
82
|
+
editRender: m.renderInput()
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
field: "paramName",
|
|
86
|
+
editRender: m.renderInput()
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
field: "defaultValue",
|
|
90
|
+
editRender: m.renderInput()
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
field: "isRequired",
|
|
94
|
+
required: !0,
|
|
95
|
+
editRender: m.renderDict("SU.WHETHER"),
|
|
96
|
+
formatter: ["formatDict", "SU.WHETHER"]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
field: "remark",
|
|
100
|
+
width: 100,
|
|
101
|
+
editRender: m.renderInput()
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
field: "operate",
|
|
105
|
+
width: 80,
|
|
106
|
+
fixed: "right",
|
|
107
|
+
slots: { default: ({ row: t }) => t.id ? [i(e, null, [i(l("ut-button"), { row: t }, null)])] : null }
|
|
108
|
+
}
|
|
109
|
+
], y = (e) => {
|
|
110
|
+
p.value = d(e, !0), h.paramExt = { dataSetId: e.id }, h.showChild = !0;
|
|
111
|
+
}, b = { editActived({ row: e, column: t }) {
|
|
112
|
+
e.id && (_[1].editRender.props.disabled = !0, f.value.refreshColumn());
|
|
113
|
+
} };
|
|
114
|
+
return (e, a) => {
|
|
115
|
+
let s = l("ut-grid"), c = l("ut-modal-grif");
|
|
116
|
+
return o(), r("div", null, [i(s, {
|
|
117
|
+
ref_key: "SuGridRef",
|
|
118
|
+
ref: f,
|
|
119
|
+
items: g,
|
|
120
|
+
columns: _,
|
|
121
|
+
events: b
|
|
122
|
+
}, null, 512), h.showChild ? (o(), t(c, {
|
|
123
|
+
key: 0,
|
|
124
|
+
record: p.value,
|
|
125
|
+
"default-value": h.paramExt,
|
|
126
|
+
"default-params": h.paramExt,
|
|
127
|
+
columns: v,
|
|
128
|
+
title: e.$t("message.paramSet"),
|
|
129
|
+
editable: !0,
|
|
130
|
+
width: "60%"
|
|
131
|
+
}, null, 8, [
|
|
132
|
+
"record",
|
|
133
|
+
"default-value",
|
|
134
|
+
"default-params",
|
|
135
|
+
"title"
|
|
136
|
+
])) : n("", !0)]);
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
//#endregion
|
|
141
|
+
export { f as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
+
import { t } from "./ScrollPanel-DW30pGz1.js";
|
|
3
|
+
import { t as n } from "./DepartmentPanel-DntGycxr.js";
|
|
4
|
+
import { createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, provide as c, ref as l } from "vue";
|
|
5
|
+
//#region src/views/organization/department/Department.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var u = { class: "u-content-panel" }, d = { class: "u-left-panel" }, f = { class: "content" }, p = /* @__PURE__ */ e(/* @__PURE__ */ o({
|
|
7
|
+
__name: "Department",
|
|
8
|
+
setup(e) {
|
|
9
|
+
let o = l({}), p = l(!1), m = l([]);
|
|
10
|
+
return c("active", o), c("scrollPanelChange", p), c("treeList", m), (e, o) => (s(), r("div", u, [i("div", d, [a(t, {
|
|
11
|
+
title: e.$t("department"),
|
|
12
|
+
url: "/uums/department/treeDepartment",
|
|
13
|
+
"tree-otions": {
|
|
14
|
+
children: "children",
|
|
15
|
+
label: "deptName"
|
|
16
|
+
}
|
|
17
|
+
}, null, 8, ["title"])]), i("div", f, [a(n)])]));
|
|
18
|
+
}
|
|
19
|
+
}), [["__scopeId", "data-v-a043aab6"]]);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { p as default };
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { y as e } from "./router-CeluSGiD.js";
|
|
2
|
+
import { r as t } from "./api-BFNxcxSN.js";
|
|
3
|
+
import { t as n } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
4
|
+
import { t as r } from "./authority-Bi6BGB5B.js";
|
|
5
|
+
import { t as i } from "./await-to-js.es5-DkWYmPXW.js";
|
|
6
|
+
import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, inject as f, openBlock as p, reactive as m, resolveComponent as h, resolveDirective as g, toDisplayString as _, unref as v, watch as y, withCtx as b, withDirectives as x } from "vue";
|
|
7
|
+
import { successMessage as S, warnMessage as C } from "@utogether/utils";
|
|
8
|
+
import { clone as w } from "xe-utils";
|
|
9
|
+
import { templateRef as T } from "@vueuse/core";
|
|
10
|
+
import { useI18n as E } from "vue-i18n";
|
|
11
|
+
import { VxeUI as D } from "vxe-table";
|
|
12
|
+
//#region src/views/organization/department/DepartmentPanel.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
+
var O = { class: "page-content" }, k = "/uums/department", A = /* @__PURE__ */ n(/* @__PURE__ */ d({
|
|
14
|
+
__name: "DepartmentPanel",
|
|
15
|
+
setup(n) {
|
|
16
|
+
let d = m({
|
|
17
|
+
record: {},
|
|
18
|
+
dataList: [],
|
|
19
|
+
loading: !1,
|
|
20
|
+
dialogFormVisible: !1,
|
|
21
|
+
isChecked: !1,
|
|
22
|
+
dataStatus: ""
|
|
23
|
+
}), A = e().getDataDict, { t: j } = E(), M = t(), N = {
|
|
24
|
+
deptName: [{
|
|
25
|
+
required: !0,
|
|
26
|
+
message: `${j("message.required")}${j("message.deptName")}`
|
|
27
|
+
}],
|
|
28
|
+
deptCode: [{
|
|
29
|
+
required: !0,
|
|
30
|
+
message: `${j("message.required")}${j("message.deptCode")}`
|
|
31
|
+
}],
|
|
32
|
+
deptType: [{
|
|
33
|
+
required: !0,
|
|
34
|
+
message: `${j("message.required")}${j("message.deptType")}`
|
|
35
|
+
}]
|
|
36
|
+
}, P = f("active"), F = f("scrollPanelChange");
|
|
37
|
+
y(() => P.value, (e, t) => {
|
|
38
|
+
d.record = P.value, e?.id && t?.id && e !== t && L("detail");
|
|
39
|
+
});
|
|
40
|
+
let I = () => {
|
|
41
|
+
d.dataStatus = "add", d.record = {}, d.record.parentId = P.value?.id, d.isChecked = !1, d.dialogFormVisible = !0;
|
|
42
|
+
}, L = (e) => {
|
|
43
|
+
d.dataStatus = e, d.record = w(P.value, !0), d.dialogFormVisible = !0;
|
|
44
|
+
}, R = T("xForm", null), z = () => {
|
|
45
|
+
R.value.validate(async (e) => {
|
|
46
|
+
if (!e) {
|
|
47
|
+
let { record: e, dataStatus: t } = d;
|
|
48
|
+
d.loading = !0;
|
|
49
|
+
let [n] = t === "add" ? await i(M.post(k, e)) : await i(M.put(k, e));
|
|
50
|
+
d.loading = !1, n || H();
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}, B = async () => {
|
|
54
|
+
let { record: e } = d;
|
|
55
|
+
if (e.children.length) return C(j("message.deletePartment"));
|
|
56
|
+
await D.modal.confirm(j("message.tip.del")) === "confirm" && (await M.delete(k, e), H());
|
|
57
|
+
}, V = async (e) => {
|
|
58
|
+
if (await D.modal.confirm(j("message.tip.confirmSync")) === "confirm") {
|
|
59
|
+
let [t] = await i(M.post("/uums/department/syncEwDepartment", { code: e }));
|
|
60
|
+
if (t) return;
|
|
61
|
+
H();
|
|
62
|
+
}
|
|
63
|
+
}, H = () => {
|
|
64
|
+
F.value = !0, S(j("message.operateSuccess")), W();
|
|
65
|
+
}, U = () => {
|
|
66
|
+
d.dataStatus === "add" && (d.dialogFormVisible = !1), d.dataStatus = "";
|
|
67
|
+
}, W = () => {
|
|
68
|
+
d.dialogFormVisible = !1;
|
|
69
|
+
};
|
|
70
|
+
return (e, t) => {
|
|
71
|
+
let n = h("ut-button"), i = h("vxe-toolbar"), f = h("vxe-form-item"), m = h("vxe-form"), y = h("el-row"), S = h("vxe-checkbox"), C = h("el-card"), w = g("spinning");
|
|
72
|
+
return p(), s("div", O, [u(i, {
|
|
73
|
+
perfect: "",
|
|
74
|
+
class: ""
|
|
75
|
+
}, {
|
|
76
|
+
buttons: b(() => [
|
|
77
|
+
u(n, {
|
|
78
|
+
status: "u-cyan",
|
|
79
|
+
icon: "ri-add-line",
|
|
80
|
+
content: "add",
|
|
81
|
+
auth: "add",
|
|
82
|
+
onTap: t[0] ||= (e) => I()
|
|
83
|
+
}),
|
|
84
|
+
v(r)("wechat") ? (p(), a(n, {
|
|
85
|
+
key: 0,
|
|
86
|
+
status: "success",
|
|
87
|
+
icon: "ri-refresh-line",
|
|
88
|
+
content: "sync",
|
|
89
|
+
onTap: t[1] ||= (e) => V("wechat")
|
|
90
|
+
})) : o("", !0),
|
|
91
|
+
v(r)("dingding") ? (p(), a(n, {
|
|
92
|
+
key: 1,
|
|
93
|
+
status: "success",
|
|
94
|
+
icon: "ri-refresh-line",
|
|
95
|
+
content: "sync",
|
|
96
|
+
onTap: t[2] ||= (e) => V("dingding")
|
|
97
|
+
})) : o("", !0),
|
|
98
|
+
v(r)("OA") ? (p(), a(n, {
|
|
99
|
+
key: 2,
|
|
100
|
+
status: "success",
|
|
101
|
+
icon: "ri-refresh-line",
|
|
102
|
+
content: "sync",
|
|
103
|
+
onTap: t[3] ||= (e) => V("OA")
|
|
104
|
+
})) : o("", !0),
|
|
105
|
+
u(n, {
|
|
106
|
+
status: "primary",
|
|
107
|
+
icon: "ri-edit-box-line",
|
|
108
|
+
auth: "edit",
|
|
109
|
+
content: "edit",
|
|
110
|
+
onTap: t[4] ||= (e) => L("update")
|
|
111
|
+
}),
|
|
112
|
+
u(n, {
|
|
113
|
+
status: "danger",
|
|
114
|
+
icon: "ri-close-fill",
|
|
115
|
+
auth: "del",
|
|
116
|
+
content: "delete",
|
|
117
|
+
onTap: t[5] ||= (e) => B()
|
|
118
|
+
})
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}), d.dialogFormVisible ? x((p(), a(y, {
|
|
122
|
+
key: 0,
|
|
123
|
+
type: "flex",
|
|
124
|
+
justify: "center",
|
|
125
|
+
align: "middle",
|
|
126
|
+
class: "w-departInfo-wrapper"
|
|
127
|
+
}, {
|
|
128
|
+
default: b(() => [u(C, {
|
|
129
|
+
width: "60%",
|
|
130
|
+
shadow: "always",
|
|
131
|
+
class: "box-card w-card-wrapper"
|
|
132
|
+
}, {
|
|
133
|
+
default: b(() => [
|
|
134
|
+
t[7] ||= c("div", { class: "clearfix" }, [c("span", { class: "w-card-title" })], -1),
|
|
135
|
+
u(y, null, {
|
|
136
|
+
default: b(() => [u(m, {
|
|
137
|
+
ref_key: "xForm",
|
|
138
|
+
ref: R,
|
|
139
|
+
data: d.record,
|
|
140
|
+
rules: N,
|
|
141
|
+
"label-width": "90px"
|
|
142
|
+
}, {
|
|
143
|
+
default: b(() => [
|
|
144
|
+
u(f, {
|
|
145
|
+
title: e.$t("message.deptName"),
|
|
146
|
+
field: "deptName",
|
|
147
|
+
"item-render": {
|
|
148
|
+
name: "$input",
|
|
149
|
+
props: { disabled: d.dataStatus === "detail" }
|
|
150
|
+
},
|
|
151
|
+
span: 24
|
|
152
|
+
}, null, 8, ["title", "item-render"]),
|
|
153
|
+
u(f, {
|
|
154
|
+
title: e.$t("message.deptCode"),
|
|
155
|
+
field: "deptCode",
|
|
156
|
+
"item-render": {
|
|
157
|
+
name: "$input",
|
|
158
|
+
props: { disabled: d.dataStatus !== "add" }
|
|
159
|
+
},
|
|
160
|
+
span: 24
|
|
161
|
+
}, null, 8, ["title", "item-render"]),
|
|
162
|
+
u(f, {
|
|
163
|
+
title: e.$t("message.deptType"),
|
|
164
|
+
field: "deptType",
|
|
165
|
+
"item-render": {
|
|
166
|
+
name: "$select",
|
|
167
|
+
options: v(A)["SU.DEPARTMENT.TYPE"]?.children,
|
|
168
|
+
optionProps: {
|
|
169
|
+
label: "dictName",
|
|
170
|
+
value: "dictCode"
|
|
171
|
+
},
|
|
172
|
+
props: { disabled: d.dataStatus === "detail" }
|
|
173
|
+
},
|
|
174
|
+
span: 24
|
|
175
|
+
}, null, 8, ["title", "item-render"])
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
}, 8, ["data"])]),
|
|
179
|
+
_: 1
|
|
180
|
+
}),
|
|
181
|
+
u(y, {
|
|
182
|
+
type: "flex",
|
|
183
|
+
justify: "center"
|
|
184
|
+
}, {
|
|
185
|
+
default: b(() => [
|
|
186
|
+
d.dataStatus === "add" ? (p(), a(S, {
|
|
187
|
+
key: 0,
|
|
188
|
+
modelValue: d.isChecked,
|
|
189
|
+
"onUpdate:modelValue": t[6] ||= (e) => d.isChecked = e,
|
|
190
|
+
style: {
|
|
191
|
+
"padding-top": "5px",
|
|
192
|
+
"margin-right": "8px"
|
|
193
|
+
}
|
|
194
|
+
}, {
|
|
195
|
+
default: b(() => [l(_(e.$t("message.udp.continueAdd")), 1)]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["modelValue"])) : o("", !0),
|
|
198
|
+
d.dataStatus === "detail" ? o("", !0) : (p(), a(n, {
|
|
199
|
+
key: 1,
|
|
200
|
+
status: "primary",
|
|
201
|
+
content: "confirm",
|
|
202
|
+
onTap: z
|
|
203
|
+
})),
|
|
204
|
+
d.dataStatus === "detail" ? o("", !0) : (p(), a(n, {
|
|
205
|
+
key: 2,
|
|
206
|
+
status: "warning",
|
|
207
|
+
content: "cancel",
|
|
208
|
+
onClick: U
|
|
209
|
+
}))
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
})
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
})]),
|
|
216
|
+
_: 1
|
|
217
|
+
})), [[w, d.loading]]) : (p(), a(y, {
|
|
218
|
+
key: 1,
|
|
219
|
+
class: "w-noclick-wrapper"
|
|
220
|
+
}, {
|
|
221
|
+
default: b(() => [...t[8] ||= [c("div", { class: "w-content-wrapper" }, [c("ul", null, [
|
|
222
|
+
c("li", { class: "w-department-line" }, [
|
|
223
|
+
c("div", null, "● 点击新建,新建部门信息。"),
|
|
224
|
+
c("div", { style: {
|
|
225
|
+
margin: "0",
|
|
226
|
+
"text-indent": "2em"
|
|
227
|
+
} }, "已点击树结构上的部门名称,默认创建为当前部门的下属部门"),
|
|
228
|
+
c("div", { style: {
|
|
229
|
+
margin: "0",
|
|
230
|
+
"text-indent": "2em"
|
|
231
|
+
} }, "未点击树结构上的部门名称,则创建为一级部门")
|
|
232
|
+
]),
|
|
233
|
+
c("li", { class: "w-department-line" }, "● 点击树结构上的部门名称,点击修改按钮,修改部门信息。"),
|
|
234
|
+
c("li", { class: "w-department-line" }, [c("div", null, "● 点击树结构上的部门名称,点击删除按钮,删除部门信息。"), c("div", { style: { "text-indent": "2em" } }, "当部门下有人员存在时,不允许删除部门信息。")])
|
|
235
|
+
])], -1)]]),
|
|
236
|
+
_: 1
|
|
237
|
+
}))]);
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
}), [["__scopeId", "data-v-7c92a83d"]]);
|
|
241
|
+
//#endregion
|
|
242
|
+
export { A as t };
|