gds-plus-design-vue 1.1.64 → 1.1.71

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 (71) hide show
  1. package/lib/chartbi.48631362.mjs +44076 -0
  2. package/lib/chartbi.afd83839.js +80 -0
  3. package/lib/element-theme-chalk.ae828c17.js +2 -0
  4. package/lib/gd-initial.js +34 -0
  5. package/lib/gd-initial.mjs +80343 -101
  6. package/lib/main.03b24a05.js +1 -0
  7. package/lib/{main.665d9127.mjs → main.3cd24320.mjs} +27 -18
  8. package/lib/main.4cafc3eb.mjs +68 -0
  9. package/lib/main.eea30a23.js +1 -0
  10. package/lib/main.efd6b228.mjs +87 -0
  11. package/lib/main.f1e3ba71.js +1 -0
  12. package/lib/messages.083c4ede.js +9 -0
  13. package/lib/messages.7e85146d.mjs +5802 -0
  14. package/lib/style.css +2 -2
  15. package/lib/system.account.78b852cd.js +216 -0
  16. package/lib/system.account.ae0822f1.mjs +2552 -0
  17. package/lib/system.config.327aded6.js +1 -0
  18. package/lib/system.config.9c46f279.mjs +373 -0
  19. package/lib/system.datasource.4b0951ba.mjs +511 -0
  20. package/lib/system.datasource.8a0c7e0f.js +1 -0
  21. package/lib/system.dict.65f25e4e.mjs +996 -0
  22. package/lib/system.dict.72594c98.js +1 -0
  23. package/lib/system.duplicatechecking.2e9b8df8.js +1 -0
  24. package/lib/system.duplicatechecking.b05f1617.mjs +2130 -0
  25. package/lib/system.email.0899621c.js +41 -0
  26. package/lib/system.email.a4d6d622.mjs +7432 -0
  27. package/lib/system.fieldsecurity.7de4ee1d.mjs +1745 -0
  28. package/lib/system.fieldsecurity.d57edb47.js +1 -0
  29. package/lib/system.file.b3558a8b.js +1 -0
  30. package/lib/system.file.f152d4fe.mjs +489 -0
  31. package/lib/system.log.30e5157c.mjs +1450 -0
  32. package/lib/system.log.f243e7d0.js +1 -0
  33. package/lib/system.machine.325b256e.mjs +94 -0
  34. package/lib/system.machine.332fb31c.js +1 -0
  35. package/lib/system.notice.234d5e47.mjs +636 -0
  36. package/lib/system.notice.540e97ca.js +1 -0
  37. package/lib/system.noticereceived.1fb75290.js +1 -0
  38. package/lib/system.noticereceived.c22372df.mjs +158 -0
  39. package/lib/system.onlineuser.90c08aef.mjs +184 -0
  40. package/lib/system.onlineuser.e0c261ed.js +1 -0
  41. package/lib/system.org.65452f67.js +1 -0
  42. package/lib/system.org.b8d59e5d.mjs +421 -0
  43. package/lib/system.permissions.8b0d3c8c.js +9 -0
  44. package/lib/system.permissions.cba8bd58.mjs +212 -0
  45. package/lib/system.plugin.07b3c38e.js +1 -0
  46. package/lib/system.plugin.4911a33d.mjs +946 -0
  47. package/lib/system.pos.6ed35c39.js +1 -0
  48. package/lib/system.pos.c274f13c.mjs +312 -0
  49. package/lib/system.promptmanagement.8ae0e757.js +1 -0
  50. package/lib/system.promptmanagement.b07ba7b6.mjs +801 -0
  51. package/lib/system.role.53778e38.mjs +1509 -0
  52. package/lib/system.role.c3d74603.js +1 -0
  53. package/lib/system.timers.69f1792a.mjs +3160 -0
  54. package/lib/system.timers.ef6b6796.js +38 -0
  55. package/lib/system.translation.0109917e.js +1 -0
  56. package/lib/system.translation.f79a5244.mjs +665 -0
  57. package/lib/system.user.01a55993.mjs +1425 -0
  58. package/lib/system.user.ea18a84c.js +14 -0
  59. package/lib/system.useraffiliation.1e74fa9e.mjs +1025 -0
  60. package/lib/system.useraffiliation.f3c88a51.js +1 -0
  61. package/lib/system.webresource.5049d97b.js +1 -0
  62. package/lib/system.webresource.e9518d87.mjs +723 -0
  63. package/lib/system.welcome.3f1cce96.mjs +45 -0
  64. package/lib/system.welcome.b109df88.js +1 -0
  65. package/locale/en_US.js +67 -9
  66. package/locale/id_ID.js +66 -8
  67. package/locale/vi_VN.js +66 -8
  68. package/locale/zh_CN.js +65 -8
  69. package/package.json +105 -105
  70. package/lib/gd-initial.umd.js +0 -435
  71. package/lib/index.32120001.mjs +0 -157708
