gds-plus-design-vue 1.2.63 → 1.2.71

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 (403) hide show
  1. package/lib/{addPermission.9fc97a47.mjs → addPermission.179a09f4.mjs} +127 -105
  2. package/lib/addPermission.c72ebbe0.js +1 -0
  3. package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b550187.mjs} +7 -7
  4. package/lib/approvalModel.7cfcac3c.js +1 -0
  5. package/lib/attribute.3fed1dd9.js +1 -0
  6. package/lib/attribute.e9a8faa1.mjs +367 -0
  7. package/lib/businessRules.cf106f09.js +1 -0
  8. package/lib/{businessRules.db6ba874.mjs → businessRules.d7d35011.mjs} +191 -190
  9. package/lib/buttonRule.2afe380d.mjs +396 -0
  10. package/lib/buttonRule.737e8e3f.js +1 -0
  11. package/lib/chartDisplayRules.370065e8.mjs +288 -0
  12. package/lib/chartDisplayRules.c9162f81.js +1 -0
  13. package/lib/components.chartbi.3bbac955.js +8 -0
  14. package/lib/components.chartbi.571c5ff5.mjs +1813 -0
  15. package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.06cf0433.mjs} +2 -2
  16. package/lib/{components.coloreditor.779a9419.js → components.coloreditor.f81d322a.js} +1 -1
  17. package/lib/{components.dataassign.56632583.mjs → components.dataassign.21d3938b.mjs} +3 -3
  18. package/lib/{components.dataassign.1853ed5c.js → components.dataassign.565d22c0.js} +1 -1
  19. package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.490abdfa.mjs} +416 -399
  20. package/lib/components.echarts.fe84f881.js +4 -0
  21. package/lib/{components.exception.3cc33e29.js → components.exception.374f2ad9.js} +1 -1
  22. package/lib/{components.exception.cc2f4ca3.mjs → components.exception.ee1c4f83.mjs} +1 -1
  23. package/lib/{components.form.91d5ed3e.js → components.form.5533a8c3.js} +19 -19
  24. package/lib/{components.form.3344c817.mjs → components.form.db8af727.mjs} +1118 -1090
  25. package/lib/{components.globalheader.07a90c4b.js → components.globalheader.2eb787a4.js} +1 -1
  26. package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.b3b35343.mjs} +3 -3
  27. package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.8940b1a9.mjs} +7 -3
  28. package/lib/components.iconselector.f5a58033.js +1 -0
  29. package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.d97cf25c.js} +1 -1
  30. package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.f05b3e06.mjs} +4 -4
  31. package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.18f84642.js} +1 -1
  32. package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.2a097955.mjs} +1 -1
  33. package/lib/components.middleware.43b9b264.js +1 -0
  34. package/lib/{components.middleware.457b1182.mjs → components.middleware.de012955.mjs} +5 -4
  35. package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.5060623f.mjs} +1 -1
  36. package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.957cab33.js} +1 -1
  37. package/lib/{components.multitab.8441aa6b.mjs → components.multitab.5eb6edff.mjs} +1 -1
  38. package/lib/{components.multitab.82fd0544.js → components.multitab.80eeb3ae.js} +1 -1
  39. package/lib/{components.selecttree.d710a362.js → components.selecttree.2fe70d88.js} +1 -1
  40. package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.756c4d22.mjs} +1 -1
  41. package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.29dbc31e.mjs} +21 -21
  42. package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.8c12650b.js} +1 -1
  43. package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.0673fe0a.mjs} +2 -2
  44. package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.240dfde7.js} +1 -1
  45. package/lib/components.sidenavmenu.b1330d69.js +1 -0
  46. package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.fa81ff82.mjs} +448 -632
  47. package/lib/{components.statuschange.ed1218a4.js → components.statuschange.858b72e8.js} +1 -1
  48. package/lib/{components.statuschange.15938660.mjs → components.statuschange.fae4adba.mjs} +3 -3
  49. package/lib/{components.table.17c02054.js → components.table.1e338902.js} +3 -3
  50. package/lib/{components.table.e3e5e3bc.mjs → components.table.9ed77207.mjs} +331 -316
  51. package/lib/components.tableumy.1d804d70.js +1 -0
  52. package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.3e1c9a5b.mjs} +7 -4
  53. package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.66890b2c.mjs} +7 -4
  54. package/lib/components.tablevirtual.8e21a6e7.js +1 -0
  55. package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.3a17ddc0.mjs} +3 -3
  56. package/lib/{components.teamsharing.05503821.js → components.teamsharing.89e668fd.js} +1 -1
  57. package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.0ea7e2b1.js} +1 -1
  58. package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.376d95fe.mjs} +1 -1
  59. package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0a5a1608.mjs} +2 -2
  60. package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.8e0e702c.js} +1 -1
  61. package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.bc160e00.js} +1 -1
  62. package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.decb0360.mjs} +2 -2
  63. package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.140533c7.js} +1 -1
  64. package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.7091b10b.mjs} +1 -1
  65. package/lib/components.viewformdetails.940addba.js +1 -0
  66. package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.d241c652.mjs} +94 -61
  67. package/lib/components.viewloading.1e9f4b3c.js +1 -0
  68. package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.aae3aab4.mjs} +54 -51
  69. package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.2ec3260c.mjs} +1 -1
  70. package/lib/{components.watermark.da3d7220.js → components.watermark.d9ec8130.js} +1 -1
  71. package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.0d1553b1.js} +1 -1
  72. package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.c33f83ca.mjs} +4 -4
  73. package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.81df7841.mjs} +541 -532
  74. package/lib/components.xlsximport.8c209857.js +1 -0
  75. package/lib/copy.8db86d9f.mjs +572 -0
  76. package/lib/copy.a8753f38.js +1 -0
  77. package/lib/createFile.04a6b293.js +1 -0
  78. package/lib/createFile.4cac1673.mjs +439 -0
  79. package/lib/createSubfolders.e105fa86.js +1 -0
  80. package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.eac5ccae.mjs} +7 -7
  81. package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.bf435838.mjs} +2 -2
  82. package/lib/{dialogLayout.08823bb7.js → dialogLayout.f0779aed.js} +1 -1
  83. package/lib/drawerContainer.6ab3df46.mjs +163 -0
  84. package/lib/drawerContainer.8f9df583.js +1 -0
  85. package/lib/{drawerLayout.36cf4d05.js → drawerLayout.b6c7c3c6.js} +1 -1
  86. package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.e3c0164d.mjs} +2 -2
  87. package/lib/editForm.0f3fd3b0.js +1 -0
  88. package/lib/editForm.aef93ed0.mjs +434 -0
  89. package/lib/extendedAttributes.ea93dbaa.mjs +293 -0
  90. package/lib/extendedAttributes.ef3ead02.js +1 -0
  91. package/lib/fileSearch.43465e1c.js +1 -0
  92. package/lib/{fileSearch.86c356fe.mjs → fileSearch.5c8a883d.mjs} +140 -115
  93. package/lib/{flow.designer.6da03949.mjs → flow.designer.81c29f62.mjs} +3184 -3197
  94. package/lib/flow.designer.ffd0aa8b.js +1 -0
  95. package/lib/flow.list.4c05f2f0.js +1 -0
  96. package/lib/{flow.list.03694808.mjs → flow.list.ab420927.mjs} +234 -232
  97. package/lib/form.build.724d3357.js +1 -0
  98. package/lib/{form.build.b768d613.mjs → form.build.d04773f0.mjs} +22 -14
  99. package/lib/form.designer.build.c82cb559.mjs +2529 -0
  100. package/lib/form.designer.build.dac501fa.js +1 -0
  101. package/lib/formFiled.4b5062d7.js +1 -0
  102. package/lib/{formFiled.fe7d9df3.mjs → formFiled.c949a27f.mjs} +15 -13
  103. package/lib/gd-initial.js +1 -1
  104. package/lib/gd-initial.mjs +231 -207
  105. package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
  106. package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
  107. package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
  108. package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
  109. package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
  110. package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
  111. package/lib/http.filedocument.6fdfc693.js +1 -0
  112. package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
  113. package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
  114. package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
  115. package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
  116. package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
  117. package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
  118. package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
  119. package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
  120. package/lib/http.rolemanage.4d1101dd.js +1 -0
  121. package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
  122. package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
  123. package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
  124. package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
  125. package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
  126. package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
  127. package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
  128. package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
  129. package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
  130. package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
  131. package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
  132. package/lib/index.9deaa991.mjs +25906 -0
  133. package/lib/index.d95c407c.js +8 -0
  134. package/lib/layoutBlocks.26e1b57b.js +1 -0
  135. package/lib/layoutBlocks.31454610.mjs +413 -0
  136. package/lib/layoutItem.c1c836a1.js +1 -0
  137. package/lib/layoutItem.cf18143e.mjs +71 -0
  138. package/lib/{layouts.a6a36612.js → layouts.2d06f3e9.js} +2 -2
  139. package/lib/{layouts.051a0bba.mjs → layouts.3b383d04.mjs} +19 -22
  140. package/lib/main.09d48801.js +1 -0
  141. package/lib/main.28b7c398.js +1 -0
  142. package/lib/main.29e204f9.mjs +166 -0
  143. package/lib/main.33443996.mjs +231 -0
  144. package/lib/main.357c50d2.js +1 -0
  145. package/lib/{main.7f44e3bf.mjs → main.3e886f21.mjs} +40 -50
  146. package/lib/{main.c1df94d8.mjs → main.419a7b42.mjs} +2 -2
  147. package/lib/main.4a38d5f8.js +1 -0
  148. package/lib/{main.70357352.mjs → main.60329866.mjs} +6 -6
  149. package/lib/{main.ad1e8d4d.js → main.60c2a1a2.js} +1 -1
  150. package/lib/main.61c9e5c6.mjs +537 -0
  151. package/lib/main.643d21a0.mjs +552 -0
  152. package/lib/main.64ddb5f6.mjs +189 -0
  153. package/lib/main.728eaf53.js +1 -0
  154. package/lib/{main.8a2a590d.js → main.892caa37.js} +1 -1
  155. package/lib/main.aea9b6a8.mjs +323 -0
  156. package/lib/main.b7a5a02b.js +1 -0
  157. package/lib/main.c71e5b11.js +1 -0
  158. package/lib/main.edc0b23b.js +1 -0
  159. package/lib/{main.b0e5e1b0.mjs → main.f520fcf5.mjs} +2 -2
  160. package/lib/manage.101f1aa9.js +1 -0
  161. package/lib/{manage.a1df9b88.mjs → manage.f4000654.mjs} +162 -140
  162. package/lib/messages.fieldconfiguration.0d98a290.mjs +1097 -0
  163. package/lib/messages.fieldconfiguration.ad4d11cf.js +1 -0
  164. package/lib/messages.messagetemplate.32273e00.js +7 -0
  165. package/lib/messages.messagetemplate.7adbbc58.mjs +1319 -0
  166. package/lib/messages.sendplan.7d0097c2.mjs +1054 -0
  167. package/lib/messages.sendplan.fbac188d.js +1 -0
  168. package/lib/messages.sendrecord.ef80d44a.js +2 -0
  169. package/lib/messages.sendrecord.f0d2fd54.mjs +651 -0
  170. package/lib/messages.templatelibrary.ec512390.js +2 -0
  171. package/lib/messages.templatelibrary.ff151513.mjs +808 -0
  172. package/lib/mobile.designer.componentstree.03f61105.js +1 -0
  173. package/lib/mobile.designer.componentstree.4a1442dc.mjs +2064 -0
  174. package/lib/mobile.designer.menutree.0a2f7911.mjs +1036 -0
  175. package/lib/mobile.designer.menutree.97bb4046.js +1 -0
  176. package/lib/moveFile.335ebc8d.js +1 -0
  177. package/lib/moveFile.d71c0824.mjs +276 -0
  178. package/lib/{page.build.685c1e15.mjs → page.build.376104d5.mjs} +607 -601
  179. package/lib/{page.build.846096e6.js → page.build.37b26617.js} +3 -3
  180. package/lib/page.designer.componentstree.0ffc933d.js +1 -0
  181. package/lib/page.designer.componentstree.b0ecddd8.mjs +2958 -0
  182. package/lib/page.designer.fieldfiltering.1ecd65a3.mjs +430 -0
  183. package/lib/page.designer.fieldfiltering.7e913256.js +1 -0
  184. package/lib/page.designer.menutree.2c1846bc.mjs +5952 -0
  185. package/lib/page.designer.menutree.c49d9ee6.js +1 -0
  186. package/lib/page.designer.operation.6179b661.js +1 -0
  187. package/lib/page.designer.operation.80b1a5d1.mjs +44 -0
  188. package/lib/page.designer.page.09402332.js +1 -0
  189. package/lib/page.designer.page.6d8232c7.mjs +10638 -0
  190. package/lib/personal.echarts.414b7e3d.mjs +268 -0
  191. package/lib/personal.echarts.b7ee86f4.js +1 -0
  192. package/lib/result.0c089066.mjs +639 -0
  193. package/lib/result.9282a717.js +1 -0
  194. package/lib/router.config.68077a12.js +1 -0
  195. package/lib/router.config.86225b11.mjs +1424 -0
  196. package/lib/solution.application.d459e382.js +1 -0
  197. package/lib/solution.application.e0d58df1.mjs +548 -0
  198. package/lib/solution.applicationmenu.71ef6b8e.mjs +508 -0
  199. package/lib/solution.applicationmenu.ae295083.js +1 -0
  200. package/lib/solution.approvalflow.436b3502.js +1 -0
  201. package/lib/solution.approvalflow.bef7fbdd.mjs +436 -0
  202. package/lib/solution.dict.acbe9c55.js +1 -0
  203. package/lib/solution.dict.ef98b194.mjs +769 -0
  204. package/lib/solution.menu.5c17348f.mjs +432 -0
  205. package/lib/solution.menu.cca5e1f9.js +1 -0
  206. package/lib/solution.plugin.90f8dcc1.mjs +347 -0
  207. package/lib/solution.plugin.f9a8063f.js +1 -0
  208. package/lib/solution.processflow.2692dac6.js +1 -0
  209. package/lib/solution.processflow.c1544b05.mjs +392 -0
  210. package/lib/solution.role.b1ab40dd.mjs +456 -0
  211. package/lib/solution.role.b28c4dbe.js +1 -0
  212. package/lib/solution.webresources.0b51beba.mjs +379 -0
  213. package/lib/solution.webresources.6961cc68.js +1 -0
  214. package/lib/solution.workflow.11e49e25.js +1 -0
  215. package/lib/solution.workflow.c48545d1.mjs +395 -0
  216. package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
  217. package/lib/store.config.556bd56b.js +1 -0
  218. package/lib/style.css +3 -3
  219. package/lib/{system.account.014f3e0b.mjs → system.account.1cadbf03.mjs} +877 -881
  220. package/lib/{system.account.0d4f1fdc.js → system.account.5cc9fe8d.js} +7 -7
  221. package/lib/{system.config.210f516c.js → system.config.a0b94e40.js} +1 -1
  222. package/lib/{system.config.0899edb8.mjs → system.config.a9a1ee96.mjs} +1 -1
  223. package/lib/{system.datasource.82492d27.js → system.datasource.6c30ce25.js} +1 -1
  224. package/lib/{system.datasource.986768c9.mjs → system.datasource.c103a9c2.mjs} +1 -1
  225. package/lib/{system.dict.ef24873d.mjs → system.dict.0c229d1c.mjs} +264 -260
  226. package/lib/system.dict.6b000092.js +1 -0
  227. package/lib/system.document.f67c2994.mjs +667 -0
  228. package/lib/system.document.f8fd7af0.js +1 -0
  229. package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.94c7ce17.mjs} +245 -265
  230. package/lib/system.duplicatechecking.f4cab147.js +1 -0
  231. package/lib/system.email.11ab6f31.js +1 -0
  232. package/lib/{system.email.252fd642.mjs → system.email.13823361.mjs} +10 -15
  233. package/lib/system.fieldsecurity.2ef2881c.js +1 -0
  234. package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.d35acd97.mjs} +370 -361
  235. package/lib/{system.file.73eeb731.mjs → system.file.30d3e7bc.mjs} +81 -149
  236. package/lib/system.file.b9f8320c.js +1 -0
  237. package/lib/{system.log.fc60f5e6.js → system.log.470d3efd.js} +1 -1
  238. package/lib/{system.log.b86cf57f.mjs → system.log.815840d8.mjs} +1 -1
  239. package/lib/{system.machine.0114001b.mjs → system.machine.1665954f.mjs} +1 -1
  240. package/lib/{system.machine.f1d95c86.js → system.machine.f8aff893.js} +1 -1
  241. package/lib/{system.notice.25ea8dca.mjs → system.notice.bef6c23c.mjs} +994 -992
  242. package/lib/system.notice.db26f308.js +1 -0
  243. package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.0d293a87.mjs} +10 -11
  244. package/lib/system.noticereceived.84b88b9a.js +1 -0
  245. package/lib/system.onlineuser.985621a6.js +1 -0
  246. package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.bccb1cd9.mjs} +37 -26
  247. package/lib/{system.org.c20fe6b2.mjs → system.org.92f4d7f1.mjs} +2 -2
  248. package/lib/{system.org.79ee5bd6.js → system.org.9f87a010.js} +1 -1
  249. package/lib/system.permissions.15e6b8b7.js +1 -0
  250. package/lib/system.permissions.be9238ee.mjs +972 -0
  251. package/lib/system.plugin.0bccfec4.js +1 -0
  252. package/lib/{system.plugin.45a0f530.mjs → system.plugin.af27d7ac.mjs} +500 -479
  253. package/lib/{system.pos.0a3d2a37.js → system.pos.61e58a92.js} +1 -1
  254. package/lib/{system.pos.7946a99c.mjs → system.pos.fe067063.mjs} +1 -1
  255. package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.0b9083c5.mjs} +246 -243
  256. package/lib/system.promptmanagement.e750de82.js +1 -0
  257. package/lib/{system.role.75da7929.mjs → system.role.67f62146.mjs} +511 -488
  258. package/lib/system.role.e86b60f1.js +1 -0
  259. package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.093d998e.mjs} +168 -165
  260. package/lib/system.sumberrules.810f7b55.js +1 -0
  261. package/lib/system.team.58ee701b.js +1 -0
  262. package/lib/{system.team.e6a9608e.mjs → system.team.8911fd95.mjs} +163 -161
  263. package/lib/system.teammembers.1880f962.js +1 -0
  264. package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.35564a00.mjs} +203 -198
  265. package/lib/{system.timers.eb0b6f3e.mjs → system.timers.4b2d509f.mjs} +2261 -2213
  266. package/lib/system.timers.9e956553.js +38 -0
  267. package/lib/system.translation.26b6bb39.js +1 -0
  268. package/lib/{system.translation.e34f0891.mjs → system.translation.60ec676c.mjs} +435 -429
  269. package/lib/system.user.134a3988.js +14 -0
  270. package/lib/{system.user.fa2d2997.mjs → system.user.9a02295e.mjs} +1082 -1026
  271. package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.96695aeb.mjs} +418 -412
  272. package/lib/system.useraffiliation.c2421c7e.js +1 -0
  273. package/lib/{system.webresource.469db736.mjs → system.webresource.016d0000.mjs} +179 -179
  274. package/lib/system.webresource.e92e8a8f.js +1 -0
  275. package/lib/{system.welcome.191e98f5.mjs → system.welcome.127b5dd4.mjs} +1 -1
  276. package/lib/{system.welcome.f64e49f8.js → system.welcome.ff0c85e2.js} +1 -1
  277. package/lib/table.definition..btnconfig.9847cac5.mjs +938 -0
  278. package/lib/table.definition..btnconfig.ce57ed41.js +1 -0
  279. package/lib/table.definition..echartsconfig.625bce88.mjs +2150 -0
  280. package/lib/table.definition..echartsconfig.d2b65881.js +1 -0
  281. package/lib/tableDescriptions.a4196776.mjs +80 -0
  282. package/lib/tableDescriptions.b9b0d7fa.js +1 -0
  283. package/lib/tcheckboxs.7ea99d35.js +1 -0
  284. package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.999b7c2e.mjs} +2 -2
  285. package/lib/tcurrency.4afb9192.mjs +85 -0
  286. package/lib/tcurrency.8a2361f2.js +1 -0
  287. package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.606214fa.mjs} +2 -2
  288. package/lib/{tdatepicker.b19e689d.js → tdatepicker.8e94a60c.js} +1 -1
  289. package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.ccbdd153.js} +1 -1
  290. package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.e016d4cf.mjs} +2 -2
  291. package/lib/{tfile.72925615.mjs → tfile.3f39223d.mjs} +2 -2
  292. package/lib/{tfile.1bc381f9.js → tfile.b3ebdc71.js} +1 -1
  293. package/lib/{tparticipants.ca5b556c.mjs → tparticipants.5fe27540.mjs} +2 -2
  294. package/lib/{tparticipants.77b876e2.js → tparticipants.78c8c175.js} +1 -1
  295. package/lib/{translation.mains.278e4ba6.mjs → translation.mains.2688be5b.mjs} +7 -7
  296. package/lib/{translation.mains.1ce7e110.js → translation.mains.a6f19343.js} +1 -1
  297. package/lib/utils.datepicker.js.0a5a699e.js +1 -0
  298. package/lib/utils.datepicker.js.5549a741.mjs +70 -0
  299. package/lib/utils.plug.js.9313aead.mjs +31 -0
  300. package/lib/utils.plug.js.f62510ce.js +1 -0
  301. package/lib/utils.util.js.333daba2.mjs +439 -0
  302. package/lib/utils.util.js.c0ba699b.js +1 -0
  303. package/lib/versionControl.46a7f31a.js +1 -0
  304. package/lib/versionControl.c53bfb5d.mjs +488 -0
  305. package/lib/versionEdit.4246d5db.js +1 -0
  306. package/lib/versionEdit.5a8292ec.mjs +452 -0
  307. package/lib/view.build.85732408.mjs +1578 -0
  308. package/lib/view.build.e43a2077.js +1 -0
  309. package/lib/viewList.868edcd7.js +1 -0
  310. package/lib/{viewList.5a25c4b6.mjs → viewList.978b72c5.mjs} +70 -92
  311. package/lib/viewTree.7497ff90.js +1 -0
  312. package/lib/viewTree.bde43a3b.mjs +409 -0
  313. package/locale/en_US.js +45 -6
  314. package/locale/id_ID.js +45 -6
  315. package/locale/vi_VN.js +45 -6
  316. package/locale/zh_CN.js +45 -5
  317. package/package.json +1 -1
  318. package/lib/addPermission.5036013c.js +0 -1
  319. package/lib/approvalModel.66f49dfb.js +0 -1
  320. package/lib/attribute.318f485c.js +0 -1
  321. package/lib/attribute.a06ac9e7.mjs +0 -237
  322. package/lib/buildItem.6a834227.js +0 -1
  323. package/lib/buildItem.fd8634ab.mjs +0 -205
  324. package/lib/businessRules.0e4dbb3a.js +0 -1
  325. package/lib/components.chartbi.b043dcdc.mjs +0 -1729
  326. package/lib/components.chartbi.e4680eaa.js +0 -7
  327. package/lib/components.echarts.e4d6b13e.js +0 -3
  328. package/lib/components.iconselector.d712170f.js +0 -1
  329. package/lib/components.middleware.3bad5748.js +0 -1
  330. package/lib/components.sidenavmenu.b9bb9304.js +0 -1
  331. package/lib/components.tableumy.9cf33062.js +0 -1
  332. package/lib/components.tablevirtual.38d4d3d8.js +0 -1
  333. package/lib/components.viewformdetails.1621bc18.js +0 -1
  334. package/lib/components.viewloading.807bbf68.js +0 -1
  335. package/lib/components.xlsximport.dbd826bb.js +0 -1
  336. package/lib/createFile.6b37ecf2.js +0 -1
  337. package/lib/createFile.82d6e415.mjs +0 -239
  338. package/lib/createSubfolders.47af629c.js +0 -1
  339. package/lib/drawerContainer.604a1271.mjs +0 -146
  340. package/lib/drawerContainer.6a9813ce.js +0 -1
  341. package/lib/fileSearch.65311ded.js +0 -1
  342. package/lib/flow.designer.1ba3a90d.js +0 -1
  343. package/lib/flow.list.4eb10554.js +0 -1
  344. package/lib/form.build.51bd261e.js +0 -1
  345. package/lib/form.designer.build.5a950455.js +0 -1
  346. package/lib/form.designer.build.e521c9c6.mjs +0 -5091
  347. package/lib/formFiled.464856f5.js +0 -1
  348. package/lib/http.filedocument.7c656b91.js +0 -1
  349. package/lib/http.filedocument.d456d26a.mjs +0 -156
  350. package/lib/http.rolemanage.03363732.js +0 -1
  351. package/lib/index.69ad4631.mjs +0 -44291
  352. package/lib/index.cca024bf.js +0 -8
  353. package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
  354. package/lib/layoutBlocks.5e6be06f.js +0 -1
  355. package/lib/main.457f4326.js +0 -1
  356. package/lib/main.4fff412e.js +0 -1
  357. package/lib/main.77373aa4.mjs +0 -441
  358. package/lib/main.c3726602.js +0 -1
  359. package/lib/manage.5bb4f719.js +0 -1
  360. package/lib/messages.7b74736f.js +0 -9
  361. package/lib/messages.ad082386.mjs +0 -4889
  362. package/lib/moveFile.0ce803e0.js +0 -1
  363. package/lib/moveFile.8310ea94.mjs +0 -254
  364. package/lib/personal.echarts.b22fba61.mjs +0 -701
  365. package/lib/personal.echarts.f77bfc9e.js +0 -1
  366. package/lib/result.19351665.mjs +0 -526
  367. package/lib/result.e59c0e40.js +0 -1
  368. package/lib/router.config.2501ec51.js +0 -1
  369. package/lib/router.config.98a73167.mjs +0 -3172
  370. package/lib/solution.58580123.js +0 -1
  371. package/lib/solution.890ff164.mjs +0 -6942
  372. package/lib/store.config.3cb11578.js +0 -1
  373. package/lib/system.dict.f5708400.js +0 -1
  374. package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
  375. package/lib/system.email.070ab2be.js +0 -1
  376. package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
  377. package/lib/system.file.17a7f2ed.js +0 -1
  378. package/lib/system.notice.96c770a6.js +0 -1
  379. package/lib/system.noticereceived.dfe4ecc7.js +0 -1
  380. package/lib/system.onlineuser.e2e39bdc.js +0 -1
  381. package/lib/system.permissions.90f73461.js +0 -9
  382. package/lib/system.permissions.c3d34921.mjs +0 -213
  383. package/lib/system.plugin.b34a3b47.js +0 -1
  384. package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
  385. package/lib/system.role.03be0982.js +0 -1
  386. package/lib/system.sumberrules.bb228fce.js +0 -1
  387. package/lib/system.team.32183b63.js +0 -1
  388. package/lib/system.teammembers.847d8ea7.js +0 -1
  389. package/lib/system.timers.28691ce4.js +0 -38
  390. package/lib/system.translation.6237f071.js +0 -1
  391. package/lib/system.user.fca3f2d6.js +0 -14
  392. package/lib/system.useraffiliation.7547b9c7.js +0 -1
  393. package/lib/system.webresource.12712b90.js +0 -1
  394. package/lib/tcheckboxs.99361be3.js +0 -1
  395. package/lib/tcurrency.0ddac2f8.mjs +0 -92
  396. package/lib/tcurrency.62763c6d.js +0 -1
  397. package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
  398. package/lib/utils.datepicker.js.8576e2fc.js +0 -1
  399. package/lib/utils.util.js.50d1ec9c.js +0 -1
  400. package/lib/utils.util.js.82cd8447.mjs +0 -424
  401. package/lib/view.build.b44fd7d7.js +0 -1
  402. package/lib/view.build.f2a9fcfb.mjs +0 -2727
  403. package/lib/viewList.be5a5ec5.js +0 -1
