gds-plus-design-vue 1.2.73 → 1.2.74

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 (158) hide show
  1. package/lib/addPermission.4a553cd8.js +1 -0
  2. package/lib/{addPermission.1eb97ee3.mjs → addPermission.78068c52.mjs} +45 -43
  3. package/lib/{approvalModel.c09cbf86.mjs → approvalModel.1d109493.mjs} +2 -2
  4. package/lib/{approvalModel.63fa8914.js → approvalModel.e0e5738f.js} +1 -1
  5. package/lib/{attribute.88d41b0f.mjs → attribute.9dfa6953.mjs} +46 -44
  6. package/lib/attribute.f97b41ad.js +1 -0
  7. package/lib/{components.globalheader.28b38c3a.js → components.globalheader.c7bf862b.js} +1 -1
  8. package/lib/{components.globalheader.9471ef9d.mjs → components.globalheader.f0b8aab7.mjs} +1 -1
  9. package/lib/{components.middleware.b2e156ea.js → components.middleware.216e1574.js} +1 -1
  10. package/lib/{components.middleware.7b760b95.mjs → components.middleware.d7dc078d.mjs} +2 -2
  11. package/lib/{components.modaltitle.179b6da1.js → components.modaltitle.0d3db44e.js} +1 -1
  12. package/lib/{components.modaltitle.2c1011c5.mjs → components.modaltitle.517bc660.mjs} +2 -2
  13. package/lib/{components.sidenavmenu.a3de1659.js → components.sidenavmenu.364a8b26.js} +1 -1
  14. package/lib/{components.sidenavmenu.91e996c4.mjs → components.sidenavmenu.3f4d259f.mjs} +1 -1
  15. package/lib/components.table.5d1336dd.js +8 -0
  16. package/lib/components.table.a50270a9.mjs +3591 -0
  17. package/lib/components.table.childheader.7e9b960f.mjs +325 -0
  18. package/lib/components.table.childheader.cee3be75.js +1 -0
  19. package/lib/components.table.queriesfield.eb795212.js +1 -0
  20. package/lib/components.table.queriesfield.f16322dc.mjs +748 -0
  21. package/lib/components.viewformdetails.513f0dbe.js +1 -0
  22. package/lib/{components.viewformdetails.4e40579f.mjs → components.viewformdetails.cb86a01d.mjs} +28 -21
  23. package/lib/{createFile.ca811a30.mjs → createFile.44667f20.mjs} +45 -43
  24. package/lib/createFile.6389354d.js +1 -0
  25. package/lib/{editForm.83d10fae.mjs → editForm.54f33a47.mjs} +5 -2
  26. package/lib/editForm.a5fd3180.js +1 -0
  27. package/lib/extendedAttributes.3ed8fe2a.js +1 -0
  28. package/lib/{extendedAttributes.a3ee9bde.mjs → extendedAttributes.b2c2ab6c.mjs} +45 -43
  29. package/lib/{fileSearch.d7abc086.mjs → fileSearch.203b9423.mjs} +45 -43
  30. package/lib/fileSearch.3513b55b.js +1 -0
  31. package/lib/{flow.designer.7d58bc2c.js → flow.designer.362f5f66.js} +1 -1
  32. package/lib/{flow.designer.b066df02.mjs → flow.designer.e087cd9b.mjs} +1 -1
  33. package/lib/{flow.list.a9afdd93.mjs → flow.list.3c2df716.mjs} +2 -2
  34. package/lib/{flow.list.d288de5e.js → flow.list.dea8996a.js} +1 -1
  35. package/lib/{form.build.16110b90.mjs → form.build.69803596.mjs} +24 -17
  36. package/lib/form.build.6a1bcad5.js +1 -0
  37. package/lib/{form.designer.build.2bd26973.mjs → form.designer.build.12c673f0.mjs} +188 -150
  38. package/lib/form.designer.build.89af4d24.js +1 -0
  39. package/lib/{formFiled.3763ebff.mjs → formFiled.593b5a25.mjs} +7 -6
  40. package/lib/formFiled.d63e97d3.js +1 -0
  41. package/lib/gd-initial.js +1 -1
  42. package/lib/gd-initial.mjs +148 -146
  43. package/lib/{http.message.ceb0a1c6.mjs → http.message.00e72e09.mjs} +29 -21
  44. package/lib/{http.message.87f319d7.js → http.message.73c3ed85.js} +1 -1
  45. package/lib/index.4f1635c8.js +8 -0
  46. package/lib/{index.606ef358.mjs → index.9ecf4818.mjs} +3158 -2477
  47. package/lib/{layoutBlocks.0784592a.mjs → layoutBlocks.97713647.mjs} +91 -78
  48. package/lib/layoutBlocks.d26f79f2.js +1 -0
  49. package/lib/layouts.0e66a0bc.js +2 -0
  50. package/lib/{layouts.915931be.mjs → layouts.ddf507fa.mjs} +29 -21
  51. package/lib/{main.0326119e.js → main.22cae2bb.js} +1 -1
  52. package/lib/{main.adcedcee.mjs → main.37ae02bc.mjs} +1 -1
  53. package/lib/main.44750095.js +1 -0
  54. package/lib/{main.034638bb.mjs → main.55c9f109.mjs} +5 -8
  55. package/lib/{main.44efe912.mjs → main.5bf89f06.mjs} +54 -55
  56. package/lib/main.f0805dab.js +1 -0
  57. package/lib/manage.91e76379.js +1 -0
  58. package/lib/{manage.63cd038d.mjs → manage.b3462cce.mjs} +46 -44
  59. package/lib/{messages.messagetemplate.0935e5a3.mjs → messages.messagetemplate.ceeb3f47.mjs} +2 -2
  60. package/lib/{messages.messagetemplate.50334e5f.js → messages.messagetemplate.e52ab470.js} +1 -1
  61. package/lib/messages.sendplan.18bda3c5.js +1 -0
  62. package/lib/{messages.sendplan.61edcc7f.mjs → messages.sendplan.c6821911.mjs} +97 -25
  63. package/lib/{messages.sendrecord.09a1d1cd.js → messages.sendrecord.12028921.js} +2 -2
  64. package/lib/{messages.sendrecord.1c48aa6e.mjs → messages.sendrecord.f7630ebd.mjs} +3 -3
  65. package/lib/{messages.templatelibrary.f31e8d58.mjs → messages.templatelibrary.4654886e.mjs} +1 -1
  66. package/lib/{messages.templatelibrary.f5952edd.js → messages.templatelibrary.cd20c05b.js} +1 -1
  67. package/lib/{mobile.designer.componentstree.70fd4c93.mjs → mobile.designer.componentstree.5a329caa.mjs} +1 -1
  68. package/lib/{mobile.designer.componentstree.f4a901e4.js → mobile.designer.componentstree.888d8646.js} +1 -1
  69. package/lib/{mobile.designer.menutree.4d4e059b.js → mobile.designer.menutree.646ebcdd.js} +1 -1
  70. package/lib/{mobile.designer.menutree.7d3b783d.mjs → mobile.designer.menutree.da4c05f4.mjs} +1 -1
  71. package/lib/moveFile.345aee1d.js +1 -0
  72. package/lib/{moveFile.b66805f8.mjs → moveFile.864ea48f.mjs} +48 -46
  73. package/lib/{page.build.09137386.mjs → page.build.39202359.mjs} +674 -668
  74. package/lib/{page.build.1b771761.js → page.build.66e190a5.js} +3 -3
  75. package/lib/{page.designer.componentstree.a256ff7a.mjs → page.designer.componentstree.2d5a887a.mjs} +1 -1
  76. package/lib/{page.designer.componentstree.341908b2.js → page.designer.componentstree.ec3dcbc1.js} +1 -1
  77. package/lib/{page.designer.menutree.e4ce1e90.mjs → page.designer.menutree.1e642711.mjs} +2 -2
  78. package/lib/{page.designer.menutree.71c18258.js → page.designer.menutree.6368c636.js} +1 -1
  79. package/lib/{page.designer.page.d2d6b614.js → page.designer.page.2dac64ca.js} +1 -1
  80. package/lib/{page.designer.page.559113a9.mjs → page.designer.page.4cf4b1bf.mjs} +5 -5
  81. package/lib/{result.16da7693.mjs → result.3c1fc8b7.mjs} +45 -43
  82. package/lib/result.cf75c6c3.js +1 -0
  83. package/lib/{router.config.70680261.mjs → router.config.b78ec9f8.mjs} +5 -5
  84. package/lib/{router.config.1e67a1c3.js → router.config.d746d115.js} +1 -1
  85. package/lib/{solution.application.8d6c84e8.js → solution.application.15e813b4.js} +1 -1
  86. package/lib/{solution.application.e6b5dc4f.mjs → solution.application.5d02d1cd.mjs} +16 -10
  87. package/lib/solution.approvalflow.1f11ad8f.js +1 -0
  88. package/lib/{solution.approvalflow.8572122d.mjs → solution.approvalflow.24a50af0.mjs} +20 -14
  89. package/lib/solution.dict.28214a3e.js +1 -0
  90. package/lib/{solution.dict.088a1e72.mjs → solution.dict.77cb1ad2.mjs} +41 -37
  91. package/lib/{solution.menu.fa48a7e8.js → solution.menu.12b9f56d.js} +1 -1
  92. package/lib/{solution.menu.e58922fe.mjs → solution.menu.72498250.mjs} +1 -1
  93. package/lib/{solution.plugin.ae6df926.mjs → solution.plugin.76b603be.mjs} +18 -12
  94. package/lib/solution.plugin.e7b31aff.js +1 -0
  95. package/lib/solution.processflow.aa84ec06.js +1 -0
  96. package/lib/{solution.processflow.a52fd47c.mjs → solution.processflow.d336bd7b.mjs} +15 -9
  97. package/lib/{solution.role.7b3e7030.mjs → solution.role.05efb1b4.mjs} +18 -12
  98. package/lib/solution.role.d07e1813.js +1 -0
  99. package/lib/{solution.webresources.88c4483b.mjs → solution.webresources.1b0f8550.mjs} +247 -79
  100. package/lib/solution.webresources.5b4abeb5.js +2 -0
  101. package/lib/{solution.workflow.2530073b.mjs → solution.workflow.6d081d1f.mjs} +18 -12
  102. package/lib/solution.workflow.91b42158.js +1 -0
  103. package/lib/style.css +2 -2
  104. package/lib/{system.duplicatechecking.bef2b20c.js → system.duplicatechecking.719ddda1.js} +1 -1
  105. package/lib/{system.duplicatechecking.a0da805e.mjs → system.duplicatechecking.af9318aa.mjs} +1 -1
  106. package/lib/{system.notice.da2c944c.mjs → system.notice.12fa4d1c.mjs} +4 -4
  107. package/lib/{system.notice.72e0615f.js → system.notice.9385577f.js} +1 -1
  108. package/lib/{system.noticereceived.54c17b73.js → system.noticereceived.3dec9e12.js} +1 -1
  109. package/lib/{system.noticereceived.30dab7d1.mjs → system.noticereceived.7cfcceb4.mjs} +1 -1
  110. package/lib/{system.team.367bf5e7.mjs → system.team.3b0fcc60.mjs} +1 -1
  111. package/lib/{system.team.cf1c1558.js → system.team.c0d623a5.js} +1 -1
  112. package/lib/{system.teammembers.63f21557.js → system.teammembers.c99ef01b.js} +1 -1
  113. package/lib/{system.teammembers.851ce63b.mjs → system.teammembers.d0dc3f12.mjs} +2 -2
  114. package/lib/{system.user.bff7cc2f.js → system.user.75fa57c3.js} +1 -1
  115. package/lib/{system.user.a1ff367b.mjs → system.user.78a45735.mjs} +1 -1
  116. package/lib/versionControl.c39356b7.js +1 -0
  117. package/lib/{versionControl.6cd18867.mjs → versionControl.d572bc44.mjs} +52 -50
  118. package/lib/{versionEdit.910d2e2f.mjs → versionEdit.8b059461.mjs} +45 -43
  119. package/lib/versionEdit.d56cde69.js +1 -0
  120. package/lib/view.build.14c0d411.js +1 -0
  121. package/lib/{view.build.20e9aec0.mjs → view.build.5b9241fd.mjs} +193 -190
  122. package/lib/viewList.215afeb2.js +1 -0
  123. package/lib/{viewList.a4909732.mjs → viewList.b090d62f.mjs} +11 -12
  124. package/package.json +1 -1
  125. package/lib/addPermission.5bfc7e11.js +0 -1
  126. package/lib/attribute.919cb93e.js +0 -1
  127. package/lib/components.table.a0ac819e.js +0 -8
  128. package/lib/components.table.d79f5fa3.mjs +0 -4650
  129. package/lib/components.viewformdetails.6e66cc83.js +0 -1
  130. package/lib/copy.3b06d60f.mjs +0 -572
  131. package/lib/copy.fa2fcb22.js +0 -1
  132. package/lib/createFile.94329169.js +0 -1
  133. package/lib/editForm.e284e5ec.js +0 -1
  134. package/lib/extendedAttributes.b1107f6c.js +0 -1
  135. package/lib/fileSearch.4722ac3b.js +0 -1
  136. package/lib/form.build.5461409b.js +0 -1
  137. package/lib/form.designer.build.67b316e1.js +0 -1
  138. package/lib/formFiled.ef26328d.js +0 -1
  139. package/lib/index.fe18e32c.js +0 -8
  140. package/lib/layoutBlocks.1b71d988.js +0 -1
  141. package/lib/layouts.ae25c583.js +0 -2
  142. package/lib/main.44d72b90.js +0 -1
  143. package/lib/main.47957168.js +0 -1
  144. package/lib/manage.80871daf.js +0 -1
  145. package/lib/messages.sendplan.60929f46.js +0 -1
  146. package/lib/moveFile.d79f7fd9.js +0 -1
  147. package/lib/result.9cb6c2f1.js +0 -1
  148. package/lib/solution.approvalflow.cce2f064.js +0 -1
  149. package/lib/solution.dict.1d5195d0.js +0 -1
  150. package/lib/solution.plugin.5d6d29cf.js +0 -1
  151. package/lib/solution.processflow.bfa4897c.js +0 -1
  152. package/lib/solution.role.2eff83a1.js +0 -1
  153. package/lib/solution.webresources.bc00603d.js +0 -1
  154. package/lib/solution.workflow.59e0e697.js +0 -1
  155. package/lib/versionControl.47cc1330.js +0 -1
  156. package/lib/versionEdit.977faa93.js +0 -1
  157. package/lib/view.build.a48a14b0.js +0 -1
  158. package/lib/viewList.71f866da.js +0 -1
