xyvcard-itsmsys 0.0.12 → 0.0.13

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.
Files changed (46) hide show
  1. package/dist/{edit-aqBMKpoJ.mjs → edit-B7N9QLYv.mjs} +97 -82
  2. package/dist/{edit-C-Ddf0UV.mjs → edit-CBnnqc6q.mjs} +103 -87
  3. package/dist/{edit-BSgQ7aTw.mjs → edit-CuD0yKla.mjs} +1 -1
  4. package/dist/{edit-BSllWdRO.mjs → edit-D2lhB7lU.mjs} +1 -1
  5. package/dist/{edit-CNw8JPUb.mjs → edit-DQ04LbhC.mjs} +89 -74
  6. package/dist/{edit-Cd4dWFsH.mjs → edit-IRLCMnWT.mjs} +1 -1
  7. package/dist/{edit-q5TFAMBm.mjs → edit-g4L03h6h.mjs} +1 -1
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-BJcLgzvH.mjs → edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs} +50 -50
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-BA39WCu3.mjs → edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs} +50 -50
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-D1lAHFeM.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +44 -37
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-BV_YHrlE.mjs → edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs} +74 -74
  12. package/dist/import-upload-Bsl-7w0B.mjs +161 -0
  13. package/dist/import-upload-COLdGpcs.mjs +161 -0
  14. package/dist/{index-Dno_3GpX.mjs → index-B4M6ZC7N.mjs} +91 -40
  15. package/dist/{index-BY5Djw_C.mjs → index-BBPQd1dS.mjs} +138 -127
  16. package/dist/{index-BaixQptZ.mjs → index-BxX1lrD5.mjs} +63 -61
  17. package/dist/{index-LOMCvxtf.mjs → index-CzVhcXfx.mjs} +57 -55
  18. package/dist/index-DNpEXtyQ.mjs +423 -0
  19. package/dist/{index-DrBtW9Aj.mjs → index-Dh_kNwqv.mjs} +144 -157
  20. package/dist/{index-Cz9Xj4Mn.mjs → index-Dih4mOx4.mjs} +1 -1
  21. package/dist/index-n4FekcLF.mjs +504 -0
  22. package/dist/index.mjs +118 -114
  23. package/dist/{index.vue_vue_type_script_setup_true_lang-C67sXgs5.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +2 -2
  24. package/dist/info-BHylKqOX.mjs +186 -0
  25. package/dist/info-BZOWTNSd.mjs +209 -0
  26. package/dist/{info-BUDmirQy.mjs → info-CDtqpKVD.mjs} +80 -58
  27. package/dist/{info-D0Pwnmsu.mjs → info-XDDe5ve6.mjs} +1 -1
  28. package/dist/{info-C3knY6l_.mjs → info-bwhmPzeG.mjs} +1 -1
  29. package/dist/info-dBqoxL-p.mjs +209 -0
  30. package/dist/style.css +1 -1
  31. package/dts/api/dict.d.ts +7 -1
  32. package/dts/api/index.d.ts +3 -1
  33. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  34. package/dts/api/itsm-sys-user-ext/types.d.ts +4 -0
  35. package/dts/constant.d.ts +8 -0
  36. package/dts/lang/itsmsys/zh-cn.d.ts +4 -0
  37. package/package.json +1 -1
  38. package/dist/import-upload-BIT504-g.mjs +0 -4
  39. package/dist/import-upload-pZG8yku3.mjs +0 -4
  40. package/dist/import-upload.vue_vue_type_script_setup_true_lang-pjSs3v9e.mjs +0 -162
  41. package/dist/import-upload.vue_vue_type_script_setup_true_lang-tjMLoB_W.mjs +0 -162
  42. package/dist/index-CoMhbtrg.mjs +0 -449
  43. package/dist/index-DPz8be3T.mjs +0 -351
  44. package/dist/info-BivxW-qV.mjs +0 -187
  45. package/dist/info-Bn-BseIm.mjs +0 -187
  46. package/dist/info-C-ga_8K9.mjs +0 -176
@@ -0,0 +1,504 @@
1
+ import { defineComponent as re, ref as S, reactive as P, resolveComponent as i, resolveDirective as ue, openBlock as d, createElementBlock as $, createElementVNode as m, createVNode as a, withCtx as o, unref as n, withKeys as V, createTextVNode as y, toDisplayString as s, withDirectives as g, createBlock as c, isRef as M, createCommentVNode as O, vShow as J } from "vue";
2
+ import { useTableHooks as ie } from "jmash-core";
3
+ import { useI18n as de } from "vue-i18n";
4
+ import { useRouter as pe } from "vue-router";
5
+ import { D as p, C as q } from "./index-B4M6ZC7N.mjs";
6
+ import { sysUserExtApi as z } from "./index.mjs";
7
+ import { _ as me } from "./edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs";
8
+ import { F as ye } from "./FileSaver.min-BeKvLuyk.mjs";
9
+ import be from "./import-upload-COLdGpcs.mjs";
10
+ const fe = { class: "app-container" }, ge = { class: "search-container" }, ce = { key: 0 }, ve = ["onClick"], we = ["onClick"], _e = ["onClick"], je = /* @__PURE__ */ re({
11
+ __name: "index",
12
+ setup(Ce) {
13
+ const { t: C } = de(), B = pe();
14
+ p.sysOutBizDict.useValues();
15
+ const r = S({
16
+ userType: q.userType.outsourceOps
17
+ }), {
18
+ tableHooks: u,
19
+ multipleTableRef: K,
20
+ queryFormRef: Q,
21
+ listLoading: L,
22
+ tableData: F,
23
+ total: T
24
+ } = ie(C, z, r);
25
+ let U = S([
26
+ {
27
+ label: "sysUserOps.realName",
28
+ prop: "realName",
29
+ width: "80",
30
+ isColumn: !0
31
+ },
32
+ {
33
+ label: "sysUserOps.gender",
34
+ prop: "gender",
35
+ width: "60",
36
+ isColumn: !0,
37
+ slotName: "gender",
38
+ columnType: "slot"
39
+ },
40
+ {
41
+ label: "sysUserOps.mobilePhone",
42
+ prop: "mobilePhone",
43
+ width: "120",
44
+ isColumn: !0,
45
+ slotName: "mobilePhone",
46
+ columnType: "slot"
47
+ },
48
+ {
49
+ label: "sysUserOps.email",
50
+ prop: "email",
51
+ isColumn: !0,
52
+ slotName: "email",
53
+ columnType: "slot"
54
+ },
55
+ {
56
+ label: "sysUserOps.orgId",
57
+ prop: "orgId",
58
+ isColumn: !0,
59
+ width: "200",
60
+ slotName: "orgId",
61
+ columnType: "slot"
62
+ },
63
+ {
64
+ label: "sysUserOps.engineeType",
65
+ prop: "engineeType",
66
+ width: "100",
67
+ isColumn: !0,
68
+ slotName: "engineeType",
69
+ columnType: "slot"
70
+ },
71
+ {
72
+ label: "sysUserOps.engineeCertificate",
73
+ prop: "engineeCertificate",
74
+ width: "90",
75
+ isColumn: !0,
76
+ slotName: "engineeCertificate",
77
+ columnType: "slot"
78
+ },
79
+ {
80
+ label: "sysUserOps.engineeJobMode",
81
+ prop: "engineeJobMode",
82
+ width: "100",
83
+ isColumn: !0,
84
+ slotName: "engineeJobMode",
85
+ columnType: "slot"
86
+ },
87
+ {
88
+ label: "sysUserOps.jobStatus",
89
+ prop: "jobStatus",
90
+ width: "90",
91
+ isColumn: !0,
92
+ slotName: "jobStatus",
93
+ columnType: "slot"
94
+ },
95
+ {
96
+ label: "common.operate",
97
+ width: "200",
98
+ slotName: "operation",
99
+ columnType: "slot",
100
+ fixed: "right",
101
+ isColumn: !0
102
+ }
103
+ ]);
104
+ function D(l) {
105
+ l.showEncrypt = !l.showEncrypt;
106
+ }
107
+ const b = S({
108
+ title: C("common.edit"),
109
+ visible: !1
110
+ });
111
+ let j = P({});
112
+ function A() {
113
+ j = P({}), b.value.title = C("common.add"), b.value.visible = !0;
114
+ }
115
+ function x(l) {
116
+ j.userId = l.userId, b.value.title = C("common.edit"), b.value.visible = !0;
117
+ }
118
+ function H(l) {
119
+ B.push({
120
+ path: "/rawitsmsys/itsm-sys-user-out/userOutInfo",
121
+ query: { userId: l.userId }
122
+ });
123
+ }
124
+ const h = S(!1);
125
+ function G() {
126
+ h.value = !1;
127
+ }
128
+ function W(l) {
129
+ z.downloadTemplate().then((t) => {
130
+ const v = new Blob([t.data], {
131
+ type: "application/octet-stream"
132
+ });
133
+ ye.saveAs(v, l + ".xlsx");
134
+ });
135
+ }
136
+ function X(l) {
137
+ l.updateMask = "", u.importExcel(l).then(() => {
138
+ h.value = !1;
139
+ });
140
+ }
141
+ function Y(l) {
142
+ u.selectionRows.value = l;
143
+ }
144
+ function Z(l) {
145
+ u.handleSort(l.prop, l.order);
146
+ }
147
+ function ee(l) {
148
+ l && u.getList();
149
+ }
150
+ return u.getList(), (l, t) => {
151
+ const v = i("jmash-select"), w = i("el-form-item"), f = i("el-col"), te = i("el-input"), k = i("el-button"), I = i("el-row"), le = i("el-form"), oe = i("jmash-column-select"), N = i("el-tag"), R = i("svg-icon"), ne = i("jmash-table"), ae = i("jmash-pagination"), se = i("el-card"), _ = ue("hasPerm");
152
+ return d(), $("div", fe, [
153
+ m("div", ge, [
154
+ a(le, {
155
+ ref_key: "queryFormRef",
156
+ ref: Q,
157
+ model: r.value,
158
+ inline: !0
159
+ }, {
160
+ default: o(() => [
161
+ a(I, null, {
162
+ default: o(() => [
163
+ a(f, { span: 6 }, {
164
+ default: o(() => [
165
+ a(w, {
166
+ label: l.$t("sysUserOps.orgId"),
167
+ prop: "orgId"
168
+ }, {
169
+ default: o(() => [
170
+ a(v, {
171
+ modelValue: r.value.orgId,
172
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.orgId = e),
173
+ placeholder: l.$t("sysUserOps.orgIdRequired"),
174
+ data: n(p).sysOutBizDict.values,
175
+ clearable: "",
176
+ onKeyup: t[1] || (t[1] = V((e) => n(u).handleQuery(), ["enter"]))
177
+ }, null, 8, ["modelValue", "placeholder", "data"])
178
+ ]),
179
+ _: 1
180
+ }, 8, ["label"])
181
+ ]),
182
+ _: 1
183
+ }),
184
+ a(f, { span: 6 }, {
185
+ default: o(() => [
186
+ a(w, {
187
+ label: l.$t("sysUserOps.realName"),
188
+ prop: "likeUserName"
189
+ }, {
190
+ default: o(() => [
191
+ a(te, {
192
+ modelValue: r.value.likeUserName,
193
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.likeUserName = e),
194
+ placeholder: l.$t("sysUserOps.realNameRequired"),
195
+ onKeyup: t[3] || (t[3] = V((e) => n(u).handleQuery(), ["enter"])),
196
+ class: "!w-[203px]"
197
+ }, null, 8, ["modelValue", "placeholder"])
198
+ ]),
199
+ _: 1
200
+ }, 8, ["label"])
201
+ ]),
202
+ _: 1
203
+ }),
204
+ a(f, { span: 6 }, {
205
+ default: o(() => [
206
+ a(w, {
207
+ label: l.$t("sysUserOps.engineeType"),
208
+ prop: "engineeType"
209
+ }, {
210
+ default: o(() => [
211
+ a(v, {
212
+ modelValue: r.value.engineeType,
213
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.engineeType = e),
214
+ placeholder: l.$t("sysUserOps.engineeTypeRequired"),
215
+ data: n(p).engineeTypeDictEnum.values,
216
+ onKeyup: t[5] || (t[5] = V((e) => n(u).handleQuery(), ["enter"])),
217
+ clearable: ""
218
+ }, null, 8, ["modelValue", "placeholder", "data"])
219
+ ]),
220
+ _: 1
221
+ }, 8, ["label"])
222
+ ]),
223
+ _: 1
224
+ }),
225
+ a(f, { span: 6 }, {
226
+ default: o(() => [
227
+ a(w, {
228
+ label: l.$t("sysUserOps.engineeJobMode"),
229
+ prop: "engineeJobMode"
230
+ }, {
231
+ default: o(() => [
232
+ a(v, {
233
+ modelValue: r.value.engineeJobMode,
234
+ "onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.engineeJobMode = e),
235
+ placeholder: l.$t("sysUserOps.engineeJobModeRequired"),
236
+ data: n(p).engineeJobModeDictEnum.values,
237
+ onKeyup: t[7] || (t[7] = V((e) => n(u).handleQuery(), ["enter"])),
238
+ clearable: ""
239
+ }, null, 8, ["modelValue", "placeholder", "data"])
240
+ ]),
241
+ _: 1
242
+ }, 8, ["label"])
243
+ ]),
244
+ _: 1
245
+ }),
246
+ a(f, { span: 6 }, {
247
+ default: o(() => [
248
+ a(w, {
249
+ label: l.$t("sysUserOps.jobStatus"),
250
+ prop: "jobStatus"
251
+ }, {
252
+ default: o(() => [
253
+ a(v, {
254
+ modelValue: r.value.jobStatus,
255
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => r.value.jobStatus = e),
256
+ placeholder: l.$t("sysUserOps.jobStatusRequired"),
257
+ data: n(p).jobStatusDictEnum.values,
258
+ onKeyup: t[9] || (t[9] = V((e) => n(u).handleQuery(), ["enter"])),
259
+ clearable: ""
260
+ }, null, 8, ["modelValue", "placeholder", "data"])
261
+ ]),
262
+ _: 1
263
+ }, 8, ["label"])
264
+ ]),
265
+ _: 1
266
+ }),
267
+ a(f, { span: 18 }, {
268
+ default: o(() => [
269
+ a(w, { class: "search-btn" }, {
270
+ default: o(() => [
271
+ a(k, {
272
+ type: "primary",
273
+ onClick: t[10] || (t[10] = (e) => n(u).handleQuery())
274
+ }, {
275
+ default: o(() => [
276
+ y(s(l.$t("common.search")), 1)
277
+ ]),
278
+ _: 1
279
+ }),
280
+ a(k, {
281
+ onClick: t[11] || (t[11] = (e) => n(u).resetQuery())
282
+ }, {
283
+ default: o(() => [
284
+ y(s(l.$t("common.reset")), 1)
285
+ ]),
286
+ _: 1
287
+ })
288
+ ]),
289
+ _: 1
290
+ })
291
+ ]),
292
+ _: 1
293
+ })
294
+ ]),
295
+ _: 1
296
+ })
297
+ ]),
298
+ _: 1
299
+ }, 8, ["model"]),
300
+ t[21] || (t[21] = m("div", { class: "clear" }, null, -1))
301
+ ]),
302
+ a(se, {
303
+ shadow: "never",
304
+ class: "table-container"
305
+ }, {
306
+ header: o(() => [
307
+ a(I, null, {
308
+ default: o(() => [
309
+ a(f, { span: 17 }, {
310
+ default: o(() => [
311
+ g((d(), c(k, {
312
+ type: "primary",
313
+ onClick: A
314
+ }, {
315
+ default: o(() => [
316
+ y(s(l.$t("common.add")), 1)
317
+ ]),
318
+ _: 1
319
+ })), [
320
+ [_, ["itsmsys:sys_user_ext_out:add"]]
321
+ ]),
322
+ g((d(), c(k, {
323
+ type: "primary",
324
+ onClick: t[12] || (t[12] = (e) => n(u).deleteRecords())
325
+ }, {
326
+ default: o(() => [
327
+ y(s(l.$t("common.batchDelete")), 1)
328
+ ]),
329
+ _: 1
330
+ })), [
331
+ [_, ["itsmsys:sys_user_ext_out:delete"]]
332
+ ])
333
+ ]),
334
+ _: 1
335
+ }),
336
+ a(f, {
337
+ span: 7,
338
+ class: "container-float"
339
+ }, {
340
+ default: o(() => [
341
+ g((d(), c(k, {
342
+ plain: "",
343
+ type: "primary",
344
+ onClick: t[13] || (t[13] = (e) => h.value = !0)
345
+ }, {
346
+ default: o(() => [
347
+ y(s(l.$t("common.import")), 1)
348
+ ]),
349
+ _: 1
350
+ })), [
351
+ [_, ["itsmsys:sys_user_ext_out:import"]]
352
+ ]),
353
+ a(oe, {
354
+ modelValue: n(U),
355
+ "onUpdate:modelValue": t[14] || (t[14] = (e) => M(U) ? U.value = e : U = e),
356
+ "label-name": "itsmsys/itsm-sys-user-ext"
357
+ }, null, 8, ["modelValue"])
358
+ ]),
359
+ _: 1
360
+ })
361
+ ]),
362
+ _: 1
363
+ })
364
+ ]),
365
+ footer: o(() => [
366
+ n(T) > 0 ? (d(), c(ae, {
367
+ key: 0,
368
+ total: n(T),
369
+ "onUpdate:total": t[15] || (t[15] = (e) => M(T) ? T.value = e : null),
370
+ "current-page": r.value.curPage,
371
+ "onUpdate:currentPage": t[16] || (t[16] = (e) => r.value.curPage = e),
372
+ "page-size": r.value.pageSize,
373
+ "onUpdate:pageSize": t[17] || (t[17] = (e) => r.value.pageSize = e),
374
+ onPagination: t[18] || (t[18] = (e) => n(u).getList())
375
+ }, null, 8, ["total", "current-page", "page-size"])) : O("", !0)
376
+ ]),
377
+ default: o(() => [
378
+ a(ne, {
379
+ ref_key: "multipleTableRef",
380
+ ref: K,
381
+ "row-key": "userId",
382
+ "list-loading": n(L),
383
+ data: n(F),
384
+ "table-label": n(U),
385
+ onSelectionChange: Y,
386
+ onSortChange: Z
387
+ }, {
388
+ gender: o((e) => [
389
+ m("span", null, s(n(p).genderDict.getEnumValue(e.data.row.gender)), 1)
390
+ ]),
391
+ orgId: o((e) => [
392
+ m("span", null, s(n(p).sysOutBizDict.getValue(e.data.row.orgId)), 1)
393
+ ]),
394
+ mobilePhone: o((e) => [
395
+ m("span", null, s(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
396
+ ]),
397
+ email: o((e) => [
398
+ m("span", null, s(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
399
+ ]),
400
+ jobStatus: o((e) => [
401
+ m("span", null, [
402
+ e.data.row.jobStatus === n(q).jobStatus.working ? (d(), c(N, {
403
+ key: 0,
404
+ type: "primary"
405
+ }, {
406
+ default: o(() => [
407
+ y(s(n(p).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
408
+ ]),
409
+ _: 2
410
+ }, 1024)) : (d(), c(N, {
411
+ key: 1,
412
+ type: "danger"
413
+ }, {
414
+ default: o(() => [
415
+ y(s(n(p).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
416
+ ]),
417
+ _: 2
418
+ }, 1024))
419
+ ])
420
+ ]),
421
+ engineeType: o((e) => [
422
+ m("span", null, s(n(p).engineeTypeDictEnum.getEnumValue(
423
+ e.data.row.engineeType
424
+ )), 1)
425
+ ]),
426
+ engineeCertificate: o((e) => [
427
+ m("span", null, s(n(p).engineeCertificateDict.getDictValue(
428
+ e.data.row.engineeCertificate
429
+ )), 1)
430
+ ]),
431
+ engineeJobMode: o((e) => [
432
+ m("span", null, s(n(p).engineeJobModeDictEnum.getEnumValue(
433
+ e.data.row.engineeJobMode
434
+ )), 1)
435
+ ]),
436
+ operation: o((e) => [
437
+ e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), $("span", ce, [
438
+ g(a(R, {
439
+ "icon-class": "close-eye",
440
+ onClick: (E) => D(e.data.row)
441
+ }, null, 8, ["onClick"]), [
442
+ [J, !e.data.row.showEncrypt]
443
+ ]),
444
+ g(a(R, {
445
+ "icon-class": "eye-open",
446
+ onClick: (E) => D(e.data.row)
447
+ }, null, 8, ["onClick"]), [
448
+ [J, e.data.row.showEncrypt]
449
+ ])
450
+ ])) : O("", !0),
451
+ g((d(), $("span", {
452
+ class: "el-button-color dropdown-left",
453
+ onClick: (E) => x(e.data.row)
454
+ }, [
455
+ y(s(l.$t("common.edit")), 1)
456
+ ], 8, ve)), [
457
+ [_, ["itsmsys:sys_user_ext_out:update"]]
458
+ ]),
459
+ g((d(), $("span", {
460
+ class: "el-button-color dropdown-left",
461
+ onClick: (E) => n(u).deleteRecord(e.data.row)
462
+ }, [
463
+ y(s(l.$t("common.delete")), 1)
464
+ ], 8, we)), [
465
+ [_, ["itsmsys:sys_user_ext_out:delete"]]
466
+ ]),
467
+ g((d(), $("span", {
468
+ class: "el-button-color dropdown-left",
469
+ onClick: (E) => H(e.data.row)
470
+ }, [
471
+ y(s(l.$t("common.view")), 1)
472
+ ], 8, _e)), [
473
+ [_, ["itsmsys:sys_user_ext_out:view"]]
474
+ ])
475
+ ]),
476
+ _: 1
477
+ }, 8, ["list-loading", "data", "table-label"])
478
+ ]),
479
+ _: 1
480
+ }),
481
+ b.value.visible ? (d(), c(me, {
482
+ key: 0,
483
+ modelValue: b.value.visible,
484
+ "onUpdate:modelValue": t[19] || (t[19] = (e) => b.value.visible = e),
485
+ title: b.value.title,
486
+ "entity-key": n(j),
487
+ onRefresh: ee,
488
+ width: "900px"
489
+ }, null, 8, ["modelValue", "title", "entity-key"])) : O("", !0),
490
+ h.value ? (d(), c(be, {
491
+ key: 1,
492
+ "upload-visible": h.value,
493
+ "template-title": l.$t("sysUser.templateDownload"),
494
+ onTemplateDown: t[20] || (t[20] = (e) => W(n(C)("sysUserOps.name"))),
495
+ onImportEvents: X,
496
+ onUploadClosed: G
497
+ }, null, 8, ["upload-visible", "template-title"])) : O("", !0)
498
+ ]);
499
+ };
500
+ }
501
+ });
502
+ export {
503
+ je as default
504
+ };