gds-plus-design-vue 1.1.4 → 1.1.7

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 (68) 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 +80300 -99
  6. package/lib/main.60763eae.js +1 -0
  7. package/lib/main.f2b00b70.mjs +939 -0
  8. package/lib/messages.083c4ede.js +9 -0
  9. package/lib/messages.7e85146d.mjs +5802 -0
  10. package/lib/style.css +2 -2
  11. package/lib/system.account.65b2f7d4.js +216 -0
  12. package/lib/system.account.93b7df36.mjs +2536 -0
  13. package/lib/system.config.327aded6.js +1 -0
  14. package/lib/system.config.9c46f279.mjs +373 -0
  15. package/lib/system.datasource.4b0951ba.mjs +511 -0
  16. package/lib/system.datasource.8a0c7e0f.js +1 -0
  17. package/lib/system.dict.65f25e4e.mjs +996 -0
  18. package/lib/system.dict.72594c98.js +1 -0
  19. package/lib/system.duplicatechecking.0d47a5ca.js +1 -0
  20. package/lib/system.duplicatechecking.ad111272.mjs +2130 -0
  21. package/lib/system.email.54722948.js +41 -0
  22. package/lib/system.email.923697c6.mjs +7432 -0
  23. package/lib/system.fieldsecurity.7de4ee1d.mjs +1745 -0
  24. package/lib/system.fieldsecurity.d57edb47.js +1 -0
  25. package/lib/system.file.b3558a8b.js +1 -0
  26. package/lib/system.file.f152d4fe.mjs +489 -0
  27. package/lib/system.log.30e5157c.mjs +1450 -0
  28. package/lib/system.log.f243e7d0.js +1 -0
  29. package/lib/system.machine.325b256e.mjs +94 -0
  30. package/lib/system.machine.332fb31c.js +1 -0
  31. package/lib/system.notice.93c4691c.js +1 -0
  32. package/lib/system.notice.e0b84103.mjs +636 -0
  33. package/lib/system.noticereceived.a28ba643.js +1 -0
  34. package/lib/system.noticereceived.c0a19336.mjs +158 -0
  35. package/lib/system.onlineuser.90c08aef.mjs +184 -0
  36. package/lib/system.onlineuser.e0c261ed.js +1 -0
  37. package/lib/system.org.65452f67.js +1 -0
  38. package/lib/system.org.b8d59e5d.mjs +421 -0
  39. package/lib/system.permissions.b8a5f79d.mjs +212 -0
  40. package/lib/system.permissions.c34f44a3.js +9 -0
  41. package/lib/system.plugin.07b3c38e.js +1 -0
  42. package/lib/system.plugin.4911a33d.mjs +946 -0
  43. package/lib/system.pos.6ed35c39.js +1 -0
  44. package/lib/system.pos.c274f13c.mjs +312 -0
  45. package/lib/system.promptmanagement.5a4930b1.js +1 -0
  46. package/lib/system.promptmanagement.fe8b0913.mjs +789 -0
  47. package/lib/system.role.ceb5ed2d.mjs +1509 -0
  48. package/lib/system.role.daedd959.js +1 -0
  49. package/lib/system.timers.69f1792a.mjs +3160 -0
  50. package/lib/system.timers.ef6b6796.js +38 -0
  51. package/lib/system.translation.6351f189.mjs +661 -0
  52. package/lib/system.translation.8905eb73.js +1 -0
  53. package/lib/system.user.12a4e490.mjs +1425 -0
  54. package/lib/system.user.d668538b.js +14 -0
  55. package/lib/system.useraffiliation.b8be03db.js +1 -0
  56. package/lib/system.useraffiliation.c272e688.mjs +1025 -0
  57. package/lib/system.webresource.5049d97b.js +1 -0
  58. package/lib/system.webresource.e9518d87.mjs +723 -0
  59. package/lib/system.welcome.3f1cce96.mjs +45 -0
  60. package/lib/system.welcome.b109df88.js +1 -0
  61. package/locale/en_US.js +213 -15
  62. package/locale/id_ID.js +212 -14
  63. package/locale/vi_VN.js +212 -14
  64. package/locale/zh_CN.js +222 -22
  65. package/package.json +105 -104
  66. package/lib/gd-initial.umd.js +0 -433
  67. package/lib/index.a0c53741.mjs +0 -146905
  68. package/lib/main.06db53a0.mjs +0 -919
