gds-plus-design-vue 1.1.79 → 1.1.82

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 (35) hide show
  1. package/lib/gd-initial.js +13 -13
  2. package/lib/gd-initial.mjs +3616 -3099
  3. package/lib/{main.0bc996b9.js → main.1b00a4e3.js} +1 -1
  4. package/lib/{main.1faff788.js → main.1da3b284.js} +1 -1
  5. package/lib/{main.f0373dec.js → main.2a2d1dba.js} +1 -1
  6. package/lib/{main.91709b76.mjs → main.4a1b145d.mjs} +1 -1
  7. package/lib/{main.6ec8214c.mjs → main.85fa6307.mjs} +1 -1
  8. package/lib/{main.7155799c.mjs → main.b283cf8f.mjs} +1 -1
  9. package/lib/style.css +2 -2
  10. package/lib/{system.account.09d65732.js → system.account.13fcfd13.js} +2 -2
  11. package/lib/{system.account.ced91d43.mjs → system.account.80e9070c.mjs} +1 -1
  12. package/lib/system.dict.5ffc0729.js +1 -0
  13. package/lib/{system.dict.28a0f526.mjs → system.dict.d904a4c1.mjs} +2 -2
  14. package/lib/{system.email.9c7b59f9.js → system.email.aa3a3964.js} +1 -1
  15. package/lib/{system.email.16bf5be6.mjs → system.email.ccea99a3.mjs} +1 -1
  16. package/lib/{system.notice.1d7542ae.js → system.notice.29eda0a6.js} +1 -1
  17. package/lib/{system.notice.180c2ef2.mjs → system.notice.c3b65e57.mjs} +1 -1
  18. package/lib/{system.noticereceived.d8f128fe.js → system.noticereceived.5f2ff5b8.js} +1 -1
  19. package/lib/{system.noticereceived.f8e0550a.mjs → system.noticereceived.a3af9de9.mjs} +1 -1
  20. package/lib/{system.permissions.ea1e780d.mjs → system.permissions.70965fc6.mjs} +1 -1
  21. package/lib/{system.permissions.1746ed40.js → system.permissions.e350ba73.js} +1 -1
  22. package/lib/{system.role.06753a01.mjs → system.role.0bba7e75.mjs} +5 -4
  23. package/lib/{system.role.a871d4f1.js → system.role.c9313c04.js} +1 -1
  24. package/lib/system.sumberrules.5e052247.js +1 -0
  25. package/lib/system.sumberrules.70378ac3.mjs +553 -0
  26. package/lib/{system.user.523944f3.mjs → system.user.12324280.mjs} +19 -12
  27. package/lib/{system.user.c2cd86fd.js → system.user.ffdbb3f9.js} +6 -6
  28. package/lib/{system.webresource.15e6ad21.mjs → system.webresource.16b9b302.mjs} +1 -1
  29. package/lib/{system.webresource.7018c9a3.js → system.webresource.a5ea3b96.js} +1 -1
  30. package/locale/en_US.js +23 -4
  31. package/locale/id_ID.js +23 -4
  32. package/locale/vi_VN.js +23 -4
  33. package/locale/zh_CN.js +23 -4
  34. package/package.json +1 -1
  35. package/lib/system.dict.aa93f41b.js +0 -1