@@ -1,10 +1,10 @@
1
1
  import { m as c, n as u } from "./components.chartbi.7356b244.mjs";
2
- import { g as p, h as g, i as h, j as f, k as y } from "./http.message.ceb0a1c6.mjs";
3
- import { o as b } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
4
- import { t as v } from "./utils.mixins.js.be01e599.mjs";
2
+ import { g, h as p, i as h, j as f, k as y, l as b } from "./http.message.00e72e09.mjs";
3
+ import { o as v } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
4
+ import { t as _ } from "./utils.mixins.js.be01e599.mjs";
5
5
  import { d as m } from "./http.codegeneratemanage.b123bab3.mjs";
6
6
  import { a as d } from "./http.main.aefea27d.mjs";
7
- const _ = {
7
+ const $ = {
8
8
  data() {
9
9
  return {
10
10
  tableColumns: [
@@ -37,6 +37,15 @@ const _ = {
37
37
  align: "left",
38
38
  showOverflowTooltip: !0
39
39
  },
40
+ {
41
+ transKey: "gd.flow.state",
42
+ prop: "stateCodes",
43
+ width: "120",
44
+ label: "\u72B6\u6001",
45
+ type: "slot",
46
+ slotType: "stateCodes",
47
+ align: "left"
48
+ },
40
49
  {
41
50
  transKey: "gd.msg.sendPlan.sendObject",
42
51
  prop: "sendObject",
@@ -334,6 +343,23 @@ const _ = {
334
343
  icon: "el-icon-delete",
335
344
  btnType: "danger",
336
345
  name: "sysMsgSendPlan:delete"
346
+ },
347
+ {
348
+ displayName: "\u542F\u7528",
349
+ functionName: "enable",
350
+ show: !0,
351
+ transKey: "gd.btn.enable",
352
+ icon: "el-icon-video-play",
353
+ name: "sysMsgSendPlan:changeStatus"
354
+ },
355
+ {
356
+ displayName: "\u505C\u7528",
357
+ functionName: "deactivated",
358
+ show: !0,
359
+ btnType: "danger",
360
+ icon: "el-icon-discover",
361
+ transKey: "gd.btn.deactivate",
362
+ name: "sysMsgSendPlan:changeStatus"
337
363
  }
338
364
  ],
339
365
  formButtons: [{
@@ -376,7 +402,7 @@ const k = {
376
402
  }
377
403
  },
378
404
  name: "GdSysMsgSendPlan",
379
- mixins: [v, _],
405
+ mixins: [_, $],
380
406
  data() {
381
407
  return {
382
408
  statu: !1,
@@ -397,7 +423,7 @@ const k = {
397
423
  loadData: (s, e) => {
398
424
  this.sorter = e;
399
425
  let t = [...this.oselectedRowKeys];
400
- return this.isLoading = !0, p(Object.assign(s, this.getQueryParam)).then((a) => {
426
+ return this.isLoading = !0, g(Object.assign(s, this.getQueryParam)).then((a) => {
401
427
  this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1;
402
428
  let l = a.data && a.data.rows ? a.data.rows : [];
403
429
  l.forEach((i, r) => {
@@ -415,7 +441,8 @@ const k = {
415
441
  this.$refs.table && this.$refs.table.updateSelect(t, []), this.selectedRowKeys = [...t], this.onSelectChange(t, []);
416
442
  }, 10)), n;
417
443
  });
418
- }
444
+ },
445
+ disableBtn: ["\u542F\u7528", "\u505C\u7528"]
419
446
  };
420
447
  },
421
448
  computed: {
@@ -431,11 +458,14 @@ const k = {
431
458
  getFormColumns() {
432
459
  return [...this.formColumns, ...this.formColumnsArr];
433
460
  },
461
+ getTableButtons() {
462
+ return this.tableButtons.filter((s) => (s.show = !this.disableBtn.includes(s.displayName), !0));
463
+ },
434
464
  ...c(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
435
465
  },
436
466
  components: {
437
- editForm: () => Promise.resolve().then(() => C),
438
- editFormTemplate: () => import("./messages.messagetemplate.0935e5a3.mjs").then((s) => s.e)
467
+ editForm: () => Promise.resolve().then(() => K),
468
+ editFormTemplate: () => import("./messages.messagetemplate.ceeb3f47.mjs").then((s) => s.e)
439
469
  },
440
470
  created() {
441
471
  this.getTableList();
@@ -448,7 +478,7 @@ const k = {
448
478
  },
449
479
  getTableList() {
450
480
  let s = this.tableLists.filter((e) => e.tablename === "msg_messagesndplan")[0];
451
- s !== void 0 && b({
481
+ s !== void 0 && v({
452
482
  codeGenId: s.id
453
483
  }).then((e) => {
454
484
  this.fieldData = e.data;
@@ -541,7 +571,7 @@ const k = {
541
571
  t();
542
572
  return;
543
573
  }
544
- let a = [], l = g({
574
+ let a = [], l = p({
545
575
  ids: this.selectedRowKeys.join(",")
546
576
  }).then((n) => n);
547
577
  a.push(l), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((n) => {
@@ -550,8 +580,48 @@ const k = {
550
580
  i.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") + i[0].message), this.refresh();
551
581
  });
552
582
  },
583
+ enable() {
584
+ this.editStateCodes({ row: this.selectedRows[0] });
585
+ },
586
+ deactivated() {
587
+ this.editStateCodes({ row: this.selectedRows[0] });
588
+ },
589
+ editStateCodes({ column: s, row: e }) {
590
+ 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?"), a = e.statecodes != 1 ? this.$i18nt("gd.https.enableOk", "\u786E\u8BA4\u505C\u7528") : this.$i18nt("gd.https.deactivateOk", "\u786E\u8BA4\u542F\u7528");
591
+ this.$confirm(t, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
592
+ confirmButtonText: a,
593
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
594
+ showClose: !1,
595
+ confirmButtonLoading: !1,
596
+ cancelButtonLoading: !1,
597
+ closeOnClickModal: !1,
598
+ type: "warning",
599
+ confirmButtonClass: "el-button--danger",
600
+ customClass: "custom-alert",
601
+ callback: () => {
602
+ },
603
+ beforeClose: (l, n, i) => {
604
+ if (l !== "confirm") {
605
+ i();
606
+ return;
607
+ }
608
+ n.confirmButtonLoading = !0, n.cancelButtonLoading = !0, n.showCancelButton = !1, h({ ids: String(e.id), state: e.statecodes == 1 ? 0 : 1 }).then((r) => {
609
+ i(), n.confirmButtonLoading = !1, n.cancelButtonLoading = !1, n.showCancelButton = !0, r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message);
610
+ });
611
+ }
612
+ });
613
+ },
553
614
  onSelectChange(s, e) {
554
- this.selectedRowKeys = s, this.selectedRows = e, this.isChangeSize || (this.oselectedRowKeys = s), this.$emit("onSelectChange", s, e);
615
+ if (this.selectedRowKeys = s, this.selectedRows = e, this.isChangeSize || (this.oselectedRowKeys = s), this.$emit("onSelectChange", s, e), s.length === 0) {
616
+ this.disableBtn = ["\u542F\u7528", "\u505C\u7528"];
617
+ return;
618
+ }
619
+ if (e.length > 1) {
620
+ this.disableBtn = ["\u542F\u7528", "\u505C\u7528"];
621
+ return;
622
+ }
623
+ let t = [], a = e.filter((n) => n.statecodes == 1), l = e.filter((n) => n.statecodes == 0);
624
+ a.length == e.length ? t = ["\u542F\u7528"] : l.length == e.length && (t = ["\u505C\u7528"]), this.disableBtn = t;
555
625
  },
556
626
  refresh() {
557
627
  this.$refs.table.refresh();
@@ -569,14 +639,14 @@ const k = {
569
639
  }
570
640
  }
571
641
  };
572
- var $ = function() {
642
+ var T = function() {
573
643
  var e = this, t = e._self._c;
574
644
  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 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
575
645
  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.msg.sendPlan.name", "\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(a) {
576
646
  return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.refresh.apply(null, arguments);
577
647
  } }, model: { value: e.queryParam.name, callback: function(a) {
578
648
  e.$set(e.queryParam, "name", a);
579
- }, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
649
+ }, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [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)])];
580
650
  }, proxy: !0 }, { key: "name", fn: function({ column: a, row: l }) {
581
651
  return [t("gd-tooltip", { attrs: { rowKey: "name", row: l, highlight: "" }, on: { click: e.editForm } })];
582
652
  } }, { key: "msg_MessagetemplateIdName", fn: function({ column: a, row: l }) {
@@ -591,24 +661,26 @@ var $ = function() {
591
661
  })], 2), t("div", { staticClass: "line1", attrs: { slot: "reference" }, slot: "reference" }, [e._l(a.row.sendObjectList, function(l, n) {
592
662
  return [t("span", [n !== 0 ? t("span", { staticStyle: { padding: "0 4px 0 2px" } }, [e._v(",")]) : e._e(), t("span", [e._v(e._s(l.name))])])];
593
663
  })], 2)])];
664
+ } }, { key: "stateCodes", fn: function(a) {
665
+ return [e.dictSwitch(a.row.statecodes, "state_code") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(a.row.statecodes, "state_code") } }, [e._v(" " + e._s(e._f("dictType")("state_code", a.row.statecodes)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("state_code", a.row.statecodes)))])];
594
666
  } }, { key: "filtering", fn: function({ colse: a, visible: l }) {
595
667
  return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: a, visible: l }, on: { save: e.saveQueries } })];
