gds-plus-design-vue 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/lib/approvalModel.a26e8ff6.mjs +340 -0
  2. package/lib/approvalModel.cfd81971.js +1 -0
  3. package/lib/btnFunctionName.9aabfed0.js +1 -0
  4. package/lib/btnFunctionName.d08627cb.mjs +254 -0
  5. package/lib/btnRelation.8e608261.mjs +156 -0
  6. package/lib/btnRelation.cb3dc022.js +1 -0
  7. package/lib/businessRules.754cc398.mjs +539 -0
  8. package/lib/businessRules.f41f7035.js +1 -0
  9. package/lib/buttonRule.4483314f.mjs +396 -0
  10. package/lib/buttonRule.645de1d3.js +1 -0
  11. package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
  12. package/lib/chartDisplayRules.fedfefe8.js +1 -0
  13. package/lib/components.chartbi.470b96af.mjs +1798 -0
  14. package/lib/components.chartbi.e9459775.js +8 -0
  15. package/lib/components.coloreditor.affa0400.mjs +1505 -0
  16. package/lib/components.coloreditor.dbec8da6.js +6 -0
  17. package/lib/components.dataassign.39281072.mjs +147 -0
  18. package/lib/components.dataassign.b6a1bffb.js +1 -0
  19. package/lib/components.echarts.95ffc3b3.mjs +811 -0
  20. package/lib/components.echarts.d09e9850.js +4 -0
  21. package/lib/components.exception.11315db5.js +1 -0
  22. package/lib/components.exception.facf9df9.mjs +61 -0
  23. package/lib/components.form.56ea8f98.js +41 -0
  24. package/lib/components.form.a7b3ea37.mjs +7813 -0
  25. package/lib/components.globalheader.0a7ce959.js +1 -0
  26. package/lib/components.globalheader.4a5f7225.mjs +54 -0
  27. package/lib/components.iconselector.0c03cfc7.js +1 -0
  28. package/lib/components.iconselector.251c29b9.mjs +1169 -0
  29. package/lib/components.imgpreview.5546e541.mjs +213 -0
  30. package/lib/components.imgpreview.706a89f0.js +1 -0
  31. package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
  32. package/lib/components.lunccalendar.fe7db238.js +1 -0
  33. package/lib/components.middleware.01601349.js +1 -0
  34. package/lib/components.middleware.f5f4ac0f.mjs +148 -0
  35. package/lib/components.modaltitle.5ded43f9.mjs +127 -0
  36. package/lib/components.modaltitle.cc9ba616.js +1 -0
  37. package/lib/components.multitab.0f9da9f3.mjs +140 -0
  38. package/lib/components.multitab.726cff2f.js +1 -0
  39. package/lib/components.selecttree.1a71c963.mjs +170 -0
  40. package/lib/components.selecttree.2fadffca.js +1 -0
  41. package/lib/components.settingdrawer.1af86231.js +1 -0
  42. package/lib/components.settingdrawer.adc262cf.mjs +237 -0
  43. package/lib/components.sidemenu.03442146.mjs +277 -0
  44. package/lib/components.sidemenu.5107c7e3.js +1 -0
  45. package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
  46. package/lib/components.sidenavmenu.ef33de39.js +1 -0
  47. package/lib/components.statuschange.805a751b.mjs +116 -0
  48. package/lib/components.statuschange.83646c5d.js +1 -0
  49. package/lib/components.table.61eb5d81.js +8 -0
  50. package/lib/components.table.c986e58d.mjs +4650 -0
  51. package/lib/components.tableumy.35b465f9.mjs +453 -0
  52. package/lib/components.tableumy.eba43953.js +1 -0
  53. package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
  54. package/lib/components.tablevirtual.6af04c44.js +1 -0
  55. package/lib/components.teamsharing.68865424.js +1 -0
  56. package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
  57. package/lib/components.tooltip.ccb1717d.mjs +86 -0
  58. package/lib/components.tooltip.e2e21e66.js +1 -0
  59. package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
  60. package/lib/components.uploadfile.e93b500d.js +1 -0
  61. package/lib/components.uploadimg.3804913e.js +1 -0
  62. package/lib/components.uploadimg.e49707d9.mjs +192 -0
  63. package/lib/components.verificationcode.5a9c0220.js +1 -0
  64. package/lib/components.verificationcode.ead74922.mjs +71 -0
  65. package/lib/components.viewformdetails.3c1596ad.js +1 -0
  66. package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
  67. package/lib/components.viewloading.5b178ec5.js +1 -0
  68. package/lib/components.viewloading.cb7917b7.mjs +99 -0
  69. package/lib/components.watermark.849409ca.js +2 -0
  70. package/lib/components.watermark.a2521d0c.mjs +53 -0
  71. package/lib/components.xlsxexport.3405a00b.js +1 -0
  72. package/lib/components.xlsxexport.871f87d1.mjs +263 -0
  73. package/lib/components.xlsximport.85ce77cf.mjs +922 -0
  74. package/lib/components.xlsximport.e3bcb07d.js +1 -0
  75. package/lib/copy.b09a6d38.js +1 -0
  76. package/lib/copy.c0a2f16d.mjs +572 -0
  77. package/lib/dialogLayout.059ee256.mjs +138 -0
  78. package/lib/dialogLayout.cedf2865.js +1 -0
  79. package/lib/drawerContainer.38d7b530.mjs +154 -0
  80. package/lib/drawerContainer.ea7722d7.js +1 -0
  81. package/lib/drawerLayout.454e4921.js +1 -0
  82. package/lib/drawerLayout.fad843ee.mjs +119 -0
  83. package/lib/editForm.c199538f.mjs +434 -0
  84. package/lib/editForm.f9dc93ef.js +1 -0
  85. package/lib/flow.designer.4c83c0d3.js +1 -0
  86. package/lib/flow.designer.9442a995.mjs +7673 -0
  87. package/lib/flow.list.4a31969e.mjs +3032 -0
  88. package/lib/flow.list.f41ee531.js +1 -0
  89. package/lib/form.build.c38bf362.js +1 -0
  90. package/lib/form.build.fb9f905b.mjs +259 -0
  91. package/lib/form.designer.build.3fdf8007.js +1 -0
  92. package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
  93. package/lib/formFiled.624b8dd3.js +1 -0
  94. package/lib/formFiled.94fb1dce.mjs +498 -0
  95. package/lib/gd-initial.js +1 -35
  96. package/lib/gd-initial.mjs +233 -91087
  97. package/lib/http.appmanage.9b22ff82.mjs +50 -0
  98. package/lib/http.appmanage.b998818f.js +1 -0
  99. package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
  100. package/lib/http.codegeneratemanage.e3db2f09.js +1 -0
  101. package/lib/http.configmanage.6cfb8ae7.js +1 -0
  102. package/lib/http.configmanage.c23c7fa8.mjs +34 -0
  103. package/lib/http.currencymanage.37ab5ced.js +1 -0
  104. package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
  105. package/lib/http.datasource.294b01e2.js +1 -0
  106. package/lib/http.datasource.aa5cd0d1.mjs +58 -0
  107. package/lib/http.dictdatamanage.2583b5ae.mjs +42 -0
  108. package/lib/http.dictdatamanage.70545d8a.js +1 -0
  109. package/lib/http.dictmanage.3dc07b5d.js +1 -0
  110. package/lib/http.dictmanage.d8fe18dc.mjs +50 -0
  111. package/lib/http.duplicatechecking.9b79ce21.mjs +50 -0
  112. package/lib/http.duplicatechecking.ee5c414c.js +1 -0
  113. package/lib/http.emailmanage.1ddaa8b5.js +1 -0
  114. package/lib/http.emailmanage.64fd611f.mjs +18 -0
  115. package/lib/http.filedocument.6fdfc693.js +1 -0
  116. package/lib/http.filedocument.d3a4afd9.mjs +293 -0
  117. package/lib/http.filemanage.7e6e3e1a.js +1 -0
  118. package/lib/http.filemanage.c0de21d6.mjs +71 -0
  119. package/lib/http.languagemanage.2ef16159.mjs +10 -0
  120. package/lib/http.languagemanage.e2c098ec.js +1 -0
  121. package/lib/http.loginmanage.05500c29.mjs +74 -0
  122. package/lib/http.loginmanage.326984c3.js +1 -0
  123. package/lib/http.logmanage.1e12a9bd.js +1 -0
  124. package/lib/http.logmanage.8ba72635.mjs +82 -0
  125. package/lib/http.machinemanage.29d72a65.js +1 -0
  126. package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
  127. package/lib/http.main.1af1e119.mjs +517 -0
  128. package/lib/http.main.2f8a6936.js +1 -0
  129. package/lib/http.menumanage.09fffb7d.mjs +66 -0
  130. package/lib/http.menumanage.6d740f2c.js +1 -0
  131. package/lib/http.message.1d68e914.mjs +178 -0
  132. package/lib/http.message.87f319d7.js +1 -0
  133. package/lib/http.noticemanage.2507d094.js +1 -0
  134. package/lib/http.noticemanage.2cdb23b8.mjs +82 -0
  135. package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
  136. package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
  137. package/lib/http.onlineusermanage.3893f897.js +1 -0
  138. package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
  139. package/lib/http.orgmanage.0b1df8d5.mjs +58 -0
  140. package/lib/http.orgmanage.5162fd7a.js +1 -0
  141. package/lib/http.pluginmanage.54720675.mjs +82 -0
  142. package/lib/http.pluginmanage.6a876040.js +1 -0
  143. package/lib/http.posmanage.c0f80aec.js +1 -0
  144. package/lib/http.posmanage.ee6a7613.mjs +34 -0
  145. package/lib/http.promptmanagement.d115c4b0.js +1 -0
  146. package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
  147. package/lib/http.rolemanage.4d1101dd.js +1 -0
  148. package/lib/http.rolemanage.da5c40e9.mjs +146 -0
  149. package/lib/http.solution.b10d9197.mjs +91 -0
  150. package/lib/http.solution.c6b2634f.js +1 -0
  151. package/lib/http.sumberrules.0b68ce6d.js +1 -0
  152. package/lib/http.sumberrules.176d3d06.mjs +34 -0
  153. package/lib/http.sysapps.469d47f7.js +1 -0
  154. package/lib/http.sysapps.932ba43b.mjs +58 -0
  155. package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
  156. package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
  157. package/lib/http.tabledevelopment.7adf4910.mjs +362 -0
  158. package/lib/http.tabledevelopment.a880bb76.js +1 -0
  159. package/lib/http.team.a9c609d5.mjs +90 -0
  160. package/lib/http.team.e45400d5.js +1 -0
  161. package/lib/http.timersmanage.6e894942.js +1 -0
  162. package/lib/http.timersmanage.c79afb66.mjs +146 -0
  163. package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
  164. package/lib/http.timezonemanage.e0aa212f.js +1 -0
  165. package/lib/http.translationmanage.1f9dce46.js +1 -0
  166. package/lib/http.translationmanage.f8694b51.mjs +104 -0
  167. package/lib/http.useraffiliation.af2013ad.js +1 -0
  168. package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
  169. package/lib/http.usermanage.6dcbc7de.js +1 -0
  170. package/lib/http.usermanage.f5491144.mjs +219 -0
  171. package/lib/http.webresource.1a1a768f.mjs +50 -0
  172. package/lib/http.webresource.7c01b9cd.js +1 -0
  173. package/lib/index.3fa2dc66.mjs +40154 -0
  174. package/lib/index.fe757a98.js +8 -0
  175. package/lib/layoutBlocks.14c77a02.js +1 -0
  176. package/lib/layoutBlocks.5d71a03b.mjs +401 -0
  177. package/lib/layouts.a662f681.js +2 -0
  178. package/lib/layouts.ec4f20a2.mjs +376 -0
  179. package/lib/main.092a2ac8.js +1 -0
  180. package/lib/{main.f0045877.mjs → main.15237e71.mjs} +12 -10
  181. package/lib/main.29769f01.js +1 -0
  182. package/lib/main.401059c6.mjs +189 -0
  183. package/lib/main.447be615.js +1 -0
  184. package/lib/main.4e507685.mjs +231 -0
  185. package/lib/main.72cafa63.mjs +540 -0
  186. package/lib/{main.c41228a0.mjs → main.73f22d9e.mjs} +9 -8
  187. package/lib/main.7601bd3d.mjs +166 -0
  188. package/lib/main.79199ac2.js +1 -0
  189. package/lib/main.821d081b.js +1 -0
  190. package/lib/main.8627466a.mjs +537 -0
  191. package/lib/{main.b5a3be02.mjs → main.88e9be9d.mjs} +4 -4
  192. package/lib/main.8e6f6cba.mjs +323 -0
  193. package/lib/main.a9a54af9.js +1 -0
  194. package/lib/main.e033a376.js +1 -0
  195. package/lib/main.e2e4ba74.js +1 -0
  196. package/lib/{main.3caa11e1.mjs → main.e79d9e56.mjs} +113 -188
  197. package/lib/main.ea3a04f4.js +1 -0
  198. package/lib/main.f44d8279.js +1 -0
  199. package/lib/messages.5f54a62e.js +9 -0
  200. package/lib/{messages.a739f4fc.mjs → messages.d4354532.mjs} +4321 -5268
  201. package/lib/packages.filedocument.8418d852.mjs +4039 -0
  202. package/lib/packages.filedocument.9b8eda0d.js +1 -0
  203. package/lib/page.build.4d28df9a.js +12 -0
  204. package/lib/page.build.78cc7396.mjs +3020 -0
  205. package/lib/personal.echarts.940f1cc9.mjs +696 -0
  206. package/lib/personal.echarts.b5a7f574.js +1 -0
  207. package/lib/result.0161b0e0.js +1 -0
  208. package/lib/result.5a9330d7.mjs +627 -0
  209. package/lib/router.config.79a98ab8.mjs +3105 -0
  210. package/lib/router.config.7fd04c30.js +1 -0
  211. package/lib/solution.application.3ae7c0c5.js +1 -0
  212. package/lib/solution.application.fdc15ffc.mjs +548 -0
  213. package/lib/solution.applicationmenu.67aba620.js +1 -0
  214. package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
  215. package/lib/solution.approvalflow.81b7cfb7.js +1 -0
  216. package/lib/solution.approvalflow.a541adcc.mjs +436 -0
  217. package/lib/solution.dict.addbce33.mjs +769 -0
  218. package/lib/solution.dict.f1c9bae6.js +1 -0
  219. package/lib/solution.menu.2033fa37.mjs +5834 -0
  220. package/lib/solution.menu.6512047f.js +1 -0
  221. package/lib/solution.plugin.7094dbfd.js +1 -0
  222. package/lib/solution.plugin.d8f057cb.mjs +347 -0
  223. package/lib/solution.processflow.0adf4f55.js +1 -0
  224. package/lib/solution.processflow.a779bd58.mjs +392 -0
  225. package/lib/solution.role.d35cb00d.js +1 -0
  226. package/lib/solution.role.d9a4b25a.mjs +456 -0
  227. package/lib/solution.webresources.e1421655.mjs +379 -0
  228. package/lib/solution.webresources.e817757c.js +1 -0
  229. package/lib/solution.workflow.59552b8c.mjs +395 -0
  230. package/lib/solution.workflow.985e1f4d.js +1 -0
  231. package/lib/store.config.556bd56b.js +1 -0
  232. package/lib/store.config.5e5cb48a.mjs +547 -0
  233. package/lib/style.css +3 -3
  234. package/lib/system.account.1b281679.js +216 -0
  235. package/lib/system.account.96d5bc17.mjs +2093 -0
  236. package/lib/system.config.0ff45e62.js +1 -0
  237. package/lib/{system.config.d2ad8c97.mjs → system.config.35b13003.mjs} +7 -6
  238. package/lib/system.datasource.4243937d.js +1 -0
  239. package/lib/{system.datasource.a77831ab.mjs → system.datasource.7f582bef.mjs} +15 -64
  240. package/lib/{system.dict.cb276470.mjs → system.dict.3697546d.mjs} +269 -344
  241. package/lib/system.dict.8e4fe6b0.js +1 -0
  242. package/lib/system.document.69e534a6.js +1 -0
  243. package/lib/system.document.8e4dbe5e.mjs +667 -0
  244. package/lib/system.duplicatechecking.1083eb1e.js +1 -0
  245. package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
  246. package/lib/system.email.06bb7cc1.mjs +133 -0
  247. package/lib/system.email.41036a31.js +1 -0
  248. package/lib/system.fieldsecurity.3ea880d8.js +1 -0
  249. package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
  250. package/lib/{system.file.8064c8e9.mjs → system.file.8ccc4569.mjs} +84 -151
  251. package/lib/system.file.b8e4e6a1.js +1 -0
  252. package/lib/system.log.14c22a7a.js +1 -0
  253. package/lib/{system.log.2b2fc11a.mjs → system.log.aad4ff54.mjs} +31 -93
  254. package/lib/system.machine.379beacb.js +1 -0
  255. package/lib/{system.machine.0130e762.mjs → system.machine.c47be0cc.mjs} +5 -25
  256. package/lib/{system.notice.5f8cd020.mjs → system.notice.dc1b67cc.mjs} +1075 -1255
  257. package/lib/system.notice.fb151c45.js +1 -0
  258. package/lib/system.noticereceived.3a29d891.js +1 -0
  259. package/lib/{system.noticereceived.51b6353a.mjs → system.noticereceived.e75bf358.mjs} +19 -27
  260. package/lib/{system.onlineuser.c0a69360.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
  261. package/lib/system.onlineuser.fc26aff9.js +1 -0
  262. package/lib/system.org.b6f826e8.js +1 -0
  263. package/lib/{system.org.1169fe47.mjs → system.org.dd710a91.mjs} +3 -3
  264. package/lib/system.permissions.75406743.mjs +972 -0
  265. package/lib/system.permissions.97f68887.js +1 -0
  266. package/lib/system.plugin.3fcf7b0b.js +1 -0
  267. package/lib/{system.plugin.502a69d8.mjs → system.plugin.4b80cd95.mjs} +503 -552
  268. package/lib/system.pos.5a1663d8.js +1 -0
  269. package/lib/{system.pos.8c44c029.mjs → system.pos.a3bafaaa.mjs} +31 -62
  270. package/lib/system.promptmanagement.53c301a3.js +1 -0
  271. package/lib/{system.promptmanagement.d8565db4.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
  272. package/lib/{system.role.19959d7f.mjs → system.role.9edb5922.mjs} +512 -486
  273. package/lib/system.role.e164f059.js +1 -0
  274. package/lib/{system.sumberrules.087015a4.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
  275. package/lib/system.sumberrules.5e9cd262.js +1 -0
  276. package/lib/system.team.3e605266.js +1 -0
  277. package/lib/system.team.bb1fb40e.mjs +452 -0
  278. package/lib/system.teammembers.a098883b.js +1 -0
  279. package/lib/{system.teammembers.4056d586.mjs → system.teammembers.b8e53d99.mjs} +257 -199
  280. package/lib/system.timers.2f884e41.js +38 -0
  281. package/lib/{system.timers.6f61bfe1.mjs → system.timers.551c4a4b.mjs} +2202 -2278
  282. package/lib/system.translation.6e99c852.js +1 -0
  283. package/lib/{system.translation.9b88fbf2.mjs → system.translation.c2c1f40c.mjs} +437 -431
  284. package/lib/{system.user.bdf2613e.mjs → system.user.b99911de.mjs} +1082 -1025
  285. package/lib/system.user.dffc2543.js +14 -0
  286. package/lib/{system.useraffiliation.63b6bb36.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
  287. package/lib/system.useraffiliation.f8b33def.js +1 -0
  288. package/lib/system.webresource.1d3ed352.js +1 -0
  289. package/lib/{system.webresource.c36d6792.mjs → system.webresource.8a8d856b.mjs} +177 -219
  290. package/lib/{system.welcome.14785b50.mjs → system.welcome.573a76db.mjs} +10 -3
  291. package/lib/system.welcome.eedf1db2.js +1 -0
  292. package/lib/tableDescriptions.923c4ef1.mjs +80 -0
  293. package/lib/tableDescriptions.b12679b0.js +1 -0
  294. package/lib/tcheckboxs.887d733c.mjs +52 -0
  295. package/lib/tcheckboxs.fe7e574a.js +1 -0
  296. package/lib/tcurrency.10ac9aa7.mjs +85 -0
  297. package/lib/tcurrency.20e959c0.js +1 -0
  298. package/lib/tdatepicker.54036bba.js +1 -0
  299. package/lib/tdatepicker.a08ad382.mjs +52 -0
  300. package/lib/tdictSwitch.274e9f86.js +1 -0
  301. package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
  302. package/lib/tfile.5c897827.js +1 -0
  303. package/lib/tfile.f63b73b9.mjs +62 -0
  304. package/lib/tparticipants.4698962b.mjs +56 -0
  305. package/lib/tparticipants.b6fb4545.js +1 -0
  306. package/lib/translation.mains.5cfc7a2f.js +1 -0
  307. package/lib/translation.mains.e6cb610b.mjs +383 -0
  308. package/lib/utils.datepicker.js.0a5a699e.js +1 -0
  309. package/lib/utils.datepicker.js.5549a741.mjs +70 -0
  310. package/lib/utils.echarts.js.461a74e7.js +54 -0
  311. package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
  312. package/lib/utils.mixins.js.750ca50e.js +1 -0
  313. package/lib/utils.mixins.js.be01e599.mjs +41 -0
  314. package/lib/utils.plug.js.9313aead.mjs +31 -0
  315. package/lib/utils.plug.js.f62510ce.js +1 -0
  316. package/lib/utils.util.js.885de913.mjs +439 -0
  317. package/lib/utils.util.js.c0ba699b.js +1 -0
  318. package/lib/view.build.051553d8.mjs +1578 -0
  319. package/lib/view.build.9af3087b.js +1 -0
  320. package/lib/viewList.209956c3.js +1 -0
  321. package/lib/viewList.c05c92be.mjs +318 -0
  322. package/lib/viewTree.0cd9f1a2.js +1 -0
  323. package/lib/viewTree.c5290360.mjs +409 -0
  324. package/locale/en_US.js +92 -28
  325. package/locale/id_ID.js +76 -12
  326. package/locale/vi_VN.js +2012 -1948
  327. package/locale/zh_CN.js +97 -33
  328. package/package.json +106 -105
  329. package/lib/chartbi.114d32d7.js +0 -60
  330. package/lib/chartbi.eb4dd0af.mjs +0 -27639
  331. package/lib/main.03984fed.js +0 -1
  332. package/lib/main.1050afb3.js +0 -1
  333. package/lib/main.64122541.js +0 -1
  334. package/lib/main.b7d2c6ee.js +0 -1
  335. package/lib/messages.828b6ed8.js +0 -9
  336. package/lib/system.account.3181bcd6.js +0 -216
  337. package/lib/system.account.7c6ea20c.mjs +0 -2552
  338. package/lib/system.config.10f57fa2.js +0 -1
  339. package/lib/system.datasource.d5eea7f2.js +0 -1
  340. package/lib/system.dict.d73658f1.js +0 -1
  341. package/lib/system.duplicatechecking.5c8a3eef.mjs +0 -2142
  342. package/lib/system.duplicatechecking.d24ba6ea.js +0 -1
  343. package/lib/system.email.4bf52f2d.js +0 -41
  344. package/lib/system.email.db5da8d7.mjs +0 -7432
  345. package/lib/system.fieldsecurity.eb217079.js +0 -1
  346. package/lib/system.file.c1884db7.js +0 -1
  347. package/lib/system.log.389af80d.js +0 -1
  348. package/lib/system.machine.49fc6405.js +0 -1
  349. package/lib/system.notice.a89f4826.js +0 -1
  350. package/lib/system.noticereceived.5e0773c3.js +0 -1
  351. package/lib/system.onlineuser.67733846.js +0 -1
  352. package/lib/system.org.ff54d620.js +0 -1
  353. package/lib/system.permissions.cc9a9866.mjs +0 -212
  354. package/lib/system.permissions.e6317c5a.js +0 -9
  355. package/lib/system.plugin.3467d572.js +0 -1
  356. package/lib/system.pos.4aadf86e.js +0 -1
  357. package/lib/system.promptmanagement.9ba710d6.js +0 -1
  358. package/lib/system.role.890c8ca2.js +0 -1
  359. package/lib/system.sumberrules.068ebe4a.js +0 -1
  360. package/lib/system.team.27cd57f7.mjs +0 -1000
  361. package/lib/system.team.2b28502b.js +0 -1
  362. package/lib/system.teammembers.e3baf783.js +0 -1
  363. package/lib/system.timers.cb0a3bd0.js +0 -38
  364. package/lib/system.translation.f3884a0a.js +0 -1
  365. package/lib/system.user.3bd95871.js +0 -14
  366. package/lib/system.useraffiliation.7db6e13c.js +0 -1
  367. package/lib/system.webresource.ede248a8.js +0 -1
  368. package/lib/system.welcome.c9eefa06.js +0 -1
@@ -0,0 +1,3105 @@
1
+ import { G as I, a as _, b as L, c as S, r as T, d as O, e as N, f as V, g as E } from "./layouts.ec4f20a2.mjs";
2
+ import { G as q, a as R, b as K, c as j } from "./system.account.96d5bc17.mjs";
3
+ import { G as P } from "./system.welcome.573a76db.mjs";
4
+ import { m as h, n as m } from "./components.chartbi.470b96af.mjs";
5
+ import { G as w } from "./flow.designer.9442a995.mjs";
6
+ import { d as D } from "./components.table.c986e58d.mjs";
7
+ import { E as g } from "./components.xlsximport.85ce77cf.mjs";
8
+ import { s as v, u as y } from "./utils.util.js.885de913.mjs";
9
+ import { a as z } from "./http.main.1af1e119.mjs";
10
+ import { d as $, g as M, h as B, s as F, i as G } from "./http.tabledevelopment.7adf4910.mjs";
11
+ import { g as k } from "./utils.plug.js.9313aead.mjs";
12
+ import { o as C } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
13
+ import { G as A } from "./personal.echarts.940f1cc9.mjs";
14
+ const at = [{
15
+ path: "/user",
16
+ component: I,
17
+ redirect: "/user/login",
18
+ children: [{
19
+ path: "login",
20
+ name: "login",
21
+ component: () => import("./main.e79d9e56.mjs"),
22
+ meta: {
23
+ title: "\u767B\u5F55",
24
+ transKey: "gd.login.title"
25
+ }
26
+ }]
27
+ }, {
28
+ path: "/oauth2",
29
+ component: _,
30
+ redirect: "/oauth2/authorize",
31
+ children: [{
32
+ path: "/oauth2/authorize",
33
+ name: "oauth2Authorize",
34
+ component: () => import("./main.73f22d9e.mjs"),
35
+ meta: {
36
+ title: "\u6388\u6743\u767B\u5F55",
37
+ transKey: "gd.login.authorizedLogin"
38
+ }
39
+ }, {
40
+ path: "/oauth2/oauth",
41
+ name: "oauth2Oauth",
42
+ component: () => import("./main.88e9be9d.mjs"),
43
+ meta: {
44
+ title: "\u6388\u6743\u8BA4\u8BC1",
45
+ transKey: "gd.login.authorizedOauth"
46
+ }
47
+ }]
48
+ }, {
49
+ path: "/transfer",
50
+ component: L,
51
+ redirect: "/transfer/transferlogin",
52
+ children: [{
53
+ path: "transferlogin",
54
+ name: "transferlogin",
55
+ component: () => import("./main.15237e71.mjs"),
56
+ meta: {
57
+ title: "\u4E2D\u8F6C\u9875",
58
+ transKey: "gd.login.title"
59
+ }
60
+ }]
61
+ }];
62
+ const J = {
63
+ props: {
64
+ table: {
65
+ type: Object,
66
+ default: () => ({})
67
+ },
68
+ ruleFormData: {
69
+ type: Object,
70
+ required: !0
71
+ },
72
+ fullscreen: {
73
+ type: Boolean,
74
+ default: !1
75
+ },
76
+ tableFieldList: {
77
+ type: Array,
78
+ default: () => []
79
+ }
80
+ },
81
+ data() {
82
+ return {
83
+ selectedRowKeys: [],
84
+ selectedRows: [],
85
+ defaultExpandedRowKeys: [],
86
+ pid: [],
87
+ foreignList: [],
88
+ loadData: (i) => this.getLoadField(),
89
+ visible: !1,
90
+ loadFieldData: [],
91
+ record: [],
92
+ tableColumns: [
93
+ {
94
+ type: "selection",
95
+ width: "80"
96
+ },
97
+ {
98
+ transKey: "gd.field.describe",
99
+ prop: "columncomment",
100
+ type: "slot",
101
+ slotType: "columncomment",
102
+ label: "\u663E\u793A\u540D",
103
+ width: "160",
104
+ align: "left"
105
+ },
106
+ {
107
+ transKey: "gd.field.field",
108
+ prop: "columnname",
109
+ label: "\u5B57\u6BB5\u540D",
110
+ width: "140",
111
+ align: "left"
112
+ },
113
+ {
114
+ transKey: "gd.field.effectType",
115
+ prop: "effectType",
116
+ label: "\u7C7B\u578B",
117
+ width: "110",
118
+ align: "left",
119
+ type: "slot",
120
+ slotType: "effectType"
121
+ }
122
+ ],
123
+ list: [],
124
+ selItem: {}
125
+ };
126
+ },
127
+ watch: {
128
+ list: {
129
+ handler(i) {
130
+ this.$nextTick(() => {
131
+ this.$emit("ok", this.list);
132
+ });
133
+ },
134
+ deep: !0,
135
+ immediate: !0
136
+ }
137
+ },
138
+ components: { draggable: D, EffectTypeIcon: g },
139
+ computed: {
140
+ currencyList() {
141
+ let i = [];
142
+ return this.tableFieldList.forEach((e) => {
143
+ e.effecttype == "currency" && e.columnname == (e.relations + "_Currency").toLowerCase() && i.push(e.columnname);
144
+ }), i;
145
+ },
146
+ displayPrefixList() {
147
+ const i = this.tableFieldList.filter((t) => t.columnname === "sys_currencyid" && t.children)[0], e = i ? i.children.filter((t) => ["symbol", "code"].includes(t.columnname)) : [];
148
+ return [
149
+ {
150
+ columnname: "none",
151
+ columncomment: "\u7A7A\u767D",
152
+ transkey: "gd.echarts.none",
153
+ hasPrefix: !1
154
+ }
155
+ ].concat(e);
156
+ },
157
+ displayModeList() {
158
+ return [
159
+ {
160
+ code: "none",
161
+ name: "\u7A7A\u767D",
162
+ transkey: "gd.echarts.none"
163
+ },
164
+ {
165
+ code: "percent",
166
+ name: "\u4EE5%\u7ED3\u5C3E",
167
+ transkey: "gd.view.percentMode"
168
+ },
169
+ {
170
+ code: "permil",
171
+ name: "\u4EE5[\u2030]\u7ED3\u5C3E",
172
+ transkey: "gd.view.permilMode"
173
+ }
174
+ ];
175
+ },
176
+ alignList() {
177
+ return [
178
+ {
179
+ code: "left",
180
+ name: "\u5DE6\u5BF9\u9F50",
181
+ transkey: "gd.state.alignLeft"
182
+ },
183
+ {
184
+ code: "center",
185
+ name: "\u5C45\u4E2D\u5BF9\u9F50",
186
+ transkey: "gd.state.alignCenter"
187
+ },
188
+ {
189
+ code: "right",
190
+ name: "\u53F3\u5BF9\u9F50",
191
+ transkey: "gd.state.alignRight"
192
+ }
193
+ ];
194
+ },
195
+ sourceTable() {
196
+ const i = this.tableLists.filter((e) => e.id === this.selItem.codegenid)[0];
197
+ return i ? i.tablename : "--";
198
+ },
199
+ height() {
200
+ let i = this.fullscreen ? 190 : 340;
201
+ return this.screenHeight - i;
202
+ },
203
+ ...h(["tablePageSize", "tableSize", "screenHeight", "tableLists", "primaryColor"])
204
+ },
205
+ methods: {
206
+ changeOrder(i, e) {
207
+ let t = [...this.list];
208
+ t = v(t);
209
+ const l = t.filter((o) => o.id === e.id)[0], n = Number(l.order);
210
+ let s = n < i ? n - 1 : n > i ? n + 1 : i;
211
+ 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 = v(t), this.list = [...t];
212
+ },
213
+ del(i) {
214
+ let e = `${this.selItem.columnname}_popver`;
215
+ 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();
216
+ },
217
+ popoverItem(i) {
218
+ this.selItem = i;
219
+ },
220
+ endDraggable() {
221
+ const i = this.selItem.order;
222
+ this.list = this.list.map((t, l) => (t.order = l, t));
223
+ const e = this.list.filter((t) => t.order === i)[0];
224
+ this.selItem = e || this.selItem;
225
+ },
226
+ showPopover() {
227
+ this.record = JSON.parse(JSON.stringify(this.list)), this.visible = !0, this.$nextTick(() => {
228
+ setTimeout(() => {
229
+ this.refresh(!1);
230
+ }, 0);
231
+ });
232
+ },
233
+ hidePopover() {
234
+ let i = [];
235
+ this.loadFieldData.forEach((n) => {
236
+ const s = n.children ? n.children : [];
237
+ !this.isChecked(n.id) && s.length === 0 && i.push(n), s.forEach((o) => {
238
+ this.isChecked(o.id) || (o.joinfieldid = n.id, i.push(o));
239
+ });
240
+ });
241
+ let e = [], t = [];
242
+ this.record.forEach((n) => {
243
+ i.filter((o) => o.id == n.id)[0] && e.push(n);
244
+ }), i.forEach((n) => {
245
+ if (this.isCheckedRecord(n.id)) {
246
+ let s = "left", o = n.effectType === "inputnumber" ? 0 : n.filedsize;
247
+ n.effectType === "datepicker" ? s = "center" : ["currency", "double", "inputnumber"].includes(n.effectType) && (s = "right");
248
+ let a = {
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: o
265
+ };
266
+ t.push(Object.assign({ ...n }, a));
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 c = [];
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((d, u) => {
288
+ if (d.effecttype != "fk" && d.effecttype != "about" && d.effecttype != "user") {
289
+ this.getCodeGenId(d.codegenid);
290
+ let f = this.$i18nt(`Dynamics.${d.transkey}`, d.columncomment), p = Object.assign(
291
+ { ...d },
292
+ {
293
+ id: d.id + "-" + o.id,
294
+ fkrelations: `${r} -- ${o.columnname}`,
295
+ alias: `${r} (${f})`,
296
+ fkEffectType: o.effecttype
297
+ }
298
+ );
299
+ c.push(p);
300
+ }
301
+ this.selectedRowKeys.includes(d.id + "-" + o.id) && !n.includes(o.id) && n.push(o.id);
302
+ }), c = c.filter((d) => !(d.effecttype == "about" && d.columnname == (d.relations + "_abouttable").toLowerCase()))), s[a].children = c.length > 0 ? [...c] : 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 H = 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
+ }, Q = [], W = /* @__PURE__ */ m(
395
+ J,
396
+ H,
397
+ Q,
398
+ !1,
399
+ null,
400
+ "4c5fca6d",
401
+ null,
402
+ null
403
+ );
404
+ const U = W.exports;
405
+ const Y = {
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: g },
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 Z = 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
+ }, X = [], ee = /* @__PURE__ */ m(
564
+ Y,
565
+ Z,
566
+ X,
567
+ !1,
568
+ null,
569
+ "6c54112e",
570
+ null,
571
+ null
572
+ );
573
+ const te = ee.exports;
574
+ const ie = {
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: g },
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 se = 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
+ }, le = [], ae = /* @__PURE__ */ m(
766
+ ie,
767
+ se,
768
+ le,
769
+ !1,
770
+ null,
771
+ "28faaad1",
772
+ null,
773
+ null
774
+ );
775
+ const ne = ae.exports;
776
+ const oe = {
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: te,
799
+ DictField: ne
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 re = 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
+ }, ce = [], de = /* @__PURE__ */ m(
820
+ oe,
821
+ re,
822
+ ce,
823
+ !1,
824
+ null,
825
+ "7f3e5a85",
826
+ null,
827
+ null
828
+ );
829
+ const ue = de.exports;
830
+ const fe = {
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: y()
867
+ }
868
+ ],
869
+ showAdd: !0,
870
+ fieldFormat: [],
871
+ fetching: !1,
872
+ dictDataAll: [],
873
+ detail: {},
874
+ type: 1
875
+ };
876
+ },
877
+ components: { EffectTypeIcon: g },
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: y()
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: y()
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: y(),
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 me = 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
+ }, pe = [], he = /* @__PURE__ */ m(
1190
+ fe,
1191
+ me,
1192
+ pe,
1193
+ !1,
1194
+ null,
1195
+ "587b9900",
1196
+ null,
1197
+ null
1198
+ );
1199
+ const ge = he.exports;
1200
+ const ye = {
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: ge },
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 ve = 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
+ }, be = [], we = /* @__PURE__ */ m(
1235
+ ye,
1236
+ ve,
1237
+ be,
1238
+ !1,
1239
+ null,
1240
+ "9b84fd81",
1241
+ null,
1242
+ null
1243
+ );
1244
+ const $e = we.exports;
1245
+ const ke = [
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
+ ], _e = [
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
+ ], De = [
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
+ ], Fe = [
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
+ ], Ce = {
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: ke,
1404
+ equalList: _e,
1405
+ intervalMonth: De,
1406
+ equalMonth: Fe,
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: D, FieldFiltering: ue, QueryRules: $e, EffectTypeIcon: g, FlowsFilter: w },
1425
+ computed: {
1426
+ plugFilters() {
1427
+ return k();
1428
+ },
1429
+ getFkTable() {
1430
+ const i = this.tableLists.filter((e) => e.tablename == this.selItem.fkentityname)[0];
1431
+ return i || {};
1432
+ },
1433
+ disabledQuick() {
1434
+ return this.list.filter((e) => e.options.quick).length >= 3;
1435
+ },
1436
+ getEffectList() {
1437
+ const i = this.record.isvirtualtable == 1 ? "virtual_table_effect_type" : "code_gen_effect_type";
1438
+ return this.getDictionary(i);
1439
+ },
1440
+ intervalData() {
1441
+ let i = this.options.defaultInterval.filter((e) => e.type === "interval")[0];
1442
+ return i || {};
1443
+ },
1444
+ equalData() {
1445
+ let i = this.options.defaultInterval.filter((e) => e.type === "equal")[0];
1446
+ return i || {};
1447
+ },
1448
+ options() {
1449
+ return this.selItem.options || {};
1450
+ },
1451
+ fieldFormat() {
1452
+ const i = this.timeLongshort.filter((e) => String(e.code) === String(this.options.fieldFormat))[0];
1453
+ return i ? i.name : "yyyy-MM-dd HH:mm:ss";
1454
+ },
1455
+ timeLongshort() {
1456
+ return this.getDictionary("time_longshort");
1457
+ },
1458
+ height() {
1459
+ let i = this.fullscreen ? 190 : 340;
1460
+ return this.screenHeight - i;
1461
+ },
1462
+ ...h(["tablePageSize", "tableSize", "screenHeight", "tableLists", "primaryColor"])
1463
+ },
1464
+ methods: {
1465
+ changeViewId(i) {
1466
+ const e = this.viewList.filter((l) => l.id === i)[0], t = e && e.filterconfig ? JSON.parse(e.filterconfig) : JSON.parse(JSON.stringify(this.plugFilters));
1467
+ this.options.filterConfig = t;
1468
+ },
1469
+ selItemPopoverShow() {
1470
+ this.$nextTick(() => {
1471
+ setTimeout(() => {
1472
+ const i = this.$refs[`${this.selItem.columnname}_popver`];
1473
+ i && i[0].doShow();
1474
+ }, 0);
1475
+ });
1476
+ },
1477
+ setFilter() {
1478
+ this.showFlowsFilter = !0, this.$nextTick(() => {
1479
+ setTimeout(() => {
1480
+ const i = this.options.filterConfig ? this.options.filterConfig : JSON.parse(JSON.stringify(this.plugFilters));
1481
+ this.$refs.flowsFilter.init(i);
1482
+ }, 0);
1483
+ });
1484
+ },
1485
+ okFilter(i) {
1486
+ if (i.list.length === 0) {
1487
+ this.options.filterConfig = null;
1488
+ return;
1489
+ }
1490
+ const e = i.list[0];
1491
+ let t = 0;
1492
+ i.list.forEach((n) => {
1493
+ t += n.list.length;
1494
+ });
1495
+ const l = e && i.list.length === 1 && e.referencefiled === "" && e.referencetable === "" && e.list.length > 0 && t === 0 ? Object.assign(e, { columnid: 0 }) : i;
1496
+ this.options.filterConfig = { ...l }, this.showFlowsFilter = !1;
1497
+ },
1498
+ cahngeWidthUnit() {
1499
+ this.options.widthUnit = this.options.widthUnit === "px" ? "%" : "px";
1500
+ },
1501
+ hasTimePicker(i) {
1502
+ const e = this.timeLongshort.filter((l) => l.code == i.fieldFormat)[0], t = e ? e.name : "yyyy-MM-dd";
1503
+ return ["hh:mm:ss", "hh:mm", "mm:ss", "HH:mm:ss", "HH:mm"].includes(t);
1504
+ },
1505
+ pickerType(i) {
1506
+ const e = this.timeLongshort.filter((n) => n.code == i.fieldFormat)[0], t = e ? e.name : "yyyy-MM-dd";
1507
+ let l = "date";
1508
+ 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;
1509
+ },
1510
+ formatName(i) {
1511
+ const e = this.timeLongshort.filter((t) => t.code == i.fieldFormat)[0];
1512
+ return e ? e.name : "yyyy-MM-dd";
1513
+ },
1514
+ changeFormat(i) {
1515
+ this.disabledInterval(i) && (i.displayStyle = 1), i.defaultValue = "";
1516
+ },
1517
+ disabledInterval(i) {
1518
+ 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";
1519
+ return !["yyyy-MM-dd hh:mm:ss", "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM"].includes(l);
1520
+ },
1521
+ selDateDefault(i, e) {
1522
+ let t = this.options.defaultInterval[e];
1523
+ this.options.defaultInterval[e].value = t.value !== i.val ? i.val : "";
1524
+ },
1525
+ del(i) {
1526
+ let e = `${this.selItem.columnname}_popver`;
1527
+ 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);
1528
+ },
1529
+ popoverItem(i) {
1530
+ this.selItem = i;
1531
+ },
1532
+ showItemPopver() {
1533
+ this.$nextTick(() => {
1534
+ setTimeout(() => {
1535
+ $({ sysCodeGenId: this.getFkTable.id }).then((i) => {
1536
+ if (i.code === 200) {
1537
+ this.viewList = i.data;
1538
+ const e = i.data.filter((n) => n.type == 2)[0], t = e === void 0 ? this.viewList[0].id : e.id;
1539
+ ({ ...this.options });
1540
+ let l = this.options.viewdeId ? this.options.viewdeId : t;
1541
+ if (!this.options.filterConfig) {
1542
+ let n = i.data.filter((o) => o.id == l)[0], s = n && n.filterconfig ? JSON.parse(n.filterconfig) : JSON.parse(JSON.stringify(this.plugFilters));
1543
+ this.options.filterConfig = s;
1544
+ }
1545
+ this.options.viewdeId = l;
1546
+ }
1547
+ });
1548
+ }, 0);
1549
+ });
1550
+ },
1551
+ showPopover() {
1552
+ this.record = JSON.parse(JSON.stringify(this.list)), this.visible = !0, this.$nextTick(() => {
1553
+ setTimeout(() => {
1554
+ this.refresh(!1);
1555
+ }, 0);
1556
+ });
1557
+ },
1558
+ hidePopover() {
1559
+ let i = this.loadFieldData.filter((s) => this.selectedRowKeys.includes(s.id)), e = [], t = [];
1560
+ this.record.forEach((s) => {
1561
+ i.forEach((o) => {
1562
+ o.id === s.id && (e.push(s), t.push(o.id));
1563
+ });
1564
+ });
1565
+ let l = this.selectedRowKeys.filter((s) => !t.includes(s)), n = this.loadFieldData.filter((s) => l.includes(s.id));
1566
+ this.list = e.concat(n), this.visible = !1;
1567
+ },
1568
+ init(i) {
1569
+ this.list = [...i];
1570
+ let e = [];
1571
+ this.list.forEach((t) => {
1572
+ e.push(t.id);
1573
+ }), this.selectedRowKeys = [...e], this.getLoadField(), this.$nextTick(() => {
1574
+ setTimeout(() => {
1575
+ this.$refs.queryRules.init(this.rulesList);
1576
+ }, 0);
1577
+ });
1578
+ },
1579
+ getLoadField() {
1580
+ return new Promise((i, e) => {
1581
+ const t = {
1582
+ fieldFiltering: !0,
1583
+ effectType: "",
1584
+ fieldFormat: "",
1585
+ displayStyle: 0,
1586
+ defaultValue: "",
1587
+ defaultValueList: [],
1588
+ filterList: [],
1589
+ hidden: !1,
1590
+ required: !1,
1591
+ openWidth: 80,
1592
+ widthUnit: "%",
1593
+ quick: !1,
1594
+ labelWidth: 120,
1595
+ min: void 0,
1596
+ max: void 0,
1597
+ defaultInterval: [
1598
+ {
1599
+ type: "interval",
1600
+ value: ""
1601
+ },
1602
+ {
1603
+ type: "equal",
1604
+ value: ""
1605
+ }
1606
+ ]
1607
+ };
1608
+ let l = JSON.parse(JSON.stringify(this.tableFieldList)).filter((n) => {
1609
+ n.children = null;
1610
+ let s = 0;
1611
+ return n.effecttype === "datepicker" && this.disabledInterval(n) && (s = 1), n.options = Object.assign(
1612
+ { ...t },
1613
+ {
1614
+ columnName: n.columnname,
1615
+ effectType: n.effecttype,
1616
+ fieldFormat: String(n.fieldformat),
1617
+ displayStyle: s,
1618
+ defaultValue: ["inputnumber", "double", "currency"].includes(n.effecttype) ? void 0 : ""
1619
+ }
1620
+ ), n.querywhether === "Y";
1621
+ }).filter((n) => !(n.effecttype == "about" && n.columnname == (n.relations + "_abouttable").toLowerCase() || n.effecttype == "image" || n.effecttype == "file"));
1622
+ this.loadFieldData = [...l], i({ pageNo: 1, pageSize: 400, totalRows: 0, rows: l });
1623
+ });
1624
+ },
1625
+ onSelectChange(i, e) {
1626
+ this.selectedRowKeys = i, this.selectedRows = e;
1627
+ },
1628
+ getDictionary(i) {
1629
+ return this.$options.filters.dictData(i);
1630
+ },
1631
+ refresh(i = !0) {
1632
+ this.$refs.table.refresh(!1);
1633
+ }
1634
+ }
1635
+ };
1636
+ var xe = function() {
1637
+ var e = this, t = e._self._c;
1638
+ 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 }) {
1639
+ return [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transkey}`, n.columncomment)) + " ")];
1640
+ } }, { key: "effectType", fn: function({ column: l, row: n }) {
1641
+ return [e._v(" " + e._s(e._f("dictType")("code_gen_effect_type", n.effecttype)) + " ")];
1642
+ } }], 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) {
1643
+ l.preventDefault();
1644
+ } } }, [t("draggable", e._b({ model: { value: e.list, callback: function(l) {
1645
+ e.list = l;
1646
+ }, expression: "list" } }, "draggable", {
1647
+ animation: 300,
1648
+ handle: ".drag-move"
1649
+ }, !1), e._l(e.list, function(l, n) {
1650
+ return t("div", { key: n, staticStyle: { "margin-bottom": "2px" }, on: { click: function(s) {
1651
+ return e.popoverItem(l);
1652
+ } } }, [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) {
1653
+ return s.stopPropagation(), e.del(l);
1654
+ } } })], 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) {
1655
+ e.$set(e.options, "effectType", s);
1656
+ }, expression: "options.effectType" } }, [e._l(e.getEffectList, function(s) {
1657
+ return [t("el-option", { attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } })];
1658
+ })], 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) {
1659
+ return e.changeFormat(e.options);
1660
+ } }, model: { value: e.options.fieldFormat, callback: function(s) {
1661
+ e.$set(e.options, "fieldFormat", s);
1662
+ }, expression: "options.fieldFormat" } }, [e._l(e.getDictionary("time_longshort"), function(s) {
1663
+ return [t("el-option", { attrs: { label: e.$i18nt(s.transkey, s.name), value: s.code } })];
1664
+ })], 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) {
1665
+ e.$set(e.options, "displayStyle", s);
1666
+ }, 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(), [
1667
+ "switch",
1668
+ "select",
1669
+ "radio",
1670
+ "checkbox",
1671
+ "input",
1672
+ "textarea",
1673
+ "editor",
1674
+ "inputnumber",
1675
+ "double",
1676
+ "currency",
1677
+ "datepicker"
1678
+ ].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) {
1679
+ e.$set(e.options, "defaultValueList", s);
1680
+ }, expression: "options.defaultValueList" } }, e._l(e.getDictionary(e.selItem.dicttypecode), function(s) {
1681
+ return t("el-option", { key: s.code, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.code } });
1682
+ }), 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) {
1683
+ e.$set(e.options, "defaultValue", s);
1684
+ }, 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) {
1685
+ e.$set(e.options, "defaultValue", s);
1686
+ }, 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) {
1687
+ e.$set(e.options, "defaultValue", s);
1688
+ }, 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) {
1689
+ e.$set(e.options, "defaultValueList", s);
1690
+ }, 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) {
1691
+ 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) {
1692
+ return e.selDateDefault(s, 0);
1693
+ } } }, [e._v(" " + e._s(e.$i18nt(s.keyI18n, s.name)) + " ")])];
1694
+ })], 2) : t("div", [e._l(e.equalList, function(s) {
1695
+ 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) {
1696
+ return e.selDateDefault(s, 1);
1697
+ } } }, [e._v(" " + e._s(e.$i18nt(s.keyI18n, s.name)) + " ")])];
1698
+ })], 2)]) : t("div", [e.formatName(e.options) === "yyyy-MM" ? t("div", [e._l(e.intervalMonth, function(s) {
1699
+ 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) {
1700
+ return e.selDateDefault(s, 0);
1701
+ } } }, [e._v(" " + e._s(e.$i18nt(s.keyI18n, s.name)) + " ")])];
1702
+ })], 2) : t("div", [e._l(e.intervalList, function(s) {
1703
+ 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) {
1704
+ return e.selDateDefault(s, 0);
1705
+ } } }, [e._v(" " + e._s(e.$i18nt(s.keyI18n, s.name)) + " ")])];
1706
+ })], 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) {
1707
+ e.$set(e.options, "defaultValue", s);
1708
+ }, 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) {
1709
+ e.$set(e.options, "min", s);
1710
+ }, 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) {
1711
+ e.$set(e.options, "max", s);
1712
+ }, 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) {
1713
+ e.$set(e.options, "viewdeId", s);
1714
+ }, expression: "options.viewdeId" } }, [e._l(e.viewList, function(s) {
1715
+ return [t("el-option", { attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), value: s.id } })];
1716
+ })], 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) {
1717
+ e.$set(e.options, "openWidth", s);
1718
+ }, 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) {
1719
+ e.$set(e.options, "hidden", s);
1720
+ }, 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) {
1721
+ e.$set(e.options, "required", s);
1722
+ }, 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) {
1723
+ e.$set(e.options, "quick", s);
1724
+ }, 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) {
1725
+ e.$set(e.options, "labelWidth", s);
1726
+ }, expression: "options.labelWidth" } })], 1) : e._e()], 2)])], 1);
1727
+ }), 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)]);
1728
+ }, Ie = [], Le = /* @__PURE__ */ m(
1729
+ Ce,
1730
+ xe,
1731
+ Ie,
1732
+ !1,
1733
+ null,
1734
+ "874003cc",
1735
+ null,
1736
+ null
1737
+ );
1738
+ const Se = Le.exports;
1739
+ const Te = [
1740
+ {
1741
+ code: 1,
1742
+ name: "\u662F",
1743
+ transKey: "gd.state.yes"
1744
+ },
1745
+ {
1746
+ code: 0,
1747
+ name: "\u5426",
1748
+ transKey: "gd.state.no"
1749
+ }
1750
+ ], Oe = [
1751
+ { code: "asc", name: "\u5347\u5E8F", transKey: "gd.view.asc" },
1752
+ { code: "desc", name: "\u964D\u5E8F", transKey: "gd.view.desc" }
1753
+ ], Ne = {
1754
+ props: {
1755
+ table: {
1756
+ type: Object,
1757
+ default: () => ({})
1758
+ }
1759
+ },
1760
+ data() {
1761
+ return {
1762
+ record: {},
1763
+ confirmLoading: !1,
1764
+ visible: !1,
1765
+ fullscreen: !1,
1766
+ buttons: [
1767
+ {
1768
+ displayName: "\u786E\u5B9A",
1769
+ functionName: "handleSubmit",
1770
+ show: !0,
1771
+ transKey: "gd.btn.confirm",
1772
+ icon: "el-icon-document-checked"
1773
+ }
1774
+ ],
1775
+ ruleFormData: {
1776
+ num: 0,
1777
+ name: "",
1778
+ type: "1",
1779
+ explain: "",
1780
+ viewName: "",
1781
+ isDefault: 0,
1782
+ isViewTree: !1,
1783
+ order: 100,
1784
+ sortOneField: "",
1785
+ sortOneOrder: "asc",
1786
+ sortTwoField: "",
1787
+ sortTwoOrder: "asc",
1788
+ transKey: null,
1789
+ isDoubleClick: 0
1790
+ },
1791
+ rules: {
1792
+ name: [{ required: !0, message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"), trigger: "change" }],
1793
+ viewName: [
1794
+ { required: !0, message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"), trigger: "change" },
1795
+ {
1796
+ pattern: /^[a-zA-Z]([a-zA-Z0-9]+)?$/,
1797
+ message: this.$i18nt("gd.view.viewNameTip", "\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD!")
1798
+ }
1799
+ ],
1800
+ viewId: [{ required: !0, message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"), trigger: "change" }],
1801
+ order: [{ required: !0, message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"), trigger: "change" }]
1802
+ },
1803
+ isViewTree: !1,
1804
+ isViewType: void 0,
1805
+ defaultList: Te,
1806
+ defaultSortList: Oe,
1807
+ list: [],
1808
+ tableFieldList: [],
1809
+ rulesList: [],
1810
+ queryList: [],
1811
+ filterList: {},
1812
+ buttonRule: [],
1813
+ lodaData: {},
1814
+ viewListData: [],
1815
+ viewDetail: {}
1816
+ };
1817
+ },
1818
+ computed: {
1819
+ showItem() {
1820
+ return this.record.type != 1;
1821
+ },
1822
+ width() {
1823
+ return this.record.type == 1 ? "700px" : "1200px";
1824
+ },
1825
+ title() {
1826
+ 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");
1827
+ },
1828
+ disabled() {
1829
+ return this.record.type == 3;
1830
+ },
1831
+ sortField() {
1832
+ 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"));
1833
+ },
1834
+ plugFilters() {
1835
+ return k();
1836
+ },
1837
+ ...h(["primaryColor"])
1838
+ },
1839
+ components: { viewList: U, viewQuery: Se, FlowsFilter: w, EffectTypeIcon: g },
1840
+ methods: {
1841
+ add() {
1842
+ let i = [], e = [], t = [], l = 0;
1843
+ this.list.forEach((a, r) => {
1844
+ const c = a.effecttype === "inputnumber" ? 0 : a.precision;
1845
+ 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}&${c}`, f = {
1846
+ name: a.alias == "" ? a.columncomment : a.alias,
1847
+ width: a.num,
1848
+ order: r,
1849
+ type: d.length > 1 ? 2 : 1,
1850
+ fieldid: d.length > 1 ? d[1] : d[0],
1851
+ jointableid: a.codegenid,
1852
+ joinfieldid: d[0],
1853
+ orderconfig: a.orderconfig ? 1 : 0,
1854
+ gatherconfig: a.gatherconfig ? 1 : 0,
1855
+ maxTagcount: a.maxtagcount,
1856
+ align: u
1857
+ };
1858
+ i.push(f);
1859
+ }), this.queryList.forEach((a, r) => {
1860
+ let c = {
1861
+ queryType: a.effecttype == "fk" ? 2 : 1,
1862
+ name: a.columncomment,
1863
+ fieldid: a.id,
1864
+ jointableid: a.codegenid,
1865
+ joinfieldid: a.id,
1866
+ order: r,
1867
+ displaystyle: a.displaystyle,
1868
+ options: JSON.stringify(a.options)
1869
+ };
1870
+ e.push(c);
1871
+ }), this.ruleFormData.sortOneField !== "" && t.push({
1872
+ sortField: this.ruleFormData.sortOneField,
1873
+ sortOrder: this.ruleFormData.sortOneOrder
1874
+ }), this.ruleFormData.sortTwoField !== "" && t.push({
1875
+ sortField: this.ruleFormData.sortTwoField,
1876
+ sortOrder: this.ruleFormData.sortTwoOrder
1877
+ });
1878
+ let n = this.filterList.list[0];
1879
+ this.filterList.list.forEach((a) => {
1880
+ l += a.list.length;
1881
+ });
1882
+ let s = n && this.filterList.list.length === 1 && n.referenceFiled === "" && n.referenceTable === "" && n.list.length > 0 && l === 0 ? Object.assign(n, {
1883
+ columnId: 0
1884
+ }) : this.filterList, o = {
1885
+ syscodegenid: this.table.id,
1886
+ name: this.ruleFormData.name,
1887
+ baseview: this.ruleFormData.viewId,
1888
+ description: this.ruleFormData.explain,
1889
+ frozencolumn: this.ruleFormData.num,
1890
+ viewname: this.ruleFormData.viewName,
1891
+ order: this.ruleFormData.order,
1892
+ isdoubleclick: this.ruleFormData.isDoubleClick,
1893
+ syssavedqueryfields: i,
1894
+ isdefault: 1,
1895
+ filterconfig: JSON.stringify(s),
1896
+ syssavedqueryquerys: e,
1897
+ defaultsort: JSON.stringify(t),
1898
+ viewtree: JSON.stringify({}),
1899
+ isviewtree: 0,
1900
+ ruleconfig: JSON.stringify(this.rulesList)
1901
+ };
1902
+ M(o).then((a) => {
1903
+ 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;
1904
+ });
1905
+ },
1906
+ edit() {
1907
+ let i = [], e = [], t = [], l = 0;
1908
+ this.list.forEach((a, r) => {
1909
+ const c = a.effecttype === "inputnumber" ? 0 : a.precision;
1910
+ 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}&${c}`;
1911
+ if (this.isChecked(a.id, this.record.data.syssavedqueryfields)) {
1912
+ let f = {
1913
+ id: 0,
1914
+ name: a.alias == "" ? a.columncomment : a.alias,
1915
+ width: a.num,
1916
+ order: r,
1917
+ type: d.length > 1 ? 2 : 1,
1918
+ fieldid: d.length > 1 ? d[1] : d[0],
1919
+ jointableid: a.codegenid,
1920
+ joinfieldid: d[0],
1921
+ orderconfig: a.orderconfig ? 1 : 0,
1922
+ gatherconfig: a.gatherconfig ? 1 : 0,
1923
+ maxtagcount: a.maxtagcount,
1924
+ align: u
1925
+ };
1926
+ i.push(f);
1927
+ } else {
1928
+ let f = this.record.data.syssavedqueryfields.filter((p) => a.id == (p.type == 1 ? p.fieldid : p.joinfieldid + "-" + p.fieldid))[0];
1929
+ f.width = a.num, f.order = r, f.name = a.alias == "" ? a.columncomment : a.alias, f.orderconfig = a.orderconfig ? 1 : 0, f.gatherconfig = a.gatherconfig ? 1 : 0, f.maxtagcount = a.maxtagcount ? a.maxtagcount : 2, f.align = u, i.push(f);
1930
+ }
1931
+ }), this.record.data.syssavedqueryfields.forEach((a) => {
1932
+ let r = a.type == 1 ? a.fieldid : a.joinfieldid + "-" + a.fieldid;
1933
+ this.isCheckedFilters(r, this.list) && (a.statecodes = 0, i.push(a));
1934
+ }), this.queryList.forEach((a, r) => {
1935
+ if (this.isChecked(a.id, this.record.data.syssavedqueryquerys)) {
1936
+ let c = {
1937
+ id: 0,
1938
+ querytype: a.effecttype == "fk" ? 2 : 1,
1939
+ name: a.columncomment,
1940
+ fieldid: a.id,
1941
+ jointableid: a.codegenid,
1942
+ joinfieldid: a.id,
1943
+ order: r,
1944
+ displaystyle: a.displaystyle,
1945
+ options: JSON.stringify(a.options)
1946
+ };
1947
+ e.push(c);
1948
+ } else {
1949
+ let c = this.record.data.syssavedqueryquerys.filter((d) => d.fieldid == a.id)[0];
1950
+ c.order = r, c.displaystyle = a.displaystyle, e.push(c);
1951
+ }
1952
+ }), this.record.data.syssavedqueryquerys.forEach((a) => {
1953
+ this.isCheckedFilters(a.fieldid, this.queryList) && (a.statecodes = 0, e.push(Object.assign({ ...a }, { options: "" })));
1954
+ }), this.ruleFormData.sortOneField !== "" && t.push({
1955
+ sortField: this.ruleFormData.sortOneField,
1956
+ sortOrder: this.ruleFormData.sortOneOrder
1957
+ }), this.ruleFormData.sortTwoField !== "" && t.push({
1958
+ sortField: this.ruleFormData.sortTwoField,
1959
+ sortOrder: this.ruleFormData.sortTwoOrder
1960
+ });
1961
+ let n = this.filterList.list[0];
1962
+ this.filterList.list.forEach((a) => {
1963
+ l += a.list.length;
1964
+ });
1965
+ let s = n && this.filterList.list.length === 1 && n.referencefiled === "" && n.referencetable === "" && n.list.length > 0 && l === 0 ? Object.assign(n, {
1966
+ columnid: 0
1967
+ }) : this.filterList;
1968
+ const o = Object.assign(
1969
+ { ...this.record.data },
1970
+ {
1971
+ syscodegenid: this.table.id,
1972
+ name: this.ruleFormData.name,
1973
+ baseview: this.ruleFormData.viewId,
1974
+ description: this.ruleFormData.explain,
1975
+ frozencolumn: this.ruleFormData.num,
1976
+ viewname: this.ruleFormData.viewName,
1977
+ order: this.ruleFormData.order,
1978
+ isdoubleclick: this.ruleFormData.isDoubleClick,
1979
+ isdefault: 1,
1980
+ syssavedqueryfields: [...i],
1981
+ syssavedqueryquerys: [...e],
1982
+ filterconfig: JSON.stringify(s),
1983
+ defaultsort: JSON.stringify(t),
1984
+ viewtree: JSON.stringify({}),
1985
+ isviewtree: 0,
1986
+ ruleconfig: JSON.stringify(this.rulesList)
1987
+ }
1988
+ );
1989
+ B(o).then((a) => {
1990
+ 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;
1991
+ });
1992
+ },
1993
+ handleSubmit() {
1994
+ if (this.record.type == 1) {
1995
+ this.$emit("okColumn", {
1996
+ sysviewfields: this.list,
1997
+ frozencolumn: this.ruleFormData.num
1998
+ }), this.closed();
1999
+ return;
2000
+ }
2001
+ this.confirmLoading = !0, this.$refs.ruleForm.validate((i) => {
2002
+ if (i) {
2003
+ if ({ ...this.ruleFormData }, this.list.length === 0) {
2004
+ this.$message.error(this.$i18nt("gd.view.addColumnTip", "\u8BF7\u914D\u7F6E\u663E\u793A\u5217")), this.confirmLoading = !1;
2005
+ return;
2006
+ }
2007
+ if (this.queryList.filter((t) => t.options && !t.options.fieldFiltering).length > 0) {
2008
+ this.$message.error("\u8BF7\u8865\u5145\u67E5\u8BE2\u6761\u4EF6\u5B57\u6BB5\u6570\u636E\uFF01"), this.confirmLoading = !1;
2009
+ return;
2010
+ }
2011
+ this.record.type == 3 ? this.edit() : this.add();
2012
+ } else
2013
+ this.confirmLoading = !1;
2014
+ });
2015
+ },
2016
+ init() {
2017
+ this.confirmLoading = !0, Promise.all([this.getTableList(), this.getViewList(), this.getViewDetail()]).then((i) => {
2018
+ let e = [], t = [], l = this.viewDetail.sysviewqueries ? this.viewDetail.sysviewqueries : [];
2019
+ this.tableFieldList.forEach((s) => {
2020
+ if (!this.isChecked(s.id, this.record.sysviewfields)) {
2021
+ let o = this.record.sysviewfields.filter((a) => a.fieldid == s.id)[0];
2022
+ if (o && o.type == 1) {
2023
+ let a = this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment), r = this.$i18nt(`Dynamics.${o.transkey}`, o.name), c = o.align ? o.align.split("&") : [];
2024
+ const d = Object.assign(
2025
+ { ...s },
2026
+ {
2027
+ order: o.order,
2028
+ num: o.width,
2029
+ aliastranskey: o.transkey ? o.transkey : null,
2030
+ alias: a === r ? "" : r,
2031
+ orderconfig: o.orderconfig == 1,
2032
+ gatherconfig: o.gatherconfig == 1,
2033
+ columnname: s.columnname,
2034
+ codegenid: s.codegenid,
2035
+ maxtagcount: o.maxtagcount ? o.maxtagcount : 2,
2036
+ fkrelations: `${a} -- ${s.columnname}`,
2037
+ fkEffectType: s.effecttype,
2038
+ transkey: s.transkey,
2039
+ operate: "edit",
2040
+ aliasold: r,
2041
+ align: c[0] ? c[0] : "left",
2042
+ visible: c[1] ? c[1] == 1 : !0,
2043
+ displaymode: c[2] ? c[2] : "none",
2044
+ displayprefix: c[3] ? c[3] : "none",
2045
+ preview: c[4] ? c[4] === "true" : !0,
2046
+ download: c[5] ? c[5] === "true" : !0,
2047
+ format: c[6] ? c[6] : String(s.fieldformat),
2048
+ hyperlink: c[7] ? c[7] === "true" : !1,
2049
+ precision: c[8] !== void 0 ? c[8] : s.filedsize
2050
+ }
2051
+ );
2052
+ e.push(d);
2053
+ }
2054
+ }
2055
+ if (s.children && s.children.length > 0 && s.children.forEach((o) => {
2056
+ if (!this.isChecked(o.id + "-" + s.id, this.record.sysviewfields)) {
2057
+ let a = this.record.sysviewfields.filter((r) => (r.type == 2 ? r.joinfieldid + "-" + r.fieldid : r.fieldid) == o.id + "-" + s.id)[0];
2058
+ if (a) {
2059
+ let r = this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment), c = this.$i18nt(`Dynamics.${o.transkey}`, o.columncomment), d = this.$i18nt(`Dynamics.${a.transkey}`, a.name), u = a.align ? a.align.split("&") : [];
2060
+ const f = Object.assign(
2061
+ { ...o },
2062
+ {
2063
+ order: a.order,
2064
+ num: a.width,
2065
+ aliastranskey: a.transkey ? a.transkey : null,
2066
+ alias: c === d ? "" : d,
2067
+ id: o.id + "-" + s.id,
2068
+ orderconfig: a.orderconfig == 1,
2069
+ gatherconfig: a.gatherconfig == 1,
2070
+ fkrelations: `${r} -- ${s.columnname}`,
2071
+ fkEffectType: s.effecttype,
2072
+ maxtagcount: a.maxtagcount ? a.maxtagcount : 2,
2073
+ transkey: o.transkey,
2074
+ operate: "edit",
2075
+ aliasold: d,
2076
+ align: u[0] ? u[0] : "left",
2077
+ visible: u[1] ? u[1] == 1 : !0,
2078
+ displaymode: u[2] ? u[2] : "none",
2079
+ displayprefix: u[3] ? u[3] : "none",
2080
+ preview: u[4] ? u[4] === "true" : !0,
2081
+ download: u[5] ? u[5] === "true" : !0,
2082
+ format: u[6] ? u[6] : String(o.fieldformat),
2083
+ hyperlink: u[7] ? u[7] === "true" : !1,
2084
+ precision: u[8] !== void 0 ? u[8] : o.filedsize
2085
+ }
2086
+ );
2087
+ e.push(f);
2088
+ }
2089
+ }
2090
+ }), !this.isChecked(s.id, l)) {
2091
+ let o = l.filter((r) => r.fieldid == s.id)[0];
2092
+ const a = Object.assign(
2093
+ { ...s },
2094
+ {
2095
+ order: o.order,
2096
+ displaystyle: o.displaystyle !== void 0 ? o.displaystyle : 0,
2097
+ children: null,
2098
+ options: Object.assign({ ...o.options }, { fieldFiltering: !0, columnName: s.columnName, effectType: s.effectType })
2099
+ }
2100
+ );
2101
+ t.push(a);
2102
+ }
2103
+ });
2104
+ const n = v(this.record.type == 3 ? e : this.record.sysviewfields);
2105
+ t = v(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);
2106
+ });
2107
+ },
2108
+ open(i) {
2109
+ this.record = i, this.list = [], this.lodaData = {}, this.queryList = [], this.buttonRule = [], this.ruleFormData = {
2110
+ num: i.frozencolumn,
2111
+ name: i.name ? i.name : "",
2112
+ explain: i.explain ? i.explain : "",
2113
+ type: "1",
2114
+ viewName: i.viewname ? i.viewname : y(8, !1),
2115
+ isDefault: 0,
2116
+ isViewTree: !1,
2117
+ order: i.order ? i.order : 100,
2118
+ sortOneField: "",
2119
+ sortOneOrder: "asc",
2120
+ sortTwoField: "",
2121
+ sortTwoOrder: "asc",
2122
+ viewId: i.viewid ? i.viewid : i.viewlistdata && i.viewlistdata.length > 0 ? i.viewlistdata[0].id : "",
2123
+ transKey: i.transkey ? i.transkey : null,
2124
+ isDoubleClick: i.isdoubleclick !== void 0 ? i.isdoubleclick : 1
2125
+ }, this.visible = !0, this.$nextTick(() => {
2126
+ this.filterList = JSON.parse(JSON.stringify(this.plugFilters)), this.init();
2127
+ });
2128
+ },
2129
+ getViewDetail() {
2130
+ return this.ruleFormData.viewId === "" ? new Promise((i, e) => {
2131
+ i();
2132
+ }) : F({
2133
+ id: this.ruleFormData.viewId
2134
+ }).then((i) => {
2135
+ if (i.success) {
2136
+ let e = i.data.sysviewqueries ? i.data.sysviewqueries : [];
2137
+ e.forEach((s, o) => {
2138
+ if (!s.options)
2139
+ e[o].options = {
2140
+ effectType: "",
2141
+ fieldFormat: "",
2142
+ displayStyle: 0,
2143
+ defaultValue: "",
2144
+ defaultValueList: [],
2145
+ filter: [],
2146
+ hidden: !1,
2147
+ required: !1,
2148
+ openWidth: 80,
2149
+ widthUnit: "%",
2150
+ quick: !1,
2151
+ labelWidth: 120,
2152
+ defaultInterval: [
2153
+ {
2154
+ type: "interval",
2155
+ value: ""
2156
+ },
2157
+ {
2158
+ type: "equal",
2159
+ value: ""
2160
+ }
2161
+ ]
2162
+ };
2163
+ else {
2164
+ const a = typeof s.options == "string" ? JSON.parse(s.options) : s.options;
2165
+ e[o].options = Object.assign(a, {
2166
+ fieldFormat: a.fieldFormat !== void 0 ? a.fieldFormat : "2",
2167
+ openWidth: a.openWidth !== void 0 ? a.openWidth : 80,
2168
+ widthUnit: a.widthUnit !== void 0 ? a.widthUnit : "%",
2169
+ labelWidth: a.labelWidth !== void 0 ? a.labelWidth : 120
2170
+ });
2171
+ }
2172
+ });
2173
+ let t = Object.assign(i.data, {
2174
+ sysviewqueries: []
2175
+ }), l = [], n = [];
2176
+ this.record.type == 2 ? (Object.assign(t, {
2177
+ sysviewqueries: [...e]
2178
+ }), 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, {
2179
+ ...this.record.data
2180
+ }), 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, {
2181
+ sortOneField: n[0] ? n[0].sortField : "",
2182
+ sortOneOrder: n[0] ? n[0].sortOrder : "asc",
2183
+ sortTwoField: n[1] ? n[1].sortField : "",
2184
+ sortTwoOrder: n[1] ? n[1].sortOrder : "asc",
2185
+ isDoubleClick: i.data.isdoubleclick
2186
+ });
2187
+ }
2188
+ return i.data;
2189
+ });
2190
+ },
2191
+ getViewList() {
2192
+ return $({
2193
+ sysCodeGenId: this.table.id
2194
+ }).then((i) => (this.viewListData = i.data.filter((e) => e.type == 1), i.data));
2195
+ },
2196
+ getTableList() {
2197
+ return C({ codeGenId: this.table.id }).then((i) => (i.code === 200 && (this.tableFieldList = i.data), i));
2198
+ },
2199
+ toggleFullscreen() {
2200
+ this.fullscreen = !this.fullscreen;
2201
+ },
2202
+ okFilter(i) {
2203
+ this.filterList = { ...i };
2204
+ },
2205
+ selFilter() {
2206
+ this.$refs.flowsFilter.init(this.filterList);
2207
+ },
2208
+ okSelTable(i) {
2209
+ this.list = [...i];
2210
+ },
2211
+ saveQuery(i) {
2212
+ this.queryList = [...i];
2213
+ },
2214
+ saveRules(i) {
2215
+ this.rulesList = [...i];
2216
+ },
2217
+ closed() {
2218
+ this.fullscreen = !1, this.visible = !1;
2219
+ },
2220
+ doEvent(i) {
2221
+ let e = i.item.functionName;
2222
+ this[e] && this[e]();
2223
+ },
2224
+ getDictionary(i) {
2225
+ return this.$options.filters.dictData(i);
2226
+ },
2227
+ getsortField(i) {
2228
+ const e = this.ruleFormData[i];
2229
+ return this.sortField.filter((t) => t.columnName !== e);
2230
+ },
2231
+ isChecked(i, e) {
2232
+ return e.every((t, l, n) => (t.type == 2 ? t.joinfieldid + "-" + t.fieldid : t.fieldid) != i);
2233
+ },
2234
+ isCheckedFilters(i, e) {
2235
+ return e.every((t, l, n) => t.id != i);
2236
+ },
2237
+ lookupSeled(i) {
2238
+ this.ruleFormData.name = i.defaulttext;
2239
+ }
2240
+ }
2241
+ };
2242
+ var Ve = function() {
2243
+ var e = this, t = e._self._c;
2244
+ 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) {
2245
+ e.visible = l;
2246
+ }, 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) {
2247
+ l.preventDefault();
2248
+ } } }, [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) {
2249
+ e.$set(e.ruleFormData, "name", l);
2250
+ }, 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) {
2251
+ e.$set(e.ruleFormData, "viewName", l);
2252
+ }, 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) {
2253
+ e.$set(e.ruleFormData, "viewId", l);
2254
+ }, expression: "ruleFormData.viewId" } }, e._l(e.viewListData, function(l, n) {
2255
+ return t("el-option", { key: l.id, attrs: { value: l.id, label: e.$i18nt(`Dynamics.${l.transKey}`, l.name) } });
2256
+ }), 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) {
2257
+ e.$set(e.ruleFormData, "order", l);
2258
+ }, 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) {
2259
+ e.$set(e.ruleFormData, "isDoubleClick", l);
2260
+ }, 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) {
2261
+ e.$set(e.ruleFormData, "explain", l);
2262
+ }, 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) {
2263
+ e.$set(e.ruleFormData, "sortOneField", l);
2264
+ }, expression: "ruleFormData.sortOneField" } }, e._l(e.getsortField("sortTwoField"), function(l, n) {
2265
+ 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);
2266
+ }), 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) {
2267
+ e.$set(e.ruleFormData, "sortOneOrder", l);
2268
+ }, expression: "ruleFormData.sortOneOrder" } }, e._l(e.defaultSortList, function(l) {
2269
+ return t("el-radio", { key: l.code, attrs: { label: l.code } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.name)) + " ")]);
2270
+ }), 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) {
2271
+ e.$set(e.ruleFormData, "sortTwoField", l);
2272
+ }, expression: "ruleFormData.sortTwoField" } }, e._l(e.getsortField("sortOneField"), function(l, n) {
2273
+ 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);
2274
+ }), 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) {
2275
+ e.$set(e.ruleFormData, "sortTwoOrder", l);
2276
+ }, expression: "ruleFormData.sortTwoOrder" } }, e._l(e.defaultSortList, function(l) {
2277
+ return t("el-radio", { key: l.code, attrs: { label: l.code } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.name)) + " ")]);
2278
+ }), 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);
2279
+ }, Ee = [], qe = /* @__PURE__ */ m(
2280
+ Ne,
2281
+ Ve,
2282
+ Ee,
2283
+ !1,
2284
+ null,
2285
+ "08a5031a",
2286
+ null,
2287
+ null
2288
+ );
2289
+ const x = qe.exports, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2290
+ __proto__: null,
2291
+ default: x
2292
+ }, Symbol.toStringTag, { value: "Module" }));
2293
+ const Re = {
2294
+ props: {
2295
+ showTitle: {
2296
+ type: Boolean,
2297
+ default: !0
2298
+ },
2299
+ height: {
2300
+ type: Number,
2301
+ default: 400
2302
+ }
2303
+ },
2304
+ data() {
2305
+ return {
2306
+ buttons: [
2307
+ {
2308
+ displayName: '\u7EC4\u5408"\u548C"',
2309
+ functionName: "mergeAnd",
2310
+ show: !0,
2311
+ icon: "el-icon-connection",
2312
+ transKey: "gd.filter.ands",
2313
+ tipI18n: "gd.filter.andsTip",
2314
+ 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",
2315
+ btnType: "tooltip"
2316
+ },
2317
+ {
2318
+ displayName: '\u7EC4\u5408"\u6216"',
2319
+ functionName: "mergeOr",
2320
+ show: !0,
2321
+ icon: "el-icon-connection",
2322
+ transKey: "gd.filter.ors",
2323
+ tipI18n: "gd.filter.orsTip",
2324
+ 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",
2325
+ btnType: "tooltip"
2326
+ },
2327
+ {
2328
+ displayName: "\u6E05\u7A7A",
2329
+ functionName: "empty",
2330
+ show: !0,
2331
+ icon: "el-icon-delete",
2332
+ transKey: "gd.btn.empty",
2333
+ btnType: "danger"
2334
+ },
2335
+ {
2336
+ displayName: "\u65B0\u5EFA",
2337
+ functionName: "newlyBuild",
2338
+ show: !0,
2339
+ transKey: "gd.advancedFind.add",
2340
+ icon: "el-icon-plus"
2341
+ },
2342
+ {
2343
+ displayName: "\u7F16\u8F91\u5217",
2344
+ functionName: "editColumn",
2345
+ show: !0,
2346
+ transKey: "gd.advancedFind.editColumn",
2347
+ icon: "el-icon-edit"
2348
+ },
2349
+ {
2350
+ displayName: "\u7F16\u8F91\u5C5E\u6027",
2351
+ functionName: "editAttribute",
2352
+ show: !1,
2353
+ icon: "el-icon-edit",
2354
+ transKey: "gd.advancedFind.editProperties"
2355
+ },
2356
+ {
2357
+ displayName: "\u53E6\u5B58\u4E3A",
2358
+ functionName: "edit",
2359
+ icon: "el-icon-plus",
2360
+ show: !0,
2361
+ transKey: "gd.advancedFind.anotherSave"
2362
+ }
2363
+ ],
2364
+ ruleFormData: {
2365
+ sysCodeGenId: "",
2366
+ viewId: ""
2367
+ },
2368
+ spinning: !1,
2369
+ visible: !1,
2370
+ sysCodeGenId: "",
2371
+ sysCodeGenoId: "",
2372
+ viewId: "0",
2373
+ viewoId: "0",
2374
+ viewPersonalData: [],
2375
+ viewListData: [],
2376
+ loadData: [],
2377
+ viewLoading: !1,
2378
+ sysViewFilters: {
2379
+ referencefiled: "",
2380
+ referencetable: "",
2381
+ checked: !1,
2382
+ columnid: 0,
2383
+ columnname: "",
2384
+ columntype: "",
2385
+ dynamicreferencefield: "",
2386
+ dynamicreferencetable: "",
2387
+ fieldformat: null,
2388
+ fkdata: [],
2389
+ id: 0,
2390
+ operators: "1",
2391
+ optionsdata: [],
2392
+ pid: null,
2393
+ recordid: null,
2394
+ ruleslist: [],
2395
+ show: !0,
2396
+ tablename: "",
2397
+ type: "1",
2398
+ value: "",
2399
+ values: [],
2400
+ list: []
2401
+ },
2402
+ isAll: !1
2403
+ };
2404
+ },
2405
+ components: { FlowsFilter: w, EditPerson: x },
2406
+ computed: {
2407
+ getQueryTable() {
2408
+ return this.tableLists.filter((i) => i.isquery === 1);
2409
+ },
2410
+ table() {
2411
+ return this.tableLists.filter((i) => i.id === this.sysCodeGenId)[0];
2412
+ },
2413
+ style() {
2414
+ return `min-height:${this.height}px`;
2415
+ },
2416
+ plugFilters() {
2417
+ return k();
2418
+ },
2419
+ ...h(["screenHeight", "tableLists"])
2420
+ },
2421
+ methods: {
2422
+ edit() {
2423
+ this.openPersonalView();
2424
+ },
2425
+ editAttribute() {
2426
+ let i = this.viewPersonalData.filter((t) => t.id == this.viewId)[0], e = {
2427
+ sysviewfilters: i.filterconfig ? JSON.parse(i.filterconfig) : [],
2428
+ frozencolumn: i.frozencolumn,
2429
+ sysviewfields: i.syssavedqueryfields,
2430
+ viewlistdata: [],
2431
+ type: 3,
2432
+ viewid: i.baseview,
2433
+ data: Object.assign(
2434
+ {
2435
+ ...i
2436
+ },
2437
+ {
2438
+ sysviewqueries: i.syssavedqueryquerys
2439
+ }
2440
+ ),
2441
+ id: i.id,
2442
+ order: i.order,
2443
+ explain: i.description,
2444
+ name: i.name
2445
+ };
2446
+ this.openPersonalView(e);
2447
+ },
2448
+ openPersonalView(i) {
2449
+ let e = [];
2450
+ const t = this.$refs.flowsFilter.sysViewFilters;
2451
+ let l = JSON.parse(JSON.stringify(t));
2452
+ if (!this.$refs.flowsFilter.isChecked(e)) {
2453
+ this.$message.warning(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
2454
+ return;
2455
+ }
2456
+ if (this.viewList.sysviewfields.length == 0) {
2457
+ this.$message.warning(this.$i18nt("gd.advancedFind.editColumnTip", "\u8BF7\u7F16\u8F91\u5217!"));
2458
+ return;
2459
+ }
2460
+ let n = Object.assign(
2461
+ { ...this.viewList },
2462
+ {
2463
+ sysviewfilters: l,
2464
+ viewlistdata: this.viewListData,
2465
+ type: 2
2466
+ }
2467
+ ), s = this.viewPersonalData.filter((o) => o.id == this.viewId)[0];
2468
+ this.viewId != "0" && Object.assign(n, {
2469
+ viewid: this.viewId
2470
+ }), s && Object.assign(n, {
2471
+ viewid: s.baseview,
2472
+ data: Object.assign(
2473
+ {
2474
+ ...s
2475
+ },
2476
+ {
2477
+ sysviewqueries: s.syssavedqueryquerys
2478
+ }
2479
+ )
2480
+ }), i && Object.assign(n, {
2481
+ ...i
2482
+ }), this.$refs.editPerson.open(n);
2483
+ },
2484
+ editColumn() {
2485
+ this.$refs.editPerson.open(
2486
+ Object.assign(
2487
+ {
2488
+ ...this.viewList
2489
+ },
2490
+ {
2491
+ type: 1
2492
+ }
2493
+ )
2494
+ );
2495
+ },
2496
+ newlyBuild() {
2497
+ let i = this;
2498
+ i.isEdit ? this.$confirm(this.$i18nt("gd.https.changeContent", "\u662F\u5426\u653E\u5F03\u66F4\u6539?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2499
+ confirmButtonText: this.$i18nt("gd.https.changeOk", "\u786E\u8BA4\u653E\u5F03"),
2500
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2501
+ showClose: !1,
2502
+ confirmButtonLoading: !1,
2503
+ cancelButtonLoading: !1,
2504
+ closeOnClickModal: !1,
2505
+ type: "warning",
2506
+ confirmButtonClass: "el-button--danger",
2507
+ customClass: "custom-alert",
2508
+ callback: () => {
2509
+ i.$refs.refTable.blur();
2510
+ },
2511
+ beforeClose: (e, t, l) => {
2512
+ l(), e === "confirm" && i.newlyBuildOk();
2513
+ }
2514
+ }) : i.newlyBuildOk();
2515
+ },
2516
+ newlyBuildOk() {
2517
+ this.viewId = "0", this.list = [], this.sysViewFilters = Object.assign(
2518
+ {
2519
+ ...this.sysViewFilters
2520
+ },
2521
+ {
2522
+ list: []
2523
+ }
2524
+ ), this.isEdit = !1, this.viewList = {
2525
+ frozencolumn: 0,
2526
+ sysviewfields: []
2527
+ }, this.flowsFilterInit();
2528
+ },
2529
+ seeResult() {
2530
+ return new Promise((i, e) => {
2531
+ let t = { statu: !1, data: {} };
2532
+ this.spinning && i(t), this.viewId === "" && (this.$message.warning(this.$i18nt("gd.advancedFind.selViewTip", "\u8BF7\u9009\u62E9\u89C6\u56FE!")), i(t));
2533
+ let l = [];
2534
+ const n = (c) => (c = c.filter((d, u) => (d.list.length > 0 && (d.list = n(d.list)), (d.columntype != "relevant" || d.columntype != "parental") && d.list.length == 0 && l.push(d), d.fkdata !== void 0 && typeof d.fkdata != "string" && (d.fkdata = JSON.stringify(d.fkdata)), d.ruleslist !== void 0 && typeof d.ruleslist != "string" && (d.ruleslist = JSON.stringify(d.ruleslist)), d.value = this.getItemVal(d), !0)), c);
2535
+ this.$refs.flowsFilter === void 0 && (this.$message.warning(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E")), i(t));
2536
+ const s = this.$refs.flowsFilter.sysViewFilters;
2537
+ let o = JSON.parse(JSON.stringify(s));
2538
+ 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));
2539
+ let a = o.list[0], r = a && o.list.length === 1 && a.referencefiled === "" && a.referencetable === "" && a.list.length > 0 ? Object.assign(a, {
2540
+ columnid: 0
2541
+ }) : o;
2542
+ i({
2543
+ statu: !0,
2544
+ data: {
2545
+ tableData: this.table,
2546
+ viewList: this.viewList,
2547
+ loadData: this.loadData,
2548
+ sysViewFilters: r,
2549
+ viewId: this.viewId
2550
+ }
2551
+ });
2552
+ });
2553
+ },
2554
+ setTableNameData(i) {
2555
+ const e = i !== "" ? i : this.tableLists[0].id, t = this.getQueryTable.filter((l) => l.id == e)[0];
2556
+ this.showTitle && t && (this.sysCodeGenId = t.id, this.sysCodeGenoId = t.id, this.selectTable(t.id)), this.visible = !!(t && this.showTitle);
2557
+ },
2558
+ selectTable(i) {
2559
+ let e = this;
2560
+ if (e.isEdit) {
2561
+ this.$confirm(this.$i18nt("gd.https.changeContent", "\u662F\u5426\u653E\u5F03\u66F4\u6539?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2562
+ confirmButtonText: this.$i18nt("gd.https.changeOk", "\u786E\u8BA4\u653E\u5F03"),
2563
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2564
+ showClose: !1,
2565
+ confirmButtonLoading: !1,
2566
+ cancelButtonLoading: !1,
2567
+ closeOnClickModal: !1,
2568
+ type: "warning",
2569
+ confirmButtonClass: "el-button--danger",
2570
+ customClass: "custom-alert",
2571
+ callback: () => {
2572
+ e.$refs.refTable.blur();
2573
+ },
2574
+ beforeClose: (t, l, n) => {
2575
+ if (n(), t === "confirm") {
2576
+ e.isEdit = !1, e.selectTable(i);
2577
+ return;
2578
+ }
2579
+ e.sysCodeGenId = e.sysCodeGenoId, e.isAll || e.$emit("changeId", e.sysCodeGenoId);
2580
+ }
2581
+ });
2582
+ return;
2583
+ }
2584
+ return this.isAll || this.$emit("changeId", i), this.sysCodeGenoId = i, this.viewId = "0", this.list = [], this.sysViewFilters = Object.assign(
2585
+ { ...this.sysViewFilters },
2586
+ {
2587
+ list: [],
2588
+ referencetable: this.table.tablename,
2589
+ tablename: this.table.tablename
2590
+ }
2591
+ ), this.getTableList(i), this.getPersonalView(i), this.spinning = !0, $({
2592
+ sysCodeGenId: i
2593
+ }).then((t) => (this.viewListData = this.isAll ? t.data : t.data.filter((l) => l.type != 2 && l.type != 3), this.visible = !0, this.viewList = {
2594
+ frozencolumn: 0,
2595
+ sysviewfields: []
2596
+ }, this.viewLoading = !1, this.spinning = !1, this.flowsFilterInit(), t));
2597
+ },
2598
+ selectView(i) {
2599
+ let e = this;
2600
+ if (e.isEdit) {
2601
+ this.$confirm(this.$i18nt("gd.https.changeContent", "\u662F\u5426\u653E\u5F03\u66F4\u6539?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2602
+ confirmButtonText: this.$i18nt("gd.https.changeOk", "\u786E\u8BA4\u653E\u5F03"),
2603
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2604
+ showClose: !1,
2605
+ confirmButtonLoading: !1,
2606
+ cancelButtonLoading: !1,
2607
+ closeOnClickModal: !1,
2608
+ type: "warning",
2609
+ confirmButtonClass: "el-button--danger",
2610
+ customClass: "custom-alert",
2611
+ callback: () => {
2612
+ e.$refs.refView.blur();
2613
+ },
2614
+ beforeClose: (t, l, n) => {
2615
+ if (n(), t === "confirm") {
2616
+ e.isEdit = !1, e.selectView(i);
2617
+ return;
2618
+ }
2619
+ e.viewId = e.viewoId;
2620
+ }
2621
+ });
2622
+ return;
2623
+ }
2624
+ if (this.viewoId = i, this.viewId = i, i == "0") {
2625
+ this.list = [], this.sysViewFilters = Object.assign(
2626
+ {
2627
+ ...this.sysViewFilters
2628
+ },
2629
+ {
2630
+ list: []
2631
+ }
2632
+ ), this.viewList = {
2633
+ frozencolumn: 0,
2634
+ sysviewfields: []
2635
+ }, this.flowsFilterInit();
2636
+ return;
2637
+ }
2638
+ this.spinning = !0, this.sysViewDetails(i).then((t) => {
2639
+ this.getFilterConfig(t);
2640
+ let l = [];
2641
+ this.loadData.forEach((n) => {
2642
+ if (!this.isChecked(n.id, t.data.sysviewfields)) {
2643
+ let s = t.data.sysviewfields.filter((o) => o.fieldid == n.id)[0];
2644
+ if (s && s.type == 1) {
2645
+ let o = {
2646
+ ...n
2647
+ }, a = this.$i18nt(`Dynamics.${n.transkey}`, n.columncomment), r = this.$i18nt(`Dynamics.${s.transkey}`, s.name);
2648
+ 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;
2649
+ let c = s.align ? s.align.split("&") : [];
2650
+ o.align = c[0] ? c[0] : "left", o.visible = c[1] ? c[1] == 1 : !0, o.displaymode = c[2] ? c[2] : "none", o.displayprefix = c[3] ? c[3] : "none", o.preview = c[4] ? c[4] === "true" : !0, o.download = c[5] ? c[5] === "true" : !0, o.format = c[6] ? c[6] : String(n.fieldformat), o.hyperlink = c[7] ? c[7] === "true" : !1, o.precision = c[8] !== void 0 ? c[8] : n.filedsize, l.push(o);
2651
+ }
2652
+ }
2653
+ n.children && n.children.length > 0 && n.children.forEach((s) => {
2654
+ if (!this.isChecked(s.id + "-" + n.id, t.data.sysviewfields)) {
2655
+ let o = t.data.sysviewfields.filter((a) => (a.type == 2 ? a.joinfieldid + "-" + a.fieldid : a.fieldid) == s.id + "-" + n.id)[0];
2656
+ if (o) {
2657
+ let a = {
2658
+ ...s
2659
+ }, r = this.$i18nt(`Dynamics.${n.transkey}`, n.columncomment), c = this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment), d = this.$i18nt(`Dynamics.${o.transkey}`, o.name);
2660
+ a.order = o.order, a.num = o.width, a.aliastranskey = o.transkey ? o.transkey : null, a.alias = c === d ? "" : d, 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 = d;
2661
+ let u = o.align ? o.align.split("&") : [];
2662
+ a.align = u[0] ? u[0] : "left", a.visible = u[1] ? u[1] == 1 : !0, a.displaymode = u[2] ? u[2] : "none", a.displayprefix = u[3] ? u[3] : "none", a.preview = u[4] ? u[4] === "true" : !0, a.download = u[5] ? u[5] === "true" : !0, a.format = u[6] ? u[6] : String(s.fieldformat), a.hyperlink = u[7] ? u[7] === "true" : !1, a.precision = u[8] !== void 0 ? u[8] : s.filedsize, l.push(a);
2663
+ }
2664
+ }
2665
+ });
2666
+ }), l = v(l), this.viewList = {
2667
+ frozencolumn: t.data.frozencolumn,
2668
+ sysviewfields: [...l]
2669
+ };
2670
+ });
2671
+ },
2672
+ sysViewDetails(i) {
2673
+ let e = this.viewPersonalData.filter((l) => l.id == i)[0], t = this.showTitle ? ["\u7F16\u8F91\u5C5E\u6027"] : [];
2674
+ return e != null ? (this.baseShowBtns(t, 2), new Promise((l, n) => {
2675
+ l({
2676
+ data: Object.assign(
2677
+ {
2678
+ ...e
2679
+ },
2680
+ {
2681
+ sysviewfields: e.syssavedqueryfields
2682
+ }
2683
+ )
2684
+ });
2685
+ })) : (this.baseHideBtns(t, 2), F({
2686
+ id: i
2687
+ }).then((l) => l));
2688
+ },
2689
+ getFilterConfig(i) {
2690
+ const e = (a) => (a = a.filter((r, c) => {
2691
+ if (r.type = String(r.type), r.operators = String(r.operators), r.list.length > 0)
2692
+ r.list = e(r.list);
2693
+ else {
2694
+ let d = this.getItemVal(r, 2);
2695
+ r.values = typeof d == "object" ? d.map((u) => Number(u)) : [];
2696
+ }
2697
+ 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;
2698
+ }), a);
2699
+ let l = {
2700
+ ...i.data.filterconfig ? JSON.parse(i.data.filterconfig) : this.plugFilters
2701
+ }, n = e(l.pid === null ? l.list : [l]);
2702
+ this.list = n;
2703
+ let s = l.pid === null ? l : this.plugFilters, o = Object.assign(
2704
+ {
2705
+ ...s
2706
+ },
2707
+ {
2708
+ ...this.sysViewFilters
2709
+ },
2710
+ {
2711
+ list: n,
2712
+ referencetable: this.table.tablename,
2713
+ tablename: this.table.tablename
2714
+ }
2715
+ );
2716
+ if (this.sysViewFilters = o, this.flowsFilterInit(), o.list.length === 0) {
2717
+ this.spinning = !1;
2718
+ return;
2719
+ }
2720
+ setTimeout(() => {
2721
+ this.spinning = !1;
2722
+ }, 800);
2723
+ },
2724
+ getItemVal(i, e = 1) {
2725
+ let t = "";
2726
+ const l = String(i.operators);
2727
+ if (["fk", "about"].includes(i.columntype)) {
2728
+ let n = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
2729
+ t = ["3", "4"].includes(l) ? n : i.value === "" ? "" : Number(i.value);
2730
+ } else if (i.columntype == "user") {
2731
+ let n = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
2732
+ t = ["3", "4"].includes(l) ? n : i.value === "" ? "" : Number(i.value);
2733
+ } else if (i.columntype == "participants") {
2734
+ let n = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
2735
+ t = ["3", "4"].includes(l) ? n : i.value === "" ? "" : Number(i.value);
2736
+ } else
2737
+ t = i.value;
2738
+ return t;
2739
+ },
2740
+ getTableList(i) {
2741
+ return C({
2742
+ codeGenId: i
2743
+ }).then((e) => {
2744
+ this.loadData = e.data;
2745
+ });
2746
+ },
2747
+ getPersonalView(i) {
2748
+ G({
2749
+ codeGenId: i || this.sysCodeGenId
2750
+ }).then((e) => {
2751
+ e.success && (this.viewPersonalData = e.data);
2752
+ });
2753
+ },
2754
+ changeEdit() {
2755
+ this.isEdit = !0;
2756
+ },
2757
+ flowsFilterInit() {
2758
+ this.$nextTick(() => {
2759
+ this.$refs.flowsFilter && this.$refs.flowsFilter.initComponents(this.sysViewFilters);
2760
+ });
2761
+ },
2762
+ viewOk(i) {
2763
+ this.isEdit = !0, this.viewList = {
2764
+ ...i
2765
+ };
2766
+ },
2767
+ configOk() {
2768
+ this.getPersonalView();
2769
+ },
2770
+ baseHideBtns(i, e = 1) {
2771
+ let t = [...this.buttons];
2772
+ 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];
2773
+ },
2774
+ baseShowBtns(i, e = 1) {
2775
+ let t = [...this.buttons];
2776
+ 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];
2777
+ },
2778
+ isChecked(i, e) {
2779
+ return e.every((t, l, n) => (t.type == 2 ? t.joinfieldid + "-" + t.fieldid : t.fieldid) != i);
2780
+ },
2781
+ doEvent(i) {
2782
+ let e = i.item.functionName;
2783
+ if (["mergeAnd", "mergeOr", "empty"].includes(e)) {
2784
+ this.$refs.flowsFilter[e]();
2785
+ return;
2786
+ }
2787
+ this[e]();
2788
+ }
2789
+ },
2790
+ created() {
2791
+ }
2792
+ };
2793
+ var Ke = function() {
2794
+ var e = this, t = e._self._c;
2795
+ 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) {
2796
+ l.preventDefault();
2797
+ } } }, [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) {
2798
+ e.sysCodeGenId = l;
2799
+ }, expression: "sysCodeGenId" } }, e._l(e.getQueryTable, function(l) {
2800
+ 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) + " ")]);
2801
+ }), 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) {
2802
+ e.viewId = l;
2803
+ }, 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) {
2804
+ return [t("el-option", { attrs: { value: l.id, label: e.$i18nt(`Dynamics.${l.transkey}`, l.name) } })];
2805
+ })], 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) {
2806
+ return [t("el-option", { attrs: { value: l.id, label: e.$i18nt(`Dynamics.${l.transkey}`, l.name) } })];
2807
+ })], 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);
2808
+ }, je = [], Pe = /* @__PURE__ */ m(
2809
+ Re,
2810
+ Ke,
2811
+ je,
2812
+ !1,
2813
+ null,
2814
+ "74e40329",
2815
+ null,
2816
+ null
2817
+ );
2818
+ const ze = Pe.exports;
2819
+ const Me = {
2820
+ name: "GdAdvancedFind",
2821
+ props: {
2822
+ showTitle: {
2823
+ type: Boolean,
2824
+ default: !0
2825
+ },
2826
+ isSelect: {
2827
+ type: Boolean,
2828
+ default: !1
2829
+ }
2830
+ },
2831
+ components: {
2832
+ settings: ze,
2833
+ result: () => import("./result.5a9330d7.mjs"),
2834
+ viewList: () => import("./viewList.c05c92be.mjs")
2835
+ },
2836
+ data() {
2837
+ return {
2838
+ sysCodeGenId: "",
2839
+ height: 0,
2840
+ activeKeys: 1,
2841
+ activeKey: "1",
2842
+ disabled: !1,
2843
+ detail: {
2844
+ sysViewFilters: [],
2845
+ viewList: {
2846
+ frozenColumn: 0,
2847
+ sysViewFields: []
2848
+ }
2849
+ }
2850
+ };
2851
+ },
2852
+ watch: {
2853
+ screenHeight() {
2854
+ this.getHeight();
2855
+ }
2856
+ },
2857
+ computed: {
2858
+ getHig() {
2859
+ const i = this.showTitle ? 88 : 56;
2860
+ return this.height - i - 24;
2861
+ },
2862
+ style() {
2863
+ return `min-height:${this.height == 0 ? 600 : this.height}px`;
2864
+ },
2865
+ ...h(["screenHeight", "seekTableId"])
2866
+ },
2867
+ methods: {
2868
+ beforeLeave(i, e) {
2869
+ return console.log(i, e), !1;
2870
+ },
2871
+ changeId(i) {
2872
+ this.sysCodeGenId = i;
2873
+ },
2874
+ change(i) {
2875
+ if (i === "3")
2876
+ return new Promise((e, t) => {
2877
+ this.$refs.settings.seeResult().then((l) => {
2878
+ l.statu ? (this.seeResult(l.data), e()) : t();
2879
+ });
2880
+ });
2881
+ this.$refs.result.show = !1, i === "2" && this.$nextTick(() => {
2882
+ setTimeout(() => {
2883
+ this.$refs.viewList.open({
2884
+ sysCodeGenId: this.$refs.settings.sysCodeGenId
2885
+ });
2886
+ }, 0);
2887
+ }), this.disabled = i === "2", this.$refs.result, this.$emit("change", i);
2888
+ },
2889
+ seeResult(i) {
2890
+ this.detail = i, this.$emit("change", 3), this.$nextTick(() => {
2891
+ setTimeout(() => {
2892
+ this.$refs.result.init(i);
2893
+ }, 0);
2894
+ });
2895
+ },
2896
+ init() {
2897
+ this.$nextTick(() => {
2898
+ this.getHeight();
2899
+ const i = this.seekTableId ? this.seekTableId : "";
2900
+ this.$refs.settings && this.$refs.settings.setTableNameData(i);
2901
+ });
2902
+ },
2903
+ getHeight() {
2904
+ const i = document.getElementById("gd-layout-head-height"), e = i ? i.offsetHeight : 0, t = 12;
2905
+ this.height = this.screenHeight - e - t;
2906
+ }
2907
+ },
2908
+ created() {
2909
+ this.init();
2910
+ }
2911
+ };
2912
+ var Be = function() {
2913
+ var e = this, t = e._self._c;
2914
+ 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) {
2915
+ e.activeKey = l;
2916
+ }, 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);
2917
+ }, Ge = [], Ae = /* @__PURE__ */ m(
2918
+ Me,
2919
+ Be,
2920
+ Ge,
2921
+ !1,
2922
+ null,
2923
+ "8041a336",
2924
+ null,
2925
+ null
2926
+ );
2927
+ const b = Ae.exports;
2928
+ b.install = function(i) {
2929
+ i.component(b.name, b);
2930
+ };
2931
+ const ot = {
2932
+ BasicLayout: S,
2933
+ BlankLayout: _,
2934
+ RouteView: T,
2935
+ PageView: O,
2936
+ Iframe: N,
2937
+ BasicLayoutEmpty: V,
2938
+ BasicLayoutTop: E,
2939
+ AccountSettings: q,
2940
+ BaseSettings: R,
2941
+ SecuritySettings: K,
2942
+ CustomSettings: j,
2943
+ Console: P,
2944
+ AdvancedFind: b,
2945
+ EchartsManage: A
2946
+ }, rt = [
2947
+ {
2948
+ name: "account",
2949
+ pid: 0,
2950
+ id: 10028,
2951
+ meta: {
2952
+ title: "\u4E2A\u4EBA\u9875",
2953
+ icon: "user",
2954
+ show: !1
2955
+ },
2956
+ redirect: "/account/center",
2957
+ component: "RouteView"
2958
+ },
2959
+ {
2960
+ name: "accountSettings",
2961
+ pid: "10028",
2962
+ id: "10030",
2963
+ meta: {
2964
+ title: "\u4E2A\u4EBA\u8BBE\u7F6E",
2965
+ hideHeader: !0,
2966
+ hideChildren: !0,
2967
+ show: !1
2968
+ },
2969
+ redirect: "/account/settings/base",
2970
+ component: "AccountSettings"
2971
+ },
2972
+ {
2973
+ name: "BaseSettings",
2974
+ path: "/account/settings/base",
2975
+ pid: 10030,
2976
+ id: 10031,
2977
+ meta: {
2978
+ title: "\u57FA\u672C\u8BBE\u7F6E",
2979
+ show: !1,
2980
+ transKeyd: "gd.account.basicSettings"
2981
+ },
2982
+ component: "BaseSettings",
2983
+ transKeyd: "gd.account.basicSettings"
2984
+ },
2985
+ {
2986
+ name: "SecuritySettings",
2987
+ path: "/account/settings/security",
2988
+ pid: 10030,
2989
+ id: 10032,
2990
+ meta: {
2991
+ title: "\u5B89\u5168\u8BBE\u7F6E",
2992
+ show: !1,
2993
+ transKeyd: "gd.account.securitySetting"
2994
+ },
2995
+ component: "SecuritySettings",
2996
+ transKeyd: "gd.account.securitySetting"
2997
+ },
2998
+ {
2999
+ name: "CustomSettings",
3000
+ path: "/account/settings/custom",
3001
+ pid: 10030,
3002
+ id: 10033,
3003
+ meta: {
3004
+ title: "\u4E2A\u6027\u5316\u8BBE\u7F6E",
3005
+ show: !1,
3006
+ transKeyd: "gd.account.personalization"
3007
+ },
3008
+ component: "CustomSettings",
3009
+ transKeyd: "gd.account.personalization"
3010
+ },
3011
+ {
3012
+ name: "Console",
3013
+ path: "/welcome",
3014
+ pid: 0,
3015
+ id: 183183,
3016
+ meta: {
3017
+ title: "\u9996\u9875",
3018
+ show: !1,
3019
+ transKeyd: "gd.menu.home"
3020
+ },
3021
+ component: "Console",
3022
+ transKeyd: "gd.menu.home"
3023
+ },
3024
+ {
3025
+ name: "platformapps",
3026
+ path: "/platformapps",
3027
+ pid: 0,
3028
+ id: 183184,
3029
+ meta: {},
3030
+ component: "PageView",
3031
+ redirect: "/platform/application"
3032
+ },
3033
+ {
3034
+ name: "platformapplications",
3035
+ path: "/platform/application",
3036
+ pid: 183184,
3037
+ id: 183185,
3038
+ meta: {
3039
+ title: "\u5E94\u7528",
3040
+ show: !1,
3041
+ transKeyd: "gd.menu.home"
3042
+ },
3043
+ component: "GdApplication",
3044
+ transKeyd: "gd.menu.home"
3045
+ },
3046
+ {
3047
+ name: "advancedFind",
3048
+ path: "/advancedFind",
3049
+ pid: 0,
3050
+ id: 18318999,
3051
+ meta: {
3052
+ title: "\u9AD8\u7EA7\u641C\u7D22",
3053
+ show: !1,
3054
+ transKeyd: "gd.menu.advancedFind"
3055
+ },
3056
+ component: "AdvancedFind",
3057
+ transKeyd: "gd.menu.advancedFind"
3058
+ },
3059
+ {
3060
+ name: "echartsManage",
3061
+ path: "/echartsManage",
3062
+ pid: 0,
3063
+ id: 18320001,
3064
+ meta: {
3065
+ title: "\u4E2A\u4EBA\u56FE\u8868\u7BA1\u7406",
3066
+ show: !1,
3067
+ transKeyd: "gd.menu.echarts"
3068
+ },
3069
+ component: "EchartsManage",
3070
+ transKeyd: "gd.menu.echarts"
3071
+ }
3072
+ ];
3073
+ function ct(i) {
3074
+ const {
3075
+ title: e,
3076
+ target: t,
3077
+ icon: l,
3078
+ link: n,
3079
+ sysviewid: s,
3080
+ tableid: o
3081
+ } = i.meta || {};
3082
+ return {
3083
+ title: e,
3084
+ icon: l || "",
3085
+ target: t,
3086
+ link: n,
3087
+ viewId: s || "",
3088
+ tableId: o || "",
3089
+ id: i.id || "",
3090
+ transKey: i.transKeyd ? i.transKeyd : i.transkey ? `Dynamics.${i.transkey}` : null,
3091
+ viewWeights: i.viewweights ? i.viewweights : "2",
3092
+ type: i.type
3093
+ };
3094
+ }
3095
+ export {
3096
+ x as E,
3097
+ ue as F,
3098
+ U as V,
3099
+ Se as a,
3100
+ rt as b,
3101
+ at as c,
3102
+ ot as d,
3103
+ nt as e,
3104
+ ct as r
3105
+ };