@@ -0,0 +1,1745 @@
1
+ import { m as o, n as a } from "./chartbi.48631362.mjs";
2
+ function ye(t) {
3
+ return window.axios({
4
+ url: "/SysView/add",
5
+ method: "post",
6
+ data: t
7
+ });
8
+ }
9
+ function we(t) {
10
+ return window.axios({
11
+ url: "/SysView/List",
12
+ method: "get",
13
+ params: t
14
+ });
15
+ }
16
+ function _e(t) {
17
+ return window.axios({
18
+ url: "/SysView/Edit",
19
+ method: "post",
20
+ data: t
21
+ });
22
+ }
23
+ function be(t) {
24
+ return window.axios({
25
+ url: "/SysView/Delete",
26
+ method: "post",
27
+ params: t
28
+ });
29
+ }
30
+ function ve(t) {
31
+ return window.axios({
32
+ url: "/SysView/Details",
33
+ method: "get",
34
+ params: t
35
+ });
36
+ }
37
+ function Se(t) {
38
+ return window.axios({
39
+ url: "/SysWebResource/GetList",
40
+ method: "get",
41
+ params: t
42
+ });
43
+ }
44
+ function $e(t) {
45
+ return window.axios({
46
+ url: "/SysButton/List",
47
+ method: "get",
48
+ params: t
49
+ });
50
+ }
51
+ function Ce(t) {
52
+ return window.axios({
53
+ url: "/SysButton/Delete",
54
+ method: "get",
55
+ params: t
56
+ });
57
+ }
58
+ function xe(t) {
59
+ return window.axios({
60
+ url: "/SysButton/add",
61
+ method: "post",
62
+ data: t
63
+ });
64
+ }
65
+ function Re(t) {
66
+ return window.axios({
67
+ url: "/SysButton/Details",
68
+ method: "get",
69
+ params: t
70
+ });
71
+ }
72
+ function ke(t) {
73
+ return window.axios({
74
+ url: "/SysButton/Edit",
75
+ method: "post",
76
+ data: t
77
+ });
78
+ }
79
+ function Te(t) {
80
+ return window.axios({
81
+ url: "/sysForm/list",
82
+ method: "get",
83
+ params: t
84
+ });
85
+ }
86
+ function Ke(t) {
87
+ return window.axios({
88
+ url: "/sysForm/Add",
89
+ method: "post",
90
+ data: t
91
+ });
92
+ }
93
+ function Ne(t) {
94
+ return window.axios({
95
+ url: "/sysForm/Edit",
96
+ method: "post",
97
+ data: t
98
+ });
99
+ }
100
+ function Be(t) {
101
+ return window.axios({
102
+ url: "/sysForm/Delete",
103
+ method: "get",
104
+ params: t
105
+ });
106
+ }
107
+ function Fe(t) {
108
+ return window.axios({
109
+ url: "/sysForm/Details",
110
+ method: "get",
111
+ params: t
112
+ });
113
+ }
114
+ function Le(t) {
115
+ return window.axios({
116
+ url: "/develop/GetFindView",
117
+ method: "get",
118
+ params: t
119
+ });
120
+ }
121
+ function De(t) {
122
+ return window.axios({
123
+ url: "/develop/GetFindForm",
124
+ method: "get",
125
+ params: t
126
+ });
127
+ }
128
+ function Ee(t) {
129
+ return window.axios({
130
+ url: "/SysButton/Set",
131
+ method: "post",
132
+ data: t
133
+ });
134
+ }
135
+ function ze(t) {
136
+ return window.axios({
137
+ url: "/sysRelationship/List",
138
+ method: "get",
139
+ params: t
140
+ });
141
+ }
142
+ function Ie(t) {
143
+ return window.axios({
144
+ url: "/sysRelationship/List2",
145
+ method: "get",
146
+ params: t
147
+ });
148
+ }
149
+ function Pe(t) {
150
+ return window.axios({
151
+ url: "/SysRelationship/Details",
152
+ method: "get",
153
+ params: t
154
+ });
155
+ }
156
+ function Oe(t) {
157
+ return window.axios({
158
+ url: "/sysRelationship/Edit",
159
+ method: "post",
160
+ data: t
161
+ });
162
+ }
163
+ function qe(t) {
164
+ return window.axios({
165
+ url: "/SysEcharts/add",
166
+ method: "post",
167
+ data: t
168
+ });
169
+ }
170
+ function je(t) {
171
+ return window.axios({
172
+ url: "/SysEcharts/editEcharts",
173
+ method: "post",
174
+ data: t
175
+ });
176
+ }
177
+ function Me(t) {
178
+ return window.axios({
179
+ url: "/SysEcharts/del",
180
+ method: "get",
181
+ params: t
182
+ });
183
+ }
184
+ function Ve(t) {
185
+ return window.axios({
186
+ url: "/SysEcharts/getEcharts",
187
+ method: "post",
188
+ data: t
189
+ });
190
+ }
191
+ function Ae(t) {
192
+ return window.axios({
193
+ url: "/SysEcharts/getPersonalEcharts",
194
+ method: "post",
195
+ data: t
196
+ });
197
+ }
198
+ function Ge(t) {
199
+ return window.axios({
200
+ url: "/SysEcharts/updatePersonalEcharts",
201
+ method: "post",
202
+ data: t
203
+ });
204
+ }
205
+ function He(t) {
206
+ return window.axios({
207
+ url: "/SysEcharts/delPersonalEcharts",
208
+ method: "get",
209
+ params: t
210
+ });
211
+ }
212
+ function Qe(t) {
213
+ return window.axios({
214
+ url: "/SysSavedQuery/add",
215
+ method: "post",
216
+ data: t
217
+ });
218
+ }
219
+ function Ue(t) {
220
+ return window.axios({
221
+ url: "/SysSavedQuery/edit",
222
+ method: "post",
223
+ data: t
224
+ });
225
+ }
226
+ function We(t) {
227
+ return window.axios({
228
+ url: "/SysSavedQuery/delSavedQueries",
229
+ method: "get",
230
+ params: t
231
+ });
232
+ }
233
+ function Je(t) {
234
+ return window.axios({
235
+ url: "/SysSavedQuery/getSavedQueries",
236
+ method: "post",
237
+ data: t
238
+ });
239
+ }
240
+ function Xe(t) {
241
+ return window.axios({
242
+ url: "/SysSavedQuery/setDefaultQuery",
243
+ method: "get",
244
+ params: t
245
+ });
246
+ }
247
+ function g(t) {
248
+ return window.axios({
249
+ url: "/FieldSecurityConfig/getFieldSecurityPermissions",
250
+ method: "post",
251
+ data: t
252
+ });
253
+ }
254
+ function u(t) {
255
+ return window.axios({
256
+ url: "/FieldSecurityConfig/getFieldSecurityMember",
257
+ method: "post",
258
+ data: t
259
+ });
260
+ }
261
+ function m(t) {
262
+ return window.axios({
263
+ url: "/FieldSecurityConfig/editFieldSecurityPermissions",
264
+ method: "post",
265
+ data: t
266
+ });
267
+ }
268
+ function p(t) {
269
+ return window.axios({
270
+ url: "/FieldSecurityConfig/page",
271
+ method: "post",
272
+ data: t
273
+ });
274
+ }
275
+ function y(t) {
276
+ return window.axios({
277
+ url: "/FieldSecurityConfig/add",
278
+ method: "post",
279
+ data: t
280
+ });
281
+ }
282
+ function w(t) {
283
+ return window.axios({
284
+ url: "/FieldSecurityConfig/edit",
285
+ method: "post",
286
+ data: t
287
+ });
288
+ }
289
+ function _(t) {
290
+ return window.axios({
291
+ url: "/FieldSecurityConfig/del",
292
+ method: "get",
293
+ params: t
294
+ });
295
+ }
296
+ function f(t) {
297
+ return window.axios({
298
+ url: "/FieldSecurityMember/batchAdd",
299
+ method: "post",
300
+ data: t
301
+ });
302
+ }
303
+ function h(t) {
304
+ return window.axios({
305
+ url: "/FieldSecurityMember/del",
306
+ method: "get",
307
+ params: t
308
+ });
309
+ }
310
+ function b(t) {
311
+ return window.axios({
312
+ url: "/sysRole/page",
313
+ method: "get",
314
+ params: t
315
+ });
316
+ }
317
+ function Ye(t) {
318
+ return window.axios({
319
+ url: "/sysRole/v2/add",
320
+ method: "post",
321
+ data: t
322
+ });
323
+ }
324
+ function Ze(t) {
325
+ return window.axios({
326
+ url: "/sysRole/edit",
327
+ method: "post",
328
+ data: t
329
+ });
330
+ }
331
+ function et(t) {
332
+ return window.axios({
333
+ url: "/sysRole/delete",
334
+ method: "post",
335
+ data: t
336
+ });
337
+ }
338
+ function tt(t) {
339
+ return window.axios({
340
+ url: "/sysRole/ownMenu",
341
+ method: "get",
342
+ params: t
343
+ });
344
+ }
345
+ function st(t) {
346
+ return window.axios({
347
+ url: "/sysRole/grantMenu",
348
+ method: "post",
349
+ data: t
350
+ });
351
+ }
352
+ function it(t) {
353
+ return window.axios({
354
+ url: "/role/ViewOnBtnList",
355
+ method: "get",
356
+ params: t
357
+ });
358
+ }
359
+ function nt(t) {
360
+ return window.axios({
361
+ url: "/role/RoleBindViewOnBtn",
362
+ method: "post",
363
+ data: t
364
+ });
365
+ }
366
+ function at(t) {
367
+ return window.axios({
368
+ url: "/sysRole/copyRole",
369
+ method: "post",
370
+ data: t
371
+ });
372
+ }
373
+ const v = {
374
+ data() {
375
+ return {
376
+ tableColumns: [
377
+ {
378
+ type: "selection",
379
+ width: "60",
380
+ fixed: !0
381
+ },
382
+ {
383
+ transKey: "gd.fieldSecurity.name",
384
+ prop: "name",
385
+ label: "\u540D\u79F0",
386
+ width: "240",
387
+ type: "slot",
388
+ slotType: "name",
389
+ align: "left"
390
+ },
391
+ {
392
+ transKey: "gd.fieldSecurity.createdTime",
393
+ prop: "createdtime",
394
+ label: "\u521B\u5EFA\u65F6\u95F4",
395
+ align: "left"
396
+ },
397
+ {
398
+ transKey: "gd.fieldSecurity.description",
399
+ prop: "description",
400
+ label: "\u8BF4\u660E",
401
+ align: "left"
402
+ }
403
+ ],
404
+ formColumns: [{
405
+ transKey: "gd.fieldSecurity.name",
406
+ effectType: "input",
407
+ prop: "name",
408
+ label: "\u540D\u79F0",
409
+ placeholder: "\u8BF7\u8F93\u5165",
410
+ placeholderTransKey: "gd.placeholder.input",
411
+ disabled: !1,
412
+ rules: [{
413
+ required: !0,
414
+ message: "\u8BF7\u8F93\u5165",
415
+ transKey: "gd.placeholder.input",
416
+ trigger: "change"
417
+ }]
418
+ }, {
419
+ transKey: "gd.fieldSecurity.description",
420
+ effectType: "textarea",
421
+ prop: "description",
422
+ label: "\u8BF4\u660E",
423
+ placeholder: "\u8BF7\u8F93\u5165",
424
+ placeholderTransKey: "gd.placeholder.input",
425
+ disabled: !1,
426
+ rules: []
427
+ }],
428
+ tableButtons: [
429
+ {
430
+ displayName: "\u65B0\u589E",
431
+ functionName: "add",
432
+ show: !0,
433
+ transKey: "gd.btn.add",
434
+ icon: "el-icon-plus",
435
+ name: "fieldSecurity:add"
436
+ },
437
+ {
438
+ displayName: "\u7F16\u8F91",
439
+ functionName: "edit",
440
+ show: !0,
441
+ transKey: "gd.btn.edit",
442
+ icon: "el-icon-edit",
443
+ name: "fieldSecurity:edit"
444
+ },
445
+ {
446
+ displayName: "\u5220\u9664",
447
+ functionName: "del",
448
+ show: !0,
449
+ transKey: "gd.btn.del",
450
+ icon: "el-icon-delete",
451
+ btnType: "danger",
452
+ name: "fieldSecurity:del"
453
+ }
454
+ ],
455
+ formButtons: [{
456
+ displayName: "\u786E\u5B9A",
457
+ functionName: "handleSubmit",
458
+ show: !0,
459
+ transKey: "gd.btn.confirm",
460
+ icon: "el-icon-document-checked",
461
+ validate: !0
462
+ }]
463
+ };
464
+ }
465
+ };
466
+ const S = {
467
+ props: {
468
+ tableButtons: {
469
+ type: Array,
470
+ default: () => {
471
+ }
472
+ },
473
+ record: {
474
+ type: Object,
475
+ default: () => ({})
476
+ },
477
+ height: {
478
+ type: Number,
479
+ default: 0
480
+ }
481
+ },
482
+ data() {
483
+ return {};
484
+ },
485
+ computed: {
486
+ style() {
487
+ return `max-height: calc(${this.height}px - 60px);`;
488
+ },
489
+ ...o(["tableSize"])
490
+ },
491
+ methods: {
492
+ doEvent(t) {
493
+ this.$emit("functionName", t);
494
+ }
495
+ }
496
+ };
497
+ var $ = function() {
498
+ var e = this, s = e._self._c;
499
+ return s("div", { staticClass: "page-descriptions-item" }, [s("div", { staticClass: "descriptionst" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1), s("div", { staticClass: "descriptionsb", style: e.style }, [s("el-descriptions", { attrs: { column: 1, size: e.tableSize, border: "", direction: "vertical" } }, [s("el-descriptions-item", [s("template", { slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.fieldSecurity.name", "\u540D\u79F0")) + " ")]), e._v(" " + e._s(e.record.name) + " ")], 2), s("el-descriptions-item", [s("template", { slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.fieldSecurity.createdTime", "\u521B\u5EFA\u65F6\u95F4")) + " ")]), e._v(" " + e._s(e.record.createdtime) + " ")], 2), s("el-descriptions-item", [s("template", { slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.fieldSecurity.description", "\u8BF4\u660E")) + " ")]), e._v(" " + e._s(e.record.description ? e.record.description : "--") + " ")], 2)], 1)], 1)]);
500
+ }, C = [], x = /* @__PURE__ */ a(
501
+ S,
502
+ $,
503
+ C,
504
+ !1,
505
+ null,
506
+ "79c491b1",
507
+ null,
508
+ null
509
+ );
510
+ const R = x.exports, k = {
511
+ data() {
512
+ return {
513
+ tableColumns: [
514
+ {
515
+ type: "selection",
516
+ width: "60",
517
+ fixed: !0
518
+ },
519
+ {
520
+ transKey: "gd.field.describe",
521
+ prop: "name",
522
+ label: "\u63CF\u8FF0",
523
+ width: "200",
524
+ type: "slot",
525
+ slotType: "name",
526
+ align: "left"
527
+ },
528
+ {
529
+ transKey: "gd.field.field",
530
+ prop: "syscodegenconfigid",
531
+ width: "180",
532
+ label: "\u5B57\u6BB5\u540D",
533
+ align: "left",
534
+ type: "slot",
535
+ slotType: "syscodegenconfigid",
536
+ showOverflowTooltip: !0
537
+ },
538
+ {
539
+ transKey: "gd.field.effectType",
540
+ prop: "effecttype",
541
+ width: "140",
542
+ type: "slot",
543
+ slotType: "effecttype",
544
+ label: "\u7C7B\u578B",
545
+ align: "left"
546
+ },
547
+ {
548
+ transKey: "gd.fieldSecurity.table",
549
+ prop: "syscodegenid",
550
+ width: "180",
551
+ type: "slot",
552
+ slotType: "syscodegenid",
553
+ label: "\u8868",
554
+ align: "left"
555
+ },
556
+ {
557
+ transKey: "gd.fieldSecurity.read",
558
+ prop: "isquery",
559
+ width: "90",
560
+ type: "slot",
561
+ slotType: "isquery",
562
+ label: "\u8BFB\u53D6",
563
+ align: "center",
564
+ fixed: "right"
565
+ },
566
+ {
567
+ transKey: "gd.fieldSecurity.update",
568
+ prop: "isedit",
569
+ width: "90",
570
+ type: "slot",
571
+ slotType: "isedit",
572
+ label: "\u66F4\u65B0",
573
+ align: "center",
574
+ fixed: "right"
575
+ },
576
+ {
577
+ transKey: "gd.fieldSecurity.create",
578
+ prop: "isadd",
579
+ width: "90",
580
+ type: "slot",
581
+ slotType: "isadd",
582
+ label: "\u521B\u5EFA",
583
+ align: "center",
584
+ fixed: "right"
585
+ }
586
+ ],
587
+ tableButtons: [{
588
+ displayName: "\u7F16\u8F91",
589
+ functionName: "edit",
590
+ show: !0,
591
+ transKey: "gd.btn.edit",
592
+ icon: "el-icon-edit",
593
+ name: "fieldSecurity:dispose"
594
+ }]
595
+ };
596
+ }
597
+ };
598
+ const T = {
599
+ name: "GdDataAssign",
600
+ props: {
601
+ id: {
602
+ type: [String, Number],
603
+ default: 0
604
+ }
605
+ },
606
+ data() {
607
+ return {
608
+ buttons: [
609
+ {
610
+ displayName: "\u786E\u5B9A",
611
+ functionName: "handleSubmit",
612
+ show: !0,
613
+ transKey: "gd.btn.confirm",
614
+ icon: "el-icon-document-checked"
615
+ }
616
+ ],
617
+ record: {},
618
+ visible: !1,
619
+ confirmLoading: !1,
620
+ fullscreen: !1,
621
+ width: "600px",
622
+ ruleFormData: {
623
+ ownerId: ""
624
+ }
625
+ };
626
+ },
627
+ computed: {
628
+ message() {
629
+ return `${this.$i18nt("gd.fieldSecurity.editFieldTip", "\u66F4\u6539\u9009\u5B9A\u5B57\u6BB5\u7684\u6743\u9650\u3002")}`;
630
+ },
631
+ ...o(["screenHeight"])
632
+ },
633
+ methods: {
634
+ handleSubmit() {
635
+ this.confirmLoading = !0, m(
636
+ Object.assign(this.record, {
637
+ sysfieldsecurityconfigid: this.id
638
+ })
639
+ ).then((t) => {
640
+ t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.closed(), this.$emit("ok")) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message), this.confirmLoading = !1;
641
+ });
642
+ },
643
+ open(t) {
644
+ this.record = Object.assign(
645
+ { ...t },
646
+ {
647
+ isquery: String(t.isquery),
648
+ isedit: String(t.isedit),
649
+ isadd: String(t.isadd)
650
+ }
651
+ ), this.visible = !0;
652
+ },
653
+ closed() {
654
+ this.fullscreen = !1, this.visible = !1;
655
+ },
656
+ toggleFullscreen() {
657
+ this.fullscreen = !this.fullscreen;
658
+ },
659
+ getDictionary(t) {
660
+ return this.$options.filters.dictData(t);
661
+ },
662
+ doEvent(t) {
663
+ const e = t.item.functionName;
664
+ this[e] && this[e]();
665
+ }
666
+ }
667
+ };
668
+ var K = function() {
669
+ var e = this, s = e._self._c;
670
+ return s("div", [s("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
671
+ e.visible = i;
672
+ }, closed: e.closed } }, [s("template", { slot: "title" }, [s("gd-modal-title", { attrs: { title: e.$i18nt("gd.fieldSecurity.editField", "\u7F16\u8F91\u5B57\u6BB5\u5B89\u5168\u6027"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [s("el-alert", { attrs: { title: e.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), type: "warning", description: e.message, "show-icon": "", closable: !1 } }), s("div", { staticClass: "cofig" }, [s("div", { staticClass: "l" }, [s("div", { staticClass: "title" }, [e._v(e._s(e.$i18nt("gd.fieldSecurity.allowReading", "\u5141\u8BB8\u8BFB\u53D6")))]), s("div", [e._v(e._s(e.$i18nt("gd.fieldSecurity.allowReadingTip", "\u7528\u6237\u53EF\u4EE5\u67E5\u770B\u6B64\u5B57\u6BB5")))])]), s("div", { staticClass: "r" }, [s("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.record.isquery, callback: function(i) {
673
+ e.$set(e.record, "isquery", i);
674
+ }, expression: "record.isquery" } }, [e._l(e.getDictionary("yes_or_no"), function(i) {
675
+ return [s("el-option", { attrs: { value: i.code, label: e.$i18nt(i.transKey, i.name) } })];
676
+ })], 2)], 1)]), s("el-divider"), s("div", { staticClass: "cofig" }, [s("div", { staticClass: "l" }, [s("div", { staticClass: "title" }, [e._v(e._s(e.$i18nt("gd.fieldSecurity.allowUpdate", "\u5141\u8BB8\u66F4\u65B0")))]), s("div", [e._v(e._s(e.$i18nt("gd.fieldSecurity.allowUpdateTip", "\u7528\u6237\u53EF\u4EE5\u66F4\u6539\u6B64\u5B57\u6BB5\u4E2D\u7684\u4FE1\u606F")))])]), s("div", { staticClass: "r" }, [s("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.record.isedit, callback: function(i) {
677
+ e.$set(e.record, "isedit", i);
678
+ }, expression: "record.isedit" } }, [e._l(e.getDictionary("yes_or_no"), function(i) {
679
+ return [s("el-option", { attrs: { value: i.code, label: e.$i18nt(i.transKey, i.name) } })];
680
+ })], 2)], 1)]), s("el-divider"), s("div", { staticClass: "cofig" }, [s("div", { staticClass: "l" }, [s("div", { staticClass: "title" }, [e._v(e._s(e.$i18nt("gd.fieldSecurity.allowCreate", "\u5141\u8BB8\u521B\u5EFA")))]), s("div", [e._v(e._s(e.$i18nt("gd.fieldSecurity.allowCreateTip", "\u7528\u6237\u53EF\u4EE5\u5728\u521B\u5EFA\u8BB0\u5F55\u65F6\u5411\u6B64\u5B57\u6BB5\u4E2D\u6DFB\u52A0\u4FE1\u606F")))])]), s("div", { staticClass: "r" }, [s("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.record.isadd, callback: function(i) {
681
+ e.$set(e.record, "isadd", i);
682
+ }, expression: "record.isadd" } }, [e._l(e.getDictionary("yes_or_no"), function(i) {
683
+ return [s("el-option", { attrs: { value: i.code, label: e.$i18nt(i.transKey, i.name) } })];
684
+ })], 2)], 1)])], 1)], 2)], 1);
685
+ }, N = [], B = /* @__PURE__ */ a(
686
+ T,
687
+ K,
688
+ N,
689
+ !1,
690
+ null,
691
+ "cc8a58ec",
692
+ null,
693
+ null
694
+ );
695
+ const F = B.exports;
696
+ const L = {
697
+ props: {
698
+ height: {
699
+ type: Number,
700
+ default: 100
701
+ },
702
+ record: {
703
+ type: Object,
704
+ default: () => ({})
705
+ }
706
+ },
707
+ mixins: [k],
708
+ components: { EditForm: F },
709
+ data() {
710
+ return {
711
+ loading: !0,
712
+ selectedRowKeys: [],
713
+ selectedRows: [],
714
+ queryParam: {},
715
+ loadData: (t) => this.record.id === void 0 ? new Promise((e, s) => {
716
+ e({ pageNo: 1, pageSize: 40, totalRows: 0, rows: [] });
717
+ }) : g(
718
+ Object.assign(t, this.queryParam, {
719
+ sysFieldSecurityConfigId: this.record.id
720
+ })
721
+ ).then((e) => e.data)
722
+ };
723
+ },
724
+ computed: {
725
+ ...o(["tablePageSize", "tableSize", "screenHeight", "tableLists"])
726
+ },
727
+ methods: {
728
+ edit() {
729
+ if (this.selectedRowKeys.length === 0) {
730
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
731
+ return;
732
+ }
733
+ if (this.selectedRowKeys.length > 1) {
734
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
735
+ return;
736
+ }
737
+ this.editForm(this.selectedRows[0]);
738
+ },
739
+ editForm(t) {
740
+ this.$refs.editForm.open(t);
741
+ },
742
+ refresh() {
743
+ this.$refs.table.refresh();
744
+ },
745
+ onSelectChange(t, e) {
746
+ this.selectedRowKeys = t, this.selectedRows = e;
747
+ },
748
+ doEvent(t) {
749
+ let e = t.item.functionName;
750
+ this[e] && this[e]();
751
+ }
752
+ }
753
+ };
754
+ var D = function() {
755
+ var e = this, s = e._self._c;
756
+ return s("div", [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, initialLoading: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
757
+ return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl", staticStyle: { width: "260px" } }, [s("el-select", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.fieldSecurity.table", "\u8868"), "reserve-keyword": "", filterable: "", remote: "", clearable: "" }, model: { value: e.queryParam.sysCodeGenId, callback: function(i) {
758
+ e.$set(e.queryParam, "sysCodeGenId", i);
759
+ }, expression: "queryParam.sysCodeGenId" } }, e._l(e.tableLists, function(i) {
760
+ return s("el-option", { key: i.id, attrs: { label: e.$i18nt(`Dynamics.${i.transKey}`, i.busname), value: i.id } }, [s("span", [e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.busname)) + " " + e._s(i.tablename))])]);
761
+ }), 1), s("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1), s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
762
+ }, proxy: !0 }, { key: "name", fn: function({ column: i, row: n }) {
763
+ return [n.syscodegenconfig ? s("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(r) {
764
+ return e.editForm(n);
765
+ } } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.syscodegenconfig.transKey}`, n.syscodegenconfig.columncomment)) + " ")]) : e._e()];
766
+ } }, { key: "syscodegenconfigid", fn: function({ column: i, row: n }) {
767
+ return [n.syscodegenconfig ? s("span", [e._v(" " + e._s(n.syscodegenconfig.columnname) + " ")]) : e._e()];
768
+ } }, { key: "effecttype", fn: function({ column: i, row: n }) {
769
+ return [n.syscodegenconfig ? s("span", [e._v(" " + e._s(e._f("dictType")("code_gen_effect_type", n.syscodegenconfig.effecttype)) + " ")]) : e._e()];
770
+ } }, { key: "syscodegenid", fn: function({ column: i, row: n }) {
771
+ return [n.syscodegen ? s("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.syscodegen.transkey}`, n.syscodegen.busname)) + " ")]) : e._e()];
772
+ } }, { key: "isquery", fn: function({ column: i, row: n }) {
773
+ return [n.isquery === 1 ? s("i", { staticClass: "gd-icons gd-icon-xuanzhong active-color", staticStyle: { "font-size": "18px" } }) : s("i", { staticClass: "gd-icons gd-icon-jinyong1", staticStyle: { "font-size": "18px", color: "#999" } })];
774
+ } }, { key: "isedit", fn: function({ column: i, row: n }) {
775
+ return [n.isedit === 1 ? s("i", { staticClass: "gd-icons gd-icon-xuanzhong active-color", staticStyle: { "font-size": "18px" } }) : s("i", { staticClass: "gd-icons gd-icon-jinyong1", staticStyle: { "font-size": "18px", color: "#999" } })];
776
+ } }, { key: "isadd", fn: function({ column: i, row: n }) {
777
+ return [n.isadd === 1 ? s("i", { staticClass: "gd-icons gd-icon-xuanzhong active-color", staticStyle: { "font-size": "18px" } }) : s("i", { staticClass: "gd-icons gd-icon-jinyong1", staticStyle: { "font-size": "18px", color: "#999" } })];
778
+ } }]) }), s("EditForm", { ref: "editForm", attrs: { ok: "refresh", id: e.record.id }, on: { ok: e.refresh } })], 1);
779
+ }, E = [], z = /* @__PURE__ */ a(
780
+ L,
781
+ D,
782
+ E,
783
+ !1,
784
+ null,
785
+ "7072a6da",
786
+ null,
787
+ null
788
+ );
789
+ const I = z.exports, P = {
790
+ data() {
791
+ return {
792
+ tableColumns: [
793
+ {
794
+ type: "selection",
795
+ width: "60",
796
+ fixed: !0
797
+ },
798
+ {
799
+ transKey: "gd.user.roleName",
800
+ prop: "name",
801
+ label: "\u89D2\u8272\u540D\u79F0",
802
+ type: "slot",
803
+ slotType: "name",
804
+ align: "left",
805
+ showOverflowTooltip: !0
806
+ },
807
+ {
808
+ transKey: "gd.user.roleType",
809
+ prop: "roletype",
810
+ label: "\u89D2\u8272\u7C7B\u578B",
811
+ align: "left",
812
+ type: "slot",
813
+ slotType: "roletype",
814
+ showOverflowTooltip: !0
815
+ },
816
+ {
817
+ transKey: "gd.user.code",
818
+ prop: "code",
819
+ label: "\u552F\u4E00\u7F16\u7801",
820
+ align: "left",
821
+ type: "slot",
822
+ slotType: "code",
823
+ showOverflowTooltip: !0
824
+ },
825
+ {
826
+ transKey: "gd.org.sort",
827
+ prop: "sort",
828
+ label: "\u6392\u5E8F",
829
+ align: "left",
830
+ type: "slot",
831
+ slotType: "sort",
832
+ showOverflowTooltip: !0
833
+ }
834
+ ],
835
+ tableButtons: [
836
+ {
837
+ displayName: "\u65B0\u589E",
838
+ functionName: "add",
839
+ show: !0,
840
+ transKey: "gd.btn.add",
841
+ icon: "el-icon-plus",
842
+ name: "fieldSecurity:memberadd"
843
+ },
844
+ {
845
+ displayName: "\u5220\u9664",
846
+ functionName: "del",
847
+ show: !0,
848
+ transKey: "gd.btn.del",
849
+ icon: "el-icon-delete",
850
+ btnType: "danger",
851
+ name: "fieldSecurity:memberdel"
852
+ }
853
+ ]
854
+ };
855
+ }
856
+ };
857
+ const O = {
858
+ props: {
859
+ record: {
860
+ type: Object,
861
+ default: () => ({})
862
+ },
863
+ columns: {
864
+ type: Array,
865
+ default: () => []
866
+ },
867
+ disabledRowId: {
868
+ type: Array,
869
+ default: () => []
870
+ }
871
+ },
872
+ data() {
873
+ return {
874
+ buttons: [
875
+ {
876
+ displayName: "\u786E\u5B9A",
877
+ functionName: "handleSubmit",
878
+ show: !0,
879
+ transKey: "gd.btn.confirm",
880
+ icon: "el-icon-document-checked"
881
+ }
882
+ ],
883
+ selectedRowKeys: [],
884
+ selectedRows: [],
885
+ visible: !1,
886
+ confirmLoading: !1,
887
+ fullscreen: !1,
888
+ width: "90%",
889
+ queryParam: {},
890
+ loadData: (t) => b(Object.assign(t, this.queryParam, { sysAppsId: window.$systemInfo.id })).then((e) => (this.changeData(e.data), e.data)),
891
+ dataList: []
892
+ };
893
+ },
894
+ computed: {
895
+ height() {
896
+ return this.screenHeight - (this.fullscreen ? 160 : 320);
897
+ },
898
+ ...o(["screenHeight", "tablePageSize", "tableSize"])
899
+ },
900
+ methods: {
901
+ changeData(t) {
902
+ let e = [];
903
+ this.dataList.forEach((i) => {
904
+ e.push(i.id);
905
+ });
906
+ const s = t.rows.filter((i) => !e.includes(i.id));
907
+ this.dataList = this.dataList.concat(s);
908
+ },
909
+ handleSubmit(t) {
910
+ let e = [];
911
+ this.dataList.filter((i) => this.selectedRowKeys.includes(i.id)).forEach((i) => {
912
+ e.push({
913
+ sysFieldSecurityConfigId: this.record.id,
914
+ member_AboutId: i.id,
915
+ member_AboutTable: "sys_role"
916
+ });
917
+ });
918
+ let s = { data: this.selectedRowKeys, fkData: e };
919
+ e.length === 0 ? this.closed() : this.$emit("lookupSeled", s);
920
+ },
921
+ open(t) {
922
+ this.visible = !0, this.$nextTick(() => {
923
+ setTimeout(() => {
924
+ this.refresh();
925
+ }, 0);
926
+ });
927
+ },
928
+ closed() {
929
+ this.fullscreen = !1, this.visible = !1, this.onSelectChange([], []);
930
+ },
931
+ toggleFullscreen() {
932
+ this.fullscreen = !this.fullscreen;
933
+ },
934
+ refresh() {
935
+ this.$refs.table.refresh();
936
+ },
937
+ onSelectChange(t, e) {
938
+ this.selectedRowKeys = t, this.selectedRows = e;
939
+ },
940
+ doEvent(t) {
941
+ const e = t.item.functionName;
942
+ this[e] && this[e]();
943
+ }
944
+ }
945
+ };
946
+ var q = function() {
947
+ var e = this, s = e._self._c;
948
+ return s("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
949
+ e.visible = i;
950
+ }, closed: e.closed } }, [s("template", { slot: "title" }, [s("gd-modal-title", { attrs: { title: e.$i18nt("gd.menu.advancedFind", "\u67E5\u627E"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.columns, selectedRowKeys: e.selectedRowKeys, height: e.height, initialLoading: !1, selectedKeep: !0, disabledRowId: e.disabledRowId }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
951
+ }, proxy: !0 }, { key: "name", fn: function({ column: i, row: n }) {
952
+ return [e._v(" " + e._s(n.name) + " ")];
953
+ } }, { key: "code", fn: function({ column: i, row: n }) {
954
+ return [e._v(" " + e._s(n.code) + " ")];
955
+ } }, { key: "sort", fn: function({ column: i, row: n }) {
956
+ return [e._v(" " + e._s(n.sort) + " ")];
957
+ } }, { key: "roleType", fn: function({ column: i, row: n }) {
958
+ return [e._v(" " + e._s(e._f("dictType")("role_type", n.roleType)) + " ")];
959
+ } }], null, !1, 3083467277) }) : e._e()], 1)], 2);
960
+ }, j = [], M = /* @__PURE__ */ a(
961
+ O,
962
+ q,
963
+ j,
964
+ !1,
965
+ null,
966
+ "069026ea",
967
+ null,
968
+ null
969
+ );
970
+ const V = M.exports;
971
+ const A = {
972
+ props: {
973
+ height: {
974
+ type: Number,
975
+ default: 100
976
+ },
977
+ record: {
978
+ type: Object,
979
+ default: () => ({})
980
+ }
981
+ },
982
+ mixins: [P],
983
+ data() {
984
+ return {
985
+ loading: !0,
986
+ selectedRowKeys: [],
987
+ selectedRows: [],
988
+ queryParam: {
989
+ sysCodeGenName: "sys_role"
990
+ },
991
+ disabledRowId: [],
992
+ loadData: (t) => this.record.id === void 0 ? new Promise((e, s) => {
993
+ e({ pageNo: 1, pageSize: 40, totalRows: 0, rows: [] });
994
+ }) : u(
995
+ Object.assign(t, this.queryParam, {
996
+ sysFieldSecurityConfigId: this.record.id
997
+ })
998
+ ).then((e) => (this.getRowId(e.data), e.data))
999
+ };
1000
+ },
1001
+ components: { RoleSearch: V },
1002
+ computed: {
1003
+ ...o(["tablePageSize", "tableSize", "screenHeight"])
1004
+ },
1005
+ methods: {
1006
+ getRowId(t) {
1007
+ let e = [];
1008
+ t.rows.filter((s) => !this.disabledRowId.includes(s.sysrole.id)).forEach((s) => {
1009
+ e.push(s.sysrole.id);
1010
+ }), this.disabledRowId = this.disabledRowId.concat(e);
1011
+ },
1012
+ lookupSeled(t) {
1013
+ this.$refs.roleSearch.confirmLoading = !0, f(t.fkData).then((e) => {
1014
+ e.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$refs.roleSearch.closed(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message), this.$refs.roleSearch.confirmLoading = !1;
1015
+ });
1016
+ },
1017
+ add() {
1018
+ this.$refs.roleSearch.open();
1019
+ },
1020
+ del() {
1021
+ let t = this;
1022
+ if (this.selectedRowKeys.length === 0) {
1023
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
1024
+ return;
1025
+ }
1026
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
1027
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
1028
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
1029
+ showClose: !1,
1030
+ confirmButtonLoading: !1,
1031
+ cancelButtonLoading: !1,
1032
+ closeOnClickModal: !1,
1033
+ type: "warning",
1034
+ confirmButtonClass: "el-button--danger",
1035
+ customClass: "custom-alert",
1036
+ callback: () => {
1037
+ },
1038
+ beforeClose: (e, s, i) => {
1039
+ if (e !== "confirm") {
1040
+ i();
1041
+ return;
1042
+ }
1043
+ s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1, h({
1044
+ ids: t.selectedRowKeys.join(",")
1045
+ }).then((n) => {
1046
+ n.success ? (t.$message.success(t.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), t.disabledRowId = t.disabledRowId.filter((r) => !t.selectedRows.filter((d) => d.sysrole.id === r)[0]), t.refresh(), s.confirmButtonLoading = !1, s.cancelButtonLoading = !1, s.showCancelButton = !0, i()) : t.$message.error(t.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n.message);
1047
+ });
1048
+ }
1049
+ });
1050
+ },
1051
+ refresh() {
1052
+ this.$refs.table.refresh();
1053
+ },
1054
+ onSelectChange(t, e) {
1055
+ this.selectedRowKeys = t, this.selectedRows = e;
1056
+ },
1057
+ doEvent(t) {
1058
+ let e = t.item.functionName;
1059
+ this[e] && this[e]();
1060
+ }
1061
+ }
1062
+ };
1063
+ var G = function() {
1064
+ var e = this, s = e._self._c;
1065
+ return s("div", [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, initialLoading: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
1066
+ return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
1067
+ }, proxy: !0 }, { key: "name", fn: function({ column: i, row: n }) {
1068
+ return [s("span", [e._v(" " + e._s(n.sysrole ? n.sysrole.name : "") + " ")])];
1069
+ } }, { key: "code", fn: function({ column: i, row: n }) {
1070
+ return [e._v(" " + e._s(n.sysrole ? n.sysrole.code : "") + " ")];
1071
+ } }, { key: "sort", fn: function({ column: i, row: n }) {
1072
+ return [e._v(" " + e._s(n.sysrole ? n.sysrole.sort : "") + " ")];
1073
+ } }, { key: "roletype", fn: function({ column: i, row: n }) {
1074
+ return [n.sysrole ? s("span", [e._v(e._s(e._f("dictType")("role_type", n.sysrole.roletype)))]) : e._e()];
1075
+ } }]) }), s("RoleSearch", { ref: "roleSearch", attrs: { record: e.record, columns: e.tableColumns, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1);
1076
+ }, H = [], Q = /* @__PURE__ */ a(
1077
+ A,
1078
+ G,
1079
+ H,
1080
+ !1,
1081
+ null,
1082
+ "616c066c",
1083
+ null,
1084
+ null
1085
+ );
1086
+ const U = Q.exports, W = {
1087
+ data() {
1088
+ return {
1089
+ tableColumns: [
1090
+ {
1091
+ type: "selection",
1092
+ width: "60",
1093
+ fixed: !0
1094
+ },
1095
+ {
1096
+ transKey: "gd.fieldSecurity.name",
1097
+ prop: "name",
1098
+ label: "\u540D\u79F0",
1099
+ type: "slot",
1100
+ slotType: "name",
1101
+ align: "left",
1102
+ showOverflowTooltip: !0
1103
+ },
1104
+ {
1105
+ transKey: "gd.fieldSecurity.teamType",
1106
+ prop: "teamType",
1107
+ label: "\u56E2\u961F\u7C7B\u578B",
1108
+ align: "left",
1109
+ type: "slot",
1110
+ slotType: "teamType",
1111
+ showOverflowTooltip: !0
1112
+ },
1113
+ {
1114
+ transKey: "gd.fieldSecurity.description",
1115
+ prop: "description",
1116
+ label: "\u8BF4\u660E",
1117
+ type: "slot",
1118
+ slotType: "description",
1119
+ align: "left"
1120
+ }
1121
+ ],
1122
+ tableButtons: [
1123
+ {
1124
+ displayName: "\u65B0\u589E",
1125
+ functionName: "add",
1126
+ show: !0,
1127
+ transKey: "gd.btn.add",
1128
+ icon: "el-icon-plus",
1129
+ name: "fieldSecurity:memberadd"
1130
+ },
1131
+ {
1132
+ displayName: "\u5220\u9664",
1133
+ functionName: "del",
1134
+ show: !0,
1135
+ transKey: "gd.btn.del",
1136
+ icon: "el-icon-delete",
1137
+ btnType: "danger",
1138
+ name: "fieldSecurity:memberdel"
1139
+ }
1140
+ ]
1141
+ };
1142
+ }
1143
+ };
1144
+ const J = {
1145
+ props: {
1146
+ height: {
1147
+ type: Number,
1148
+ default: 100
1149
+ },
1150
+ record: {
1151
+ type: Object,
1152
+ default: () => ({})
1153
+ }
1154
+ },
1155
+ mixins: [W],
1156
+ data() {
1157
+ return {
1158
+ loading: !0,
1159
+ selectedRowKeys: [],
1160
+ selectedRows: [],
1161
+ disabledRowId: [],
1162
+ queryParam: {
1163
+ sysCodeGenName: "sys_team"
1164
+ },
1165
+ loadData: (t) => this.record.id === void 0 ? new Promise((e, s) => {
1166
+ e({ pageNo: 1, pageSize: 40, totalRows: 0, rows: [] });
1167
+ }) : u(
1168
+ Object.assign(t, this.queryParam, {
1169
+ sysFieldSecurityConfigId: this.record.id
1170
+ })
1171
+ ).then((e) => (this.getRowId(e.data), e.data))
1172
+ };
1173
+ },
1174
+ computed: {
1175
+ ...o(["tablePageSize", "tableSize", "screenHeight"])
1176
+ },
1177
+ methods: {
1178
+ getRowId(t) {
1179
+ let e = [];
1180
+ t.rows.filter((s) => !this.disabledRowId.includes(s.systeam.id)).forEach((s) => {
1181
+ e.push(s.systeam.id);
1182
+ }), this.disabledRowId = this.disabledRowId.concat(e);
1183
+ },
1184
+ lookupSeled(t) {
1185
+ if (t.fkData.length === 0) {
1186
+ this.$refs.engineSearch.closed();
1187
+ return;
1188
+ }
1189
+ let e = [];
1190
+ t.fkData.forEach((s) => {
1191
+ e.push({
1192
+ sysFieldSecurityConfigId: this.record.id,
1193
+ member_AboutId: s.id,
1194
+ member_AboutTable: s.tableName
1195
+ });
1196
+ }), this.$refs.engineSearch.confirmLoading = !0, f(e).then((s) => {
1197
+ s.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$refs.engineSearch.closed(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + s.message), this.$refs.engineSearch.confirmLoading = !1;
1198
+ });
1199
+ },
1200
+ add() {
1201
+ this.$refs.engineSearch.open({
1202
+ fkEntityName: this.queryParam.sysCodeGenName,
1203
+ val: [],
1204
+ effectType: "participants",
1205
+ isRelevance: !0
1206
+ });
1207
+ },
1208
+ del() {
1209
+ let t = this;
1210
+ if (this.selectedRowKeys.length === 0) {
1211
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
1212
+ return;
1213
+ }
1214
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
1215
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
1216
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
1217
+ showClose: !1,
1218
+ confirmButtonLoading: !1,
1219
+ cancelButtonLoading: !1,
1220
+ closeOnClickModal: !1,
1221
+ type: "warning",
1222
+ confirmButtonClass: "el-button--danger",
1223
+ customClass: "custom-alert",
1224
+ callback: () => {
1225
+ },
1226
+ beforeClose: (e, s, i) => {
1227
+ if (e !== "confirm") {
1228
+ i();
1229
+ return;
1230
+ }
1231
+ s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1, h({
1232
+ ids: t.selectedRowKeys.join(",")
1233
+ }).then((n) => {
1234
+ n.success ? (t.$message.success(t.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), t.disabledRowId = t.disabledRowId.filter((r) => !t.selectedRows.filter((d) => d.systeam.id === r)[0]), t.refresh(), s.confirmButtonLoading = !1, s.cancelButtonLoading = !1, s.showCancelButton = !0, i()) : t.$message.error(t.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n.message);
1235
+ });
1236
+ }
1237
+ });
1238
+ },
1239
+ refresh() {
1240
+ this.$refs.table.refresh();
1241
+ },
1242
+ onSelectChange(t, e) {
1243
+ this.selectedRowKeys = t, this.selectedRows = e;
1244
+ },
1245
+ doEvent(t) {
1246
+ let e = t.item.functionName;
1247
+ this[e] && this[e]();
1248
+ }
1249
+ }
1250
+ };
1251
+ var X = function() {
1252
+ var e = this, s = e._self._c;
1253
+ return s("div", [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, initialLoading: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
1254
+ return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
1255
+ }, proxy: !0 }, { key: "name", fn: function({ column: i, row: n }) {
1256
+ return [s("span", [e._v(" " + e._s(n.systeam ? n.systeam.name : "") + " ")])];
1257
+ } }, { key: "teamType", fn: function({ column: i, row: n }) {
1258
+ return [n.systeam ? s("span", [e._v(" " + e._s(e._f("dictType")("TeamType", n.systeam.teamtype)) + " ")]) : e._e()];
1259
+ } }, { key: "description", fn: function({ column: i, row: n }) {
1260
+ return [e._v(" " + e._s(n.systeam ? n.systeam.description : "") + " ")];
1261
+ } }]) }), s("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1);
1262
+ }, Y = [], Z = /* @__PURE__ */ a(
1263
+ J,
1264
+ X,
1265
+ Y,
1266
+ !1,
1267
+ null,
1268
+ "5c2b5b14",
1269
+ null,
1270
+ null
1271
+ );
1272
+ const ee = Z.exports, te = {
1273
+ data() {
1274
+ return {
1275
+ tableColumns: [
1276
+ {
1277
+ type: "selection",
1278
+ width: "60",
1279
+ fixed: !0
1280
+ },
1281
+ {
1282
+ transKey: "gd.user.name",
1283
+ prop: "name",
1284
+ label: "\u59D3\u540D",
1285
+ type: "slot",
1286
+ slotType: "name",
1287
+ align: "left",
1288
+ showOverflowTooltip: !0
1289
+ },
1290
+ {
1291
+ transKey: "gd.user.nickname",
1292
+ prop: "nickname",
1293
+ label: "\u6635\u79F0",
1294
+ align: "left",
1295
+ type: "slot",
1296
+ slotType: "nickname",
1297
+ showOverflowTooltip: !0
1298
+ },
1299
+ {
1300
+ transKey: "gd.user.sex",
1301
+ prop: "sex",
1302
+ label: "\u6027\u522B",
1303
+ align: "left",
1304
+ type: "slot",
1305
+ slotType: "sex",
1306
+ showOverflowTooltip: !0
1307
+ },
1308
+ {
1309
+ transKey: "gd.user.organization",
1310
+ prop: "orgname",
1311
+ label: "\u6240\u5C5E\u673A\u6784",
1312
+ align: "left",
1313
+ type: "slot",
1314
+ slotType: "orgname",
1315
+ showOverflowTooltip: !0
1316
+ },
1317
+ {
1318
+ transKey: "gd.user.status",
1319
+ prop: "status",
1320
+ label: "\u72B6\u6001",
1321
+ align: "left",
1322
+ type: "slot",
1323
+ slotType: "status",
1324
+ showOverflowTooltip: !0
1325
+ }
1326
+ ],
1327
+ tableButtons: [
1328
+ {
1329
+ displayName: "\u65B0\u589E",
1330
+ functionName: "add",
1331
+ show: !0,
1332
+ transKey: "gd.btn.add",
1333
+ icon: "el-icon-plus",
1334
+ name: "fieldSecurity:memberadd"
1335
+ },
1336
+ {
1337
+ displayName: "\u5220\u9664",
1338
+ functionName: "del",
1339
+ show: !0,
1340
+ transKey: "gd.btn.del",
1341
+ icon: "el-icon-delete",
1342
+ btnType: "danger",
1343
+ name: "fieldSecurity:memberdel"
1344
+ }
1345
+ ]
1346
+ };
1347
+ }
1348
+ };
1349
+ const se = {
1350
+ props: {
1351
+ height: {
1352
+ type: Number,
1353
+ default: 100
1354
+ },
1355
+ record: {
1356
+ type: Object,
1357
+ default: () => ({})
1358
+ }
1359
+ },
1360
+ mixins: [te],
1361
+ data() {
1362
+ return {
1363
+ loading: !0,
1364
+ selectedRowKeys: [],
1365
+ selectedRows: [],
1366
+ queryParam: {
1367
+ sysCodeGenName: "sys_user"
1368
+ },
1369
+ disabledRowId: [],
1370
+ loadData: (t) => this.record.id === void 0 ? new Promise((e, s) => {
1371
+ e({ pageNo: 1, pageSize: 40, totalRows: 0, rows: [] });
1372
+ }) : u(
1373
+ Object.assign(t, this.queryParam, {
1374
+ sysFieldSecurityConfigId: this.record.id
1375
+ })
1376
+ ).then((e) => (this.getRowId(e.data), e.data))
1377
+ };
1378
+ },
1379
+ computed: {
1380
+ ...o(["tablePageSize", "tableSize", "screenHeight"])
1381
+ },
1382
+ methods: {
1383
+ getRowId(t) {
1384
+ let e = [];
1385
+ t.rows.filter((s) => !this.disabledRowId.includes(s.sysuser.id)).forEach((s) => {
1386
+ e.push(s.sysuser.id);
1387
+ }), this.disabledRowId = this.disabledRowId.concat(e);
1388
+ },
1389
+ lookupSeled(t) {
1390
+ if (t.fkData.length === 0) {
1391
+ this.$refs.engineSearch.closed();
1392
+ return;
1393
+ }
1394
+ let e = [];
1395
+ t.fkData.forEach((s) => {
1396
+ e.push({
1397
+ sysFieldSecurityConfigId: this.record.id,
1398
+ member_AboutId: s.id,
1399
+ member_AboutTable: s.tableName
1400
+ });
1401
+ }), this.$refs.engineSearch.confirmLoading = !0, f(e).then((s) => {
1402
+ s.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$refs.engineSearch.closed(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + s.message), this.$refs.engineSearch.confirmLoading = !1;
1403
+ });
1404
+ },
1405
+ add() {
1406
+ this.$refs.engineSearch.open({
1407
+ fkEntityName: this.queryParam.sysCodeGenName,
1408
+ val: [],
1409
+ effectType: "participants",
1410
+ isRelevance: !0
1411
+ });
1412
+ },
1413
+ del() {
1414
+ let t = this;
1415
+ if (this.selectedRowKeys.length === 0) {
1416
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
1417
+ return;
1418
+ }
1419
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
1420
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
1421
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
1422
+ showClose: !1,
1423
+ confirmButtonLoading: !1,
1424
+ cancelButtonLoading: !1,
1425
+ closeOnClickModal: !1,
1426
+ type: "warning",
1427
+ confirmButtonClass: "el-button--danger",
1428
+ customClass: "custom-alert",
1429
+ callback: () => {
1430
+ },
1431
+ beforeClose: (e, s, i) => {
1432
+ if (e !== "confirm") {
1433
+ i();
1434
+ return;
1435
+ }
1436
+ s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1, h({
1437
+ ids: t.selectedRowKeys.join(",")
1438
+ }).then((n) => {
1439
+ n.success ? (t.$message.success(t.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), t.disabledRowId = t.disabledRowId.filter((r) => !t.selectedRows.filter((d) => d.sysuser.id === r)[0]), t.refresh(), s.confirmButtonLoading = !1, s.cancelButtonLoading = !1, s.showCancelButton = !0, i()) : t.$message.error(t.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n.message);
1440
+ });
1441
+ }
1442
+ });
1443
+ },
1444
+ refresh() {
1445
+ this.$refs.table.refresh();
1446
+ },
1447
+ onSelectChange(t, e) {
1448
+ this.selectedRowKeys = t, this.selectedRows = e;
1449
+ },
1450
+ doEvent(t) {
1451
+ let e = t.item.functionName;
1452
+ this[e] && this[e]();
1453
+ }
1454
+ }
1455
+ };
1456
+ var ie = function() {
1457
+ var e = this, s = e._self._c;
1458
+ return s("div", [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, initialLoading: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
1459
+ return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
1460
+ }, proxy: !0 }, { key: "name", fn: function({ column: i, row: n }) {
1461
+ return [s("span", [e._v(" " + e._s(n.sysuser ? n.sysuser.name : "") + " ")])];
1462
+ } }, { key: "nickname", fn: function({ column: i, row: n }) {
1463
+ return [s("span", { staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(n.sysuser ? n.sysuser.nickname : "") + " ")])];
1464
+ } }, { key: "orgname", fn: function({ column: i, row: n }) {
1465
+ return [s("span", { staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(n.sysuser ? n.sysuser.orgname : "") + " ")])];
1466
+ } }, { key: "sex", fn: function({ column: i, row: n }) {
1467
+ return [n.sysuser ? s("span", [e._v(" " + e._s(e._f("dictType")("gender", n.sysuser.sex)) + " ")]) : e._e()];
1468
+ } }, { key: "status", fn: function({ column: i, row: n }) {
1469
+ return [n.sysuser ? s("span", [e._v(" " + e._s(e._f("dictType")("state_code", n.sysuser.status)) + " ")]) : e._e()];
1470
+ } }]) }), s("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1);
1471
+ }, ne = [], ae = /* @__PURE__ */ a(
1472
+ se,
1473
+ ie,
1474
+ ne,
1475
+ !1,
1476
+ null,
1477
+ "f108c893",
1478
+ null,
1479
+ null
1480
+ );
1481
+ const oe = ae.exports;
1482
+ const re = {
1483
+ props: {
1484
+ height: {
1485
+ type: Number,
1486
+ default: 0
1487
+ }
1488
+ },
1489
+ components: { FieldDescriptions: R, FieldConfig: I, RoleConfig: U, TeamConfig: ee, UserConfig: oe },
1490
+ data() {
1491
+ return {
1492
+ tableButtons: [
1493
+ {
1494
+ displayName: "\u8FD4\u56DE",
1495
+ functionName: "back",
1496
+ show: !0,
1497
+ transKey: "gd.btn.back",
1498
+ icon: "el-icon-arrow-left"
1499
+ },
1500
+ {
1501
+ displayName: "\u7F16\u8F91",
1502
+ functionName: "edit",
1503
+ show: !0,
1504
+ transKey: "gd.btn.edit",
1505
+ icon: "el-icon-edit",
1506
+ name: "sysTableField:edit"
1507
+ }
1508
+ ],
1509
+ activeName: "field",
1510
+ record: {},
1511
+ loading: !1,
1512
+ formLoading: !1
1513
+ };
1514
+ },
1515
+ computed: {
1516
+ getHeight() {
1517
+ return this.height - 56;
1518
+ },
1519
+ stylep() {
1520
+ return "";
1521
+ }
1522
+ },
1523
+ methods: {
1524
+ tabChange(t) {
1525
+ this.$nextTick(() => {
1526
+ setTimeout(() => {
1527
+ this.$refs[this.activeName + "Config"].refresh();
1528
+ }, 0);
1529
+ });
1530
+ },
1531
+ init(t) {
1532
+ this.activeName = "field", this.record = t, this.$nextTick(() => {
1533
+ setTimeout(() => {
1534
+ this.$refs[this.activeName + "Config"].refresh();
1535
+ }, 0);
1536
+ });
1537
+ },
1538
+ functionName(t) {
1539
+ t.item.functionName === "back" && (this.activeName = ""), this.$emit("functionName", t);
1540
+ }
1541
+ }
1542
+ };
1543
+ var le = function() {
1544
+ var e = this, s = e._self._c;
1545
+ return s("div", { staticClass: "gd-page-view", staticStyle: { position: "absolute", top: "0", "z-index": "8", left: "0", right: "0", bottom: "0", background: "#fff" }, style: e.stylep }, [s("div", { staticStyle: { display: "flex", background: "#f5f5f5" } }, [s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], staticClass: "page-view-descriptions", attrs: { "element-loading-spinner": "el-icon-loading active-color" } }, [s("FieldDescriptions", { attrs: { record: e.record, tableButtons: e.tableButtons, height: e.height }, on: { functionName: e.functionName } })], 1), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.formLoading, expression: "formLoading" }], staticClass: "page-view-list", attrs: { "element-loading-spinner": "el-icon-loading" } }, [s("el-tabs", { attrs: { type: "card" }, on: { "tab-click": e.tabChange }, model: { value: e.activeName, callback: function(i) {
1546
+ e.activeName = i;
1547
+ }, expression: "activeName" } }, [s("el-tab-pane", { attrs: { label: e.$i18nt("gd.fieldSecurity.field", "\u5B57\u6BB5\u6743\u9650"), name: "field", lazy: !0 } }, [e.activeName === "field" ? s("FieldConfig", { ref: "fieldConfig", attrs: { height: e.getHeight, record: e.record } }) : e._e()], 1), s("el-tab-pane", { attrs: { label: e.$i18nt("gd.fieldSecurity.team", "\u56E2\u961F"), name: "team", lazy: !0 } }, [e.activeName === "team" ? s("TeamConfig", { ref: "teamConfig", attrs: { height: e.getHeight, record: e.record } }) : e._e()], 1), s("el-tab-pane", { attrs: { label: e.$i18nt("gd.fieldSecurity.user", "\u7528\u6237"), name: "user", lazy: !0 } }, [e.activeName === "user" ? s("UserConfig", { ref: "userConfig", attrs: { height: e.getHeight, record: e.record } }) : e._e()], 1), s("el-tab-pane", { attrs: { label: e.$i18nt("gd.fieldSecurity.role", "\u89D2\u8272"), name: "role", lazy: !0 } }, [e.activeName === "role" ? s("RoleConfig", { ref: "roleConfig", attrs: { height: e.getHeight, record: e.record } }) : e._e()], 1)], 1)], 1)])]);
1548
+ }, de = [], ce = /* @__PURE__ */ a(
1549
+ re,
1550
+ le,
1551
+ de,
1552
+ !1,
1553
+ null,
1554
+ "1b0d17f8",
1555
+ null,
1556
+ null
1557
+ );
1558
+ const ue = ce.exports;
1559
+ const fe = {
1560
+ name: "GdFieldSecurity",
1561
+ props: {
1562
+ height: {
1563
+ type: Number,
1564
+ default: 0
1565
+ }
1566
+ },
1567
+ mixins: [v],
1568
+ data() {
1569
+ return {
1570
+ transKey: "gd.btn.add",
1571
+ formLoading: !1,
1572
+ loading: !0,
1573
+ selectedRowKeys: [],
1574
+ selectedRows: [],
1575
+ queryParam: {},
1576
+ loadData: (t) => p(Object.assign(t, this.queryParam)).then((e) => e.data),
1577
+ selItemData: {},
1578
+ openManage: !1
1579
+ };
1580
+ },
1581
+ computed: {
1582
+ getFormColumns() {
1583
+ return this.formColumns;
1584
+ },
1585
+ styled() {
1586
+ return this.openManage ? "z-index:7;padding: 0px 0px 0px 0px;" : "padding: 0px 0px 0px 0px;";
1587
+ },
1588
+ getHeight() {
1589
+ return this.height;
1590
+ },
1591
+ ...o(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
1592
+ },
1593
+ components: { ListConfig: ue },
1594
+ methods: {
1595
+ del() {
1596
+ if (this.selectedRowKeys.length === 0) {
1597
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
1598
+ return;
1599
+ }
1600
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
1601
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
1602
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
1603
+ showClose: !1,
1604
+ confirmButtonLoading: !1,
1605
+ cancelButtonLoading: !1,
1606
+ closeOnClickModal: !1,
1607
+ type: "warning",
1608
+ confirmButtonClass: "el-button--danger",
1609
+ customClass: "custom-alert",
1610
+ callback: () => {
1611
+ },
1612
+ beforeClose: (t, e, s) => {
1613
+ this.delHand(t, e, s);
1614
+ }
1615
+ });
1616
+ },
1617
+ delHand(t, e, s) {
1618
+ if (t !== "confirm") {
1619
+ s();
1620
+ return;
1621
+ }
1622
+ e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, _({ ids: this.selectedRowKeys.join(",") }).then((i) => {
1623
+ s(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, i.success ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + i.message), this.handleOk();
1624
+ });
1625
+ },
1626
+ editForm(t) {
1627
+ this.openManage = !0, this.selItemData = t, this.$nextTick(() => {
1628
+ setTimeout(() => {
1629
+ this.$refs.listConfig.init(t);
1630
+ }, 0);
1631
+ });
1632
+ },
1633
+ add() {
1634
+ this.selItemData = {}, this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
1635
+ },
1636
+ edit(t) {
1637
+ if (t) {
1638
+ this.selItemData = t, this.transKey = "gd.btn.edit", this.$refs.editForm.open(t);
1639
+ return;
1640
+ }
1641
+ if (this.selectedRowKeys.length === 0) {
1642
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
1643
+ return;
1644
+ }
1645
+ if (this.selectedRowKeys.length > 1) {
1646
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
1647
+ return;
1648
+ }
1649
+ this.selItemData = this.selectedRows[0], this.transKey = "gd.btn.edit", this.$refs.editForm.open(this.selectedRows[0]);
1650
+ },
1651
+ sbumit({ data: t, record: e, btn: s }, i, n) {
1652
+ this.formLoading = !0, (e ? w : y)(t).then((l) => {
1653
+ l.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), n(), Object.assign(this.selItemData, t), this.handleOk()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + l.message), this.formLoading = !1;
1654
+ });
1655
+ },
1656
+ handleOk() {
1657
+ this.$refs.table.refresh(), this.openManage && this.$refs.listConfig.init(this.selItemData);
1658
+ },
1659
+ refresh() {
1660
+ this.$refs.table.refresh();
1661
+ },
1662
+ back() {
1663
+ this.openManage = !1;
1664
+ },
1665
+ onSelectChange(t, e) {
1666
+ this.selectedRowKeys = t, this.selectedRows = e;
1667
+ },
1668
+ doEvent(t) {
1669
+ let e = t.item.functionName;
1670
+ this[e] && this[e]();
1671
+ },
1672
+ functionNameFk(t) {
1673
+ let e = t.item.functionName;
1674
+ this[e] && this[e](this.selItemData);
1675
+ }
1676
+ }
1677
+ };
1678
+ var he = function() {
1679
+ var e = this, s = e._self._c;
1680
+ return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list", style: e.styled }, [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
1681
+ return [s("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })];
1682
+ }, proxy: !0 }, { key: "name", fn: function({ column: i, row: n }) {
1683
+ return [s("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" }, on: { click: e.editForm } })];
1684
+ } }]) })], 1), s("ListConfig", { ref: "listConfig", attrs: { height: e.height }, on: { functionName: e.functionNameFk } }), s("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", loading: e.formLoading, transKey: e.transKey, buttons: e.formButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode, inline: !1, width: "700px" }, on: { sbumit: e.sbumit } })], 1);
1685
+ }, ge = [], me = /* @__PURE__ */ a(
1686
+ fe,
1687
+ he,
1688
+ ge,
1689
+ !1,
1690
+ null,
1691
+ "6247adac",
1692
+ null,
1693
+ null
1694
+ );
1695
+ const c = me.exports;
1696
+ c.install = function(t) {
1697
+ t.component(c.name, c);
1698
+ };
1699
+ export {
1700
+ ye as A,
1701
+ _e as B,
1702
+ Fe as C,
1703
+ Ke as D,
1704
+ Ee as E,
1705
+ be as F,
1706
+ De as G,
1707
+ Le as H,
1708
+ Se as I,
1709
+ Ne as J,
1710
+ Be as K,
1711
+ Me as L,
1712
+ xe as M,
1713
+ ke as N,
1714
+ Re as O,
1715
+ Ce as P,
1716
+ Pe as Q,
1717
+ Oe as R,
1718
+ c as S,
1719
+ tt as a,
1720
+ nt as b,
1721
+ it as c,
1722
+ et as d,
1723
+ at as e,
1724
+ Ze as f,
1725
+ b as g,
1726
+ Ye as h,
1727
+ Qe as i,
1728
+ Ue as j,
1729
+ ve as k,
1730
+ we as l,
1731
+ Je as m,
1732
+ Xe as n,
1733
+ We as o,
1734
+ Ge as p,
1735
+ je as q,
1736
+ qe as r,
1737
+ st as s,
1738
+ Ae as t,
1739
+ He as u,
1740
+ Te as v,
1741
+ $e as w,
1742
+ Ie as x,
1743
+ ze as y,
1744
+ Ve as z
1745
+ };