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