xyvcard-itsmsys 0.0.16 → 0.0.17

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.
@@ -0,0 +1,31 @@
1
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ uploadVisible: {
3
+ type: BooleanConstructor;
4
+ default: () => boolean;
5
+ };
6
+ templateTitle: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ templateDown: (...args: any[]) => void;
12
+ importEvents: (...args: any[]) => void;
13
+ uploadClosed: (...args: any[]) => void;
14
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
+ uploadVisible: {
16
+ type: BooleanConstructor;
17
+ default: () => boolean;
18
+ };
19
+ templateTitle: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }>> & Readonly<{
24
+ onTemplateDown?: ((...args: any[]) => any) | undefined;
25
+ onImportEvents?: ((...args: any[]) => any) | undefined;
26
+ onUploadClosed?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ uploadVisible: boolean;
29
+ templateTitle: string;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-itsmsys",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -1,423 +0,0 @@
1
- import { defineComponent as le, ref as U, 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 V, 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-C57850Qg.mjs";
6
- import { sysUserExtApi as re } from "./index.mjs";
7
- import { _ as ue } from "./edit.vue_vue_type_script_setup_true_lang-BnfSGJv_.mjs";
8
- const de = { class: "app-container" }, ie = { class: "search-container" }, me = { key: 0 }, pe = ["onClick"], ye = ["onClick"], be = ["onClick"], Ie = /* @__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 = U({
14
- userType: B.userType.companyManager
15
- }), {
16
- tableHooks: u,
17
- multipleTableRef: K,
18
- queryFormRef: Q,
19
- listLoading: L,
20
- tableData: A,
21
- total: I
22
- } = ae(j, re, s);
23
- let w = U([
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 = U({
96
- title: j("common.edit"),
97
- visible: !1
98
- });
99
- let $ = R({});
100
- function F() {
101
- $ = R({}), y.value.title = j("common.add"), y.value.visible = !0;
102
- }
103
- function H(o) {
104
- $.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"), S = d("jmash-select"), C = 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.loginName"),
138
- prop: "loginName"
139
- }, {
140
- default: l(() => [
141
- a(W, {
142
- modelValue: s.value.loginName,
143
- "onUpdate:modelValue": t[0] || (t[0] = (e) => s.value.loginName = e),
144
- placeholder: o.$t("sysUserMan.loginNameRequired"),
145
- onKeyup: t[1] || (t[1] = V((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(S, {
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] = V((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(S, {
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] = V((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(S, {
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] = V((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(C, {
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(C, {
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(C, {
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(C, {
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(I) > 0 ? (i(), v(ee, {
306
- key: 0,
307
- total: n(I),
308
- "onUpdate:total": t[12] || (t[12] = (e) => T(I) ? I.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: (k) => 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: (k) => 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: (k) => 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: (k) => 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: (k) => 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($),
414
- onRefresh: O,
415
- width: "900px"
416
- }, null, 8, ["modelValue", "title", "entity-key"])) : N("", !0)
417
- ]);
418
- };
419
- }
420
- });
421
- export {
422
- Ie as default
423
- };