@@ -0,0 +1,789 @@
1
+ import { m as d, c as m, n as c } from "./chartbi.48631362.mjs";
2
+ import { t as h } 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 p() {
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 N(a) {
38
+ return window.axios({
39
+ url: "/sysTranslation/DeleteByName",
40
+ method: "post",
41
+ params: a
42
+ });
43
+ }
44
+ function q(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 H(a) {
64
+ return window.axios({
65
+ url: "/sysTranslation/InitTranslation",
66
+ method: "post",
67
+ data: a
68
+ });
69
+ }
70
+ function E(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.hintCode",
245
+ prop: "hintcode",
246
+ label: "\u63D0\u793A\u7F16\u7801",
247
+ effectType: "input",
248
+ rules: [],
249
+ fkData: []
250
+ },
251
+ {
252
+ transKey: "gd.promptManagement.hintSeverity",
253
+ prop: "hintseverity",
254
+ label: "\u4E25\u91CD\u7A0B\u5EA6",
255
+ effectType: "select",
256
+ dictTypeCode: "severity_level",
257
+ rules: [],
258
+ fkData: []
259
+ },
260
+ {
261
+ transKey: "gd.promptManagement.systemCode",
262
+ prop: "systemcode",
263
+ label: "\u6240\u5C5E\u7CFB\u7EDF",
264
+ effectType: "select",
265
+ dictTypeCode: "source_system",
266
+ rules: [],
267
+ fkData: []
268
+ },
269
+ {
270
+ transKey: "gd.promptManagement.typeCode",
271
+ prop: "typecode",
272
+ label: "\u6240\u5C5E\u5206\u7C7B",
273
+ effectType: "select",
274
+ dictTypeCode: "source_category",
275
+ rules: [],
276
+ fkData: []
277
+ },
278
+ {
279
+ transKey: "gd.promptManagement.moduleCode",
280
+ prop: "modulecode",
281
+ label: "\u6240\u5C5E\u6A21\u5757",
282
+ effectType: "select",
283
+ dictTypeCode: "source_module",
284
+ rules: [],
285
+ fkData: []
286
+ }
287
+ ]
288
+ };
289
+ }
290
+ };
291
+ const _ = {
292
+ data() {
293
+ return {
294
+ confirmLoading: !0,
295
+ title: "",
296
+ sysViewButtons: [
297
+ {
298
+ displayName: "\u786E\u5B9A",
299
+ functionName: "handleSubmit",
300
+ show: !0,
301
+ transKey: "gd.btn.confirm",
302
+ icon: "el-icon-document-checked"
303
+ }
304
+ ],
305
+ type: 1,
306
+ fullScreen: !1,
307
+ width: "1000px",
308
+ ruleFormData: {
309
+ name: "",
310
+ hintseverity: "",
311
+ hintcode: "",
312
+ systemcode: "",
313
+ typecode: "",
314
+ modulecode: "",
315
+ parameters: "",
316
+ hintdescription: "",
317
+ langs: ""
318
+ },
319
+ rules: {
320
+ hintcode: [
321
+ {
322
+ required: !0,
323
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
324
+ trigger: "change"
325
+ }
326
+ ],
327
+ name: [
328
+ {
329
+ required: !0,
330
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
331
+ trigger: "change"
332
+ }
333
+ ],
334
+ hintseverity: [
335
+ {
336
+ required: !0,
337
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
338
+ trigger: "change"
339
+ }
340
+ ],
341
+ systemcode: [
342
+ {
343
+ required: !0,
344
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
345
+ trigger: "change"
346
+ }
347
+ ],
348
+ typecode: [
349
+ {
350
+ required: !0,
351
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
352
+ trigger: "change"
353
+ }
354
+ ],
355
+ modulecode: [
356
+ {
357
+ required: !0,
358
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
359
+ trigger: "change"
360
+ }
361
+ ]
362
+ },
363
+ visible: !1,
364
+ addData: null,
365
+ viewId: "0",
366
+ translationDetail: { name: "", langs: [] },
367
+ sourcecategory: [],
368
+ sourcemodule: []
369
+ };
370
+ },
371
+ components: {},
372
+ computed: {
373
+ modalStyle() {
374
+ return this.fullScreen ? {
375
+ width: "100%",
376
+ dialogStyle: {
377
+ top: "0px"
378
+ }
379
+ } : {
380
+ width: this.width,
381
+ dialogStyle: {
382
+ top: "30px"
383
+ }
384
+ };
385
+ },
386
+ ...d(["screenHeight", "tableLists"])
387
+ },
388
+ methods: {
389
+ toggleFullscreen() {
390
+ this.fullScreen = !this.fullScreen;
391
+ },
392
+ copyData() {
393
+ m(this.ruleFormData.hintcode, () => {
394
+ this.$message.success(this.$i18nt("gd.https.beenCopied", "\u6570\u636E\u5DF2\u590D\u5236"));
395
+ });
396
+ },
397
+ changeText(a) {
398
+ let e = [...this.translationDetail.langs];
399
+ e.map((t) => (t.description = t.languagecode.replace(/-/g, "_") === "zh_CN" ? a : t.description, t)), this.translationDetail.langs = [...e];
400
+ },
401
+ changeLanguage(a, e) {
402
+ e.languagecode.replace(/-/g, "_") === "zh_CN" && (this.ruleFormData.name = a);
403
+ },
404
+ getAllLanguage() {
405
+ this.confirmLoading = !0, p().then((a) => {
406
+ let e = a.data;
407
+ this.addData && e.map((t) => {
408
+ let s = this.addData.langs.filter((i) => i.code == t.languagecode)[0];
409
+ return t.languagecode = t.languagecode.replace(/-/g, "_"), t.description = s === void 0 ? "" : s.val, t;
410
+ }), this.translationDetail.langs = e, this.confirmLoading = !1;
411
+ });
412
+ },
413
+ getDictionary(a) {
414
+ return this.$options.filters.dictData(a);
415
+ },
416
+ getsourcecategory(a) {
417
+ this.sourcecategory = this.$options.filters.dictData("source_category").filter(
418
+ (e) => a.split(",").includes(e.name)
419
+ );
420
+ },
421
+ getsourcemodule(a) {
422
+ this.sourcemodule = this.$options.filters.dictData("source_module").filter((e) => a.split(",").includes(e.name));
423
+ },
424
+ changecode(a) {
425
+ let e = this.getDictionary("source_system"), t = "";
426
+ e.forEach((s) => {
427
+ s.code == a && (t = s.remark);
428
+ }), this.sourcecategory = [], this.sourcemodule = [], this.ruleFormData.typecode = "", this.ruleFormData.modulecode = "", this.getsourcecategory(t);
429
+ },
430
+ changetypecode(a) {
431
+ let e = "";
432
+ this.sourcecategory.forEach((t) => {
433
+ t.code == a && (e = t.remark);
434
+ }), this.getsourcemodule(e);
435
+ },
436
+ init(a) {
437
+ 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 = [
438
+ {
439
+ displayName: "\u786E\u5B9A",
440
+ functionName: "handleSubmit",
441
+ show: !0,
442
+ transKey: "gd.btn.confirm",
443
+ icon: "el-icon-document-checked"
444
+ }
445
+ ], this.getAllLanguage(), a && this.sysTranslationDetail(a.id);
446
+ },
447
+ sysTranslationDetail(a) {
448
+ this.confirmLoading = !0, y({
449
+ id: a
450
+ }).then((e) => {
451
+ 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;
452
+ let t = e.data && e.data.langs ? e.data.langs : [];
453
+ t.map((s) => (s.languagecode = s.languagecode.replace(/-/g, "_"), s)), this.translationDetail = Object.assign(e.data, { langs: t }), this.confirmLoading = !1;
454
+ });
455
+ },
456
+ add(a) {
457
+ this.confirmLoading = !0, delete a.id, g(a).then((e) => {
458
+ 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);
459
+ }).finally((e) => {
460
+ this.confirmLoading = !1;
461
+ });
462
+ },
463
+ edit(a) {
464
+ this.confirmLoading = !0, delete a.basicRecordTable, delete a.matchingRecordTable, u(a).then((e) => {
465
+ 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);
466
+ }).finally((e) => {
467
+ this.confirmLoading = !1;
468
+ });
469
+ },
470
+ handleSubmit() {
471
+ this.$refs.ruleForm.validate((a) => {
472
+ if (a) {
473
+ const e = {
474
+ ...this.ruleFormData,
475
+ langs: this.translationDetail.langs || [],
476
+ name: this.ruleFormData.name || this.translationDetail.name
477
+ };
478
+ this.type == 1 ? this.add(e) : this.edit(e);
479
+ }
480
+ });
481
+ },
482
+ handleCancel() {
483
+ this.visible = !1, this.confirmLoading = !1, this.$refs.ruleForm.resetFields(), this.ruleFormData = {
484
+ name: "",
485
+ hintseverity: "",
486
+ hintcode: "",
487
+ systemcode: "",
488
+ typecode: "",
489
+ modulecode: "",
490
+ parameters: "",
491
+ hintdescription: "",
492
+ langs: ""
493
+ }, this.sourcecategory = [], this.sourcemodule = [], this.addData = null;
494
+ },
495
+ doEvent(a) {
496
+ let e = a.item.functionName;
497
+ this[e]();
498
+ }
499
+ }
500
+ };
501
+ var $ = function() {
502
+ var e = this, t = e._self._c;
503
+ 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) {
504
+ e.visible = s;
505
+ }, closed: e.handleCancel } }, [t("gd-modal-title", { attrs: { slot: "title", title: `${e.title}${e.$i18nt("gd.promptManagement.checkConfigurationRetryRule", "\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) {
506
+ s.preventDefault();
507
+ } } }, [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) {
508
+ e.$set(e.ruleFormData, "hintcode", s);
509
+ }, 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) {
510
+ e.$set(e.ruleFormData, "hintseverity", s);
511
+ }, expression: "ruleFormData['hintseverity']" } }, e._l(e.getDictionary("severity_level"), function(s, i) {
512
+ return t("el-option", { key: i, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
513
+ }), 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) {
514
+ e.$set(e.ruleFormData, "name", s);
515
+ }, 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) {
516
+ e.$set(e.ruleFormData, "systemcode", s);
517
+ }, expression: "ruleFormData['systemcode']" } }, e._l(e.getDictionary("source_system"), function(s, i) {
518
+ return t("el-option", { key: i, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
519
+ }), 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) {
520
+ e.$set(e.ruleFormData, "typecode", s);
521
+ }, expression: "ruleFormData['typecode']" } }, e._l(e.sourcecategory, function(s, i) {
522
+ return t("el-option", { key: i, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
523
+ }), 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) {
524
+ e.$set(e.ruleFormData, "modulecode", s);
525
+ }, expression: "ruleFormData['modulecode']" } }, e._l(e.sourcemodule, function(s, i) {
526
+ return t("el-option", { key: i, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
527
+ }), 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) {
528
+ e.$set(e.ruleFormData, "parameters", s);
529
+ }, 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) {
530
+ e.$set(e.ruleFormData, "hintdescription", s);
531
+ }, 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) {
532
+ 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(i) {
533
+ return e.changeLanguage(i, s);
534
+ } }, model: { value: s.description, callback: function(i) {
535
+ e.$set(s, "description", i);
536
+ }, expression: "item.description" } })], 1)];
537
+ })], 2)], 1)], 1)], 1)])], 1);
538
+ }, v = [], D = /* @__PURE__ */ c(
539
+ _,
540
+ $,
541
+ v,
542
+ !1,
543
+ null,
544
+ "d837f521",
545
+ null,
546
+ null
547
+ );
548
+ const T = D.exports;
549
+ const C = {
550
+ props: {
551
+ height: {
552
+ type: Number,
553
+ default: 100
554
+ }
555
+ },
556
+ name: "GdPromptManagement",
557
+ mixins: [h, b],
558
+ components: {
559
+ editForm: T
560
+ },
561
+ data() {
562
+ return {
563
+ selectedRowKeys: [],
564
+ selectedRows: [],
565
+ disableBtn: [],
566
+ transKey: "gd.promptManagement.checkConfigurationRetryRule",
567
+ formLoading: !1,
568
+ currentNode: null,
569
+ loadData: (a) => w(Object.assign(a, this.getQueryParam)).then((e) => e.data),
570
+ record: {},
571
+ queryParam: {}
572
+ };
573
+ },
574
+ computed: {
575
+ getTableLists() {
576
+ let a = [...this.tableLists];
577
+ return a.forEach((e, t) => {
578
+ a[t].name = e.busname, a[t].code = e.id;
579
+ }), a;
580
+ },
581
+ getTableQueries() {
582
+ return this.tableQueries.forEach((a, e) => {
583
+ }), this.tableQueries;
584
+ },
585
+ getHeight() {
586
+ return this.height;
587
+ },
588
+ getTableButtons() {
589
+ return this.tableButtons.filter((a) => (a.show = !this.disableBtn.includes(a.displayName), !0));
590
+ },
591
+ getQueryParam() {
592
+ let a = /* @__PURE__ */ new Map();
593
+ for (let e in this.queryParam)
594
+ a.set(e, this.queryParam[e]);
595
+ return Object.fromEntries(a);
596
+ },
597
+ ...d(["tablePageSize", "tableSize", "labelPosition", "formMode", "tableLists"])
598
+ },
599
+ methods: {
600
+ onSelectChange(a, e) {
601
+ if (this.selectedRows = e, this.selectedRowKeys = a, a.length === 0) {
602
+ this.disableBtn = [];
603
+ return;
604
+ }
605
+ },
606
+ query() {
607
+ this.$refs.table.refresh(!0);
608
+ },
609
+ refresh() {
610
+ this.$refs.table.refresh();
611
+ },
612
+ edit() {
613
+ if (this.selectedRowKeys.length === 0) {
614
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
615
+ return;
616
+ }
617
+ if (this.selectedRowKeys.length > 1) {
618
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
619
+ return;
620
+ }
621
+ this.editForms(this.selectedRows[0]);
622
+ },
623
+ editForms(a) {
624
+ this.$refs.editForm.init(a);
625
+ },
626
+ saveQueries(a) {
627
+ this.queryParam = { ...a }, this.refresh();
628
+ },
629
+ add() {
630
+ this.$refs.editForm.init(null);
631
+ },
632
+ del() {
633
+ if (this.selectedRowKeys.length === 0) {
634
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
635
+ return;
636
+ }
637
+ if (this.selectedRowKeys.length > 1) {
638
+ this.$message.warning(this.$i18nt("gd.https.readTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E!"));
639
+ return;
640
+ }
641
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
642
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
643
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
644
+ showClose: !1,
645
+ confirmButtonLoading: !1,
646
+ cancelButtonLoading: !1,
647
+ closeOnClickModal: !1,
648
+ type: "warning",
649
+ confirmButtonClass: "el-button--danger",
650
+ customClass: "custom-alert",
651
+ callback: () => {
652
+ },
653
+ beforeClose: (a, e, t) => {
654
+ this.delHand(a, e, t);
655
+ }
656
+ });
657
+ },
658
+ delHand(a, e, t) {
659
+ if (a !== "confirm") {
660
+ t();
661
+ return;
662
+ }
663
+ let s = [], i = f({
664
+ id: this.selectedRowKeys.join(",")
665
+ }).then((n) => n);
666
+ s.push(i), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((n) => {
667
+ e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, t();
668
+ const o = n.filter((r) => !r.success);
669
+ 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();
670
+ });
671
+ },
672
+ doEvent(a) {
673
+ let e = a.item.functionName;
674
+ this[e] && this[e]();
675
+ },
676
+ handleOk() {
677
+ this.$refs.table.refresh();
678
+ },
679
+ dictSwitch(a, e) {
680
+ let t = this.$options.filters.dictData(e).filter((s) => s.code == a)[0];
681
+ return t != null && t.colour ? t.colour : null;
682
+ },
683
+ enable() {
684
+ if (this.selectedRowKeys.length === 0) {
685
+ this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
686
+ return;
687
+ }
688
+ if (this.selectedRowKeys.length > 1) {
689
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
690
+ return;
691
+ }
692
+ this.editStateCodes({ row: this.selectedRows[0] });
693
+ },
694
+ deactivated() {
695
+ if (this.selectedRowKeys.length === 0) {
696
+ this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
697
+ return;
698
+ }
699
+ if (this.selectedRowKeys.length > 1) {
700
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
701
+ return;
702
+ }
703
+ this.editStateCodes({ row: this.selectedRows[0] });
704
+ },
705
+ editStateCodes({ column: a, row: e }) {
706
+ if (e.dict_type == 1) {
707
+ this.$message.error(this.$i18nt("gd.https.operableNoTip", "\u4E0D\u53EF\u64CD\u4F5C!"));
708
+ return;
709
+ }
710
+ 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");
711
+ this.$confirm(t, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
712
+ confirmButtonText: s,
713
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
714
+ showClose: !1,
715
+ confirmButtonLoading: !1,
716
+ cancelButtonLoading: !1,
717
+ closeOnClickModal: !1,
718
+ type: "warning",
719
+ confirmButtonClass: "el-button--danger",
720
+ customClass: "custom-alert",
721
+ callback: () => {
722
+ },
723
+ beforeClose: (i, n, o) => {
724
+ if (i !== "confirm") {
725
+ o();
726
+ return;
727
+ }
728
+ n.confirmButtonLoading = !0, n.cancelButtonLoading = !0, n.showCancelButton = !1, u({ id: e.id, stateCodes: e.statecodes == 1 ? 0 : 1 }).then((r) => {
729
+ o(), n.confirmButtonLoading = !1, n.cancelButtonLoading = !1, n.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);
730
+ });
731
+ }
732
+ });
733
+ }
734
+ }
735
+ };
736
+ var x = function() {
737
+ var e = this, t = e._self._c;
738
+ 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: i }) {
739
+ return [t("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForms } })];
740
+ } }, { key: "createdtime", fn: function({ column: s, row: i }) {
741
+ return [t("gd-tooltip", { attrs: { rowKey: "createdtime", row: i } })];
742
+ } }, { key: "updatedtime", fn: function({ column: s, row: i }) {
743
+ return [t("gd-tooltip", { attrs: { rowKey: "updatedtime", row: i } })];
744
+ } }, { key: "hintseverity", fn: function(s) {
745
+ 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)))])];
746
+ } }, { key: "systemcode", fn: function(s) {
747
+ 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)))])];
748
+ } }, { key: "typecode", fn: function(s) {
749
+ 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)))])];
750
+ } }, { key: "modulecode", fn: function(s) {
751
+ 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)))])];
752
+ } }, { key: "operator", fn: function() {
753
+ return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl" }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.duplicatechecking.hintCode", "\u63D0\u793A\u7F16\u7801"), clearable: "" }, nativeOn: { keyup: function(s) {
754
+ return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.query.apply(null, arguments);
755
+ } }, model: { value: e.queryParam.hintcode, callback: function(s) {
756
+ e.$set(e.queryParam, "hintcode", s);
757
+ }, 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-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } })], 1)])];
758
+ }, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: i }) {
759
+ return [t("gd-table-queries-field", { attrs: { columns: e.getTableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: i }, on: { save: e.saveQueries } })];
760
+ } }]) })], 1), t("editForm", { ref: "editForm", attrs: { table: e.record }, on: { ok: e.handleOk } })], 1);
761
+ }, F = [], k = /* @__PURE__ */ c(
762
+ C,
763
+ x,
764
+ F,
765
+ !1,
766
+ null,
767
+ "70587acf",
768
+ null,
769
+ null
770
+ );
771
+ const l = k.exports;
772
+ l.install = function(a) {
773
+ a.component(l.name, l);
774
+ };
775
+ export {
776
+ p as G,
777
+ B as a,
778
+ M as b,
779
+ q as c,
780
+ E as d,
781
+ P as e,
782
+ O as f,
783
+ z as g,
784
+ R as h,
785
+ H as i,
786
+ N as j,
787
+ l as k,
788
+ K as s
789
+ };