gds-plus-design-vue 1.3.2 → 1.3.21

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 (138) hide show
  1. package/lib/{btnGroup.868c8549.js → btnGroup.2304f2f4.js} +1 -1
  2. package/lib/{btnGroup.bbf14548.mjs → btnGroup.cbaa6e6b.mjs} +14 -14
  3. package/lib/{components.form.9c850f56.mjs → components.form.082d9c9b.mjs} +1 -1
  4. package/lib/{components.form.column.bb178c13.mjs → components.form.column.cab0072e.mjs} +1 -1
  5. package/lib/{components.form.column.bbdd2b3a.js → components.form.column.ee06d8bb.js} +1 -1
  6. package/lib/{components.form.218c5703.js → components.form.f4bb9c4c.js} +1 -1
  7. package/lib/{components.globalheader.87083065.js → components.globalheader.5db21e71.js} +1 -1
  8. package/lib/{components.globalheader.c7309694.mjs → components.globalheader.c5ce924d.mjs} +1 -1
  9. package/lib/components.iconselector.831f847e.js +1 -0
  10. package/lib/{components.iconselector.d7c731b8.mjs → components.iconselector.ded60514.mjs} +20 -17
  11. package/lib/{components.sidenavmenu.8a971489.js → components.sidenavmenu.90170635.js} +1 -1
  12. package/lib/{components.sidenavmenu.d4d48a2e.mjs → components.sidenavmenu.c7b6729b.mjs} +7 -7
  13. package/lib/{components.table.queriesfield.0c9da7cd.mjs → components.table.queriesfield.84733bb7.mjs} +32 -32
  14. package/lib/components.table.queriesfield.a50919ee.js +1 -0
  15. package/lib/{fonticon.9adf1203.mjs → fonticon.0d9a2e23.mjs} +14 -14
  16. package/lib/{fonticon.1b451e1a.js → fonticon.a1263225.js} +1 -1
  17. package/lib/{form.designer.build.44a222b7.mjs → form.designer.build.136e3cdd.mjs} +10 -4
  18. package/lib/form.designer.build.7c94450d.js +1 -0
  19. package/lib/gd-initial.js +1 -1
  20. package/lib/gd-initial.mjs +14 -14
  21. package/lib/{http.filedocument.a10d6b67.mjs → http.filedocument.0219751b.mjs} +14 -14
  22. package/lib/{index.50e04b35.js → index.3a9b2d69.js} +1 -1
  23. package/lib/{index.08591f92.mjs → index.459a27d0.mjs} +22 -22
  24. package/lib/index.53b24311.js +1 -0
  25. package/lib/{index.55cf8b7e.js → index.6207efd7.js} +1 -1
  26. package/lib/{index.a32cdfa6.mjs → index.718199db.mjs} +17 -17
  27. package/lib/{index.dd12afc4.mjs → index.72ea6b6b.mjs} +6 -6
  28. package/lib/{index.d5afad7c.js → index.8c8698d0.js} +1 -1
  29. package/lib/{index.6faf770f.js → index.9ec72e55.js} +1 -1
  30. package/lib/{index.cf8bce6c.mjs → index.e051f15e.mjs} +149 -136
  31. package/lib/{index.b5d91f53.mjs → index.f1ecfc7f.mjs} +23 -23
  32. package/lib/{layoutBlocks.22969318.mjs → layoutBlocks.ec55e84e.mjs} +14 -14
  33. package/lib/{layoutBlocks.3326a2cf.js → layoutBlocks.ff24da6b.js} +1 -1
  34. package/lib/{layouts.basiclayout.d292ac35.js → layouts.basiclayout.05046cb5.js} +1 -1
  35. package/lib/{layouts.basiclayout.ba756cfc.mjs → layouts.basiclayout.422c6adc.mjs} +2 -2
  36. package/lib/{layouts.basiclayouttop.5ea4efd6.mjs → layouts.basiclayouttop.4047325d.mjs} +2 -2
  37. package/lib/{layouts.basiclayouttop.22fb1854.js → layouts.basiclayouttop.d6ee1637.js} +1 -1
  38. package/lib/{main.1fe649dd.js → main.467492ec.js} +1 -1
  39. package/lib/main.72c50010.mjs +941 -0
  40. package/lib/{main.839b7bab.mjs → main.750a686d.mjs} +1 -1
  41. package/lib/{main.46333cc1.js → main.77bfdb3d.js} +1 -1
  42. package/lib/{main.89e80afa.js → main.8024dd7b.js} +1 -1
  43. package/lib/{main.faec0761.mjs → main.95d3ff6c.mjs} +1 -1
  44. package/lib/{main.f646cd77.js → main.97e52ee0.js} +1 -1
  45. package/lib/{main.3781a6a9.js → main.9e4ff9c6.js} +1 -1
  46. package/lib/{main.9753a7a6.mjs → main.a3a8a32a.mjs} +26 -26
  47. package/lib/{main.5d1d8c5d.mjs → main.b7f83538.mjs} +1 -1
  48. package/lib/{main.c57a92f8.js → main.d19f6077.js} +1 -1
  49. package/lib/{main.e2e786a1.mjs → main.ff2b9dde.mjs} +1 -1
  50. package/lib/{mobile.designer.menutree.6ada2626.js → mobile.designer.menutree.31a0ac7c.js} +1 -1
  51. package/lib/{mobile.designer.menutree.5b1640f2.mjs → mobile.designer.menutree.b921fa65.mjs} +2 -2
  52. package/lib/{page.application.6ea9a771.mjs → page.application.72fd9f5e.mjs} +2 -2
  53. package/lib/{page.application.bde3a64a.js → page.application.b07312ad.js} +1 -1
  54. package/lib/{page.bmodule.datafiltering.1ab7a1b7.js → page.bmodule.datafiltering.50c9e358.js} +1 -1
  55. package/lib/{page.bmodule.datafiltering.82eb5fa8.mjs → page.bmodule.datafiltering.b3254ae9.mjs} +1 -1
  56. package/lib/{page.build.6447bfd6.js → page.build.5fa4a6c0.js} +1 -1
  57. package/lib/{page.build.a7f5bc44.mjs → page.build.d8557c78.mjs} +1 -1
  58. package/lib/{page.designer.layouts.b5447529.js → page.designer.layouts.351f3075.js} +1 -1
  59. package/lib/{page.designer.layouts.a04efb60.mjs → page.designer.layouts.5d641118.mjs} +1 -1
  60. package/lib/{page.designer.menutree.02ba7d2c.mjs → page.designer.menutree.34aedf7f.mjs} +491 -416
  61. package/lib/{page.designer.menutree.e9fcd5d7.js → page.designer.menutree.51b5e5ed.js} +1 -1
  62. package/lib/{page.designerp.generatorecharts.4e8fb3f2.mjs → page.designerp.generatorecharts.243dafb6.mjs} +1 -1
  63. package/lib/{page.designerp.generatorecharts.fee5aedd.js → page.designerp.generatorecharts.917dd008.js} +1 -1
  64. package/lib/{page.designerp.generatorgridmenu.d8820f3c.mjs → page.designerp.generatorgridmenu.85ed1c88.mjs} +3 -3
  65. package/lib/page.designerp.generatorgridmenu.ef75017c.js +1 -0
  66. package/lib/{page.designerp.generatortable.9d7b9b14.js → page.designerp.generatortable.79639f31.js} +1 -1
  67. package/lib/{page.designerp.generatortable.6011f553.mjs → page.designerp.generatortable.c4cbeb36.mjs} +1 -1
  68. package/lib/{page.designerp.generatortablegrid.c6e94530.js → page.designerp.generatortablegrid.2d33e24a.js} +1 -1
  69. package/lib/{page.designerp.generatortablegrid.5af3abfa.mjs → page.designerp.generatortablegrid.e61db667.mjs} +2 -2
  70. package/lib/{page.designerp.generatortree.42248e8f.mjs → page.designerp.generatortree.a26b78ae.mjs} +1 -1
  71. package/lib/{page.designerp.generatortree.e8320600.js → page.designerp.generatortree.f5ea6e0f.js} +1 -1
  72. package/lib/{page.designerp.main.8d72b4b4.js → page.designerp.main.9ac6b94e.js} +1 -1
  73. package/lib/{page.designerp.main.79f9b559.mjs → page.designerp.main.f05dd663.mjs} +1 -1
  74. package/lib/{page.designerp.properties.9e22da8e.mjs → page.designerp.properties.3bfd6455.mjs} +12 -12
  75. package/lib/{page.designerp.properties.e0e1b3c6.js → page.designerp.properties.e858d8e2.js} +1 -1
  76. package/lib/{page.designerp.propertiesbtn.40f9c7ec.mjs → page.designerp.propertiesbtn.187e7302.mjs} +1 -1
  77. package/lib/{page.designerp.propertiesbtn.1677b44b.js → page.designerp.propertiesbtn.d73a924e.js} +1 -1
  78. package/lib/{page.designerp.propertieschartbi.076e60a8.mjs → page.designerp.propertieschartbi.2d32c538.mjs} +1 -1
  79. package/lib/{page.designerp.propertieschartbi.f584d384.js → page.designerp.propertieschartbi.9b310756.js} +1 -1
  80. package/lib/{page.designerp.propertiesdrawercontainer.6aa245e7.mjs → page.designerp.propertiesdrawercontainer.40446788.mjs} +1 -1
  81. package/lib/{page.designerp.propertiesdrawercontainer.4602bd6f.js → page.designerp.propertiesdrawercontainer.4aa21503.js} +1 -1
  82. package/lib/{page.designerp.propertiesecharts.d59cc912.js → page.designerp.propertiesecharts.5002d91b.js} +1 -1
  83. package/lib/{page.designerp.propertiesecharts.517664c0.mjs → page.designerp.propertiesecharts.fcf3eaa6.mjs} +2 -2
  84. package/lib/{page.designerp.propertiesgridmenu.4113765c.js → page.designerp.propertiesgridmenu.4e7e22c0.js} +1 -1
  85. package/lib/{page.designerp.propertiesgridmenu.db55e28c.mjs → page.designerp.propertiesgridmenu.c7214ec6.mjs} +1 -1
  86. package/lib/{page.designerp.propertieslist.dda1709b.mjs → page.designerp.propertieslist.828fd439.mjs} +3 -3
  87. package/lib/{page.designerp.propertieslist.caa42641.js → page.designerp.propertieslist.c7d72d78.js} +1 -1
  88. package/lib/{page.designerp.propertiesstatistic.32f7a24d.js → page.designerp.propertiesstatistic.0f2da29f.js} +1 -1
  89. package/lib/{page.designerp.propertiesstatistic.4e14df8b.mjs → page.designerp.propertiesstatistic.a417c9e7.mjs} +1 -1
  90. package/lib/{page.designerp.propertiestable.1fdf9134.mjs → page.designerp.propertiestable.172f9499.mjs} +4 -4
  91. package/lib/{page.designerp.propertiestable.07b36fd6.js → page.designerp.propertiestable.658e0534.js} +1 -1
  92. package/lib/{page.designerp.propertiestablegrid.f606c227.mjs → page.designerp.propertiestablegrid.6b5bbe93.mjs} +5 -5
  93. package/lib/{page.designerp.propertiestablegrid.ccfbd8d6.js → page.designerp.propertiestablegrid.e208f5d1.js} +1 -1
  94. package/lib/{page.designerp.propertiestree.40f7f272.mjs → page.designerp.propertiestree.61da99df.mjs} +3 -3
  95. package/lib/{page.designerp.propertiestree.7848fdff.js → page.designerp.propertiestree.ee7014b7.js} +1 -1
  96. package/lib/page.filedocument.build.48a5874e.js +1 -0
  97. package/lib/{page.filedocument.build.c0f90ccd.mjs → page.filedocument.build.61f014b4.mjs} +130 -131
  98. package/lib/{personal.echarts.4f212a5c.mjs → personal.echarts.268fea3e.mjs} +1 -1
  99. package/lib/{personal.echarts.12a0fad6.js → personal.echarts.a78792db.js} +1 -1
  100. package/lib/{router.config.65dd255f.mjs → router.config.8be3d360.mjs} +8 -8
  101. package/lib/{router.config.77b867ce.js → router.config.e68a29e1.js} +1 -1
  102. package/lib/{search.advanced.327fd0be.mjs → search.advanced.dc688c5c.mjs} +2 -2
  103. package/lib/{search.advanced.be9d450f.js → search.advanced.ec1656d2.js} +1 -1
  104. package/lib/{solution.menu.a42e3c39.js → solution.menu.b487f819.js} +1 -1
  105. package/lib/{solution.menu.fe7037d5.mjs → solution.menu.eea5a105.mjs} +1 -1
  106. package/lib/style.css +2 -2
  107. package/lib/{sysComponents.7bcb6181.mjs → sysComponents.5cffa46d.mjs} +1 -1
  108. package/lib/{sysComponents.96b83ac9.js → sysComponents.90398324.js} +1 -1
  109. package/lib/{system.account.f43288ef.js → system.account.042e1580.js} +6 -6
  110. package/lib/{system.account.89c40faa.mjs → system.account.a315cddc.mjs} +37 -33
  111. package/lib/system.document.classifymanage.4daf3782.mjs +639 -0
  112. package/lib/system.document.classifymanage.c3771fa0.js +1 -0
  113. package/lib/system.document.recyclemanage.20503887.mjs +591 -0
  114. package/lib/system.document.recyclemanage.46e290c5.js +1 -0
  115. package/lib/{system.user.c90fd671.js → system.user.02e22feb.js} +4 -4
  116. package/lib/{system.user.3fb93f0e.mjs → system.user.98c9f5e7.mjs} +10 -4
  117. package/lib/{table.definition.btnconfig.edb31f00.mjs → table.definition.btnconfig.66fef981.mjs} +1 -1
  118. package/lib/{table.definition.btnconfig.ad94433f.js → table.definition.btnconfig.83478480.js} +1 -1
  119. package/lib/{table.definition.echartsconfig.1b55ec5a.js → table.definition.echartsconfig.02ff98ea.js} +1 -1
  120. package/lib/{table.definition.echartsconfig.11213eaa.mjs → table.definition.echartsconfig.34eea92d.mjs} +1 -1
  121. package/lib/{table.definition.fkconfig.c1f383ce.mjs → table.definition.fkconfig.a15d547f.mjs} +5 -5
  122. package/lib/{table.definition.fkconfig.0cb9807b.js → table.definition.fkconfig.cdd19291.js} +1 -1
  123. package/lib/{table.definition.formconfig.14140199.js → table.definition.formconfig.772f9395.js} +1 -1
  124. package/lib/{table.definition.formconfig.a1e3179f.mjs → table.definition.formconfig.cff793af.mjs} +2 -2
  125. package/lib/{utils.componentssys.js.0b63c908.mjs → utils.componentssys.js.539b7c3b.mjs} +12 -12
  126. package/lib/{utils.componentssys.js.85b0f05e.js → utils.componentssys.js.a28c0ac2.js} +1 -1
  127. package/lib/{view.build.c08b0135.mjs → view.build.c4c937d6.mjs} +5 -5
  128. package/lib/{view.build.9cf1f654.js → view.build.cbf165ac.js} +1 -1
  129. package/package.json +59 -107
  130. package/lib/components.iconselector.b74b573b.js +0 -1
  131. package/lib/components.table.queriesfield.49895bed.js +0 -1
  132. package/lib/form.designer.build.2b2da0f4.js +0 -1
  133. package/lib/index.d884234a.js +0 -1
  134. package/lib/main.085ed428.mjs +0 -988
  135. package/lib/page.designerp.generatorgridmenu.dfa1fbbb.js +0 -1
  136. package/lib/page.filedocument.build.54ae14c3.js +0 -1
  137. package/lib/system.document.1e100a7f.mjs +0 -1222
  138. package/lib/system.document.767210d3.js +0 -1
