xyvcard-itsmsys 0.0.11 → 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 (52) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/{edit-Dxs-2AFY.mjs → edit-B7N9QLYv.mjs} +104 -87
  3. package/dist/{edit-BSIP_9Mq.mjs → edit-CBnnqc6q.mjs} +104 -86
  4. package/dist/{edit-CiCHPkRg.mjs → edit-CuD0yKla.mjs} +1 -1
  5. package/dist/{edit-BcE5qrWo.mjs → edit-D2lhB7lU.mjs} +1 -1
  6. package/dist/{edit-BsUWSNnA.mjs → edit-DQ04LbhC.mjs} +96 -79
  7. package/dist/{edit-znznl9Td.mjs → edit-IRLCMnWT.mjs} +1 -1
  8. package/dist/{edit-CW0kqOpj.mjs → edit-g4L03h6h.mjs} +1 -1
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs +463 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs +463 -0
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +98 -68
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs +482 -0
  13. package/dist/import-upload-Bsl-7w0B.mjs +161 -0
  14. package/dist/import-upload-COLdGpcs.mjs +161 -0
  15. package/dist/index-B4M6ZC7N.mjs +196 -0
  16. package/dist/{index-BV3Je3Rq.mjs → index-BBPQd1dS.mjs} +139 -128
  17. package/dist/{index-BIvJ7rs4.mjs → index-BxX1lrD5.mjs} +64 -62
  18. package/dist/{index-CzE5REdf.mjs → index-CzVhcXfx.mjs} +57 -55
  19. package/dist/index-DNpEXtyQ.mjs +423 -0
  20. package/dist/index-Dh_kNwqv.mjs +470 -0
  21. package/dist/{index-CNRO77Xg.mjs → index-Dih4mOx4.mjs} +1 -1
  22. package/dist/{index-4qnVgDwe.mjs → index-n4FekcLF.mjs} +210 -138
  23. package/dist/index.mjs +293 -256
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +41 -34
  25. package/dist/info-BHylKqOX.mjs +186 -0
  26. package/dist/info-BZOWTNSd.mjs +209 -0
  27. package/dist/{info-BP7wPWFZ.mjs → info-CDtqpKVD.mjs} +80 -58
  28. package/dist/{info-DRYPl2T-.mjs → info-XDDe5ve6.mjs} +58 -47
  29. package/dist/{info-DCRqBi8M.mjs → info-bwhmPzeG.mjs} +71 -60
  30. package/dist/info-dBqoxL-p.mjs +209 -0
  31. package/dist/style.css +1 -1
  32. package/dts/api/dict.d.ts +7 -7
  33. package/dts/api/index.d.ts +6 -2
  34. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  35. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -0
  36. package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
  37. package/dts/api/itsm-sys-user-ext/types.d.ts +19 -1
  38. package/dts/constant.d.ts +9 -0
  39. package/dts/index.d.ts +1 -0
  40. package/dts/lang/itsmsys/zh-cn.d.ts +17 -0
  41. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
  42. package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
  43. package/package.json +3 -3
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs +0 -422
  45. package/dist/edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs +0 -422
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs +0 -404
  47. package/dist/index-BTO0NHK6.mjs +0 -397
  48. package/dist/index-Hh4b5GAI.mjs +0 -351
  49. package/dist/index-cBbN-uY2.mjs +0 -155
  50. package/dist/info-BCPme1g5.mjs +0 -187
  51. package/dist/info-CtGMbfQJ.mjs +0 -187
  52. package/dist/info-Dk3RzCIp.mjs +0 -176
