@utogether/udp-core 2.0.0-beta.26 → 2.0.0-beta.27
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 +65 -0
- package/dist/404-Se2SF97M.js +65 -0
- package/dist/500-B6j9AqLo.js +67 -0
- package/dist/AuthorityInfo-CQ8ydZvr.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js +100 -0
- package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
- package/dist/Company-BzSVBSC4.js +25 -0
- package/dist/CompanyPanel-DBjZB4aJ.js +204 -0
- package/dist/DataSet-iBHzs75s.js +147 -0
- package/dist/Department-BkgseHo8.js +25 -0
- package/dist/DepartmentPanel-Sen93_2M.js +249 -0
- package/dist/DesignPanel-pqDcwaFC.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js +1013 -0
- package/dist/DictView-CJLG4LlE.js +110 -0
- package/dist/InvOrganization-D0Jq1IAa.js +74 -0
- package/dist/Org-CO_1WT39.js +39 -0
- package/dist/Preview-DLI4Bwel.js +48 -0
- package/dist/ReportDefine-Cw46OnJ_.js +10 -0
- package/dist/ReportDesign-D4sHTXT7.js +165 -0
- package/dist/ReportQuery-DtOCvQSN.js +74 -0
- package/dist/ReportQueryFrom-QjL-ETPq.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js +177 -0
- package/dist/ReportTemplate-BxAgc_Aj.js +161 -0
- package/dist/Role-Df77BBD-.js +25 -0
- package/dist/RoleAssign-BrunouML.js +26 -0
- package/dist/RolePanel-DSVwqhiD.js +4 -0
- package/dist/RolePanel-HLA7XBlN.js +4 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js +132 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js +152 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js +99 -0
- package/dist/Staff-BeL1xcRf.js +26 -0
- package/dist/StaffInfo-CIfnltyX.js +4 -0
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js +107 -0
- package/dist/StaffPanel-BV2CHWac.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js +153 -0
- package/dist/SysUser-DPfNvthk.js +15 -0
- package/dist/SysUserPanel-CoLKYlQE.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js +353 -0
- package/dist/SystemMenu-sdj1dRDA.js +156 -0
- package/dist/UserInfo-CTX4hhFl.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js +160 -0
- package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
- package/dist/childView-BDmWwJO5.js +4 -0
- package/dist/childView-Dx3ACtHa.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js +183 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js +143 -0
- package/dist/code-rule-cvN4gYC_.js +148 -0
- package/dist/core.es.js +24 -6
- package/dist/cron-task-B0TkxFdp.js +135 -0
- package/dist/flow-task-PoDnE_kE.js +10 -0
- package/dist/frameView-5cy5BSgS.js +43 -0
- package/dist/img/minicolors.png +0 -0
- package/dist/index-C5WRTwvI.js +3006 -0
- package/dist/layout-home-DrARg-3o.js +232 -0
- package/dist/layoutView-25v_ngk5.js +3191 -0
- package/dist/log-in-Bmz5Uhbt.js +116 -0
- package/dist/log-out-B-8m3oNj.js +130 -0
- package/dist/login-Cmp2RvvW.js +217 -0
- package/dist/login-log-CVvRgZSu.js +70 -0
- package/dist/lov-view-BATtzw2X.js +99 -0
- package/dist/menuInfo-BIvrE7nm.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js +360 -0
- package/dist/pda-app-CzHVyeEa.js +707 -0
- package/dist/redirect-DTz8GSnv.js +15 -0
- package/dist/resource-Y5lGB38n.js +97 -0
- package/dist/su-welcome-CXA6OzBw.js +878 -0
- package/dist/sys-config-CqO03LeC.js +385 -0
- package/dist/udp-core.css +1 -2
- package/dist/useNav-C-rCgubt.js +84 -0
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/dist/wecom-push-B75FLee5.js +70 -0
- package/index.ts +3 -2
- package/package.json +1 -1
- package/src/App.vue +79 -78
- package/src/api/index.ts +1 -1
- package/src/components/SuQrcode/src/index.tsx +231 -236
- package/src/layout/components/lay-panel/index.vue +2 -6
- package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
- package/src/main.ts +25 -23
- package/src/router/index.ts +156 -187
- package/src/store/modules/system.ts +7 -0
- package/src/style/vxetable.scss +372 -364
- package/src/utils/authority/index.ts +46 -29
- package/src/utils/udp/http/index.ts +115 -64
- package/src/utils/udp/http/types.d.ts +15 -14
- package/src/views/login/login-view.vue +4 -21
- package/src/views/organization/department/DepartmentPanel.vue +3 -4
- package/src/views/system/sys/sys-config.vue +344 -344
- package/src/views/uhome/components/home-todo.vue +179 -178
- package/src/views/ulogin/login.vue +5 -9
- package/tsconfig.json +2 -3
- package/types/global.d.ts +234 -234
- package/vite.config.ts +2 -1
- package/dist/403-D6Wb3JJh.js +0 -72
- package/dist/404-B_HNbPNV.js +0 -72
- package/dist/500-BMemTTy1.js +0 -77
- package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
- package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
- package/dist/Company-BLXSfow0.js +0 -21
- package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
- package/dist/DataSet-CuGZcKC-.js +0 -141
- package/dist/Department-oFhsa7cd.js +0 -21
- package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
- package/dist/DepartmentPanel-BL58AdoT.js +0 -2
- package/dist/DesignPanel-DmkFVw1N.js +0 -1196
- package/dist/DictView-CC5yMzOq.js +0 -100
- package/dist/File-WJXjGYxr.js +0 -89
- package/dist/InvOrganization-BwMmD8Ua.js +0 -76
- package/dist/Org-HgnOWubi.js +0 -76
- package/dist/Preview-CAzWxLmP.js +0 -45
- package/dist/ReIcon-DecitXmg.js +0 -413
- package/dist/ReportDefine-BgLM-Rjk.js +0 -10
- package/dist/ReportDesign-DwchGG2P.js +0 -158
- package/dist/ReportQuery-D5jaRJEn.js +0 -101
- package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
- package/dist/ReportTemplate-CNcTmccs.js +0 -162
- package/dist/Role-Be8WfdCA.js +0 -21
- package/dist/RoleAssign-CtehGAUf.js +0 -22
- package/dist/RolePanel-CAwITg_q.js +0 -131
- package/dist/RolePanel-SN0FGFZ7.js +0 -176
- package/dist/ScrollPanel-DW30pGz1.js +0 -88
- package/dist/Staff-V2YsNKcj.js +0 -22
- package/dist/StaffInfo-CKRPW0r4.js +0 -149
- package/dist/StaffPanel-BxcgMg7u.js +0 -143
- package/dist/SysUser-Dxyj5w5m.js +0 -12
- package/dist/SysUserPanel-DI6CWcZo.js +0 -365
- package/dist/SystemMenu-BBHREM8T.js +0 -154
- package/dist/UserInfo-BMVQ0xwE.js +0 -194
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
- package/dist/api-BFNxcxSN.js +0 -30
- package/dist/authority-BJFEUdrh.js +0 -20
- package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
- package/dist/childView-BBjPEraB.js +0 -184
- package/dist/childView-DNqG2UVm.js +0 -181
- package/dist/code-rule-QFrhqFrW.js +0 -151
- package/dist/contant-Q77dU_V3.js +0 -4
- package/dist/cron-task-BpUDKEAU.js +0 -131
- package/dist/flow-task-DAc2NrDU.js +0 -11
- package/dist/frameView-Di0zJZUR.js +0 -39
- package/dist/layout-home-BVp7vYLR.js +0 -239
- package/dist/layoutView-B6Mx2ERA.js +0 -2662
- package/dist/log-in-BrNB0mLz.js +0 -117
- package/dist/log-out-dYfqvzy6.js +0 -111
- package/dist/login-D_Hjy3Jd.js +0 -231
- package/dist/login-log-CJak-ANA.js +0 -79
- package/dist/lov-view-DM5Nm5tW.js +0 -95
- package/dist/menuInfo-BlOY1KZW.js +0 -346
- package/dist/mitt-CQgI7DYU.js +0 -27
- package/dist/pda-app-CA7YI37u.js +0 -589
- package/dist/redirect-N0k4tImU.js +0 -16
- package/dist/resource-CfQTHFcs.js +0 -94
- package/dist/su-welcome-DVD3S_du.js +0 -799
- package/dist/sys-config-Ddb3vBpK.js +0 -316
- package/dist/system-Cm3lyBas.js +0 -1528
- package/dist/udp-core-DaQd5CF1.js +0 -2028
- package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
- package/dist/useNav-BhOJIdrJ.js +0 -106
- package/dist/utogether-l7JXs4Lv.js +0 -4
- package/dist/water-mark-WDQZ9YqB.js +0 -119
- package/dist/wecom-push-kWkAVRCj.js +0 -77
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { defineComponent as T, reactive as j, 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
|
+
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 { n as J, _ as K } from "./index-C5WRTwvI.js";
|
|
8
|
+
const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ T({
|
|
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: l } = M(), k = {
|
|
19
|
+
unitName: [
|
|
20
|
+
{
|
|
21
|
+
required: !0,
|
|
22
|
+
message: `${l("message.required")}${l("message.udp.unitName")}`
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
unitCode: [
|
|
26
|
+
{
|
|
27
|
+
required: !0,
|
|
28
|
+
message: `${l("message.required")}${l("message.udp.unitCode")}`
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}, m = C("active"), $ = C("scrollPanelChange"), f = J();
|
|
32
|
+
B(
|
|
33
|
+
() => m.value,
|
|
34
|
+
(a, t) => {
|
|
35
|
+
e.record = m.value, a?.id && t?.id && a !== t && x("detail");
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
const S = () => {
|
|
39
|
+
e.dataStatus = "add", e.record = {}, e.record.parentId = m.value?.id, e.isChecked = !1, e.dialogFormVisible = !0;
|
|
40
|
+
}, x = (a) => {
|
|
41
|
+
e.dataStatus = a, e.record = z(m.value, !0), e.dialogFormVisible = !0;
|
|
42
|
+
}, b = R("xForm", null), h = () => {
|
|
43
|
+
b.value.validate(async (a) => {
|
|
44
|
+
if (!a) {
|
|
45
|
+
const { record: t, dataStatus: r } = e;
|
|
46
|
+
r === "add" ? await f.post(_, t) : await f.put(_, t), w();
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}, V = async () => {
|
|
50
|
+
const { record: a } = e;
|
|
51
|
+
if (a.children?.length) return G(l("message.deletePartment"));
|
|
52
|
+
await U.modal.confirm(l("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(_, a), w());
|
|
53
|
+
}, w = () => {
|
|
54
|
+
$.value = !0, H(l("message.operateSuccess")), F();
|
|
55
|
+
}, N = () => {
|
|
56
|
+
e.dialogFormVisible = !1, e.dataStatus = "";
|
|
57
|
+
}, F = () => {
|
|
58
|
+
e.dialogFormVisible = !1;
|
|
59
|
+
};
|
|
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"), q = s("vxe-checkbox"), y = s("vxe-button"), A = s("el-card");
|
|
62
|
+
return d(), E("div", O, [
|
|
63
|
+
o(I, {
|
|
64
|
+
perfect: "",
|
|
65
|
+
class: ""
|
|
66
|
+
}, {
|
|
67
|
+
buttons: i(() => [
|
|
68
|
+
o(r, {
|
|
69
|
+
status: "u-cyan",
|
|
70
|
+
icon: "ri-add-line",
|
|
71
|
+
content: "add",
|
|
72
|
+
onTap: t[0] || (t[0] = (p) => S())
|
|
73
|
+
}),
|
|
74
|
+
o(r, {
|
|
75
|
+
status: "primary",
|
|
76
|
+
icon: "ri-edit-box-line",
|
|
77
|
+
content: "edit",
|
|
78
|
+
onTap: t[1] || (t[1] = (p) => x("update"))
|
|
79
|
+
}),
|
|
80
|
+
o(r, {
|
|
81
|
+
status: "danger",
|
|
82
|
+
icon: "ri-close-fill",
|
|
83
|
+
content: "delete",
|
|
84
|
+
onTap: t[2] || (t[2] = (p) => V())
|
|
85
|
+
})
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}),
|
|
89
|
+
e.dialogFormVisible ? (d(), c(u, {
|
|
90
|
+
key: 0,
|
|
91
|
+
type: "flex",
|
|
92
|
+
justify: "center",
|
|
93
|
+
align: "middle",
|
|
94
|
+
class: "w-departInfo-wrapper"
|
|
95
|
+
}, {
|
|
96
|
+
default: i(() => [
|
|
97
|
+
o(A, {
|
|
98
|
+
width: "60%",
|
|
99
|
+
shadow: "always",
|
|
100
|
+
class: "box-card w-card-wrapper"
|
|
101
|
+
}, {
|
|
102
|
+
default: i(() => [
|
|
103
|
+
t[4] || (t[4] = n("div", { class: "clearfix" }, [
|
|
104
|
+
n("span", { class: "w-card-title" })
|
|
105
|
+
], -1)),
|
|
106
|
+
o(u, null, {
|
|
107
|
+
default: i(() => [
|
|
108
|
+
o(P, {
|
|
109
|
+
ref_key: "xForm",
|
|
110
|
+
ref: b,
|
|
111
|
+
data: e.record,
|
|
112
|
+
rules: k,
|
|
113
|
+
"label-width": "80px"
|
|
114
|
+
}, {
|
|
115
|
+
default: i(() => [
|
|
116
|
+
o(g, {
|
|
117
|
+
title: a.$t("message.udp.unitName"),
|
|
118
|
+
field: "unitName",
|
|
119
|
+
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
120
|
+
span: 24
|
|
121
|
+
}, null, 8, ["title", "item-render"]),
|
|
122
|
+
o(g, {
|
|
123
|
+
title: a.$t("message.udp.unitCode"),
|
|
124
|
+
field: "unitCode",
|
|
125
|
+
"item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
|
|
126
|
+
span: 24
|
|
127
|
+
}, null, 8, ["title", "item-render"]),
|
|
128
|
+
o(g, {
|
|
129
|
+
title: a.$t("message.udp.unitNote"),
|
|
130
|
+
field: "unitNote",
|
|
131
|
+
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
132
|
+
span: 24
|
|
133
|
+
}, null, 8, ["title", "item-render"])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["data"])
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}),
|
|
140
|
+
o(u, {
|
|
141
|
+
type: "flex",
|
|
142
|
+
justify: "center"
|
|
143
|
+
}, {
|
|
144
|
+
default: i(() => [
|
|
145
|
+
e.dataStatus === "add" ? (d(), c(q, {
|
|
146
|
+
key: 0,
|
|
147
|
+
modelValue: e.isChecked,
|
|
148
|
+
"onUpdate:modelValue": t[3] || (t[3] = (p) => e.isChecked = p),
|
|
149
|
+
style: { "padding-top": "5px", "margin-right": "8px" }
|
|
150
|
+
}, {
|
|
151
|
+
default: i(() => [
|
|
152
|
+
D(L(a.$t("message.udp.continueAdd")), 1)
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["modelValue"])) : v("", !0),
|
|
156
|
+
e.dataStatus !== "detail" ? (d(), c(y, {
|
|
157
|
+
key: 1,
|
|
158
|
+
status: "primary",
|
|
159
|
+
content: a.$t("message.btn.confirm"),
|
|
160
|
+
onClick: h
|
|
161
|
+
}, null, 8, ["content"])) : v("", !0),
|
|
162
|
+
e.dataStatus !== "detail" ? (d(), c(y, {
|
|
163
|
+
key: 2,
|
|
164
|
+
status: "warning",
|
|
165
|
+
content: a.$t("message.btn.cancel"),
|
|
166
|
+
onClick: N
|
|
167
|
+
}, null, 8, ["content"])) : v("", !0)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
})
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
})) : (d(), c(u, {
|
|
177
|
+
key: 1,
|
|
178
|
+
class: "w-noclick-wrapper"
|
|
179
|
+
}, {
|
|
180
|
+
default: i(() => [...t[5] || (t[5] = [
|
|
181
|
+
n("div", { class: "w-content-wrapper" }, [
|
|
182
|
+
n("ul", null, [
|
|
183
|
+
n("li", { class: "w-department-line" }, [
|
|
184
|
+
n("div", null, "● 点击新建,新建租户信息。"),
|
|
185
|
+
n("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的租户名称,默认创建为当前租户的下属租户 "),
|
|
186
|
+
n("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的租户名称,则创建为一级租户")
|
|
187
|
+
]),
|
|
188
|
+
n("li", { class: "w-department-line" }, "● 点击树结构上的租户名称,点击修改按钮,修改租户信息。"),
|
|
189
|
+
n("li", { class: "w-department-line" }, [
|
|
190
|
+
n("div", null, "● 点击树结构上的租户名称,点击删除按钮,删除租户信息。"),
|
|
191
|
+
n("div", { style: { "text-indent": "2em" } }, "当租户下有单位存在时,不允许删除租户信息。")
|
|
192
|
+
])
|
|
193
|
+
])
|
|
194
|
+
], -1)
|
|
195
|
+
])]),
|
|
196
|
+
_: 1
|
|
197
|
+
}))
|
|
198
|
+
]);
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
}), oe = /* @__PURE__ */ K(Q, [["__scopeId", "data-v-bc1a230e"]]);
|
|
202
|
+
export {
|
|
203
|
+
oe as default
|
|
204
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { defineComponent as _, ref as o, reactive as E, createVNode as d, Fragment as u, resolveComponent as n, openBlock as m, createElementBlock as C, 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
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
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-D_FeSXKv.js";
|
|
3
|
+
import _ from "./DepartmentPanel-Sen93_2M.js";
|
|
4
|
+
import { _ as d } from "./index-C5WRTwvI.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) => (i(), m("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
|
+
};
|
|
@@ -0,0 +1,249 @@
|
|
|
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 X, createVNode as o, withCtx as d, unref as v, createBlock as l, createCommentVNode as p, withDirectives as Y, createElementVNode as s, createTextVNode as z, toDisplayString as G } from "vue";
|
|
2
|
+
import { useI18n as J } from "vue-i18n";
|
|
3
|
+
import { clone as K } from "xe-utils";
|
|
4
|
+
import { t as k } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
5
|
+
import { VxeUI as T } from "vxe-table";
|
|
6
|
+
import { warnMessage as Q, successMessage as W } from "@utogether/utils";
|
|
7
|
+
import { X as Z, q as b, n as ee, _ as te } from "./index-C5WRTwvI.js";
|
|
8
|
+
const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__ */ U({
|
|
9
|
+
__name: "DepartmentPanel",
|
|
10
|
+
setup(se) {
|
|
11
|
+
const e = O({
|
|
12
|
+
record: {},
|
|
13
|
+
dataList: [],
|
|
14
|
+
loading: !1,
|
|
15
|
+
dialogFormVisible: !1,
|
|
16
|
+
isChecked: !1,
|
|
17
|
+
dataStatus: ""
|
|
18
|
+
}), V = Z().getDataDict, { t: i } = J(), u = ee(), D = {
|
|
19
|
+
deptName: [
|
|
20
|
+
{
|
|
21
|
+
required: !0,
|
|
22
|
+
message: `${i("message.required")}${i("message.deptName")}`
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
deptCode: [
|
|
26
|
+
{
|
|
27
|
+
required: !0,
|
|
28
|
+
message: `${i("message.required")}${i("message.deptCode")}`
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
deptType: [
|
|
32
|
+
{
|
|
33
|
+
required: !0,
|
|
34
|
+
message: `${i("message.required")}${i("message.deptType")}`
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}, f = $("active"), N = $("scrollPanelChange");
|
|
38
|
+
H(
|
|
39
|
+
() => f.value,
|
|
40
|
+
(a, t) => {
|
|
41
|
+
e.record = f.value, a?.id && t?.id && a !== t && h("detail");
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
const A = () => {
|
|
45
|
+
e.dataStatus = "add", e.record = {}, e.record.parentId = f.value?.id, e.isChecked = !1, e.dialogFormVisible = !0;
|
|
46
|
+
}, h = (a) => {
|
|
47
|
+
e.dataStatus = a, e.record = K(f.value, !0), e.dialogFormVisible = !0;
|
|
48
|
+
}, S = L("xForm"), F = () => {
|
|
49
|
+
S.value.validate(async (a) => {
|
|
50
|
+
if (!a) {
|
|
51
|
+
const { record: t, dataStatus: n } = e;
|
|
52
|
+
e.loading = !0;
|
|
53
|
+
const [x] = n === "add" ? await k(u.post(C, t)) : await k(u.put(C, t));
|
|
54
|
+
e.loading = !1, x || w();
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}, P = async () => {
|
|
58
|
+
const { record: a } = e;
|
|
59
|
+
if (a.children.length) return Q(i("message.deletePartment"));
|
|
60
|
+
await T.modal.confirm(i("message.tip.del")) === "confirm" && (await u.delete(C, a), w());
|
|
61
|
+
}, y = async (a) => {
|
|
62
|
+
if (await T.modal.confirm(i("message.tip.confirmSync")) === "confirm") {
|
|
63
|
+
const [n] = await k(u.post("/uums/department/syncEwDepartment", { code: a }));
|
|
64
|
+
if (n) return;
|
|
65
|
+
w();
|
|
66
|
+
}
|
|
67
|
+
}, w = () => {
|
|
68
|
+
N.value = !0, W(i("message.operateSuccess")), E();
|
|
69
|
+
}, q = () => {
|
|
70
|
+
e.dataStatus === "add" && (e.dialogFormVisible = !1), e.dataStatus = "";
|
|
71
|
+
}, E = () => {
|
|
72
|
+
e.dialogFormVisible = !1;
|
|
73
|
+
};
|
|
74
|
+
return (a, t) => {
|
|
75
|
+
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(), X("div", ae, [
|
|
77
|
+
o(x, {
|
|
78
|
+
perfect: "",
|
|
79
|
+
class: ""
|
|
80
|
+
}, {
|
|
81
|
+
buttons: d(() => [
|
|
82
|
+
o(n, {
|
|
83
|
+
status: "u-cyan",
|
|
84
|
+
icon: "ri-add-line",
|
|
85
|
+
content: "add",
|
|
86
|
+
auth: "add",
|
|
87
|
+
onTap: t[0] || (t[0] = (c) => A())
|
|
88
|
+
}),
|
|
89
|
+
v(b)("wechat") ? (r(), l(n, {
|
|
90
|
+
key: 0,
|
|
91
|
+
status: "success",
|
|
92
|
+
icon: "ri-refresh-line",
|
|
93
|
+
content: "sync",
|
|
94
|
+
onTap: t[1] || (t[1] = (c) => y("wechat"))
|
|
95
|
+
})) : p("", !0),
|
|
96
|
+
v(b)("dingding") ? (r(), l(n, {
|
|
97
|
+
key: 1,
|
|
98
|
+
status: "success",
|
|
99
|
+
icon: "ri-refresh-line",
|
|
100
|
+
content: "sync",
|
|
101
|
+
onTap: t[2] || (t[2] = (c) => y("dingding"))
|
|
102
|
+
})) : p("", !0),
|
|
103
|
+
v(b)("OA") ? (r(), l(n, {
|
|
104
|
+
key: 2,
|
|
105
|
+
status: "success",
|
|
106
|
+
icon: "ri-refresh-line",
|
|
107
|
+
content: "sync",
|
|
108
|
+
onTap: t[3] || (t[3] = (c) => y("OA"))
|
|
109
|
+
})) : p("", !0),
|
|
110
|
+
o(n, {
|
|
111
|
+
status: "primary",
|
|
112
|
+
icon: "ri-edit-box-line",
|
|
113
|
+
auth: "edit",
|
|
114
|
+
content: "edit",
|
|
115
|
+
onTap: t[4] || (t[4] = (c) => h("update"))
|
|
116
|
+
}),
|
|
117
|
+
o(n, {
|
|
118
|
+
status: "danger",
|
|
119
|
+
icon: "ri-close-fill",
|
|
120
|
+
auth: "del",
|
|
121
|
+
content: "delete",
|
|
122
|
+
onTap: t[5] || (t[5] = (c) => P())
|
|
123
|
+
})
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}),
|
|
127
|
+
e.dialogFormVisible ? Y((r(), l(g, {
|
|
128
|
+
key: 0,
|
|
129
|
+
type: "flex",
|
|
130
|
+
justify: "center",
|
|
131
|
+
align: "middle",
|
|
132
|
+
class: "w-departInfo-wrapper"
|
|
133
|
+
}, {
|
|
134
|
+
default: d(() => [
|
|
135
|
+
o(B, {
|
|
136
|
+
width: "60%",
|
|
137
|
+
shadow: "always",
|
|
138
|
+
class: "box-card w-card-wrapper"
|
|
139
|
+
}, {
|
|
140
|
+
default: d(() => [
|
|
141
|
+
t[7] || (t[7] = s("div", { class: "clearfix" }, [
|
|
142
|
+
s("span", { class: "w-card-title" })
|
|
143
|
+
], -1)),
|
|
144
|
+
o(g, null, {
|
|
145
|
+
default: d(() => [
|
|
146
|
+
o(I, {
|
|
147
|
+
ref_key: "xForm",
|
|
148
|
+
ref: S,
|
|
149
|
+
data: e.record,
|
|
150
|
+
rules: D,
|
|
151
|
+
"label-width": "90px"
|
|
152
|
+
}, {
|
|
153
|
+
default: d(() => [
|
|
154
|
+
o(_, {
|
|
155
|
+
title: a.$t("message.deptName"),
|
|
156
|
+
field: "deptName",
|
|
157
|
+
"item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
|
|
158
|
+
span: 24
|
|
159
|
+
}, null, 8, ["title", "item-render"]),
|
|
160
|
+
o(_, {
|
|
161
|
+
title: a.$t("message.deptCode"),
|
|
162
|
+
field: "deptCode",
|
|
163
|
+
"item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
|
|
164
|
+
span: 24
|
|
165
|
+
}, null, 8, ["title", "item-render"]),
|
|
166
|
+
o(_, {
|
|
167
|
+
title: a.$t("message.deptType"),
|
|
168
|
+
field: "deptType",
|
|
169
|
+
"item-render": {
|
|
170
|
+
name: "$select",
|
|
171
|
+
options: v(V)["SU.DEPARTMENT.TYPE"]?.children,
|
|
172
|
+
optionProps: { label: "dictName", value: "dictCode" },
|
|
173
|
+
props: { disabled: e.dataStatus === "detail" }
|
|
174
|
+
},
|
|
175
|
+
span: 24
|
|
176
|
+
}, null, 8, ["title", "item-render"])
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["data"])
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}),
|
|
183
|
+
o(g, {
|
|
184
|
+
type: "flex",
|
|
185
|
+
justify: "center"
|
|
186
|
+
}, {
|
|
187
|
+
default: d(() => [
|
|
188
|
+
e.dataStatus === "add" ? (r(), l(j, {
|
|
189
|
+
key: 0,
|
|
190
|
+
modelValue: e.isChecked,
|
|
191
|
+
"onUpdate:modelValue": t[6] || (t[6] = (c) => e.isChecked = c),
|
|
192
|
+
style: { "padding-top": "5px", "margin-right": "8px" }
|
|
193
|
+
}, {
|
|
194
|
+
default: d(() => [
|
|
195
|
+
z(G(a.$t("message.udp.continueAdd")), 1)
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["modelValue"])) : p("", !0),
|
|
199
|
+
e.dataStatus !== "detail" ? (r(), l(n, {
|
|
200
|
+
key: 1,
|
|
201
|
+
status: "primary",
|
|
202
|
+
content: "confirm",
|
|
203
|
+
onTap: F
|
|
204
|
+
})) : p("", !0),
|
|
205
|
+
e.dataStatus !== "detail" ? (r(), l(n, {
|
|
206
|
+
key: 2,
|
|
207
|
+
status: "warning",
|
|
208
|
+
content: "cancel",
|
|
209
|
+
onClick: q
|
|
210
|
+
})) : p("", !0)
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
})
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
})
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
})), [
|
|
220
|
+
[M, e.loading]
|
|
221
|
+
]) : (r(), l(g, {
|
|
222
|
+
key: 1,
|
|
223
|
+
class: "w-noclick-wrapper"
|
|
224
|
+
}, {
|
|
225
|
+
default: d(() => [...t[8] || (t[8] = [
|
|
226
|
+
s("div", { class: "w-content-wrapper" }, [
|
|
227
|
+
s("ul", null, [
|
|
228
|
+
s("li", { class: "w-department-line" }, [
|
|
229
|
+
s("div", null, "● 点击新建,新建部门信息。"),
|
|
230
|
+
s("div", { style: { margin: "0", "text-indent": "2em" } }, "已点击树结构上的部门名称,默认创建为当前部门的下属部门"),
|
|
231
|
+
s("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的部门名称,则创建为一级部门")
|
|
232
|
+
]),
|
|
233
|
+
s("li", { class: "w-department-line" }, "● 点击树结构上的部门名称,点击修改按钮,修改部门信息。"),
|
|
234
|
+
s("li", { class: "w-department-line" }, [
|
|
235
|
+
s("div", null, "● 点击树结构上的部门名称,点击删除按钮,删除部门信息。"),
|
|
236
|
+
s("div", { style: { "text-indent": "2em" } }, "当部门下有人员存在时,不允许删除部门信息。")
|
|
237
|
+
])
|
|
238
|
+
])
|
|
239
|
+
], -1)
|
|
240
|
+
])]),
|
|
241
|
+
_: 1
|
|
242
|
+
}))
|
|
243
|
+
]);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}), pe = /* @__PURE__ */ te(ne, [["__scopeId", "data-v-aafa42c0"]]);
|
|
247
|
+
export {
|
|
248
|
+
pe as default
|
|
249
|
+
};
|