@@ -0,0 +1,553 @@
1
+ import { n as o, m as d } from "./chartbi.57f44d3e.mjs";
2
+ import { f as c, t as u } from "./messages.ae101ecd.mjs";
3
+ function p(a) {
4
+ return window.axios({
5
+ url: "/SysNumberRules/page",
6
+ method: "get",
7
+ params: a
8
+ });
9
+ }
10
+ function m(a) {
11
+ return window.axios({
12
+ url: "/sysNumberRules/add",
13
+ method: "post",
14
+ data: a
15
+ });
16
+ }
17
+ function g(a) {
18
+ return window.axios({
19
+ url: "/sysNumberRules/edit",
20
+ method: "post",
21
+ data: a
22
+ });
23
+ }
24
+ function f(a) {
25
+ return window.axios({
26
+ url: "/sysNumberRules/delete",
27
+ method: "post",
28
+ data: a
29
+ });
30
+ }
31
+ const h = {
32
+ data() {
33
+ return {
34
+ tableColumns: [{
35
+ type: "selection",
36
+ width: "60",
37
+ fixed: !0
38
+ }, {
39
+ transKey: "gd.msg.sendRecord.name",
40
+ prop: "name",
41
+ label: "\u540D\u79F0",
42
+ type: "slot",
43
+ slotType: "name",
44
+ align: "left",
45
+ fixed: !0,
46
+ showOverflowTooltip: !0
47
+ }, {
48
+ transKey: "gd.process.tableSort",
49
+ prop: "sysCodeGenId",
50
+ label: "\u8868\u540D\u79F0",
51
+ type: "slot",
52
+ slotType: "sysCodeGenId",
53
+ align: "left"
54
+ }, {
55
+ transKey: "gd.process.tableSort",
56
+ prop: "columnid",
57
+ label: "\u5B57\u6BB5",
58
+ type: "slot",
59
+ slotType: "columnid",
60
+ align: "left"
61
+ }, {
62
+ transKey: "gd.process.tableSort",
63
+ prop: "nextseqno",
64
+ label: "\u4E0B\u4E00\u6D41\u6C34\u53F7",
65
+ align: "left"
66
+ }, {
67
+ transKey: "gd.flow.state",
68
+ prop: "statecodes",
69
+ label: "\u72B6\u6001",
70
+ type: "slot",
71
+ slotType: "statecodes",
72
+ align: "left"
73
+ }],
74
+ formColumns: [
75
+ {
76
+ transKey: "gd.user.name",
77
+ prop: "name",
78
+ effectType: "input",
79
+ label: "\u59D3\u540D",
80
+ placeholder: "\u8BF7\u8F93\u5165",
81
+ placeholderTransKey: "gd.placeholder.input",
82
+ rules: [{
83
+ required: !0,
84
+ message: "\u8BF7\u8F93\u5165",
85
+ transKey: "gd.placeholder.input",
86
+ trigger: "change"
87
+ }]
88
+ },
89
+ {
90
+ transKey: "gd.msg.sendRecord.msgTemplate",
91
+ effectType: "selectFkMultiple",
92
+ prop: "syscodegenid",
93
+ label: "\u7F16\u53F7\u8868",
94
+ placeholder: "\u8BF7\u9009\u62E9",
95
+ placeholderTransKey: "gd.placeholder.select",
96
+ fkEntityName: "sys_code_gen",
97
+ disabled: !1,
98
+ multiple: !1,
99
+ rules: []
100
+ }
101
+ ],
102
+ tableButtons: [
103
+ {
104
+ displayName: "\u65B0\u589E",
105
+ functionName: "add",
106
+ show: !0,
107
+ transKey: "gd.btn.add",
108
+ icon: "el-icon-plus",
109
+ name: "sysSumberrules:add"
110
+ },
111
+ {
112
+ displayName: "\u7F16\u8F91",
113
+ functionName: "edit",
114
+ show: !0,
115
+ transKey: "gd.btn.edit",
116
+ icon: "el-icon-edit",
117
+ name: "sysSumberrules:edit"
118
+ },
119
+ {
120
+ displayName: "\u5220\u9664",
121
+ functionName: "del",
122
+ show: !0,
123
+ transKey: "gd.btn.del",
124
+ icon: "el-icon-delete",
125
+ btnType: "danger",
126
+ name: "sysSumberrules:delete"
127
+ }
128
+ ],
129
+ tableQueries: [
130
+ {
131
+ transKey: "gd.org.name",
132
+ prop: "name",
133
+ label: "\u540D\u79F0",
134
+ effectType: "input",
135
+ rules: []
136
+ }
137
+ ],
138
+ formButtons: [{
139
+ displayName: "\u786E\u5B9A",
140
+ functionName: "handleSubmit",
141
+ show: !0,
142
+ transKey: "gd.btn.confirm",
143
+ icon: "el-icon-document-checked",
144
+ validate: !0
145
+ }]
146
+ };
147
+ }
148
+ };
149
+ const y = {
150
+ props: {
151
+ modalAppendToBody: {
152
+ type: Boolean,
153
+ default: !0
154
+ },
155
+ appendToBody: {
156
+ type: Boolean,
157
+ default: !0
158
+ }
159
+ },
160
+ data() {
161
+ return {
162
+ confirmLoading: !1,
163
+ visible: !1,
164
+ fullScreen: !1,
165
+ title: "",
166
+ width: "50%",
167
+ sysViewButtons: [{
168
+ displayName: "\u786E\u5B9A",
169
+ functionName: "handleSubmit",
170
+ show: !0,
171
+ transKey: "gd.btn.confirm",
172
+ icon: "el-icon-document-checked",
173
+ validate: !0
174
+ }],
175
+ rules: {
176
+ name: [{
177
+ required: !0,
178
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
179
+ trigger: "change"
180
+ }],
181
+ prefixtype: [{
182
+ required: !0,
183
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
184
+ trigger: "change"
185
+ }],
186
+ nextseqno: [{
187
+ required: !0,
188
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
189
+ trigger: "change"
190
+ }]
191
+ },
192
+ ruleFormData: {
193
+ id: "",
194
+ name: "",
195
+ prefixtype: "",
196
+ prefix: "",
197
+ dateformat: "",
198
+ seqtype: "",
199
+ seqrange: "",
200
+ seqlength: void 0,
201
+ postfixtype: "",
202
+ postfix: "",
203
+ nextseqno: "",
204
+ separatorch: "",
205
+ syscodegenid: "",
206
+ columnid: ""
207
+ },
208
+ dataList: [],
209
+ columnList: [],
210
+ disabled: !0,
211
+ type: 1
212
+ };
213
+ },
214
+ methods: {
215
+ lookup() {
216
+ this.disabled;
217
+ },
218
+ open(a) {
219
+ this.visible = !0, this.fullScreen = !1, this.title = a ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add"), this.type = a ? 2 : 1, a && this.getSetData(a);
220
+ },
221
+ getSetData(a) {
222
+ let e = {
223
+ id: a.id,
224
+ name: a.name,
225
+ prefixtype: a.prefixtype.toString(),
226
+ prefix: a.prefix,
227
+ dateformat: a.dateformat || a.dateformat == 0 ? a.dateformat.toString() : "",
228
+ seqtype: a.seqtype || a.seqtype == 0 ? a.seqtype.toString() : "",
229
+ seqrange: a.seqrange ? a.seqrange.toString() : "",
230
+ seqlength: a.seqlength,
231
+ postfixtype: a.postfixtype || a.postfixtype == 0 ? a.postfixtype.toString() : "",
232
+ postfix: a.postfix,
233
+ nextseqno: a.nextseqno ? a.nextseqno.toString() : "",
234
+ separatorch: a.separatorch || a.separatorch == 0 ? a.separatorch.toString() : "",
235
+ syscodegenid: a.syscodegen ? a.syscodegenid : "",
236
+ columnid: a.syscodegenconfig ? a.columnid : ""
237
+ };
238
+ this.$nextTick(() => {
239
+ setTimeout(() => {
240
+ this.ruleFormData = e;
241
+ }, 0);
242
+ }), this.getFkDada(a);
243
+ },
244
+ getFkDada(a) {
245
+ let e = [];
246
+ if (a.syscodegenid) {
247
+ let t = this.searchData(
248
+ {
249
+ id: a.syscodegenid,
250
+ fkEntityName: "sys_code_gen"
251
+ },
252
+ "syscodegenid"
253
+ );
254
+ e.push(t);
255
+ }
256
+ if (a.columnid) {
257
+ let t = this.searchData(
258
+ {
259
+ id: a.columnid,
260
+ fkEntityName: "sys_code_gen_config"
261
+ },
262
+ "columnid"
263
+ );
264
+ e.push(t);
265
+ }
266
+ Promise.all(e).then((t) => {
267
+ t.forEach((s) => {
268
+ s.prop == "syscodegenid" && (this.dataList = s.res.data ? s.res.data : []), s.prop == "columnid" && (this.columnList = s.res.data ? s.res.data : []);
269
+ });
270
+ });
271
+ },
272
+ searchData(a, e) {
273
+ return c(a).then((t) => ({
274
+ res: t,
275
+ data: a,
276
+ prop: e
277
+ }));
278
+ },
279
+ handleSubmit() {
280
+ this.$refs.ruleForm.validate((a) => {
281
+ if (a) {
282
+ let e = {
283
+ ...this.ruleFormData
284
+ };
285
+ this.type == 1 ? this.add(e) : this.edit(e);
286
+ }
287
+ });
288
+ },
289
+ add(a) {
290
+ this.confirmLoading = !0, delete a.id, m(a).then((e) => {
291
+ e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25: ") + e.message);
292
+ }).finally((e) => {
293
+ this.confirmLoading = !1;
294
+ });
295
+ },
296
+ edit(a) {
297
+ this.confirmLoading = !0, g(a).then((e) => {
298
+ e.success ? (this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25: ") + e.message);
299
+ }).finally((e) => {
300
+ this.confirmLoading = !1;
301
+ });
302
+ },
303
+ getDictionary(a) {
304
+ return this.$options.filters.dictData(a);
305
+ },
306
+ toggleFullscreen() {
307
+ this.fullScreen = !this.fullScreen;
308
+ },
309
+ handleCancel() {
310
+ this.visible = !1, this.confirmLoading = !1, this.$refs.ruleForm.resetFields(), this.ruleFormData = {
311
+ name: "",
312
+ prefixtype: "",
313
+ prefix: "",
314
+ dateformat: "",
315
+ seqtype: "",
316
+ seqrange: "",
317
+ seqlength: void 0,
318
+ postfixtype: "",
319
+ postfix: "",
320
+ nextseqno: "",
321
+ separatorch: "",
322
+ syscodegenid: "",
323
+ columnid: ""
324
+ };
325
+ },
326
+ doEvent(a) {
327
+ let e = a.item.functionName;
328
+ this[e] && this[e]();
329
+ }
330
+ }
331
+ };
332
+ var b = function() {
333
+ var e = this, t = e._self._c;
334
+ return t("el-dialog", { class: e.fullScreen ? "gd-dialog" : "gd-dialog gd-dialog-fangda", attrs: { width: e.width, visible: e.visible, fullscreen: e.fullScreen, footer: null, top: "80px", "modal-append-to-body": e.modalAppendToBody, "append-to-body": e.appendToBody, "show-close": !1 }, on: { "update:visible": function(s) {
335
+ e.visible = s;
336
+ }, closed: e.handleCancel } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullScreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0, closed: "handleCancel" }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [t("div", { class: e.fullScreen ? "modal-bodyq" : "modal-body" }, [t("el-form", { ref: "ruleForm", attrs: { rules: e.rules, model: e.ruleFormData, "label-width": "100px" }, nativeOn: { submit: function(s) {
337
+ s.preventDefault();
338
+ } } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.name", "\u540D\u79F0"), prop: "name" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.name, callback: function(s) {
339
+ e.$set(e.ruleFormData, "name", s);
340
+ }, expression: "ruleFormData.name" } })], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.prefixType", "\u524D\u7F00\u7C7B\u578B"), prop: "prefixtype" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.prefixtype, callback: function(s) {
341
+ e.$set(e.ruleFormData, "prefixtype", s);
342
+ }, expression: "ruleFormData.prefixtype" } }, e._l(e.getDictionary("prefix_type"), function(s, l) {
343
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
344
+ }), 1)], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.prefix", "\u524D\u7F00"), prop: "prefix" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.prefix, callback: function(s) {
345
+ e.$set(e.ruleFormData, "prefix", s);
346
+ }, expression: "ruleFormData.prefix" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.dateFormat", "\u65E5\u671F\u683C\u5F0F"), prop: "dateformat" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.dateformat, callback: function(s) {
347
+ e.$set(e.ruleFormData, "dateformat", s);
348
+ }, expression: "ruleFormData.dateformat" } }, e._l(e.getDictionary("dateformat"), function(s, l) {
349
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
350
+ }), 1)], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.seqType", "\u6D41\u6C34\u53F7\u7C7B\u578B"), prop: "seqtype" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.seqtype, callback: function(s) {
351
+ e.$set(e.ruleFormData, "seqtype", s);
352
+ }, expression: "ruleFormData.seqtype" } }, e._l(e.getDictionary("seqtype"), function(s, l) {
353
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
354
+ }), 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.seqRange", "\u6D41\u6C34\u53F7\u8303\u56F4"), prop: "seqrange" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.seqrange, callback: function(s) {
355
+ e.$set(e.ruleFormData, "seqrange", s);
356
+ }, expression: "ruleFormData.seqrange" } }, e._l(e.getDictionary("seqrange"), function(s, l) {
357
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
358
+ }), 1)], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.seqLength", "\u6D41\u6C34\u53F7\u957F\u5EA6"), prop: "seqlength" } }, [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right", min: 0, max: 10 }, model: { value: e.ruleFormData.seqlength, callback: function(s) {
359
+ e.$set(e.ruleFormData, "seqlength", s);
360
+ }, expression: "ruleFormData.seqlength" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.postfixType", "\u540E\u7F00\u7C7B\u578B"), prop: "postfixtype" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.postfixtype, callback: function(s) {
361
+ e.$set(e.ruleFormData, "postfixtype", s);
362
+ }, expression: "ruleFormData.postfixtype" } }, e._l(e.getDictionary("postfix_type"), function(s, l) {
363
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
364
+ }), 1)], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.postfix", "\u540E\u7F00"), prop: "postfix" } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input") }, model: { value: e.ruleFormData.postfix, callback: function(s) {
365
+ e.$set(e.ruleFormData, "postfix", s);
366
+ }, expression: "ruleFormData.postfix" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.nextSeqNo", "\u4E0B\u4E00\u6D41\u6C34\u53F7"), prop: "nextseqno" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.nextseqno, callback: function(s) {
367
+ e.$set(e.ruleFormData, "nextseqno", s);
368
+ }, expression: "ruleFormData.nextseqno" } })], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.separatorCh", "\u5206\u9694\u7B26"), prop: "separatorch" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.separatorch, callback: function(s) {
369
+ e.$set(e.ruleFormData, "separatorch", s);
370
+ }, expression: "ruleFormData.separatorch" } }, e._l(e.getDictionary("separator"), function(s, l) {
371
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
372
+ }), 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.sysCodeGenId", "\u7F16\u53F7\u8868"), prop: "syscodegenid" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", filterable: "", remote: "", clearable: "", "collapse-tags": !0, disabled: e.disabled }, model: { value: e.ruleFormData.syscodegenid, callback: function(s) {
373
+ e.$set(e.ruleFormData, "syscodegenid", s);
374
+ }, expression: "ruleFormData.syscodegenid" } }, e._l(e.dataList, function(s) {
375
+ return t("el-option", { key: s.id, attrs: { label: s.name, value: s.id } });
376
+ }), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search cao_setting-disabled", on: { click: function(s) {
377
+ return e.lookup("syscodegenid", e.ruleFormData.syscodegenid);
378
+ } } })])], 1)])], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.columnId", "\u7F16\u53F7\u5B57\u6BB5"), prop: "columnid" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", filterable: "", remote: "", clearable: "", "collapse-tags": !0, disabled: e.disabled }, model: { value: e.ruleFormData.columnid, callback: function(s) {
379
+ e.$set(e.ruleFormData, "columnid", s);
380
+ }, expression: "ruleFormData.columnid" } }, e._l(e.columnList, function(s) {
381
+ return t("el-option", { key: s.id, attrs: { label: s.name, value: s.id } });
382
+ }), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search cao_setting-disabled", on: { click: function(s) {
383
+ return e.lookup("columnid", e.ruleFormData.columnid);
384
+ } } })])], 1)])], 1)], 1)], 1), t("el-divider"), t("div", { staticClass: "remarks_title" }, [e._v(" " + e._s(e.$i18nt("gd.numberingRules.remarks", "\u793A\u4F8B:{\u56FA\u5B9A\u524D\u7F00/ \u968F\u673A\u524D\u7F00}{ \u5E74\u6708\u65E5 }{ \u6D41\u6C34\u53F7, \u6D41\u6C34\u53F7\u7C7B\u578B(\u4E3B/ \u5B50, \u5B9E\u4F53 /), \u6D41\u6C34\u53F7\u8303\u56F4(\u5168\u5C40 / \u65E5\u671F\u5185)}{ \u56FA\u5B9A\u540E\u7F00 / \u968F\u673A\u540E\u7F00 } Acc202206130001zzz")) + " ")])], 1)])], 1);
385
+ }, $ = [], _ = /* @__PURE__ */ o(
386
+ y,
387
+ b,
388
+ $,
389
+ !1,
390
+ null,
391
+ "37876631",
392
+ null,
393
+ null
394
+ );
395
+ const x = _.exports;
396
+ const v = {
397
+ name: "GdSumberrules",
398
+ mixins: [u, h],
399
+ props: {
400
+ height: {
401
+ type: Number,
402
+ default: 100
403
+ }
404
+ },
405
+ data() {
406
+ return {
407
+ formLoading: !1,
408
+ transKey: "gd.btn.add",
409
+ selectedRowKeys: [],
410
+ selectedRows: [],
411
+ queryParam: {},
412
+ loadData: (a) => p(this.getQueryParam).then((e) => ({
413
+ pageNo: 1,
414
+ pageSize: 100,
415
+ totalRows: 0,
416
+ rows: e.map((s) => {
417
+ let l = this.tableLists.filter((r) => r.id === s.syscodegenid)[0];
418
+ return Object.assign(s, {
419
+ syscodegen: l
420
+ });
421
+ })
422
+ }))
423
+ };
424
+ },
425
+ computed: {
426
+ getQueryParam() {
427
+ let a = /* @__PURE__ */ new Map();
428
+ for (let e in this.queryParam)
429
+ this.queryParam[e] !== "" && a.set(e, this.queryParam[e]);
430
+ return Object.fromEntries(a);
431
+ },
432
+ getHeight() {
433
+ return this.height;
434
+ },
435
+ ...d(["tablePageSize", "tableSize", "labelPosition", "formMode", "tableLists"])
436
+ },
437
+ components: {
438
+ editForm: x
439
+ },
440
+ methods: {
441
+ saveQueries(a) {
442
+ this.queryParam = {
443
+ ...a
444
+ }, this.refresh();
445
+ },
446
+ refresh() {
447
+ this.$refs.table.refresh();
448
+ },
449
+ editForm(a) {
450
+ this.transKey = "gd.btn.edit", this.$refs.editForm.open(a);
451
+ },
452
+ add() {
453
+ this.$refs.editForm.open();
454
+ },
455
+ edit() {
456
+ if (this.selectedRowKeys.length === 0) {
457
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
458
+ return;
459
+ }
460
+ if (this.selectedRowKeys.length > 1) {
461
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
462
+ return;
463
+ }
464
+ this.editForm(this.selectedRows[0]);
465
+ },
466
+ handleOk() {
467
+ this.refresh();
468
+ },
469
+ del() {
470
+ if (this.selectedRowKeys.length === 0) {
471
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
472
+ return;
473
+ }
474
+ if (this.selectedRowKeys.length > 1) {
475
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
476
+ return;
477
+ }
478
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
479
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
480
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
481
+ showClose: !1,
482
+ confirmButtonLoading: !1,
483
+ cancelButtonLoading: !1,
484
+ closeOnClickModal: !1,
485
+ type: "warning",
486
+ confirmButtonClass: "el-button--danger",
487
+ customClass: "custom-alert",
488
+ callback: () => {
489
+ },
490
+ beforeClose: (a, e, t) => {
491
+ this.delHand(a, e, t);
492
+ }
493
+ });
494
+ },
495
+ delHand(a, e, t) {
496
+ if (a !== "confirm") {
497
+ t();
498
+ return;
499
+ }
500
+ let s = [];
501
+ this.selectedRows.forEach((l) => {
502
+ let r = f(l).then((n) => n);
503
+ s.push(r);
504
+ }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
505
+ const r = l.filter((n) => !n.success);
506
+ r.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") + r[0].message), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
507
+ });
508
+ },
509
+ onSelectChange(a, e) {
510
+ this.selectedRowKeys = a, this.selectedRows = e;
511
+ },
512
+ doEvent(a) {
513
+ let e = a.item.functionName;
514
+ this[e] && this[e]();
515
+ },
516
+ dictSwitch(a, e) {
517
+ let t = this.$options.filters.dictData(e).filter((s) => s.code == a)[0];
518
+ return t != null && t.colour ? t.colour : null;
519
+ }
520
+ }
521
+ };
522
+ var w = function() {
523
+ var e = this, t = e._self._c;
524
+ 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, height: e.getHeight, filtering: !0, showPagination: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
525
+ return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
526
+ }, proxy: !0 }, { key: "name", fn: function({ column: s, row: l }) {
527
+ return [t("gd-tooltip", { attrs: { rowKey: "name", row: l, highlight: "" }, on: { click: e.editForm } })];
528
+ } }, { key: "sysCodeGenId", fn: function({ column: s, row: l }) {
529
+ return [l.syscodegen ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.syscodegen.transkey}`, l.syscodegen.busname)) + " ")]) : e._e()];
530
+ } }, { key: "columnid", fn: function({ column: s, row: l }) {
531
+ return [l.syscodegenconfig ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.syscodegenconfig.transkey}`, l.syscodegenconfig.name)) + " ")]) : e._e()];
532
+ } }, { key: "statecodes", fn: function(s) {
533
+ return [e.dictSwitch(s.row.statecodes, "state_code") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.statecodes, "state_code") } }, [e._v(" " + e._s(e._f("dictType")("state_code", s.row.statecodes)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("state_code", s.row.statecodes)))])];
534
+ } }, { key: "filtering", fn: function({ colse: s, visible: l }) {
535
+ return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.height, queryParam: e.queryParam, colse: s, visible: l }, on: { save: e.saveQueries } })];
536
+ } }]) })], 1), t("editForm", { ref: "editForm", attrs: { openPermissions: !0 }, on: { ok: e.handleOk } })], 1);
537
+ }, D = [], F = /* @__PURE__ */ o(
538
+ v,
539
+ w,
540
+ D,
541
+ !1,
542
+ null,
543
+ "4481d39a",
544
+ null,
545
+ null
546
+ );
547
+ const i = F.exports;
548
+ i.install = function(a) {
549
+ a.component(i.name, i);
550
+ };
551
+ export {
552
+ i as G
553
+ };
@@ -1,8 +1,8 @@
1
1
  import { g as C } from "./system.org.b76023b7.mjs";