@@ -0,0 +1,482 @@
1
+ import { defineComponent as Q, mergeModels as S, ref as b, useModel as W, reactive as A, resolveComponent as m, openBlock as U, createBlock as V, withCtx as o, createElementVNode as Y, createVNode as l, createTextVNode as I, toDisplayString as M, unref as r, createCommentVNode as D } from "vue";
2
+ import { ElMessage as C } from "element-plus";
3
+ import { useI18n as x } from "vue-i18n";
4
+ import { D as y, C as w } from "./index-B4M6ZC7N.mjs";
5
+ import { deptApi as ee, jobApi as le, roleApi as ae } from "jmash-rbac";
6
+ import { sysUserExtApi as $, sysOrgApi as oe } from "./index.mjs";
7
+ import { generateRandomKey as se } from "jmash-core";
8
+ const re = { class: "dialog-footer" }, fe = /* @__PURE__ */ Q({
9
+ __name: "edit",
10
+ props: /* @__PURE__ */ S({
11
+ entityKey: {
12
+ type: Object,
13
+ default: () => {
14
+ }
15
+ }
16
+ }, {
17
+ modelValue: { type: Boolean },
18
+ modelModifiers: {}
19
+ }),
20
+ emits: /* @__PURE__ */ S(["refresh"], ["update:modelValue"]),
21
+ setup(q, { emit: O }) {
22
+ const { t: i } = x(), v = b(), R = b(), N = b(), j = b(), p = W(q, "modelValue"), _ = O;
23
+ y.sysOrgBizDict.useValues(), y.parentIdBizDict.useValues();
24
+ let a = A({
25
+ requestId: Math.random() * 10 + "",
26
+ updateMask: "realName,gender,mobilePhone,email,idNo,jobStatus,deptId,jobId,orgId,orgIds,roleIds",
27
+ userType: w.userType.companyManager,
28
+ jobStatus: w.jobStatus.working
29
+ });
30
+ const B = (e, s, n) => {
31
+ s === void 0 && n(new Error(i("sysUserMan.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(s) || n(new Error(i("sysUserMan.mobilePhoneRequireds"))), n();
32
+ }, E = A({
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: B
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
+ loginName: [
76
+ {
77
+ required: !0,
78
+ message: i("sysUserMan.loginNameRequired"),
79
+ trigger: "blur"
80
+ }
81
+ ],
82
+ roleIds: [
83
+ {
84
+ required: !0,
85
+ message: i("sysUserMan.roleIdsRequired"),
86
+ trigger: "blur"
87
+ }
88
+ ]
89
+ }), P = q, z = Object.keys(P.entityKey), g = b(z.length >= 1);
90
+ g.value && $.findById(P.entityKey).then(({ data: e }) => {
91
+ Object.assign(a, e), a.gender === "unknown" && (a.gender = "");
92
+ });
93
+ const T = async () => {
94
+ var e;
95
+ await ((e = j.value) == null ? void 0 : e.validate((s) => {
96
+ s && (g.value ? $.update(a).then((n) => {
97
+ console.log(n), n.status === 200 && (C({
98
+ message: i("common.submitSuccess"),
99
+ type: "success"
100
+ }), p.value && (p.value = !1), _("refresh", n.status === 200));
101
+ }) : $.create(a).then((n) => {
102
+ console.log(n), n.status === 200 && (C({
103
+ message: i("common.submitSuccess"),
104
+ type: "success"
105
+ }), p.value && (p.value = !1), _("refresh", n.status === 200));
106
+ }));
107
+ }));
108
+ };
109
+ function K() {
110
+ ee.treelistDept().then(({ data: e }) => {
111
+ v.value = e.results;
112
+ }), le.treelistJob().then(({ data: e }) => {
113
+ R.value = e.results;
114
+ }), ae.treelistRole().then(({ data: e }) => {
115
+ N.value = e.results;
116
+ });
117
+ }
118
+ K();
119
+ function F() {
120
+ g.value || oe.findPage({ orgType: w.orgType.cloud }).then(({ data: { results: e } }) => {
121
+ a.orgId = e[0].orgId;
122
+ });
123
+ }
124
+ F();
125
+ function Z() {
126
+ a.userPassword = se();
127
+ }
128
+ function k() {
129
+ p.value && (p.value = !1);
130
+ }
131
+ return (e, s) => {
132
+ const n = m("jmash-select"), d = m("el-form-item"), u = m("el-col"), f = m("el-input"), G = m("jmash-enum-select"), c = m("el-tree-select"), J = m("jmash-enum-radio"), h = m("el-button"), L = m("el-row"), X = m("el-form"), H = m("el-dialog");
133
+ return U(), V(H, {
134
+ modelValue: p.value,
135
+ "onUpdate:modelValue": s[13] || (s[13] = (t) => p.value = t),
136
+ onClose: k
137
+ }, {
138
+ footer: o(() => [
139
+ Y("div", re, [
140
+ l(h, { onClick: k }, {
141
+ default: o(() => [
142
+ I(M(e.$t("common.cancel")), 1)
143
+ ]),
144
+ _: 1
145
+ }),
146
+ l(h, {
147
+ type: "primary",
148
+ onClick: T
149
+ }, {
150
+ default: o(() => [
151
+ I(M(e.$t("common.confirm")), 1)
152
+ ]),
153
+ _: 1
154
+ })
155
+ ])
156
+ ]),
157
+ default: o(() => [
158
+ l(X, {
159
+ ref_key: "sysUserExtFormRef",
160
+ ref: j,
161
+ model: r(a),
162
+ "label-width": "100px",
163
+ rules: E
164
+ }, {
165
+ default: o(() => [
166
+ l(L, null, {
167
+ default: o(() => [
168
+ l(u, { span: 12 }, {
169
+ default: o(() => [
170
+ l(d, {
171
+ label: e.$t("sysUserMan.orgId"),
172
+ prop: "orgId"
173
+ }, {
174
+ default: o(() => [
175
+ l(n, {
176
+ modelValue: r(a).orgId,
177
+ "onUpdate:modelValue": s[0] || (s[0] = (t) => r(a).orgId = t),
178
+ placeholder: e.$t("sysUserMan.orgIdRequired"),
179
+ data: r(y).sysOrgBizDict.values,
180
+ clearable: "",
181
+ class: "w-full"
182
+ }, null, 8, ["modelValue", "placeholder", "data"])
183
+ ]),
184
+ _: 1
185
+ }, 8, ["label"])
186
+ ]),
187
+ _: 1
188
+ }),
189
+ g.value ? D("", !0) : (U(), V(u, {
190
+ key: 0,
191
+ span: 12
192
+ }, {
193
+ default: o(() => [
194
+ l(d, {
195
+ label: e.$t("sysUserMan.loginName"),
196
+ prop: "loginName"
197
+ }, {
198
+ default: o(() => [
199
+ l(f, {
200
+ modelValue: r(a).loginName,
201
+ "onUpdate:modelValue": s[1] || (s[1] = (t) => r(a).loginName = t),
202
+ clearable: "",
203
+ placeholder: e.$t("sysUserMan.loginNameRequired"),
204
+ maxlength: "30",
205
+ "show-word-limit": ""
206
+ }, null, 8, ["modelValue", "placeholder"])
207
+ ]),
208
+ _: 1
209
+ }, 8, ["label"])
210
+ ]),
211
+ _: 1
212
+ })),
213
+ l(u, { span: 12 }, {
214
+ default: o(() => [
215
+ l(d, {
216
+ label: e.$t("sysUserMan.realName"),
217
+ prop: "realName"
218
+ }, {
219
+ default: o(() => [
220
+ l(f, {
221
+ modelValue: r(a).realName,
222
+ "onUpdate:modelValue": s[2] || (s[2] = (t) => r(a).realName = t),
223
+ placeholder: e.$t("sysUserMan.realNameRequired"),
224
+ maxlength: "8",
225
+ "show-word-limit": "",
226
+ clearable: ""
227
+ }, null, 8, ["modelValue", "placeholder"])
228
+ ]),
229
+ _: 1
230
+ }, 8, ["label"])
231
+ ]),
232
+ _: 1
233
+ }),
234
+ l(u, { span: 12 }, {
235
+ default: o(() => [
236
+ l(d, {
237
+ label: e.$t("sysUserMan.gender"),
238
+ prop: "gender"
239
+ }, {
240
+ default: o(() => [
241
+ l(G, {
242
+ modelValue: r(a).gender,
243
+ "onUpdate:modelValue": s[3] || (s[3] = (t) => r(a).gender = t),
244
+ clearable: "",
245
+ placeholder: e.$t("sysUserMan.genderRequired"),
246
+ "enum-type": "jmash.protobuf.Gender",
247
+ class: "w-full"
248
+ }, null, 8, ["modelValue", "placeholder"])
249
+ ]),
250
+ _: 1
251
+ }, 8, ["label"])
252
+ ]),
253
+ _: 1
254
+ }),
255
+ l(u, { span: 12 }, {
256
+ default: o(() => [
257
+ l(d, {
258
+ label: e.$t("sysUserMan.mobilePhone"),
259
+ prop: "mobilePhone"
260
+ }, {
261
+ default: o(() => [
262
+ l(f, {
263
+ modelValue: r(a).mobilePhone,
264
+ "onUpdate:modelValue": s[4] || (s[4] = (t) => r(a).mobilePhone = t),
265
+ placeholder: e.$t("sysUserMan.mobilePhoneRequired"),
266
+ maxlength: "11",
267
+ "show-word-limit": "",
268
+ clearable: ""
269
+ }, null, 8, ["modelValue", "placeholder"])
270
+ ]),
271
+ _: 1
272
+ }, 8, ["label"])
273
+ ]),
274
+ _: 1
275
+ }),
276
+ l(u, { span: 12 }, {
277
+ default: o(() => [
278
+ l(d, {
279
+ label: e.$t("sysUserMan.email"),
280
+ prop: "email"
281
+ }, {
282
+ default: o(() => [
283
+ l(f, {
284
+ modelValue: r(a).email,
285
+ "onUpdate:modelValue": s[5] || (s[5] = (t) => r(a).email = t),
286
+ placeholder: e.$t("sysUserMan.emailRequired"),
287
+ maxlength: "30",
288
+ "show-word-limit": "",
289
+ clearable: ""
290
+ }, null, 8, ["modelValue", "placeholder"])
291
+ ]),
292
+ _: 1
293
+ }, 8, ["label"])
294
+ ]),
295
+ _: 1
296
+ }),
297
+ l(u, { span: 12 }, {
298
+ default: o(() => [
299
+ l(d, {
300
+ label: e.$t("sysUserOps.idNo"),
301
+ prop: "idNo"
302
+ }, {
303
+ default: o(() => [
304
+ l(f, {
305
+ modelValue: r(a).idNo,
306
+ "onUpdate:modelValue": s[6] || (s[6] = (t) => r(a).idNo = t),
307
+ placeholder: e.$t("sysUserOps.idNoRequired"),
308
+ maxlength: "18",
309
+ "show-word-limit": "",
310
+ clearable: ""
311
+ }, null, 8, ["modelValue", "placeholder"])
312
+ ]),
313
+ _: 1
314
+ }, 8, ["label"])
315
+ ]),
316
+ _: 1
317
+ }),
318
+ l(u, { span: 12 }, {
319
+ default: o(() => [
320
+ l(d, {
321
+ label: e.$t("sysUserMan.deptId"),
322
+ prop: "deptId"
323
+ }, {
324
+ default: o(() => [
325
+ l(c, {
326
+ modelValue: r(a).deptId,
327
+ "onUpdate:modelValue": s[7] || (s[7] = (t) => r(a).deptId = t),
328
+ data: v.value,
329
+ "render-after-expand": !1,
330
+ filterable: "",
331
+ clearable: "",
332
+ "check-strictly": "",
333
+ placeholder: e.$t("sysUserMan.deptIdRequired"),
334
+ style: { width: "100%" }
335
+ }, null, 8, ["modelValue", "data", "placeholder"])
336
+ ]),
337
+ _: 1
338
+ }, 8, ["label"])
339
+ ]),
340
+ _: 1
341
+ }),
342
+ l(u, { span: 12 }, {
343
+ default: o(() => [
344
+ l(d, {
345
+ label: e.$t("sysUserMan.jobId"),
346
+ prop: "jobId"
347
+ }, {
348
+ default: o(() => [
349
+ l(c, {
350
+ modelValue: r(a).jobId,
351
+ "onUpdate:modelValue": s[8] || (s[8] = (t) => r(a).jobId = t),
352
+ data: R.value,
353
+ "render-after-expand": !1,
354
+ filterable: "",
355
+ clearable: "",
356
+ "check-strictly": "",
357
+ placeholder: e.$t("sysUserMan.jobIdRequired"),
358
+ style: { width: "100%" }
359
+ }, null, 8, ["modelValue", "data", "placeholder"])
360
+ ]),
361
+ _: 1
362
+ }, 8, ["label"])
363
+ ]),
364
+ _: 1
365
+ }),
366
+ l(u, { span: 12 }, {
367
+ default: o(() => [
368
+ l(d, {
369
+ label: e.$t("sysUserOps.jobStatus"),
370
+ prop: "jobStatus"
371
+ }, {
372
+ default: o(() => [
373
+ l(J, {
374
+ modelValue: r(a).jobStatus,
375
+ "onUpdate:modelValue": s[9] || (s[9] = (t) => r(a).jobStatus = t),
376
+ data: r(y).jobStatusDictEnum.values
377
+ }, null, 8, ["modelValue", "data"])
378
+ ]),
379
+ _: 1
380
+ }, 8, ["label"])
381
+ ]),
382
+ _: 1
383
+ }),
384
+ l(u, { span: 12 }, {
385
+ default: o(() => [
386
+ l(d, {
387
+ label: e.$t("sysUserMan.roleIds"),
388
+ prop: "roleIds"
389
+ }, {
390
+ default: o(() => [
391
+ l(c, {
392
+ modelValue: r(a).roleIds,
393
+ "onUpdate:modelValue": s[10] || (s[10] = (t) => r(a).roleIds = t),
394
+ data: N.value,
395
+ "render-after-expand": !1,
396
+ "show-checkbox": "",
397
+ "check-strictly": !0,
398
+ multiple: "",
399
+ clearable: "",
400
+ style: { width: "100%" },
401
+ placeholder: e.$t("sysUserMan.roleIdsRequired")
402
+ }, null, 8, ["modelValue", "data", "placeholder"])
403
+ ]),
404
+ _: 1
405
+ }, 8, ["label"])
406
+ ]),
407
+ _: 1
408
+ }),
409
+ g.value ? D("", !0) : (U(), V(u, {
410
+ key: 1,
411
+ span: 12
412
+ }, {
413
+ default: o(() => [
414
+ l(d, {
415
+ label: e.$t("sysUserMan.userPassword"),
416
+ prop: "userPassword"
417
+ }, {
418
+ default: o(() => [
419
+ l(f, {
420
+ modelValue: r(a).userPassword,
421
+ "onUpdate:modelValue": s[11] || (s[11] = (t) => r(a).userPassword = t),
422
+ clearable: "",
423
+ type: "password",
424
+ "show-password": "",
425
+ placeholder: e.$t("sysUserMan.userPasswordRequired")
426
+ }, {
427
+ append: o(() => [
428
+ l(h, { onClick: Z }, {
429
+ default: o(() => [
430
+ I(M(e.$t("sysUserMan.randomPwd")), 1)
431
+ ]),
432
+ _: 1
433
+ })
434
+ ]),
435
+ _: 1
436
+ }, 8, ["modelValue", "placeholder"])
437
+ ]),
438
+ _: 1
439
+ }, 8, ["label"])
440
+ ]),
441
+ _: 1
442
+ })),
443
+ l(u, { span: 24 }, {
444
+ default: o(() => [
445
+ l(d, {
446
+ label: e.$t("sysUserMan.orgIds"),
447
+ prop: "orgIds"
448
+ }, {
449
+ default: o(() => [
450
+ l(c, {
451
+ modelValue: r(a).orgIds,
452
+ "onUpdate:modelValue": s[12] || (s[12] = (t) => r(a).orgIds = t),
453
+ data: r(y).parentIdBizDict.values,
454
+ filterable: "",
455
+ clearable: "",
456
+ "check-strictly": "",
457
+ "render-after-expand": !1,
458
+ style: { width: "100%" },
459
+ placeholder: e.$t("sysUserMan.orgIdsRequired"),
460
+ multiple: ""
461
+ }, null, 8, ["modelValue", "data", "placeholder"])
462
+ ]),
463
+ _: 1
464
+ }, 8, ["label"])
465
+ ]),
466
+ _: 1
467
+ })
468
+ ]),
469
+ _: 1
470
+ })
471
+ ]),
472
+ _: 1
473
+ }, 8, ["model", "rules"])
474
+ ]),
475
+ _: 1
476
+ }, 8, ["modelValue"]);
477
+ };
478
+ }
479
+ });
480
+ export {
481
+ fe as _
482
+ };
@@ -0,0 +1,161 @@
1
+ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComponent as l, openBlock as G, createBlock as J, unref as V, isRef as K, withCtx as o, createElementVNode as a, createVNode as t, createTextVNode as m, toDisplayString as d } from "vue";
2
+ import { useI18n as L } from "vue-i18n";
3
+ import { ElMessage as f } from "element-plus";
4
+ import { fileApi as w, useUserStore as D } from "jmash-core";
5
+ import { D as I } from "./index-B4M6ZC7N.mjs";
6
+ import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
8
+ __name: "import-upload",
9
+ props: {
10
+ uploadVisible: {
11
+ type: Boolean,
12
+ default: () => !1
13
+ },
14
+ templateTitle: {
15
+ type: String,
16
+ default: ""
17
+ }
18
+ },
19
+ emits: ["templateDown", "importEvents", "uploadClosed"],
20
+ setup(_, { emit: U }) {
21
+ const { t: g } = L(), k = i(w.uploadUrl()), $ = i(w.authHeader()), b = C({
22
+ tenant: D().user.tenant
23
+ }), E = i(), s = C({
24
+ tenant: D().user.tenant,
25
+ requestId: Math.random() * 10 + "",
26
+ fileNames: "",
27
+ updateMask: "",
28
+ addFlag: !0,
29
+ // 必填项,true新增,false修改
30
+ orgId: ""
31
+ });
32
+ I.sysOrgBizDict.useValues();
33
+ const N = _, c = U, { uploadVisible: u } = H(N), r = i();
34
+ function R() {
35
+ c("templateDown");
36
+ }
37
+ function S(e) {
38
+ r.value = e, s.orgId = e;
39
+ }
40
+ function q(e) {
41
+ console.log(e), s.fileNames = e.fileSrc, s.orgId = r.value, s.fileNames && f({
42
+ message: g("common.uploadSuccess"),
43
+ type: "success"
44
+ });
45
+ }
46
+ const B = () => {
47
+ f.warning("当前限制选择 1 个文件");
48
+ };
49
+ function O() {
50
+ if (!r.value) {
51
+ f({
52
+ message: g("sysUserOps.orgIdRequired"),
53
+ type: "success"
54
+ });
55
+ return;
56
+ }
57
+ console.log(s), c("importEvents", s);
58
+ }
59
+ function v() {
60
+ c("uploadClosed");
61
+ }
62
+ return (e, n) => {
63
+ const y = l("el-col"), x = l("jmash-select"), F = l("el-row"), M = l("upload-filled"), T = l("el-icon"), j = l("el-upload"), h = l("el-button"), z = l("el-dialog");
64
+ return G(), J(z, {
65
+ modelValue: V(u),
66
+ "onUpdate:modelValue": n[1] || (n[1] = (p) => K(u) ? u.value = p : null),
67
+ title: e.$t("common.uploadFiles"),
68
+ width: "500px",
69
+ onClose: v
70
+ }, {
71
+ footer: o(() => [
72
+ a("div", X, [
73
+ t(h, { onClick: v }, {
74
+ default: o(() => [
75
+ m(d(e.$t("common.cancel")), 1)
76
+ ]),
77
+ _: 1
78
+ }),
79
+ t(h, {
80
+ type: "primary",
81
+ onClick: O
82
+ }, {
83
+ default: o(() => [
84
+ m(d(e.$t("common.confirm")), 1)
85
+ ]),
86
+ _: 1
87
+ })
88
+ ])
89
+ ]),
90
+ default: o(() => [
91
+ t(F, { class: "row" }, {
92
+ default: o(() => [
93
+ t(y, { span: 4 }, {
94
+ default: o(() => [
95
+ n[2] || (n[2] = a("span", { class: "required_red" }, "*", -1)),
96
+ a("span", null, d(e.$t("sysUserOps.orgId")), 1)
97
+ ]),
98
+ _: 1
99
+ }),
100
+ t(y, { span: 20 }, {
101
+ default: o(() => [
102
+ t(x, {
103
+ modelValue: r.value,
104
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => r.value = p),
105
+ data: V(I).sysOrgBizDict.values,
106
+ filterable: "",
107
+ "check-strictly": "",
108
+ "render-after-expand": !1,
109
+ placeholder: e.$t("sysUserOps.orgIdRequired"),
110
+ class: "w-full",
111
+ onChange: S
112
+ }, null, 8, ["modelValue", "data", "placeholder"])
113
+ ]),
114
+ _: 1
115
+ })
116
+ ]),
117
+ _: 1
118
+ }),
119
+ t(j, {
120
+ ref_key: "uploadRef",
121
+ ref: E,
122
+ drag: "",
123
+ action: k.value,
124
+ headers: $.value,
125
+ data: b,
126
+ limit: 1,
127
+ "on-success": q,
128
+ "on-exceed": B,
129
+ style: { "margin-top": "20px" }
130
+ }, {
131
+ tip: o(() => [
132
+ a("div", {
133
+ class: "el-upload__tip",
134
+ onClick: R
135
+ }, [
136
+ a("a", W, d(_.templateTitle), 1)
137
+ ])
138
+ ]),
139
+ default: o(() => [
140
+ t(T, { class: "el-icon--upload" }, {
141
+ default: o(() => [
142
+ t(M)
143
+ ]),
144
+ _: 1
145
+ }),
146
+ a("div", Q, [
147
+ m(d(e.$t("common.dragFiles")) + " ", 1),
148
+ a("em", null, d(e.$t("common.uploadEvent")), 1)
149
+ ])
150
+ ]),
151
+ _: 1
152
+ }, 8, ["action", "headers", "data"])
153
+ ]),
154
+ _: 1
155
+ }, 8, ["modelValue", "title"]);
156
+ };
157
+ }
158
+ }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-14761a28"]]);
159
+ export {
160
+ se as default
161
+ };