596
668
  } }]) })], 1), t("editForm", { ref: "editForm", attrs: { fieldData: e.fieldData }, on: { ok: e.refresh } }), t("editFormTemplate", { ref: "editFormTemplate", on: { ok: e.refresh } }), t("gd-middleware", { ref: "middleware", on: { ok: e.refresh } })], 1);
597
- }, D = [], T = /* @__PURE__ */ u(
669
+ }, D = [], w = /* @__PURE__ */ u(
598
670
  k,
599
- $,
671
+ T,
600
672
  D,
601
673
  !1,
602
674
  null,
603
- "8518a0f6",
675
+ "4a2fd245",
604
676
  null,
605
677
  null
606
678
  );
607
- const o = T.exports;
679
+ const o = w.exports;
608
680
  o.install = function(s) {
609
681
  s.component(o.name, o);
610
682
  };
611
- const w = {
683
+ const P = {
612
684
  props: {
613
685
  fieldData: {
614
686
  type: Array,
@@ -804,7 +876,7 @@ const w = {
804
876
  }));
805
877
  },
806
878
  getDetail() {
807
- this.confirmLoading = !0, h({
879
+ this.confirmLoading = !0, f({
808
880
  id: this.detail.id
809
881
  }).then((s) => {
810
882
  if (s.code === 200) {
@@ -901,7 +973,7 @@ const w = {
901
973
  remark: ""
902
974
  }
903
975
  );
904
- (this.type == 1 ? f : y)(t).then((l) => {
976
+ (this.type == 1 ? y : b)(t).then((l) => {
905
977
  l.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok", t), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + l.message), this.confirmLoading = !1;
906
978
  });
907
979
  }
@@ -1035,17 +1107,17 @@ var F = function() {
1035
1107
  e.$set(a, "endtime", n);
1036
1108
  }, expression: "item.endtime" } })], 1);
1037
1109
  }), 0)], 1)], 1)], 1)], 2)], 1)], 1), t("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
1038
- }, P = [], S = /* @__PURE__ */ u(
1039
- w,
1040
- F,
1110
+ }, C = [], S = /* @__PURE__ */ u(
1041
1111
  P,
1112
+ F,
1113
+ C,
1042
1114
  !1,
1043
1115
  null,
1044
1116
  "b3d2d9e7",
1045
1117
  null,
1046
1118
  null
1047
1119
  );
1048
- const x = S.exports, C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1120
+ const x = S.exports, K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1049
1121
  __proto__: null,
1050
1122
  default: x