2
- import { f as O, a as N, h as P, c as B, i as M, j as E, k as D, l as U, m as I, n as A, e as q, o as H, q as j, r as z, t as S } from "./system.account.ced91d43.mjs";
2
+ import { f as O, a as N, h as P, c as B, i as M, j as E, k as D, l as U, m as I, n as A, e as q, o as H, q as j, r as z, t as S } from "./system.account.80e9070c.mjs";
3
3
  import { m as L, n as T } from "./chartbi.57f44d3e.mjs";
4
4
  import { t as G } from "./messages.ae101ecd.mjs";
5
- import { G as Q } from "./system.role.06753a01.mjs";
5
+ import { G as Q } from "./system.role.0bba7e75.mjs";
6
6
  const V = {
7
7
  data() {
8
8
  return {
@@ -20,7 +20,8 @@ const V = {
20
20
  confirmLoading: !1,
21
21
  fullscreen: !1,
22
22
  width: "90%",
23
- selectedRowKeys: []
23
+ selectedRowKeys: [],
24
+ allRowData: []
24
25
  };
25
26
  },
26
27
  components: { RoleForm: Q },
@@ -32,8 +33,14 @@ const V = {
32
33
  },
33
34
  methods: {
34
35
  handleSubmit() {
35
- this.confirmLoading = !0, O({ id: this.record.id, grantRoleIdList: this.selectedRowKeys }).then((n) => {
36
- n.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") + n.message), this.confirmLoading = !1;
36
+ this.confirmLoading = !0;
37
+ let n = [];
38
+ n = this.allRowData.filter(
39
+ (t) => !this.selectedRowKeys.some((r) => r === t.id)
40
+ );
41
+ const e = n.map((t) => t.id);
42
+ O({ id: this.record.id, addRoleIdList: this.selectedRowKeys, removeRoleIdList: e }).then((t) => {
43
+ 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;
37
44
  });
38
45
  },
39
46
  open(n) {
@@ -51,8 +58,8 @@ const V = {
51
58
  toggleFullscreen() {
52
59
  this.fullscreen = !this.fullscreen;
53
60
  },
54
- onSelectChange(n) {
55
- this.selectedRowKeys = n;
61
+ onSelectChange(n, e, t) {
62
+ this.selectedRowKeys = n, this.allRowData = t.rows;
56
63
  },
57
64
  doEvent(n) {
58
65
  const e = n.item.functionName;
@@ -71,7 +78,7 @@ var Y = function() {
71
78
  J,
72
79
  !1,
73
80
  null,
74
- "92bd3497",
81
+ "a2dbccd2",
75
82
  null,
76
83
  null
77
84
  );
@@ -555,7 +562,7 @@ var R = { exports: {} };
555
562
  throw new TypeError("Super expression must either be null or a function, not " + typeof g);
556
563
  m.prototype = Object.create(g && g.prototype, { constructor: { value: m, enumerable: !1, writable: !0, configurable: !0 } }), g && (Object.setPrototypeOf ? Object.setPrototypeOf(m, g) : m.__proto__ = g);
557
564
  }
558
- var F = function(m) {
565
+ var K = function(m) {
559
566
  $(g, m);
560
567
  function g(v, f) {
561
568
  d(this, g);
@@ -615,8 +622,8 @@ var R = { exports: {} };
615
622
  key: "isSupported",
616
623
  value: function() {
617
624
  var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], y = typeof f == "string" ? [f] : f, _ = !!document.queryCommandSupported;
618
- return y.forEach(function(K) {
619
- _ = _ && !!document.queryCommandSupported(K);
625
+ return y.forEach(function(F) {
626
+ _ = _ && !!document.queryCommandSupported(F);
620
627
  }), _;
621
628
  }
622
629
  }]), g;
@@ -626,7 +633,7 @@ var R = { exports: {} };
626
633
  if (!!g.hasAttribute(v))
627
634
  return g.getAttribute(v);
628
635
  }
629
- t.exports = F;
636
+ t.exports = K;
630
637
  },
631
638
  function(t, r, i) {
632
639
  var s = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {