xyvcard-itsmsys 0.0.10 → 0.0.11
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/{edit-RSO388mB.mjs → edit-BSIP_9Mq.mjs} +112 -114
- package/dist/{edit-DG_Iw1-J.mjs → edit-BcE5qrWo.mjs} +1 -1
- package/dist/{edit-BNe0hNw4.mjs → edit-BsUWSNnA.mjs} +108 -110
- package/dist/{edit-DdUUCXSa.mjs → edit-CW0kqOpj.mjs} +1 -1
- package/dist/{edit-BqPZHwxi.mjs → edit-CiCHPkRg.mjs} +1 -1
- package/dist/{edit-CyM6IuLb.mjs → edit-Dxs-2AFY.mjs} +118 -120
- package/dist/{edit-CwV1OVfe.mjs → edit-znznl9Td.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs → edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs} +125 -143
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs → edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs} +128 -146
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs → edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs} +1 -1
- package/dist/edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs +404 -0
- package/dist/{index-CMBtB1kH.mjs → index-4qnVgDwe.mjs} +4 -4
- package/dist/index-B2xwBTw-.mjs +20 -0
- package/dist/{index-CI8Z4rNf.mjs → index-BIvJ7rs4.mjs} +1 -1
- package/dist/{index-w2SWNZRB.mjs → index-BTO0NHK6.mjs} +2 -2
- package/dist/{index-NugT80P7.mjs → index-BV3Je3Rq.mjs} +1 -1
- package/dist/{index-DirPUdCN.mjs → index-CNRO77Xg.mjs} +1 -1
- package/dist/{index-DxILUznW.mjs → index-CzE5REdf.mjs} +1 -1
- package/dist/{index-CNGaGeE7.mjs → index-Hh4b5GAI.mjs} +2 -2
- package/dist/{index-CQ5Bo5a2.mjs → index-cBbN-uY2.mjs} +50 -30
- package/dist/index.mjs +481 -483
- package/dist/{index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs → index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs} +2 -2
- package/dist/{info-Dilg-bji.mjs → info-BCPme1g5.mjs} +1 -1
- package/dist/{info-BFZTqoY3.mjs → info-BP7wPWFZ.mjs} +1 -1
- package/dist/{info-DReeRuaA.mjs → info-CtGMbfQJ.mjs} +1 -1
- package/dist/{info-CXx2899k.mjs → info-DCRqBi8M.mjs} +3 -3
- package/dist/{info-DvYUiSRY.mjs → info-DRYPl2T-.mjs} +3 -3
- package/dist/{info-C0OHjgoS.mjs → info-Dk3RzCIp.mjs} +11 -11
- package/dist/style.css +1 -1
- package/dts/api/itsm-sys-org/types.d.ts +0 -2
- package/dts/api/itsm-sys-org-invoice/types.d.ts +0 -1
- package/dts/api/itsm-sys-user-ext/types.d.ts +0 -1
- package/dts/constant.d.ts +13 -0
- package/dts/index.d.ts +0 -1
- package/dts/lang/itsmsys/zh-cn.d.ts +9 -11
- package/package.json +3 -3
- package/dist/common-B2PCBCJ2.mjs +0 -13
- package/dist/edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs +0 -438
- package/dist/index-BRupqW34.mjs +0 -96
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { defineComponent as H, mergeModels as k, ref as y, useModel as Q, reactive as S, resolveComponent as n, openBlock as g, createBlock as V, withCtx as a, createElementVNode as W, createVNode as l, createTextVNode as c, toDisplayString as h, unref as t, createElementBlock as Y, Fragment as x, renderList as ee, createCommentVNode as le } from "vue";
|
|
2
|
+
import { ElMessage as C } from "element-plus";
|
|
3
|
+
import { useI18n as ae } from "vue-i18n";
|
|
4
|
+
import { D as _, C as M } from "./index-cBbN-uY2.mjs";
|
|
5
|
+
import { deptApi as oe, jobApi as se } from "jmash-rbac";
|
|
6
|
+
import { sysUserExtApi as w, sysOrgApi as re } from "./index.mjs";
|
|
7
|
+
import { generateRandomKey as te } from "jmash-core";
|
|
8
|
+
const de = { class: "dialog-footer" }, ye = /* @__PURE__ */ H({
|
|
9
|
+
__name: "edit",
|
|
10
|
+
props: /* @__PURE__ */ k({
|
|
11
|
+
entityKey: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => {
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
modelValue: { type: Boolean },
|
|
18
|
+
modelModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: /* @__PURE__ */ k(["refresh"], ["update:modelValue"]),
|
|
21
|
+
setup(v, { emit: O }) {
|
|
22
|
+
const { t: i } = ae(), I = y(), j = y(), $ = y(), p = Q(v, "modelValue"), q = O;
|
|
23
|
+
_.sysOrgBizDict.useValues();
|
|
24
|
+
let s = S({
|
|
25
|
+
requestId: Math.random() * 10 + "",
|
|
26
|
+
updateMask: "realName,gender,mobilePhone,email,idNo,jobStatus,deptId,jobId,orgId",
|
|
27
|
+
userType: M.userType.companyManager,
|
|
28
|
+
jobStatus: M.jobStatus.working
|
|
29
|
+
});
|
|
30
|
+
const A = (e, o, d) => {
|
|
31
|
+
o === void 0 && d(new Error(i("sysUserMan.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(o) || d(new Error(i("sysUserMan.mobilePhoneRequireds"))), d();
|
|
32
|
+
}, D = S({
|
|
33
|
+
realName: [
|
|
34
|
+
{
|
|
35
|
+
required: !0,
|
|
36
|
+
message: i("sysUserMan.realNameRequired"),
|
|
37
|
+
trigger: "blur"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
mobilePhone: [
|
|
41
|
+
{
|
|
42
|
+
required: !0,
|
|
43
|
+
trigger: "blur",
|
|
44
|
+
validator: A
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
email: [
|
|
48
|
+
{
|
|
49
|
+
pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
|
|
50
|
+
message: i("sysUserMan.emailRequireds"),
|
|
51
|
+
trigger: "blur"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
idNo: [
|
|
55
|
+
{
|
|
56
|
+
pattern: /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}(\d|X)$/,
|
|
57
|
+
message: i("sysUserMan.idNoLengthRequired"),
|
|
58
|
+
trigger: "blur"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
orgId: [
|
|
62
|
+
{
|
|
63
|
+
required: !0,
|
|
64
|
+
message: i("sysUserMan.orgIdRequired"),
|
|
65
|
+
trigger: "change"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
userPassword: [
|
|
69
|
+
{
|
|
70
|
+
required: !0,
|
|
71
|
+
message: i("sysUserMan.userPasswordRequired"),
|
|
72
|
+
trigger: "blur"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}), R = v, E = Object.keys(R.entityKey), b = y(E.length >= 1);
|
|
76
|
+
b.value && w.findById(R.entityKey).then(({ data: e }) => {
|
|
77
|
+
Object.assign(s, e);
|
|
78
|
+
});
|
|
79
|
+
const B = async () => {
|
|
80
|
+
var e;
|
|
81
|
+
await ((e = $.value) == null ? void 0 : e.validate((o) => {
|
|
82
|
+
o && (b.value ? w.update(s).then((d) => {
|
|
83
|
+
console.log(d), d.status === 200 && (C({
|
|
84
|
+
message: i("common.submitSuccess"),
|
|
85
|
+
type: "success"
|
|
86
|
+
}), p.value && (p.value = !1), q("refresh", d.status === 200));
|
|
87
|
+
}) : w.create(s).then((d) => {
|
|
88
|
+
console.log(d), d.status === 200 && (C({
|
|
89
|
+
message: i("common.submitSuccess"),
|
|
90
|
+
type: "success"
|
|
91
|
+
}), p.value && (p.value = !1), q("refresh", d.status === 200));
|
|
92
|
+
}));
|
|
93
|
+
}));
|
|
94
|
+
};
|
|
95
|
+
function z() {
|
|
96
|
+
oe.treelistDept().then(({ data: e }) => {
|
|
97
|
+
I.value = e.results;
|
|
98
|
+
}), se.treelistJob().then(({ data: e }) => {
|
|
99
|
+
j.value = e.results;
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
z();
|
|
103
|
+
function T() {
|
|
104
|
+
b.value || re.findPage({ orgType: M.orgType.cloud }).then(({ data: { results: e } }) => {
|
|
105
|
+
s.orgId = e[0].orgId;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
T();
|
|
109
|
+
function F() {
|
|
110
|
+
s.userPassword = te();
|
|
111
|
+
}
|
|
112
|
+
function N() {
|
|
113
|
+
p.value && (p.value = !1);
|
|
114
|
+
}
|
|
115
|
+
return (e, o) => {
|
|
116
|
+
const d = n("jmash-select"), u = n("el-form-item"), m = n("el-col"), f = n("el-input"), K = n("jmash-enum-select"), P = n("el-tree-select"), Z = n("el-radio"), L = n("el-radio-group"), U = n("el-button"), G = n("el-row"), J = n("el-form"), X = n("el-dialog");
|
|
117
|
+
return g(), V(X, {
|
|
118
|
+
modelValue: p.value,
|
|
119
|
+
"onUpdate:modelValue": o[10] || (o[10] = (r) => p.value = r),
|
|
120
|
+
onClose: N
|
|
121
|
+
}, {
|
|
122
|
+
footer: a(() => [
|
|
123
|
+
W("div", de, [
|
|
124
|
+
l(U, { onClick: N }, {
|
|
125
|
+
default: a(() => [
|
|
126
|
+
c(h(e.$t("common.cancel")), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}),
|
|
130
|
+
l(U, {
|
|
131
|
+
type: "primary",
|
|
132
|
+
onClick: B
|
|
133
|
+
}, {
|
|
134
|
+
default: a(() => [
|
|
135
|
+
c(h(e.$t("common.confirm")), 1)
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
})
|
|
139
|
+
])
|
|
140
|
+
]),
|
|
141
|
+
default: a(() => [
|
|
142
|
+
l(J, {
|
|
143
|
+
ref_key: "sysUserExtFormRef",
|
|
144
|
+
ref: $,
|
|
145
|
+
model: t(s),
|
|
146
|
+
"label-width": "100px",
|
|
147
|
+
rules: D
|
|
148
|
+
}, {
|
|
149
|
+
default: a(() => [
|
|
150
|
+
l(G, null, {
|
|
151
|
+
default: a(() => [
|
|
152
|
+
l(m, { span: 12 }, {
|
|
153
|
+
default: a(() => [
|
|
154
|
+
l(u, {
|
|
155
|
+
label: e.$t("sysUserMan.orgId"),
|
|
156
|
+
prop: "orgId"
|
|
157
|
+
}, {
|
|
158
|
+
default: a(() => [
|
|
159
|
+
l(d, {
|
|
160
|
+
modelValue: t(s).orgId,
|
|
161
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => t(s).orgId = r),
|
|
162
|
+
placeholder: e.$t("sysUserMan.orgIdRequired"),
|
|
163
|
+
data: t(_).sysOrgBizDict.values,
|
|
164
|
+
clearable: "",
|
|
165
|
+
class: "w-full"
|
|
166
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}, 8, ["label"])
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
}),
|
|
173
|
+
l(m, { span: 12 }, {
|
|
174
|
+
default: a(() => [
|
|
175
|
+
l(u, {
|
|
176
|
+
label: e.$t("sysUserMan.realName"),
|
|
177
|
+
prop: "realName"
|
|
178
|
+
}, {
|
|
179
|
+
default: a(() => [
|
|
180
|
+
l(f, {
|
|
181
|
+
modelValue: t(s).realName,
|
|
182
|
+
"onUpdate:modelValue": o[1] || (o[1] = (r) => t(s).realName = r),
|
|
183
|
+
placeholder: e.$t("sysUserMan.realNameRequired"),
|
|
184
|
+
maxlength: "8",
|
|
185
|
+
"show-word-limit": "",
|
|
186
|
+
clearable: ""
|
|
187
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["label"])
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
}),
|
|
194
|
+
l(m, { span: 12 }, {
|
|
195
|
+
default: a(() => [
|
|
196
|
+
l(u, {
|
|
197
|
+
label: e.$t("sysUserMan.gender"),
|
|
198
|
+
prop: "gender"
|
|
199
|
+
}, {
|
|
200
|
+
default: a(() => [
|
|
201
|
+
l(K, {
|
|
202
|
+
modelValue: t(s).gender,
|
|
203
|
+
"onUpdate:modelValue": o[2] || (o[2] = (r) => t(s).gender = r),
|
|
204
|
+
clearable: "",
|
|
205
|
+
placeholder: e.$t("sysUserMan.genderRequired"),
|
|
206
|
+
"enum-type": "jmash.protobuf.Gender",
|
|
207
|
+
class: "w-full"
|
|
208
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["label"])
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}),
|
|
215
|
+
l(m, { span: 12 }, {
|
|
216
|
+
default: a(() => [
|
|
217
|
+
l(u, {
|
|
218
|
+
label: e.$t("sysUserMan.mobilePhone"),
|
|
219
|
+
prop: "mobilePhone"
|
|
220
|
+
}, {
|
|
221
|
+
default: a(() => [
|
|
222
|
+
l(f, {
|
|
223
|
+
modelValue: t(s).mobilePhone,
|
|
224
|
+
"onUpdate:modelValue": o[3] || (o[3] = (r) => t(s).mobilePhone = r),
|
|
225
|
+
placeholder: e.$t("sysUserMan.mobilePhoneRequired"),
|
|
226
|
+
maxlength: "11",
|
|
227
|
+
"show-word-limit": "",
|
|
228
|
+
clearable: ""
|
|
229
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["label"])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}),
|
|
236
|
+
l(m, { span: 12 }, {
|
|
237
|
+
default: a(() => [
|
|
238
|
+
l(u, {
|
|
239
|
+
label: e.$t("sysUserMan.email"),
|
|
240
|
+
prop: "email"
|
|
241
|
+
}, {
|
|
242
|
+
default: a(() => [
|
|
243
|
+
l(f, {
|
|
244
|
+
modelValue: t(s).email,
|
|
245
|
+
"onUpdate:modelValue": o[4] || (o[4] = (r) => t(s).email = r),
|
|
246
|
+
placeholder: e.$t("sysUserMan.emailRequired"),
|
|
247
|
+
maxlength: "30",
|
|
248
|
+
"show-word-limit": "",
|
|
249
|
+
clearable: ""
|
|
250
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}, 8, ["label"])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}),
|
|
257
|
+
l(m, { span: 12 }, {
|
|
258
|
+
default: a(() => [
|
|
259
|
+
l(u, {
|
|
260
|
+
label: e.$t("sysUserOps.idNo"),
|
|
261
|
+
prop: "idNo"
|
|
262
|
+
}, {
|
|
263
|
+
default: a(() => [
|
|
264
|
+
l(f, {
|
|
265
|
+
modelValue: t(s).idNo,
|
|
266
|
+
"onUpdate:modelValue": o[5] || (o[5] = (r) => t(s).idNo = r),
|
|
267
|
+
placeholder: e.$t("sysUserOps.idNoRequired"),
|
|
268
|
+
maxlength: "18",
|
|
269
|
+
"show-word-limit": "",
|
|
270
|
+
clearable: ""
|
|
271
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 8, ["label"])
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
}),
|
|
278
|
+
l(m, { span: 12 }, {
|
|
279
|
+
default: a(() => [
|
|
280
|
+
l(u, {
|
|
281
|
+
label: e.$t("sysUserMan.deptId"),
|
|
282
|
+
prop: "deptId"
|
|
283
|
+
}, {
|
|
284
|
+
default: a(() => [
|
|
285
|
+
l(P, {
|
|
286
|
+
modelValue: t(s).deptId,
|
|
287
|
+
"onUpdate:modelValue": o[6] || (o[6] = (r) => t(s).deptId = r),
|
|
288
|
+
data: I.value,
|
|
289
|
+
"render-after-expand": !1,
|
|
290
|
+
filterable: "",
|
|
291
|
+
clearable: "",
|
|
292
|
+
"check-strictly": "",
|
|
293
|
+
placeholder: e.$t("sysUserMan.deptIdRequired"),
|
|
294
|
+
style: { width: "100%" }
|
|
295
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
}, 8, ["label"])
|
|
299
|
+
]),
|
|
300
|
+
_: 1
|
|
301
|
+
}),
|
|
302
|
+
l(m, { span: 12 }, {
|
|
303
|
+
default: a(() => [
|
|
304
|
+
l(u, {
|
|
305
|
+
label: e.$t("sysUserMan.jobId"),
|
|
306
|
+
prop: "jobId"
|
|
307
|
+
}, {
|
|
308
|
+
default: a(() => [
|
|
309
|
+
l(P, {
|
|
310
|
+
modelValue: t(s).jobId,
|
|
311
|
+
"onUpdate:modelValue": o[7] || (o[7] = (r) => t(s).jobId = r),
|
|
312
|
+
data: j.value,
|
|
313
|
+
"render-after-expand": !1,
|
|
314
|
+
filterable: "",
|
|
315
|
+
clearable: "",
|
|
316
|
+
"check-strictly": "",
|
|
317
|
+
placeholder: e.$t("sysUserMan.jobIdRequired"),
|
|
318
|
+
style: { width: "100%" }
|
|
319
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
320
|
+
]),
|
|
321
|
+
_: 1
|
|
322
|
+
}, 8, ["label"])
|
|
323
|
+
]),
|
|
324
|
+
_: 1
|
|
325
|
+
}),
|
|
326
|
+
l(m, { span: 12 }, {
|
|
327
|
+
default: a(() => [
|
|
328
|
+
l(u, {
|
|
329
|
+
label: e.$t("sysUserOps.jobStatus"),
|
|
330
|
+
prop: "jobStatus"
|
|
331
|
+
}, {
|
|
332
|
+
default: a(() => [
|
|
333
|
+
l(L, {
|
|
334
|
+
modelValue: t(s).jobStatus,
|
|
335
|
+
"onUpdate:modelValue": o[8] || (o[8] = (r) => t(s).jobStatus = r)
|
|
336
|
+
}, {
|
|
337
|
+
default: a(() => [
|
|
338
|
+
(g(!0), Y(x, null, ee(t(_).jobStatusDictEnum.values, (r) => (g(), V(Z, {
|
|
339
|
+
key: r.key,
|
|
340
|
+
label: r.key
|
|
341
|
+
}, {
|
|
342
|
+
default: a(() => [
|
|
343
|
+
c(h(r.value), 1)
|
|
344
|
+
]),
|
|
345
|
+
_: 2
|
|
346
|
+
}, 1032, ["label"]))), 128))
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
}, 8, ["modelValue"])
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
}, 8, ["label"])
|
|
353
|
+
]),
|
|
354
|
+
_: 1
|
|
355
|
+
}),
|
|
356
|
+
b.value ? le("", !0) : (g(), V(m, {
|
|
357
|
+
key: 0,
|
|
358
|
+
span: 12
|
|
359
|
+
}, {
|
|
360
|
+
default: a(() => [
|
|
361
|
+
l(u, {
|
|
362
|
+
label: e.$t("sysUserMan.userPassword"),
|
|
363
|
+
prop: "userPassword"
|
|
364
|
+
}, {
|
|
365
|
+
default: a(() => [
|
|
366
|
+
l(f, {
|
|
367
|
+
modelValue: t(s).userPassword,
|
|
368
|
+
"onUpdate:modelValue": o[9] || (o[9] = (r) => t(s).userPassword = r),
|
|
369
|
+
clearable: "",
|
|
370
|
+
type: "password",
|
|
371
|
+
"show-password": "",
|
|
372
|
+
placeholder: e.$t("sysUserMan.userPasswordRequired")
|
|
373
|
+
}, {
|
|
374
|
+
append: a(() => [
|
|
375
|
+
l(U, { onClick: F }, {
|
|
376
|
+
default: a(() => [
|
|
377
|
+
c(h(e.$t("sysUserMan.randomPwd")), 1)
|
|
378
|
+
]),
|
|
379
|
+
_: 1
|
|
380
|
+
})
|
|
381
|
+
]),
|
|
382
|
+
_: 1
|
|
383
|
+
}, 8, ["modelValue", "placeholder"])
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
}, 8, ["label"])
|
|
387
|
+
]),
|
|
388
|
+
_: 1
|
|
389
|
+
}))
|
|
390
|
+
]),
|
|
391
|
+
_: 1
|
|
392
|
+
})
|
|
393
|
+
]),
|
|
394
|
+
_: 1
|
|
395
|
+
}, 8, ["model", "rules"])
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
}, 8, ["modelValue"]);
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
export {
|
|
403
|
+
ye as _
|
|
404
|
+
};
|
|
@@ -2,9 +2,9 @@ import { defineComponent as oe, ref as E, reactive as P, resolveComponent as i,
|
|
|
2
2
|
import { useTableHooks as ne } from "jmash-core";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
4
|
import { useRouter as se } from "vue-router";
|
|
5
|
-
import { D as m, C as M } from "./index-
|
|
5
|
+
import { D as m, C as M } from "./index-cBbN-uY2.mjs";
|
|
6
6
|
import { sysUserExtApi as re } from "./index.mjs";
|
|
7
|
-
import { _ as ue } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as ue } from "./edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs";
|
|
8
8
|
const ie = { class: "app-container" }, de = { class: "search-container" }, me = { key: 0 }, pe = ["onClick"], ye = ["onClick"], be = ["onClick"], Ce = /* @__PURE__ */ oe({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(ce) {
|
|
@@ -52,7 +52,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, me =
|
|
|
52
52
|
columnType: "slot"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
label: "sysUserOps.
|
|
55
|
+
label: "sysUserOps.orgId",
|
|
56
56
|
prop: "orgId",
|
|
57
57
|
isColumn: !0,
|
|
58
58
|
width: "270",
|
|
@@ -137,7 +137,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, me =
|
|
|
137
137
|
n(c, { span: 6 }, {
|
|
138
138
|
default: o(() => [
|
|
139
139
|
n(w, {
|
|
140
|
-
label: l.$t("sysUserOps.
|
|
140
|
+
label: l.$t("sysUserOps.orgId"),
|
|
141
141
|
prop: "orgId"
|
|
142
142
|
}, {
|
|
143
143
|
default: o(() => [
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent as e, openBlock as r, createElementBlock as t, createElementVNode as a } from "vue";
|
|
2
|
+
/*! Element Plus Icons Vue v2.3.1 */
|
|
3
|
+
var _ = /* @__PURE__ */ e({
|
|
4
|
+
name: "Search",
|
|
5
|
+
__name: "search",
|
|
6
|
+
setup(o) {
|
|
7
|
+
return (c, n) => (r(), t("svg", {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 1024 1024"
|
|
10
|
+
}, [
|
|
11
|
+
a("path", {
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
|
|
14
|
+
})
|
|
15
|
+
]));
|
|
16
|
+
}
|
|
17
|
+
}), s = _;
|
|
18
|
+
export {
|
|
19
|
+
s
|
|
20
|
+
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as J, ref as P, resolveComponent as s, resolveDirective
|
|
|
2
2
|
import { useTableHooks as Y } from "jmash-core";
|
|
3
3
|
import { useI18n as Z } from "vue-i18n";
|
|
4
4
|
import { useRouter as x } from "vue-router";
|
|
5
|
-
import { C as ee, D as te } from "./index-
|
|
5
|
+
import { C as ee, D as te } from "./index-cBbN-uY2.mjs";
|
|
6
6
|
import { sysOrgApi as oe } from "./index.mjs";
|
|
7
7
|
const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], be = /* @__PURE__ */ J({
|
|
8
8
|
__name: "index",
|
|
@@ -2,9 +2,9 @@ import { defineComponent as oe, ref as j, reactive as M, resolveComponent as r,
|
|
|
2
2
|
import { useTableHooks as ne } from "jmash-core";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
4
|
import { useRouter as se } from "vue-router";
|
|
5
|
-
import { C as J, D as c } from "./index-
|
|
5
|
+
import { C as J, D as c } from "./index-cBbN-uY2.mjs";
|
|
6
6
|
import { sysUserExtApi as re } from "./index.mjs";
|
|
7
|
-
import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs";
|
|
8
8
|
const ue = { class: "app-container" }, de = { class: "search-container" }, me = { key: 0 }, pe = ["onClick"], ye = ["onClick"], be = ["onClick"], Ce = /* @__PURE__ */ oe({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(ce) {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as ee, ref as D, resolveComponent as s, resolveDirectiv
|
|
|
2
2
|
import { useTableHooks as ne } from "jmash-core";
|
|
3
3
|
import { ElMessageBox as I, ElMessage as T } from "element-plus";
|
|
4
4
|
import { useI18n as le } from "vue-i18n";
|
|
5
|
-
import { C as se, D as ae } from "./index-
|
|
5
|
+
import { C as se, D as ae } from "./index-cBbN-uY2.mjs";
|
|
6
6
|
import { sysOrgApi as w } from "./index.mjs";
|
|
7
7
|
import { useRouter as re } from "vue-router";
|
|
8
8
|
const me = { class: "app-container" }, ie = { class: "search-container" }, ce = ["onClick"], de = ["onClick"], ue = ["onClick"], we = /* @__PURE__ */ ee({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as J, ref as P, resolveComponent as s, resolveDirective as W, openBlock as m, createElementBlock as h, createElementVNode as $, createVNode as n, withCtx as l, withKeys as V, unref as a, createTextVNode as u, toDisplayString as d, withDirectives as b, createBlock as C, isRef as N, createCommentVNode as X } from "vue";
|
|
2
2
|
import { useTableHooks as Y } from "jmash-core";
|
|
3
3
|
import { useI18n as Z } from "vue-i18n";
|
|
4
|
-
import { C as x, D as ee } from "./index-
|
|
4
|
+
import { C as x, D as ee } from "./index-cBbN-uY2.mjs";
|
|
5
5
|
import { sysOrgApi as te } from "./index.mjs";
|
|
6
6
|
import { useRouter as oe } from "vue-router";
|
|
7
7
|
const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], ge = /* @__PURE__ */ J({
|
|
@@ -2,9 +2,9 @@ import { defineComponent as oe, ref as U, reactive as I, resolveComponent as s,
|
|
|
2
2
|
import { useTableHooks as ae } from "jmash-core";
|
|
3
3
|
import { useI18n as ne } from "vue-i18n";
|
|
4
4
|
import { useRouter as se } from "vue-router";
|
|
5
|
-
import { C as q, D as S } from "./index-
|
|
5
|
+
import { C as q, D as S } from "./index-cBbN-uY2.mjs";
|
|
6
6
|
import { sysUserExtApi as re } from "./index.mjs";
|
|
7
|
-
import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs";
|
|
8
8
|
const ue = { class: "app-container" }, me = { class: "search-container" }, de = { key: 0 }, pe = ["onClick"], ce = ["onClick"], ye = ["onClick"], Ce = /* @__PURE__ */ oe({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(be) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (i, r, t) =>
|
|
4
|
-
import { ref as
|
|
5
|
-
import { BizLayDict as
|
|
6
|
-
import { sysOrgApi as
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var S = (i, r, t) => r in i ? l(i, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[r] = t;
|
|
3
|
+
var s = (i, r, t) => S(i, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
+
import { ref as T, reactive as p } from "vue";
|
|
5
|
+
import { BizLayDict as _, BizDict as O, EnumDict as c } from "jmash-core";
|
|
6
|
+
import { sysOrgApi as y } from "./index.mjs";
|
|
7
7
|
class e {
|
|
8
8
|
}
|
|
9
9
|
//模块
|
|
10
10
|
s(e, "MODULE_RBAC", "rbac"), s(e, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
|
|
11
|
-
s(e, "HAS_STATUS",
|
|
11
|
+
s(e, "HAS_STATUS", T([
|
|
12
12
|
{ key: !0, value: "启用" },
|
|
13
13
|
{ key: !1, value: "禁用" }
|
|
14
14
|
])), // 公司发票类型
|
|
@@ -38,10 +38,30 @@ s(e, "userType", {
|
|
|
38
38
|
companyOps: "COMPANY_OPS",
|
|
39
39
|
// 外协运维
|
|
40
40
|
outsourceOps: "OUTSOURCE_OPS"
|
|
41
|
+
}), // 工程师类型
|
|
42
|
+
s(e, "engineeType", {
|
|
43
|
+
// 等保测评
|
|
44
|
+
ease_test: "EASE_TEST",
|
|
45
|
+
// 安全服务
|
|
46
|
+
security_service: "SECURITY_SERVICE",
|
|
47
|
+
// 密码评价
|
|
48
|
+
password_ecaluation: "PASSWORD_EVALUATION"
|
|
49
|
+
}), // 工作模式
|
|
50
|
+
s(e, "engineeJobMode", {
|
|
51
|
+
// 驻场人员
|
|
52
|
+
resident: "RESIDENT",
|
|
53
|
+
// 远程人员
|
|
54
|
+
remote: "REMOTE"
|
|
55
|
+
}), // 高德地图配置
|
|
56
|
+
s(e, "amapConfig", {
|
|
57
|
+
// 高德地图key
|
|
58
|
+
apiKey: "b08fdd63c62296ccd2c1f2cc0f423e14",
|
|
59
|
+
// 高德地图安全密钥
|
|
60
|
+
securityJsCode: "9c92eb8120ea30d8c5ce75140e5b5c08"
|
|
41
61
|
});
|
|
42
|
-
class
|
|
62
|
+
class h {
|
|
43
63
|
constructor(r, t) {
|
|
44
|
-
s(this, "values",
|
|
64
|
+
s(this, "values", p([]));
|
|
45
65
|
// 查询条件
|
|
46
66
|
s(this, "query");
|
|
47
67
|
this.values.length = 0, this.values.push(...r.value), this.query = t;
|
|
@@ -54,18 +74,18 @@ class O {
|
|
|
54
74
|
return "";
|
|
55
75
|
}
|
|
56
76
|
}
|
|
57
|
-
class M extends
|
|
77
|
+
class M extends _ {
|
|
58
78
|
// 实现 useValues 方法
|
|
59
79
|
useValues() {
|
|
60
80
|
return new Promise((r, t) => {
|
|
61
|
-
if (typeof
|
|
81
|
+
if (typeof y.findList > "u") {
|
|
62
82
|
r(this.values);
|
|
63
83
|
return;
|
|
64
84
|
}
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(
|
|
85
|
+
const E = { ...this.query };
|
|
86
|
+
y.findList(E).then(({ data: o }) => {
|
|
87
|
+
const u = o.results;
|
|
88
|
+
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(u)), r(this.values);
|
|
69
89
|
}).catch(t);
|
|
70
90
|
});
|
|
71
91
|
}
|
|
@@ -78,17 +98,17 @@ class M extends h {
|
|
|
78
98
|
}));
|
|
79
99
|
}
|
|
80
100
|
}
|
|
81
|
-
class
|
|
101
|
+
class n extends O {
|
|
82
102
|
// 实现 useValues 方法
|
|
83
103
|
useValues() {
|
|
84
104
|
return new Promise((r, t) => {
|
|
85
|
-
|
|
86
|
-
const
|
|
105
|
+
y.findPage(this.query).then(({ data: E }) => {
|
|
106
|
+
const o = E.results;
|
|
87
107
|
this.values.length = 0, this.values.push(
|
|
88
|
-
...
|
|
89
|
-
(
|
|
90
|
-
key:
|
|
91
|
-
value:
|
|
108
|
+
...o.map(
|
|
109
|
+
(u) => ({
|
|
110
|
+
key: u.orgId,
|
|
111
|
+
value: u.orgName
|
|
92
112
|
})
|
|
93
113
|
)
|
|
94
114
|
), r(this.values);
|
|
@@ -99,34 +119,34 @@ class l extends _ {
|
|
|
99
119
|
class a {
|
|
100
120
|
}
|
|
101
121
|
// 公司管理状态
|
|
102
|
-
s(a, "hasStatusDict", new
|
|
103
|
-
s(a, "invoiceTypeDictEnum", new
|
|
122
|
+
s(a, "hasStatusDict", new h(e.HAS_STATUS, {})), // 公司发票类型
|
|
123
|
+
s(a, "invoiceTypeDictEnum", new c(
|
|
104
124
|
e.MODULE_ITSMSYS,
|
|
105
125
|
e.ENUM_INVOICE_TYPE
|
|
106
126
|
)), // 厅局管理父厅级单位
|
|
107
127
|
s(a, "parentIdBizDict", new M({
|
|
108
128
|
orgType: e.orgType.hall
|
|
109
129
|
})), // 管理人员工作状态
|
|
110
|
-
s(a, "jobStatusDictEnum", new
|
|
130
|
+
s(a, "jobStatusDictEnum", new c(
|
|
111
131
|
e.MODULE_ITSMSYS,
|
|
112
132
|
e.ENUM_JOB_ATATUS
|
|
113
133
|
)), // 运维人员工作模式
|
|
114
|
-
s(a, "engineeJobModeDictEnum", new
|
|
134
|
+
s(a, "engineeJobModeDictEnum", new c(
|
|
115
135
|
e.MODULE_ITSMSYS,
|
|
116
136
|
e.ENUM_ENGINEE_JOB_MODE
|
|
117
137
|
)), // 性别
|
|
118
|
-
s(a, "genderDict", new
|
|
138
|
+
s(a, "genderDict", new c(
|
|
119
139
|
e.MODULE_RBAC,
|
|
120
140
|
e.ENUM_GENDER
|
|
121
141
|
)), // 运维人员工程师类型
|
|
122
|
-
s(a, "engineeTypeDictEnum", new
|
|
142
|
+
s(a, "engineeTypeDictEnum", new c(
|
|
123
143
|
e.MODULE_ITSMSYS,
|
|
124
144
|
e.ENUM_ENGINEE_TYPE
|
|
125
145
|
)), // 公司人员选择公司名称
|
|
126
|
-
s(a, "sysOrgBizDict", new
|
|
146
|
+
s(a, "sysOrgBizDict", new n({
|
|
127
147
|
orgType: e.orgType.cloud
|
|
128
148
|
})), // 外协运维人员选择公司名称
|
|
129
|
-
s(a, "sysOutBizDict", new
|
|
149
|
+
s(a, "sysOutBizDict", new n({
|
|
130
150
|
orgType: e.orgType.outsource
|
|
131
151
|
}));
|
|
132
152
|
export {
|