1051
1123
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("./components.chartbi.13a8a7b5.js"),l=require("./http.message.87f319d7.js"),p=require("./http.main.2f8a6936.js"),u=require("./utils.mixins.js.750ca50e.js"),g={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.msg.sendRecord.name",prop:"name",label:"\u540D\u79F0",width:"160",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.msg.sendRecord.sendType",prop:"sendType",width:"120",label:"\u53D1\u9001\u65B9\u5F0F",type:"slot",slotType:"sendType",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.sendRecord.about",prop:"aboutRecord_AboutId",width:"160",label:"\u5173\u4E8E",align:"left",type:"slot",slotType:"aboutRecord_AboutId"},{transKey:"gd.msg.sendRecord.msgStatus",prop:"msgStatus",width:"160",label:"\u6D88\u606F\u72B6\u6001",type:"slot",slotType:"msgStatus",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.sendRecord.isAutomatic",prop:"isAuto",width:"120",label:"\u662F\u5426\u81EA\u52A8",type:"slot",slotType:"isAuto",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.sendRecord.plannedTime",prop:"scheduledstartedon",width:"160",label:"\u8BA1\u5212\u53D1\u9001\u65F6\u95F4",align:"center"},{transKey:"gd.msg.sendRecord.actualTime",prop:"actualon",width:"160",label:"\u5B9E\u9645\u53D1\u9001\u65F6\u95F4",align:"center"},{transKey:"gd.msg.sendRecord.updatedTime",prop:"updatedtime",width:"160",label:"\u66F4\u65B0\u65F6\u95F4",align:"center"},{transKey:"gd.msg.sendRecord.createdTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],formColumns:[{transKey:"gd.msg.sendRecord.name",prop:"name",label:"\u540D\u79F0",effectType:"input",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.msg.sendRecord.sendType",effectType:"select",prop:"sendtype",label:"\u53D1\u9001\u65B9\u5F0F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"SendType",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.msg.sendRecord.msgSendingPlan",effectType:"selectFkMultiple",prop:"msg_messagesendplanid",label:"\u6D88\u606F\u53D1\u9001\u8BA1\u5212",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",fkEntityName:"msg_messagesendplan",disabled:!1,multiple:!1,rules:[]},{transKey:"gd.user.actualTime",prop:"actualon",effectType:"datetime",label:"\u5B9E\u9645\u53D1\u9001\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-DD HH:mm:ss",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.msg.sendRecord.msgTemplate",effectType:"selectFkMultiple",prop:"msg_messagetemplateid",label:"\u6D88\u606F\u6A21\u677F",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",fkEntityName:"msg_messagetemplate",disabled:!1,multiple:!1,rules:[]},{transKey:"gd.msg.sendRecord.msgStatus",effectType:"select",prop:"msgstatus",label:"\u6D88\u606F\u72B6\u6001",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"MessageStatus",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.msg.sendRecord.about",effectType:"selectFkMultiple",prop:"aboutrecord_aboutid",label:"\u5173\u4E8E",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",fkEntityName:"sys_approval_task,vis_visittask,mkt_campaigntasklist",disabled:!1,multiple:!1,rules:[]},{transKey:"gd.msg.sendRecord.isAutomatic",prop:"isauto",effectType:"switch",label:"\u662F\u5426\u81EA\u52A8",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.msg.sendRecord.plannedTime",prop:"scheduledstartedon",effectType:"datetime",label:"\u8BA1\u5212\u53D1\u9001\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-DD HH:mm:ss",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.msg.sendRecord.updatedTime",prop:"updatedtime",effectType:"datetime",label:"\u66F4\u65B0\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-DD HH:mm:ss",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.msg.sendRecord.sendObject",effectType:"textarea",prop:"sendobjectlist",label:"\u53D1\u9001\u5BF9\u8C61\u96C6",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.msg.sendRecord.remarks",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.msg.sendRecord.content",effectType:"textarea",prop:"messagecontent",label:"\u6A21\u677F\u5185\u5BB9",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysMsgSendRecord:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysMsgSendRecord:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysMsgSendRecord:delete"},{displayName:"\u6D88\u606F\u53D1\u9001",functionName:"sending",show:!0,transKey:"gd.msg.sendRecord.msgsending",icon:"mail",name:"sysMsgSendRecord:sending"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.msg.sendRecord.sendType",prop:"sendType",label:"\u53D1\u9001\u65B9\u5F0F",effectType:"selectMultiple",dictTypeCode:"SendType",rules:[]},{transKey:"gd.msg.sendRecord.actualTime",prop:"actualOn",label:"\u5B9E\u9645\u53D1\u9001\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]},{transKey:"gd.msg.sendRecord.plannedTime",prop:"scheduledStartedOn",label:"\u8BA1\u5212\u53D1\u9001\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]},{transKey:"gd.msg.sendRecord.msgStatus",prop:"msgStatus",label:"\u6D88\u606F\u72B6\u6001",effectType:"selectMultiple",dictTypeCode:"MessageStatus",rules:[]},{transKey:"gd.msg.sendRecord.createdTime",prop:"createdTime",label:"\u521B\u5EFA\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]},{transKey:"gd.msg.sendRecord.sendObject",prop:"sendObjectList",label:"\u53D1\u9001\u5BF9\u8C61\u96C6",effectType:"textarea",rules:[]}]}}};const m={props:{height:{type:Number,default:0}},name:"GdSysMsgSendRecord",mixins:[u.tablesFilter,g],data(){return{statu:!1,formLoading:!1,send:null,selectedRowKeys:[],isLoading:!1,pageSize:10,isChangeSize:!1,ppShow:!0,advanced:!1,queryParam:{},oselectedRowKeys:[],transKey:"gd.btn.edit",loadData:(a,e)=>{this.sorter=e;let s=[...this.oselectedRowKeys];return this.isLoading=!0,l.msgSendRecordPage(Object.assign(a,this.getQueryParam)).then(t=>(this.ppShow=!0,this.isLoading=!1,this.isChangeSize=!1,t.success&&this.openMode==2&&(this.$emit("changeData",t.data.rows),setTimeout(()=>{this.$refs.table&&this.$refs.table.updateSelect(s,[]),this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10)),t.data))}}},computed:{getHeight(){return this.height},getQueryParam(){let a=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))a.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let s=this.queryParam[e],t=s[0].split(" ")[0],r=s[1].split(" ")[0];a.set(`${e}Start`,`${t} 00:00:00`),a.set(`${e}End`,`${r} 23:59:59`)}}else a.set(e,this.queryParam[e]);return Object.fromEntries(a)},...c.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode","tableLists"])},methods:{aboutRecord(a){if(this.statu)return;let e=this.tableLists.filter(r=>r.tablename===a.aboutrecord_abouttable.toLowerCase())[0];if(e===void 0){this.$message.error(this.$i18nt("gd.solution.dataErrorTip","\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));return}let s={tableId:e.id,data:[{id:a.aboutrecord_aboutid}]};this.statu=!0;const t=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});this.$refs.middleware.init(s).then(r=>{this.statu=!1,t.close()})},saveQueries(a){this.queryParam={...a},this.refresh()},editForm(a){this.transKey="gd.btn.edit",this.formLoading=!0,this.$refs.editForm.open(a).then(e=>{this.initForm(e,a)})},initForm({instance:a,done:e},s){l.msgSendRecordDetails({id:s.id}).then(t=>{t.code===200&&(e(Object.assign({...s},{sendtype:t.data.sendtype?String(t.data.sendtype):"",msgstatus:t.data.msgstatus?String(t.data.msgstatus):"",isauto:t.data.isauto===1})),this.getFkDada(t.data))})},getFkDada(a){let e=[];if(a.msg_messagesendplanid){let s=this.searchData({id:a.msg_messagesendplanid,fkEntityName:"msg_messagesendplan"},"msg_messagesendplanid");e.push(s)}if(a.msg_messagetemplateid){let s=this.searchData({id:a.msg_messagetemplateid,fkEntityName:"msg_messagetemplate"},"msg_messagetemplateid");e.push(s)}if(a.aboutrecord_aboutid){let s=this.searchData({id:a.aboutrecord_aboutid,fkEntityName:a.aboutrecord_abouttable},"aboutrecord_aboutid");e.push(s)}if(e.length===0){this.formLoading=!1;return}Promise.all(e).then(s=>{s.forEach(t=>{const r=this.formColumns.filter(n=>n.prop===t.prop)[0];t.res.code===200&&r&&r.setData&&(t.res.data.map(n=>(n.tableName=t.data.fkEntityName,n)),r.setData(t.res.data))}),this.formLoading=!1})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:a,record:e,btn:s},t,r){this.formLoading=!0,(e?l.msgSendRecordEdit:l.msgSendRecordAdd)(a).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),r(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,e,s)=>{this.delHand(a,e,s)}})},delHand(a,e,s){if(a!=="confirm"){s();return}let t=[],r=l.msgSendRecordDel({ids:this.selectedRowKeys.join(",")}).then(n=>n);t.push(r),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(t).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const i=n.filter(o=>!o.success);i.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")+i[0].message),this.refresh()})},sending(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.msg.sendRecord.msgsendingTip","\u662F\u5426\u53D1\u9001\u6D88\u606F?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.confirm","\u786E\u5B9A"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,e,s)=>{this.sendHand(a,e,s)}})},sendHand(a,e,s){let t=this;if(a!=="confirm"){s();return}let r=[];t.selectedRowKeys.forEach(n=>{let i=t.sendMsg(n);r.push(i)}),Promise.all(r).then(n=>{s();let i="";n.forEach((o,b)=>{i+=o+`
2
- \r`}),t.$message.info(i),t.refresh()})},sendMsg(a){return l.msgSendRecordSendMsg({id:a}).then(e=>e)},searchData(a,e){return p.baseFkList(a).then(s=>({res:s,data:a,prop:e}))},onSelectChange(a,e){this.selectedRowKeys=a,this.selectedRows=e,this.isChangeSize||(this.oselectedRowKeys=a),this.$emit("onSelectChange",a,e)},refresh(){this.$refs.table.refresh()},dictSwitch(a,e){let s=this.$options.filters.dictData(e).filter(t=>t.code==a)[0];return s&&s.colour?s.colour:null},getDict(a){return this.$options.filters.dictData(a)},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var h=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.msg.sendRecord.sendMode","\u53D1\u9001\u65B9\u5F0F"),"reserve-keyword":"",clearable:"",multiple:"","collapse-tags":!0},model:{value:e.queryParam.sendType,callback:function(t){e.$set(e.queryParam,"sendType",t)},expression:"queryParam.sendType"}},e._l(e.getDict("SendType"),function(t){return s("el-option",{key:t.code,attrs:{value:t.code,label:e.$i18nt(t.prefix?`${t.prefix}.${t.transkey}`:`Dynamics.${t.transkey}`,t.name)}},[e._v(" "+e._s(e.$i18nt(t.prefix?`${t.prefix}.${t.transkey}`:`Dynamics.${t.transkey}`,t.name))+" ")])}),1),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:t,row:r}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"sendType",fn:function(t){return[e.dictSwitch(t.row.sendtype,"sendtype")?s("el-tag",{style:e._f("dictColor")("sendtype",t.row.sendtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("SendType",t.row.sendtype))+" ")]):s("span",[e._v(e._s(e._f("dictType")("SendType",t.row.sendtype)))])]}},{key:"aboutRecord_AboutId",fn:function({column:t,row:r}){return[s("gd-tooltip",{attrs:{rowKey:"aboutrecord_aboutidname",row:r,highlight:""},on:{click:function(n){return e.aboutRecord(r)}}})]}},{key:"msgStatus",fn:function(t){return[e.dictSwitch(t.row.msgstatus,"MessageStatus")?s("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(t.row.msgstatus,"MessageStatus")}},[e._v(" "+e._s(e._f("dictType")("MessageStatus",t.row.msgstatus))+" ")]):e._e()]}},{key:"isAuto",fn:function(t){return[e.dictSwitch(t.row.isauto,"yes_or_no")?s("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(t.row.isauto,"yes_or_no")}},[e._v(" "+e._s(e._f("dictType")("yes_or_no",t.row.isauto))+" ")]):s("span",[e._v(e._s(e._f("dictType")("yes_or_no",t.row.isauto)))])]}},{key:"filtering",fn:function({colse:t,visible:r}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:t,visible:r},on:{save:e.saveQueries}})]}}])})],1),s("gd-middleware",{ref:"middleware",on:{ok:e.refresh}}),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode,inline:!0,needLoad:!0,width:"1000px"},on:{sbumit:e.sbumit}})],1)},f=[],y=c.normalizeComponent(m,h,f,!1,null,"6b568d9e",null,null);const d=y.exports;d.install=function(a){a.component(d.name,d)};exports.GDpackage=d;
1
+ "use strict";const c=require("./components.chartbi.13a8a7b5.js"),i=require("./http.message.73c3ed85.js"),p=require("./http.main.2f8a6936.js"),u=require("./utils.mixins.js.750ca50e.js"),g={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.msg.sendRecord.name",prop:"name",label:"\u540D\u79F0",width:"160",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.msg.sendRecord.sendType",prop:"sendType",width:"120",label:"\u53D1\u9001\u65B9\u5F0F",type:"slot",slotType:"sendType",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.sendRecord.about",prop:"aboutRecord_AboutId",width:"160",label:"\u5173\u4E8E",align:"left",type:"slot",slotType:"aboutRecord_AboutId"},{transKey:"gd.msg.sendRecord.msgStatus",prop:"msgStatus",width:"160",label:"\u6D88\u606F\u72B6\u6001",type:"slot",slotType:"msgStatus",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.sendRecord.isAutomatic",prop:"isAuto",width:"120",label:"\u662F\u5426\u81EA\u52A8",type:"slot",slotType:"isAuto",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.sendRecord.plannedTime",prop:"scheduledstartedon",width:"160",label:"\u8BA1\u5212\u53D1\u9001\u65F6\u95F4",align:"center"},{transKey:"gd.msg.sendRecord.actualTime",prop:"actualon",width:"160",label:"\u5B9E\u9645\u53D1\u9001\u65F6\u95F4",align:"center"},{transKey:"gd.msg.sendRecord.updatedTime",prop:"updatedtime",width:"160",label:"\u66F4\u65B0\u65F6\u95F4",align:"center"},{transKey:"gd.msg.sendRecord.createdTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],formColumns:[{transKey:"gd.msg.sendRecord.name",prop:"name",label:"\u540D\u79F0",effectType:"input",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.msg.sendRecord.sendType",effectType:"select",prop:"sendtype",label:"\u53D1\u9001\u65B9\u5F0F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"SendType",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.msg.sendRecord.msgSendingPlan",effectType:"selectFkMultiple",prop:"msg_messagesendplanid",label:"\u6D88\u606F\u53D1\u9001\u8BA1\u5212",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",fkEntityName:"msg_messagesendplan",disabled:!1,multiple:!1,rules:[]},{transKey:"gd.user.actualTime",prop:"actualon",effectType:"datetime",label:"\u5B9E\u9645\u53D1\u9001\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-DD HH:mm:ss",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.msg.sendRecord.msgTemplate",effectType:"selectFkMultiple",prop:"msg_messagetemplateid",label:"\u6D88\u606F\u6A21\u677F",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",fkEntityName:"msg_messagetemplate",disabled:!1,multiple:!1,rules:[]},{transKey:"gd.msg.sendRecord.msgStatus",effectType:"select",prop:"msgstatus",label:"\u6D88\u606F\u72B6\u6001",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"MessageStatus",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.msg.sendRecord.about",effectType:"selectFkMultiple",prop:"aboutrecord_aboutid",label:"\u5173\u4E8E",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",fkEntityName:"sys_approval_task,vis_visittask,mkt_campaigntasklist",disabled:!1,multiple:!1,rules:[]},{transKey:"gd.msg.sendRecord.isAutomatic",prop:"isauto",effectType:"switch",label:"\u662F\u5426\u81EA\u52A8",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.msg.sendRecord.plannedTime",prop:"scheduledstartedon",effectType:"datetime",label:"\u8BA1\u5212\u53D1\u9001\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-DD HH:mm:ss",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.msg.sendRecord.updatedTime",prop:"updatedtime",effectType:"datetime",label:"\u66F4\u65B0\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-DD HH:mm:ss",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.msg.sendRecord.sendObject",effectType:"textarea",prop:"sendobjectlist",label:"\u53D1\u9001\u5BF9\u8C61\u96C6",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.msg.sendRecord.remarks",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.msg.sendRecord.content",effectType:"textarea",prop:"messagecontent",label:"\u6A21\u677F\u5185\u5BB9",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysMsgSendRecord:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysMsgSendRecord:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysMsgSendRecord:delete"},{displayName:"\u6D88\u606F\u53D1\u9001",functionName:"sending",show:!0,transKey:"gd.msg.sendRecord.msgsending",icon:"mail",name:"sysMsgSendRecord:sending"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.msg.sendRecord.sendType",prop:"sendType",label:"\u53D1\u9001\u65B9\u5F0F",effectType:"selectMultiple",dictTypeCode:"SendType",rules:[]},{transKey:"gd.msg.sendRecord.actualTime",prop:"actualOn",label:"\u5B9E\u9645\u53D1\u9001\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]},{transKey:"gd.msg.sendRecord.plannedTime",prop:"scheduledStartedOn",label:"\u8BA1\u5212\u53D1\u9001\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]},{transKey:"gd.msg.sendRecord.msgStatus",prop:"msgStatus",label:"\u6D88\u606F\u72B6\u6001",effectType:"selectMultiple",dictTypeCode:"MessageStatus",rules:[]},{transKey:"gd.msg.sendRecord.createdTime",prop:"createdTime",label:"\u521B\u5EFA\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]},{transKey:"gd.msg.sendRecord.sendObject",prop:"sendObjectList",label:"\u53D1\u9001\u5BF9\u8C61\u96C6",effectType:"textarea",rules:[]}]}}};const m={props:{height:{type:Number,default:0}},name:"GdSysMsgSendRecord",mixins:[u.tablesFilter,g],data(){return{statu:!1,formLoading:!1,send:null,selectedRowKeys:[],isLoading:!1,pageSize:10,isChangeSize:!1,ppShow:!0,advanced:!1,queryParam:{},oselectedRowKeys:[],transKey:"gd.btn.edit",loadData:(a,e)=>{this.sorter=e;let s=[...this.oselectedRowKeys];return this.isLoading=!0,i.msgSendRecordPage(Object.assign(a,this.getQueryParam)).then(t=>(this.ppShow=!0,this.isLoading=!1,this.isChangeSize=!1,this.getAddAllTable(),t.success&&this.openMode==2&&(this.$emit("changeData",t.data.rows),setTimeout(()=>{this.$refs.table&&this.$refs.table.updateSelect(s,[]),this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10)),t.data))}}},computed:{getHeight(){return this.height},getQueryParam(){let a=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))a.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let s=this.queryParam[e],t=s[0].split(" ")[0],r=s[1].split(" ")[0];a.set(`${e}Start`,`${t} 00:00:00`),a.set(`${e}End`,`${r} 23:59:59`)}}else a.set(e,this.queryParam[e]);return Object.fromEntries(a)},...c.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode","tableLists"])},methods:{aboutRecord(a){if(this.statu)return;let e=this.tableLists.filter(r=>r.tablename===a.aboutrecord_abouttable.toLowerCase())[0];if(e===void 0){this.$message.error(this.$i18nt("gd.solution.dataErrorTip","\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));return}let s={tableId:e.id,data:[{id:a.aboutrecord_aboutid}]};this.statu=!0;const t=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});this.$refs.middleware.init(s).then(r=>{this.statu=!1,t.close()})},saveQueries(a){this.queryParam={...a},this.refresh()},editForm(a){this.transKey="gd.btn.edit",this.formLoading=!0,this.$refs.editForm.open(a).then(e=>{this.initForm(e,a)})},initForm({instance:a,done:e},s){i.msgSendRecordDetails({id:s.id}).then(t=>{t.code===200&&(e(Object.assign({...s},{sendtype:t.data.sendtype?String(t.data.sendtype):"",msgstatus:t.data.msgstatus?String(t.data.msgstatus):"",isauto:t.data.isauto===1})),this.getFkDada(t.data))})},getFkDada(a){let e=[];if(a.msg_messagesendplanid){let s=this.searchData({id:a.msg_messagesendplanid,fkEntityName:"msg_messagesendplan"},"msg_messagesendplanid");e.push(s)}if(a.msg_messagetemplateid){let s=this.searchData({id:a.msg_messagetemplateid,fkEntityName:"msg_messagetemplate"},"msg_messagetemplateid");e.push(s)}if(a.aboutrecord_aboutid){let s=this.searchData({id:a.aboutrecord_aboutid,fkEntityName:a.aboutrecord_abouttable},"aboutrecord_aboutid");e.push(s)}if(e.length===0){this.formLoading=!1;return}Promise.all(e).then(s=>{s.forEach(t=>{const r=this.formColumns.filter(n=>n.prop===t.prop)[0];t.res.code===200&&r&&r.setData&&(t.res.data.map(n=>(n.tableName=t.data.fkEntityName,n)),r.setData(t.res.data))}),this.formLoading=!1})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:a,record:e,btn:s},t,r){this.formLoading=!0,(e?i.msgSendRecordEdit:i.msgSendRecordAdd)(a).then(l=>{l.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),r(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,e,s)=>{this.delHand(a,e,s)}})},delHand(a,e,s){if(a!=="confirm"){s();return}let t=[],r=i.msgSendRecordDel({ids:this.selectedRowKeys.join(",")}).then(n=>n);t.push(r),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(t).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const l=n.filter(o=>!o.success);l.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")+l[0].message),this.refresh()})},sending(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.msg.sendRecord.msgsendingTip","\u662F\u5426\u53D1\u9001\u6D88\u606F?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.confirm","\u786E\u5B9A"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,e,s)=>{this.sendHand(a,e,s)}})},sendHand(a,e,s){let t=this;if(a!=="confirm"){s();return}let r=[];t.selectedRowKeys.forEach(n=>{let l=t.sendMsg(n);r.push(l)}),Promise.all(r).then(n=>{s();let l="";n.forEach((o,b)=>{l+=o+`
2
+ \r`}),t.$message.info(l),t.refresh()})},sendMsg(a){return i.msgSendRecordSendMsg({id:a}).then(e=>e)},searchData(a,e){return p.baseFkList(a).then(s=>({res:s,data:a,prop:e}))},onSelectChange(a,e){this.selectedRowKeys=a,this.selectedRows=e,this.isChangeSize||(this.oselectedRowKeys=a),this.$emit("onSelectChange",a,e)},refresh(){this.$refs.table.refresh()},dictSwitch(a,e){let s=this.$options.filters.dictData(e).filter(t=>t.code==a)[0];return s&&s.colour?s.colour:null},getDict(a){return this.$options.filters.dictData(a)},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var h=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.msg.sendRecord.sendMode","\u53D1\u9001\u65B9\u5F0F"),"reserve-keyword":"",clearable:"",multiple:"","collapse-tags":!0},model:{value:e.queryParam.sendType,callback:function(t){e.$set(e.queryParam,"sendType",t)},expression:"queryParam.sendType"}},e._l(e.getDict("SendType"),function(t){return s("el-option",{key:t.code,attrs:{value:t.code,label:e.$i18nt(t.prefix?`${t.prefix}.${t.transkey}`:`Dynamics.${t.transkey}`,t.name)}},[e._v(" "+e._s(e.$i18nt(t.prefix?`${t.prefix}.${t.transkey}`:`Dynamics.${t.transkey}`,t.name))+" ")])}),1),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:t,row:r}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"sendType",fn:function(t){return[e.dictSwitch(t.row.sendtype,"sendtype")?s("el-tag",{style:e._f("dictColor")("sendtype",t.row.sendtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("SendType",t.row.sendtype))+" ")]):s("span",[e._v(e._s(e._f("dictType")("SendType",t.row.sendtype)))])]}},{key:"aboutRecord_AboutId",fn:function({column:t,row:r}){return[s("gd-tooltip",{attrs:{rowKey:"aboutrecord_aboutidname",row:r,highlight:""},on:{click:function(n){return e.aboutRecord(r)}}})]}},{key:"msgStatus",fn:function(t){return[e.dictSwitch(t.row.msgstatus,"MessageStatus")?s("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(t.row.msgstatus,"MessageStatus")}},[e._v(" "+e._s(e._f("dictType")("MessageStatus",t.row.msgstatus))+" ")]):e._e()]}},{key:"isAuto",fn:function(t){return[e.dictSwitch(t.row.isauto,"yes_or_no")?s("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(t.row.isauto,"yes_or_no")}},[e._v(" "+e._s(e._f("dictType")("yes_or_no",t.row.isauto))+" ")]):s("span",[e._v(e._s(e._f("dictType")("yes_or_no",t.row.isauto)))])]}},{key:"filtering",fn:function({colse:t,visible:r}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:t,visible:r},on:{save:e.saveQueries}})]}}])})],1),s("gd-middleware",{ref:"middleware",on:{ok:e.refresh}}),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode,inline:!0,needLoad:!0,width:"1000px"},on:{sbumit:e.sbumit}})],1)},f=[],y=c.normalizeComponent(m,h,f,!1,null,"ee701a97",null,null);const d=y.exports;d.install=function(a){a.component(d.name,d)};exports.GDpackage=d;
@@ -1,5 +1,5 @@
1
1
  import { m as o, n as c } from "./components.chartbi.7356b244.mjs";
2
- import { l as p, n as u, o as g, p as m, q as h, r as f } from "./http.message.ceb0a1c6.mjs";
2
+ import { n as p, o as u, p as g, q as m, r as h, s as f } from "./http.message.00e72e09.mjs";
3
3
  import { a as y } from "./http.main.aefea27d.mjs";
4
4
  import { t as b } from "./utils.mixins.js.be01e599.mjs";
5
5
  const T = {
@@ -376,7 +376,7 @@ const w = {
376
376
  loadData: (a, e) => {
377
377
  this.sorter = e;
378
378
  let s = [...this.oselectedRowKeys];
379
- return this.isLoading = !0, p(Object.assign(a, this.getQueryParam)).then((t) => (this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1, t.success && this.openMode == 2 && (this.$emit("changeData", t.data.rows), setTimeout(() => {
379
+ return this.isLoading = !0, p(Object.assign(a, this.getQueryParam)).then((t) => (this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1, this.getAddAllTable(), t.success && this.openMode == 2 && (this.$emit("changeData", t.data.rows), setTimeout(() => {
380
380
  this.$refs.table && this.$refs.table.updateSelect(s, []), this.selectedRowKeys = [...s], this.onSelectChange(s, []);
381
381
  }, 10)), t.data));
382
382
  }
@@ -638,7 +638,7 @@ var _ = function() {
638
638
  S,
639
639
  !1,
640
640
  null,
641
- "6b568d9e",
641
+ "ee701a97",
642
642
  null,
643
643
  null
644
644
  );
@@ -1,5 +1,5 @@
1
1
  import { m as p, n as h } from "./components.chartbi.7356b244.mjs";
2
- import { s as m, t as g, u, v as f, c as y } from "./http.message.ceb0a1c6.mjs";
2
+ import { t as m, u as g, v as u, w as f, c as y } from "./http.message.00e72e09.mjs";
3
3
  import { t as w } from "./utils.mixins.js.be01e599.mjs";
4
4
  import { a as o } from "./http.main.aefea27d.mjs";
5
5
  const b = {
@@ -1,2 +1,2 @@
1
- "use strict";const p=require("./components.chartbi.13a8a7b5.js"),o=require("./http.message.87f319d7.js"),f=require("./utils.mixins.js.750ca50e.js"),c=require("./http.main.2f8a6936.js"),m={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.msg.templateLibrary.name",prop:"name",label:"\u540D\u79F0",width:"180",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(i,...e)=>this.renderHeader(i,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.msg.templateLibrary.templateCategory",prop:"templateType",width:"120",label:"\u6A21\u7248\u7C7B\u522B",type:"slot",slotType:"templateType",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.templateLibrary.weChatName",prop:"nameBas_EnterpriseWechatenterpriseWechatId",width:"160",label:"\u4F01\u4E1A\u5FAE\u4FE1",align:"left",type:"slot",slotType:"nameBas_EnterpriseWechatenterpriseWechatId"},{transKey:"gd.msg.templateLibrary.weChatApplicationName",prop:"nameBas_EnterpriseWechatAppenterpriseWechatAppId",width:"160",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528",type:"slot",slotType:"nameBas_EnterpriseWechatAppenterpriseWechatAppId",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.templateLibrary.weChatOfficialAccounts",prop:"wechatPublicAccountIDName",width:"160",label:"\u5FAE\u4FE1\u516C\u4F17\u53F7",type:"slot",slotType:"wechatPublicAccountID",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.templateLibrary.state",prop:"stateCodes",width:"160",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.msg.templateLibrary.creationTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],formColumns:[{transKey:"gd.msg.templateLibrary.name",prop:"name",label:"\u540D\u79F0",effectType:"input",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.msg.templateLibrary.sendType",effectType:"select",prop:"sendtype",label:"\u6A21\u7248\u7C7B\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"SendType",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.msg.templateLibrary.content",effectType:"textarea",prop:"messagecontent",label:"\u6A21\u677F\u5185\u5BB9",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysMsgTemplateLibrary:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysMsgTemplateLibrary:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysMsgTemplateLibrary:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.msg.templateLibrary.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.msg.templateLibrary.templateCategory",prop:"templateType",label:"\u6A21\u7248\u7C7B\u522B",effectType:"selectMultiple",dictTypeCode:"SendType",rules:[]},{transKey:"gd.msg.templateLibrary.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"selectMultiple",dictTypeCode:"state_code",rules:[]}]}}};const g={props:{height:{type:Number,default:0},openMode:{type:[String,Number],default:1},record:{type:Object,default:()=>({})}},name:"GdSysMsgTemplateLibrary",mixins:[f.tablesFilter,m],data(){return{statu:!1,fkEntityName:"Bas_WechatApp",formLoading:!1,send:null,selectedRowKeys:[],isLoading:!1,pageSize:10,isChangeSize:!1,ppShow:!0,advanced:!1,queryParam:{},oselectedRowKeys:[],transKey:"gd.btn.edit",loadData:(i,e)=>(this.sorter=e,this.isLoading=!0,o.msgTemplateLibraryPage(Object.assign(i,this.getQueryParam)).then(a=>(this.ppShow=!0,this.isLoading=!1,this.isChangeSize=!1,a.success&&this.openMode==2&&this.$emit("changeData",a.data.rows),a.data)))}},components:{editForm:()=>Promise.resolve().then(()=>u)},computed:{getTableColumns(){return this.tableColumns.filter(i=>i.type==="selection"?this.openMode==1:i.type===""?this.openMode!=1:!0)},getHeight(){const i=this.openMode==2?80:0;return this.height-i},getQueryParam(){let i=new Map;for(let e in this.queryParam)this.queryParam[e]&&(e==="bas_WechatAppId"||e==="templateType"||e==="stateCodes")?i.set(e,this.queryParam[e].join(",")):i.set(e,this.queryParam[e]);return Object.fromEntries(i)},...p.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode","tableLists"])},methods:{wechatAppId(i,e){if(this.statu)return;let t={tableId:this.tableLists.filter(r=>r.tablename===e)[0].id,data:[{id:i}]};this.statu=!0;const s=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});this.$refs.middleware.init(t).then(r=>{this.statu=!1,s.close()})},saveQueries(i){this.queryParam={...i},this.refresh()},editForm(i){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...i},{templateType:String(i.templateType)}))},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:i,record:e,btn:a},t,s){this.formLoading=!0,(e?o.msgTemplateLibraryEditExtension:o.msgTemplateLibraryAddExtension)(i).then(l=>{l.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),s(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,a)=>{this.delHand(i,e,a)}})},delHand(i,e,a){if(i!=="confirm"){a();return}let t=[],s=o.msgTemplateLibraryDel({ids:this.selectedRowKeys.join(",")}).then(r=>r);t.push(s),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(t).then(r=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,a();const l=r.filter(n=>!n.success);l.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")+l[0].message),this.refresh()})},sending(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.msg.sendRecord.msgsendingTip","\u662F\u5426\u53D1\u9001\u6D88\u606F?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.confirm","\u786E\u5B9A"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,a)=>{this.sendHand(i,e,a)}})},sendHand(i,e,a){let t=this;if(i!=="confirm"){a();return}let s=[];t.selectedRowKeys.forEach(r=>{let l=t.sendMsg(r);s.push(l)}),Promise.all(s).then(r=>{a();let l="";r.forEach((n,h)=>{l+=n+`
1
+ "use strict";const p=require("./components.chartbi.13a8a7b5.js"),o=require("./http.message.73c3ed85.js"),m=require("./utils.mixins.js.750ca50e.js"),c=require("./http.main.2f8a6936.js"),f={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.msg.templateLibrary.name",prop:"name",label:"\u540D\u79F0",width:"180",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(i,...e)=>this.renderHeader(i,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.msg.templateLibrary.templateCategory",prop:"templateType",width:"120",label:"\u6A21\u7248\u7C7B\u522B",type:"slot",slotType:"templateType",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.templateLibrary.weChatName",prop:"nameBas_EnterpriseWechatenterpriseWechatId",width:"160",label:"\u4F01\u4E1A\u5FAE\u4FE1",align:"left",type:"slot",slotType:"nameBas_EnterpriseWechatenterpriseWechatId"},{transKey:"gd.msg.templateLibrary.weChatApplicationName",prop:"nameBas_EnterpriseWechatAppenterpriseWechatAppId",width:"160",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528",type:"slot",slotType:"nameBas_EnterpriseWechatAppenterpriseWechatAppId",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.templateLibrary.weChatOfficialAccounts",prop:"wechatPublicAccountIDName",width:"160",label:"\u5FAE\u4FE1\u516C\u4F17\u53F7",type:"slot",slotType:"wechatPublicAccountID",align:"left",showOverflowTooltip:!0},{transKey:"gd.msg.templateLibrary.state",prop:"stateCodes",width:"160",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.msg.templateLibrary.creationTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],formColumns:[{transKey:"gd.msg.templateLibrary.name",prop:"name",label:"\u540D\u79F0",effectType:"input",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.msg.templateLibrary.sendType",effectType:"select",prop:"sendtype",label:"\u6A21\u7248\u7C7B\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"SendType",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.msg.templateLibrary.content",effectType:"textarea",prop:"messagecontent",label:"\u6A21\u677F\u5185\u5BB9",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysMsgTemplateLibrary:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysMsgTemplateLibrary:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysMsgTemplateLibrary:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.msg.templateLibrary.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.msg.templateLibrary.templateCategory",prop:"templateType",label:"\u6A21\u7248\u7C7B\u522B",effectType:"selectMultiple",dictTypeCode:"SendType",rules:[]},{transKey:"gd.msg.templateLibrary.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"selectMultiple",dictTypeCode:"state_code",rules:[]}]}}};const g={props:{height:{type:Number,default:0},openMode:{type:[String,Number],default:1},record:{type:Object,default:()=>({})}},name:"GdSysMsgTemplateLibrary",mixins:[m.tablesFilter,f],data(){return{statu:!1,fkEntityName:"Bas_WechatApp",formLoading:!1,send:null,selectedRowKeys:[],isLoading:!1,pageSize:10,isChangeSize:!1,ppShow:!0,advanced:!1,queryParam:{},oselectedRowKeys:[],transKey:"gd.btn.edit",loadData:(i,e)=>(this.sorter=e,this.isLoading=!0,o.msgTemplateLibraryPage(Object.assign(i,this.getQueryParam)).then(a=>(this.ppShow=!0,this.isLoading=!1,this.isChangeSize=!1,a.success&&this.openMode==2&&this.$emit("changeData",a.data.rows),a.data)))}},components:{editForm:()=>Promise.resolve().then(()=>u)},computed:{getTableColumns(){return this.tableColumns.filter(i=>i.type==="selection"?this.openMode==1:i.type===""?this.openMode!=1:!0)},getHeight(){const i=this.openMode==2?80:0;return this.height-i},getQueryParam(){let i=new Map;for(let e in this.queryParam)this.queryParam[e]&&(e==="bas_WechatAppId"||e==="templateType"||e==="stateCodes")?i.set(e,this.queryParam[e].join(",")):i.set(e,this.queryParam[e]);return Object.fromEntries(i)},...p.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode","tableLists"])},methods:{wechatAppId(i,e){if(this.statu)return;let t={tableId:this.tableLists.filter(r=>r.tablename===e)[0].id,data:[{id:i}]};this.statu=!0;const s=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});this.$refs.middleware.init(t).then(r=>{this.statu=!1,s.close()})},saveQueries(i){this.queryParam={...i},this.refresh()},editForm(i){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...i},{templateType:String(i.templateType)}))},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:i,record:e,btn:a},t,s){this.formLoading=!0,(e?o.msgTemplateLibraryEditExtension:o.msgTemplateLibraryAddExtension)(i).then(l=>{l.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),s(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,a)=>{this.delHand(i,e,a)}})},delHand(i,e,a){if(i!=="confirm"){a();return}let t=[],s=o.msgTemplateLibraryDel({ids:this.selectedRowKeys.join(",")}).then(r=>r);t.push(s),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(t).then(r=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,a();const l=r.filter(n=>!n.success);l.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")+l[0].message),this.refresh()})},sending(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.msg.sendRecord.msgsendingTip","\u662F\u5426\u53D1\u9001\u6D88\u606F?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.confirm","\u786E\u5B9A"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,a)=>{this.sendHand(i,e,a)}})},sendHand(i,e,a){let t=this;if(i!=="confirm"){a();return}let s=[];t.selectedRowKeys.forEach(r=>{let l=t.sendMsg(r);s.push(l)}),Promise.all(s).then(r=>{a();let l="";r.forEach((n,h)=>{l+=n+`
2
2
  \r`}),t.$message.info(l),t.refresh()})},enabling(){},sendMsg(i){return msgSendRecordSendMsg({id:i}).then(e=>e)},onSelectChange(i,e){this.selectedRowKeys=i,this.selectedRows=e,this.isChangeSize||(this.oselectedRowKeys=i),this.$emit("onSelectChange",i,e)},refresh(){this.$refs.table.refresh()},dictSwitch(i,e){let a=this.$options.filters.dictData(e).filter(t=>t.code==i)[0];return a!=null&&a.colour?a.colour:null},getDict(i){return this.$options.filters.dictData(i)},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()}},mounted(){if(this.openMode==2&&this.record.options.val!==void 0){const i=typeof this.record.options.val;let e=i==="string"||i==="number"?[this.record.options.val]:[...this.record.options.val];this.selectedRowKeys=e.filter(a=>a!=="")}}};var y=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.getTableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.msg.templateLibrary.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:t,row:s}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"templateType",fn:function(t){return[e.dictSwitch(t.row.templatetype,"SendType")?a("el-tag",{style:e._f("dictColor")("SendType",t.row.templatetype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("SendType",t.row.templatetype))+" ")]):a("span",[e._v(e._s(e._f("dictType")("SendType",t.row.templatetype)))])]}},{key:"nameBas_EnterpriseWechatenterpriseWechatId",fn:function({column:t,row:s}){return[a("gd-tooltip",{attrs:{rowKey:"namebas_enterprisewechatenterprisewechattd",row:s,highlight:""},on:{click:function(r){return e.wechatAppId(s.enterprisewechatid,"bas_enterprisewechat")}}})]}},{key:"nameBas_EnterpriseWechatAppenterpriseWechatAppId",fn:function({column:t,row:s}){return[a("gd-tooltip",{attrs:{rowKey:"namebas_enterprisewechatappenterprisewechatappid",row:s,highlight:""},on:{click:function(r){return e.wechatAppId(s.enterprisewechatappid,"bas_enterprisewechatapp")}}})]}},{key:"wechatPublicAccountID",fn:function({column:t,row:s}){return[a("gd-tooltip",{attrs:{rowKey:"wechatpublicaccountidname",row:s,highlight:""},on:{click:function(r){return e.wechatAppId(s.wechatpublicaccountid,"bas_wechatpublicaccount")}}})]}},{key:"stateCodes",fn:function(t){return[e.dictSwitch(t.row.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(t.row.statecodes,"state_code")},on:{click:function(s){return e.enabling(t.row)}}},[e._v(" "+e._s(e._f("dictType")("state_code",t.row.statecodes))+" ")]):a("span",{on:{click:function(s){return e.enabling(t.row)}}},[e._v(e._s(e._f("dictType")("state_code",t.row.statecodes)))])]}},{key:"filtering",fn:function({colse:t,visible:s}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:t,visible:s},on:{save:e.saveQueries}})]}}])})],1),a("editForm",{ref:"editForm",attrs:{fkEntityName:e.fkEntityName},on:{ok:e.refresh}}),a("gd-middleware",{ref:"middleware",on:{ok:e.refresh}})],1)},b=[],w=p.normalizeComponent(g,y,b,!1,null,"908d98cd",null,null);const d=w.exports;d.install=function(i){i.component(d.name,d)};const _={data(){return{fullscreen:!1,visible:!1,confirmLoading:!1,showWeCom:!1,showWeOfficial:!1,weComList:[],weComAppList:[],weOfficialList:[],sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],title:"",loading:!1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],templatetype:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],enterprisewechatid:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],enterprisewechatappid:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],wechatpublicaccountid:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},ruleFormData:{id:0,name:"",templatetype:"",enterprisewechatid:"",enterprisewechatappid:"",content:"",wechatpublicaccountid:""},fkEntity:[{field:"enterprisewechatid",fkEntityName:"bas_enterprisewechat",filterd:[]},{field:"enterprisewechatappid",fkEntityName:"bas_enterprisewechatapp",filterd:[]},{field:"wechatpublicaccountid",fkEntityName:"bas_wechatpublicaccount",filterd:[]}],firstLoading:!1,firstWeComApp:!1,firstWeOfficial:!1,parseData:[],showParseInfo:!1,width:"1000px"}},computed:{getSendType(){let i=[],e=[];return this.getDictionary("SendType").map(t=>(t.disabled=t.statecodes!=1,t.disabled?e.push(t):i.push(t),t)),this.type==1?i:i.concat(e)},...p.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{lookupSeled(i){this.lookField==="enterprisewechatid"?(this.ruleFormData.enterprisewechatid=i.data[0],this.weComList=i.fkData):this.lookField==="enterprisewechatappid"?(this.ruleFormData.enterprisewechatappid=i.data[0],this.weComAppList=i.fkData):this.lookField==="wechatpublicaccountid"&&(this.ruleFormData.wechatpublicaccountid=i.data[0],this.weOfficialLis=i.fkData)},lookup(i,e){this.lookField=e;let a=i,t=this.fkEntity.filter(l=>l.field===e)[0],s=t.filterd.filter(l=>l.fieldValue!==""),r={effectType:"fk",fkEntityName:t.fkEntityName,val:a||[]};e==="enterprisewechatappid"&&(r=Object.assign(r,{filterList:s})),this.$refs.msgSearch.open(r)},open(i){this.visible=!0,this.detail=i||[],this.title=i?this.$i18nt("gd.btn.edit"):this.$i18nt("gd.btn.add"),this.type=i?2:1,this.loadWeCom=!1,this.loadWeComApp=!1,this.loadWeOfficial=!1,this.showWeCom=!1,this.showWeOfficial=!1,i?this.getDetail():this.ruleFormData={id:0,name:"",templatetype:"",enterprisewechatid:"",enterprisewechatappid:"",content:"",wechatpublicaccountid:""}},getDetail(){this.confirmLoading=!0,o.msgTemplateLibraryDetails({id:this.detail.id}).then(i=>{if(i.code===200){let e=i.data.msg_templatelibrary,a={id:e.id,name:e.name,bas_wechatappid:e.bas_wechatappid?e.bas_wechatappid:void 0,content:e.content,templatetype:e.templatetype!=null?String(e.templatetype):void 0},t=i.data.msg_templatedetailedlist?i.data.msg_templatedetailedlist:[];this.parseData=t.map(s=>(s.isdisplays=s.isdisplay===1,s)),this.showParseInfo=t.length!=0,e.templatetype==1?(this.showWeCom=!0,a=Object.assign(a,{enterprisewechatid:e.enterprisewechatid,enterprisewechatappid:e.enterprisewechatappid}),this.getWechatData(e,["bas_enterprisewechat","bas_enterprisewechatapp"]),this.loadWeCom=!0,this.loadWeComApp=!0):e.templatetype==3?(this.showWeOfficial=!0,a=Object.assign(a,{wechatpublicaccountid:e.wechatpublicaccountid}),this.getWechatData(e,["bas_wechatpublicaccount"]),this.loadWeOfficial=!0):this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=Object.assign({...a})},0)})}else this.confirmLoading=!1})},getWechatData(i,e){let a=[];this.fkEntity.filter(s=>e.includes(s.fkEntityName)).forEach(s=>{let r=s.filterd.filter(h=>h.fieldValue!==""),l={fkEntityName:s.fkEntityName,filter:r,id:i[s.field]?i[s.field]:""},n=this.searchFk(l);a.push(n)}),Promise.all(a).then(()=>{this.confirmLoading=!1})},searchFk(i){return this.weComList=i.fkEntityName==="bas_enterprisewechat"?[]:this.weComList,this.weComAppList=i.fkEntityName==="bas_enterprisewechatapp"?[]:this.weComAppList,this.weOfficialList=i.fkEntityName==="bas_wechatpublicaccount"?[]:this.weOfficialList,c.baseFkList(i).then(e=>{let a=e.success?e.data.map(t=>(t.tableName=i.fkEntityName,t)):[];return this.weComList=i.fkEntityName==="bas_enterprisewechat"?a:this.weComList,this.weComAppList=i.fkEntityName==="bas_enterprisewechatapp"?a:this.weComAppList,this.weOfficialList=i.fkEntityName==="bas_wechatpublicaccount"?a:this.weOfficialList,e})},selTemplateType(i){this.showWeCom=i==1,this.showWeOfficial=i==3},changeWeCom(i){let e={fieldName:"enterprisewechatid",operator:"equal",columnName:"enterprisewechatid",fieldValue:i||""},a=[...this.fkEntity];a.map(t=>(t.field==="enterprisewechatappid"&&(t.filterd=[e]),t)),this.fkEntity=[...a],this.loadWeComApp=!1},fkSearch(){this.firstLoading||(this.searchData(""),this.firstLoading=!0)},searchData(i){let e=this.fkEntity.filter(a=>a.field==="enterprisewechatid")[0];this.weComList=[],c.baseFkList({fkEntityName:e.fkEntityName,name:i}).then(a=>{this.weComList=a.success?a.data.map(t=>(t.tableName=e.fkEntityName,t)):[],this.loadWeCom=!0})},fkSearchWech(){this.firstWeComApp||(this.searchWeComApp(""),this.firstWeComApp=!0)},searchWeComApp(i){let e=this.fkEntity.filter(t=>t.field==="enterprisewechatappid")[0],a=e.filterd.filter(t=>t.fieldValue!=="");this.weComAppList=[],c.baseFkList({fkEntityName:e.fkEntityName,name:i,filter:a}).then(t=>{this.weComAppList=t.success?t.data.map(s=>(s.tableName=e.fkEntityName,s)):[],this.fetching=!1,this.loadWeComApp=!0})},searchWeOff(){this.firstWeOfficial||(this.searchWeOfficial(""),this.firstWeOfficial=!0)},searchWeOfficial(i){let e=this.fkEntity.filter(t=>t.field==="wechatpublicaccountid")[0],a=e.filterd.filter(t=>t.fieldValue!=="");this.weOfficialList=[],this.fetching=!0,c.baseFkList({fkEntityName:e.fkEntityName,name:i,filter:a}).then(t=>{this.weOfficialList=t.success?t.data.map(s=>(s.tableName=e.fkEntityName,s)):[],this.fetching=!1,this.loadWeOfficial=!0})},selData(i){if(i==="enterprisewechatid"&&!this.loadWeCom){this.searchWeCom("");return}if(i==="enterprisewechatappid"&&!this.loadWeComApp){this.searchWeComApp("");return}if(i==="wechatpublicaccountid"&&!this.loadWeOfficial){this.searchWeOfficial("");return}},contentBlur(){this.analysis()},analysis(){let i=this.ruleFormData.content;if(!i){this.parseDataparseData=[],this.showParseInfo=!1;return}let e=new RegExp(/\{\{(.+?)\}\}/g),a=i.match(e);if(!a)return;let t=[];a.forEach(s=>{let r=s.substring(2,s.length-2),l=this.parseData.filter(n=>n.name==r)[0];l?t.push(l):t.push({name:r,content:"",isdisplays:!0,isdisplay:1})}),this.parseData=t,this.showParseInfo=!0},closed(){this.$refs.ruleForm.resetFields(),this.visible=!1,this.showParseInfo=!1,this.fullscreen=!1,this.parseData=[]},toggleFullscreen(){this.fullscreen=!this.fullscreen},handleSubmit(){this.$refs.ruleForm.validate(i=>{if(i){this.confirmLoading=!0;let e={...this.ruleFormData},a=[...this.parseData].map(r=>(r.isdisplay=r.isdisplays?1:0,r)),t=Object.assign(e,{msg_templatedetailed_msg_templatelibraryid:a});(this.type==1?o.msgTemplateLibraryAddExtension:o.msgTemplateLibraryEditExtension)(t).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.confirmLoading=!1,this.$emit("ok",t),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message),this.confirmLoading=!1})}})},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()},getDictionary(i){return this.$options.filters.dictData(i)}}};var k=function(){var e=this,a=e._self._c;return a("div",[a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(t){e.visible=t},closed:e.closed}},[a("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent},slot:"title"}),a("div",{staticClass:"b"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData,rules:e.rules},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{md:12,sm:24}},[a("el-form-item",{attrs:{label:e.$i18nt("gd.msg.templateLibrary.name","\u540D\u79F0"),prop:"name"}},[a("el-input",{model:{value:e.ruleFormData.name,callback:function(t){e.$set(e.ruleFormData,"name",t)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{md:12,sm:24}},[a("el-form-item",{attrs:{label:e.$i18nt("gd.msg.templateLibrary.sendType","\u6A21\u677F\u7C7B\u522B"),prop:"templatetype"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.selTemplateType},model:{value:e.ruleFormData.templatetype,callback:function(t){e.$set(e.ruleFormData,"templatetype",t)},expression:"ruleFormData.templatetype"}},e._l(e.getSendType,function(t,s){return a("el-option",{key:s,attrs:{label:t.name,value:t.code,disabled:t.disabled}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.transkey}`,t.name))+" ")])}),1)],1)],1)],1),e.showWeCom?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{md:12,sm:24}},[a("el-form-item",{attrs:{label:e.$i18nt("gd.msg.templateLibrary.weChatName","\u4F01\u4E1A\u5FAE\u4FE1"),prop:"enterprisewechatid"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:e.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":e.searchData,"collapse-tags":!0},on:{focus:e.fkSearch,change:e.changeWeCom},model:{value:e.ruleFormData.enterprisewechatid,callback:function(t){e.$set(e.ruleFormData,"enterprisewechatid",t)},expression:"ruleFormData.enterprisewechatid"}},e._l(e.weComList,function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1),a("div",{staticClass:"cao_setting"},[a("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(t){return t.stopPropagation(),e.lookup(e.ruleFormData.enterprisewechatid,"enterprisewechatid")}}})])],1)])],1),a("el-col",{attrs:{md:12,sm:24}},[a("el-form-item",{attrs:{label:e.$i18nt("gd.msg.templateLibrary.weChatApplicationName","\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"),prop:"enterprisewechatappid"}},[a("div",{staticClass:"cao_about",on:{click:function(t){return e.selData("enterprisewechatappid")}}},[a("el-select",{staticClass:"cao_input",staticStyle:{flex:"1",overflow:"hidden"},attrs:{"reserve-keyword":"",filterable:"",remote:"",clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:e.loading,"remote-method":e.searchWeComApp},on:{focus:e.fkSearchWech},model:{value:e.ruleFormData.enterprisewechatappid,callback:function(t){e.$set(e.ruleFormData,"enterprisewechatappid",t)},expression:"ruleFormData.enterprisewechatappid"}},e._l(e.weComAppList,function(t,s){return a("el-option",{key:s,attrs:{label:t.name,value:t.id}},[e._v(" "+e._s(t.name)+" ")])}),1),a("div",{staticClass:"cao_setting"},[a("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(t){return t.stopPropagation(),e.lookup(e.ruleFormData.enterprisewechatappid,"enterprisewechatappid")}}})])],1)])],1)],1):e._e(),e.showWeOfficial?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{md:12,sm:24}},[a("el-form-item",{attrs:{label:e.$i18nt("gd.msg.templateLibrary.weChatOfficialAccounts"),prop:"wechatpublicaccountid"}},[a("div",{staticClass:"cao_about",on:{click:function(t){return e.selData("wechatpublicaccountid")}}},[a("el-select",{staticClass:"cao_input",staticStyle:{flex:"1",overflow:"hidden"},attrs:{"reserve-keyword":"",filterable:"",remote:"",clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:e.loading,"remote-method":e.searchWeOfficial},on:{focus:e.searchWeOff},model:{value:e.ruleFormData.wechatpublicaccountid,callback:function(t){e.$set(e.ruleFormData,"wechatpublicaccountid",t)},expression:"ruleFormData.wechatpublicaccountid"}},e._l(e.weOfficialList,function(t,s){return a("el-option",{key:s,attrs:{label:t.name,value:t.id}})}),1),a("div",{staticClass:"cao_setting"},[a("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(t){return t.stopPropagation(),e.lookup(e.ruleFormData.wechatpublicaccountid,"wechatpublicaccountid")}}})])],1)])],1)],1):e._e(),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24,md:24}},[a("el-form-item",{attrs:{label:e.$i18nt("gd.msg.templateLibrary.content"),prop:"content"}},[a("el-input",{attrs:{autosize:{minRows:10,maxRows:16},type:"textarea",placeholder:e.$i18nt("gd.placeholder.input")},on:{blur:e.contentBlur},model:{value:e.ruleFormData.content,callback:function(t){e.$set(e.ruleFormData,"content",t)},expression:"ruleFormData.content"}})],1)],1),a("el-col",{attrs:{span:24,md:24}},[a("el-button",{staticStyle:{"font-size":"14px",padding:"6px 8px",float:"right"},attrs:{type:"primary",size:"mini",icon:"el-icon-notebook-2"},on:{click:e.analysis}},[e._v(" "+e._s(e.$i18nt("gd.msg.templateLibrary.analysis"))+" ")])],1)],1),e.showParseInfo?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},e._l(e.parseData,function(t,s){return a("el-form-item",{key:s,attrs:{label:t.name}},[a("el-input",{staticStyle:{width:"450px"},attrs:{type:"textarea",autosize:{minRows:3,maxRows:6}},model:{value:t.content,callback:function(r){e.$set(t,"content",r)},expression:"item.content"}}),a("el-checkbox",{staticStyle:{"margin-left":"30px"},model:{value:t.isdisplays,callback:function(r){e.$set(t,"isdisplays",r)},expression:"item.isdisplays"}},[e._v(" "+e._s(e.$i18nt("gd.msg.templateLibrary.display","\u662F\u5426\u663E\u793A"))+" ")])],1)}),1)],1):e._e()],1)],1)],1),a("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},C=[],v=p.normalizeComponent(_,k,C,!1,null,"6e3a6197",null,null);const L=v.exports,u=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=d;exports.editForm=u;
@@ -1,4 +1,4 @@
1
- import { d as f } from "./components.table.d79f5fa3.mjs";
1
+ import { d as f } from "./components.table.a50270a9.mjs";
2
2
  import { n as s } from "./components.chartbi.7356b244.mjs";
3
3
  const g = {
4
4
  name: "collapseItem",