@@ -0,0 +1,941 @@
1
+ import { n as d, m as g, a as _ } from "./components.answerquestions.0e877977.mjs";
2
+ import { d as b, c as v } from "./http.sysapps.1786b914.mjs";
3
+ import { m as $, g as f } from "./page.designer.menutree.34aedf7f.mjs";
4
+ import { d as C, e as h } from "./page.designer.componentstree.aa8b51b9.mjs";
5
+ import { c as k } from "./form.designer.relevancetree.9f6236b8.mjs";
6
+ import { o as T } from "./page.designer.outlinetree.93be7ac0.mjs";
7
+ import { p as x, l as D } from "./page.designer.layouts.5d641118.mjs";
8
+ import { e as S, c as w } from "./index.e051f15e.mjs";
9
+ import { p as N } from "./page.designerp.main.f05dd663.mjs";
10
+ import { p as K } from "./page.designerp.properties.3bfd6455.mjs";
11
+ import { p as I, u } from "./utils.util.js.16b83ff8.mjs";
12
+ import { a as P, d as O } from "./http.appmanage.e389782d.mjs";
13
+ import { d as A, a as j } from "./http.menumanage.3060f4c7.mjs";
14
+ import { s as y } from "./http.translationmanage.31fc6aac.mjs";
15
+ import { o as E } from "./page.designer.operation.39bf6856.mjs";
16
+ import { G as z } from "./main.95d3ff6c.mjs";
17
+ import F from "./layouts.routeview.0ed29d00.mjs";
18
+ import { t as L } from "./components.sidemenu.f9c6f1ec.mjs";
19
+ import "./http.filemanage.237ea8fc.mjs";
20
+ import "./http.questionnaire.6eb24ee9.mjs";
21
+ import "./utils.concurrencyrequest.js.dee4fcd2.mjs";
22
+ import "./core.bootstrap.604e7264.mjs";
23
+ import "./utils.language.js.153d7ab7.mjs";
24
+ import "./components.table.46e5f7b8.mjs";
25
+ import "./http.tabledevelopment.dfb8eb7f.mjs";
26
+ import "vue";
27
+ import "./router.config.8be3d360.mjs";
28
+ import "./layouts.userlayout.917cdb2e.mjs";
29
+ import "./layouts.blanklayout.c0ca4032.mjs";
30
+ import "./layouts.trlatout.a8947843.mjs";
31
+ import "./store.config.a8f7076a.mjs";
32
+ import "./http.loginmanage.05500c29.mjs";
33
+ import "./http.usermanage.f3d5587a.mjs";
34
+ import "./form.build.807eabbb.mjs";
35
+ import "./page.bcomponents.table.9234e90b.mjs";
36
+ import "./http.main.573b8993.mjs";
37
+ import "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
38
+ import "./http.legal.d2a896d7.mjs";
39
+ import "./components.tablevirtual.48aefc4c.mjs";
40
+ import "./components.tableumy.f02e6136.mjs";
41
+ import "./components.table.childheader.886bb5e9.mjs";
42
+ import "./utils.datepicker.js.1202e6ce.mjs";
43
+ import "./utils.axios.js.4fec2453.mjs";
44
+ import "./components.table.childheaderfilter.a5863bed.mjs";
45
+ import "./http.useraffiliation.f2a29f92.mjs";
46
+ import "./utils.plug.js.9313aead.mjs";
47
+ import "./components.tooltip.789fd22e.mjs";
48
+ import "./components.buttonlist.1025d103.mjs";
49
+ import "./components.form.082d9c9b.mjs";
50
+ import "./components.selecttree.aaefa53b.mjs";
51
+ import "./components.table.queriesfield.84733bb7.mjs";
52
+ import "./components.imgpreview.9f4b916e.mjs";
53
+ import "./components.modaltitle.db443428.mjs";
54
+ import "./components.teamsharing.4ed30b56.mjs";
55
+ import "./components.middleware.de7c0ce7.mjs";
56
+ import "./components.echarts.7c5e8501.mjs";
57
+ import "./components.viewloading.fcfc42cb.mjs";
58
+ import "./components.exception.37038125.mjs";
59
+ import "./components.uploadfile.8a21a730.mjs";
60
+ import "./components.uploadimg.fa7904c6.mjs";
61
+ import "./components.watermark.be739fda.mjs";
62
+ import "./components.viewformdetails.3ab3d4b1.mjs";
63
+ import "./http.codegeneratemanage.4d2fb50a.mjs";
64
+ import "./components.buttonblock.f53ac4ec.mjs";
65
+ import "./components.selectmultiple.adc9cf2b.mjs";
66
+ import "./layouts.basiclayout.422c6adc.mjs";
67
+ import "./layouts.iframe.f2b2206f.mjs";
68
+ import "./layouts.pageview.57dd3d43.mjs";
69
+ import "./layouts.basiclayoutempty.f20dfc56.mjs";
70
+ import "./layouts.basiclayouttop.4047325d.mjs";
71
+ import "./search.advanced.dc688c5c.mjs";
72
+ import "./flow.designer.flowsfilter.3909d81b.mjs";
73
+ import "./components.xlsximport.40d427c7.mjs";
74
+ import "./page.bmodule.screendands.f1f47ebe.mjs";
75
+ import "./page.bmodule.auditlog.564f4370.mjs";
76
+ import "./page.audit.log.build.5411e8bf.mjs";
77
+ import "./form.designer.duplicate.60ef52a6.mjs";
78
+ import "./utils.mixins.js.6f0923ed.mjs";
79
+ import "./page.build.d8557c78.mjs";
80
+ import "./form.designer.build.136e3cdd.mjs";
81
+ import "./http.duplicatechecking.9b79ce21.mjs";
82
+ import "./mobile.bmodule.noticebar.1eb640d8.mjs";
83
+ import "./components.xlsxexport.eb819c25.mjs";
84
+ import "./components.coloreditor.1bdd12b6.mjs";
85
+ import "./page.designerp.generatorecharts.243dafb6.mjs";
86
+ import "./table.definition.echartsconfig.34eea92d.mjs";
87
+ import "./page.designer.fieldfiltering.2ed8a03f.mjs";
88
+ import "./page.application.72fd9f5e.mjs";
89
+ import "./view.build.c4c937d6.mjs";
90
+ import "./translation.mains.4a16b907.mjs";
91
+ import "./system.translation.57234588.mjs";
92
+ import "./page.bcomponents.datalist.ebe77c09.mjs";
93
+ import "./page.bcomponents.dialog.34940cbd.mjs";
94
+ import "./page.bcomponents.drawer.82b043d9.mjs";
95
+ import "./page.bcomponents.drawercontainerlayout.a0f16d57.mjs";
96
+ import "./page.designerp.mixins.318e45f8.mjs";
97
+ import "./table.definition.fkconfig.a15d547f.mjs";
98
+ import "./http.datasource.aa5cd0d1.mjs";
99
+ import "./table.definition.formconfig.cff793af.mjs";
100
+ import "./table.definition.permissionconfig.9f439200.mjs";
101
+ import "./http.posmanage.ee6a7613.mjs";
102
+ import "./table.definition.btnconfig.66fef981.mjs";
103
+ import "./table.definition.relconfig1n.b4da0947.mjs";
104
+ import "./table.definition.relconfign1.bdbbda84.mjs";
105
+ const M = {
106
+ data() {
107
+ return {
108
+ activeNames: ["layout"]
109
+ };
110
+ },
111
+ computed: {},
112
+ components: { collapseItem: k },
113
+ methods: {},
114
+ created() {
115
+ }
116
+ };
117
+ var J = function() {
118
+ var e = this, t = e._self._c;
119
+ return t("div", { staticClass: "designer-template" }, [t("el-collapse", { model: { value: e.activeNames, callback: function(s) {
120
+ e.activeNames = s;
121
+ }, expression: "activeNames" } }, [t("el-collapse-item", { attrs: { title: e.$i18nt("gd.page.baseTemplate", "\u57FA\u7840\u6A21\u7248"), name: "layout" } })], 1)], 1);
122
+ }, B = [], R = /* @__PURE__ */ d(
123
+ M,
124
+ J,
125
+ B,
126
+ !1,
127
+ null,
128
+ "c6d75591",
129
+ null,
130
+ null
131
+ );
132
+ const G = R.exports;
133
+ const V = {
134
+ props: {
135
+ config: {
136
+ type: Object,
137
+ required: !0
138
+ }
139
+ },
140
+ data() {
141
+ return {};
142
+ },
143
+ watch: {
144
+ config: {
145
+ handler(i, e) {
146
+ this.init(i, e);
147
+ },
148
+ deep: !0,
149
+ immediate: !0
150
+ }
151
+ },
152
+ computed: {
153
+ ...g(["primaryColor"])
154
+ },
155
+ components: { IconSelector: () => import("./components.iconselector.ded60514.mjs").then((i) => i.i) },
156
+ methods: {
157
+ init(i, e) {
158
+ e !== void 0 && i.id !== e.id && this.$refs.gdTranslation && this.$refs.gdTranslation.againInit();
159
+ },
160
+ handleIcon(i = "select") {
161
+ this.$refs.iconSelector.open();
162
+ },
163
+ lookupSeled(i) {
164
+ this.config.name = i.defaulttext;
165
+ }
166
+ }
167
+ };
168
+ var H = function() {
169
+ var e = this, t = e._self._c;
170
+ return t("div", { staticClass: "designer-properties" }, [t("div", { staticClass: "properties-content" }, [t("div", { staticClass: "title flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.application.content", "\u72B6\u6001")))])])]), t("div", { staticClass: "properties-kuang" }, [t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.application.state", "\u72B6\u6001")))]), t("el-switch", { attrs: { "active-color": e.primaryColor, "active-value": 1, "inactive-value": 0 }, model: { value: e.config.statecodes, callback: function(s) {
171
+ e.$set(e.config, "statecodes", s);
172
+ }, expression: "config.statecodes" } })], 1), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.application.name", "\u540D\u79F0")))]), t("div", { staticStyle: { width: "160px" } }, [e.config.transkey ? t("gd-translation", { ref: "gdTranslation", attrs: { recordData: e.config, type: 2 }, on: { lookupSeled: e.lookupSeled } }) : t("el-input", { staticStyle: { width: "160px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", clearable: "" }, model: { value: e.config.name, callback: function(s) {
173
+ e.$set(e.config, "name", s);
174
+ }, expression: "config.name" } })], 1)]), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.application.code", "\u552F\u4E00\u7F16\u7801")))]), t("el-input", { staticStyle: { width: "160px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", clearable: "", disabled: "" }, model: { value: e.config.code, callback: function(s) {
175
+ e.$set(e.config, "code", s);
176
+ }, expression: "config.code" } })], 1), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.application.icon", "\u56FE\u6807")))]), t("div", { staticClass: "item-operator flex" }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", clearable: "" }, model: { value: e.config.icon, callback: function(s) {
177
+ e.$set(e.config, "icon", s);
178
+ }, expression: "config.icon" } }, [e.config.icon ? t("i", { staticClass: "el-input__icon gd-icons active-color", class: e.config.icon, staticStyle: { "font-weight": "400", "font-size": "16px" }, attrs: { slot: "prefix" }, slot: "prefix" }) : e._e()]), t("div", { staticClass: "item-operator-cao flex" }, [t("i", { staticClass: "el-icon-search", on: { click: e.handleIcon } })])], 1)]), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.application.sort", "\u6392\u5E8F")))]), t("el-input-number", { staticStyle: { width: "160px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", "controls-position": "right" }, model: { value: e.config.sort, callback: function(s) {
179
+ e.$set(e.config, "sort", s);
180
+ }, expression: "config.sort" } })], 1)]), t("IconSelector", { ref: "iconSelector", model: { value: e.config.icon, callback: function(s) {
181
+ e.$set(e.config, "icon", s);
182
+ }, expression: "config.icon" } })], 1);
183
+ }, q = [], Y = /* @__PURE__ */ d(
184
+ V,
185
+ H,
186
+ q,
187
+ !1,
188
+ null,
189
+ "c1e3f5f5",
190
+ null,
191
+ null
192
+ );
193
+ const Q = Y.exports;
194
+ const U = {
195
+ props: {
196
+ config: {
197
+ type: Object,
198
+ required: !0
199
+ }
200
+ },
201
+ data() {
202
+ return {};
203
+ },
204
+ components: { propertiesPc: x },
205
+ computed: {
206
+ options() {
207
+ return this.config.options;
208
+ },
209
+ ...g(["primaryColor"])
210
+ },
211
+ methods: {
212
+ change() {
213
+ this.$emit("changeExtends");
214
+ }
215
+ }
216
+ };
217
+ var W = function() {
218
+ var e = this, t = e._self._c;
219
+ return t("div", { staticClass: "designer-properties" }, [t("div", { staticClass: "properties-content" }, [t("div", { staticClass: "title flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.application.openNavigation", "\u540D\u79F0")))]), t("el-radio-group", { attrs: { size: "mini" }, on: { change: e.change }, model: { value: e.options.isNavigation, callback: function(s) {
220
+ e.$set(e.options, "isNavigation", s);
221
+ }, expression: "options.isNavigation" } }, [t("el-radio-button", { attrs: { label: 1 } }, [e._v(e._s(e.$i18nt("gd.application.open", "\u5F00\u542F")))]), t("el-radio-button", { attrs: { label: 0 } }, [e._v(e._s(e.$i18nt("gd.application.close", "\u5F00\u542F")))])], 1)], 1), e.options.isNavigation ? [t("el-divider"), t("div", { staticClass: "title flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.application.basicLayout", "\u57FA\u672C\u5E03\u5C40")))]), t("el-radio-group", { attrs: { size: "mini" }, on: { change: e.change }, model: { value: e.options.isInherit, callback: function(s) {
222
+ e.$set(e.options, "isInherit", s);
223
+ }, expression: "options.isInherit" } }, [t("el-radio-button", { attrs: { label: 1 } }, [e._v(e._s(e.$i18nt("gd.application.inherit", "\u7EE7\u627F")))]), t("el-radio-button", { attrs: { label: 0 } }, [e._v(e._s(e.$i18nt("gd.application.custom", "\u81EA\u5B9A\u4E49")))])], 1)], 1)] : e._e()], 2), t("el-divider"), e.options.isNavigation === 1 && e.options.isInherit === 0 ? t("propertiesPc", { attrs: { options: e.options } }) : e._e()], 1);
224
+ }, X = [], Z = /* @__PURE__ */ d(
225
+ U,
226
+ W,
227
+ X,
228
+ !1,
229
+ null,
230
+ "b29db9cb",
231
+ null,
232
+ null
233
+ );
234
+ const ee = Z.exports;
235
+ const te = {
236
+ props: {
237
+ config: {
238
+ type: Object,
239
+ required: !0
240
+ }
241
+ },
242
+ data() {
243
+ return {};
244
+ },
245
+ watch: {
246
+ config: {
247
+ handler(i, e) {
248
+ this.init(i, e);
249
+ },
250
+ deep: !0,
251
+ immediate: !0
252
+ }
253
+ },
254
+ components: { IconSelector: () => import("./components.iconselector.ded60514.mjs").then((i) => i.i) },
255
+ computed: {
256
+ ...g(["primaryColor"])
257
+ },
258
+ methods: {
259
+ init(i, e) {
260
+ e !== void 0 && i.id !== e.id && this.$refs.gdTranslation && this.$refs.gdTranslation.againInit();
261
+ },
262
+ handleIcon(i = "select") {
263
+ this.$refs.iconSelector.open();
264
+ },
265
+ getDictionary(i) {
266
+ return this.$options.filters.dictData(i);
267
+ },
268
+ lookupSeled(i) {
269
+ this.config.name = i.defaulttext;
270
+ }
271
+ }
272
+ };
273
+ var ie = function() {
274
+ var e = this, t = e._self._c;
275
+ return t("div", { staticClass: "designer-properties" }, [t("div", { staticClass: "properties-content" }, [t("div", { staticClass: "title flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.directory.content", "\u5185\u5BB9")))])])]), t("div", { staticClass: "properties-kuang" }, [t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.directory.visibleOrNot", "\u662F\u5426\u53EF\u89C1")))]), t("el-switch", { attrs: { "active-color": e.primaryColor, "active-value": "Y", "inactive-value": "N" }, model: { value: e.config.visible, callback: function(s) {
276
+ e.$set(e.config, "visible", s);
277
+ }, expression: "config.visible" } })], 1), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.directory.name", "\u540D\u79F0")))]), t("div", { staticStyle: { width: "160px" } }, [e.config.transkey ? t("gd-translation", { ref: "gdTranslation", attrs: { recordData: e.config, type: 2 }, on: { lookupSeled: e.lookupSeled } }) : t("el-input", { staticClass: "name_input", staticStyle: { width: "160px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", clearable: "" }, model: { value: e.config.name, callback: function(s) {
278
+ e.$set(e.config, "name", s);
279
+ }, expression: "config.name" } })], 1)]), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.directory.code", "\u552F\u4E00\u7F16\u7801")))]), t("el-input", { staticStyle: { width: "160px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", clearable: "", disabled: "" }, model: { value: e.config.code, callback: function(s) {
280
+ e.$set(e.config, "code", s);
281
+ }, expression: "config.code" } })], 1), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.directory.router", "\u8DEF\u7531\u5730\u5740")))]), t("el-input", { staticStyle: { width: "160px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", clearable: "", type: "textarea" }, model: { value: e.config.router, callback: function(s) {
282
+ e.$set(e.config, "router", s);
283
+ }, expression: "config.router" } }, [t("template", { slot: "prepend" }, [e._v("/")])], 2)], 1), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.directory.icon", "\u56FE\u6807")))]), t("div", { staticClass: "item-operator flex" }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", clearable: "" }, model: { value: e.config.icon, callback: function(s) {
284
+ e.$set(e.config, "icon", s);
285
+ }, expression: "config.icon" } }, [e.config.icon ? t("i", { staticClass: "el-input__icon gd-icons active-color", class: e.config.icon, staticStyle: { "font-size": "20px" }, attrs: { slot: "prefix" }, slot: "prefix" }) : e._e()]), t("div", { staticClass: "item-operator-cao flex" }, [t("i", { staticClass: "el-icon-search", on: { click: e.handleIcon } })])], 1)]), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.directory.weight", "\u6743\u91CD")))]), t("el-select", { staticStyle: { width: "160px" }, model: { value: e.config.weight, callback: function(s) {
286
+ e.$set(e.config, "weight", s);
287
+ }, expression: "config.weight" } }, [e._l(e.getDictionary("menu_weight"), function(s) {
288
+ return [t("el-option", { key: s.code, attrs: { label: e.$i18nt(`Dynamics.${s.transKey}`, s.name), value: Number(s.code) } })];
289
+ })], 2)], 1), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.directory.sort", "\u6392\u5E8F")))]), t("el-input-number", { staticStyle: { width: "160px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", "controls-position": "right" }, model: { value: e.config.sort, callback: function(s) {
290
+ e.$set(e.config, "sort", s);
291
+ }, expression: "config.sort" } })], 1), t("div", { staticClass: "item flex" }, [t("div", [e._v(e._s(e.$i18nt("gd.directory.remark", "\u5907\u6CE8")))]), t("el-input", { staticStyle: { width: "160px" }, attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), autosize: { minRows: 4, maxRows: 6 } }, model: { value: e.config.remark, callback: function(s) {
292
+ e.$set(e.config, "remark", s);
293
+ }, expression: "config.remark" } })], 1)]), t("IconSelector", { ref: "iconSelector", model: { value: e.config.icon, callback: function(s) {
294
+ e.$set(e.config, "icon", s);
295
+ }, expression: "config.icon" } })], 1);
296
+ }, se = [], ae = /* @__PURE__ */ d(
297
+ te,
298
+ ie,
299
+ se,
300
+ !1,
301
+ null,
302
+ "39e61258",
303
+ null,
304
+ null
305
+ );
306
+ const ne = ae.exports;
307
+ const oe = {
308
+ data() {
309
+ return {};
310
+ },
311
+ components: {
312
+ emptyControl: S
313
+ },
314
+ methods: {}
315
+ };
316
+ var re = function() {
317
+ var e = this, t = e._self._c;
318
+ return t("div", { staticClass: "designer-properties" }, [t("emptyControl")], 1);
319
+ }, ce = [], le = /* @__PURE__ */ d(
320
+ oe,
321
+ re,
322
+ ce,
323
+ !1,
324
+ null,
325
+ "68e57fd2",
326
+ null,
327
+ null
328
+ );
329
+ const de = le.exports;
330
+ const pe = {
331
+ props: {
332
+ activeKey: {
333
+ type: String,
334
+ default: "page"
335
+ },
336
+ doneFun: {
337
+ type: Function
338
+ }
339
+ },
340
+ components: {
341
+ menuTree: $,
342
+ componentsTree: C,
343
+ templateTree: G,
344
+ outlineTree: T,
345
+ layoutsProperties: D,
346
+ componentPanel: w
347
+ },
348
+ data() {
349
+ return {
350
+ statu: !0,
351
+ selectedNode: {},
352
+ show: !1,
353
+ record: {},
354
+ outlineTreeData: {
355
+ dialogTree: [],
356
+ pageTree: [],
357
+ componentsList: []
358
+ },
359
+ allPermission: [],
360
+ treeData: [],
361
+ navParameters: {},
362
+ selectItem: {
363
+ key: ""
364
+ },
365
+ activeTab: "attribute",
366
+ dataConfig: {
367
+ list: [],
368
+ addTransKey: []
369
+ },
370
+ config: {},
371
+ platformData: {}
372
+ };
373
+ },
374
+ watch: {
375
+ config: {
376
+ handler(i, e) {
377
+ if (this.statu)
378
+ return;
379
+ const t = this.pageDesignerData.filter((a) => `${a.id}_${a.sysAppsIded}` == `${i.id}_${i.sysAppsIded}`)[0];
380
+ if (t === void 0) {
381
+ const a = JSON.parse(JSON.stringify(i)), o = Object.assign(a, {
382
+ basicAttribute: "",
383
+ children: [],
384
+ options: i.modeType === "application" ? { ...this.platformData } : i.modeType === "navigation" ? { ...i.options } : { ...this.dataConfig }
385
+ });
386
+ this.PageDesignerData(this.pageDesignerData.concat([o]));
387
+ return;
388
+ }
389
+ const s = this.pageDesignerData.filter((a) => `${a.id}_${a.sysAppsIded}` != `${i.id}_${i.sysAppsIded}`);
390
+ let n = Object.assign({ ...t }, { ...i }, { children: [] });
391
+ i.modeType === "page" && Object.assign(n, { options: { ...this.dataConfig } }), this.PageDesignerData(s.concat([n]));
392
+ },
393
+ deep: !0,
394
+ immediate: !0
395
+ },
396
+ navParameters: {
397
+ handler(i, e) {
398
+ if (this.statu)
399
+ return;
400
+ const t = this.pageDesignerData.filter((a) => `${a.id}_${a.sysAppsIded}` == `${this.config.id}_${this.config.sysAppsIded}`)[0];
401
+ if (t === void 0)
402
+ return;
403
+ const s = this.pageDesignerData.filter((a) => `${a.id}_${a.sysAppsIded}` != `${t.id}_${t.sysAppsIded}`);
404
+ let n = Object.assign(
405
+ { ...t },
406
+ {
407
+ children: [],
408
+ options: t.modeType === "navigation" ? JSON.parse(JSON.stringify(this.platformData)) : JSON.parse(JSON.stringify(this.config.options))
409
+ }
410
+ );
411
+ t.modeType !== "navigation" && this.PageDesignerData(s.concat([n]));
412
+ },
413
+ deep: !0,
414
+ immediate: !0
415
+ }
416
+ },
417
+ computed: {
418
+ prefixKey() {
419
+ return I("sm", this.config.id);
420
+ },
421
+ componentAttribute() {
422
+ return { application: Q, directory: ne, page: N }[this.config.modeType];
423
+ },
424
+ componentProperties() {
425
+ return { application: ee, directory: de, page: K }[this.config.modeType];
426
+ },
427
+ disabled() {
428
+ return this.config.modeType === "directory";
429
+ },
430
+ disabledDraggable() {
431
+ return this.config.modeType !== "page";
432
+ },
433
+ getComponentsTree() {
434
+ return h;
435
+ },
436
+ ...g(["pageDesignerData"])
437
+ },
438
+ methods: {
439
+ init(i) {
440
+ const e = this.pageDesignerData.filter((n) => `0_${n.sysAppsIded}` == `0_${i.id}` && n.id === 0)[0];
441
+ let t = { ...i.basicattribute };
442
+ if (e && e.updatedtime === i.updatedtime && (t = { ...e.options }), e && e.updatedtime !== this.record.updatedtime) {
443
+ const n = this.pageDesignerData.filter((a) => `${a.id}_${a.sysAppsIded}` != `${e.id}_${e.sysAppsIded}`);
444
+ this.PageDesignerData(n);
445
+ }
446
+ t.pc.menus.filter((n) => n.key === "logout")[0] || (t.pc.menus = t.pc.menus.concat([
447
+ {
448
+ name: "\u9000\u51FA\u767B\u5F55",
449
+ key: "logout",
450
+ statu: !0,
451
+ disabled: !1,
452
+ transkey: "gd.menu.logOut"
453
+ }
454
+ ])), this.record = Object.assign(i, { basicAttribute: { ...t } }), this.platformData = t, this.$nextTick(() => {
455
+ setTimeout(() => {
456
+ this.show = !0;
457
+ }, 10);
458
+ });
459
+ },
460
+ outlineTreeList(i) {
461
+ this.outlineTreeData = { ...i };
462
+ },
463
+ async outlineSelectItem(i, e) {
464
+ const t = e.filter((r) => ["dialog", "drawer"].includes(r.type))[0];
465
+ let s = e.filter((r) => r.key === i.pid)[0], n = {}, a = {}, o = {}, c = {};
466
+ const p = (r) => (r = r.filter((l, De) => (l.key === i.pid && (s = { ...l }), l.key === i.key && (n = l), t && l.key === t.key && (a = { ...l }), s && l.key === s.pid && (c = { ...l }), ["grid", "tabs", "collapse", "drawer", "dialog"].includes(l.type) ? l.columns.forEach((m) => {
467
+ s && m.key === s.key && (o = { ...m }), m.key === i.key && (n = Object.assign(m, { prohibitDelete: !0 })), p(m.list);
468
+ }) : ["card", "batch", "form", "containerPanel", "drawerContainer", "flexLayout", "dataList"].includes(l.type) && p(l.list), !0)), r);
469
+ await p(this.dataConfig.list), this.selectItem.options && this.selectItem.options.closed && a.options && this.selectItem.key !== a.key && this.selectItem.options.closed(), ["tabs"].includes(c.type) ? c.options.activeKey = o.key : s !== void 0 && ["tabs"].includes(s.type) && c.type === void 0 && (s.options.activeKey = i.key), ["collapse"].includes(c.type) ? c.options.activeKey = c.options.activeKey.filter((r) => r !== o.key).concat([o.key]) : s !== void 0 && ["collapse"].includes(s.type) && c.type === void 0 && (s.options.activeKey = s.options.activeKey.filter((r) => r !== i.key).concat([i.key])), ["dialog", "drawer"].includes(n.type) && (a = n), this.$nextTick(() => {
470
+ this.dataConfig.list.filter((r) => {
471
+ ["dialog", "drawer"].includes(r.type) && r.options.visible && a.key !== r.key && r.options.closed();
472
+ }), this.selectItem = n, this.$refs.componentPanel.getPosition(n), this.changeTab({ name: "style" }), setTimeout(() => {
473
+ a.options && a.options.open !== void 0 ? a.options && a.options.open() : a.options && a.options.visible !== void 0 && (a.options.visible = !0);
474
+ }, 10);
475
+ });
476
+ },
477
+ changeExtends() {
478
+ this.$refs.menuTree.getNavParameters(this.config);
479
+ },
480
+ handleSetSelectItem(i) {
481
+ i.type === "statistic" && i.backgroundImage !== void 0 && Object.assign(i.backgroundImage, {
482
+ position: i.backgroundImage.position.map((e) => e === null ? void 0 : e)
483
+ }), this.selectItem = i, this.changeTab({ name: "style" }), this.handleSetDialog(i), this.$refs.componentPanel.getPosition(i);
484
+ },
485
+ handleDel() {
486
+ this.$refs.componentPanel.handleDelete();
487
+ },
488
+ handleSetDialog(i) {
489
+ if (!["drawer", "dialog"].includes(i.type) || this.dataConfig.list.filter((n) => n.key === i.key)[0])
490
+ return;
491
+ const t = (n) => (n = n.filter((a) => (["grid", "tabs", "collapse", "drawer", "dialog"].includes(a.type) ? (a.columns = a.columns.filter((o) => o.key !== i.key), a.columns.forEach((o, c) => {
492
+ a.columns[c].list = o.list.filter((p) => p.key !== i.key), t(o.list);
493
+ })) : ["card", "batch", "form", "containerPanel", "drawerContainer", "flexLayout", "dataList"].includes(a.type) && (a.list = a.list.filter((o) => o.key !== i.key), t(a.list)), !0)), n);
494
+ t(this.dataConfig.list);
495
+ const s = this.dataConfig.list.filter((n) => n.options.visible);
496
+ this.$nextTick(() => {
497
+ setTimeout(() => {
498
+ s.forEach((n) => {
499
+ n.options.closed && n.options.closed();
500
+ });
501
+ }, 200);
502
+ }), this.dataConfig.list.push(JSON.parse(JSON.stringify(i))), this.selectItem = this.dataConfig.list[this.dataConfig.list.length - 1];
503
+ },
504
+ handleDelete(i) {
505
+ },
506
+ handleEnd(i) {
507
+ },
508
+ handleStart(i) {
509
+ },
510
+ handleListPush(i) {
511
+ if (this.disabledDraggable)
512
+ return;
513
+ const e = h.filter((n) => n.type === i.type)[0];
514
+ ["dialog", "drawer"].includes(this.selectItem.type) && this.dataConfig.list.filter((n) => {
515
+ ["dialog", "drawer"].includes(n.type) && (n.options.visible = !1, n.options.closed && n.options.closed());
516
+ });
517
+ const t = e.type + "_" + u(8), s = JSON.parse(JSON.stringify(e));
518
+ if (s.columns !== void 0) {
519
+ const n = s.columns.map((a) => (a.key = a.type + "_" + u(8), a));
520
+ Object.assign(s, { key: t, columns: n });
521
+ } else
522
+ Object.assign(s, { key: t });
523
+ if ([
524
+ "input",
525
+ "textarea",
526
+ "editor",
527
+ "inputNumber",
528
+ "switch",
529
+ "radio",
530
+ "checkbox",
531
+ "select",
532
+ "uploadImg",
533
+ "uploadFile",
534
+ "datePicker",
535
+ "timePicker",
536
+ "selectMultiple"
537
+ ].includes(s.type) && (s.options.columnName = t), !this.selectItem.key)
538
+ return this.dataConfig.list.push(s), this.handleSetSelectItem(s), !1;
539
+ ["dialog", "drawer"].includes(e.type) ? (Object.assign(s, { key: t }), this.handleSetSelectItem(s)) : this.$refs.componentPanel.handleCopy(!1, s);
540
+ },
541
+ generateKey(i, e) {
542
+ const t = i[e].type + "_" + u(8);
543
+ if ([
544
+ "input",
545
+ "textarea",
546
+ "editor",
547
+ "inputNumber",
548
+ "switch",
549
+ "radio",
550
+ "checkbox",
551
+ "select",
552
+ "uploadImg",
553
+ "uploadFile",
554
+ "datePicker",
555
+ "timePicker",
556
+ "selectMultiple"
557
+ ].includes(i[e].type) && (i[e].options.columnName = t), i[e].columns !== void 0) {
558
+ let s = [];
559
+ const n = i[e].columns.map((a) => (s.push(a.key), Object.assign(a, {
560
+ key: a.type + "_" + u(8),
561
+ list: []
562
+ })));
563
+ this.$set(i, e, {
564
+ ...i[e],
565
+ key: t,
566
+ columns: n,
567
+ options: ["tabs", "collapse"].includes(i[e].type) ? Object.assign({ ...i[e].options }, { activeKey: i[e].type === "collapse" ? s : s[0] }) : i[e].options
568
+ });
569
+ } else
570
+ this.$set(i, e, {
571
+ ...i[e],
572
+ key: t
573
+ });
574
+ },
575
+ changeTab(i) {
576
+ this.activeTab = i.name;
577
+ },
578
+ changeTree(i) {
579
+ this.statu = !0, this.config = i.data, this.activeTab = "attribute", this.claearItem(), this.getDataConfig(i), this.selectedNode = i;
580
+ },
581
+ changeNav(i, e) {
582
+ this.navParameters = i, this.treeData = e, this.$nextTick(() => {
583
+ setTimeout(() => {
584
+ this.statu = !1;
585
+ }, 10);
586
+ });
587
+ },
588
+ changePermission(i) {
589
+ this.allPermission = i;
590
+ },
591
+ getDataConfig(i) {
592
+ if (i.data.modeType === "page") {
593
+ this.dataConfig = Object.assign(i.data.options, {
594
+ addTransKey: i.data.options.addTransKey ? i.data.options.addTransKey : []
595
+ });
596
+ return;
597
+ }
598
+ this.dataConfig = {
599
+ list: [],
600
+ addTransKey: []
601
+ };
602
+ },
603
+ claearItem() {
604
+ this.selectItem = {
605
+ key: ""
606
+ }, this.$refs.componentPanel.getPosition(this.selectItem);
607
+ },
608
+ handleClearCache() {
609
+ this.$confirm(this.$i18nt("gd.https.clearCache", "\u6E05\u7406\u672C\u5730\u7F13\u5B58"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
610
+ confirmButtonText: this.$i18nt("gd.https.emptyOk", "\u786E\u8BA4\u6E05\u7A7A"),
611
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
612
+ showClose: !1,
613
+ confirmButtonLoading: !1,
614
+ cancelButtonLoading: !1,
615
+ closeOnClickModal: !1,
616
+ type: "warning",
617
+ confirmButtonClass: "el-button--danger",
618
+ customClass: "custom-alert",
619
+ callback: () => {
620
+ },
621
+ beforeClose: (i, e, t) => {
622
+ t(), i === "confirm" && (this.delClearTransKey(this.pageDesignerData), this.PageDesignerData([]));
623
+ }
624
+ });
625
+ },
626
+ handleClear() {
627
+ this.config.modeType === "page" && this.$confirm(this.$i18nt("gd.https.emptyContent", "\u662F\u5426\u6E05\u7A7A\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
628
+ confirmButtonText: this.$i18nt("gd.https.emptyOk", "\u786E\u8BA4\u6E05\u7A7A"),
629
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
630
+ showClose: !1,
631
+ confirmButtonLoading: !1,
632
+ cancelButtonLoading: !1,
633
+ closeOnClickModal: !1,
634
+ type: "warning",
635
+ confirmButtonClass: "el-button--danger",
636
+ customClass: "custom-alert",
637
+ callback: () => {
638
+ },
639
+ beforeClose: (i, e, t) => {
640
+ t(), i === "confirm" && (this.dataConfig = Object.assign(this.dataConfig, {
641
+ list: []
642
+ }), this.config = Object.assign(this.config, {
643
+ options: {
644
+ list: []
645
+ },
646
+ pageContent: JSON.stringify({
647
+ list: []
648
+ })
649
+ }));
650
+ }
651
+ });
652
+ },
653
+ handleSubmit() {
654
+ this.config.modeType === "navigation" ? this.editNavigation() : this.config.modeType === "application" ? this.editApplication() : this.editMenus();
655
+ },
656
+ async editNavigation() {
657
+ this.doneFun(!0);
658
+ const i = await this.sysAppsDetail();
659
+ b(Object.assign(i, { basicattribute: JSON.stringify(this.platformData) })).then(async (e) => {
660
+ if (e.success) {
661
+ const t = await this.sysAppsDetail();
662
+ this.record = Object.assign(this.record, e.data, {
663
+ basicattribute: JSON.parse(t.basicattribute)
664
+ }), this.platformData = this.record.basicAttribute, this.$nextTick(() => {
665
+ setTimeout(() => {
666
+ this.$refs.menuTree.updateTree(t, this.config.modeType);
667
+ }, 0);
668
+ }), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F"));
669
+ } else
670
+ this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
671
+ this.doneFun(!1);
672
+ });
673
+ },
674
+ editApplication() {
675
+ this.doneFun(!0), Promise.all([this.sysAppEditData(), this.sysAppEditStatu()]).then((i) => {
676
+ const e = i.filter((t) => !t.success)[0];
677
+ e ? this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message) : (this.$refs.menuTree.updateTree(this.config, this.config.modeType), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F"))), this.doneFun(!1);
678
+ });
679
+ },
680
+ async editMenus() {
681
+ this.doneFun(!0);
682
+ let i = this.config.modeType === "directory" ? { ...this.config.options } : { ...this.dataConfig }, e = { addTransKey: i.addTransKey, pagecontent: this.config.pagecontent, modeType: this.config.modeType, options: i };
683
+ if (this.config.modeType === "page") {
684
+ i = await this.foreignMenus(i);
685
+ const s = await this.sysMenuDetail(this.config), n = s.updatedtime === this.config.updatedtime ? {} : { oldPagecontent: s.pagecontent };
686
+ Object.assign(e, n);
687
+ }
688
+ const t = this.config.expansion ? this.config.expansion : {
689
+ padding: [12, 12, 12, 12],
690
+ margin: [0, 0, 0, 0],
691
+ bjColor: "#fff",
692
+ radius: [0, 0, 0, 0],
693
+ customCss: "",
694
+ customClass: ""
695
+ };
696
+ A(
697
+ Object.assign(
698
+ { ...this.config },
699
+ {
700
+ pagecontent: JSON.stringify(
701
+ Object.assign(i, {
702
+ addTransKey: []
703
+ })
704
+ ),
705
+ expansion: JSON.stringify(t),
706
+ children: [],
707
+ basicattribute: void 0,
708
+ pid: this.config.opid
709
+ }
710
+ )
711
+ ).then((s) => {
712
+ s.success ? (this.$refs.menuTree.updateTree(this.config, this.config.modeType), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.delEditTransKey(e)) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + s.message), this.doneFun(!1);
713
+ });
714
+ },
715
+ sysMenuDetail(i) {
716
+ return j({ id: i.id }).then((e) => e.data);
717
+ },
718
+ async delEditTransKey(i) {
719
+ if (i.modeType !== "page")
720
+ return;
721
+ const e = await f(JSON.parse(i.pagecontent)), t = await f(i.options);
722
+ let s = i.addTransKey.concat(e).filter((n) => !t.includes(n));
723
+ if (i.oldPagecontent !== void 0) {
724
+ const a = (await f(JSON.parse(i.oldPagecontent))).filter((o) => !t.includes(o));
725
+ s = s.concat(a);
726
+ }
727
+ s.length != 0 && y({ name: s.join(",") });
728
+ },
729
+ delClearTransKey(i) {
730
+ if (i.length === 0)
731
+ return;
732
+ let e = [];
733
+ i.forEach((t) => {
734
+ t.id !== this.config.id && (e = e.concat(t.options.addTransKey ? t.options.addTransKey : []));
735
+ }), e.length != 0 && y({ name: e.join(",") });
736
+ },
737
+ async foreignMenus(i) {
738
+ let e = [];
739
+ const t = (n) => (n = n.filter((a, o) => (a.fieldContext && (a.fieldContext = []), a.type === "dataList" && e.push(a), a.columns ? a.columns.forEach((c) => {
740
+ t(c.list);
741
+ }) : a.list && t(a.list), !0)), n);
742
+ await t(i.list);
743
+ let s = [];
744
+ return e.forEach((n) => {
745
+ const a = n.options.foreignContextName ? n.options.foreignContextName.split(",") : [];
746
+ if (a.length > 0 && n.options.table.id && n.options.view.id) {
747
+ const o = `${a[0]}${a[1]}`;
748
+ s.push({
749
+ key: a[2],
750
+ fkName: o.replace(/_|-/g, "").toLowerCase(),
751
+ refKeyName: a[0],
752
+ pageSize: n.options.pageSize,
753
+ tableId: n.options.table.id,
754
+ viewId: n.options.view.id,
755
+ pageSizeMode: n.options.pageSizeMode
756
+ });
757
+ }
758
+ }), s.length > 0 && e.forEach((n, a) => {
759
+ const o = s.filter((c) => c.key === n.key);
760
+ e[a].options = Object.assign(n.options, {
761
+ foreignBind: o
762
+ });
763
+ }), i;
764
+ },
765
+ sysAppEditData() {
766
+ const i = { ...this.config.options }, e = Object.assign(
767
+ {},
768
+ { ...this.config },
769
+ {
770
+ isinherit: i.isInherit,
771
+ isnavigation: i.isNavigation,
772
+ basicattribute: JSON.stringify(i),
773
+ children: []
774
+ }
775
+ );
776
+ return e.basicAttribute !== void 0 && delete e.basicAttribute, P(e).then((t) => t);
777
+ },
778
+ sysAppEditStatu() {
779
+ return O({ id: this.config.id, stateCodes: this.config.statecodes }).then((i) => i);
780
+ },
781
+ sysAppsDetail() {
782
+ return v({ id: this.record.id }).then((i) => i.code === 200 ? i.data : this.record);
783
+ },
784
+ doEvent(i) {
785
+ let e = i.item.functionName;
786
+ this[e] && this[e]();
787
+ },
788
+ ..._(["PageDesignerData"])
789
+ }
790
+ };
791
+ var me = function() {
792
+ var e = this, t = e._self._c;
793
+ return e.show ? t("div", { staticClass: "designer-panel" }, [t("div", { staticClass: "designer-conner-lcolumn" }, [t("menuTree", { directives: [{ name: "show", rawName: "v-show", value: e.activeKey === "menu", expression: "activeKey === 'menu'" }], ref: "menuTree", attrs: { platformData: e.platformData, record: e.record, prefixKey: e.prefixKey }, on: { change: e.changeTree, changeNav: e.changeNav, permission: e.changePermission } }), t("componentsTree", { directives: [{ name: "show", rawName: "v-show", value: e.activeKey === "components", expression: "activeKey === 'components'" }], ref: "componentsTree", attrs: { disabled: e.disabledDraggable }, on: { generateKey: e.generateKey, handleListPush: e.handleListPush, start: e.handleStart } }), t("templateTree", { directives: [{ name: "show", rawName: "v-show", value: e.activeKey === "template", expression: "activeKey === 'template'" }], ref: "templateTree", attrs: { disabled: e.disabledDraggable }, on: { generateKey: e.generateKey, handleListPush: e.handleListPush, start: e.handleStart } }), t("outlineTree", { directives: [{ name: "show", rawName: "v-show", value: e.activeKey === "outline", expression: "activeKey === 'outline'" }], ref: "outlineTree", attrs: { data: e.dataConfig, selectItemKey: e.selectItem.key }, on: { handleSelectItem: e.outlineSelectItem, outlineTree: e.outlineTreeList } })], 1), t("div", { staticClass: "designer-conner-box" }, [t("componentPanel", { ref: "componentPanel", attrs: { selectItem: e.selectItem, data: e.dataConfig, config: e.config, disabled: e.disabledDraggable, navParameters: e.navParameters, treeData: e.treeData, develop: 1 }, on: { handleSetSelectItem: e.handleSetSelectItem, handleDelete: e.handleDelete } })], 1), t("div", { staticClass: "designer-conner-rcolumn" }, [e.config.modeType === "navigation" ? [t("el-tabs", { attrs: { type: "border-card" }, on: { "tab-click": e.changeTab }, model: { value: e.activeTab, callback: function(s) {
794
+ e.activeTab = s;
795
+ }, expression: "activeTab" } }, [t("el-tab-pane", { attrs: { label: e.$i18nt("gd.page.pcNavigationConfiguration", "PC\u5BFC\u822A\u914D\u7F6E"), name: "attribute" } }, [t("layoutsProperties", { ref: "layoutsProperties", attrs: { config: e.config, mode: "pc", platformData: e.platformData } })], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.page.mobileNavigationConfiguration", "\u79FB\u52A8\u7AEF\u5BFC\u822A\u914D\u7F6E"), name: "style" } }, [t("layoutsProperties", { ref: "layoutsProperties", attrs: { config: e.config, mode: "mobile", platformData: e.platformData } })], 1)], 1)] : [t("el-tabs", { attrs: { type: "border-card" }, on: { "tab-click": e.changeTab }, model: { value: e.activeTab, callback: function(s) {
796
+ e.activeTab = s;
797
+ }, expression: "activeTab" } }, [t("el-tab-pane", { attrs: { label: e.$i18nt("gd.panel.basicAttribute", "\u57FA\u672C\u5C5E\u6027"), name: "attribute" } }, [t(e.componentAttribute, { tag: "component", attrs: { config: e.config, allPermission: e.allPermission }, on: { permission: e.changePermission } })], 1), t("el-tab-pane", { staticStyle: { height: "100%" }, attrs: { label: e.$i18nt("gd.panel.componentStyle", "\u7EC4\u4EF6\u6837\u5F0F"), name: "style", disabled: e.disabled } }, [t(e.componentProperties, { tag: "component", attrs: { config: e.config, selectItem: e.selectItem, data: e.dataConfig, outlineTreeData: e.outlineTreeData, prefixKey: e.prefixKey, operationSource: "designer" }, on: { changeExtends: e.changeExtends, handleDelete: e.handleDel, handleSetSelectItem: e.handleSetSelectItem } })], 1)], 1)]], 2)]) : e._e();
798
+ }, ge = [], ue = /* @__PURE__ */ d(
799
+ pe,
800
+ me,
801
+ ge,
802
+ !1,
803
+ null,
804
+ "1e4b0b52",
805
+ null,
806
+ null
807
+ );
808
+ const fe = ue.exports;
809
+ const he = {
810
+ name: "GdPageView",
811
+ data() {
812
+ return {};
813
+ },
814
+ components: {
815
+ routeView: F,
816
+ tagMenus: L
817
+ },
818
+ methods: {},
819
+ created() {
820
+ }
821
+ };
822
+ var ye = function() {
823
+ var e = this, t = e._self._c;
824
+ return t("div", { staticClass: "gd-page", staticStyle: { "border-radius": "6px", "min-height": "calc(100vh - 58px)" } }, [t("tagMenus"), t("div", { staticClass: "gd-page-content" }, [t("route-view", [e._v("11")])], 1)], 1);
825
+ }, ve = [], _e = /* @__PURE__ */ d(
826
+ he,
827
+ ye,
828
+ ve,
829
+ !1,
830
+ null,
831
+ "1673b1ad",
832
+ null,
833
+ null
834
+ );
835
+ const be = _e.exports;
836
+ const $e = [
837
+ { name: "\u9875\u9762", icon: "gd-icon-yemian1", transKey: "gd.basics.page", key: "menu" },
838
+ { name: "\u7EC4\u4EF6", icon: "gd-icon-kaifazujian", transKey: "gd.basics.component", key: "components" },
839
+ { name: "\u5927\u7EB2", icon: "gd-icon-dagangshu", transKey: "gd.basics.outline", key: "outline" },
840
+ { name: "\u6570\u636E", icon: "gd-icon-jichushuju1", transKey: "gd.basics.data", key: "table" }
841
+ ], Ce = {
842
+ name: "GdPageDesigner",
843
+ data() {
844
+ return {
845
+ record: {},
846
+ menus: $e,
847
+ visible: !1,
848
+ loading: !1,
849
+ activeKey: "menu",
850
+ sysViewButtons: [
851
+ {
852
+ displayName: "\u6E05\u7406\u672C\u5730\u7F13\u5B58",
853
+ functionName: "handleClearCache",
854
+ show: !0,
855
+ transKey: "gd.https.clearCache",
856
+ btnType: "danger",
857
+ icon: "el-icon-delete"
858
+ },
859
+ {
860
+ displayName: "\u6E05\u7A7A",
861
+ functionName: "handleClear",
862
+ show: !0,
863
+ transKey: "gd.btn.empty",
864
+ btnType: "danger",
865
+ icon: "el-icon-delete"
866
+ },
867
+ {
868
+ displayName: "\u4FDD\u5B58",
869
+ functionName: "handleSubmit",
870
+ show: !0,
871
+ transKey: "gd.btn.save",
872
+ icon: "el-icon-document-checked"
873
+ },
874
+ {
875
+ displayName: "\u8FD4\u56DE",
876
+ functionName: "handleClosed",
877
+ show: !0,
878
+ transKey: "gd.btn.back",
879
+ btnType: "danger",
880
+ icon: "el-icon-arrow-left"
881
+ }
882
+ ]
883
+ };
884
+ },
885
+ computed: {
886
+ tableHeight() {
887
+ return this.screenHeight - 68 - 100;
888
+ },
889
+ ...g(["tablePageSize", "tableSize", "screenHeight", "primaryColor"])
890
+ },
891
+ components: { panelArea: fe, operationMenus: E, tableDevelopment: z, pageMenu: be },
892
+ methods: {
893
+ switchKey(i) {
894
+ this.activeKey = i;
895
+ },
896
+ open(i) {
897
+ this.activeKey = "menu", this.loading = !0, this.record = i, this.visible = !0, v({ id: i.id }).then((e) => {
898
+ e.code === 200 && Object.assign(this.record, e.data, {
899
+ basicattribute: JSON.parse(e.data.basicattribute)
900
+ }), this.$nextTick(() => {
901
+ setTimeout(() => {
902
+ this.$refs.panelArea.init(this.record), this.loading = !1;
903
+ }, 0);
904
+ });
905
+ });
906
+ },
907
+ handleClosed() {
908
+ this.visible = !1, this.$emit("closed");
909
+ },
910
+ doneFun(i) {
911
+ this.loading = i;
912
+ },
913
+ doEvent(i) {
914
+ if (["handleSubmit", "handleClear", "handleConfig", "handleClearCache"].includes(i.item.functionName)) {
915
+ this.$refs.panelArea.doEvent(i);
916
+ return;
917
+ }
918
+ let t = i.item.functionName;
919
+ this[t] && this[t]();
920
+ }
921
+ }
922
+ };
923
+ var ke = function() {
924
+ var e = this, t = e._self._c;
925
+ return t("div", [t("el-dialog", { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], ref: "dialog", staticClass: "gd-page-designer", attrs: { fullscreen: !0, visible: e.visible, width: "100%", center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, "show-close": !1, top: "0px" }, on: { "update:visible": function(s) {
926
+ e.visible = s;
927
+ }, closed: e.handleClosed } }, [t("template", { slot: "title" }, [t("div", { staticClass: "gd-page-head" }, [t("div", { staticClass: "head-basic" }, [t("img", { directives: [{ name: "lazyImg", rawName: "v-lazyImg", value: e.record.logo, expression: "record.logo" }], staticClass: "head-logo", attrs: { "data-url": e.record.logo } }), t("div", { staticClass: "head-name" }, [e._v(e._s(e.record.name))])]), t("div", { staticClass: "head-conner" }, [t("div", { staticClass: "item" })]), t("div", { staticClass: "head-btn" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.sysViewButtons }, on: { functionName: e.doEvent } })], 1), e.loading ? t("div", { staticClass: "gd-dialog-meng" }) : e._e()])]), e.visible ? t("div", { staticClass: "designer-conner" }, [t("div", { staticClass: "designer-conner-menus" }, [t("operationMenus", { ref: "operationMenus", attrs: { menus: e.menus, activeKey: e.activeKey }, on: { change: e.switchKey } })], 1), t("div", { staticClass: "designer-conner-panel" }, [t("panelArea", { ref: "panelArea", attrs: { activeKey: e.activeKey, doneFun: e.doneFun } }), t("div", { staticClass: "designer-conner-full" }, [e.activeKey === "table" ? t("tableDevelopment", { ref: "tableDevelopment", attrs: { mode: "component", height: e.tableHeight } }) : e._e()], 1)], 1)]) : e._e()], 2)], 1);
928
+ }, Te = [], xe = /* @__PURE__ */ d(
929
+ Ce,
930
+ ke,
931
+ Te,
932
+ !1,
933
+ null,
934
+ "d04cc2cd",
935
+ null,
936
+ null
937
+ );
938
+ const ki = xe.exports;
939
+ export {
940
+ ki as default
941
+ };