gds-plus-design-vue 1.1.64 → 1.1.72

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 +80400 -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.67475aac.js +1 -0
  50. package/lib/system.promptmanagement.e9976712.mjs +805 -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.48ff0b03.mjs +665 -0
  56. package/lib/system.translation.8f7e4144.js +1 -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,805 @@
1
+ import { m as d, c as m, n as c } from "./chartbi.48631362.mjs";
2
+ import { t as p } from "./messages.7e85146d.mjs";
3
+ function K(a) {
4
+ return window.axios({
5
+ url: "/sysTranslation/page",
6
+ method: "get",
7
+ params: a
8
+ });
9
+ }
10
+ function B(a) {
11
+ return window.axios({
12
+ url: "/sysTranslation/add",
13
+ method: "post",
14
+ data: a
15
+ });
16
+ }
17
+ function h() {
18
+ return window.axios({
19
+ url: "/sysTranslation/GetAllLanguage",
20
+ method: "get"
21
+ });
22
+ }
23
+ function M(a) {
24
+ return window.axios({
25
+ url: "/sysTranslation/edit",
26
+ method: "post",
27
+ data: a
28
+ });
29
+ }
30
+ function R(a) {
31
+ return window.axios({
32
+ url: "/sysTranslation/delete",
33
+ method: "post",
34
+ params: a
35
+ });
36
+ }
37
+ function q(a) {
38
+ return window.axios({
39
+ url: "/sysTranslation/DeleteByName",
40
+ method: "post",
41
+ params: a
42
+ });
43
+ }
44
+ function N(a) {
45
+ return window.axios({
46
+ url: "/sysTranslation/details",
47
+ method: "get",
48
+ params: a
49
+ });
50
+ }
51
+ function O() {
52
+ return window.axios({
53
+ url: "/sysTranslation/cacheTranslation",
54
+ method: "get"
55
+ });
56
+ }
57
+ function P() {
58
+ return window.axios({
59
+ url: "/develop/DeployTranslation",
60
+ method: "get"
61
+ });
62
+ }
63
+ function E(a) {
64
+ return window.axios({
65
+ url: "/sysTranslation/InitTranslation",
66
+ method: "post",
67
+ data: a
68
+ });
69
+ }
70
+ function H(a) {
71
+ return window.axios({
72
+ url: "/sysTranslation/ImportTranslation",
73
+ method: "post",
74
+ data: a
75
+ });
76
+ }
77
+ function z(a) {
78
+ return window.axios({
79
+ url: "/sysTranslation/ExportTranslation",
80
+ method: "get",
81
+ params: a,
82
+ responseType: "blob"
83
+ });
84
+ }
85
+ function g(a) {
86
+ return window.axios({
87
+ url: "/sysHintcatalog/add",
88
+ method: "post",
89
+ data: a
90
+ });
91
+ }
92
+ function u(a) {
93
+ return window.axios({
94
+ url: "/sysHintcatalog/edit",
95
+ method: "post",
96
+ data: a
97
+ });
98
+ }
99
+ function y(a) {
100
+ return window.axios({
101
+ url: "/sysHintcatalog/detail",
102
+ method: "get",
103
+ params: a
104
+ });
105
+ }
106
+ function f(a) {
107
+ return window.axios({
108
+ url: "/sysHintcatalog/delete",
109
+ method: "post",
110
+ data: a
111
+ });
112
+ }
113
+ function w(a) {
114
+ return window.axios({
115
+ url: "/sysHintcatalog/page",
116
+ method: "get",
117
+ params: a
118
+ });
119
+ }
120
+ const b = {
121
+ data() {
122
+ return {
123
+ tableColumns: [
124
+ {
125
+ type: "selection",
126
+ width: "60",
127
+ fixed: !0
128
+ },
129
+ {
130
+ transKey: "gd.promptManagement.hintInfo",
131
+ prop: "name",
132
+ label: "\u63D0\u793A\u4FE1\u606F",
133
+ width: "200",
134
+ type: "slot",
135
+ slotType: "name",
136
+ align: "left",
137
+ fixed: !0,
138
+ showOverflowTooltip: !0
139
+ },
140
+ {
141
+ transKey: "gd.promptManagement.hintCode",
142
+ prop: "hintcode",
143
+ width: "160",
144
+ label: "\u63D0\u793A\u7F16\u7801",
145
+ align: "left",
146
+ showOverflowTooltip: !0
147
+ },
148
+ {
149
+ transKey: "gd.promptManagement.hintSeverity",
150
+ prop: "hintseverity",
151
+ width: "160",
152
+ label: "\u4E25\u91CD\u7A0B\u5EA6",
153
+ type: "slot",
154
+ slotType: "hintseverity",
155
+ align: "left"
156
+ },
157
+ {
158
+ transKey: "gd.promptManagement.systemCode",
159
+ prop: "systemcode",
160
+ width: "160",
161
+ label: "\u6240\u5C5E\u7CFB\u7EDF",
162
+ type: "slot",
163
+ slotType: "systemcode",
164
+ align: "left"
165
+ },
166
+ {
167
+ transKey: "gd.promptManagement.typeCode",
168
+ prop: "typecode",
169
+ width: "160",
170
+ label: "\u6240\u5C5E\u5206\u7C7B",
171
+ type: "slot",
172
+ slotType: "typecode",
173
+ align: "left"
174
+ },
175
+ {
176
+ transKey: "gd.promptManagement.moduleCode",
177
+ prop: "modulecode",
178
+ width: "160",
179
+ label: "\u6240\u5C5E\u6A21\u5757",
180
+ type: "slot",
181
+ slotType: "modulecode",
182
+ align: "left"
183
+ },
184
+ {
185
+ transKey: "gd.promptManagement.hintDescription",
186
+ prop: "hintdescription",
187
+ width: "160",
188
+ label: "\u63D0\u793A\u63CF\u8FF0",
189
+ align: "left"
190
+ },
191
+ {
192
+ transKey: "gd.promptManagement.parameters",
193
+ prop: "parameters",
194
+ width: "160",
195
+ label: "\u53C2\u6570",
196
+ align: "left"
197
+ },
198
+ {
199
+ transKey: "gd.msg.sendRecord.updatedTime",
200
+ prop: "updatedtime",
201
+ width: "160",
202
+ label: "\u66F4\u65B0\u65F6\u95F4",
203
+ align: "center"
204
+ },
205
+ {
206
+ transKey: "gd.msg.sendRecord.createdTime",
207
+ prop: "createdtime",
208
+ width: "160",
209
+ label: "\u521B\u5EFA\u65F6\u95F4",
210
+ align: "center"
211
+ }
212
+ ],
213
+ formColumns: [],
214
+ tableButtons: [
215
+ {
216
+ displayName: "\u65B0\u589E",
217
+ functionName: "add",
218
+ show: !0,
219
+ transKey: "gd.btn.add",
220
+ icon: "el-icon-plus",
221
+ name: "promptManagement:add"
222
+ },
223
+ {
224
+ displayName: "\u7F16\u8F91",
225
+ functionName: "edit",
226
+ show: !0,
227
+ transKey: "gd.btn.edit",
228
+ icon: "el-icon-edit",
229
+ name: "promptManagement:edit"
230
+ },
231
+ {
232
+ displayName: "\u5220\u9664",
233
+ functionName: "del",
234
+ show: !0,
235
+ transKey: "gd.btn.del",
236
+ icon: "el-icon-delete",
237
+ btnType: "danger",
238
+ name: "promptManagement:delete"
239
+ }
240
+ ],
241
+ formButtons: [],
242
+ tableQueries: [
243
+ {
244
+ transKey: "gd.promptManagement.hintInfo",
245
+ prop: "name",
246
+ label: "\u63D0\u793A\u4FE1\u606F",
247
+ effectType: "input",
248
+ rules: [],
249
+ fkData: []
250
+ },
251
+ {
252
+ transKey: "gd.promptManagement.hintCode",
253
+ prop: "hintcode",
254
+ label: "\u63D0\u793A\u7F16\u7801",
255
+ effectType: "input",
256
+ rules: [],
257
+ fkData: []
258
+ },
259
+ {
260
+ transKey: "gd.promptManagement.hintSeverity",
261
+ prop: "hintseverity",
262
+ label: "\u4E25\u91CD\u7A0B\u5EA6",
263
+ effectType: "select",
264
+ dictTypeCode: "severity_level",
265
+ rules: [],
266
+ fkData: []
267
+ },
268
+ {
269
+ transKey: "gd.promptManagement.systemCode",
270
+ prop: "systemcode",
271
+ label: "\u6240\u5C5E\u7CFB\u7EDF",
272
+ effectType: "select",
273
+ dictTypeCode: "source_system",
274
+ rules: [],
275
+ fkData: []
276
+ },
277
+ {
278
+ transKey: "gd.promptManagement.typeCode",
279
+ prop: "typecode",
280
+ label: "\u6240\u5C5E\u5206\u7C7B",
281
+ effectType: "select",
282
+ dictTypeCode: "source_category",
283
+ rules: [],
284
+ fkData: []
285
+ },
286
+ {
287
+ transKey: "gd.promptManagement.moduleCode",
288
+ prop: "modulecode",
289
+ label: "\u6240\u5C5E\u6A21\u5757",
290
+ effectType: "select",
291
+ dictTypeCode: "source_module",
292
+ rules: [],
293
+ fkData: []
294
+ }
295
+ ]
296
+ };
297
+ }
298
+ };
299
+ const _ = {
300
+ data() {
301
+ return {
302
+ confirmLoading: !0,
303
+ title: "",
304
+ sysViewButtons: [
305
+ {
306
+ displayName: "\u786E\u5B9A",
307
+ functionName: "handleSubmit",
308
+ show: !0,
309
+ transKey: "gd.btn.confirm",
310
+ icon: "el-icon-document-checked"
311
+ }
312
+ ],
313
+ type: 1,
314
+ fullScreen: !1,
315
+ width: "1000px",
316
+ ruleFormData: {
317
+ name: "",
318
+ hintseverity: "",
319
+ hintcode: "",
320
+ systemcode: "",
321
+ typecode: "",
322
+ modulecode: "",
323
+ parameters: "",
324
+ hintdescription: "",
325
+ langs: ""
326
+ },
327
+ rules: {
328
+ hintcode: [
329
+ {
330
+ required: !0,
331
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
332
+ trigger: "change"
333
+ }
334
+ ],
335
+ name: [
336
+ {
337
+ required: !0,
338
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
339
+ trigger: "change"
340
+ }
341
+ ],
342
+ hintseverity: [
343
+ {
344
+ required: !0,
345
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
346
+ trigger: "change"
347
+ }
348
+ ],
349
+ systemcode: [
350
+ {
351
+ required: !0,
352
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
353
+ trigger: "change"
354
+ }
355
+ ],
356
+ typecode: [
357
+ {
358
+ required: !0,
359
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
360
+ trigger: "change"
361
+ }
362
+ ],
363
+ modulecode: [
364
+ {
365
+ required: !0,
366
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
367
+ trigger: "change"
368
+ }
369
+ ]
370
+ },
371
+ visible: !1,
372
+ addData: null,
373
+ viewId: "0",
374
+ translationDetail: { name: "", langs: [] },
375
+ sourcecategory: [],
376
+ sourcemodule: []
377
+ };
378
+ },
379
+ components: {},
380
+ computed: {
381
+ modalStyle() {
382
+ return this.fullScreen ? {
383
+ width: "100%",
384
+ dialogStyle: {
385
+ top: "0px"
386
+ }
387
+ } : {
388
+ width: this.width,
389
+ dialogStyle: {
390
+ top: "30px"
391
+ }
392
+ };
393
+ },
394
+ ...d(["screenHeight", "tableLists"])
395
+ },
396
+ methods: {
397
+ toggleFullscreen() {
398
+ this.fullScreen = !this.fullScreen;
399
+ },
400
+ copyData() {
401
+ m(this.ruleFormData.hintcode, () => {
402
+ this.$message.success(this.$i18nt("gd.https.beenCopied", "\u6570\u636E\u5DF2\u590D\u5236"));
403
+ });
404
+ },
405
+ changeText(a) {
406
+ let e = [...this.translationDetail.langs];
407
+ e.map((t) => (t.description = t.languagecode.replace(/-/g, "_") === "zh_CN" ? a : t.description, t)), this.translationDetail.langs = [...e];
408
+ },
409
+ changeLanguage(a, e) {
410
+ e.languagecode.replace(/-/g, "_") === "zh_CN" && (this.ruleFormData.name = a);
411
+ },
412
+ getAllLanguage() {
413
+ this.confirmLoading = !0, h().then((a) => {
414
+ let e = a.data;
415
+ this.addData && e.map((t) => {
416
+ let s = this.addData.langs.filter((n) => n.code == t.languagecode)[0];
417
+ return t.languagecode = t.languagecode.replace(/-/g, "_"), t.description = s === void 0 ? "" : s.val, t;
418
+ }), this.translationDetail.langs = e, this.confirmLoading = !1;
419
+ });
420
+ },
421
+ getDictionary(a) {
422
+ return this.$options.filters.dictData(a);
423
+ },
424
+ getsourcecategory(a) {
425
+ this.sourcecategory = this.$options.filters.dictData("source_category").filter(
426
+ (e) => a.split(",").includes(e.name)
427
+ );
428
+ },
429
+ getsourcemodule(a) {
430
+ this.sourcemodule = this.$options.filters.dictData("source_module").filter((e) => a.split(",").includes(e.name));
431
+ },
432
+ changecode(a) {
433
+ let e = this.getDictionary("source_system"), t = "";
434
+ e.forEach((s) => {
435
+ s.code == a && (t = s.remark);
436
+ }), this.sourcecategory = [], this.sourcemodule = [], this.ruleFormData.typecode = "", this.ruleFormData.modulecode = "", this.getsourcecategory(t);
437
+ },
438
+ changetypecode(a) {
439
+ let e = "";
440
+ this.sourcecategory.forEach((t) => {
441
+ t.code == a && (e = t.remark);
442
+ }), this.getsourcemodule(e);
443
+ },
444
+ init(a) {
445
+ this.fullScreen = !1, this.confirmLoading = !1, this.visible = !0, this.type = a ? 2 : 1, this.title = a ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add"), this.sysViewButtons = [
446
+ {
447
+ displayName: "\u786E\u5B9A",
448
+ functionName: "handleSubmit",
449
+ show: !0,
450
+ transKey: "gd.btn.confirm",
451
+ icon: "el-icon-document-checked"
452
+ }
453
+ ], this.getAllLanguage(), a && this.$nextTick(() => {
454
+ setTimeout(() => {
455
+ this.sysTranslationDetail(a.id);
456
+ });
457
+ });
458
+ },
459
+ sysTranslationDetail(a) {
460
+ this.confirmLoading = !0, y({
461
+ id: a
462
+ }).then((e) => {
463
+ this.ruleFormData.name = e.data.name, this.ruleFormData.id = e.data.id, this.ruleFormData.hintseverity = String(e.data.hintseverity), this.ruleFormData.hintcode = e.data.hintcode, this.ruleFormData.hintdescription = e.data.hintdescription, this.ruleFormData.parameters = e.data.parameters, this.ruleFormData.systemcode = e.data.systemcode, this.changecode(this.ruleFormData.systemcode), this.ruleFormData.typecode = e.data.typecode, this.changetypecode(this.ruleFormData.typecode), this.ruleFormData.modulecode = e.data.modulecode;
464
+ let t = e.data && e.data.langs ? e.data.langs : [];
465
+ t.map((s) => (s.languagecode = s.languagecode.replace(/-/g, "_"), s)), this.translationDetail = Object.assign(e.data, { langs: t }), this.confirmLoading = !1;
466
+ });
467
+ },
468
+ add(a) {
469
+ this.confirmLoading = !0, delete a.id, g(a).then((e) => {
470
+ e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc")), this.$emit("ok", a), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail") + e.message);
471
+ }).finally((e) => {
472
+ this.confirmLoading = !1;
473
+ });
474
+ },
475
+ edit(a) {
476
+ this.confirmLoading = !0, delete a.basicRecordTable, delete a.matchingRecordTable, u(a).then((e) => {
477
+ e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc")), this.$emit("ok", a), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail") + e.message);
478
+ }).finally((e) => {
479
+ this.confirmLoading = !1;
480
+ });
481
+ },
482
+ handleSubmit() {
483
+ this.$refs.ruleForm.validate((a) => {
484
+ if (a) {
485
+ const e = {
486
+ ...this.ruleFormData,
487
+ langs: this.translationDetail.langs || [],
488
+ name: this.ruleFormData.name || this.translationDetail.name
489
+ };
490
+ this.type == 1 ? this.add(e) : this.edit(e);
491
+ }
492
+ });
493
+ },
494
+ handleCancel() {
495
+ this.visible = !1, this.confirmLoading = !1, this.$refs.ruleForm.resetFields(), this.ruleFormData = {
496
+ name: "",
497
+ hintseverity: "",
498
+ hintcode: "",
499
+ systemcode: "",
500
+ typecode: "",
501
+ modulecode: "",
502
+ parameters: "",
503
+ hintdescription: "",
504
+ langs: ""
505
+ }, this.sourcecategory = [], this.sourcemodule = [], this.addData = null;
506
+ },
507
+ doEvent(a) {
508
+ let e = a.item.functionName;
509
+ this[e]();
510
+ }
511
+ }
512
+ };
513
+ var $ = function() {
514
+ var e = this, t = e._self._c;
515
+ return t("el-dialog", { class: e.fullScreen ? "gd-dialog" : "gd-dialog gd-dialog-fangda", attrs: { fullscreen: e.fullScreen, width: e.width, visible: e.visible, footer: null, top: "80px", "show-close": !1 }, on: { "update:visible": function(s) {
516
+ e.visible = s;
517
+ }, closed: e.handleCancel } }, [t("gd-modal-title", { attrs: { slot: "title", title: `${e.title}${e.$i18nt("gd.promptManagement.hintInfo", "\u63D0\u793A\u4FE1\u606F")}`, fullscreen: e.fullScreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, closed: "handleCancel", showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [t("div", { staticClass: "setting-navs", class: e.fullScreen ? "modal-bodyq" : "modal-body" }, [t("el-form", { ref: "ruleForm", attrs: { model: e.ruleFormData, rules: e.rules, "label-width": "120px" }, nativeOn: { submit: function(s) {
518
+ s.preventDefault();
519
+ } } }, [t("el-row", { attrs: { gutter: 24 } }, [e.type == 2 ? t("el-col", { staticStyle: { display: "flex", "align-items": "center" }, attrs: { span: 12 } }, [t("div", { staticClass: "copy-flex" }, [t("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: e.$i18nt("gd.promptManagement.hintCode", "\u63D0\u793A\u7F16\u7801"), prop: "hintcode" } }, [t("el-input", { attrs: { disabled: e.type == 2, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.hintcode, callback: function(s) {
520
+ e.$set(e.ruleFormData, "hintcode", s);
521
+ }, expression: "ruleFormData['hintcode']" } })], 1), t("el-button", { staticClass: "active-color", attrs: { type: "text" }, on: { click: e.copyData } }, [e._v(" " + e._s(e.$i18nt("gd.btn.copy", "\u590D\u5236")) + " ")])], 1)]) : e._e(), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.promptManagement.hintSeverity", "\u4E25\u91CD\u7A0B\u5EA6"), prop: "hintseverity" } }, [t("el-select", { ref: "refView", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "" }, model: { value: e.ruleFormData.hintseverity, callback: function(s) {
522
+ e.$set(e.ruleFormData, "hintseverity", s);
523
+ }, expression: "ruleFormData['hintseverity']" } }, e._l(e.getDictionary("severity_level"), function(s, n) {
524
+ return t("el-option", { key: n, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
525
+ }), 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 24 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.promptManagement.hintInfo", "\u63D0\u793A\u4FE1\u606F"), prop: "name" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, on: { input: e.changeText }, model: { value: e.ruleFormData.name, callback: function(s) {
526
+ e.$set(e.ruleFormData, "name", s);
527
+ }, expression: "ruleFormData['name']" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 8 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.promptManagement.systemCode", "\u6240\u5C5E\u7CFB\u7EDF"), prop: "systemcode" } }, [t("el-select", { ref: "refView", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "" }, on: { change: e.changecode }, model: { value: e.ruleFormData.systemcode, callback: function(s) {
528
+ e.$set(e.ruleFormData, "systemcode", s);
529
+ }, expression: "ruleFormData['systemcode']" } }, e._l(e.getDictionary("source_system"), function(s, n) {
530
+ return t("el-option", { key: n, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
531
+ }), 1)], 1)], 1), t("el-col", { attrs: { span: 8 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.promptManagement.typeCode", "\u6240\u5C5E\u5206\u7C7B"), prop: "typecode" } }, [t("el-select", { ref: "refView", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: !e.ruleFormData.systemcode }, on: { change: e.changetypecode }, model: { value: e.ruleFormData.typecode, callback: function(s) {
532
+ e.$set(e.ruleFormData, "typecode", s);
533
+ }, expression: "ruleFormData['typecode']" } }, e._l(e.sourcecategory, function(s, n) {
534
+ return t("el-option", { key: n, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
535
+ }), 1)], 1)], 1), t("el-col", { attrs: { span: 8 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.promptManagement.moduleCode", "\u6240\u5C5E\u6A21\u5757"), prop: "modulecode" } }, [t("el-select", { ref: "refView", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: !e.ruleFormData.typecode }, model: { value: e.ruleFormData.modulecode, callback: function(s) {
536
+ e.$set(e.ruleFormData, "modulecode", s);
537
+ }, expression: "ruleFormData['modulecode']" } }, e._l(e.sourcemodule, function(s, n) {
538
+ return t("el-option", { key: n, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
539
+ }), 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 24 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.promptManagement.parameters", "\u53C2\u6570"), prop: "parameters" } }, [t("el-input", { attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), autosize: { minRows: 3, maxRows: 20 } }, model: { value: e.ruleFormData.parameters, callback: function(s) {
540
+ e.$set(e.ruleFormData, "parameters", s);
541
+ }, expression: "ruleFormData['parameters']" } })], 1)], 1), t("el-col", { attrs: { span: 24 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "0px !important" }, attrs: { label: e.$i18nt("gd.promptManagement.hintDescription", "\u63D0\u793A\u63CF\u8FF0") } }, [t("el-input", { attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), autosize: { minRows: 3, maxRows: 20 } }, model: { value: e.ruleFormData.hintdescription, callback: function(s) {
542
+ e.$set(e.ruleFormData, "hintdescription", s);
543
+ }, expression: "ruleFormData['hintdescription']" } })], 1)], 1)], 1), t("el-divider", { attrs: { dashed: "" } }), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 24 } }, [e._l(this.translationDetail.langs, function(s) {
544
+ return [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: s.languagename } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), type: "textarea", autosize: "" }, on: { input: function(n) {
545
+ return e.changeLanguage(n, s);
546
+ } }, model: { value: s.description, callback: function(n) {
547
+ e.$set(s, "description", n);
548
+ }, expression: "item.description" } })], 1)];
549
+ })], 2)], 1)], 1)], 1)])], 1);
550
+ }, v = [], D = /* @__PURE__ */ c(
551
+ _,
552
+ $,
553
+ v,
554
+ !1,
555
+ null,
556
+ "64c01572",
557
+ null,
558
+ null
559
+ );
560
+ const T = D.exports;
561
+ const C = {
562
+ props: {
563
+ height: {
564
+ type: Number,
565
+ default: 100
566
+ }
567
+ },
568
+ name: "GdPromptManagement",
569
+ mixins: [p, b],
570
+ components: {
571
+ editForm: T
572
+ },
573
+ data() {
574
+ return {
575
+ selectedRowKeys: [],
576
+ selectedRows: [],
577
+ disableBtn: [],
578
+ transKey: "gd.promptManagement.checkConfigurationRetryRule",
579
+ formLoading: !1,
580
+ currentNode: null,
581
+ loadData: (a) => w(Object.assign(a, this.getQueryParam)).then((e) => e.data),
582
+ record: {},
583
+ queryParam: {}
584
+ };
585
+ },
586
+ computed: {
587
+ getTableLists() {
588
+ let a = [...this.tableLists];
589
+ return a.forEach((e, t) => {
590
+ a[t].name = e.busname, a[t].code = e.id;
591
+ }), a;
592
+ },
593
+ getTableQueries() {
594
+ return this.tableQueries.forEach((a, e) => {
595
+ }), this.tableQueries;
596
+ },
597
+ getHeight() {
598
+ return this.height;
599
+ },
600
+ getTableButtons() {
601
+ return this.tableButtons.filter((a) => (a.show = !this.disableBtn.includes(a.displayName), !0));
602
+ },
603
+ getQueryParam() {
604
+ let a = /* @__PURE__ */ new Map();
605
+ for (let e in this.queryParam)
606
+ a.set(e, this.queryParam[e]);
607
+ return Object.fromEntries(a);
608
+ },
609
+ ...d(["tablePageSize", "tableSize", "labelPosition", "formMode", "tableLists"])
610
+ },
611
+ methods: {
612
+ onSelectChange(a, e) {
613
+ if (this.selectedRows = e, this.selectedRowKeys = a, a.length === 0) {
614
+ this.disableBtn = [];
615
+ return;
616
+ }
617
+ },
618
+ query() {
619
+ this.$refs.table.refresh(!0);
620
+ },
621
+ refresh() {
622
+ this.$refs.table.refresh();
623
+ },
624
+ edit() {
625
+ if (this.selectedRowKeys.length === 0) {
626
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
627
+ return;
628
+ }
629
+ if (this.selectedRowKeys.length > 1) {
630
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
631
+ return;
632
+ }
633
+ this.editForms(this.selectedRows[0]);
634
+ },
635
+ editForms(a) {
636
+ this.$refs.editForm.init(a);
637
+ },
638
+ saveQueries(a) {
639
+ this.queryParam = { ...a }, this.refresh();
640
+ },
641
+ add() {
642
+ this.$refs.editForm.init(null);
643
+ },
644
+ del() {
645
+ if (this.selectedRowKeys.length === 0) {
646
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
647
+ return;
648
+ }
649
+ if (this.selectedRowKeys.length > 1) {
650
+ this.$message.warning(this.$i18nt("gd.https.readTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E!"));
651
+ return;
652
+ }
653
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
654
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
655
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
656
+ showClose: !1,
657
+ confirmButtonLoading: !1,
658
+ cancelButtonLoading: !1,
659
+ closeOnClickModal: !1,
660
+ type: "warning",
661
+ confirmButtonClass: "el-button--danger",
662
+ customClass: "custom-alert",
663
+ callback: () => {
664
+ },
665
+ beforeClose: (a, e, t) => {
666
+ this.delHand(a, e, t);
667
+ }
668
+ });
669
+ },
670
+ delHand(a, e, t) {
671
+ if (a !== "confirm") {
672
+ t();
673
+ return;
674
+ }
675
+ let s = [], n = f({
676
+ id: this.selectedRowKeys.join(",")
677
+ }).then((i) => i);
678
+ s.push(n), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((i) => {
679
+ e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, t();
680
+ const o = i.filter((r) => !r.success);
681
+ o.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + o[0].message), this.refresh();
682
+ });
683
+ },
684
+ doEvent(a) {
685
+ let e = a.item.functionName;
686
+ this[e] && this[e]();
687
+ },
688
+ handleOk() {
689
+ this.$refs.table.refresh();
690
+ },
691
+ dictSwitch(a, e) {
692
+ let t = this.$options.filters.dictData(e).filter((s) => s.code == a)[0];
693
+ return t != null && t.colour ? t.colour : null;
694
+ },
695
+ enable() {
696
+ if (this.selectedRowKeys.length === 0) {
697
+ this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
698
+ return;
699
+ }
700
+ if (this.selectedRowKeys.length > 1) {
701
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
702
+ return;
703
+ }
704
+ this.editStateCodes({ row: this.selectedRows[0] });
705
+ },
706
+ deactivated() {
707
+ if (this.selectedRowKeys.length === 0) {
708
+ this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
709
+ return;
710
+ }
711
+ if (this.selectedRowKeys.length > 1) {
712
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
713
+ return;
714
+ }
715
+ this.editStateCodes({ row: this.selectedRows[0] });
716
+ },
717
+ editStateCodes({ column: a, row: e }) {
718
+ if (e.dict_type == 1) {
719
+ this.$message.error(this.$i18nt("gd.https.operableNoTip", "\u4E0D\u53EF\u64CD\u4F5C!"));
720
+ return;
721
+ }
722
+ const t = e.statecodes != 1 ? this.$i18nt("gd.https.enableContent", "\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?") : this.$i18nt("gd.https.deactivateContent", "\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"), s = e.statecodes != 1 ? this.$i18nt("gd.https.enableOk", "\u786E\u8BA4\u505C\u7528") : this.$i18nt("gd.https.deactivateOk", "\u786E\u8BA4\u542F\u7528");
723
+ this.$confirm(t, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
724
+ confirmButtonText: s,
725
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
726
+ showClose: !1,
727
+ confirmButtonLoading: !1,
728
+ cancelButtonLoading: !1,
729
+ closeOnClickModal: !1,
730
+ type: "warning",
731
+ confirmButtonClass: "el-button--danger",
732
+ customClass: "custom-alert",
733
+ callback: () => {
734
+ },
735
+ beforeClose: (n, i, o) => {
736
+ if (n !== "confirm") {
737
+ o();
738
+ return;
739
+ }
740
+ i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, u({ id: e.id, stateCodes: e.statecodes == 1 ? 0 : 1 }).then((r) => {
741
+ o(), i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.handleOk()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message);
742
+ });
743
+ }
744
+ });
745
+ }
746
+ }
747
+ };
748
+ var x = function() {
749
+ var e = this, t = e._self._c;
750
+ return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, filtering: !0, height: e.getHeight }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: s, row: n }) {
751
+ return [t("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" }, on: { click: e.editForms } })];
752
+ } }, { key: "createdtime", fn: function({ column: s, row: n }) {
753
+ return [t("gd-tooltip", { attrs: { rowKey: "createdtime", row: n } })];
754
+ } }, { key: "updatedtime", fn: function({ column: s, row: n }) {
755
+ return [t("gd-tooltip", { attrs: { rowKey: "updatedtime", row: n } })];
756
+ } }, { key: "hintseverity", fn: function(s) {
757
+ return [e.dictSwitch(s.row.hintseverity, "severity_level") ? t("el-tag", { attrs: { color: e.dictSwitch(s.row.hintseverity, "severity_level") } }, [e._v(" " + e._s(e._f("dictType")("severity_level", s.row.hintseverity)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("severity_level", s.row.hintseverity)))])];
758
+ } }, { key: "systemcode", fn: function(s) {
759
+ return [e.dictSwitch(s.row.systemcode, "source_system") ? t("el-tag", { attrs: { color: e.dictSwitch(s.row.systemcode, "source_system") } }, [e._v(" " + e._s(e._f("dictType")("source_system", s.row.systemcode)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("source_system", s.row.systemcode)))])];
760
+ } }, { key: "typecode", fn: function(s) {
761
+ return [e.dictSwitch(s.row.typecode, "source_category") ? t("el-tag", { attrs: { color: e.dictSwitch(s.row.typecode, "source_category") } }, [e._v(" " + e._s(e._f("dictType")("source_category", s.row.typecode)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("source_category", s.row.typecode)))])];
762
+ } }, { key: "modulecode", fn: function(s) {
763
+ return [e.dictSwitch(s.row.modulecode, "source_module") ? t("el-tag", { attrs: { color: e.dictSwitch(s.row.modulecode, "source_module") } }, [e._v(" " + e._s(e._f("dictType")("source_module", s.row.modulecode)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("source_module", s.row.modulecode)))])];
764
+ } }, { key: "operator", fn: function() {
765
+ return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl", staticStyle: { "margin-right": "12px" } }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.promptManagement.hintCode", "\u63D0\u793A\u7F16\u7801"), clearable: "" }, nativeOn: { keyup: function(s) {
766
+ return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.query.apply(null, arguments);
767
+ } }, model: { value: e.queryParam.hintcode, callback: function(s) {
768
+ e.$set(e.queryParam, "hintcode", s);
769
+ }, expression: "queryParam.hintcode" } }), t("div", { staticClass: "table-operator-search", on: { click: e.query } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorl" }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.promptManagement.hintInfo", "\u63D0\u793A\u4FE1\u606F"), clearable: "" }, nativeOn: { keyup: function(s) {
770
+ return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.query.apply(null, arguments);
771
+ } }, model: { value: e.queryParam.name, callback: function(s) {
772
+ e.$set(e.queryParam, "name", s);
773
+ }, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.query } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } })], 1)])];
774
+ }, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: n }) {
775
+ return [t("gd-table-queries-field", { attrs: { columns: e.getTableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: n }, on: { save: e.saveQueries } })];
776
+ } }]) })], 1), t("editForm", { ref: "editForm", attrs: { table: e.record }, on: { ok: e.handleOk } })], 1);
777
+ }, k = [], F = /* @__PURE__ */ c(
778
+ C,
779
+ x,
780
+ k,
781
+ !1,
782
+ null,
783
+ "d79aa2f3",
784
+ null,
785
+ null
786
+ );
787
+ const l = F.exports;
788
+ l.install = function(a) {
789
+ a.component(l.name, l);
790
+ };
791
+ export {
792
+ h as G,
793
+ B as a,
794
+ M as b,
795
+ N as c,
796
+ H as d,
797
+ P as e,
798
+ O as f,
799
+ z as g,
800
+ R as h,
801
+ E as i,
802
+ q as j,
803
+ l as k,
804
+ K as s
805
+ };