@@ -1,3172 +0,0 @@
1
- import { G as x, a as $, b as I, c as L, r as S, d as T, e as O, f as N, g as V } from "./layouts.051a0bba.mjs";
2
- import { G as E, a as q, b as R, c as K } from "./system.account.014f3e0b.mjs";
3
- import { G as j } from "./system.welcome.191e98f5.mjs";
4
- import { m as h, n as f } from "./components.chartbi.b043dcdc.mjs";
5
- import { a as b } from "./flow.designer.6da03949.mjs";
6
- import { d as k } from "./components.table.e3e5e3bc.mjs";
7
- import { E as p } from "./components.xlsximport.cffa88fe.mjs";
8
- import { s as y, u as g } from "./utils.util.js.82cd8447.mjs";
9
- import { a as z } from "./http.main.40657f51.mjs";
10
- import { c as w, f as M, g as P, h as _, i as B } from "./http.tabledevelopment.1d370398.mjs";
11
- import { o as D } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
12
- import { G as A } from "./personal.echarts.b22fba61.mjs";
13
- const st = [{
14
- path: "/user",
15
- component: x,
16
- redirect: "/user/login",
17
- children: [{
18
- path: "login",
19
- name: "login",
20
- component: () => import("./main.7f44e3bf.mjs"),
21
- meta: {
22
- title: "\u767B\u5F55",
23
- transKey: "gd.login.title"
24
- }
25
- }]
26
- }, {
27
- path: "/oauth2",
28
- component: $,
29
- redirect: "/oauth2/authorize",
30
- children: [{
31
- path: "/oauth2/authorize",
32
- name: "oauth2Authorize",
33
- component: () => import("./main.b0e5e1b0.mjs"),
34
- meta: {
35
- title: "\u6388\u6743\u767B\u5F55",
36
- transKey: "gd.login.authorizedLogin"
37
- }
38
- }, {
39
- path: "/oauth2/oauth",
40
- name: "oauth2Oauth",
41
- component: () => import("./main.c1df94d8.mjs"),
42
- meta: {
43
- title: "\u6388\u6743\u8BA4\u8BC1",
44
- transKey: "gd.login.authorizedOauth"
45
- }
46
- }]
47
- }, {
48
- path: "/transfer",
49
- component: I,
50
- redirect: "/transfer/transferlogin",
51
- children: [{
52
- path: "transferlogin",
53
- name: "transferlogin",
54
- component: () => import("./main.70357352.mjs"),
55
- meta: {
56
- title: "\u4E2D\u8F6C\u9875",
57
- transKey: "gd.login.title"
58
- }
59
- }]
60
- }];
61
- const G = {
62
- props: {
63
- table: {
64
- type: Object,
65
- default: () => ({})
66
- },
67
- ruleFormData: {
68
- type: Object,
69
- required: !0
70
- },
71
- fullscreen: {
72
- type: Boolean,
73
- default: !1
74
- },
75
- tableFieldList: {
76
- type: Array,
77
- default: () => []
78
- }
79
- },
80
- data() {
81
- return {
82
- selectedRowKeys: [],
83
- selectedRows: [],
84
- defaultExpandedRowKeys: [],
85
- pid: [],
86
- foreignList: [],
87
- loadData: (i) => this.getLoadField(),
88
- visible: !1,
89
- loadFieldData: [],
90
- record: [],
91
- tableColumns: [
92
- {
93
- type: "selection",
94
- width: "80"
95
- },
96
- {
97
- transKey: "gd.field.describe",
98
- prop: "columncomment",
99
- type: "slot",
100
- slotType: "columncomment",
101
- label: "\u663E\u793A\u540D",
102
- width: "160",
103
- align: "left"
104
- },
105
- {
106
- transKey: "gd.field.field",
107
- prop: "columnname",
108
- label: "\u5B57\u6BB5\u540D",
109
- width: "140",
110
- align: "left"
111
- },
112
- {
113
- transKey: "gd.field.effectType",
114
- prop: "effectType",
115
- label: "\u7C7B\u578B",
116
- width: "110",
117
- align: "left",
118
- type: "slot",
119
- slotType: "effectType"
120
- }
121
- ],
122
- list: [],
123
- selItem: {}
124
- };
125
- },
126
- watch: {
127
- list: {
128
- handler(i) {
129
- this.$nextTick(() => {
130
- this.$emit("ok", this.list);
131
- });
132
- },
133
- deep: !0,
134
- immediate: !0
135
- }
136
- },
137
- components: { draggable: k, EffectTypeIcon: p },
138
- computed: {
139
- currencyList() {
140
- let i = [];
141
- return this.tableFieldList.forEach((e) => {
142
- e.effecttype == "currency" && e.columnname == (e.relations + "_Currency").toLowerCase() && i.push(e.columnname);
143
- }), i;
144
- },
145
- displayPrefixList() {
146
- const i = this.tableFieldList.filter((t) => t.columnname === "sys_currencyid" && t.children)[0], e = i ? i.children.filter((t) => ["symbol", "code"].includes(t.columnname)) : [];
147
- return [
148
- {
149
- columnname: "none",
150
- columncomment: "\u7A7A\u767D",
151
- transkey: "gd.echarts.none",
152
- hasPrefix: !1
153
- }
154
- ].concat(e);
155
- },
156
- displayModeList() {
157
- return [
158
- {
159
- code: "none",
160
- name: "\u7A7A\u767D",
161
- transkey: "gd.echarts.none"
162
- },
163
- {
164
- code: "percent",
165
- name: "\u4EE5%\u7ED3\u5C3E",
166
- transkey: "gd.view.percentMode"
167
- },
168
- {
169
- code: "permil",
170
- name: "\u4EE5[\u2030]\u7ED3\u5C3E",
171
- transkey: "gd.view.permilMode"
172
- }
173
- ];
174
- },
175
- alignList() {
176
- return [
177
- {
178
- code: "left",
179
- name: "\u5DE6\u5BF9\u9F50",
180
- transkey: "gd.state.alignLeft"
181
- },
182
- {
183
- code: "center",
184
- name: "\u5C45\u4E2D\u5BF9\u9F50",
185
- transkey: "gd.state.alignCenter"
186
- },
187
- {
188
- code: "right",
189
- name: "\u53F3\u5BF9\u9F50",
190
- transkey: "gd.state.alignRight"
191
- }
192
- ];
193
- },
194
- sourceTable() {
195
- const i = this.tableLists.filter((e) => e.id === this.selItem.codegenid)[0];
196
- return i ? i.tablename : "--";
197
- },
198
- height() {
199
- let i = this.fullscreen ? 190 : 340;
200
- return this.screenHeight - i;
201
- },
202
- ...h(["tablePageSize", "tableSize", "screenHeight", "tableLists", "primaryColor"])
203
- },
204
- methods: {
205
- changeOrder(i, e) {
206
- let t = [...this.list];
207
- t = y(t);
208
- const l = t.filter((o) => o.id === e.id)[0], n = Number(l.order);
209
- let s = n < i ? n - 1 : n > i ? n + 1 : i;
210
- t.map((o, a) => (o.order = a, s === a && (o.order = n < i ? a - 1 : a + 1), e.id === o.id && (o.order = i > t.length ? t.length - 1 : i), o)), t = y(t), this.list = [...t];
211
- },
212
- del(i) {
213
- let e = `${this.selItem.columnname}_popver`;
214
- this.$refs[e] && this.$refs[e][0] && this.$refs[e][0].doClose(), this.list = this.list.filter((t) => t.id != i.id), this.selectedRowKeys = this.selectedRowKeys.filter((t) => t !== i.id), this.selectedRows = this.selectedRows.filter((t) => t.id !== i.id), this.endDraggable();
215
- },
216
- popoverItem(i) {
217
- this.selItem = i;
218
- },
219
- endDraggable() {
220
- const i = this.selItem.order;
221
- this.list = this.list.map((t, l) => (t.order = l, t));
222
- const e = this.list.filter((t) => t.order === i)[0];
223
- this.selItem = e || this.selItem;
224
- },
225
- showPopover() {
226
- this.record = JSON.parse(JSON.stringify(this.list)), this.visible = !0, this.$nextTick(() => {
227
- setTimeout(() => {
228
- this.refresh(!1);
229
- }, 0);
230
- });
231
- },
232
- hidePopover() {
233
- let i = [];
234
- this.loadFieldData.forEach((n) => {
235
- this.isChecked(n.id) || i.push(n), n.children && n.children.forEach((s) => {
236
- this.isChecked(s.id) || (s.joinfieldid = n.id, i.push(s));
237
- });
238
- });
239
- let e = [], t = [];
240
- this.record.forEach((n) => {
241
- i.forEach((s) => {
242
- s.id == n.id && e.push(n);
243
- });
244
- }), i.forEach((n) => {
245
- if (this.isCheckedRecord(n.id)) {
246
- let s = "left";
247
- n.effectType === "datepicker" ? s = "center" : ["currency", "double", "inputnumber"].includes(n.effectType) && (s = "right");
248
- let o = {
249
- num: "150",
250
- alias: n.alias != null ? n.alias : "",
251
- orderconfig: !1,
252
- gatherconfig: !1,
253
- maxtagcount: 2,
254
- operate: "add",
255
- aliastranskey: null,
256
- align: s,
257
- visible: !0,
258
- displaymode: "none",
259
- displayprefix: "none",
260
- preview: !0,
261
- download: !0,
262
- format: String(n.fieldformat),
263
- hyperlink: !1,
264
- precision: n.filedsize
265
- };
266
- t.push(Object.assign({ ...n }, o));
267
- }
268
- });
269
- let l = e.concat(t);
270
- l.map((n, s) => (n.order = s, n)), this.list = l, this.visible = !1;
271
- },
272
- init(i) {
273
- this.list = [...i];
274
- let e = [];
275
- this.list.forEach((t) => {
276
- e.push(t.id);
277
- }), this.selectedRowKeys = [...e];
278
- },
279
- getLoadField() {
280
- return new Promise((i, e) => {
281
- let t = [], l = [], n = [], s = JSON.parse(JSON.stringify(this.tableFieldList)).filter((o) => !(o.effecttype == "about" && o.columnname === (o.relations + "_abouttable").toLowerCase()));
282
- s.forEach((o, a) => {
283
- (o.effecttype === "fk" || o.effecttype == "user") && t.push(o.id);
284
- let r = this.$i18nt(`Dynamics.${o.transkey}`, o.columncomment);
285
- s[a].fkrelations = `${r} -- ${o.columnname}`, s[a].fkEffectType = o.effecttype;
286
- let d = [];
287
- o.children && o.children.length > 0 && l.push(o.id), o.children && o.children.length > 0 && o.effecttype != "participants" && o.effecttype != "about" && (o.children.forEach((u, c) => {
288
- if (u.effecttype != "fk" && u.effecttype != "about" && u.effecttype != "user") {
289
- this.getCodeGenId(u.codegenid);
290
- let m = this.$i18nt(`Dynamics.${u.transkey}`, u.columncomment), C = Object.assign(
291
- { ...u },
292
- {
293
- id: u.id + "-" + o.id,
294
- fkrelations: `${r} -- ${o.columnname}`,
295
- alias: `${r} (${m})`,
296
- fkEffectType: o.effecttype
297
- }
298
- );
299
- d.push(C);
300
- }
301
- this.selectedRowKeys.includes(u.id + "-" + o.id) && !n.includes(o.id) && n.push(o.id);
302
- }), d = d.filter((u) => !(u.effecttype == "about" && u.columnname == (u.relations + "_abouttable").toLowerCase()))), s[a].children = d.length > 0 ? [...d] : null;
303
- }), this.defaultExpandedRowKeys = [...n], this.foreignList = t, this.loadFieldData = s.filter((o) => !(o.effecttype == "about" && o.columnname == (o.relations + "_abouttable").toLowerCase())), this.pid = l, i({ pageNo: 1, pageSize: 200, totalRows: 0, rows: s });
304
- });
305
- },
306
- getCodeGenId(i) {
307
- const e = this.tableLists.filter((t) => t.id == i)[0];
308
- return e ? this.$i18nt(`Dynamics.${e.transkey}`, e.busname) : "--";
309
- },
310
- isChecked(i) {
311
- return this.selectedRowKeys.every((e, t, l) => e != i);
312
- },
313
- isCheckedRecord(i) {
314
- return this.record.length === 0 ? !0 : this.record.every((e, t, l) => e.id != i);
315
- },
316
- onSelectChange(i, e) {
317
- this.selectedRowKeys = i, this.selectedRows = e;
318
- },
319
- getDictionary(i) {
320
- return this.$options.filters.dictData(i);
321
- },
322
- refresh(i = !0) {
323
- this.$refs.table.refresh(i);
324
- },
325
- lookupSeled(i) {
326
- this.selItem.alias = i.defaulttext;
327
- }
328
- }
329
- };
330
- var J = function() {
331
- var e = this, t = e._self._c;
332
- return t("div", { staticClass: "config-item" }, [t("div", { staticClass: "t" }, [t("div", { staticClass: "tls" }, [e._v(e._s(e.$i18nt("gd.view.addColumn", "\u663E\u793A\u5217")))]), t("div", { staticClass: "dong" }, [e._v(" " + e._s(e.$i18nt("gd.view.frozen", "\u51BB\u7ED3\u524D")) + " "), t("el-input-number", { staticStyle: { margin: "0 8px", width: "80px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), min: 0, step: 1, max: 12, "controls-position": "right" }, model: { value: e.ruleFormData.num, callback: function(l) {
333
- e.$set(e.ruleFormData, "num", l);
334
- }, expression: "ruleFormData.num" } }), e._v(" " + e._s(e.$i18nt("gd.view.column", "\u5217")) + " ")], 1), t("el-popover", { attrs: { placement: "bottom", trigger: "click" }, on: { hide: e.hidePopover, show: e.showPopover } }, [t("span", { staticClass: "el-dropdown-link", attrs: { slot: "reference" }, slot: "reference" }, [t("i", { staticClass: "el-icon-plus active-color" })]), t("div", [e.visible ? t("gd-table-umy", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, showPagination: !1, disabledRowId: e.pid, initialLoading: !1, disabledRefresh: !0, tableTree: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "columncomment", fn: function({ column: l, row: n }) {
335
- return [t("div", { staticClass: "line1", attrs: { title: e.$i18nt(`Dynamics.${n.transkey}`, n.columncomment) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transkey}`, n.columncomment)) + " ")])];
336
- } }, { key: "effectType", fn: function({ column: l, row: n }) {
337
- return [e._v(" " + e._s(e._f("dictType")("code_gen_effect_type", n.effecttype)) + " ")];
338
- } }], null, !1, 1869927953) }) : e._e()], 1)])], 1), t("div", { staticClass: "b" }, [t("el-form", { ref: "form", attrs: { "label-width": "100px", "label-position": "left", size: "mini" }, nativeOn: { submit: function(l) {
339
- l.preventDefault();
340
- } } }, [t("draggable", e._b({ on: { end: e.endDraggable }, model: { value: e.list, callback: function(l) {
341
- e.list = l;
342
- }, expression: "list" } }, "draggable", {
343
- animation: 300,
344
- handle: ".drag-move"
345
- }, !1), e._l(e.list, function(l, n) {
346
- return t("div", { key: n, staticStyle: { "margin-bottom": "2px" }, on: { click: function(s) {
347
- return e.popoverItem(l);
348
- } } }, [t("el-popover", { ref: `${l.columnname}_popver`, refInFor: !0, attrs: { placement: "right", trigger: "click" } }, [t("div", { staticClass: "bitem", attrs: { slot: "reference" }, slot: "reference" }, [t("i", { staticClass: "el-icon-rank active-color drag-move" }), t("EffectTypeIcon", { attrs: { effectType: l.effecttype } }), t("div", { staticClass: "sku" }, [t("div", [e._v(e._s(l.columnname))]), t("div", { staticClass: "name" }, [e._v(e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)))])]), t("el-divider", { attrs: { direction: "vertical" } }), t("div", { staticClass: "spu" }, [l.operate === "add" ? t("span", [e._v(" " + e._s(l.alias ? e.$i18nt(`Dynamics.${l.aliastranskey}`, l.alias) : e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)) + " ")]) : l.alias != "" ? t("span", { staticClass: "active-color" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.aliastranskey}`, l.alias)) + " ")]) : t("span", [e._v(e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)))])]), t("i", { staticClass: "el-icon-delete", on: { click: function(s) {
349
- return s.stopPropagation(), e.del(l);
350
- } } })], 1), t("div", { staticClass: "bconfig" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.view.alias", "\u522B\u540D") } }, [e.selItem.operate === "add" ? t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.selItem.alias, callback: function(s) {
351
- e.$set(e.selItem, "alias", s);
352
- }, expression: "selItem.alias" } }) : e.selItem.operate === "edit" && e.selItem.aliastranskey && e.selItem.columnname === l.columnname ? t("gd-translation", { ref: "gdTranslation", refInFor: !0, attrs: { keyI18n: "aliastranskey", name: "aliasold", recordData: e.selItem, type: 2 }, on: { lookupSeled: e.lookupSeled } }) : e._e()], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.view.width", "\u5217\u5BBD") } }, [t("el-select", { model: { value: e.selItem.num, callback: function(s) {
353
- e.$set(e.selItem, "num", s);
354
- }, expression: "selItem.num" } }, e._l(e.getDictionary("column_length"), function(s) {
355
- return t("el-option", { key: s.code, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } });
356
- }), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.view.sort", "\u5E8F\u53F7") } }, [t("el-input-number", { attrs: { min: 0, max: 99, "controls-position": "right", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, on: { change: function(s) {
357
- return e.changeOrder(s, e.selItem);
358
- } }, model: { value: e.selItem.order, callback: function(s) {
359
- e.$set(e.selItem, "order", s);
360
- }, expression: "selItem.order" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.view.sourceField", "\u6E90\u5B57\u6BB5") } }, [t("div", { staticClass: "line1" }, [e._v(e._s(e.selItem.fkrelations))])]), t("el-form-item", { attrs: { label: e.$i18nt("gd.page.sourceTable", "\u6765\u6E90\u8868") } }, [t("div", { staticClass: "line1" }, [e._v(e._s(e.sourceTable))])]), t("el-form-item", { attrs: { label: e.$i18nt("gd.view.tableFields", "\u8868\u5B57\u6BB5") } }, [t("div", { staticClass: "line1" }, [e._v(e._s(e.selItem.columnname))])]), t("el-form-item", { attrs: { label: e.$i18nt("gd.view.align", "\u5BF9\u9F50\u65B9\u5F0F") } }, [t("el-select", { model: { value: e.selItem.align, callback: function(s) {
361
- e.$set(e.selItem, "align", s);
362
- }, expression: "selItem.align" } }, e._l(e.alignList, function(s) {
363
- return t("el-option", { key: s.code, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), label: e.$i18nt(s.transkey, s.name), value: s.code } });
364
- }), 1)], 1), e.selItem.effecttype === "datepicker" ? t("el-form-item", { attrs: { label: e.$i18nt("gd.page.displayFormat", "\u663E\u793A\u683C\u5F0F") } }, [t("el-select", { model: { value: e.selItem.format, callback: function(s) {
365
- e.$set(e.selItem, "format", s);
366
- }, expression: "selItem.format" } }, [e._l(e.getDictionary("time_longshort"), function(s) {
367
- return [t("el-option", { attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), label: e.$i18nt(s.transkey, s.name), value: s.code } })];
368
- })], 2)], 1) : e._e(), t("el-form-item", { attrs: { label: e.$i18nt("gd.view.sorting", "\u5F00\u542F\u6392\u5E8F") } }, [t("el-switch", { attrs: { "active-color": e.primaryColor }, model: { value: e.selItem.orderconfig, callback: function(s) {
369
- e.$set(e.selItem, "orderconfig", s);
370
- }, expression: "selItem.orderconfig" } })], 1), e.selItem.effecttype != "participants" ? t("el-form-item", { attrs: { label: e.$i18nt("gd.view.gather", "\u5F00\u542F\u6C47\u603B") } }, [t("el-switch", { attrs: { "active-color": e.primaryColor, disabled: !["double", "currency", "inputnumber"].includes(e.selItem.effecttype) }, model: { value: e.selItem.gatherconfig, callback: function(s) {
371
- e.$set(e.selItem, "gatherconfig", s);
372
- }, expression: "selItem.gatherconfig" } })], 1) : e._e(), e.selItem.effecttype == "participants" ? t("el-form-item", { attrs: { label: e.$i18nt("gd.page.maximumDisplayNumber", "\u6700\u591A\u663E\u793A\u4E2A\u6570") } }, [t("el-input-number", { attrs: { min: 0, max: 12, "controls-position": "right", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.selItem.maxtagcount, callback: function(s) {
373
- e.$set(e.selItem, "maxtagcount", s);
374
- }, expression: "selItem.maxtagcount" } })], 1) : e._e(), e.selItem.effecttype == "file" ? t("el-form-item", { attrs: { label: e.$i18nt("gd.page.operationalAttribute", "\u64CD\u4F5C\u5C5E\u6027") } }, [t("el-checkbox", { staticStyle: { "margin-right": "6px", "word-break": "break-all", "overflow-wrap": "break-word" }, model: { value: e.selItem.preview, callback: function(s) {
375
- e.$set(e.selItem, "preview", s);
376
- }, expression: "selItem.preview" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.preview", "\u9884\u89C8")) + " ")]), t("el-checkbox", { staticStyle: { "margin-right": "6px", "word-break": "break-all", "overflow-wrap": "break-word" }, model: { value: e.selItem.download, callback: function(s) {
377
- e.$set(e.selItem, "download", s);
378
- }, expression: "selItem.download" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.download", "\u4E0B\u8F7D")) + " ")])], 1) : e._e(), t("el-form-item", { attrs: { label: e.$i18nt("gd.form.visible", "\u5217\u8868\u663E\u793A") } }, [t("el-switch", { attrs: { "active-color": e.primaryColor }, model: { value: e.selItem.visible, callback: function(s) {
379
- e.$set(e.selItem, "visible", s);
380
- }, expression: "selItem.visible" } })], 1), n === 0 || ["fk", "about", "user"].includes(l.fkEffectType) ? t("el-form-item", { attrs: { label: e.$i18nt("gd.form.hyperlink", "\u8D85\u94FE\u63A5") } }, [t("el-switch", { attrs: { "active-color": e.primaryColor }, model: { value: e.selItem.hyperlink, callback: function(s) {
381
- e.$set(e.selItem, "hyperlink", s);
382
- }, expression: "selItem.hyperlink" } })], 1) : e._e(), e.selItem.effecttype == "double" ? t("el-form-item", { attrs: { label: e.$i18nt("gd.view.displayMode", "\u663E\u793A\u65B9\u5F0F") } }, [t("el-select", { model: { value: e.selItem.displaymode, callback: function(s) {
383
- e.$set(e.selItem, "displaymode", s);
384
- }, expression: "selItem.displaymode" } }, e._l(e.displayModeList, function(s) {
385
- return t("el-option", { key: s.code, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), label: e.$i18nt(s.transkey, s.name), value: s.code } });
386
- }), 1)], 1) : e._e(), e.currencyList.includes(e.selItem.columnname) ? t("el-form-item", { attrs: { label: e.$i18nt("gd.view.displayPrefix", "\u663E\u793A\u524D\u7F00") } }, [t("el-select", { model: { value: e.selItem.displayprefix, callback: function(s) {
387
- e.$set(e.selItem, "displayprefix", s);
388
- }, expression: "selItem.displayprefix" } }, e._l(e.displayPrefixList, function(s) {
389
- return t("el-option", { key: s.columnname, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), label: l.hasPrefix ? e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) : e.$i18nt(s.transkey, s.columncomment), value: s.columnname } });
390
- }), 1)], 1) : e._e(), ["currency", "double"].includes(e.selItem.effecttype) ? t("el-form-item", { attrs: { label: e.$i18nt("gd.page.numericalAccuracy", "\u6570\u503C\u7CBE\u5EA6") } }, [t("el-input-number", { attrs: { min: 0, max: 12, "controls-position": "right" }, model: { value: e.selItem.precision, callback: function(s) {
391
- e.$set(e.selItem, "precision", s);
392
- }, expression: "selItem.precision" } })], 1) : e._e(), l.operate === "add" ? t("i", { staticClass: "gd-icons gd-icon-new2 new-columnName" }) : e._e()], 1)])], 1);
393
- }), 0)], 1)], 1)]);
394
- }, H = [], Q = /* @__PURE__ */ f(
395
- G,
396
- J,
397
- H,
398
- !1,
399
- null,
400
- "12800373",
401
- null,
402
- null
403
- );
404
- const W = Q.exports;
405
- const U = {
406
- props: {
407
- selectItem: {
408
- type: Object,
409
- required: !0
410
- },
411
- loadData: {
412
- type: Array,
413
- default: () => []
414
- }
415
- },
416
- data() {
417
- return {
418
- width: "900px",
419
- visible: !1,
420
- fullscreen: !1,
421
- buttons: [
422
- {
423
- displayName: "\u786E\u5B9A",
424
- functionName: "handleSubmit",
425
- show: !0,
426
- transKey: "gd.btn.confirm",
427
- icon: "el-icon-document-checked"
428
- }
429
- ],
430
- confirmLoading: !1,
431
- list: [],
432
- relationData: []
433
- };
434
- },
435
- components: { EffectTypeIcon: p },
436
- methods: {
437
- toggleFullscreen() {
438
- this.fullscreen = !this.fullscreen;
439
- },
440
- changeCode(i) {
441
- this.$nextTick(() => {
442
- setTimeout(() => {
443
- let e = [...this.list];
444
- e.forEach((t, l) => {
445
- let n = this.filteredOptions(t), s = this.loadData.filter((o) => !n.includes(o.columnname));
446
- e[l].loadData = s;
447
- }), this.list = [...e];
448
- }, 0);
449
- });
450
- },
451
- filteredOptions(i) {
452
- let e = [];
453
- if (this.list.forEach((t, l) => {
454
- t.columnname !== void 0 && e.push(t.columnname);
455
- }), e.includes(i.columnname)) {
456
- let t = e.indexOf(i.columnname);
457
- e.splice(t, 1);
458
- }
459
- return e;
460
- },
461
- open() {
462
- this.visible = !0, this.fullscreen = !1;
463
- let i = this.selectItem.filter || [];
464
- i.map((t) => {
465
- t.changeEmpty = t.changeEmpty == null ? !0 : t.changeEmpty;
466
- let l = [
467
- {
468
- columnname: "&user&",
469
- columncomment: this.$i18nt("gd.form.currentUser", "\u5F53\u524D\u7528\u6237(\u975E\u672C\u8868\u5B57\u6BB5)"),
470
- effecttype: "",
471
- id: -1
472
- }
473
- ], n = this.filteredOptions(t), s = this.loadData.filter((o) => !n.includes(o.columnname));
474
- return t.loadData = s.concat(l), t;
475
- }), this.list = [...i], this.visible = !0;
476
- let e = this.loadData.filter((t) => t.columnname == this.selectItem.columnName)[0].children;
477
- this.relationData = e.filter((t) => t.effecttype == "about" && t.columnname == (t.relations + "_AboutTable").toLowerCase() ? !1 : !(t.effecttype == "currency" && t.columnname == (t.relations + "_Currency_Base").toLowerCase()));
478
- },
479
- handleDelete(i) {
480
- let e = [...this.list];
481
- e.splice(i, 1), this.list = [...e], this.$nextTick(() => {
482
- setTimeout(() => {
483
- e.forEach((t, l) => {
484
- let n = [
485
- {
486
- columnname: "&user&",
487
- columncomment: this.$i18nt("gd.form.currentUser", "\u5F53\u524D\u7528\u6237(\u975E\u672C\u8868\u5B57\u6BB5)"),
488
- effecttype: "",
489
- id: -1
490
- }
491
- ], s = this.filteredOptions(t), o = this.loadData.filter((a) => !s.includes(a.columnname));
492
- e[l].loadData = o.concat(n);
493
- }), this.list = [...e];
494
- }, 0);
495
- });
496
- },
497
- handleAdd() {
498
- let i = [...this.list], e = this.filteredOptions({
499
- columnName: void 0
500
- }), t = [
501
- {
502
- columnname: "&user&",
503
- columncomment: this.$i18nt("gd.form.currentUser", "\u5F53\u524D\u7528\u6237(\u975E\u672C\u8868\u5B57\u6BB5)"),
504
- effecttype: "",
505
- id: -1
506
- }
507
- ], l = {
508
- fieldName: "",
509
- fieldValue: null,
510
- operator: "equal",
511
- columnName: "",
512
- changeEmpty: !0,
513
- loadData: this.loadData.filter((n) => !e.includes(n.columnname)).concat(t)
514
- };
515
- i.push(l), this.list = [...i];
516
- },
517
- handleSubmit() {
518
- const i = this.isChecked();
519
- if (!i) {
520
- this.$message.warning(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
521
- return;
522
- }
523
- let e = [...this.list];
524
- e.forEach((t, l) => {
525
- e[l].loadData = [];
526
- }), this.selectItem.filter = [...e], this.selectItem.fieldFiltering = i, this.cancel();
527
- },
528
- isChecked() {
529
- return this.list.every((i, e, t) => i.fieldName !== "" && i.columnName !== "");
530
- },
531
- doEvent(i) {
532
- let e = i.item.functionName;
533
- this[e] && this[e]();
534
- },
535
- cancel() {
536
- this.fullscreen = !1, this.visible = !1, this.$emit("closed");
537
- }
538
- }
539
- };
540
- var Y = function() {
541
- var e = this, t = e._self._c;
542
- return t("div", [t("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(l) {
543
- e.visible = l;
544
- }, closed: e.cancel } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.form.filterFields", "\u8BBE\u7F6E\u7B5B\u9009\u5B57\u6BB5"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0, closed: "cancel" }, on: { changeEvent: e.doEvent } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [t("el-form", { ref: "form", attrs: { "label-width": "100px", "label-position": "left", size: "mini" }, nativeOn: { submit: function(l) {
545
- l.preventDefault();
546
- } } }, [t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { staticStyle: { "text-align": "left" }, attrs: { span: 7 } }, [e._v(" " + e._s(e.$i18nt("gd.form.tableFields", "\u672C\u8868\u5B57\u6BB5")) + " ")]), t("el-col", { staticStyle: { "text-align": "left" }, attrs: { span: 5 } }, [e._v(" " + e._s(e.$i18nt("gd.form.operator", "\u64CD\u4F5C\u7B26")) + " ")]), t("el-col", { staticStyle: { "text-align": "left" }, attrs: { span: 7 } }, [e._v(" " + e._s(e.$i18nt("gd.form.associatedTableFields", "\u5173\u8054\u8868\u5B57\u6BB5")) + " ")]), t("el-col", { staticStyle: { "text-align": "left" }, attrs: { span: 4 } }), t("el-col", { attrs: { span: 1 } })], 1), e._l(e.list, function(l, n) {
547
- return t("div", { key: n, staticClass: "option-change-box" }, [t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 7 } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", clearable: "" }, on: { change: e.changeCode }, model: { value: l.columnName, callback: function(s) {
548
- e.$set(l, "columnName", s);
549
- }, expression: "item.columnName" } }, [e._l(l.loadData, function(s, o) {
550
- return [s.columnname != e.selectItem.columnName ? t("el-option", { key: s.columnname, attrs: { value: s.columnname, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), t("span", { staticStyle: { "margin-left": "4px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1) : e._e()];
551
- })], 2)], 1), t("el-col", { attrs: { span: 5 } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: l.operator, callback: function(s) {
552
- e.$set(l, "operator", s);
553
- }, expression: "item.operator" } }, [t("el-option", { attrs: { value: "equal", label: e.$i18nt("gd.form.equal", "\u76F8\u7B49 (equal)") } }), t("el-option", { attrs: { value: "in", label: e.$i18nt("gd.form.contain", "\u5305\u542B (in)") } }), t("el-option", { attrs: { value: "like", label: e.$i18nt("gd.form.vague", "\u6A21\u7CCA (like)") } })], 1)], 1), t("el-col", { attrs: { span: 7 } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "", filterable: "" }, model: { value: l.fieldName, callback: function(s) {
554
- e.$set(l, "fieldName", s);
555
- }, expression: "item.fieldName" } }, e._l(e.relationData, function(s, o) {
556
- return t("el-option", { key: s.columnname, attrs: { value: s.columnname, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), t("span", { staticStyle: { "margin-left": "4px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1);
557
- }), 1)], 1), t("el-col", { attrs: { span: 4 } }, [t("div", { staticClass: "bian" }, [t("el-checkbox", { model: { value: l.changeEmpty, callback: function(s) {
558
- e.$set(l, "changeEmpty", s);
559
- }, expression: "item.changeEmpty" } }, [e._v(" " + e._s(e.$i18nt("gd.form.changeEmptying", "\u53D8\u5316\u6E05\u7A7A")) + " ")])], 1)]), t("el-col", { attrs: { span: 1 } }, [t("div", { staticClass: "option-delete-box", on: { click: function(s) {
560
- return e.handleDelete(n);
561
- } } }, [t("i", { staticClass: "el-icon-delete" })])])], 1)], 1);
562
- })], 2), t("div", { staticClass: "add" }, [t("el-button", { staticClass: "active-color", attrs: { type: "text" }, on: { click: e.handleAdd } }, [e._v(e._s(e.$i18nt("gd.btn.add", "\u65B0\u589E")))])], 1)], 1)], 2)], 1);
563
- }, Z = [], X = /* @__PURE__ */ f(
564
- U,
565
- Y,
566
- Z,
567
- !1,
568
- null,
569
- "6c54112e",
570
- null,
571
- null
572
- );
573
- const ee = X.exports;
574
- const te = {
575
- props: {
576
- selectItem: {
577
- type: Object,
578
- required: !0
579
- },
580
- loadData: {
581
- type: Array,
582
- default: () => []
583
- }
584
- },
585
- data() {
586
- return {
587
- width: "1000px",
588
- visible: !1,
589
- fullscreen: !1,
590
- buttons: [
591
- {
592
- displayName: "\u6E05\u7A7A",
593
- functionName: "empty",
594
- show: !0,
595
- icon: "el-icon-delete",
596
- transKey: "gd.btn.empty",
597
- btnType: "danger"
598
- },
599
- {
600
- displayName: "\u786E\u5B9A",
601
- functionName: "handleSubmit",
602
- show: !0,
603
- transKey: "gd.btn.confirm",
604
- icon: "el-icon-document-checked"
605
- }
606
- ],
607
- confirmLoading: !1,
608
- list: [],
609
- columnName: "",
610
- ocolumnName: ""
611
- };
612
- },
613
- computed: {
614
- columnNameDict() {
615
- return this.getDictionary(this.selectItem.dictTypeCode);
616
- },
617
- dictList() {
618
- let i = this.loadData.filter((t) => t.columnname === this.columnName)[0];
619
- return i === void 0 ? [] : this.getDictionary(i.dicttypecode);
620
- },
621
- dictData() {
622
- return this.loadData.filter((e) => e.dicttypecode && e.columnname !== this.selectItem.columnName);
623
- },
624
- columnData() {
625
- let i = this.loadData.filter((e) => e.columnname === this.columnName)[0];
626
- return i || {};
627
- },
628
- style() {
629
- return `color:${this.primaryColor};`;
630
- },
631
- ...h(["primaryColor"])
632
- },
633
- components: { EffectTypeIcon: p },
634
- methods: {
635
- getDictList(i) {
636
- let e = [];
637
- return this.list.forEach((l) => {
638
- l.columnValue && l.columnValue !== i.columnValue && e.push(l.columnValue);
639
- }), this.dictList.filter((l) => !e.includes(l.code));
640
- },
641
- selectColumnName(i) {
642
- let e = this;
643
- if (this.list.length > 0) {
644
- this.$confirm(this.$i18nt("gd.https.changeContent", "\u662F\u5426\u653E\u5F03\u66F4\u6539?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
645
- confirmButtonText: this.$i18nt("gd.https.changeOk", "\u786E\u8BA4\u653E\u5F03"),
646
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
647
- showClose: !1,
648
- confirmButtonLoading: !1,
649
- cancelButtonLoading: !1,
650
- closeOnClickModal: !1,
651
- type: "warning",
652
- confirmButtonClass: "el-button--danger",
653
- customClass: "custom-alert",
654
- callback: () => {
655
- },
656
- beforeClose: (t, l, n) => {
657
- if (n(), t !== "confirm") {
658
- e.columnName = e.ocolumnName;
659
- return;
660
- }
661
- e.columnName = i, e.list = [], e.ocolumnName = i;
662
- }
663
- });
664
- return;
665
- }
666
- this.ocolumnName = i;
667
- },
668
- empty() {
669
- let i = this;
670
- if (i.columnName) {
671
- this.$confirm(this.$i18nt("gd.https.emptyContent", "\u662F\u5426\u6E05\u7A7A\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
672
- confirmButtonText: this.$i18nt("gd.https.emptyOk", "\u786E\u8BA4\u653E\u5F03"),
673
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u786E\u8BA4\u6E05\u7A7A"),
674
- showClose: !1,
675
- confirmButtonLoading: !1,
676
- cancelButtonLoading: !1,
677
- closeOnClickModal: !1,
678
- type: "warning",
679
- confirmButtonClass: "el-button--danger",
680
- customClass: "custom-alert",
681
- callback: () => {
682
- },
683
- beforeClose: (e, t, l) => {
684
- if (l(), e !== "confirm") {
685
- i.columnName = i.ocolumnName;
686
- return;
687
- }
688
- i.columnName = "", i.list = [], i.ocolumnName = "";
689
- }
690
- });
691
- return;
692
- }
693
- i.columnName = "", i.list = [], i.ocolumnName = "";
694
- },
695
- open() {
696
- this.visible = !0, this.fullscreen = !1;
697
- let i = this.selectItem.filter || [], e = i[0] ? i[0].columnName : "";
698
- this.columnName = e, this.ocolumnName = e, this.list = i;
699
- },
700
- handleDelete(i) {
701
- let e = [...this.list];
702
- e.splice(i, 1), this.list = [...e];
703
- },
704
- handleAdd() {
705
- let i = [...this.list], e = {
706
- fieldValue: [],
707
- columnName: this.columnName,
708
- columnValue: "",
709
- changeEmpty: !0
710
- };
711
- i.push(e), this.list = [...i];
712
- },
713
- handleSubmit() {
714
- if (this.columnName !== "" && this.list.length == 0) {
715
- this.$message.warning(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
716
- return;
717
- }
718
- if (!this.isChecked()) {
719
- this.$message.warning(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
720
- return;
721
- }
722
- this.selectItem.filter = [...this.list], this.cancel();
723
- },
724
- isChecked() {
725
- return this.list.every((i, e, t) => i.fieldValue.length > 0 && i.fieldValue !== "");
726
- },
727
- toggleFullscreen() {
728
- this.fullscreen = !this.fullscreen;
729
- },
730
- doEvent(i) {
731
- let e = i.item.functionName;
732
- this[e] && this[e]();
733
- },
734
- getDictionary(i) {
735
- return this.$options.filters.dictData(i);
736
- },
737
- cancel() {
738
- this.fullscreen = !1, this.visible = !1;
739
- }
740
- }
741
- };
742
- var ie = function() {
743
- var e = this, t = e._self._c;
744
- return t("div", [t("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(l) {
745
- e.visible = l;
746
- }, closed: e.cancel } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.form.filterFields", "\u8BBE\u7F6E\u7B5B\u9009\u5B57\u6BB5"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0, closed: "cancel" }, on: { changeEvent: e.doEvent } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [t("el-form", { ref: "form", attrs: { "label-width": "100px", "label-position": "left", size: "mini" }, nativeOn: { submit: function(l) {
747
- l.preventDefault();
748
- } } }, [t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 8 } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", clearable: "" }, on: { change: e.selectColumnName }, model: { value: e.columnName, callback: function(l) {
749
- e.columnName = l;
750
- }, expression: "columnName" } }, [e._l(e.dictData, function(l, n) {
751
- return [l.columnname != e.selectItem.columnName ? t("el-option", { key: l.columnname, attrs: { value: l.columnname, label: e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: l.effecttype } }), t("span", { staticStyle: { "margin-left": "4px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)) + " (" + e._s(l.columnname) + ") ")])], 1) : e._e()];
752
- })], 2)], 1)], 1), t("el-divider"), e._l(e.list, function(l, n) {
753
- return t("div", { key: n, staticClass: "option-change-box" }, [t("div", [e._v(e._s(e.$i18nt("gd.form.equalVal", "\u5982\u679C")))]), t("div", { staticClass: "option-tag" }, [e.columnData.columnname ? t("el-tag", { style: e.style, attrs: { size: "small" } }, [e._v(" " + e._s(e.columnData.columnname) + " " + e._s(e.$i18nt(`Dynamics.${e.columnData.transkey}`, e.columnData.columncomment)) + " ")]) : t("el-tag", { attrs: { size: "small" } }, [e._v("--")])], 1), t("div", [e._v(e._s(e.$i18nt("gd.form.theValueIs", "\u503C\u4E3A")))]), t("div", { staticClass: "option-sels" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: l.columnValue, callback: function(s) {
754
- e.$set(l, "columnValue", s);
755
- }, expression: "item.columnValue" } }, [e._l(e.getDictList(l), function(s, o) {
756
- return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } })];
757
- })], 2)], 1), t("div", [e._v(e._s(e.$i18nt("gd.form.when", "\u65F6\uFF0C")) + e._s(e.$i18nt("gd.form.filterVal", "\u8FC7\u6EE4")))]), t("div", { staticClass: "option-sel" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), multiple: "" }, model: { value: l.fieldValue, callback: function(s) {
758
- e.$set(l, "fieldValue", s);
759
- }, expression: "item.fieldValue" } }, [e._l(e.columnNameDict, function(s, o) {
760
- return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } })];
761
- })], 2)], 1), t("div", [e._v(e._s(e.$i18nt("gd.form.dictionaryValue", "\u5B57\u5178\u503C")))]), t("div", { staticClass: "option-delete-box", on: { click: function(s) {
762
- return e.handleDelete(n);
763
- } } }, [t("i", { staticClass: "el-icon-delete" })])]);
764
- })], 2), e.columnName && e.list.length < e.dictList.length ? t("div", { staticClass: "add" }, [t("el-button", { staticClass: "active-color", attrs: { type: "text" }, on: { click: e.handleAdd } }, [e._v(e._s(e.$i18nt("gd.btn.add", "\u65B0\u589E")))])], 1) : e._e()], 1)], 2)], 1);
765
- }, se = [], le = /* @__PURE__ */ f(
766
- te,
767
- ie,
768
- se,
769
- !1,
770
- null,
771
- "28faaad1",
772
- null,
773
- null
774
- );
775
- const ae = le.exports;
776
- const ne = {
777
- props: {
778
- selectItem: {
779
- type: Object,
780
- required: !0
781
- },
782
- loadData: {
783
- type: Array,
784
- default: () => []
785
- }
786
- },
787
- data() {
788
- return {
789
- ref: ""
790
- };
791
- },
792
- computed: {
793
- getLoadData() {
794
- return this.loadData.filter((i) => i.effecttype == "about" && i.columnname == (i.relations + "_AboutTable").toLowerCase() ? !1 : !(i.effecttype == "currency" && i.columnname == (i.relations + "_Currency_Base").toLowerCase()));
795
- }
796
- },
797
- components: {
798
- FkField: ee,
799
- DictField: ae
800
- },
801
- methods: {
802
- setScreen(i) {
803
- this.ref = i, this.$refs[i].open();
804
- },
805
- visibleChange(i) {
806
- i || this.$refs[this.ref].handleSubmit();
807
- }
808
- }
809
- };
810
- var oe = function() {
811
- var e = this, t = e._self._c;
812
- return t("div", [e.selectItem.effectType === "fk" || e.selectItem.effectType === "user" ? [t("div", { staticStyle: { display: "flex", "align-items": "center" } }, [t("el-button", { attrs: { type: "primary" }, on: { click: function(l) {
813
- return e.setScreen("fkField");
814
- } } }, [e._v(" " + e._s(e.$i18nt("gd.form.filterFields", "\u8BBE\u7F6E\u7B5B\u9009\u5B57\u6BB5")) + " ")]), e.selectItem.fieldFiltering ? e._e() : t("i", { staticClass: "el-icon-warning", staticStyle: { color: "#f56c6c", "font-size": "20px", "margin-left": "10px", "line-height": "28px" } })], 1), t("FkField", { ref: "fkField", attrs: { selectItem: e.selectItem, loadData: e.getLoadData }, on: { closed: function(l) {
815
- return e.$emit("closed");
816
- } } })] : [t("el-button", { attrs: { type: "primary" }, on: { click: function(l) {
817
- return e.setScreen("dictField");
818
- } } }, [e._v(" " + e._s(e.$i18nt("gd.form.filterFields", "\u8BBE\u7F6E\u7B5B\u9009\u5B57\u6BB5")) + " ")]), t("DictField", { ref: "dictField", attrs: { selectItem: e.selectItem, loadData: e.getLoadData } })]], 2);
819
- }, re = [], de = /* @__PURE__ */ f(
820
- ne,
821
- oe,
822
- re,
823
- !1,
824
- null,
825
- "7f3e5a85",
826
- null,
827
- null
828
- );
829
- const ce = de.exports;
830
- const ue = {
831
- props: {
832
- loadData: {
833
- type: Array,
834
- default: () => []
835
- }
836
- },
837
- data() {
838
- return {
839
- fullscreen: !1,
840
- buttons: [
841
- {
842
- displayName: "\u786E\u5B9A",
843
- functionName: "save",
844
- show: !0,
845
- transKey: "gd.btn.confirm",
846
- icon: "el-icon-document-checked"
847
- }
848
- ],
849
- visible: !1,
850
- confirmLoading: !1,
851
- width: "800px",
852
- rulesList: [],
853
- operationList: [],
854
- list: [
855
- {
856
- title: "IF",
857
- open: !0,
858
- condition: {
859
- open: !0,
860
- list: []
861
- },
862
- operation: {
863
- open: !0,
864
- list: []
865
- },
866
- id: g()
867
- }
868
- ],
869
- showAdd: !0,
870
- fieldFormat: [],
871
- fetching: !1,
872
- dictDataAll: [],
873
- detail: {},
874
- type: 1
875
- };
876
- },
877
- components: { EffectTypeIcon: p },
878
- computed: {
879
- getListData() {
880
- return [
881
- {
882
- title: "IF",
883
- open: !0,
884
- condition: {
885
- open: !0,
886
- list: []
887
- },
888
- operation: {
889
- open: !0,
890
- list: []
891
- },
892
- id: g()
893
- }
894
- ];
895
- },
896
- getLoadData() {
897
- return this.loadData.filter((i) => i.effecttype !== "editor");
898
- }
899
- },
900
- watch: {
901
- list: {
902
- handler(i) {
903
- this.isSatisfy();
904
- },
905
- deep: !0,
906
- immediate: !0
907
- }
908
- },
909
- methods: {
910
- changeType(i, e) {
911
- e.forEach((t, l) => {
912
- e[l].type = l === 0 ? t.type : i;
913
- });
914
- },
915
- save() {
916
- let i = [], e = [];
917
- if (this.list.forEach((t, l) => {
918
- i = i.concat(t.condition.list), e = e.concat(t.operation.list);
919
- }), i.length === 0 && e.length === 0) {
920
- this.$emit("ok", []), this.cancel();
921
- return;
922
- }
923
- if (i.length == 0 && e.length > 0)
924
- return this.$message.warning(this.$i18nt("gd.form.businessRulesConditionTip", "\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")), !1;
925
- if (!this.isCheckedAll(i, 1))
926
- return this.$message.warning(this.$i18nt("gd.form.businessRulesConditionTip", "\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")), !1;
927
- if (e.length == 0 && i.length > 0)
928
- return this.$message.warning(this.$i18nt("gd.form.businessRulesHandleTip", "\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")), !1;
929
- if (!this.isCheckedAll(e, 2))
930
- return this.$message.warning(this.$i18nt("gd.form.businessRulesHandleTip", "\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")), !1;
931
- this.$emit("ok", this.list), this.cancel();
932
- },
933
- lookup(i, e) {
934
- this.detail = i, this.loadData.filter((t) => t.id == i.columnComment)[0], this.type = e;
935
- },
936
- lookupSeled(i) {
937
- let e = [...this.list];
938
- e.forEach((t, l) => {
939
- this.type == 1 ? t.condition.list.forEach((n, s) => {
940
- n.id == this.detail.id && (e[l].condition.list[s].val = this.detail.effectType != "about" ? i.id : i.data.id, e[l].condition.list[s].fkData = this.detail.effectType != "about" ? [i] : [i.data]);
941
- }) : t.operation.list.forEach((n, s) => {
942
- n.id == this.detail.id && (e[l].operation.list[s].val = this.detail.effectType != "about" ? i.id : i.data.id, e[l].operation.list[s].fkData = this.detail.effectType != "about" ? [i] : [i.data]);
943
- });
944
- }), this.list = [...e];
945
- },
946
- searchData(i, e) {
947
- let t = this.loadData.filter((l) => l.id == e.columncomment)[0];
948
- this.fetching = !0, e.fkData = [], z({
949
- name: i,
950
- fkEntityName: t.fkentityname
951
- }).then((l) => {
952
- e.fkData = l.success ? [...l.data] : [], this.fetching = !1;
953
- });
954
- },
955
- conditionColumn(i, e, t) {
956
- const l = this.loadData.filter((o) => o.id === t)[0];
957
- let n = this.loadData.filter((o) => o.id == i.columnComment)[0], s = this.rulesList.filter((o) => o.remark.split(",").includes(l.effecttype));
958
- n.fieldformat && (i.fieldFormat = this.fieldFormat.filter((o) => o.code == n.fieldformat)[0].name), i.effectType = n.effecttype, i.val = (["fk", "user", "about", "switch", "select", "radio", "checkbox"].includes(n.effecttype), ""), e == 1 && (i.rulesList = [...s], i.rules = s.length > 0 ? s[0].code : ""), ["fk", "about", "user"].includes(i.effectType) && this.searchData("", i);
959
- },
960
- conditionColumnView(i, e, t) {
961
- this.$nextTick(() => {
962
- setTimeout(() => {
963
- i.effectType = e, i.val = "";
964
- }, 0);
965
- });
966
- },
967
- del(i) {
968
- let e = this;
969
- this.$confirm(this.$i18nt("gd.https.delExpression", "\u662F\u5426\u5220\u9664\u6B64\u8868\u8FBE\u5F0F?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
970
- confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
971
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
972
- showClose: !1,
973
- confirmButtonLoading: !1,
974
- cancelButtonLoading: !1,
975
- closeOnClickModal: !1,
976
- type: "warning",
977
- confirmButtonClass: "el-button--danger",
978
- customClass: "custom-alert",
979
- callback: () => {
980
- },
981
- beforeClose: (t, l, n) => {
982
- if (t !== "confirm") {
983
- n();
984
- return;
985
- }
986
- let s = [...e.list];
987
- s.splice(i, 1), s.length > 1 && (s[s.length - 1].title = "Else"), e.list = [...s], n();
988
- }
989
- });
990
- },
991
- addList() {
992
- let i = [...this.list];
993
- i.length > 1 && (i[i.length - 1].title = "ELSE IF");
994
- let e = {
995
- title: "Else",
996
- open: !0,
997
- condition: {
998
- open: !0,
999
- list: []
1000
- },
1001
- operation: {
1002
- open: !0,
1003
- list: []
1004
- }
1005
- };
1006
- i.push(e), this.list = [...i];
1007
- },
1008
- delCondition(i, e) {
1009
- let t = [...this.list];
1010
- t[i].condition.list.splice(e, 1), t[i].condition.list.length > 0 && (t[i].condition.list[0].type = "0"), this.list = [...t];
1011
- },
1012
- delOperation(i, e) {
1013
- let t = [...this.list];
1014
- t[i].operation.list.splice(e, 1), this.list = [...t];
1015
- },
1016
- addCondition(i) {
1017
- let e = this.list[i].condition.list.length, l = {
1018
- type: e == 0 ? "0" : e > 1 ? this.list[i].condition.list[e - 1].type : "1",
1019
- columnComment: "",
1020
- rules: "1",
1021
- val: "",
1022
- rulesList: [...this.rulesList],
1023
- effectType: "input",
1024
- fieldFormat: null,
1025
- fkData: [],
1026
- id: g()
1027
- };
1028
- this.list[i].condition.list.push(l);
1029
- },
1030
- addOperation(i) {
1031
- let e = {
1032
- rules: "4",
1033
- columnComment: "",
1034
- val: "",
1035
- type: 1,
1036
- effectType: "input",
1037
- fkData: [],
1038
- id: g(),
1039
- fieldFormat: null
1040
- };
1041
- this.list[i].operation.list.push(e);
1042
- },
1043
- open(i, e) {
1044
- if (i == 1) {
1045
- this.list[e].open = !this.list[e].open;
1046
- return;
1047
- }
1048
- if (i == 2) {
1049
- this.list[e].condition.open = !this.list[e].condition.open;
1050
- return;
1051
- }
1052
- if (i == 3) {
1053
- this.list[e].operation.open = !this.list[e].operation.open;
1054
- return;
1055
- }
1056
- },
1057
- isSatisfy() {
1058
- if (this.list.length == 0)
1059
- return;
1060
- let i = [...this.list], e = i[i.length - 1];
1061
- e.condition.list.length > 0 ? this.showAdd = !this.isChecked(e.condition.list) : this.showAdd = !1;
1062
- },
1063
- isChecked(i) {
1064
- return i.every((e, t, l) => {
1065
- let n = e.rules == 5 || e.rules == 6 ? e.columnComment : e.val;
1066
- return !(e.columnComment != "" && n);
1067
- });
1068
- },
1069
- isCheckedAll(i, e) {
1070
- return i.every((t, l, n) => {
1071
- let s = "";
1072
- return e == 1 ? s = t.rules == 5 || t.rules == 6 ? t.columnComment : t.val : s = t.rules == 7 ? t.columnComment : t.val, t.columnComment != "" && s != "" && s != null;
1073
- });
1074
- },
1075
- getDictionary(i) {
1076
- let e = this.loadData.filter((t) => t.id == i.columnComment)[0];
1077
- return e === void 0 ? [] : e.dicttypecode == null ? [] : this.$options.filters.dictData(e.dicttypecode);
1078
- },
1079
- getDictionaryd(i) {
1080
- let e = i.rules == "3" ? "table_form_essential" : i.rules == "4" ? "table_form_so" : "table_form_locking";
1081
- return this.$options.filters.dictData(e);
1082
- },
1083
- showTime(i) {
1084
- return i.fieldFormat.length > 10;
1085
- },
1086
- toggleFullscreen() {
1087
- this.fullscreen = !this.fullscreen;
1088
- },
1089
- init(i) {
1090
- this.visible = !0, this.fullscreen = !1, this.$nextTick(() => {
1091
- setTimeout(() => {
1092
- this.list = i.length > 0 ? [...i] : JSON.parse(JSON.stringify(this.getListData));
1093
- }, 0);
1094
- });
1095
- },
1096
- doEvent(i) {
1097
- let e = i.item.functionName;
1098
- this[e] && this[e]();
1099
- },
1100
- cancel() {
1101
- this.visible = !1;
1102
- }
1103
- },
1104
- created() {
1105
- this.rulesList = this.$options.filters.dictData("table_form_rules"), this.operationList = this.$options.filters.dictData("table_form_operation").filter((i) => ["4"].includes(i.code)), this.fieldFormat = this.$options.filters.dictData("time_longshort"), this.isSatisfy();
1106
- }
1107
- };
1108
- var fe = function() {
1109
- var e = this, t = e._self._c;
1110
- return t("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(l) {
1111
- e.visible = l;
1112
- }, closed: e.cancel } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.$i18nt("gd.view.rulesControl", "\u89C4\u5219\u63A7\u5236"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0, closed: "cancel" }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "generator-form" }, [t("div", { staticClass: "rules" }, [e._l(e.list, function(l, n) {
1113
- return t("div", { key: n, staticClass: "rules-if" }, [t("div", { staticClass: "title" }, [t("div", { staticClass: "l", on: { click: function(s) {
1114
- return e.open(1, n);
1115
- } } }, [t("i", { class: l.open ? "el-icon-caret-bottom" : "el-icon-caret-right" }), e._v(" " + e._s(l.title) + " ")]), n != 0 ? t("div", { staticClass: "r" }, [t("i", { staticClass: "el-icon-delete", staticStyle: { "font-size": "18px", cursor: "pointer", color: "#ff4d4f" }, on: { click: function(s) {
1116
- return e.del(n);
1117
- } } })]) : e._e()]), l.open ? t("div", { staticClass: "rules-ifs" }, [t("div", { staticClass: "condition" }, [t("div", { staticClass: "title", on: { click: function(s) {
1118
- return e.open(2, n);
1119
- } } }, [t("i", { class: l.condition.open ? "el-icon-caret-bottom" : "el-icon-caret-right" }), e._v(" " + e._s(e.$i18nt("gd.form.if", "\u5982\u679C")) + " ")]), l.condition && l.condition.open ? t("div", { staticClass: "detail" }, [e._l(l.condition.list, function(s, o) {
1120
- return t("div", { staticClass: "lists" }, [t("div", { staticClass: "rg" }, [s.type == 0 ? t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), value: e.$i18nt("gd.form.if", "\u5982\u679C"), disabled: "" } }) : t("el-select", { staticStyle: { width: "100%" }, on: { change: function(a) {
1121
- return e.changeType(a, l.condition.list);
1122
- } }, model: { value: s.type, callback: function(a) {
1123
- e.$set(s, "type", a);
1124
- }, expression: "ite.type" } }, [t("el-option", { attrs: { value: "1", label: e.$i18nt("gd.filter.and", "\u548C") } }), t("el-option", { attrs: { value: "2", label: e.$i18nt("gd.filter.or", "\u6216") } })], 1)], 1), t("div", { staticClass: "zd" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "" }, on: { change: function(a) {
1125
- return e.conditionColumn(s, 1, a);
1126
- } }, model: { value: s.columnComment, callback: function(a) {
1127
- e.$set(s, "columnComment", a);
1128
- }, expression: "ite.columnComment" } }, e._l(e.getLoadData, function(a, r) {
1129
- return t("el-option", { key: a.id, attrs: { value: a.id, label: e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: a.effecttype } }), t("span", { staticStyle: { "margin-left": "4px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)) + " (" + e._s(a.columnname) + ") ")])], 1);
1130
- }), 1)], 1), t("div", { staticClass: "tj" }, [t("el-select", { staticStyle: { width: "100%" }, model: { value: s.rules, callback: function(a) {
1131
- e.$set(s, "rules", a);
1132
- }, expression: "ite.rules" } }, e._l(s.rulesList, function(a) {
1133
- return t("el-option", { key: a.code, attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
1134
- }), 1)], 1), t("div", { staticClass: "jg" }, [s.rules != 5 && s.rules != 6 ? t("div", [s.effectType == "input" || s.effectType == "textarea" || s.effectType == "double" || s.effectType == "currency" ? t("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: s.val, callback: function(a) {
1135
- e.$set(s, "val", a);
1136
- }, expression: "ite.val" } }) : s.effectType == "select" || s.effectType == "radio" || s.effectType == "checkbox" || s.effectType == "switch" ? t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: s.val, callback: function(a) {
1137
- e.$set(s, "val", a);
1138
- }, expression: "ite.val" } }, e._l(e.getDictionary(s), function(a) {
1139
- return t("el-option", { key: a.code, attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
1140
- }), 1) : s.effectType == "inputnumber" ? t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), step: 1 }, model: { value: s.val, callback: function(a) {
1141
- e.$set(s, "val", a);
1142
- }, expression: "ite.val" } }) : s.effectType == "datepicker" ? t("el-date-picker", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "show-time": e.showTime(s), valueFormat: s.fieldFormat }, model: { value: s.val, callback: function(a) {
1143
- e.$set(s, "val", a);
1144
- }, expression: "ite.val" } }) : s.effectType == "fk" || s.effectType == "about" ? t("div", { staticClass: "cao_about" }, [t("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: s.effectType == "about", "remote-method": (a) => e.searchData(a, s), loading: e.fetching, filterable: "", remote: "" }, model: { value: s.val, callback: function(a) {
1145
- e.$set(s, "val", a);
1146
- }, expression: "ite.val" } }, e._l(s.fkData, function(a, r) {
1147
- return t("el-option", { key: r, attrs: { label: a.name, value: a.id } });
1148
- }), 1), t("i", { staticClass: "cao_setting el-icon-search", on: { click: function(a) {
1149
- return e.lookup(s, 1);
1150
- } } })], 1) : s.effectType == "user" ? [s.rules != 11 && s.rules != 12 ? t("div", { staticClass: "cao_about" }, [s.rules != 3 && s.rules != 4 ? t("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "remote-method": (a) => e.searchData(a, s), loading: e.fetching, filterable: "", remote: "" }, model: { value: s.val, callback: function(a) {
1151
- e.$set(s, "val", a);
1152
- }, expression: "ite.val" } }, e._l(s.fkData, function(a, r) {
1153
- return t("el-option", { key: r, attrs: { label: a.name, value: a.id } });
1154
- }), 1) : t("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { multiple: "", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "remote-method": (a) => e.searchData(a, s), loading: e.fetching, filterable: "", remote: "" }, model: { value: s.val, callback: function(a) {
1155
- e.$set(s, "val", a);
1156
- }, expression: "ite.val" } }, e._l(s.fkData, function(a, r) {
1157
- return t("el-option", { key: r, attrs: { label: a.name, value: a.id } });
1158
- }), 1), t("i", { staticClass: "cao_setting el-icon-search", on: { click: function(a) {
1159
- return e.lookup(s, 1);
1160
- } } })], 1) : e._e()] : e._e()], 2) : e._e()]), t("div", { staticClass: "sc" }, [t("i", { staticClass: "el-icon-delete", staticStyle: { "font-size": "18px", color: "#ff4d4f" }, on: { click: function(a) {
1161
- return e.delCondition(n, o);
1162
- } } })])]);
1163
- }), t("div", { staticClass: "add" }, [t("div", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(s) {
1164
- return e.addCondition(n);
1165
- } } }, [t("i", { staticClass: "el-icon-plus" }), e._v(" " + e._s(e.$i18nt("gd.form.addCondition", "\u6DFB\u52A0\u6761\u4EF6")) + " ")])])], 2) : e._e()]), t("div", { staticClass: "operation" }, [t("div", { staticClass: "title", on: { click: function(s) {
1166
- return e.open(3, n);
1167
- } } }, [t("i", { attrs: { type: l.operation.open ? "el-icon-caret-bottom" : "el-icon-caret-right" } }), e._v(" " + e._s(e.$i18nt("gd.form.handle", "\u64CD\u4F5C")) + " ")]), l.operation && l.operation.open ? t("div", { staticClass: "list" }, [e._l(l.operation.list, function(s, o) {
1168
- return t("div", { staticClass: "lists" }, [t("div", { staticClass: "tj" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: s.rules, callback: function(a) {
1169
- e.$set(s, "rules", a);
1170
- }, expression: "ite.rules" } }, e._l(e.operationList, function(a) {
1171
- return t("el-option", { key: a.code, attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
1172
- }), 1)], 1), t("div", { staticClass: "zd" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(a) {
1173
- return e.conditionColumn(s, 2, a);
1174
- } }, model: { value: s.columnComment, callback: function(a) {
1175
- e.$set(s, "columnComment", a);
1176
- }, expression: "ite.columnComment" } }, e._l(e.getLoadData, function(a, r) {
1177
- return t("el-option", { key: a.id, attrs: { value: a.id, label: e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: a.effecttype } }), t("span", { staticStyle: { "margin-left": "4px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)) + " (" + e._s(a.columnname) + ") ")])], 1);
1178
- }), 1)], 1), t("div", { staticClass: "jg" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: s.val, callback: function(a) {
1179
- e.$set(s, "val", a);
1180
- }, expression: "ite.val" } }, e._l(e.getDictionaryd(s), function(a, r) {
1181
- return t("el-option", { key: a.code, attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
1182
- }), 1)], 1), t("div", { staticClass: "sc" }, [t("i", { staticClass: "el-icon-delete", staticStyle: { "font-size": "18px", color: "#ff4d4f" }, on: { click: function(a) {
1183
- return e.delOperation(n, o);
1184
- } } })])]);
1185
- }), t("div", { staticClass: "add" }, [t("div", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(s) {
1186
- return e.addOperation(n);
1187
- } } }, [t("i", { staticClass: "el-icon-plus" }), e._v(" " + e._s(e.$i18nt("gd.form.addHandle", "\u6DFB\u52A0\u64CD\u4F5C")) + " ")])])], 2) : e._e()])]) : e._e()]);
1188
- }), e.showAdd ? t("div", { staticClass: "rules-el" }, [t("div", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: e.addList } }, [t("i", { staticClass: "el-icon-plus" }), e._v(" " + e._s(e.$i18nt("gd.form.addElse", "\u6DFB\u52A0 ELSE")) + " ")])]) : e._e()], 2)])], 1);
1189
- }, me = [], he = /* @__PURE__ */ f(
1190
- ue,
1191
- fe,
1192
- me,
1193
- !1,
1194
- null,
1195
- "587b9900",
1196
- null,
1197
- null
1198
- );
1199
- const pe = he.exports;
1200
- const ge = {
1201
- props: {
1202
- loadData: {
1203
- type: Array,
1204
- default: () => []
1205
- },
1206
- type: {
1207
- type: String,
1208
- default: ""
1209
- }
1210
- },
1211
- data() {
1212
- return {
1213
- rulesList: []
1214
- };
1215
- },
1216
- components: { QueryRules: pe },
1217
- methods: {
1218
- init(i) {
1219
- this.rulesList = i;
1220
- },
1221
- setScreen(i) {
1222
- this.$refs[`${i}Rules`].init(JSON.parse(JSON.stringify(this.rulesList)));
1223
- },
1224
- okQueryRules(i) {
1225
- this.rulesList = i, this.$emit("ok", i);
1226
- }
1227
- }
1228
- };
1229
- var ye = function() {
1230
- var e = this, t = e._self._c;
1231
- return t("div", [e.type === "query" ? [t("el-button", { attrs: { type: "primary", size: "mini" }, on: { click: function(l) {
1232
- return e.setScreen("query");
1233
- } } }, [e._v(" " + e._s(e.$i18nt("gd.view.rulesControl", "\u89C4\u5219\u63A7\u5236")) + " ")]), t("QueryRules", { ref: "queryRules", attrs: { loadData: e.loadData }, on: { ok: e.okQueryRules } })] : e._e()], 2);
1234
- }, ve = [], be = /* @__PURE__ */ f(
1235
- ge,
1236
- ye,
1237
- ve,
1238
- !1,
1239
- null,
1240
- "9b84fd81",
1241
- null,
1242
- null
1243
- );
1244
- const we = be.exports;
1245
- const $e = [
1246
- {
1247
- name: "\u4ECA\u5929",
1248
- keyI18n: "gd.view.today",
1249
- val: "0"
1250
- },
1251
- {
1252
- name: "3\u5929\u4E4B\u5185",
1253
- keyI18n: "gd.view.within3Days",
1254
- val: "3"
1255
- },
1256
- {
1257
- name: "5\u5929\u4E4B\u5185",
1258
- keyI18n: "gd.view.within5Days",
1259
- val: "5"
1260
- },
1261
- {
1262
- name: "7\u5929\u4E4B\u5185",
1263
- keyI18n: "gd.view.within7Days",
1264
- val: "7"
1265
- },
1266
- {
1267
- name: "\u6700\u8FD1\u4E00\u4E2A\u6708",
1268
- keyI18n: "gd.view.lastMonth",
1269
- val: "30"
1270
- },
1271
- {
1272
- name: "\u6700\u8FD1\u4E09\u4E2A\u6708",
1273
- keyI18n: "gd.view.pastThreeMonths",
1274
- val: "90"
1275
- }
1276
- ], ke = [
1277
- {
1278
- name: "\u4ECA\u5929",
1279
- keyI18n: "gd.view.today",
1280
- val: "0"
1281
- },
1282
- {
1283
- name: "\u6628\u5929",
1284
- keyI18n: "gd.view.yesterday",
1285
- val: "2"
1286
- },
1287
- {
1288
- name: "3\u5929\u4E4B\u524D",
1289
- keyI18n: "gd.view.daysAgo3",
1290
- val: "3"
1291
- },
1292
- {
1293
- name: "5\u5929\u4E4B\u524D",
1294
- keyI18n: "gd.view.daysAgo5",
1295
- val: "5"
1296
- },
1297
- {
1298
- name: "7\u5929\u4E4B\u524D",
1299
- keyI18n: "gd.view.daysAgo7",
1300
- val: "7"
1301
- }
1302
- ], _e = [
1303
- {
1304
- name: "\u672C\u6708",
1305
- keyI18n: "gd.view.thisMonth",
1306
- val: "0"
1307
- },
1308
- {
1309
- name: "\u6700\u8FD1\u4E09\u4E2A\u6708",
1310
- keyI18n: "gd.view.pastThreeMonths",
1311
- val: "3"
1312
- },
1313
- {
1314
- name: "\u6700\u8FD1\u516D\u4E2A\u6708",
1315
- keyI18n: "gd.view.pastSixMonths",
1316
- val: "6"
1317
- },
1318
- {
1319
- name: "\u4ECA\u5E74\u81F3\u4ECA",
1320
- keyI18n: "gd.view.farThisYear",
1321
- val: "13"
1322
- }
1323
- ], De = [
1324
- {
1325
- name: "\u672C\u6708",
1326
- keyI18n: "gd.view.thisMonth",
1327
- val: "0"
1328
- },
1329
- {
1330
- name: "\u4E0A\u4E2A\u6708\u4E4B\u524D",
1331
- keyI18n: "gd.view.beforeLastMonth",
1332
- val: "1"
1333
- },
1334
- {
1335
- name: "\u4E09\u4E2A\u6708\u4E4B\u524D",
1336
- keyI18n: "gd.view.threeMonthsAgo",
1337
- val: "3"
1338
- },
1339
- {
1340
- name: "\u516D\u4E2A\u6708\u4E4B\u524D",
1341
- keyI18n: "gd.view.sixMonthsAgo",
1342
- val: "6"
1343
- }
1344
- ], Fe = {
1345
- props: {
1346
- table: {
1347
- type: Object,
1348
- default: () => ({})
1349
- },
1350
- fullscreen: {
1351
- type: Boolean,
1352
- default: !1
1353
- },
1354
- tableFieldList: {
1355
- type: Array,
1356
- default: () => []
1357
- },
1358
- rulesList: {
1359
- type: Array,
1360
- default: () => []
1361
- }
1362
- },
1363
- data() {
1364
- return {
1365
- visible: !1,
1366
- selectedRowKeys: [],
1367
- selectedRows: [],
1368
- loadFieldData: [],
1369
- loadData: (i) => this.getLoadField(),
1370
- record: [],
1371
- tableColumns: [
1372
- {
1373
- type: "selection",
1374
- width: "60",
1375
- fixed: !0
1376
- },
1377
- {
1378
- transKey: "gd.field.describe",
1379
- prop: "columncomment",
1380
- label: "\u663E\u793A\u540D",
1381
- width: "160",
1382
- align: "left",
1383
- type: "slot",
1384
- slotType: "columncomment"
1385
- },
1386
- {
1387
- transKey: "gd.field.field",
1388
- prop: "columnname",
1389
- label: "\u5B57\u6BB5\u540D",
1390
- width: "140",
1391
- align: "left"
1392
- },
1393
- {
1394
- transKey: "gd.field.effectType",
1395
- prop: "effectType",
1396
- label: "\u7C7B\u578B",
1397
- width: "110",
1398
- align: "left",
1399
- type: "slot",
1400
- slotType: "effectType"
1401
- }
1402
- ],
1403
- intervalList: $e,
1404
- equalList: ke,
1405
- intervalMonth: _e,
1406
- equalMonth: De,
1407
- selItem: {},
1408
- list: [],
1409
- viewList: [],
1410
- showFlowsFilter: !1
1411
- };
1412
- },
1413
- watch: {
1414
- list: {
1415
- handler(i) {
1416
- this.$nextTick(() => {
1417
- this.$emit("ok", this.list);
1418
- });
1419
- },
1420
- deep: !0,
1421
- immediate: !0
1422
- }
1423
- },
1424
- components: { draggable: k, FieldFiltering: ce, QueryRules: we, EffectTypeIcon: p, FlowsFilter: b },
1425
- computed: {
1426
- plugFilters() {
1427
- return {
1428
- referencefiled: "",
1429
- referencetable: this.getFkTable.tablename,
1430
- checked: !1,
1431
- columnid: 0,
1432
- columnname: "",
1433
- columntype: "",
1434
- dynamicreferencefield: "",
1435
- dynamicreferencetable: "",
1436
- fieldformat: null,
1437
- fkdata: [],
1438
- id: 0,
1439
- operators: "1",
1440
- optionsdata: [],
1441
- pid: null,
1442
- recordid: null,
1443
- ruleslist: [],
1444
- show: !0,
1445
- tablename: this.getFkTable.tablename,
1446
- type: "1",
1447
- value: "",
1448
- values: [],
1449
- list: []
1450
- };
1451
- },
1452
- getFkTable() {
1453
- const i = this.tableLists.filter((e) => e.tablename == this.selItem.fkentityname)[0];
1454
- return i || {};
1455
- },
1456
- disabledQuick() {
1457
- return this.list.filter((e) => e.options.quick).length >= 3;
1458
- },
1459
- getEffectList() {
1460
- const i = this.record.isvirtualtable == 1 ? "virtual_table_effect_type" : "code_gen_effect_type";
1461
- return this.getDictionary(i);
1462
- },
1463
- intervalData() {
1464
- let i = this.options.defaultInterval.filter((e) => e.type === "interval")[0];
1465
- return i || {};
1466
- },
1467
- equalData() {
1468
- let i = this.options.defaultInterval.filter((e) => e.type === "equal")[0];
1469
- return i || {};
1470
- },
1471
- options() {
1472
- return this.selItem.options || {};
1473
- },
1474
- fieldFormat() {
1475
- const i = this.timeLongshort.filter((e) => String(e.code) === String(this.options.fieldFormat))[0];
1476
- return i ? i.name : "yyyy-MM-dd HH:mm:ss";
1477
- },
1478
- timeLongshort() {
1479
- return this.getDictionary("time_longshort");
1480
- },
1481
- height() {
1482
- let i = this.fullscreen ? 190 : 340;
1483
- return this.screenHeight - i;
1484
- },
1485
- ...h(["tablePageSize", "tableSize", "screenHeight", "tableLists", "primaryColor"])
1486
- },
1487
- methods: {
1488
- changeViewId(i) {
1489
- const e = this.viewList.filter((l) => l.id === i)[0], t = e && e.filterconfig ? JSON.parse(e.filterconfig) : JSON.parse(JSON.stringify(this.plugFilters));
1490
- this.options.filterConfig = t;
1491
- },
1492
- selItemPopoverShow() {
1493
- this.$nextTick(() => {
1494
- setTimeout(() => {
1495
- const i = this.$refs[`${this.selItem.columnname}_popver`];
1496
- i && i[0].doShow();
1497
- }, 0);
1498
- });
1499
- },
1500
- setFilter() {
1501
- this.showFlowsFilter = !0, this.$nextTick(() => {
1502
- setTimeout(() => {
1503
- const i = this.options.filterConfig ? this.options.filterConfig : JSON.parse(JSON.stringify(this.plugFilters));
1504
- this.$refs.flowsFilter.init(i);
1505
- }, 0);
1506
- });
1507
- },
1508
- okFilter(i) {
1509
- if (i.list.length === 0) {
1510
- this.options.filterConfig = null;
1511
- return;
1512
- }
1513
- const e = i.list[0];
1514
- let t = 0;
1515
- i.list.forEach((n) => {
1516
- t += n.list.length;
1517
- });
1518
- const l = e && i.list.length === 1 && e.referencefiled === "" && e.referencetable === "" && e.list.length > 0 && t === 0 ? Object.assign(e, { columnid: 0 }) : i;
1519
- this.options.filterConfig = { ...l }, this.showFlowsFilter = !1;
1520
- },
1521
- cahngeWidthUnit() {
1522
- this.options.widthUnit = this.options.widthUnit === "px" ? "%" : "px";
1523
- },
1524
- hasTimePicker(i) {
1525
- const e = this.timeLongshort.filter((l) => l.code == i.fieldFormat)[0], t = e ? e.name : "yyyy-MM-dd";
1526
- return ["hh:mm:ss", "hh:mm", "mm:ss", "HH:mm:ss", "HH:mm"].includes(t);
1527
- },
1528
- pickerType(i) {
1529
- const e = this.timeLongshort.filter((n) => n.code == i.fieldFormat)[0], t = e ? e.name : "yyyy-MM-dd";
1530
- let l = "date";
1531
- return t === "yyyy-MM-dd hh:mm:ss" || t === "yyyy-MM-dd HH:mm:ss" ? l = "datetime" : t === "yyyy-MM" ? l = "month" : t === "yyyy" && (l = "year"), l;
1532
- },
1533
- formatName(i) {
1534
- const e = this.timeLongshort.filter((t) => t.code == i.fieldFormat)[0];
1535
- return e ? e.name : "yyyy-MM-dd";
1536
- },
1537
- changeFormat(i) {
1538
- this.disabledInterval(i) && (i.displayStyle = 1), i.defaultValue = "";
1539
- },
1540
- disabledInterval(i) {
1541
- const e = i.fieldFormat !== void 0 ? i.fieldFormat : i.fieldformat, t = this.timeLongshort.filter((s) => s.code == e)[0], l = t ? t.name : "yyyy-MM-dd";
1542
- return !["yyyy-MM-dd hh:mm:ss", "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM"].includes(l);
1543
- },
1544
- selDateDefault(i, e) {
1545
- let t = this.options.defaultInterval[e];
1546
- this.options.defaultInterval[e].value = t.value !== i.val ? i.val : "";
1547
- },
1548
- del(i) {
1549
- let e = `${this.selItem.columnname}_popver`;
1550
- this.$refs[e] && this.$refs[e][0] && this.$refs[e][0].doClose(), this.list = this.list.filter((t) => t.id !== i.id), this.selectedRowKeys = this.selectedRowKeys.filter((t) => t !== i.id), this.selectedRows = this.selectedRows.filter((t) => t.id !== i.id);
1551
- },
1552
- popoverItem(i) {
1553
- this.selItem = i;
1554
- },
1555
- showItemPopver() {
1556
- this.$nextTick(() => {
1557
- setTimeout(() => {
1558
- w({ sysCodeGenId: this.getFkTable.id }).then((i) => {
1559
- if (i.code === 200) {
1560
- this.viewList = i.data;
1561
- const e = i.data.filter((n) => n.type == 2)[0], t = e === void 0 ? this.viewList[0].id : e.id;
1562
- ({ ...this.options });
1563
- let l = this.options.viewdeId ? this.options.viewdeId : t;
1564
- if (!this.options.filterConfig) {
1565
- let n = i.data.filter((o) => o.id == l)[0], s = n && n.filterconfig ? JSON.parse(n.filterconfig) : JSON.parse(JSON.stringify(this.plugFilters));
1566
- this.options.filterConfig = s;
1567
- }
1568
- this.options.viewdeId = l;
1569
- }
1570
- });
1571
- }, 0);
1572
- });
1573
- },
1574
- showPopover() {
1575
- this.record = JSON.parse(JSON.stringify(this.list)), this.visible = !0, this.$nextTick(() => {
1576
- setTimeout(() => {
1577
- this.refresh(!1);
1578
- }, 0);
1579
- });
1580
- },
1581
- hidePopover() {
1582
- let i = this.loadFieldData.filter((s) => this.selectedRowKeys.includes(s.id)), e = [], t = [];
1583
- this.record.forEach((s) => {
1584
- i.forEach((o) => {
1585
- o.id === s.id && (e.push(s), t.push(o.id));
1586
- });
1587
- });
1588
- let l = this.selectedRowKeys.filter((s) => !t.includes(s)), n = this.loadFieldData.filter((s) => l.includes(s.id));
1589
- this.list = e.concat(n), this.visible = !1;
1590
- },
1591
- init(i) {
1592
- this.list = [...i];
1593
- let e = [];
1594
- this.list.forEach((t) => {
1595
- e.push(t.id);
1596
- }), this.selectedRowKeys = [...e], this.getLoadField(), this.$nextTick(() => {
1597
- setTimeout(() => {
1598
- this.$refs.queryRules.init(this.rulesList);
1599
- }, 0);
1600
- });
1601
- },
1602
- getLoadField() {
1603
- return new Promise((i, e) => {
1604
- const t = {
1605
- fieldFiltering: !0,
1606
- effectType: "",
1607
- fieldFormat: "",
1608
- displayStyle: 0,
1609
- defaultValue: "",
1610
- defaultValueList: [],
1611
- filterList: [],
1612
- hidden: !1,
1613
- required: !1,
1614
- openWidth: 80,
1615
- widthUnit: "%",
1616
- quick: !1,
1617
- labelWidth: 120,
1618
- min: void 0,
1619
- max: void 0,
1620
- defaultInterval: [
1621
- {
1622
- type: "interval",
1623
- value: ""
1624
- },
1625
- {
1626
- type: "equal",
1627
- value: ""
1628
- }
1629
- ]
1630
- };
1631
- let l = JSON.parse(JSON.stringify(this.tableFieldList)).filter((n) => {
1632
- n.children = null;
1633
- let s = 0;
1634
- return n.effecttype === "datepicker" && this.disabledInterval(n) && (s = 1), n.options = Object.assign(
1635
- { ...t },
1636
- {
1637
- columnName: n.columnname,
1638
- effectType: n.effecttype,
1639
- fieldFormat: String(n.fieldformat),
1640
- displayStyle: s,
1641
- defaultValue: ["inputnumber", "double", "currency"].includes(n.effecttype) ? void 0 : ""
1642
- }
1643
- ), n.querywhether === "Y";
1644
- }).filter((n) => !(n.effecttype == "about" && n.columnname == (n.relations + "_abouttable").toLowerCase() || n.effecttype == "image" || n.effecttype == "file"));
1645
- this.loadFieldData = [...l], i({ pageNo: 1, pageSize: 400, totalRows: 0, rows: l });
1646
- });
1647
- },
1648
- onSelectChange(i, e) {
1649
- this.selectedRowKeys = i, this.selectedRows = e;
1650
- },
1651
- getDictionary(i) {
1652
- return this.$options.filters.dictData(i);
1653
- },
1654
- refresh(i = !0) {
1655
- this.$refs.table.refresh(!1);
1656
- }
1657
- }
1658
- };
1659
- var Ce = function() {
1660
- var e = this, t = e._self._c;
1661
- return t("div", { staticClass: "config-item" }, [t("div", { staticClass: "t" }, [t("div", { staticClass: "tls" }, [e._v(e._s(e.$i18nt("gd.view.queryCriteria", "\u67E5\u8BE2\u6761\u4EF6")))]), t("QueryRules", { ref: "queryRules", attrs: { loadData: e.loadFieldData, type: "query" }, on: { ok: (l) => e.$emit("okRules", l) } }), t("el-popover", { attrs: { placement: "bottom", trigger: "click" }, on: { hide: e.hidePopover, show: e.showPopover } }, [t("span", { staticClass: "el-dropdown-link", attrs: { slot: "reference" }, slot: "reference" }, [t("i", { staticClass: "el-icon-plus active-color" })]), t("div", { staticStyle: { width: "500px" } }, [e.visible ? t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, showPagination: !1, initialLoading: !1, disabledRefresh: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "columncomment", fn: function({ column: l, row: n }) {
1662
- return [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transkey}`, n.columncomment)) + " ")];
1663
- } }, { key: "effectType", fn: function({ column: l, row: n }) {
1664
- return [e._v(" " + e._s(e._f("dictType")("code_gen_effect_type", n.effecttype)) + " ")];
1665
- } }], null, !1, 2237526943) }) : e._e()], 1)])], 1), t("div", { staticClass: "b" }, [t("el-form", { ref: "form", attrs: { "label-width": "100px", "label-position": "left", size: "mini" }, nativeOn: { submit: function(l) {
1666
- l.preventDefault();
1667
- } } }, [t("draggable", e._b({ model: { value: e.list, callback: function(l) {
1668
- e.list = l;
1669
- }, expression: "list" } }, "draggable", {
1670
- animation: 300,
1671
- handle: ".drag-move"
1672
- }, !1), e._l(e.list, function(l, n) {
1673
- return t("div", { key: n, staticStyle: { "margin-bottom": "2px" }, on: { click: function(s) {
1674
- return e.popoverItem(l);
1675
- } } }, [t("el-popover", { ref: `${l.columnname}_popver`, refInFor: !0, attrs: { placement: "right", trigger: "click" }, on: { show: e.showItemPopver } }, [t("div", { staticClass: "bitem", attrs: { slot: "reference" }, slot: "reference" }, [t("i", { staticClass: "el-icon-rank active-color drag-move" }), t("EffectTypeIcon", { attrs: { effectType: l.effecttype } }), t("div", { staticClass: "sku" }, [e._v(" " + e._s(l.columnname) + " ")]), t("el-divider", { attrs: { direction: "vertical" } }), t("div", { staticClass: "spu line1" }, [t("span", [e._v(e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)))])]), l.options.fieldFiltering ? e._e() : t("i", { staticClass: "el-icon-warning" }), t("i", { staticClass: "el-icon-delete", on: { click: function(s) {
1676
- return s.stopPropagation(), e.del(l);
1677
- } } })], 1), t("div", { staticClass: "bconfig" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.field.effectType", "\u4F5C\u7528\u7C7B\u578B") } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: "" }, model: { value: e.options.effectType, callback: function(s) {
1678
- e.$set(e.options, "effectType", s);
1679
- }, expression: "options.effectType" } }, [e._l(e.getEffectList, function(s) {
1680
- return [t("el-option", { attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } })];
1681
- })], 2)], 1), l.effecttype === "datepicker" ? t("el-form-item", { attrs: { label: e.$i18nt("gd.page.displayFormat", "\u663E\u793A\u683C\u5F0F") } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(s) {
1682
- return e.changeFormat(e.options);
1683
- } }, model: { value: e.options.fieldFormat, callback: function(s) {
1684
- e.$set(e.options, "fieldFormat", s);
1685
- }, expression: "options.fieldFormat" } }, [e._l(e.getDictionary("time_longshort"), function(s) {
1686
- return [t("el-option", { attrs: { label: e.$i18nt(s.transkey, s.name), value: s.code } })];
1687
- })], 2)], 1) : e._e(), e.selItem.effecttype === "datepicker" ? t("el-form-item", { attrs: { label: "\u64CD\u4F5C\u7B26" } }, [t("el-radio-group", { attrs: { size: "mini" }, model: { value: e.options.displayStyle, callback: function(s) {
1688
- e.$set(e.options, "displayStyle", s);
1689
- }, expression: "options.displayStyle" } }, [t("el-radio-button", { attrs: { label: 0, disabled: e.disabledInterval(e.options) } }, [e._v(" " + e._s(e.$i18nt("gd.field.operationInterval", "\u533A\u95F4\u8303\u56F4")) + " ")]), t("el-radio-button", { attrs: { label: 1 } }, [e._v(e._s(e.$i18nt("gd.field.operationEqual", "\u7B49\u4E8E")))])], 1)], 1) : e._e(), [
1690
- "switch",
1691
- "select",
1692
- "radio",
1693
- "checkbox",
1694
- "input",
1695
- "textarea",
1696
- "editor",
1697
- "inputnumber",
1698
- "double",
1699
- "currency",
1700
- "datepicker"
1701
- ].includes(e.selItem.effecttype) ? t("el-form-item", { attrs: { label: "\u9ED8\u8BA4\u503C" } }, [["switch", "select", "radio", "checkbox"].includes(e.selItem.effecttype) ? [t("el-select", { staticStyle: { width: "100%" }, attrs: { clearable: "", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.options.defaultValueList, callback: function(s) {
1702
- e.$set(e.options, "defaultValueList", s);
1703
- }, expression: "options.defaultValueList" } }, e._l(e.getDictionary(e.selItem.dicttypecode), function(s) {
1704
- return t("el-option", { key: s.code, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } });
1705
- }), 1)] : ["inputnumber", "double", "currency"].includes(e.selItem.effecttype) ? [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), clearable: "" }, model: { value: e.options.defaultValue, callback: function(s) {
1706
- e.$set(e.options, "defaultValue", s);
1707
- }, expression: "options.defaultValue" } })] : ["datepicker"].includes(e.selItem.effecttype) ? [t("div", { directives: [{ name: "show", rawName: "v-show", value: e.options.displayStyle == 1, expression: "options.displayStyle == 1" }] }, [e.hasTimePicker(e.options) ? t("el-time-picker", { attrs: { "value-format": e.fieldFormat, format: e.fieldFormat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.equalData.value !== "", clearable: "" }, model: { value: e.options.defaultValue, callback: function(s) {
1708
- e.$set(e.options, "defaultValue", s);
1709
- }, expression: "options.defaultValue" } }) : t("el-date-picker", { attrs: { type: e.pickerType(e.options), "value-format": e.fieldFormat, format: e.fieldFormat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.equalData.value !== "", clearable: "" }, model: { value: e.options.defaultValue, callback: function(s) {
1710
- e.$set(e.options, "defaultValue", s);
1711
- }, expression: "options.defaultValue" } })], 1), t("div", { directives: [{ name: "show", rawName: "v-show", value: e.options.displayStyle != 1, expression: "options.displayStyle != 1" }] }, [t("el-date-picker", { staticStyle: { width: "320px" }, attrs: { type: e.formatName(e.options) === "yyyy-MM" ? "monthrange" : "daterange", "range-separator": "~", "start-placeholder": e.$i18nt("el.datepicker.startDate", "\u5F00\u59CB\u65E5\u671F"), "end-placeholder": e.$i18nt("el.datepicker.endDate", "\u7ED3\u675F\u65E5\u671F"), "value-format": e.fieldFormat, format: e.fieldFormat, disabled: e.intervalData.value !== "", clearable: "" }, model: { value: e.options.defaultValueList, callback: function(s) {
1712
- e.$set(e.options, "defaultValueList", s);
1713
- }, expression: "options.defaultValueList" } })], 1), e.disabledInterval(e.options) ? e._e() : [e.options.displayStyle == 1 ? t("div", [e.formatName(e.options) === "yyyy-MM" ? t("div", [e._l(e.equalMonth, function(s) {
1714
- return [t("el-tag", { staticStyle: { cursor: "pointer", margin: "6px 6px 6px 0" }, attrs: { type: e.equalData.value === s.val ? "success" : "info", effect: "dark" }, on: { click: function(o) {
1715
- return e.selDateDefault(s, 0);
1716
- } } }, [e._v(" " + e._s(e.$i18nt(s.keyI18n, s.name)) + " ")])];
1717
- })], 2) : t("div", [e._l(e.equalList, function(s) {
1718
- return [t("el-tag", { staticStyle: { cursor: "pointer", margin: "6px 6px 6px 0" }, attrs: { type: e.equalData.value === s.val ? "success" : "info", effect: "dark" }, on: { click: function(o) {
1719
- return e.selDateDefault(s, 1);
1720
- } } }, [e._v(" " + e._s(e.$i18nt(s.keyI18n, s.name)) + " ")])];
1721
- })], 2)]) : t("div", [e.formatName(e.options) === "yyyy-MM" ? t("div", [e._l(e.intervalMonth, function(s) {
1722
- return [t("el-tag", { staticStyle: { cursor: "pointer", margin: "6px 6px 6px 0" }, attrs: { type: e.intervalData.value === s.val ? "success" : "info", effect: "dark" }, on: { click: function(o) {
1723
- return e.selDateDefault(s, 0);
1724
- } } }, [e._v(" " + e._s(e.$i18nt(s.keyI18n, s.name)) + " ")])];
1725
- })], 2) : t("div", [e._l(e.intervalList, function(s) {
1726
- return [t("el-tag", { staticStyle: { cursor: "pointer", margin: "6px 6px 6px 0" }, attrs: { type: e.intervalData.value === s.val ? "success" : "info", effect: "dark" }, on: { click: function(o) {
1727
- return e.selDateDefault(s, 0);
1728
- } } }, [e._v(" " + e._s(e.$i18nt(s.keyI18n, s.name)) + " ")])];
1729
- })], 2)])]] : [t("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), clearable: "" }, model: { value: e.options.defaultValue, callback: function(s) {
1730
- e.$set(e.options, "defaultValue", s);
1731
- }, expression: "options.defaultValue" } })]], 2) : e._e(), ["inputnumber", "double", "currency"].includes(e.selItem.effecttype) ? [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.minimumValue", "\u6700\u5C0F\u503C") } }, [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.options.min, callback: function(s) {
1732
- e.$set(e.options, "min", s);
1733
- }, expression: "options.min" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.page.maximumValue", "\u6700\u5927\u503C") } }, [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.options.max, callback: function(s) {
1734
- e.$set(e.options, "max", s);
1735
- }, expression: "options.max" } })], 1)] : e._e(), e.selItem.effecttype === "fk" ? [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.useView", "\u4F7F\u7528\u89C6\u56FE") } }, [t("el-select", { attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.changeViewId }, model: { value: e.options.viewdeId, callback: function(s) {
1736
- e.$set(e.options, "viewdeId", s);
1737
- }, expression: "options.viewdeId" } }, [e._l(e.viewList, function(s) {
1738
- return [t("el-option", { attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.id } })];
1739
- })], 2)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.form.cascadingFilter", "\u7EA7\u8054\u7B5B\u9009") } }, [t("FieldFiltering", { attrs: { selectItem: e.options, loadData: e.tableFieldList }, on: { closed: e.selItemPopoverShow } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.page.viewFiltering", "\u89C6\u56FE\u8FC7\u6EE4") } }, [t("el-button", { attrs: { type: "primary" }, on: { click: e.setFilter } }, [e._v(" " + e._s(e.$i18nt("gd.view.filterConditions", "\u8FC7\u6EE4\u6761\u4EF6")) + " ")])], 1)] : e._e(), ["fk", "user", "about", "participants"].includes(e.selItem.effecttype) ? t("el-form-item", { attrs: { label: e.$i18nt("gd.formProperties.modeFrameWidth", "\u6A21\u6001\u6846\u5BBD\u5EA6") } }, [t("div", { staticClass: "operatorl-flex" }, [t("el-input-number", { attrs: { "controls-position": "right", min: 1 }, model: { value: e.options.openWidth, callback: function(s) {
1740
- e.$set(e.options, "openWidth", s);
1741
- }, expression: "options.openWidth" } }), t("div", { staticClass: "operatorl-operatorl", on: { click: e.cahngeWidthUnit } }, [e._v(" " + e._s(e.options.widthUnit) + " ")])], 1)]) : e._e(), t("el-form-item", { attrs: { label: e.$i18nt("gd.form.actionProperties", "\u64CD\u4F5C\u5C5E\u6027") } }, [t("el-checkbox", { model: { value: e.options.hidden, callback: function(s) {
1742
- e.$set(e.options, "hidden", s);
1743
- }, expression: "options.hidden" } }, [e._v(" " + e._s(e.$i18nt("gd.form.hide", "\u9690\u85CF")) + " ")]), t("el-checkbox", { model: { value: e.options.required, callback: function(s) {
1744
- e.$set(e.options, "required", s);
1745
- }, expression: "options.required" } }, [e._v(" " + e._s(e.$i18nt("gd.form.required", "\u5FC5\u586B")) + " ")]), t("el-checkbox", { attrs: { disabled: !e.options.quick && e.disabledQuick }, model: { value: e.options.quick, callback: function(s) {
1746
- e.$set(e.options, "quick", s);
1747
- }, expression: "options.quick" } }, [e._v(" " + e._s(e.$i18nt("gd.form.quick", "\u5FEB\u6377")) + " ")])], 1), e.options.quick ? t("el-form-item", { attrs: { label: e.$i18nt("gd.page.cuttingModed", "\u5217\u5BBD\u5EA6") } }, [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { "controls-position": "right", max: 900, min: 0 }, model: { value: e.options.labelWidth, callback: function(s) {
1748
- e.$set(e.options, "labelWidth", s);
1749
- }, expression: "options.labelWidth" } })], 1) : e._e()], 2)])], 1);
1750
- }), 0)], 1), e.showFlowsFilter ? t("div", [t("FlowsFilter", { ref: "flowsFilter", attrs: { table: e.getFkTable }, on: { ok: e.okFilter, closed: e.selItemPopoverShow } })], 1) : e._e()], 1)]);
1751
- }, xe = [], Ie = /* @__PURE__ */ f(
1752
- Fe,
1753
- Ce,
1754
- xe,
1755
- !1,
1756
- null,
1757
- "7280a575",
1758
- null,
1759
- null
1760
- );
1761
- const Le = Ie.exports;
1762
- const Se = [
1763
- {
1764
- code: 1,
1765
- name: "\u662F",
1766
- transKey: "gd.state.yes"
1767
- },
1768
- {
1769
- code: 0,
1770
- name: "\u5426",
1771
- transKey: "gd.state.no"
1772
- }
1773
- ], Te = [
1774
- { code: "asc", name: "\u5347\u5E8F", transKey: "gd.view.asc" },
1775
- { code: "desc", name: "\u964D\u5E8F", transKey: "gd.view.desc" }
1776
- ], Oe = {
1777
- props: {
1778
- table: {
1779
- type: Object,
1780
- default: () => ({})
1781
- }
1782
- },
1783
- data() {
1784
- return {
1785
- record: {},
1786
- confirmLoading: !1,
1787
- visible: !1,
1788
- fullscreen: !1,
1789
- buttons: [
1790
- {
1791
- displayName: "\u786E\u5B9A",
1792
- functionName: "handleSubmit",
1793
- show: !0,
1794
- transKey: "gd.btn.confirm",
1795
- icon: "el-icon-document-checked"
1796
- }
1797
- ],
1798
- ruleFormData: {
1799
- num: 0,
1800
- name: "",
1801
- type: "1",
1802
- explain: "",
1803
- viewName: "",
1804
- isDefault: 0,
1805
- isViewTree: !1,
1806
- order: 100,
1807
- sortOneField: "",
1808
- sortOneOrder: "asc",
1809
- sortTwoField: "",
1810
- sortTwoOrder: "asc",
1811
- transKey: null,
1812
- isDoubleClick: 0
1813
- },
1814
- rules: {
1815
- name: [{ required: !0, message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"), trigger: "change" }],
1816
- viewName: [
1817
- { required: !0, message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"), trigger: "change" },
1818
- {
1819
- pattern: /^[a-zA-Z]([a-zA-Z0-9]+)?$/,
1820
- message: this.$i18nt("gd.view.viewNameTip", "\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD!")
1821
- }
1822
- ],
1823
- viewId: [{ required: !0, message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"), trigger: "change" }],
1824
- order: [{ required: !0, message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"), trigger: "change" }]
1825
- },
1826
- isViewTree: !1,
1827
- isViewType: void 0,
1828
- defaultList: Se,
1829
- defaultSortList: Te,
1830
- list: [],
1831
- tableFieldList: [],
1832
- rulesList: [],
1833
- queryList: [],
1834
- filterList: {},
1835
- buttonRule: [],
1836
- lodaData: {},
1837
- viewListData: [],
1838
- viewDetail: {}
1839
- };
1840
- },
1841
- computed: {
1842
- showItem() {
1843
- return this.record.type != 1;
1844
- },
1845
- width() {
1846
- return this.record.type == 1 ? "700px" : "1200px";
1847
- },
1848
- title() {
1849
- return this.record.type == 1 ? this.$i18nt("gd.advancedFind.editColumn", "\u7F16\u8F91\u5217") : this.record.type == 2 ? this.$i18nt("gd.advancedFind.saveNewView", "\u53E6\u5B58\u4E3A\u65B0\u89C6\u56FE") : this.$i18nt("gd.advancedFind.editView", "\u7F16\u8F91\u89C6\u56FE");
1850
- },
1851
- disabled() {
1852
- return this.record.type == 3;
1853
- },
1854
- sortField() {
1855
- return this.tableFieldList.filter((i) => i.effecttype == "about" && i.columnname == (i.relations + "_AboutTable").toLowerCase() ? !1 : !(i.effecttype == "user" || i.effecttype == "fk" || i.effecttype == "about" || i.effecttype == "participants"));
1856
- },
1857
- plugFilters() {
1858
- return {
1859
- referencefiled: "",
1860
- referencetable: this.table.tablename,
1861
- checked: !1,
1862
- columnid: 0,
1863
- columnname: "",
1864
- columntype: "",
1865
- dynamicreferencefield: "",
1866
- dynamicreferencetable: "",
1867
- fieldformat: null,
1868
- fkdata: [],
1869
- id: 0,
1870
- operators: "1",
1871
- optionsdata: [],
1872
- pid: null,
1873
- recordid: null,
1874
- ruleslist: [],
1875
- show: !0,
1876
- tablename: this.table.tablename,
1877
- type: "1",
1878
- value: "",
1879
- values: [],
1880
- list: []
1881
- };
1882
- },
1883
- ...h(["primaryColor"])
1884
- },
1885
- components: { viewList: W, viewQuery: Le, FlowsFilter: b, EffectTypeIcon: p },
1886
- methods: {
1887
- add() {
1888
- let i = [], e = [], t = [], l = 0;
1889
- this.list.forEach((a, r) => {
1890
- let d = String(a.id).split("-"), u = `${a.align}&${a.visible ? 1 : 0}&${a.displaymode}&${a.displayprefix}&${a.preview}&${a.download}&${a.format}&${a.hyperlink}&${a.precision}`, c = {
1891
- name: a.alias == "" ? a.columncomment : a.alias,
1892
- width: a.num,
1893
- order: r,
1894
- type: d.length > 1 ? 2 : 1,
1895
- fieldid: d.length > 1 ? d[1] : d[0],
1896
- jointableid: a.codegenid,
1897
- joinfieldid: d[0],
1898
- orderconfig: a.orderconfig ? 1 : 0,
1899
- gatherconfig: a.gatherconfig ? 1 : 0,
1900
- maxTagcount: a.maxtagcount,
1901
- align: u
1902
- };
1903
- i.push(c);
1904
- }), this.queryList.forEach((a, r) => {
1905
- let d = {
1906
- queryType: a.effecttype == "fk" ? 2 : 1,
1907
- name: a.columncomment,
1908
- fieldid: a.id,
1909
- jointableid: a.codegenid,
1910
- joinfieldid: a.id,
1911
- order: r,
1912
- displaystyle: a.displaystyle,
1913
- options: JSON.stringify(a.options)
1914
- };
1915
- e.push(d);
1916
- }), this.ruleFormData.sortOneField !== "" && t.push({
1917
- sortField: this.ruleFormData.sortOneField,
1918
- sortOrder: this.ruleFormData.sortOneOrder
1919
- }), this.ruleFormData.sortTwoField !== "" && t.push({
1920
- sortField: this.ruleFormData.sortTwoField,
1921
- sortOrder: this.ruleFormData.sortTwoOrder
1922
- });
1923
- let n = this.filterList.list[0];
1924
- this.filterList.list.forEach((a) => {
1925
- l += a.list.length;
1926
- });
1927
- let s = n && this.filterList.list.length === 1 && n.referenceFiled === "" && n.referenceTable === "" && n.list.length > 0 && l === 0 ? Object.assign(n, {
1928
- columnId: 0
1929
- }) : this.filterList, o = {
1930
- syscodegenid: this.table.id,
1931
- name: this.ruleFormData.name,
1932
- baseview: this.ruleFormData.viewId,
1933
- description: this.ruleFormData.explain,
1934
- frozencolumn: this.ruleFormData.num,
1935
- viewname: this.ruleFormData.viewName,
1936
- order: this.ruleFormData.order,
1937
- isdoubleclick: this.ruleFormData.isDoubleClick,
1938
- syssavedqueryfields: i,
1939
- isdefault: 1,
1940
- filterconfig: JSON.stringify(s),
1941
- syssavedqueryquerys: e,
1942
- defaultsort: JSON.stringify(t),
1943
- viewtree: JSON.stringify({}),
1944
- isviewtree: 0,
1945
- ruleconfig: JSON.stringify(this.rulesList)
1946
- };
1947
- M(o).then((a) => {
1948
- a.success ? (this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25:") + a.message), this.confirmLoading = !1;
1949
- });
1950
- },
1951
- edit() {
1952
- let i = [], e = [], t = [], l = 0;
1953
- this.list.forEach((a, r) => {
1954
- let d = String(a.id).split("-"), u = `${a.align}&${a.visible ? 1 : 0}&${a.displaymode}&${a.displayprefix}&${a.preview}&${a.download}&${a.format}&${a.hyperlink}&${a.precision}`;
1955
- if (this.isChecked(a.id, this.record.data.syssavedqueryfields)) {
1956
- let c = {
1957
- id: 0,
1958
- name: a.alias == "" ? a.columncomment : a.alias,
1959
- width: a.num,
1960
- order: r,
1961
- type: d.length > 1 ? 2 : 1,
1962
- fieldid: d.length > 1 ? d[1] : d[0],
1963
- jointableid: a.codegenid,
1964
- joinfieldid: d[0],
1965
- orderconfig: a.orderconfig ? 1 : 0,
1966
- gatherconfig: a.gatherconfig ? 1 : 0,
1967
- maxtagcount: a.maxtagcount,
1968
- align: u
1969
- };
1970
- i.push(c);
1971
- } else {
1972
- let c = this.record.data.syssavedqueryfields.filter((m) => a.id == (m.type == 1 ? m.fieldid : m.joinfieldid + "-" + m.fieldid))[0];
1973
- c.width = a.num, c.order = r, c.name = a.alias == "" ? a.columncomment : a.alias, c.orderconfig = a.orderconfig ? 1 : 0, c.gatherconfig = a.gatherconfig ? 1 : 0, c.maxtagcount = a.maxtagcount ? a.maxtagcount : 2, c.align = u, i.push(c);
1974
- }
1975
- }), this.record.data.syssavedqueryfields.forEach((a) => {
1976
- let r = a.type == 1 ? a.fieldid : a.joinfieldid + "-" + a.fieldid;
1977
- this.isCheckedFilters(r, this.list) && (a.statecodes = 0, i.push(a));
1978
- }), this.queryList.forEach((a, r) => {
1979
- if (this.isChecked(a.id, this.record.data.syssavedqueryquerys)) {
1980
- let d = {
1981
- id: 0,
1982
- querytype: a.effecttype == "fk" ? 2 : 1,
1983
- name: a.columncomment,
1984
- fieldid: a.id,
1985
- jointableid: a.codegenid,
1986
- joinfieldid: a.id,
1987
- order: r,
1988
- displaystyle: a.displaystyle,
1989
- options: JSON.stringify(a.options)
1990
- };
1991
- e.push(d);
1992
- } else {
1993
- let d = this.record.data.syssavedqueryquerys.filter((u) => u.fieldid == a.id)[0];
1994
- d.order = r, d.displaystyle = a.displaystyle, e.push(d);
1995
- }
1996
- }), this.record.data.syssavedqueryquerys.forEach((a) => {
1997
- this.isCheckedFilters(a.fieldid, this.queryList) && (a.statecodes = 0, e.push(Object.assign({ ...a }, { options: "" })));
1998
- }), this.ruleFormData.sortOneField !== "" && t.push({
1999
- sortField: this.ruleFormData.sortOneField,
2000
- sortOrder: this.ruleFormData.sortOneOrder
2001
- }), this.ruleFormData.sortTwoField !== "" && t.push({
2002
- sortField: this.ruleFormData.sortTwoField,
2003
- sortOrder: this.ruleFormData.sortTwoOrder
2004
- });
2005
- let n = this.filterList.list[0];
2006
- this.filterList.list.forEach((a) => {
2007
- l += a.list.length;
2008
- });
2009
- let s = n && this.filterList.list.length === 1 && n.referencefiled === "" && n.referencetable === "" && n.list.length > 0 && l === 0 ? Object.assign(n, {
2010
- columnid: 0
2011
- }) : this.filterList;
2012
- const o = Object.assign(
2013
- { ...this.record.data },
2014
- {
2015
- syscodegenid: this.table.id,
2016
- name: this.ruleFormData.name,
2017
- baseview: this.ruleFormData.viewId,
2018
- description: this.ruleFormData.explain,
2019
- frozencolumn: this.ruleFormData.num,
2020
- viewname: this.ruleFormData.viewName,
2021
- order: this.ruleFormData.order,
2022
- isdoubleclick: this.ruleFormData.isDoubleClick,
2023
- isdefault: 1,
2024
- syssavedqueryfields: [...i],
2025
- syssavedqueryquerys: [...e],
2026
- filterconfig: JSON.stringify(s),
2027
- defaultsort: JSON.stringify(t),
2028
- viewtree: JSON.stringify({}),
2029
- isviewtree: 0,
2030
- ruleconfig: JSON.stringify(this.rulesList)
2031
- }
2032
- );
2033
- P(o).then((a) => {
2034
- a.success ? (this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25:") + a.message), this.confirmLoading = !1;
2035
- });
2036
- },
2037
- handleSubmit() {
2038
- if (this.record.type == 1) {
2039
- this.$emit("okColumn", {
2040
- sysviewfields: this.list,
2041
- frozencolumn: this.ruleFormData.num
2042
- }), this.closed();
2043
- return;
2044
- }
2045
- this.confirmLoading = !0, this.$refs.ruleForm.validate((i) => {
2046
- if (i) {
2047
- if ({ ...this.ruleFormData }, this.list.length === 0) {
2048
- this.$message.error(this.$i18nt("gd.view.addColumnTip", "\u8BF7\u914D\u7F6E\u663E\u793A\u5217")), this.confirmLoading = !1;
2049
- return;
2050
- }
2051
- if (this.queryList.filter((t) => t.options && !t.options.fieldFiltering).length > 0) {
2052
- this.$message.error("\u8BF7\u8865\u5145\u67E5\u8BE2\u6761\u4EF6\u5B57\u6BB5\u6570\u636E\uFF01"), this.confirmLoading = !1;
2053
- return;
2054
- }
2055
- this.record.type == 3 ? this.edit() : this.add();
2056
- } else
2057
- this.confirmLoading = !1;
2058
- });
2059
- },
2060
- init() {
2061
- this.confirmLoading = !0, Promise.all([this.getTableList(), this.getViewList(), this.getViewDetail()]).then((i) => {
2062
- let e = [], t = [], l = this.viewDetail.sysviewqueries ? this.viewDetail.sysviewqueries : [];
2063
- this.tableFieldList.forEach((s) => {
2064
- if (!this.isChecked(s.id, this.record.sysviewfields)) {
2065
- let o = this.record.sysviewfields.filter((a) => a.fieldid == s.id)[0];
2066
- if (o && o.type == 1) {
2067
- let a = this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment), r = this.$i18nt(`Dynamics.${o.transkey}`, o.name), d = o.align ? o.align.split("&") : [];
2068
- const u = Object.assign(
2069
- { ...s },
2070
- {
2071
- order: o.order,
2072
- num: o.width,
2073
- aliastranskey: o.transkey ? o.transkey : null,
2074
- alias: a === r ? "" : r,
2075
- orderconfig: o.orderconfig == 1,
2076
- gatherconfig: o.gatherconfig == 1,
2077
- columnname: s.columnname,
2078
- codegenid: s.codegenid,
2079
- maxtagcount: o.maxtagcount ? o.maxtagcount : 2,
2080
- fkrelations: `${a} -- ${s.columnname}`,
2081
- fkEffectType: s.effecttype,
2082
- transkey: s.transkey,
2083
- operate: "edit",
2084
- aliasold: r,
2085
- align: d[0] ? d[0] : "left",
2086
- visible: d[1] ? d[1] == 1 : !0,
2087
- displaymode: d[2] ? d[2] : "none",
2088
- displayprefix: d[3] ? d[3] : "none",
2089
- preview: d[4] ? d[4] === "true" : !0,
2090
- download: d[5] ? d[5] === "true" : !0,
2091
- format: d[6] ? d[6] : String(s.fieldformat),
2092
- hyperlink: d[7] ? d[7] === "true" : !1,
2093
- precision: d[8] !== void 0 ? d[8] : s.filedsize
2094
- }
2095
- );
2096
- e.push(u);
2097
- }
2098
- }
2099
- if (s.children && s.children.length > 0 && s.children.forEach((o) => {
2100
- if (!this.isChecked(o.id + "-" + s.id, this.record.sysviewfields)) {
2101
- let a = this.record.sysviewfields.filter((r) => (r.type == 2 ? r.joinfieldid + "-" + r.fieldid : r.fieldid) == o.id + "-" + s.id)[0];
2102
- if (a) {
2103
- let r = this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment), d = this.$i18nt(`Dynamics.${o.transkey}`, o.columncomment), u = this.$i18nt(`Dynamics.${a.transkey}`, a.name), c = a.align ? a.align.split("&") : [];
2104
- const m = Object.assign(
2105
- { ...o },
2106
- {
2107
- order: a.order,
2108
- num: a.width,
2109
- aliastranskey: a.transkey ? a.transkey : null,
2110
- alias: d === u ? "" : u,
2111
- id: o.id + "-" + s.id,
2112
- orderconfig: a.orderconfig == 1,
2113
- gatherconfig: a.gatherconfig == 1,
2114
- fkrelations: `${r} -- ${s.columnname}`,
2115
- fkEffectType: s.effecttype,
2116
- maxtagcount: a.maxtagcount ? a.maxtagcount : 2,
2117
- transkey: o.transkey,
2118
- operate: "edit",
2119
- aliasold: u,
2120
- align: c[0] ? c[0] : "left",
2121
- visible: c[1] ? c[1] == 1 : !0,
2122
- displaymode: c[2] ? c[2] : "none",
2123
- displayprefix: c[3] ? c[3] : "none",
2124
- preview: c[4] ? c[4] === "true" : !0,
2125
- download: c[5] ? c[5] === "true" : !0,
2126
- format: c[6] ? c[6] : String(o.fieldformat),
2127
- hyperlink: c[7] ? c[7] === "true" : !1,
2128
- precision: c[8] !== void 0 ? c[8] : o.filedsize
2129
- }
2130
- );
2131
- e.push(m);
2132
- }
2133
- }
2134
- }), !this.isChecked(s.id, l)) {
2135
- let o = l.filter((r) => r.fieldid == s.id)[0];
2136
- const a = Object.assign(
2137
- { ...s },
2138
- {
2139
- order: o.order,
2140
- displaystyle: o.displaystyle !== void 0 ? o.displaystyle : 0,
2141
- children: null,
2142
- options: Object.assign({ ...o.options }, { fieldFiltering: !0, columnName: s.columnName, effectType: s.effectType })
2143
- }
2144
- );
2145
- t.push(a);
2146
- }
2147
- });
2148
- const n = y(this.record.type == 3 ? e : this.record.sysviewfields);
2149
- t = y(t), this.list = [...n], this.queryList = [...t], this.filterList = this.record.sysviewfilters ? this.record.sysviewfilters : {}, this.confirmLoading = !1, this.$refs.viewList.init(this.list), this.showItem && this.$refs.viewQuery.init(this.queryList);
2150
- });
2151
- },
2152
- open(i) {
2153
- this.record = i, this.list = [], this.lodaData = {}, this.queryList = [], this.buttonRule = [], this.ruleFormData = {
2154
- num: i.frozencolumn,
2155
- name: i.name ? i.name : "",
2156
- explain: i.explain ? i.explain : "",
2157
- type: "1",
2158
- viewName: i.viewname ? i.viewname : g(8, !1),
2159
- isDefault: 0,
2160
- isViewTree: !1,
2161
- order: i.order ? i.order : 100,
2162
- sortOneField: "",
2163
- sortOneOrder: "asc",
2164
- sortTwoField: "",
2165
- sortTwoOrder: "asc",
2166
- viewId: i.viewid ? i.viewid : i.viewlistdata && i.viewlistdata.length > 0 ? i.viewlistdata[0].id : "",
2167
- transKey: i.transkey ? i.transkey : null,
2168
- isDoubleClick: i.isdoubleclick !== void 0 ? i.isdoubleclick : 1
2169
- }, this.visible = !0, this.$nextTick(() => {
2170
- this.filterList = JSON.parse(JSON.stringify(this.plugFilters)), this.init();
2171
- });
2172
- },
2173
- getViewDetail() {
2174
- return this.ruleFormData.viewId === "" ? new Promise((i, e) => {
2175
- i();
2176
- }) : _({
2177
- id: this.ruleFormData.viewId
2178
- }).then((i) => {
2179
- if (i.success) {
2180
- let e = i.data.sysviewqueries ? i.data.sysviewqueries : [];
2181
- e.forEach((s, o) => {
2182
- if (!s.options)
2183
- e[o].options = {
2184
- effectType: "",
2185
- fieldFormat: "",
2186
- displayStyle: 0,
2187
- defaultValue: "",
2188
- defaultValueList: [],
2189
- filter: [],
2190
- hidden: !1,
2191
- required: !1,
2192
- openWidth: 80,
2193
- widthUnit: "%",
2194
- quick: !1,
2195
- labelWidth: 120,
2196
- defaultInterval: [
2197
- {
2198
- type: "interval",
2199
- value: ""
2200
- },
2201
- {
2202
- type: "equal",
2203
- value: ""
2204
- }
2205
- ]
2206
- };
2207
- else {
2208
- const a = typeof s.options == "string" ? JSON.parse(s.options) : s.options;
2209
- e[o].options = Object.assign(a, {
2210
- fieldFormat: a.fieldFormat !== void 0 ? a.fieldFormat : "2",
2211
- openWidth: a.openWidth !== void 0 ? a.openWidth : 80,
2212
- widthUnit: a.widthUnit !== void 0 ? a.widthUnit : "%",
2213
- labelWidth: a.labelWidth !== void 0 ? a.labelWidth : 120
2214
- });
2215
- }
2216
- });
2217
- let t = Object.assign(i.data, {
2218
- sysviewqueries: []
2219
- }), l = [], n = [];
2220
- this.record.type == 2 ? (Object.assign(t, {
2221
- sysviewqueries: [...e]
2222
- }), l = i.data.ruleconfig ? JSON.parse(i.data.ruleconfig) : [], n = i.data.defaultsort ? JSON.parse(i.data.defaultsort) : []) : this.record.type == 3 && (Object.assign(t, {
2223
- ...this.record.data
2224
- }), l = this.record.data && this.record.data.ruleconfig ? JSON.parse(this.record.data.ruleconfig) : [], n = this.record.data && this.record.data.defaultsort ? JSON.parse(this.record.data.defaultsort) : []), this.viewDetail = t, this.rulesList = [...l], this.defaultSorts = [...n], this.ruleFormData = Object.assign(this.ruleFormData, {
2225
- sortOneField: n[0] ? n[0].sortField : "",
2226
- sortOneOrder: n[0] ? n[0].sortOrder : "asc",
2227
- sortTwoField: n[1] ? n[1].sortField : "",
2228
- sortTwoOrder: n[1] ? n[1].sortOrder : "asc",
2229
- isDoubleClick: i.data.isdoubleclick
2230
- });
2231
- }
2232
- return i.data;
2233
- });
2234
- },
2235
- getViewList() {
2236
- return w({
2237
- sysCodeGenId: this.table.id
2238
- }).then((i) => (this.viewListData = i.data.filter((e) => e.type == 1), i.data));
2239
- },
2240
- getTableList() {
2241
- return D({ codeGenId: this.table.id }).then((i) => (i.code === 200 && (this.tableFieldList = i.data), i));
2242
- },
2243
- toggleFullscreen() {
2244
- this.fullscreen = !this.fullscreen;
2245
- },
2246
- okFilter(i) {
2247
- this.filterList = { ...i };
2248
- },
2249
- selFilter() {
2250
- this.$refs.flowsFilter.init(this.filterList);
2251
- },
2252
- okSelTable(i) {
2253
- this.list = [...i];
2254
- },
2255
- saveQuery(i) {
2256
- this.queryList = [...i];
2257
- },
2258
- saveRules(i) {
2259
- this.rulesList = [...i];
2260
- },
2261
- closed() {
2262
- this.fullscreen = !1, this.visible = !1;
2263
- },
2264
- doEvent(i) {
2265
- let e = i.item.functionName;
2266
- this[e] && this[e]();
2267
- },
2268
- getDictionary(i) {
2269
- return this.$options.filters.dictData(i);
2270
- },
2271
- getsortField(i) {
2272
- const e = this.ruleFormData[i];
2273
- return this.sortField.filter((t) => t.columnName !== e);
2274
- },
2275
- isChecked(i, e) {
2276
- return e.every((t, l, n) => (t.type == 2 ? t.joinfieldid + "-" + t.fieldid : t.fieldid) != i);
2277
- },
2278
- isCheckedFilters(i, e) {
2279
- return e.every((t, l, n) => t.id != i);
2280
- },
2281
- lookupSeled(i) {
2282
- this.ruleFormData.name = i.defaulttext;
2283
- }
2284
- }
2285
- };
2286
- var Ne = function() {
2287
- var e = this, t = e._self._c;
2288
- return t("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(l) {
2289
- e.visible = l;
2290
- }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.title, fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "generator-form" }, [e.visible ? t("div", { staticClass: "view-config", class: e.showItem ? "" : "view-configd" }, [t("viewList", { ref: "viewList", attrs: { tableFieldList: e.tableFieldList, table: e.table, ruleFormData: e.ruleFormData, fullscreen: e.fullscreen, list: e.list }, on: { ok: e.okSelTable } }), e.showItem ? t("viewQuery", { ref: "viewQuery", attrs: { tableFieldList: e.tableFieldList, table: e.table, ruleFormData: e.ruleFormData, fullscreen: e.fullscreen, rulesList: e.rulesList }, on: { okRules: e.saveRules, ok: e.saveQuery } }) : e._e(), e.showItem ? t("div", { staticClass: "config-item config-items" }, [t("div", { staticClass: "t" }, [t("div", { staticClass: "tls" }, [e._v(e._s(e.$i18nt("gd.view.basicInformation", "\u57FA\u7840\u4FE1\u606F")))]), t("el-button", { attrs: { type: "primary", size: "mini" }, on: { click: e.selFilter } }, [e._v(" " + e._s(e.$i18nt("gd.view.filterConditions", "\u8FC7\u6EE4\u6761\u4EF6")) + " ")])], 1), t("div", { staticClass: "b" }, [t("el-form", { ref: "ruleForm", attrs: { "label-width": "110px", "label-position": "left", model: e.ruleFormData, size: "mini", rules: e.rules }, nativeOn: { submit: function(l) {
2291
- l.preventDefault();
2292
- } } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.view.displayName", "\u663E\u793A\u540D\u79F0"), prop: "name" } }, [t("el-input", { directives: [{ name: "show", rawName: "v-show", value: !e.disabled, expression: "!disabled" }], attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: e.disabled }, model: { value: e.ruleFormData.name, callback: function(l) {
2293
- e.$set(e.ruleFormData, "name", l);
2294
- }, expression: "ruleFormData.name" } }), e.record && e.ruleFormData.transKey && e.visible ? t("gd-translation", { ref: "gdTranslation", attrs: { keyI18n: "transKey", recordData: e.ruleFormData, type: 2 }, on: { lookupSeled: e.lookupSeled } }) : e._e()], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.view.viewName", "\u89C6\u56FE\u540D\u79F0"), prop: "viewName" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: e.disabled }, model: { value: e.ruleFormData.viewName, callback: function(l) {
2295
- e.$set(e.ruleFormData, "viewName", l);
2296
- }, expression: "ruleFormData.viewName" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.advancedFind.originalView", "\u7C7B\u578B"), prop: "viewId" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleFormData.viewId, callback: function(l) {
2297
- e.$set(e.ruleFormData, "viewId", l);
2298
- }, expression: "ruleFormData.viewId" } }, e._l(e.viewListData, function(l, n) {
2299
- return t("el-option", { key: l.id, attrs: { value: l.id, label: e.$i18nt(`Dynamics.${l.transKey}`, l.name) } });
2300
- }), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.view.sort", "\u6392\u5E8F"), prop: "order" } }, [t("el-input-number", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), "controls-position": "right", min: 0, step: 1 }, model: { value: e.ruleFormData.order, callback: function(l) {
2301
- e.$set(e.ruleFormData, "order", l);
2302
- }, expression: "ruleFormData.order" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.view.doubleClickEdit", "\u53CC\u51FB\u7F16\u8F91"), prop: "isDoubleClick" } }, [t("div", { staticClass: "tree_config" }, [t("el-switch", { attrs: { "active-value": 1, "inactive-value": 0, "active-color": e.primaryColor }, model: { value: e.ruleFormData.isDoubleClick, callback: function(l) {
2303
- e.$set(e.ruleFormData, "isDoubleClick", l);
2304
- }, expression: "ruleFormData.isDoubleClick" } })], 1)]), t("el-form-item", { attrs: { label: e.$i18nt("gd.view.explain", "\u8BF4\u660E"), prop: "explain" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), type: "textarea", rows: 2 }, model: { value: e.ruleFormData.explain, callback: function(l) {
2305
- e.$set(e.ruleFormData, "explain", l);
2306
- }, expression: "ruleFormData.explain" } })], 1), t("el-divider"), t("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: e.$i18nt("gd.view.sortBy", "\u6392\u5E8F\u4F9D\u636E") } }, [t("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { prop: "sortOneField" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "" }, model: { value: e.ruleFormData.sortOneField, callback: function(l) {
2307
- e.$set(e.ruleFormData, "sortOneField", l);
2308
- }, expression: "ruleFormData.sortOneField" } }, e._l(e.getsortField("sortTwoField"), function(l, n) {
2309
- return t("el-option", { key: l.columnname, attrs: { value: l.columnname, label: e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: l.effecttype } }), t("span", { staticStyle: { "padding-left": "4px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)) + " (" + e._s(l.columnname) + ") ")])], 1);
2310
- }), 1)], 1), t("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { prop: "sortOneOrder" } }, [t("el-radio-group", { model: { value: e.ruleFormData.sortOneOrder, callback: function(l) {
2311
- e.$set(e.ruleFormData, "sortOneOrder", l);
2312
- }, expression: "ruleFormData.sortOneOrder" } }, e._l(e.defaultSortList, function(l) {
2313
- return t("el-radio", { key: l.code, attrs: { label: l.code } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.name)) + " ")]);
2314
- }), 1)], 1)], 1), t("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: e.$i18nt("gd.view.secondBasis", "\u7B2C\u4E8C\u4F9D\u636E") } }, [t("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { prop: "sortTwoField" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "" }, model: { value: e.ruleFormData.sortTwoField, callback: function(l) {
2315
- e.$set(e.ruleFormData, "sortTwoField", l);
2316
- }, expression: "ruleFormData.sortTwoField" } }, e._l(e.getsortField("sortOneField"), function(l, n) {
2317
- return t("el-option", { key: l.columnname, attrs: { value: l.columnname, label: e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: l.effecttype } }), t("span", { staticStyle: { "padding-left": "4px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)) + " (" + e._s(l.columnname) + ") ")])], 1);
2318
- }), 1)], 1), t("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { prop: "sortTwoOrder" } }, [t("el-radio-group", { model: { value: e.ruleFormData.sortTwoOrder, callback: function(l) {
2319
- e.$set(e.ruleFormData, "sortTwoOrder", l);
2320
- }, expression: "ruleFormData.sortTwoOrder" } }, e._l(e.defaultSortList, function(l) {
2321
- return t("el-radio", { key: l.code, attrs: { label: l.code } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.name)) + " ")]);
2322
- }), 1)], 1)], 1)], 1)], 1)]) : e._e()], 1) : e._e()]), e.visible ? t("FlowsFilter", { ref: "flowsFilter", attrs: { type: 2, table: e.table }, on: { ok: e.okFilter } }) : e._e()], 2);
2323
- }, Ve = [], Ee = /* @__PURE__ */ f(
2324
- Oe,
2325
- Ne,
2326
- Ve,
2327
- !1,
2328
- null,
2329
- "1b29651c",
2330
- null,
2331
- null
2332
- );
2333
- const F = Ee.exports, lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2334
- __proto__: null,
2335
- default: F
2336
- }, Symbol.toStringTag, { value: "Module" }));
2337
- const qe = {
2338
- props: {
2339
- showTitle: {
2340
- type: Boolean,
2341
- default: !0
2342
- },
2343
- height: {
2344
- type: Number,
2345
- default: 400
2346
- }
2347
- },
2348
- data() {
2349
- return {
2350
- buttons: [
2351
- {
2352
- displayName: '\u7EC4\u5408"\u548C"',
2353
- functionName: "mergeAnd",
2354
- show: !0,
2355
- icon: "el-icon-connection",
2356
- transKey: "gd.filter.ands",
2357
- tipI18n: "gd.filter.andsTip",
2358
- tip: "\u4F7F\u7528AND\u5C06\u67E5\u8BE2\u884C\u7EC4\u5408\u5728\u4E00\u8D77\uFF0C\u7ED3\u679C\u5C06\u4EC5\u5305\u542B\u5339\u914D\u6240\u6709\u7EC4\u5408\u884C\u7684\u8BB0\u5F55\u6216\u64CD\u4F5C",
2359
- btnType: "tooltip"
2360
- },
2361
- {
2362
- displayName: '\u7EC4\u5408"\u6216"',
2363
- functionName: "mergeOr",
2364
- show: !0,
2365
- icon: "el-icon-connection",
2366
- transKey: "gd.filter.ors",
2367
- tipI18n: "gd.filter.orsTip",
2368
- tip: "\u4F7F\u7528OR\u5C06\u67E5\u8BE2\u884C\u7EC4\u5408\u5728\u4E00\u8D77\uFF0C\u7ED3\u679C\u5C06\u4EC5\u5305\u542B\u5339\u914D\u6240\u6709\u7EC4\u5408\u884C\u7684\u8BB0\u5F55\u6216\u64CD\u4F5C",
2369
- btnType: "tooltip"
2370
- },
2371
- {
2372
- displayName: "\u6E05\u7A7A",
2373
- functionName: "empty",
2374
- show: !0,
2375
- icon: "el-icon-delete",
2376
- transKey: "gd.btn.empty",
2377
- btnType: "danger"
2378
- },
2379
- {
2380
- displayName: "\u65B0\u5EFA",
2381
- functionName: "newlyBuild",
2382
- show: !0,
2383
- transKey: "gd.advancedFind.add",
2384
- icon: "el-icon-plus"
2385
- },
2386
- {
2387
- displayName: "\u7F16\u8F91\u5217",
2388
- functionName: "editColumn",
2389
- show: !0,
2390
- transKey: "gd.advancedFind.editColumn",
2391
- icon: "el-icon-edit"
2392
- },
2393
- {
2394
- displayName: "\u7F16\u8F91\u5C5E\u6027",
2395
- functionName: "editAttribute",
2396
- show: !1,
2397
- icon: "el-icon-edit",
2398
- transKey: "gd.advancedFind.editProperties"
2399
- },
2400
- {
2401
- displayName: "\u53E6\u5B58\u4E3A",
2402
- functionName: "edit",
2403
- icon: "el-icon-plus",
2404
- show: !0,
2405
- transKey: "gd.advancedFind.anotherSave"
2406
- }
2407
- ],
2408
- ruleFormData: {
2409
- sysCodeGenId: "",
2410
- viewId: ""
2411
- },
2412
- spinning: !1,
2413
- visible: !1,
2414
- sysCodeGenId: "",
2415
- sysCodeGenoId: "",
2416
- viewId: "0",
2417
- viewoId: "0",
2418
- viewPersonalData: [],
2419
- viewListData: [],
2420
- loadData: [],
2421
- viewLoading: !1,
2422
- sysViewFilters: {
2423
- referencefiled: "",
2424
- referencetable: "",
2425
- checked: !1,
2426
- columnid: 0,
2427
- columnname: "",
2428
- columntype: "",
2429
- dynamicreferencefield: "",
2430
- dynamicreferencetable: "",
2431
- fieldformat: null,
2432
- fkdata: [],
2433
- id: 0,
2434
- operators: "1",
2435
- optionsdata: [],
2436
- pid: null,
2437
- recordid: null,
2438
- ruleslist: [],
2439
- show: !0,
2440
- tablename: "",
2441
- type: "1",
2442
- value: "",
2443
- values: [],
2444
- list: []
2445
- },
2446
- isAll: !1
2447
- };
2448
- },
2449
- components: { FlowsFilter: b, EditPerson: F },
2450
- computed: {
2451
- getQueryTable() {
2452
- return this.tableLists.filter((i) => i.isquery === 1);
2453
- },
2454
- table() {
2455
- return this.tableLists.filter((i) => i.id === this.sysCodeGenId)[0];
2456
- },
2457
- style() {
2458
- return `min-height:${this.height}px`;
2459
- },
2460
- plugFilters() {
2461
- return {
2462
- referencefiled: "",
2463
- referencetable: this.table.tablename,
2464
- checked: !1,
2465
- columnid: 0,
2466
- columnname: "",
2467
- columntype: "",
2468
- dynamicreferencefield: "",
2469
- dynamicreferencetable: "",
2470
- fieldformat: null,
2471
- fkdata: [],
2472
- id: 0,
2473
- operators: "1",
2474
- optionsdata: [],
2475
- pid: null,
2476
- recordid: null,
2477
- ruleslist: [],
2478
- show: !0,
2479
- tablename: this.table.tablename,
2480
- type: "1",
2481
- value: "",
2482
- values: [],
2483
- list: []
2484
- };
2485
- },
2486
- ...h(["screenHeight", "tableLists"])
2487
- },
2488
- methods: {
2489
- edit() {
2490
- this.openPersonalView();
2491
- },
2492
- editAttribute() {
2493
- let i = this.viewPersonalData.filter((t) => t.id == this.viewId)[0], e = {
2494
- sysviewfilters: i.filterconfig ? JSON.parse(i.filterconfig) : [],
2495
- frozencolumn: i.frozencolumn,
2496
- sysviewfields: i.syssavedqueryfields,
2497
- viewlistdata: [],
2498
- type: 3,
2499
- viewid: i.baseview,
2500
- data: Object.assign(
2501
- {
2502
- ...i
2503
- },
2504
- {
2505
- sysviewqueries: i.syssavedqueryquerys
2506
- }
2507
- ),
2508
- id: i.id,
2509
- order: i.order,
2510
- explain: i.description,
2511
- name: i.name
2512
- };
2513
- this.openPersonalView(e);
2514
- },
2515
- openPersonalView(i) {
2516
- let e = [];
2517
- const t = this.$refs.flowsFilter.sysViewFilters;
2518
- let l = JSON.parse(JSON.stringify(t));
2519
- if (!this.$refs.flowsFilter.isChecked(e)) {
2520
- this.$message.warning(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
2521
- return;
2522
- }
2523
- if (this.viewList.sysviewfields.length == 0) {
2524
- this.$message.warning(this.$i18nt("gd.advancedFind.editColumnTip", "\u8BF7\u7F16\u8F91\u5217!"));
2525
- return;
2526
- }
2527
- let n = Object.assign(
2528
- { ...this.viewList },
2529
- {
2530
- sysviewfilters: l,
2531
- viewlistdata: this.viewListData,
2532
- type: 2
2533
- }
2534
- ), s = this.viewPersonalData.filter((o) => o.id == this.viewId)[0];
2535
- this.viewId != "0" && Object.assign(n, {
2536
- viewid: this.viewId
2537
- }), s && Object.assign(n, {
2538
- viewid: s.baseview,
2539
- data: Object.assign(
2540
- {
2541
- ...s
2542
- },
2543
- {
2544
- sysviewqueries: s.syssavedqueryquerys
2545
- }
2546
- )
2547
- }), i && Object.assign(n, {
2548
- ...i
2549
- }), this.$refs.editPerson.open(n);
2550
- },
2551
- editColumn() {
2552
- this.$refs.editPerson.open(
2553
- Object.assign(
2554
- {
2555
- ...this.viewList
2556
- },
2557
- {
2558
- type: 1
2559
- }
2560
- )
2561
- );
2562
- },
2563
- newlyBuild() {
2564
- let i = this;
2565
- i.isEdit ? this.$confirm(this.$i18nt("gd.https.changeContent", "\u662F\u5426\u653E\u5F03\u66F4\u6539?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2566
- confirmButtonText: this.$i18nt("gd.https.changeOk", "\u786E\u8BA4\u653E\u5F03"),
2567
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2568
- showClose: !1,
2569
- confirmButtonLoading: !1,
2570
- cancelButtonLoading: !1,
2571
- closeOnClickModal: !1,
2572
- type: "warning",
2573
- confirmButtonClass: "el-button--danger",
2574
- customClass: "custom-alert",
2575
- callback: () => {
2576
- i.$refs.refTable.blur();
2577
- },
2578
- beforeClose: (e, t, l) => {
2579
- l(), e === "confirm" && i.newlyBuildOk();
2580
- }
2581
- }) : i.newlyBuildOk();
2582
- },
2583
- newlyBuildOk() {
2584
- this.viewId = "0", this.list = [], this.sysViewFilters = Object.assign(
2585
- {
2586
- ...this.sysViewFilters
2587
- },
2588
- {
2589
- list: []
2590
- }
2591
- ), this.isEdit = !1, this.viewList = {
2592
- frozencolumn: 0,
2593
- sysviewfields: []
2594
- }, this.flowsFilterInit();
2595
- },
2596
- seeResult() {
2597
- return new Promise((i, e) => {
2598
- let t = { statu: !1, data: {} };
2599
- this.spinning && i(t), this.viewId === "" && (this.$message.warning(this.$i18nt("gd.advancedFind.selViewTip", "\u8BF7\u9009\u62E9\u89C6\u56FE!")), i(t));
2600
- let l = [];
2601
- const n = (d) => (d = d.filter((u, c) => (u.list.length > 0 && (u.list = n(u.list)), (u.columntype != "relevant" || u.columntype != "parental") && u.list.length == 0 && l.push(u), u.fkdata !== void 0 && typeof u.fkdata != "string" && (u.fkdata = JSON.stringify(u.fkdata)), u.ruleslist !== void 0 && typeof u.ruleslist != "string" && (u.ruleslist = JSON.stringify(u.ruleslist)), u.value = this.getItemVal(u), !0)), d);
2602
- this.$refs.flowsFilter === void 0 && (this.$message.warning(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E")), i(t));
2603
- const s = this.$refs.flowsFilter.sysViewFilters;
2604
- let o = JSON.parse(JSON.stringify(s));
2605
- n(o.list), this.$refs.flowsFilter.isChecked(l) || (this.$message.warning(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E")), i(t)), this.viewList.sysviewfields.length == 0 && (this.$message.warning(this.$i18nt("gd.advancedFind.editColumnTip", "\u8BF7\u7F16\u8F91\u5217!")), i(t));
2606
- let a = o.list[0], r = a && o.list.length === 1 && a.referencefiled === "" && a.referencetable === "" && a.list.length > 0 ? Object.assign(a, {
2607
- columnid: 0
2608
- }) : o;
2609
- i({
2610
- statu: !0,
2611
- data: {
2612
- tableData: this.table,
2613
- viewList: this.viewList,
2614
- loadData: this.loadData,
2615
- sysViewFilters: r,
2616
- viewId: this.viewId
2617
- }
2618
- });
2619
- });
2620
- },
2621
- setTableNameData(i) {
2622
- const e = i !== "" ? i : this.tableLists[0].id, t = this.getQueryTable.filter((l) => l.id == e)[0];
2623
- this.showTitle && t && (this.sysCodeGenId = t.id, this.sysCodeGenoId = t.id, this.selectTable(t.id)), this.visible = !!(t && this.showTitle);
2624
- },
2625
- selectTable(i) {
2626
- let e = this;
2627
- if (e.isEdit) {
2628
- this.$confirm(this.$i18nt("gd.https.changeContent", "\u662F\u5426\u653E\u5F03\u66F4\u6539?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2629
- confirmButtonText: this.$i18nt("gd.https.changeOk", "\u786E\u8BA4\u653E\u5F03"),
2630
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2631
- showClose: !1,
2632
- confirmButtonLoading: !1,
2633
- cancelButtonLoading: !1,
2634
- closeOnClickModal: !1,
2635
- type: "warning",
2636
- confirmButtonClass: "el-button--danger",
2637
- customClass: "custom-alert",
2638
- callback: () => {
2639
- e.$refs.refTable.blur();
2640
- },
2641
- beforeClose: (t, l, n) => {
2642
- if (n(), t === "confirm") {
2643
- e.isEdit = !1, e.selectTable(i);
2644
- return;
2645
- }
2646
- e.sysCodeGenId = e.sysCodeGenoId, e.isAll || e.$emit("changeId", e.sysCodeGenoId);
2647
- }
2648
- });
2649
- return;
2650
- }
2651
- return this.isAll || this.$emit("changeId", i), this.sysCodeGenoId = i, this.viewId = "0", this.list = [], this.sysViewFilters = Object.assign(
2652
- { ...this.sysViewFilters },
2653
- {
2654
- list: [],
2655
- referencetable: this.table.tablename,
2656
- tablename: this.table.tablename
2657
- }
2658
- ), this.getTableList(i), this.getPersonalView(i), this.spinning = !0, w({
2659
- sysCodeGenId: i
2660
- }).then((t) => (this.viewListData = this.isAll ? t.data : t.data.filter((l) => l.type != 2 && l.type != 3), this.visible = !0, this.viewList = {
2661
- frozencolumn: 0,
2662
- sysviewfields: []
2663
- }, this.viewLoading = !1, this.spinning = !1, this.flowsFilterInit(), t));
2664
- },
2665
- selectView(i) {
2666
- let e = this;
2667
- if (e.isEdit) {
2668
- this.$confirm(this.$i18nt("gd.https.changeContent", "\u662F\u5426\u653E\u5F03\u66F4\u6539?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2669
- confirmButtonText: this.$i18nt("gd.https.changeOk", "\u786E\u8BA4\u653E\u5F03"),
2670
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2671
- showClose: !1,
2672
- confirmButtonLoading: !1,
2673
- cancelButtonLoading: !1,
2674
- closeOnClickModal: !1,
2675
- type: "warning",
2676
- confirmButtonClass: "el-button--danger",
2677
- customClass: "custom-alert",
2678
- callback: () => {
2679
- e.$refs.refView.blur();
2680
- },
2681
- beforeClose: (t, l, n) => {
2682
- if (n(), t === "confirm") {
2683
- e.isEdit = !1, e.selectView(i);
2684
- return;
2685
- }
2686
- e.viewId = e.viewoId;
2687
- }
2688
- });
2689
- return;
2690
- }
2691
- if (this.viewoId = i, this.viewId = i, i == "0") {
2692
- this.list = [], this.sysViewFilters = Object.assign(
2693
- {
2694
- ...this.sysViewFilters
2695
- },
2696
- {
2697
- list: []
2698
- }
2699
- ), this.viewList = {
2700
- frozencolumn: 0,
2701
- sysviewfields: []
2702
- }, this.flowsFilterInit();
2703
- return;
2704
- }
2705
- this.spinning = !0, this.sysViewDetails(i).then((t) => {
2706
- this.getFilterConfig(t);
2707
- let l = [];
2708
- this.loadData.forEach((n) => {
2709
- if (!this.isChecked(n.id, t.data.sysviewfields)) {
2710
- let s = t.data.sysviewfields.filter((o) => o.fieldid == n.id)[0];
2711
- if (s && s.type == 1) {
2712
- let o = {
2713
- ...n
2714
- }, a = this.$i18nt(`Dynamics.${n.transkey}`, n.columncomment), r = this.$i18nt(`Dynamics.${s.transkey}`, s.name);
2715
- o.order = s.order, o.num = s.width, o.aliastranskey = s.transkey ? s.transkey : null, o.alias = a === r ? "" : r, o.orderconfig = s.orderconfig == 1, o.columnname = s.field ? s.field.columnname : n.columnname, o.codegenid = s.field ? s.field.codegenid : n.codegenid, o.gatherconfig = s.gatherconfig == 1, o.maxtagcount = s.maxtagcount ? s.maxtagcount : 2, o.fkrelations = `${a} -- ${n.columnname}`, o.fkEffectType = n.effecttype, o.transkey = n.transkey, o.operate = "edit", o.aliasold = r;
2716
- let d = s.align ? s.align.split("&") : [];
2717
- o.align = d[0] ? d[0] : "left", o.visible = d[1] ? d[1] == 1 : !0, o.displaymode = d[2] ? d[2] : "none", o.displayprefix = d[3] ? d[3] : "none", o.preview = d[4] ? d[4] === "true" : !0, o.download = d[5] ? d[5] === "true" : !0, o.format = d[6] ? d[6] : String(n.fieldformat), o.hyperlink = d[7] ? d[7] === "true" : !1, o.precision = d[8] !== void 0 ? d[8] : n.filedsize, l.push(o);
2718
- }
2719
- }
2720
- n.children && n.children.length > 0 && n.children.forEach((s) => {
2721
- if (!this.isChecked(s.id + "-" + n.id, t.data.sysviewfields)) {
2722
- let o = t.data.sysviewfields.filter((a) => (a.type == 2 ? a.joinfieldid + "-" + a.fieldid : a.fieldid) == s.id + "-" + n.id)[0];
2723
- if (o) {
2724
- let a = {
2725
- ...s
2726
- }, r = this.$i18nt(`Dynamics.${n.transkey}`, n.columncomment), d = this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment), u = this.$i18nt(`Dynamics.${o.transkey}`, o.name);
2727
- a.order = o.order, a.num = o.width, a.aliastranskey = o.transkey ? o.transkey : null, a.alias = d === u ? "" : u, a.id = a.id + "-" + n.id, a.orderconfig = o.orderconfig == 1, a.gatherconfig = o.gatherconfig == 1, a.fkrelations = `${r} -- ${n.columnname}`, a.fkEffectType = n.effecttype, a.maxtagcount = o.maxtagcount ? o.maxtagcount : 2, a.transkey = s.transkey, a.operate = "edit", a.aliasold = u;
2728
- let c = o.align ? o.align.split("&") : [];
2729
- a.align = c[0] ? c[0] : "left", a.visible = c[1] ? c[1] == 1 : !0, a.displaymode = c[2] ? c[2] : "none", a.displayprefix = c[3] ? c[3] : "none", a.preview = c[4] ? c[4] === "true" : !0, a.download = c[5] ? c[5] === "true" : !0, a.format = c[6] ? c[6] : String(s.fieldformat), a.hyperlink = c[7] ? c[7] === "true" : !1, a.precision = c[8] !== void 0 ? c[8] : s.filedsize, l.push(a);
2730
- }
2731
- }
2732
- });
2733
- }), l = y(l), this.viewList = {
2734
- frozencolumn: t.data.frozencolumn,
2735
- sysviewfields: [...l]
2736
- };
2737
- });
2738
- },
2739
- sysViewDetails(i) {
2740
- let e = this.viewPersonalData.filter((l) => l.id == i)[0], t = this.showTitle ? ["\u7F16\u8F91\u5C5E\u6027"] : [];
2741
- return e != null ? (this.baseShowBtns(t, 2), new Promise((l, n) => {
2742
- l({
2743
- data: Object.assign(
2744
- {
2745
- ...e
2746
- },
2747
- {
2748
- sysviewfields: e.syssavedqueryfields
2749
- }
2750
- )
2751
- });
2752
- })) : (this.baseHideBtns(t, 2), _({
2753
- id: i
2754
- }).then((l) => l));
2755
- },
2756
- getFilterConfig(i) {
2757
- const e = (a) => (a = a.filter((r, d) => {
2758
- if (r.type = String(r.type), r.operators = String(r.operators), r.list.length > 0)
2759
- r.list = e(r.list);
2760
- else {
2761
- let u = this.getItemVal(r, 2);
2762
- r.values = typeof u == "object" ? u.map((c) => Number(c)) : [];
2763
- }
2764
- return r.fkdata && typeof r.fkdata == "string" && (r.fkdata = JSON.parse(r.fkdata)), r.ruleslist && typeof r.ruleslist == "string" && (r.ruleslist = JSON.parse(r.ruleslist)), r.recordid === void 0 && (r.columntype == "relevant" || r.columntype == "parental") && (r.recordid = r.recordid + "@" + r.columntype), r.show === void 0 && (r.show = !0, r.checked = !1), !0;
2765
- }), a);
2766
- let l = {
2767
- ...i.data.filterconfig ? JSON.parse(i.data.filterconfig) : this.plugFilters
2768
- }, n = e(l.pid === null ? l.list : [l]);
2769
- this.list = n;
2770
- let s = l.pid === null ? l : this.plugFilters, o = Object.assign(
2771
- {
2772
- ...s
2773
- },
2774
- {
2775
- ...this.sysViewFilters
2776
- },
2777
- {
2778
- list: n,
2779
- referencetable: this.table.tablename,
2780
- tablename: this.table.tablename
2781
- }
2782
- );
2783
- if (this.sysViewFilters = o, this.flowsFilterInit(), o.list.length === 0) {
2784
- this.spinning = !1;
2785
- return;
2786
- }
2787
- setTimeout(() => {
2788
- this.spinning = !1;
2789
- }, 800);
2790
- },
2791
- getItemVal(i, e = 1) {
2792
- let t = "";
2793
- const l = String(i.operators);
2794
- if (["fk", "about"].includes(i.columntype)) {
2795
- let n = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
2796
- t = ["3", "4"].includes(l) ? n : i.value === "" ? "" : Number(i.value);
2797
- } else if (i.columntype == "user") {
2798
- let n = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
2799
- t = ["3", "4"].includes(l) ? n : i.value === "" ? "" : Number(i.value);
2800
- } else if (i.columntype == "participants") {
2801
- let n = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
2802
- t = ["3", "4"].includes(l) ? n : i.value === "" ? "" : Number(i.value);
2803
- } else
2804
- t = i.value;
2805
- return t;
2806
- },
2807
- getTableList(i) {
2808
- return D({
2809
- codeGenId: i
2810
- }).then((e) => {
2811
- this.loadData = e.data;
2812
- });
2813
- },
2814
- getPersonalView(i) {
2815
- B({
2816
- codeGenId: i || this.sysCodeGenId
2817
- }).then((e) => {
2818
- e.success && (this.viewPersonalData = e.data);
2819
- });
2820
- },
2821
- changeEdit() {
2822
- this.isEdit = !0;
2823
- },
2824
- flowsFilterInit() {
2825
- this.$nextTick(() => {
2826
- this.$refs.flowsFilter && this.$refs.flowsFilter.initComponents(this.sysViewFilters);
2827
- });
2828
- },
2829
- viewOk(i) {
2830
- this.isEdit = !0, this.viewList = {
2831
- ...i
2832
- };
2833
- },
2834
- configOk() {
2835
- this.getPersonalView();
2836
- },
2837
- baseHideBtns(i, e = 1) {
2838
- let t = [...this.buttons];
2839
- t.map((l) => (e === 1 ? l.show = i.includes(l.id) ? !1 : l.show : l.show = i.includes(l.displayName) ? !1 : l.show, l)), this.buttons = [...t];
2840
- },
2841
- baseShowBtns(i, e = 1) {
2842
- let t = [...this.buttons];
2843
- t.map((l) => (e === 1 ? l.show = i.includes(l.id) ? !0 : l.show : l.show = i.includes(l.displayName) ? !0 : l.show, l)), this.buttons = [...t];
2844
- },
2845
- isChecked(i, e) {
2846
- return e.every((t, l, n) => (t.type == 2 ? t.joinfieldid + "-" + t.fieldid : t.fieldid) != i);
2847
- },
2848
- doEvent(i) {
2849
- let e = i.item.functionName;
2850
- if (["mergeAnd", "mergeOr", "empty"].includes(e)) {
2851
- this.$refs.flowsFilter[e]();
2852
- return;
2853
- }
2854
- this[e]();
2855
- }
2856
- },
2857
- created() {
2858
- }
2859
- };
2860
- var Re = function() {
2861
- var e = this, t = e._self._c;
2862
- return t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.spinning, expression: "spinning" }], staticClass: "advanced-find-setting", style: e.style }, [t("div", { staticClass: "setting-navs" }, [t("div", { staticClass: "tab-btnmore" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.buttons }, on: { functionName: e.doEvent } })], 1), t("el-form", { ref: "ruleForm", attrs: { model: e.ruleFormData, "label-width": "120px" }, nativeOn: { submit: function(l) {
2863
- l.preventDefault();
2864
- } } }, [t("el-row", { attrs: { gutter: 20 } }, [t("el-col", { attrs: { span: 8 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.advancedFind.lookup", "\u67E5\u627E") } }, [t("el-select", { ref: "refTable", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "" }, on: { change: e.selectTable }, model: { value: e.sysCodeGenId, callback: function(l) {
2865
- e.sysCodeGenId = l;
2866
- }, expression: "sysCodeGenId" } }, e._l(e.getQueryTable, function(l) {
2867
- return t("el-option", { key: l.id, attrs: { label: e.$i18nt(`Dynamics.${l.transkey}`, l.busname), value: l.id } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.busname)) + " " + e._s(l.tablename) + " ")]);
2868
- }), 1)], 1)], 1), t("el-col", { attrs: { span: 8 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.advancedFind.savedViews", "\u5DF2\u4FDD\u5B58\u7684\u89C6\u56FE") } }, [t("el-select", { ref: "refView", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "" }, on: { change: e.selectView }, model: { value: e.viewId, callback: function(l) {
2869
- e.viewId = l;
2870
- }, expression: "viewId" } }, [t("el-option", { attrs: { value: "0", label: e.$i18nt("gd.advancedFind.new", "[\u65B0\u5EFA]") } }), t("el-option-group", { staticStyle: { "font-size": "18px" }, attrs: { label: e.$i18nt("gd.advancedFind.systemView", "\u7CFB\u7EDF\u89C6\u56FE") } }, [e._l(e.viewListData, function(l, n) {
2871
- return [t("el-option", { attrs: { value: l.id, label: e.$i18nt(`Dynamics.${l.transkey}`, l.name) } })];
2872
- })], 2), e.viewPersonalData.length > 0 ? t("el-option-group", { staticStyle: { "font-size": "14px" }, attrs: { label: e.$i18nt("gd.menu.personalView", "\u4E2A\u4EBA\u89C6\u56FE") } }, [e._l(e.viewPersonalData, function(l, n) {
2873
- return [t("el-option", { attrs: { value: l.id, label: e.$i18nt(`Dynamics.${l.transkey}`, l.name) } })];
2874
- })], 2) : e._e()], 1)], 1)], 1)], 1)], 1)], 1), e.visible ? t("div", { staticClass: "setting-conter" }, [t("FlowsFilter", { ref: "flowsFilter", attrs: { type: 2, table: e.table, mode: "div" }, on: { change: e.changeEdit } })], 1) : e._e(), t("EditPerson", { ref: "editPerson", attrs: { table: e.table }, on: { okColumn: e.viewOk, ok: e.configOk } })], 1);
2875
- }, Ke = [], je = /* @__PURE__ */ f(
2876
- qe,
2877
- Re,
2878
- Ke,
2879
- !1,
2880
- null,
2881
- "04800c7f",
2882
- null,
2883
- null
2884
- );
2885
- const ze = je.exports;
2886
- const Me = {
2887
- name: "GdAdvancedFind",
2888
- props: {
2889
- showTitle: {
2890
- type: Boolean,
2891
- default: !0
2892
- },
2893
- isSelect: {
2894
- type: Boolean,
2895
- default: !1
2896
- }
2897
- },
2898
- components: {
2899
- settings: ze,
2900
- result: () => import("./result.19351665.mjs"),
2901
- viewList: () => import("./viewList.5a25c4b6.mjs")
2902
- },
2903
- data() {
2904
- return {
2905
- sysCodeGenId: "",
2906
- height: 0,
2907
- activeKeys: 1,
2908
- activeKey: "1",
2909
- disabled: !1,
2910
- detail: {
2911
- sysViewFilters: [],
2912
- viewList: {
2913
- frozenColumn: 0,
2914
- sysViewFields: []
2915
- }
2916
- }
2917
- };
2918
- },
2919
- watch: {
2920
- screenHeight() {
2921
- this.getHeight();
2922
- }
2923
- },
2924
- computed: {
2925
- getHig() {
2926
- const i = this.showTitle ? 88 : 56;
2927
- return this.height - i - 24;
2928
- },
2929
- style() {
2930
- return `min-height:${this.height == 0 ? 600 : this.height}px`;
2931
- },
2932
- ...h(["screenHeight", "seekTableId"])
2933
- },
2934
- methods: {
2935
- beforeLeave(i, e) {
2936
- return console.log(i, e), !1;
2937
- },
2938
- changeId(i) {
2939
- this.sysCodeGenId = i;
2940
- },
2941
- change(i) {
2942
- if (i === "3")
2943
- return new Promise((e, t) => {
2944
- this.$refs.settings.seeResult().then((l) => {
2945
- l.statu ? (this.seeResult(l.data), e()) : t();
2946
- });
2947
- });
2948
- this.$refs.result.show = !1, i === "2" && this.$nextTick(() => {
2949
- setTimeout(() => {
2950
- this.$refs.viewList.open({
2951
- sysCodeGenId: this.$refs.settings.sysCodeGenId
2952
- });
2953
- }, 0);
2954
- }), this.disabled = i === "2", this.$refs.result, this.$emit("change", i);
2955
- },
2956
- seeResult(i) {
2957
- this.detail = i, this.$emit("change", 3), this.$nextTick(() => {
2958
- setTimeout(() => {
2959
- this.$refs.result.init(i);
2960
- }, 0);
2961
- });
2962
- },
2963
- init() {
2964
- this.$nextTick(() => {
2965
- this.getHeight();
2966
- const i = this.seekTableId ? this.seekTableId : "";
2967
- this.$refs.settings && this.$refs.settings.setTableNameData(i);
2968
- });
2969
- },
2970
- getHeight() {
2971
- const i = document.getElementById("gd-layout-head-height"), e = i ? i.offsetHeight : 0, t = 12;
2972
- this.height = this.screenHeight - e - t;
2973
- }
2974
- },
2975
- created() {
2976
- this.init();
2977
- }
2978
- };
2979
- var Pe = function() {
2980
- var e = this, t = e._self._c;
2981
- return t("div", { staticClass: "gd-advanced-find", style: e.style }, [e.showTitle ? t("div", { staticClass: "advanced-find-title" }, [e._v(" " + e._s(e.$i18nt("gd.menu.menuAdvancedFind", "\u9AD8\u7EA7\u67E5\u627E")) + " ")]) : e._e(), t("el-tabs", { attrs: { type: "card", "before-leave": e.change }, model: { value: e.activeKey, callback: function(l) {
2982
- e.activeKey = l;
2983
- }, expression: "activeKey" } }, [t("el-tab-pane", { attrs: { label: e.$i18nt("gd.advancedFind.basicSettings", "\u57FA\u672C\u8BBE\u7F6E"), name: "1" } }, [t("settings", { ref: "settings", attrs: { showTitle: e.showTitle, height: e.getHig }, on: { changeId: e.changeId } })], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.advancedFind.savedViews", "\u4FDD\u5B58\u7684\u89C6\u56FE"), name: "2" } }, [t("viewList", { ref: "viewList", attrs: { showTitle: e.showTitle, height: e.getHig } })], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.advancedFind.query", "\u67E5\u8BE2\u7ED3\u679C"), name: "3", disabled: e.disabled } }, [t("result", { ref: "result", attrs: { showTitle: e.showTitle, height: e.getHig } })], 1)], 1)], 1);
2984
- }, Be = [], Ae = /* @__PURE__ */ f(
2985
- Me,
2986
- Pe,
2987
- Be,
2988
- !1,
2989
- null,
2990
- "8041a336",
2991
- null,
2992
- null
2993
- );
2994
- const v = Ae.exports;
2995
- v.install = function(i) {
2996
- i.component(v.name, v);
2997
- };
2998
- const at = {
2999
- BasicLayout: L,
3000
- BlankLayout: $,
3001
- RouteView: S,
3002
- PageView: T,
3003
- Iframe: O,
3004
- BasicLayoutEmpty: N,
3005
- BasicLayoutTop: V,
3006
- AccountSettings: E,
3007
- BaseSettings: q,
3008
- SecuritySettings: R,
3009
- CustomSettings: K,
3010
- Console: j,
3011
- AdvancedFind: v,
3012
- EchartsManage: A
3013
- }, nt = [
3014
- {
3015
- name: "account",
3016
- pid: 0,
3017
- id: 10028,
3018
- meta: {
3019
- title: "\u4E2A\u4EBA\u9875",
3020
- icon: "user",
3021
- show: !1
3022
- },
3023
- redirect: "/account/center",
3024
- component: "RouteView"
3025
- },
3026
- {
3027
- name: "accountSettings",
3028
- pid: "10028",
3029
- id: "10030",
3030
- meta: {
3031
- title: "\u4E2A\u4EBA\u8BBE\u7F6E",
3032
- hideHeader: !0,
3033
- hideChildren: !0,
3034
- show: !1
3035
- },
3036
- redirect: "/account/settings/base",
3037
- component: "AccountSettings"
3038
- },
3039
- {
3040
- name: "BaseSettings",
3041
- path: "/account/settings/base",
3042
- pid: 10030,
3043
- id: 10031,
3044
- meta: {
3045
- title: "\u57FA\u672C\u8BBE\u7F6E",
3046
- show: !1,
3047
- transKeyd: "gd.account.basicSettings"
3048
- },
3049
- component: "BaseSettings",
3050
- transKeyd: "gd.account.basicSettings"
3051
- },
3052
- {
3053
- name: "SecuritySettings",
3054
- path: "/account/settings/security",
3055
- pid: 10030,
3056
- id: 10032,
3057
- meta: {
3058
- title: "\u5B89\u5168\u8BBE\u7F6E",
3059
- show: !1,
3060
- transKeyd: "gd.account.securitySetting"
3061
- },
3062
- component: "SecuritySettings",
3063
- transKeyd: "gd.account.securitySetting"
3064
- },
3065
- {
3066
- name: "CustomSettings",
3067
- path: "/account/settings/custom",
3068
- pid: 10030,
3069
- id: 10033,
3070
- meta: {
3071
- title: "\u4E2A\u6027\u5316\u8BBE\u7F6E",
3072
- show: !1,
3073
- transKeyd: "gd.account.personalization"
3074
- },
3075
- component: "CustomSettings",
3076
- transKeyd: "gd.account.personalization"
3077
- },
3078
- {
3079
- name: "Console",
3080
- path: "/welcome",
3081
- pid: 0,
3082
- id: 183183,
3083
- meta: {
3084
- title: "\u9996\u9875",
3085
- show: !1,
3086
- transKeyd: "gd.menu.home"
3087
- },
3088
- component: "Console",
3089
- transKeyd: "gd.menu.home"
3090
- },
3091
- {
3092
- name: "platformapps",
3093
- path: "/platformapps",
3094
- pid: 0,
3095
- id: 183184,
3096
- meta: {},
3097
- component: "PageView",
3098
- redirect: "/platform/application"
3099
- },
3100
- {
3101
- name: "platformapplications",
3102
- path: "/platform/application",
3103
- pid: 183184,
3104
- id: 183185,
3105
- meta: {
3106
- title: "\u5E94\u7528",
3107
- show: !1,
3108
- transKeyd: "gd.menu.home"
3109
- },
3110
- component: "GdApplication",
3111
- transKeyd: "gd.menu.home"
3112
- },
3113
- {
3114
- name: "advancedFind",
3115
- path: "/advancedFind",
3116
- pid: 0,
3117
- id: 18318999,
3118
- meta: {
3119
- title: "\u9AD8\u7EA7\u641C\u7D22",
3120
- show: !1,
3121
- transKeyd: "gd.menu.advancedFind"
3122
- },
3123
- component: "AdvancedFind",
3124
- transKeyd: "gd.menu.advancedFind"
3125
- },
3126
- {
3127
- name: "echartsManage",
3128
- path: "/echartsManage",
3129
- pid: 0,
3130
- id: 18320001,
3131
- meta: {
3132
- title: "\u4E2A\u4EBA\u56FE\u8868\u7BA1\u7406",
3133
- show: !1,
3134
- transKeyd: "gd.menu.echarts"
3135
- },
3136
- component: "EchartsManage",
3137
- transKeyd: "gd.menu.echarts"
3138
- }
3139
- ];
3140
- function ot(i) {
3141
- const {
3142
- title: e,
3143
- target: t,
3144
- icon: l,
3145
- link: n,
3146
- sysviewid: s,
3147
- tableid: o
3148
- } = i.meta || {};
3149
- return {
3150
- title: e,
3151
- icon: l || "",
3152
- target: t,
3153
- link: n,
3154
- viewId: s || "",
3155
- tableId: o || "",
3156
- id: i.id || "",
3157
- transKey: i.transKeyd ? i.transKeyd : i.transkey ? `Dynamics.${i.transkey}` : null,
3158
- viewWeights: i.viewweights ? i.viewweights : "2",
3159
- type: i.type
3160
- };
3161
- }
3162
- export {
3163
- F as E,
3164
- ce as F,
3165
- W as V,
3166
- Le as a,
3167
- nt as b,
3168
- st as c,
3169
- at as d,
3170
- lt as e,
3171
- ot as r
3172
- };