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