axwen-test31 2.0.0

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 (1234) hide show
  1. package/.browserslistrc +3 -0
  2. package/.editorconfig +5 -0
  3. package/.env.dev +8 -0
  4. package/.env.sit +4 -0
  5. package/.env.uat +4 -0
  6. package/.eslintrc.bak +2 -0
  7. package/.prettierignore +0 -0
  8. package/.prettierrc +10 -0
  9. package/README.md +168 -0
  10. package/babel.config.js +10 -0
  11. package/commitlint.config.js +32 -0
  12. package/package.json +137 -0
  13. package/postcss.config.js +6 -0
  14. package/public/StreamSaver.js +310 -0
  15. package/public/favicon.ico +0 -0
  16. package/public/favicon_back.ico +0 -0
  17. package/public/index.html +94 -0
  18. package/public/mitm.html +166 -0
  19. package/public/sw.js +124 -0
  20. package/sj/folder/g6.js +9 -0
  21. package/sj/g6.js.map +1 -0
  22. package/sonar-project.properties +5 -0
  23. package/src/App.vue +46 -0
  24. package/src/_backup/api/init.js +23 -0
  25. package/src/_backup/api/system.js +232 -0
  26. package/src/_backup/views/init-submit-log.vue +46 -0
  27. package/src/_backup/views/init.vue +112 -0
  28. package/src/actions.js +22 -0
  29. package/src/api/act-type-manage.js +49 -0
  30. package/src/api/allocation-rule.js +14 -0
  31. package/src/api/analysis.js +13 -0
  32. package/src/api/anti-disturbance.js +25 -0
  33. package/src/api/attachment-approval.js +23 -0
  34. package/src/api/calculate.js +10 -0
  35. package/src/api/channel-comp.js +47 -0
  36. package/src/api/channel.js +69 -0
  37. package/src/api/common.js +45 -0
  38. package/src/api/customer/customer-explore.js +162 -0
  39. package/src/api/customer/customer-group.js +168 -0
  40. package/src/api/customer/customer-tags.js +47 -0
  41. package/src/api/event.js +143 -0
  42. package/src/api/file.js +52 -0
  43. package/src/api/gift.js +69 -0
  44. package/src/api/init.js +22 -0
  45. package/src/api/lottery.js +11 -0
  46. package/src/api/market/component-manage.js +16 -0
  47. package/src/api/market.js +507 -0
  48. package/src/api/monitor.js +115 -0
  49. package/src/api/newHome.js +36 -0
  50. package/src/api/oa.js +53 -0
  51. package/src/api/other.js +3 -0
  52. package/src/api/process.js +29 -0
  53. package/src/api/product.js +72 -0
  54. package/src/api/reach.js +126 -0
  55. package/src/api/reachsource.js +4 -0
  56. package/src/api/recommend/recommend-fund.js +96 -0
  57. package/src/api/report.js +44 -0
  58. package/src/api/resource/file.js +83 -0
  59. package/src/api/scene.js +72 -0
  60. package/src/api/system.js +144 -0
  61. package/src/api/task.js +5 -0
  62. package/src/api/temp-content.js +36 -0
  63. package/src/api/template/template-active.js +157 -0
  64. package/src/api/template/template-app-message.js +14 -0
  65. package/src/api/template/template-audio.js +17 -0
  66. package/src/api/template/template-game.js +10 -0
  67. package/src/api/template/template-h5.js +16 -0
  68. package/src/api/template/template-message.js +35 -0
  69. package/src/api/template/template-picture.js +19 -0
  70. package/src/api/template/template-task.js +9 -0
  71. package/src/api/user.js +71 -0
  72. package/src/api/yunhu.js +13 -0
  73. package/src/assets/fonts/D-DINExp-Bold.otf +0 -0
  74. package/src/assets/fonts/Helvetica-Bold.ttf +0 -0
  75. package/src/assets/fonts/fonts.less +8 -0
  76. package/src/assets/iconfont/iconfont.css +348 -0
  77. package/src/assets/iconfont/iconfont.eot +0 -0
  78. package/src/assets/iconfont/iconfont.js +1 -0
  79. package/src/assets/iconfont/iconfont.json +520 -0
  80. package/src/assets/iconfont/iconfont.svg +243 -0
  81. package/src/assets/iconfont/iconfont.ttf +0 -0
  82. package/src/assets/iconfont/iconfont.woff +0 -0
  83. package/src/assets/iconfont/iconfont.woff2 +0 -0
  84. package/src/assets/iconfont1/iconfont.css +359 -0
  85. package/src/assets/iconfont1/iconfont.js +1 -0
  86. package/src/assets/iconfont1/iconfont.json +611 -0
  87. package/src/assets/iconfont1/iconfont.ttf +0 -0
  88. package/src/assets/iconfont1/iconfont.woff +0 -0
  89. package/src/assets/iconfont1/iconfont.woff2 +0 -0
  90. package/src/assets/images/avatar.png +0 -0
  91. package/src/assets/images/brief-report/bg.png +0 -0
  92. package/src/assets/images/brief-report/download.png +0 -0
  93. package/src/assets/images/brief-report/summary.png +0 -0
  94. package/src/assets/images/canvas-icon/act.png +0 -0
  95. package/src/assets/images/canvas-icon/activeCst.png +0 -0
  96. package/src/assets/images/canvas-icon/activityCst.png +0 -0
  97. package/src/assets/images/canvas-icon/appPush.png +0 -0
  98. package/src/assets/images/canvas-icon/canvas-bg.png +0 -0
  99. package/src/assets/images/canvas-icon/chnlRespFlow.png +0 -0
  100. package/src/assets/images/canvas-icon/composeCst.png +0 -0
  101. package/src/assets/images/canvas-icon/content.png +0 -0
  102. package/src/assets/images/canvas-icon/cst.png +0 -0
  103. package/src/assets/images/canvas-icon/custFlow.png +0 -0
  104. package/src/assets/images/canvas-icon/ebankApp.png +0 -0
  105. package/src/assets/images/canvas-icon/equity.png +0 -0
  106. package/src/assets/images/canvas-icon/evtRespFlow.png +0 -0
  107. package/src/assets/images/canvas-icon/flowCst.png +0 -0
  108. package/src/assets/images/canvas-icon/intligCall.png +0 -0
  109. package/src/assets/images/canvas-icon/labelFlow.png +0 -0
  110. package/src/assets/images/canvas-icon/merge.png +0 -0
  111. package/src/assets/images/canvas-icon/prod.png +0 -0
  112. package/src/assets/images/canvas-icon/randomFlow.png +0 -0
  113. package/src/assets/images/canvas-icon/sms.png +0 -0
  114. package/src/assets/images/canvas-icon/teleSalesPlat.png +0 -0
  115. package/src/assets/images/canvas-icon/waitEvent.png +0 -0
  116. package/src/assets/images/canvas-icon/waitFixTime.png +0 -0
  117. package/src/assets/images/canvas-icon/waitToTime.png +0 -0
  118. package/src/assets/images/canvas-icon/weChat.png +0 -0
  119. package/src/assets/images/channel-icon/crm.png +0 -0
  120. package/src/assets/images/channel-icon/ebankapp.png +0 -0
  121. package/src/assets/images/channel-icon/intligcall.png +0 -0
  122. package/src/assets/images/channel-icon/manageapp.png +0 -0
  123. package/src/assets/images/channel-icon/sms.png +0 -0
  124. package/src/assets/images/channel-icon/telesalesplat.png +0 -0
  125. package/src/assets/images/channel-icon/wechat.png +0 -0
  126. package/src/assets/images/channel-icon/wechatminiprogram.png +0 -0
  127. package/src/assets/images/channel-icon/wechatpublicaccount.png +0 -0
  128. package/src/assets/images/egg.png +0 -0
  129. package/src/assets/images/expand.png +0 -0
  130. package/src/assets/images/icon-png/analysis/right-arrows.png +0 -0
  131. package/src/assets/images/icon-png/error.png +0 -0
  132. package/src/assets/images/icon-png/level-icon.png +0 -0
  133. package/src/assets/images/icon-png/success.png +0 -0
  134. package/src/assets/images/icon-png/warn.png +0 -0
  135. package/src/assets/images/icon-side-menu-svg/channel-selected.svg +1 -0
  136. package/src/assets/images/icon-side-menu-svg/channel.svg +23 -0
  137. package/src/assets/images/icon-side-menu-svg/cognization-selected.svg +1 -0
  138. package/src/assets/images/icon-side-menu-svg/cognization.svg +1 -0
  139. package/src/assets/images/icon-side-menu-svg/customer-selected.svg +1 -0
  140. package/src/assets/images/icon-side-menu-svg/customer.svg +1 -0
  141. package/src/assets/images/icon-side-menu-svg/event-selected.svg +1 -0
  142. package/src/assets/images/icon-side-menu-svg/event.svg +1 -0
  143. package/src/assets/images/icon-side-menu-svg/home-selected.svg +1 -0
  144. package/src/assets/images/icon-side-menu-svg/home.svg +1 -0
  145. package/src/assets/images/icon-side-menu-svg/kehu-selected.svg +1 -0
  146. package/src/assets/images/icon-side-menu-svg/kehu.svg +1 -0
  147. package/src/assets/images/icon-side-menu-svg/market-selected.svg +1 -0
  148. package/src/assets/images/icon-side-menu-svg/market.svg +1 -0
  149. package/src/assets/images/icon-side-menu-svg/oa-selected.svg +1 -0
  150. package/src/assets/images/icon-side-menu-svg/oa.svg +1 -0
  151. package/src/assets/images/icon-side-menu-svg/product-selected.svg +1 -0
  152. package/src/assets/images/icon-side-menu-svg/product.svg +1 -0
  153. package/src/assets/images/icon-side-menu-svg/report-selected.svg +1 -0
  154. package/src/assets/images/icon-side-menu-svg/report.svg +1 -0
  155. package/src/assets/images/icon-side-menu-svg/resourceManager-selected.svg +1 -0
  156. package/src/assets/images/icon-side-menu-svg/resourceManager.svg +1 -0
  157. package/src/assets/images/icon-side-menu-svg/scene-selected.svg +1 -0
  158. package/src/assets/images/icon-side-menu-svg/scene.svg +1 -0
  159. package/src/assets/images/icon-side-menu-svg/system-selected.svg +1 -0
  160. package/src/assets/images/icon-side-menu-svg/system.svg +1 -0
  161. package/src/assets/images/icon-side-menu-svg/template-selected.svg +1 -0
  162. package/src/assets/images/icon-side-menu-svg/template.svg +46 -0
  163. package/src/assets/images/icon-svg/biaoqian.svg +1 -0
  164. package/src/assets/images/icon-svg/biaoqianxin.svg +1 -0
  165. package/src/assets/images/icon-svg/big.svg +12 -0
  166. package/src/assets/images/icon-svg/disabled.svg +17 -0
  167. package/src/assets/images/icon-svg/fullscreen.svg +25 -0
  168. package/src/assets/images/icon-svg/huodongmoban.svg +1 -0
  169. package/src/assets/images/icon-svg/scene-icon.svg +29 -0
  170. package/src/assets/images/icon-svg/wenjianjiaguanbi.svg +1 -0
  171. package/src/assets/images/jiugongge.png +0 -0
  172. package/src/assets/images/login/login-bg.png +0 -0
  173. package/src/assets/images/login/logo.svg +16 -0
  174. package/src/assets/images/netError.png +0 -0
  175. package/src/assets/images/sceneDefaultBg.jpg +0 -0
  176. package/src/assets/images/starEmpty.png +0 -0
  177. package/src/assets/images/turntable_circle.png +0 -0
  178. package/src/assets/images/yatop-logo.png +0 -0
  179. package/src/assets/less/animation.less +116 -0
  180. package/src/assets/less/common.less +715 -0
  181. package/src/assets/less/index.less +9 -0
  182. package/src/assets/less/reset.less +295 -0
  183. package/src/assets/less/scroll.less +28 -0
  184. package/src/assets/less/var.less +74 -0
  185. package/src/assets/less/yt-ui-cover.less +12 -0
  186. package/src/assets/svg/1th.svg +27 -0
  187. package/src/assets/svg/2th.svg +27 -0
  188. package/src/assets/svg/3th.svg +23 -0
  189. package/src/assets/svg/activity.svg +45 -0
  190. package/src/assets/svg/activityCount.svg +43 -0
  191. package/src/assets/svg/activityCoverCount.svg +40 -0
  192. package/src/assets/svg/activityNum.svg +39 -0
  193. package/src/assets/svg/app.svg +55 -0
  194. package/src/assets/svg/bit.svg +11 -0
  195. package/src/assets/svg/bizline-active.svg +1 -0
  196. package/src/assets/svg/bizline.svg +1 -0
  197. package/src/assets/svg/channel.svg +37 -0
  198. package/src/assets/svg/chart-empty.svg +1 -0
  199. package/src/assets/svg/content-error.svg +1 -0
  200. package/src/assets/svg/content-loading.svg +1 -0
  201. package/src/assets/svg/custmoer-list.svg +1 -0
  202. package/src/assets/svg/empty.svg +30 -0
  203. package/src/assets/svg/empty_2.svg +28 -0
  204. package/src/assets/svg/equity.svg +39 -0
  205. package/src/assets/svg/event.svg +38 -0
  206. package/src/assets/svg/group.svg +24 -0
  207. package/src/assets/svg/labelCount.svg +34 -0
  208. package/src/assets/svg/line-center.svg +19 -0
  209. package/src/assets/svg/line-left.svg +19 -0
  210. package/src/assets/svg/menu-active.svg +1 -0
  211. package/src/assets/svg/menu.svg +1 -0
  212. package/src/assets/svg/message.svg +36 -0
  213. package/src/assets/svg/monitoring-icon.svg +1 -0
  214. package/src/assets/svg/org-active.svg +1 -0
  215. package/src/assets/svg/org.svg +1 -0
  216. package/src/assets/svg/product.svg +41 -0
  217. package/src/assets/svg/scene-share.svg +22 -0
  218. package/src/assets/svg/status-running.svg +19 -0
  219. package/src/assets/svg/status-stop.svg +16 -0
  220. package/src/assets/svg/template.svg +40 -0
  221. package/src/bus.js +3 -0
  222. package/src/components/Editor.vue +108 -0
  223. package/src/components/attachment-approval/assets/svg/file-icon-jpg.svg +1 -0
  224. package/src/components/attachment-approval/assets/svg/file-icon-pdf.svg +1 -0
  225. package/src/components/attachment-approval/assets/svg/file-icon-png.svg +1 -0
  226. package/src/components/attachment-approval/assets/svg/file-icon-word.svg +1 -0
  227. package/src/components/attachment-approval/assets/svg/upload-icon.svg +1 -0
  228. package/src/components/attachment-approval/attachment-approval-dialog.vue +240 -0
  229. package/src/components/attachment-approval/attachment-approval-item.vue +88 -0
  230. package/src/components/attachment-approval/attachment-approval.js +68 -0
  231. package/src/components/attachment-approval/attachment-approval.vue +124 -0
  232. package/src/components/channel-components-config/channel-class-rule.vue +54 -0
  233. package/src/components/channel-components-config/channel-fields.vue +0 -0
  234. package/src/components/channel-components-config/channel-reach-temp.vue +0 -0
  235. package/src/components/channel-components-config/channel-select-url-dialog.vue +145 -0
  236. package/src/components/channel-components-config/channel-select.vue +184 -0
  237. package/src/components/channel-components-config/channel-switch.vue +69 -0
  238. package/src/components/channel-components-config/channel-text.vue +75 -0
  239. package/src/components/channel-components-config/channel-time-range-picker.vue +100 -0
  240. package/src/components/channel-components-config/channel-time.vue +62 -0
  241. package/src/components/channel-components-config/channel-timerange.vue +67 -0
  242. package/src/components/channel-components-config/channel-turnover.vue +51 -0
  243. package/src/components/channel-components-config/configs.js +13 -0
  244. package/src/components/channel-components-config/field-key.vue +40 -0
  245. package/src/components/channel-components-view/channel-class-rule.vue +44 -0
  246. package/src/components/channel-components-view/channel-fields.vue +0 -0
  247. package/src/components/channel-components-view/channel-reach-temp.vue +57 -0
  248. package/src/components/channel-components-view/channel-select.vue +55 -0
  249. package/src/components/channel-components-view/channel-switch.vue +53 -0
  250. package/src/components/channel-components-view/channel-text.vue +72 -0
  251. package/src/components/channel-components-view/channel-time.vue +62 -0
  252. package/src/components/channel-components-view/channel-timerange.vue +113 -0
  253. package/src/components/channel-components-view/channel-turnover.vue +57 -0
  254. package/src/components/channel-params-loading.vue +100 -0
  255. package/src/components/chart/resize.js +55 -0
  256. package/src/components/chart/the-chart.vue +68 -0
  257. package/src/components/creator-select/index.vue +119 -0
  258. package/src/components/customer-explore-select/index.vue +248 -0
  259. package/src/components/customer-label-select/index.vue +184 -0
  260. package/src/components/customer-loading.vue +238 -0
  261. package/src/components/dynamic-components/form-date.vue +28 -0
  262. package/src/components/dynamic-components/form-input-number.vue +30 -0
  263. package/src/components/dynamic-components/form-input.vue +30 -0
  264. package/src/components/dynamic-components/form-multiple-select.vue +33 -0
  265. package/src/components/dynamic-components/form-select.vue +37 -0
  266. package/src/components/dynamic-components/form-time-picker.vue +28 -0
  267. package/src/components/ellipsisText.vue +45 -0
  268. package/src/components/empty.vue +22 -0
  269. package/src/components/event-edit/event-edit.vue +83 -0
  270. package/src/components/event-edit/index.js +3 -0
  271. package/src/components/form-img/form-img.vue +82 -0
  272. package/src/components/form-img/index.js +3 -0
  273. package/src/components/h5-editor.vue +344 -0
  274. package/src/components/image-selector/index.js +3 -0
  275. package/src/components/image-selector/main.vue +239 -0
  276. package/src/components/member-select.vue +89 -0
  277. package/src/components/product-select-dialog/index.vue +237 -0
  278. package/src/components/radio-table.vue +97 -0
  279. package/src/components/search-select.vue +150 -0
  280. package/src/components/split-panel/index.js +2 -0
  281. package/src/components/split-panel/index.less +114 -0
  282. package/src/components/split-panel/split.vue +159 -0
  283. package/src/components/split-panel/trigger.vue +43 -0
  284. package/src/components/system-layout.vue +88 -0
  285. package/src/components/tag-editor.vue +262 -0
  286. package/src/components/temp-content/channel-return-dialog.vue +227 -0
  287. package/src/components/temp-content/event-dialog.vue +298 -0
  288. package/src/components/temp-content/functions.js +47 -0
  289. package/src/components/temp-content/index.vue +378 -0
  290. package/src/components/temp-content/label-dialog.vue +291 -0
  291. package/src/components/temp-content/product-dialog.vue +268 -0
  292. package/src/components/temp-content/product-select-dialog.vue +225 -0
  293. package/src/components/temp-content/temp-content-preview.vue +221 -0
  294. package/src/components/temp-selector.vue +83 -0
  295. package/src/components/transform/download-act-btn.vue +245 -0
  296. package/src/components/transform/download-btn.vue +198 -0
  297. package/src/components/transform/uploader-btn.vue +143 -0
  298. package/src/components/transform/uploaderOptions.js +8 -0
  299. package/src/components/transform/utils/computeMD5.js +61 -0
  300. package/src/components/tree-select.vue +371 -0
  301. package/src/components/yt-editor.vue +303 -0
  302. package/src/components/yt-org/1.json +11720 -0
  303. package/src/components/yt-org/data.js +159 -0
  304. package/src/components/yt-org/index.js +3 -0
  305. package/src/components/yt-org/main.vue +143 -0
  306. package/src/components/yt-table-download.vue +226 -0
  307. package/src/components/yt-/342/200/216questionnaire/index.js +3 -0
  308. package/src/components/yt-/342/200/216questionnaire/main.vue +422 -0
  309. package/src/directive/common.js +8 -0
  310. package/src/directive/directives.js +13 -0
  311. package/src/directive/yt-dialog-drag/index.js +3 -0
  312. package/src/directive/yt-dialog-drag/yt-dialog-drag.js +88 -0
  313. package/src/directive/yt-hover/base.js +106 -0
  314. package/src/directive/yt-hover/index.js +14 -0
  315. package/src/hooks/index.js +1 -0
  316. package/src/hooks/system.js +18 -0
  317. package/src/icons/index.js +3 -0
  318. package/src/icons/resource/empty.png +0 -0
  319. package/src/icons/resource/icon.png +0 -0
  320. package/src/icons/resource/icon2.png +0 -0
  321. package/src/icons/resource/image.png +0 -0
  322. package/src/icons/svg/analysis-logo.svg +1 -0
  323. package/src/icons/svg/btn-export.svg +1 -0
  324. package/src/icons/svg/channel-class-rule.svg +1 -0
  325. package/src/icons/svg/channel-fields.svg +1 -0
  326. package/src/icons/svg/channel-reach-temp.svg +1 -0
  327. package/src/icons/svg/channel-select.svg +1 -0
  328. package/src/icons/svg/channel-switch.svg +1 -0
  329. package/src/icons/svg/channel-text.svg +1 -0
  330. package/src/icons/svg/channel-time.svg +1 -0
  331. package/src/icons/svg/channel-timerange.svg +1 -0
  332. package/src/icons/svg/channel-turnover.svg +1 -0
  333. package/src/icons/svg/earlyTermination.svg +20 -0
  334. package/src/icons/svg/equity-active.svg +1 -0
  335. package/src/icons/svg/equity.svg +1 -0
  336. package/src/icons/svg/event-file.svg +1 -0
  337. package/src/icons/svg/event-tree-icon.svg +1 -0
  338. package/src/icons/svg/finish.svg +20 -0
  339. package/src/icons/svg/full-screen.svg +12 -0
  340. package/src/icons/svg/monitoring-operate1.svg +1 -0
  341. package/src/icons/svg/monitoring-operate2.svg +1 -0
  342. package/src/icons/svg/monitoring-operate3.svg +1 -0
  343. package/src/icons/svg/more.svg +12 -0
  344. package/src/icons/svg/publish.svg +1 -0
  345. package/src/icons/svg/running.svg +20 -0
  346. package/src/icons/svg/scene-add.svg +1 -0
  347. package/src/icons/svg/scene-edit.svg +1 -0
  348. package/src/icons/svg/scene-sub.svg +1 -0
  349. package/src/icons/svg/tree-add.svg +1 -0
  350. package/src/icons/svg/tree-del.svg +1 -0
  351. package/src/icons/svg/tree-down.svg +1 -0
  352. package/src/icons/svg/tree-edit.svg +1 -0
  353. package/src/icons/svg/tree-file.svg +1 -0
  354. package/src/icons/svg/tree-refresh.svg +1 -0
  355. package/src/icons/svg/tree-up.svg +1 -0
  356. package/src/icons/svgo.yml +21 -0
  357. package/src/layout/layout-chrome-nav.vue +420 -0
  358. package/src/layout/layout-header.vue +393 -0
  359. package/src/layout/layout-nav.vue +583 -0
  360. package/src/layout/layout-side1.vue +290 -0
  361. package/src/layout/layout-water.vue +75 -0
  362. package/src/layout/layout.vue +610 -0
  363. package/src/layout/my-keep-alive.js +178 -0
  364. package/src/libs/yt-ui/index.js +9 -0
  365. package/src/main.js +149 -0
  366. package/src/micro-app.js +113 -0
  367. package/src/public-path.js +9 -0
  368. package/src/router/analysis.js +21 -0
  369. package/src/router/brief-report.js +13 -0
  370. package/src/router/channel.js +22 -0
  371. package/src/router/controlCenter.js +39 -0
  372. package/src/router/customer.js +367 -0
  373. package/src/router/event-center.js +409 -0
  374. package/src/router/gift.js +31 -0
  375. package/src/router/h5-lucky-draw.js +183 -0
  376. package/src/router/index.js +164 -0
  377. package/src/router/market-activity.js +31 -0
  378. package/src/router/market.js +499 -0
  379. package/src/router/monitoring-center.js +39 -0
  380. package/src/router/oa.js +41 -0
  381. package/src/router/process.js +58 -0
  382. package/src/router/productCenter.js +60 -0
  383. package/src/router/reach-center.js +349 -0
  384. package/src/router/report.js +274 -0
  385. package/src/router/scene.js +64 -0
  386. package/src/router/system.js +147 -0
  387. package/src/router/task.js +13 -0
  388. package/src/router/template.js +161 -0
  389. package/src/sensors.js +22 -0
  390. package/src/store/index.js +364 -0
  391. package/src/store/modules/common.js +37 -0
  392. package/src/store/modules/customerExplore.js +24 -0
  393. package/src/store/modules/market.js +31 -0
  394. package/src/store/modules/nav.js +97 -0
  395. package/src/store/variables.js +87 -0
  396. package/src/styles/common.less +4 -0
  397. package/src/styles/el-custom.less +106 -0
  398. package/src/styles/index.less +4 -0
  399. package/src/styles/tailwind.less +34 -0
  400. package/src/styles/yt-custom.less +31 -0
  401. package/src/utils/ajax.js +377 -0
  402. package/src/utils/auth.js +18 -0
  403. package/src/utils/buildHTML.js +194 -0
  404. package/src/utils/charts.js +51 -0
  405. package/src/utils/clickoutside.js +58 -0
  406. package/src/utils/copyLink.js +18 -0
  407. package/src/utils/deepClone.js +71 -0
  408. package/src/utils/dom.js +194 -0
  409. package/src/utils/encrypt.js +113 -0
  410. package/src/utils/getOptions.js +35 -0
  411. package/src/utils/htmlToPdf.js +56 -0
  412. package/src/utils/image.js +24 -0
  413. package/src/utils/index.js +786 -0
  414. package/src/utils/monitor.js +57 -0
  415. package/src/utils/repeatApi.js +39 -0
  416. package/src/utils/setProfile.js +21 -0
  417. package/src/utils/user.js +34 -0
  418. package/src/utils/variable.js +503 -0
  419. package/src/utils/xml.js +133 -0
  420. package/src/views/404.vue +96 -0
  421. package/src/views/abnormal-activity/index.vue +120 -0
  422. package/src/views/allocation-rule/common.js +12 -0
  423. package/src/views/allocation-rule/components/attr-select.vue +89 -0
  424. package/src/views/allocation-rule/index.vue +283 -0
  425. package/src/views/analysis/activity/Detail.vue +375 -0
  426. package/src/views/analysis/activity/Effect.vue +349 -0
  427. package/src/views/analysis/activity/Overview.vue +339 -0
  428. package/src/views/analysis/activity/index.vue +93 -0
  429. package/src/views/analysis/index.vue +12 -0
  430. package/src/views/analysis/utils.js +40 -0
  431. package/src/views/blank.vue +88 -0
  432. package/src/views/briefReportNew/components/bar-card.vue +110 -0
  433. package/src/views/briefReportNew/components/progress-list.vue +66 -0
  434. package/src/views/briefReportNew/components/tab-content.vue +179 -0
  435. package/src/views/briefReportNew/components/table-list.vue +102 -0
  436. package/src/views/briefReportNew/components/target-card.vue +75 -0
  437. package/src/views/briefReportNew/components/the-pending-table.vue +71 -0
  438. package/src/views/briefReportNew/components/the-pengding-progress.vue +75 -0
  439. package/src/views/briefReportNew/config/option.js +20 -0
  440. package/src/views/briefReportNew/index.vue +221 -0
  441. package/src/views/channel/avoidDisturb/avoid-disturb-range-picker.vue +49 -0
  442. package/src/views/channel/avoidDisturb/cstRange.vue +89 -0
  443. package/src/views/channel/avoidDisturb/index.vue +703 -0
  444. package/src/views/channel/channel-side.vue +354 -0
  445. package/src/views/channel/format.js +72 -0
  446. package/src/views/channel/index.vue +535 -0
  447. package/src/views/channel-components/components/component-left.vue +525 -0
  448. package/src/views/channel-components/components/component-view-item.vue +70 -0
  449. package/src/views/channel-components/components/components-configs.vue +104 -0
  450. package/src/views/channel-components/components/components-content.vue +288 -0
  451. package/src/views/channel-components/components/content-comp-dialog.vue +157 -0
  452. package/src/views/channel-components/config.js +273 -0
  453. package/src/views/channel-components/edit.vue +289 -0
  454. package/src/views/channel-components/index.vue +210 -0
  455. package/src/views/channel-components/util.js +20 -0
  456. package/src/views/controlCenter/chart-line.vue +64 -0
  457. package/src/views/controlCenter/chartOption.js +321 -0
  458. package/src/views/controlCenter/common-label.vue +48 -0
  459. package/src/views/controlCenter/content-card.vue +39 -0
  460. package/src/views/controlCenter/detail/channelDetail.vue +135 -0
  461. package/src/views/controlCenter/detail/eventDetail.vue +123 -0
  462. package/src/views/controlCenter/detail/labelDetail.vue +91 -0
  463. package/src/views/controlCenter/index.vue +146 -0
  464. package/src/views/controlCenter/label-card.vue +48 -0
  465. package/src/views/controlCenter/tab-content.vue +189 -0
  466. package/src/views/customer/app-act.vue +314 -0
  467. package/src/views/customer/bitmap/condition-save.vue +80 -0
  468. package/src/views/customer/bitmap/dialog.vue +129 -0
  469. package/src/views/customer/bitmap/loading-condition.vue +176 -0
  470. package/src/views/customer/bitmap/loading-log.vue +110 -0
  471. package/src/views/customer/bitmap/pre-loading.vue +241 -0
  472. package/src/views/customer/business-editor-tree.vue +309 -0
  473. package/src/views/customer/components/compound-tags-dialog.vue +141 -0
  474. package/src/views/customer/components/customer-to-group.vue +549 -0
  475. package/src/views/customer/components/reward-punishment.vue +106 -0
  476. package/src/views/customer/compound-tags.vue +231 -0
  477. package/src/views/customer/computed-tags/confirm-modal-new.vue +473 -0
  478. package/src/views/customer/computed-tags/confirm-modal.vue +116 -0
  479. package/src/views/customer/computed-tags/edit-modal-new.vue +512 -0
  480. package/src/views/customer/computed-tags/index.vue +290 -0
  481. package/src/views/customer/customer-ai-group-detail.vue +421 -0
  482. package/src/views/customer/customer-ai-group.vue +124 -0
  483. package/src/views/customer/customer-editor-header.vue +165 -0
  484. package/src/views/customer/customer-editor-list-multiple.vue +47 -0
  485. package/src/views/customer/customer-editor-list.vue +363 -0
  486. package/src/views/customer/customer-editor-org.vue +60 -0
  487. package/src/views/customer/customer-editor-save.vue +140 -0
  488. package/src/views/customer/customer-editor-tree-detail.vue +66 -0
  489. package/src/views/customer/customer-editor-tree.vue +457 -0
  490. package/src/views/customer/customer-get-from-group.vue +167 -0
  491. package/src/views/customer/customer-group-result-charts.vue +263 -0
  492. package/src/views/customer/customer-group-upload-detail.vue +211 -0
  493. package/src/views/customer/customer-group-upload-ext.vue +290 -0
  494. package/src/views/customer/customer-group-upload.vue +291 -0
  495. package/src/views/customer/customer-group.vue +521 -0
  496. package/src/views/customer/customer-judge-cst-group.vue +190 -0
  497. package/src/views/customer/customer-label-update-recycler.vue +151 -0
  498. package/src/views/customer/customer-label-update.vue +366 -0
  499. package/src/views/customer/customer-result-charts-detail.vue +387 -0
  500. package/src/views/customer/customer-result-charts.vue +264 -0
  501. package/src/views/customer/customer-result-checkbox.vue +58 -0
  502. package/src/views/customer/customer-result-fields-select-avyno.vue +298 -0
  503. package/src/views/customer/customer-result-fields-select-model.vue +241 -0
  504. package/src/views/customer/customer-result-fields-select-tab.vue +229 -0
  505. package/src/views/customer/customer-result-fields-select.vue +271 -0
  506. package/src/views/customer/customer-result-fields.vue +313 -0
  507. package/src/views/customer/customer-result-filter.vue +265 -0
  508. package/src/views/customer/customer-result.vue +499 -0
  509. package/src/views/customer/explore/customer-explore-detail.vue +421 -0
  510. package/src/views/customer/explore/customer-explore.vue +623 -0
  511. package/src/views/customer/explore/customer-twice-explore.vue +566 -0
  512. package/src/views/customer/growth-center.vue +156 -0
  513. package/src/views/customer/gruop/group-member.vue +338 -0
  514. package/src/views/customer/gruop/member-dialog.vue +179 -0
  515. package/src/views/customer/gruop/member-maintain.vue +241 -0
  516. package/src/views/customer/marketing-anti-disturbance.vue +199 -0
  517. package/src/views/customer/name-manage/index.vue +155 -0
  518. package/src/views/customer/name-manage/rule-name.vue +138 -0
  519. package/src/views/customer/personas/age-chart.vue +177 -0
  520. package/src/views/customer/personas/count-chart.vue +154 -0
  521. package/src/views/customer/personas/index.vue +220 -0
  522. package/src/views/customer/personas/level-chart.vue +143 -0
  523. package/src/views/customer/staff-center.vue +237 -0
  524. package/src/views/gift/gift-type-manage/gift-list-dialog.vue +115 -0
  525. package/src/views/gift/gift-type-manage/index.vue +85 -0
  526. package/src/views/gift/gift-type-manage/type-edit-dialog.vue +104 -0
  527. package/src/views/gift/gift-type-manage/type-select.vue +198 -0
  528. package/src/views/gift/gift-type-manage/type-table.vue +494 -0
  529. package/src/views/gift/gift-type-manage/type-tree.vue +333 -0
  530. package/src/views/gift/manage/index.vue +85 -0
  531. package/src/views/gift/manage/list/index.vue +545 -0
  532. package/src/views/gift/manage/pack/gift-select-dialog.vue +302 -0
  533. package/src/views/gift/manage/pack/gift-select.vue +201 -0
  534. package/src/views/gift/manage/pack/index.vue +583 -0
  535. package/src/views/gift/manage/pack/log-dialog.vue +294 -0
  536. package/src/views/gift/type/gift-list-dialog.vue +164 -0
  537. package/src/views/gift/type/gift-setting-dialog.vue +198 -0
  538. package/src/views/gift/type/index.vue +81 -0
  539. package/src/views/gift/type/type-edit-dialog.vue +109 -0
  540. package/src/views/gift/type/type-select.vue +184 -0
  541. package/src/views/gift/type/type-table.vue +482 -0
  542. package/src/views/gift/type/type-tree.vue +283 -0
  543. package/src/views/home-new/activity-data.vue +214 -0
  544. package/src/views/home-new/activity-strategy.vue +129 -0
  545. package/src/views/home-new/channel-data.vue +95 -0
  546. package/src/views/home-new/common/option.js +260 -0
  547. package/src/views/home-new/components/AnnoumcementDetail.vue +234 -0
  548. package/src/views/home-new/components/chart-container.vue +54 -0
  549. package/src/views/home-new/components/chart-parent.vue +111 -0
  550. package/src/views/home-new/components/chart-switch.vue +172 -0
  551. package/src/views/home-new/components/detail-card.vue +180 -0
  552. package/src/views/home-new/components/empty.vue +22 -0
  553. package/src/views/home-new/components/msg-card.vue +194 -0
  554. package/src/views/home-new/components/notice-card copy.vue +82 -0
  555. package/src/views/home-new/components/notice-card.vue +129 -0
  556. package/src/views/home-new/components/part-body.vue +36 -0
  557. package/src/views/home-new/components/ranking-list.vue +84 -0
  558. package/src/views/home-new/components/statistics-small-card.vue +70 -0
  559. package/src/views/home-new/components/tab-content.vue +168 -0
  560. package/src/views/home-new/index.vue +469 -0
  561. package/src/views/home-new/label-data.vue +271 -0
  562. package/src/views/home-new/list-data.vue +99 -0
  563. package/src/views/identify.vue +121 -0
  564. package/src/views/iframe/activity-detail-report.vue +31 -0
  565. package/src/views/iframe/analysis-activity-effectiveness.vue +31 -0
  566. package/src/views/iframe/analysis-activity-summary.vue +29 -0
  567. package/src/views/iframe/analysis-effectiveness-funnel.vue +29 -0
  568. package/src/views/iframe/analysis-market-effectiveness.vue +29 -0
  569. package/src/views/iframe/analysis-market-summary.vue +29 -0
  570. package/src/views/iframe/business-detail.vue +31 -0
  571. package/src/views/iframe/business-summary-account.vue +31 -0
  572. package/src/views/iframe/business-summary-branch.vue +31 -0
  573. package/src/views/iframe/business-summary-head.vue +31 -0
  574. package/src/views/iframe/business-summary-sub.vue +31 -0
  575. package/src/views/iframe/business-summary.vue +31 -0
  576. package/src/views/iframe/customer-purch-details.vue +31 -0
  577. package/src/views/iframe/customer-repurch-behavior.vue +31 -0
  578. package/src/views/iframe/product-sale-analysis.vue +31 -0
  579. package/src/views/iframe/product-sales-channel.vue +31 -0
  580. package/src/views/iframe/purch-product-detail.vue +31 -0
  581. package/src/views/iframe/self-analysis.vue +31 -0
  582. package/src/views/login/index.vue +184 -0
  583. package/src/views/login/login.less +97 -0
  584. package/src/views/market/act-type-setting/act-type-edit-dialog.vue +111 -0
  585. package/src/views/market/act-type-setting/act-type-select.vue +153 -0
  586. package/src/views/market/act-type-setting/act-type-table.vue +455 -0
  587. package/src/views/market/act-type-setting/act-type-tree.vue +235 -0
  588. package/src/views/market/act-type-setting/index.vue +71 -0
  589. package/src/views/market/business/components/add.vue +638 -0
  590. package/src/views/market/business/components/app-pop-template.vue +182 -0
  591. package/src/views/market/business/components/business-pause.vue +99 -0
  592. package/src/views/market/business/components/business-recover.vue +131 -0
  593. package/src/views/market/business/components/business-side-channel.vue +265 -0
  594. package/src/views/market/business/components/business-side-content.vue +503 -0
  595. package/src/views/market/business/components/business-side-customer.vue +257 -0
  596. package/src/views/market/business/components/business-side-detail.vue +305 -0
  597. package/src/views/market/business/components/business-side-opportunity-trigger.vue +427 -0
  598. package/src/views/market/business/components/util.js +379 -0
  599. package/src/views/market/business/index.vue +468 -0
  600. package/src/views/market/calculate/customer-group.vue +199 -0
  601. package/src/views/market/calculate/history-data.vue +457 -0
  602. package/src/views/market/calculate/index.vue +260 -0
  603. package/src/views/market/common/config.js +352 -0
  604. package/src/views/market/component-manage/index.vue +150 -0
  605. package/src/views/market/components/act-target.vue +548 -0
  606. package/src/views/market/components/activity-import-dialog.vue +115 -0
  607. package/src/views/market/components/channel-target.vue +204 -0
  608. package/src/views/market/components/corn-editor-dialog-new.vue +304 -0
  609. package/src/views/market/components/corn-editor.vue +115 -0
  610. package/src/views/market/components/cycle-setting.vue +321 -0
  611. package/src/views/market/components/event-group-selector.vue +140 -0
  612. package/src/views/market/components/event-template/apply-confirm.vue +56 -0
  613. package/src/views/market/components/event-template/index-origin.vue +357 -0
  614. package/src/views/market/components/event-template/index.vue +466 -0
  615. package/src/views/market/components/event-template/scene-template-index.vue +304 -0
  616. package/src/views/market/components/event-template/scene-template.vue +85 -0
  617. package/src/views/market/components/event-template/share-dialog.vue +111 -0
  618. package/src/views/market/components/event-template/template-item.vue +243 -0
  619. package/src/views/market/components/game-temp.vue +169 -0
  620. package/src/views/market/components/sub-activity-table.vue +173 -0
  621. package/src/views/market/components/target-run-time.vue +94 -0
  622. package/src/views/market/components/task-temp.vue +155 -0
  623. package/src/views/market/event/event-channel-status.vue +30 -0
  624. package/src/views/market/event/event-cycle.vue +773 -0
  625. package/src/views/market/event/event-delay.vue +102 -0
  626. package/src/views/market/event/event-log.vue +214 -0
  627. package/src/views/market/event/event-modify-dialog.vue +76 -0
  628. package/src/views/market/event/event-timeline.vue +80 -0
  629. package/src/views/market/event/event.vue +1226 -0
  630. package/src/views/market/event/lotteryManage.vue +602 -0
  631. package/src/views/market/external-act-manage/index.vue +329 -0
  632. package/src/views/market/group/group-analysis.vue +213 -0
  633. package/src/views/market/group/group-edit.vue +437 -0
  634. package/src/views/market/group/group-link.vue +127 -0
  635. package/src/views/market/group/group.vue +208 -0
  636. package/src/views/market/index.vue +441 -0
  637. package/src/views/market/lottery/creatActivity.vue +108 -0
  638. package/src/views/market/lottery/lotteryManage.vue +212 -0
  639. package/src/views/market/lottery/publish.vue +299 -0
  640. package/src/views/market/lottery/rewardTable.vue +310 -0
  641. package/src/views/market/lottery/uploadImage.vue +62 -0
  642. package/src/views/market/market-event-create/index.vue +371 -0
  643. package/src/views/market/market-event-create/market-event-base/cost-dialog.vue +103 -0
  644. package/src/views/market/market-event-create/market-event-base/costs-manager.vue +322 -0
  645. package/src/views/market/market-event-create/market-event-base/index.vue +947 -0
  646. package/src/views/market/market-event-create/market-event-detail/event-canvas.vue +1580 -0
  647. package/src/views/market/market-event-create/market-event-detail/event-main-btns.vue +1784 -0
  648. package/src/views/market/market-event-create/market-event-detail/event-main.vue +984 -0
  649. package/src/views/market/market-event-create/market-event-detail/index.vue +144 -0
  650. package/src/views/market/market-event-detail-pro/components/act-target-detail.vue +184 -0
  651. package/src/views/market/market-event-detail-pro/components/act-target.vue +273 -0
  652. package/src/views/market/market-event-detail-pro/components/test-group.vue +57 -0
  653. package/src/views/market/market-event-detail-pro/detail.json +218 -0
  654. package/src/views/market/market-event-detail-pro/event-canvas-detail.vue +826 -0
  655. package/src/views/market/market-event-detail-pro/event-detail-base.vue +765 -0
  656. package/src/views/market/market-event-detail-pro/event-detail-exam.vue +318 -0
  657. package/src/views/market/market-event-detail-pro/htmlGenerator/canvas.less +145 -0
  658. package/src/views/market/market-event-detail-pro/htmlGenerator/channels/call.js +185 -0
  659. package/src/views/market/market-event-detail-pro/htmlGenerator/channels/client.js +106 -0
  660. package/src/views/market/market-event-detail-pro/htmlGenerator/channels/dynamic-channel.js +181 -0
  661. package/src/views/market/market-event-detail-pro/htmlGenerator/channels/handbnk.js +120 -0
  662. package/src/views/market/market-event-detail-pro/htmlGenerator/channels/phonebnk.js +166 -0
  663. package/src/views/market/market-event-detail-pro/htmlGenerator/channels/sms.js +165 -0
  664. package/src/views/market/market-event-detail-pro/htmlGenerator/channels/teleSalesPlat.js +150 -0
  665. package/src/views/market/market-event-detail-pro/htmlGenerator/channels/wechat.js +9 -0
  666. package/src/views/market/market-event-detail-pro/htmlGenerator/common.js +135 -0
  667. package/src/views/market/market-event-detail-pro/htmlGenerator/customer/activityCst.js +58 -0
  668. package/src/views/market/market-event-detail-pro/htmlGenerator/customer/composeCst.js +30 -0
  669. package/src/views/market/market-event-detail-pro/htmlGenerator/customer/cst.js +165 -0
  670. package/src/views/market/market-event-detail-pro/htmlGenerator/customer/flowCst.js +30 -0
  671. package/src/views/market/market-event-detail-pro/htmlGenerator/index.js +148 -0
  672. package/src/views/market/market-event-detail-pro/htmlGenerator/optionsApi.js +290 -0
  673. package/src/views/market/market-event-detail-pro/htmlGenerator/resources/activity.js +31 -0
  674. package/src/views/market/market-event-detail-pro/htmlGenerator/resources/content.js +237 -0
  675. package/src/views/market/market-event-detail-pro/htmlGenerator/resources/gift.js +72 -0
  676. package/src/views/market/market-event-detail-pro/htmlGenerator/resources/product.js +59 -0
  677. package/src/views/market/market-event-detail-pro/htmlGenerator/split/channel.js +17 -0
  678. package/src/views/market/market-event-detail-pro/htmlGenerator/split/channelBranch.js +103 -0
  679. package/src/views/market/market-event-detail-pro/htmlGenerator/split/customer.js +14 -0
  680. package/src/views/market/market-event-detail-pro/htmlGenerator/split/customerBranch.js +60 -0
  681. package/src/views/market/market-event-detail-pro/htmlGenerator/split/event.js +69 -0
  682. package/src/views/market/market-event-detail-pro/htmlGenerator/split/eventBranch.js +65 -0
  683. package/src/views/market/market-event-detail-pro/htmlGenerator/split/eventRespFlowBranchNoResp.js +5 -0
  684. package/src/views/market/market-event-detail-pro/htmlGenerator/split/eventRespFlowBranchResp.js +6 -0
  685. package/src/views/market/market-event-detail-pro/htmlGenerator/split/label.js +14 -0
  686. package/src/views/market/market-event-detail-pro/htmlGenerator/split/labelBranch.js +24 -0
  687. package/src/views/market/market-event-detail-pro/htmlGenerator/split/merge.js +20 -0
  688. package/src/views/market/market-event-detail-pro/htmlGenerator/split/random.js +29 -0
  689. package/src/views/market/market-event-detail-pro/htmlGenerator/split/randomBranch.js +22 -0
  690. package/src/views/market/market-event-detail-pro/htmlGenerator/time/waitEvent.js +123 -0
  691. package/src/views/market/market-event-detail-pro/htmlGenerator/time/waitFixTime.js +50 -0
  692. package/src/views/market/market-event-detail-pro/htmlGenerator/time/waitToTime.js +97 -0
  693. package/src/views/market/market-event-detail-pro/htmlGenerator/util.js +179 -0
  694. package/src/views/market/market-event-detail-pro/index.vue +373 -0
  695. package/src/views/market/market-event-detail-pro/market-event-approval-detail.vue +373 -0
  696. package/src/views/market/market-event-detail-pro/time/event-approve-time.vue +60 -0
  697. package/src/views/market/market-event-detail-pro/time/event-run-time.vue +89 -0
  698. package/src/views/market/market-event-detail-pro/time/event-watch-time.vue +99 -0
  699. package/src/views/market/market-event-edit/act-event.vue +675 -0
  700. package/src/views/market/market-event-edit/event-calc-btns.vue +107 -0
  701. package/src/views/market/market-event-edit/event-calc.vue +122 -0
  702. package/src/views/market/market-event-edit/event-canvas.vue +1593 -0
  703. package/src/views/market/market-event-edit/event-dialog-edit.vue +711 -0
  704. package/src/views/market/market-event-edit/event-main-btns.vue +1008 -0
  705. package/src/views/market/market-event-edit/event-main.vue +528 -0
  706. package/src/views/market/market-event-edit/event-publish-confirm.vue +47 -0
  707. package/src/views/market/market-event-edit/index.vue +62 -0
  708. package/src/views/market/market-event-edit/select/node-select-appact.vue +119 -0
  709. package/src/views/market/market-event-edit/select/node-select-channel-tag-ai.vue +192 -0
  710. package/src/views/market/market-event-edit/select/node-select-channel-tag.vue +242 -0
  711. package/src/views/market/market-event-edit/select/node-select-customer-ai-group.vue +113 -0
  712. package/src/views/market/market-event-edit/select/node-select-customer-detail.vue +196 -0
  713. package/src/views/market/market-event-edit/select/node-select-customer-group.vue +62 -0
  714. package/src/views/market/market-event-edit/select/node-select-customer.vue +105 -0
  715. package/src/views/market/market-event-edit/select/node-select-event.vue +123 -0
  716. package/src/views/market/market-event-edit/select/node-select-explore-group.vue +74 -0
  717. package/src/views/market/market-event-edit/select/node-select-explore.vue +86 -0
  718. package/src/views/market/market-event-edit/select/node-select-group.vue +884 -0
  719. package/src/views/market/market-event-edit/select/node-select-limit-time.vue +72 -0
  720. package/src/views/market/market-event-edit/select/node-select-maincontent-tag.vue +84 -0
  721. package/src/views/market/market-event-edit/select/node-select-message.vue +332 -0
  722. package/src/views/market/market-event-edit/select/node-select-questionnaire.vue +92 -0
  723. package/src/views/market/market-event-edit/select/node-select-suprecord.vue +97 -0
  724. package/src/views/market/market-event-edit/select/node-select-tag-customer.vue +210 -0
  725. package/src/views/market/market-event-edit/select/node-select-unique-customer.vue +83 -0
  726. package/src/views/market/market-event-edit/select/node-select.vue +280 -0
  727. package/src/views/market/market-event-edit/select/node-temp-detail.vue +88 -0
  728. package/src/views/market/market-event-edit/side/dialog-side.vue +87 -0
  729. package/src/views/market/market-event-edit/side/event-form.vue +837 -0
  730. package/src/views/market/market-event-edit/side/node-side-channel.vue +977 -0
  731. package/src/views/market/market-event-edit/side/node-side-content.vue +167 -0
  732. package/src/views/market/market-event-edit/side/node-side-customer.vue +425 -0
  733. package/src/views/market/market-event-edit/side/node-side-detail.vue +620 -0
  734. package/src/views/market/market-event-edit/side/node-side-event.vue +378 -0
  735. package/src/views/market/market-event-edit/side/node-side-merge-branch.vue +108 -0
  736. package/src/views/market/market-event-edit/side/node-side-merge-table.vue +149 -0
  737. package/src/views/market/market-event-edit/side/node-side-merge.vue +117 -0
  738. package/src/views/market/market-event-edit/side/node-side-strategy-branch-editor.vue +205 -0
  739. package/src/views/market/market-event-edit/side/node-side-strategy-branch.vue +286 -0
  740. package/src/views/market/market-event-edit/side/node-side-strategy-table.vue +210 -0
  741. package/src/views/market/market-event-edit/side/node-side-strategy.vue +200 -0
  742. package/src/views/market/market-event-edit/side/node-side-time-config.vue +45 -0
  743. package/src/views/market/market-event-edit/side/node-side-time.vue +126 -0
  744. package/src/views/market/market-event-edit/side/node-upload-customer-detail.vue +252 -0
  745. package/src/views/market/market-event-edit/side/qrcode-preview.vue +25 -0
  746. package/src/views/market/market-event-edit/time/event-approve-time.vue +58 -0
  747. package/src/views/market/market-event-edit/time/event-run-time.vue +88 -0
  748. package/src/views/market/market-event-edit/time/event-watch-time.vue +88 -0
  749. package/src/views/market/market-event-edit/util.js +1832 -0
  750. package/src/views/market/market-event-edit-pro/dialog/components/content-analysi-channel.vue +190 -0
  751. package/src/views/market/market-event-edit-pro/dialog/components/content-analysis-customer.vue +199 -0
  752. package/src/views/market/market-event-edit-pro/dialog/components/content-analysis-flow-branch.vue +170 -0
  753. package/src/views/market/market-event-edit-pro/dialog/components/content-analysis-flow.vue +168 -0
  754. package/src/views/market/market-event-edit-pro/dialog/components/content-analysis-waitEvent.vue +194 -0
  755. package/src/views/market/market-event-edit-pro/dialog/components/content-analysis-waitFixTime.vue +143 -0
  756. package/src/views/market/market-event-edit-pro/dialog/components/node-customer-list.vue +293 -0
  757. package/src/views/market/market-event-edit-pro/dialog/components/node-equity-list.vue +225 -0
  758. package/src/views/market/market-event-edit-pro/dialog/components/options.js +318 -0
  759. package/src/views/market/market-event-edit-pro/dialog/components/theEchartFunctional.vue +179 -0
  760. package/src/views/market/market-event-edit-pro/dialog/event-template-save.vue +93 -0
  761. package/src/views/market/market-event-edit-pro/dialog/fail-upload-list.vue +96 -0
  762. package/src/views/market/market-event-edit-pro/dialog/node-content-analysis.vue +86 -0
  763. package/src/views/market/market-event-edit-pro/dialog/node-content-error.vue +131 -0
  764. package/src/views/market/market-event-edit-pro/dialog/same-type-customer-list.vue +183 -0
  765. package/src/views/market/market-event-edit-pro/dialog/upload.vue +316 -0
  766. package/src/views/market/market-event-edit-pro/event-base.vue +594 -0
  767. package/src/views/market/market-event-edit-pro/event-calc-btns.vue +132 -0
  768. package/src/views/market/market-event-edit-pro/event-calc.vue +129 -0
  769. package/src/views/market/market-event-edit-pro/event-canvas.vue +1434 -0
  770. package/src/views/market/market-event-edit-pro/event-main-btns.vue +1187 -0
  771. package/src/views/market/market-event-edit-pro/event-main.vue +755 -0
  772. package/src/views/market/market-event-edit-pro/event-publish-confirm.vue +47 -0
  773. package/src/views/market/market-event-edit-pro/function/channel-func.js +18 -0
  774. package/src/views/market/market-event-edit-pro/function/getNodeForm.js +755 -0
  775. package/src/views/market/market-event-edit-pro/g6-config/behavior/active.js +35 -0
  776. package/src/views/market/market-event-edit-pro/g6-config/behavior/anchor-add-edge.js +536 -0
  777. package/src/views/market/market-event-edit-pro/g6-config/behavior/brush-select.js +266 -0
  778. package/src/views/market/market-event-edit-pro/g6-config/behavior/click-select.js +104 -0
  779. package/src/views/market/market-event-edit-pro/g6-config/behavior/copy-paste.js +317 -0
  780. package/src/views/market/market-event-edit-pro/g6-config/behavior/drag-canvas.js +167 -0
  781. package/src/views/market/market-event-edit-pro/g6-config/behavior/drag-node.js +518 -0
  782. package/src/views/market/market-event-edit-pro/g6-config/behavior/index.js +15 -0
  783. package/src/views/market/market-event-edit-pro/g6-config/behavior/key-delete.js +250 -0
  784. package/src/views/market/market-event-edit-pro/g6-config/behavior/paste.js +328 -0
  785. package/src/views/market/market-event-edit-pro/g6-config/behavior/search-node.js +72 -0
  786. package/src/views/market/market-event-edit-pro/g6-config/behavior/select-all.js +78 -0
  787. package/src/views/market/market-event-edit-pro/g6-config/behavior/template-use.js +51 -0
  788. package/src/views/market/market-event-edit-pro/g6-config/behavior/zoom-canvas.js +66 -0
  789. package/src/views/market/market-event-edit-pro/g6-config/common.js +84 -0
  790. package/src/views/market/market-event-edit-pro/g6-config/flow-line-readonly.js +59 -0
  791. package/src/views/market/market-event-edit-pro/g6-config/flow-line.js +306 -0
  792. package/src/views/market/market-event-edit-pro/g6-config/flow-node-readonly.js +171 -0
  793. package/src/views/market/market-event-edit-pro/g6-config/flow-node.js +420 -0
  794. package/src/views/market/market-event-edit-pro/g6-config/index.js +57 -0
  795. package/src/views/market/market-event-edit-pro/g6-config/plugins/AlignToolBar.js +369 -0
  796. package/src/views/market/market-event-edit-pro/g6-config/plugins/Base.js +65 -0
  797. package/src/views/market/market-event-edit-pro/g6-config/plugins/DefaultToolBar.js +425 -0
  798. package/src/views/market/market-event-edit-pro/g6-config/plugins/FullScreenToolBar.js +212 -0
  799. package/src/views/market/market-event-edit-pro/g6-config/plugins/Grid.js +66 -0
  800. package/src/views/market/market-event-edit-pro/g6-config/plugins/MenuToolBar.js +1858 -0
  801. package/src/views/market/market-event-edit-pro/g6-config/plugins/Minimap.js +510 -0
  802. package/src/views/market/market-event-edit-pro/g6-config/plugins/SearchToolBar.js +356 -0
  803. package/src/views/market/market-event-edit-pro/g6-config/plugins/ZoomToolBar.js +372 -0
  804. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignBottom.svg +12 -0
  805. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignCenter.svg +20 -0
  806. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignHorizontal.svg +12 -0
  807. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignLeft.svg +12 -0
  808. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignMiddle.svg +14 -0
  809. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignRight.svg +12 -0
  810. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignTop.svg +12 -0
  811. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignVertical.svg +12 -0
  812. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/beautify.svg +30 -0
  813. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/clear.svg +12 -0
  814. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/close.svg +12 -0
  815. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/detail.svg +20 -0
  816. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/download.svg +17 -0
  817. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/hide.svg +15 -0
  818. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/link.svg +17 -0
  819. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/more.svg +1 -0
  820. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/panorama.svg +10 -0
  821. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/redo.svg +11 -0
  822. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-allSelect.svg +14 -0
  823. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-copy.svg +24 -0
  824. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-del.svg +27 -0
  825. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-enable.svg +1 -0
  826. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-group.svg +15 -0
  827. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-paste.svg +25 -0
  828. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-stop.svg +1 -0
  829. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-switch.svg +1 -0
  830. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/show.svg +15 -0
  831. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/template.svg +23 -0
  832. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/undo.svg +11 -0
  833. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/zoom-in.svg +12 -0
  834. package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/zoom-out.svg +12 -0
  835. package/src/views/market/market-event-edit-pro/g6-config/plugins/index.js +22 -0
  836. package/src/views/market/market-event-edit-pro/g6-config/plugins/util.js +6 -0
  837. package/src/views/market/market-event-edit-pro/g6-config/stack/index.js +111 -0
  838. package/src/views/market/market-event-edit-pro/g6-config/stack/linked-list.js +236 -0
  839. package/src/views/market/market-event-edit-pro/g6-config/stack/stack.js +61 -0
  840. package/src/views/market/market-event-edit-pro/index.vue +71 -0
  841. package/src/views/market/market-event-edit-pro/select/detail-test-run-customer.vue +252 -0
  842. package/src/views/market/market-event-edit-pro/select/endday-trigger-rule.vue +195 -0
  843. package/src/views/market/market-event-edit-pro/select/node-select-act-case-library.vue +283 -0
  844. package/src/views/market/market-event-edit-pro/select/node-select-act-gift-group-copy.vue +438 -0
  845. package/src/views/market/market-event-edit-pro/select/node-select-act-gift-group.vue +851 -0
  846. package/src/views/market/market-event-edit-pro/select/node-select-allocation-rule.vue +126 -0
  847. package/src/views/market/market-event-edit-pro/select/node-select-app-act-group.vue +84 -0
  848. package/src/views/market/market-event-edit-pro/select/node-select-appact.vue +120 -0
  849. package/src/views/market/market-event-edit-pro/select/node-select-call-name.vue +156 -0
  850. package/src/views/market/market-event-edit-pro/select/node-select-channel-tag-ai.vue +191 -0
  851. package/src/views/market/market-event-edit-pro/select/node-select-channel-tag-customer.vue +202 -0
  852. package/src/views/market/market-event-edit-pro/select/node-select-channel-tag.vue +341 -0
  853. package/src/views/market/market-event-edit-pro/select/node-select-content-act.vue +314 -0
  854. package/src/views/market/market-event-edit-pro/select/node-select-content-equity.vue +488 -0
  855. package/src/views/market/market-event-edit-pro/select/node-select-content-graphic-template-detail.vue +200 -0
  856. package/src/views/market/market-event-edit-pro/select/node-select-content-graphic-template.vue +118 -0
  857. package/src/views/market/market-event-edit-pro/select/node-select-content-pro.vue +412 -0
  858. package/src/views/market/market-event-edit-pro/select/node-select-content-tab.vue +409 -0
  859. package/src/views/market/market-event-edit-pro/select/node-select-content-temp-inside.vue +193 -0
  860. package/src/views/market/market-event-edit-pro/select/node-select-content-temp-outside.vue +268 -0
  861. package/src/views/market/market-event-edit-pro/select/node-select-customer-ai-group.vue +118 -0
  862. package/src/views/market/market-event-edit-pro/select/node-select-customer-detail.vue +195 -0
  863. package/src/views/market/market-event-edit-pro/select/node-select-customer-group-tag.vue +396 -0
  864. package/src/views/market/market-event-edit-pro/select/node-select-customer-group.vue +62 -0
  865. package/src/views/market/market-event-edit-pro/select/node-select-customer-import.vue +168 -0
  866. package/src/views/market/market-event-edit-pro/select/node-select-customer.vue +105 -0
  867. package/src/views/market/market-event-edit-pro/select/node-select-equity-adv.vue +119 -0
  868. package/src/views/market/market-event-edit-pro/select/node-select-event.vue +128 -0
  869. package/src/views/market/market-event-edit-pro/select/node-select-explore-group.vue +66 -0
  870. package/src/views/market/market-event-edit-pro/select/node-select-external-act-copy.vue +279 -0
  871. package/src/views/market/market-event-edit-pro/select/node-select-external-act.vue +228 -0
  872. package/src/views/market/market-event-edit-pro/select/node-select-group.vue +1129 -0
  873. package/src/views/market/market-event-edit-pro/select/node-select-label-group.vue +930 -0
  874. package/src/views/market/market-event-edit-pro/select/node-select-maincontent-tag.vue +84 -0
  875. package/src/views/market/market-event-edit-pro/select/node-select-message.vue +384 -0
  876. package/src/views/market/market-event-edit-pro/select/node-select-prod-adv.vue +115 -0
  877. package/src/views/market/market-event-edit-pro/select/node-select-prod-detail.vue +126 -0
  878. package/src/views/market/market-event-edit-pro/select/node-select-prod-pro-name.vue +345 -0
  879. package/src/views/market/market-event-edit-pro/select/node-select-strtg-name.vue +147 -0
  880. package/src/views/market/market-event-edit-pro/select/node-select-suprecord.vue +97 -0
  881. package/src/views/market/market-event-edit-pro/select/node-select-tag-customer.vue +162 -0
  882. package/src/views/market/market-event-edit-pro/select/node-select-unique-customer.vue +118 -0
  883. package/src/views/market/market-event-edit-pro/select/node-select.vue +462 -0
  884. package/src/views/market/market-event-edit-pro/select/node-side-channel-preview.vue +144 -0
  885. package/src/views/market/market-event-edit-pro/select/node-side-customer-group-detail.vue +20 -0
  886. package/src/views/market/market-event-edit-pro/select/node-side-wechat-sub.vue +99 -0
  887. package/src/views/market/market-event-edit-pro/select/node-temp-detail.vue +94 -0
  888. package/src/views/market/market-event-edit-pro/select/product-mix-mode-custom.vue +239 -0
  889. package/src/views/market/market-event-edit-pro/select/product-select-detail.vue +190 -0
  890. package/src/views/market/market-event-edit-pro/select/product-select.vue +166 -0
  891. package/src/views/market/market-event-edit-pro/select/realtime-trigger-rule.vue +257 -0
  892. package/src/views/market/market-event-edit-pro/side/act/node-side-act.vue +193 -0
  893. package/src/views/market/market-event-edit-pro/side/channels/channel-comp.js +616 -0
  894. package/src/views/market/market-event-edit-pro/side/channels/common.js +297 -0
  895. package/src/views/market/market-event-edit-pro/side/channels/dialog/channel-dynamic-select-dialog.vue +399 -0
  896. package/src/views/market/market-event-edit-pro/side/channels/dialog/channel-target.vue +140 -0
  897. package/src/views/market/market-event-edit-pro/side/channels/dialog/code-table.vue +110 -0
  898. package/src/views/market/market-event-edit-pro/side/channels/dialog/issue-fields-select.vue +91 -0
  899. package/src/views/market/market-event-edit-pro/side/channels/dialog/preview.vue +488 -0
  900. package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-call.vue +388 -0
  901. package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-client.vue +226 -0
  902. package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-dynamic.vue +346 -0
  903. package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-elecpin.vue +231 -0
  904. package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-handbnk.vue +176 -0
  905. package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-phonebnk.vue +478 -0
  906. package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-sms.vue +486 -0
  907. package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-wechat.vue +182 -0
  908. package/src/views/market/market-event-edit-pro/side/customer/node-side-activityCst.vue +255 -0
  909. package/src/views/market/market-event-edit-pro/side/customer/node-side-composeCst.vue +186 -0
  910. package/src/views/market/market-event-edit-pro/side/customer/node-side-customer.vue +606 -0
  911. package/src/views/market/market-event-edit-pro/side/customer/node-side-flowCst.vue +186 -0
  912. package/src/views/market/market-event-edit-pro/side/dialog-side.vue +550 -0
  913. package/src/views/market/market-event-edit-pro/side/equity/node-side-equity.vue +264 -0
  914. package/src/views/market/market-event-edit-pro/side/event-form.vue +992 -0
  915. package/src/views/market/market-event-edit-pro/side/merge/node-side-merge.vue +145 -0
  916. package/src/views/market/market-event-edit-pro/side/node-card-tips.vue +178 -0
  917. package/src/views/market/market-event-edit-pro/side/node-side-detail-scene.vue +392 -0
  918. package/src/views/market/market-event-edit-pro/side/node-side-detail.vue +853 -0
  919. package/src/views/market/market-event-edit-pro/side/node-side-strategy-branch-editor.vue +153 -0
  920. package/src/views/market/market-event-edit-pro/side/node-side-strategy-table.vue +270 -0
  921. package/src/views/market/market-event-edit-pro/side/node-side-time-config.vue +45 -0
  922. package/src/views/market/market-event-edit-pro/side/node-side-time.vue +125 -0
  923. package/src/views/market/market-event-edit-pro/side/node-upload-customer-detail.vue +214 -0
  924. package/src/views/market/market-event-edit-pro/side/node-upload-customer.vue +369 -0
  925. package/src/views/market/market-event-edit-pro/side/opportunity/node-side-opportunity-delay.vue +166 -0
  926. package/src/views/market/market-event-edit-pro/side/opportunity/node-side-opportunity-timer.vue +267 -0
  927. package/src/views/market/market-event-edit-pro/side/opportunity/node-side-opportunity-trigger.vue +814 -0
  928. package/src/views/market/market-event-edit-pro/side/resource/node-side-act.vue +194 -0
  929. package/src/views/market/market-event-edit-pro/side/resource/node-side-content.vue +679 -0
  930. package/src/views/market/market-event-edit-pro/side/resource/node-side-equity.vue +293 -0
  931. package/src/views/market/market-event-edit-pro/side/resource/node-side-prod.vue +227 -0
  932. package/src/views/market/market-event-edit-pro/side/split/node-side-merge.vue +141 -0
  933. package/src/views/market/market-event-edit-pro/side/split/node-side-split-channel-branch.vue +434 -0
  934. package/src/views/market/market-event-edit-pro/side/split/node-side-split-channel.vue +303 -0
  935. package/src/views/market/market-event-edit-pro/side/split/node-side-split-cst-branch.vue +241 -0
  936. package/src/views/market/market-event-edit-pro/side/split/node-side-split-cst.vue +187 -0
  937. package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt-branch-new.vue +248 -0
  938. package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt-branch-no-resp.vue +127 -0
  939. package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt-branch-resp.vue +127 -0
  940. package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt-branch.vue +757 -0
  941. package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt-new.vue +873 -0
  942. package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt.vue +169 -0
  943. package/src/views/market/market-event-edit-pro/side/split/node-side-split-label-branch.vue +242 -0
  944. package/src/views/market/market-event-edit-pro/side/split/node-side-split-label.vue +198 -0
  945. package/src/views/market/market-event-edit-pro/side/split/node-side-split-rdm-branch.vue +217 -0
  946. package/src/views/market/market-event-edit-pro/side/split/node-side-split-rdm.vue +200 -0
  947. package/src/views/market/market-event-edit-pro/time/event-approve-time.vue +60 -0
  948. package/src/views/market/market-event-edit-pro/time/event-run-time.vue +96 -0
  949. package/src/views/market/market-event-edit-pro/time/event-watch-time.vue +98 -0
  950. package/src/views/market/market-event-edit-pro/util.js +3877 -0
  951. package/src/views/market/marketing-anti-disturbance.vue +554 -0
  952. package/src/views/market/monitor/act-target-table.vue +123 -0
  953. package/src/views/market/monitor/card-item.vue +219 -0
  954. package/src/views/market/monitor/circulation-customer-list.vue +219 -0
  955. package/src/views/market/monitor/customer-list-extend.js +144 -0
  956. package/src/views/market/monitor/customer-list.vue +761 -0
  957. package/src/views/market/monitor/info-card.vue +160 -0
  958. package/src/views/market/monitor/monitor-base.vue +357 -0
  959. package/src/views/market/monitor/monitor-charts-analysis.vue +41 -0
  960. package/src/views/market/monitor/monitor-detail-customer-target-detail.vue +66 -0
  961. package/src/views/market/monitor/monitor-detail-customer.vue +445 -0
  962. package/src/views/market/monitor/monitor-detail.vue +90 -0
  963. package/src/views/market/monitor/monitor-info-cur.vue +193 -0
  964. package/src/views/market/monitor/monitor-info.vue +245 -0
  965. package/src/views/market/monitor/monitor.vue +261 -0
  966. package/src/views/market/monitor/summary/channel-analysis-search.vue +198 -0
  967. package/src/views/market/monitor/summary/channel-analysis.vue +38 -0
  968. package/src/views/market/monitor/summary/channel-table.vue +353 -0
  969. package/src/views/market/monitor/summary/common/option.js +191 -0
  970. package/src/views/market/monitor/summary/components/channel-analysis-chart.vue +738 -0
  971. package/src/views/market/monitor/summary/components/channel-task-done.vue +333 -0
  972. package/src/views/market/monitor/summary/components/chart-container.vue +56 -0
  973. package/src/views/market/monitor/summary/components/chart-funnel.vue +190 -0
  974. package/src/views/market/monitor/summary/components/chart-line.vue +64 -0
  975. package/src/views/market/monitor/summary/components/chart-parent.vue +71 -0
  976. package/src/views/market/monitor/summary/components/customer-list.vue +636 -0
  977. package/src/views/market/monitor/summary/components/detail-card.vue +167 -0
  978. package/src/views/market/monitor/summary/components/empty.vue +22 -0
  979. package/src/views/market/monitor/summary/components/label-analysis-improve.vue +708 -0
  980. package/src/views/market/monitor/summary/components/label-analysis-whole.vue +859 -0
  981. package/src/views/market/monitor/summary/components/options-common.js +35 -0
  982. package/src/views/market/monitor/summary/components/part-body.vue +29 -0
  983. package/src/views/market/monitor/summary/components/ranking-list.vue +160 -0
  984. package/src/views/market/monitor/summary/components/statistics-small-card.vue +143 -0
  985. package/src/views/market/monitor/summary/components/tab-content.vue +167 -0
  986. package/src/views/market/monitor/summary/components/target-customer-list.vue +277 -0
  987. package/src/views/market/monitor/summary/components/task-content.vue +103 -0
  988. package/src/views/market/monitor/summary/components/task-sort.vue +216 -0
  989. package/src/views/market/monitor/summary/index.vue +687 -0
  990. package/src/views/market/monitor/summary/select-checkbox.vue +116 -0
  991. package/src/views/market/monitor/summary/summary-analysis.vue +547 -0
  992. package/src/views/market/monitor/summary/summary-label-analysis.vue +180 -0
  993. package/src/views/market/monitor/summary/summary-label-process.vue +19 -0
  994. package/src/views/market/monitor/summary/summary-label-result.vue +490 -0
  995. package/src/views/market/monitor/summary/summary-line-wjf.vue +456 -0
  996. package/src/views/market/monitor/summary/summary-line.vue +300 -0
  997. package/src/views/market/monitor/summary/summary-table.vue +106 -0
  998. package/src/views/market/monitor/target-analysis.vue +383 -0
  999. package/src/views/market/monitor/target-customer-list.vue +403 -0
  1000. package/src/views/market/order/order-analysis-detail.vue +277 -0
  1001. package/src/views/market/order/order-analysis.vue +258 -0
  1002. package/src/views/market/order/order.vue +151 -0
  1003. package/src/views/market/remote-canvas.vue +76 -0
  1004. package/src/views/market/report/report-customer-branch.vue +147 -0
  1005. package/src/views/market/report/report-customer-detail-target.vue +100 -0
  1006. package/src/views/market/report/report-customer-detail.vue +120 -0
  1007. package/src/views/market/report/report-customer-sub.vue +163 -0
  1008. package/src/views/market/report/report-event-all.vue +182 -0
  1009. package/src/views/market/report/report-event-sub.vue +200 -0
  1010. package/src/views/market-activity/common/config.js +221 -0
  1011. package/src/views/market-activity/components/bar-card.vue +66 -0
  1012. package/src/views/market-activity/components/custom-date-picker.vue +214 -0
  1013. package/src/views/market-activity/components/switch-tabs.vue +101 -0
  1014. package/src/views/market-activity/components/tab-content.vue +166 -0
  1015. package/src/views/market-activity/config/constant.js +82 -0
  1016. package/src/views/market-activity/config/customer-result-checkbox.vue +58 -0
  1017. package/src/views/market-activity/config/customer-result-fields.vue +324 -0
  1018. package/src/views/market-activity/config/customer-result-filter.vue +265 -0
  1019. package/src/views/market-activity/config/customer-to-group.vue +530 -0
  1020. package/src/views/market-activity/config/empty.vue +22 -0
  1021. package/src/views/market-activity/config/ranking-list.vue +81 -0
  1022. package/src/views/market-activity/config/the-activity-table.vue +295 -0
  1023. package/src/views/market-activity/config/the-echart-functional.vue +176 -0
  1024. package/src/views/market-activity/config/the-effect-table.vue +572 -0
  1025. package/src/views/market-activity/config/the-grade-dialog.vue +415 -0
  1026. package/src/views/market-activity/config/the-indicator-drawer.less +34 -0
  1027. package/src/views/market-activity/config/the-indicator-drawer.vue +835 -0
  1028. package/src/views/market-activity/config/the-views-card.vue +105 -0
  1029. package/src/views/market-activity/config/the-views-effect.vue +320 -0
  1030. package/src/views/market-activity/config/the-views-level.vue +247 -0
  1031. package/src/views/market-activity/config/the-views-type.vue +82 -0
  1032. package/src/views/market-activity/index.vue +553 -0
  1033. package/src/views/market-activity/summary/abtest-analysys.vue +150 -0
  1034. package/src/views/market-activity/summary/channel-analysis-search.vue +193 -0
  1035. package/src/views/market-activity/summary/channel-analysis.vue +45 -0
  1036. package/src/views/market-activity/summary/channel-table.vue +375 -0
  1037. package/src/views/market-activity/summary/customer-list.vue +561 -0
  1038. package/src/views/market-activity/summary/index.vue +341 -0
  1039. package/src/views/market-activity/summary/market-event-edit-pro/event-canvas.vue +1337 -0
  1040. package/src/views/market-activity/summary/market-info.vue +281 -0
  1041. package/src/views/monitoring-center/forewarning/config/common.js +302 -0
  1042. package/src/views/monitoring-center/forewarning/config/index.vue +79 -0
  1043. package/src/views/monitoring-center/forewarning/config/tab-channel.vue +287 -0
  1044. package/src/views/monitoring-center/forewarning/config/tab-event.vue +252 -0
  1045. package/src/views/monitoring-center/forewarning/config/tab-label.vue +183 -0
  1046. package/src/views/monitoring-center/forewarning/config/tab-operate.vue +236 -0
  1047. package/src/views/monitoring-center/forewarning/config/tab-timeTask.vue +242 -0
  1048. package/src/views/monitoring-center/forewarning/record/index.vue +233 -0
  1049. package/src/views/monitoring-center/manage/common.js +909 -0
  1050. package/src/views/monitoring-center/manage/components/bg-intro.vue +34 -0
  1051. package/src/views/monitoring-center/manage/components/error-components-customer-detail.vue +111 -0
  1052. package/src/views/monitoring-center/manage/components/event-leakage-customer-detail.vue +133 -0
  1053. package/src/views/monitoring-center/manage/index.vue +54 -0
  1054. package/src/views/monitoring-center/manage/tab-channel.vue +433 -0
  1055. package/src/views/monitoring-center/manage/tab-event.vue +221 -0
  1056. package/src/views/monitoring-center/manage/tab-label.vue +232 -0
  1057. package/src/views/monitoring-center/manage/tab-operate.vue +501 -0
  1058. package/src/views/mul-activity-type/act-type-edit-dialog.vue +126 -0
  1059. package/src/views/mul-activity-type/index.vue +356 -0
  1060. package/src/views/oa/components/event-channel-approve.vue +75 -0
  1061. package/src/views/oa/index.vue +316 -0
  1062. package/src/views/oa/oa-confirm.vue +57 -0
  1063. package/src/views/oa/oa-detail.vue +609 -0
  1064. package/src/views/oa/oa-message.vue +254 -0
  1065. package/src/views/oa/progress-test.vue +13 -0
  1066. package/src/views/process/charts.vue +389 -0
  1067. package/src/views/process/index.vue +402 -0
  1068. package/src/views/process/pro-manage/index.vue +0 -0
  1069. package/src/views/process/pro-manage/pro-title.vue +56 -0
  1070. package/src/views/process/process-customer-log.vue +103 -0
  1071. package/src/views/process/process-customer.vue +189 -0
  1072. package/src/views/process/process-executor.vue +251 -0
  1073. package/src/views/process/process-org.vue +333 -0
  1074. package/src/views/process/process-risk.vue +232 -0
  1075. package/src/views/process/statistics.vue +159 -0
  1076. package/src/views/product/components/product-select-dialog.vue +253 -0
  1077. package/src/views/product/dialog/picture-upload.vue +139 -0
  1078. package/src/views/product/productMatchRules/components/groupList.vue +487 -0
  1079. package/src/views/product/productMatchRules/components/product-customer-to-group.vue +581 -0
  1080. package/src/views/product/productMatchRules/components/product-select-dialog-search.vue +227 -0
  1081. package/src/views/product/productMatchRules/components/product-select-dialog.vue +284 -0
  1082. package/src/views/product/productMatchRules/components/product-target-customer-list.vue +194 -0
  1083. package/src/views/product/productMatchRules/index.vue +804 -0
  1084. package/src/views/product/productMatchRules/intelligentMatching.vue +183 -0
  1085. package/src/views/product/productMatchRules/resource.js +329 -0
  1086. package/src/views/reach/business/add.vue +508 -0
  1087. package/src/views/reach/business/bannerjump.vue +362 -0
  1088. package/src/views/reach/business/businessCopy.vue +1017 -0
  1089. package/src/views/reach/business/businessDetail.vue +786 -0
  1090. package/src/views/reach/business/businessEdit.vue +1038 -0
  1091. package/src/views/reach/business/businessList.vue +466 -0
  1092. package/src/views/reach/business/businessNew.vue +1004 -0
  1093. package/src/views/reach/business/components/act-gift-group.vue +431 -0
  1094. package/src/views/reach/business/components/actList.vue +219 -0
  1095. package/src/views/reach/business/components/activitySelector.vue +439 -0
  1096. package/src/views/reach/business/components/common.js +45 -0
  1097. package/src/views/reach/business/components/external-act.vue +260 -0
  1098. package/src/views/reach/business/components/image-con-upload.js +34 -0
  1099. package/src/views/reach/business/components/image-con.vue +229 -0
  1100. package/src/views/reach/business/components/image-upload.vue +259 -0
  1101. package/src/views/reach/business/components/resource-side-customer-upload.vue +354 -0
  1102. package/src/views/reach/business/components/resource-side-reach-customer.vue +64 -0
  1103. package/src/views/reach/business/components/resource-state-picture-upload.vue +98 -0
  1104. package/src/views/reach/business/components/resourcedetail.vue +238 -0
  1105. package/src/views/reach/business/components/resourceformItem.vue +256 -0
  1106. package/src/views/reach/business/groupList.vue +396 -0
  1107. package/src/views/reach/business/index.vue +247 -0
  1108. package/src/views/reach/business/resource.js +330 -0
  1109. package/src/views/reach/resource/location-analyse.vue +239 -0
  1110. package/src/views/reach/resource/resource-analyse.vue +247 -0
  1111. package/src/views/reach/resource-state/add.vue +508 -0
  1112. package/src/views/reach/resource-state/bannerjump.vue +362 -0
  1113. package/src/views/reach/resource-state/components/act-gift-group.vue +431 -0
  1114. package/src/views/reach/resource-state/components/actList.vue +219 -0
  1115. package/src/views/reach/resource-state/components/activitySelector.vue +439 -0
  1116. package/src/views/reach/resource-state/components/common.js +45 -0
  1117. package/src/views/reach/resource-state/components/external-act.vue +260 -0
  1118. package/src/views/reach/resource-state/components/image-con-upload.js +34 -0
  1119. package/src/views/reach/resource-state/components/image-con.vue +229 -0
  1120. package/src/views/reach/resource-state/components/image-pop.vue +372 -0
  1121. package/src/views/reach/resource-state/components/image-upload.vue +259 -0
  1122. package/src/views/reach/resource-state/components/resource-side-customer-upload.vue +354 -0
  1123. package/src/views/reach/resource-state/components/resource-side-reach-customer.vue +64 -0
  1124. package/src/views/reach/resource-state/components/resource-state-picture-upload.vue +98 -0
  1125. package/src/views/reach/resource-state/components/resourceListHead.vue +250 -0
  1126. package/src/views/reach/resource-state/components/resourcecreate.vue +410 -0
  1127. package/src/views/reach/resource-state/components/resourcedetail.vue +409 -0
  1128. package/src/views/reach/resource-state/components/resourceformItem.vue +325 -0
  1129. package/src/views/reach/resource-state/groupList.vue +419 -0
  1130. package/src/views/reach/resource-state/index copy.vue +308 -0
  1131. package/src/views/reach/resource-state/index.vue +334 -0
  1132. package/src/views/reach/resource-state/resource.js +330 -0
  1133. package/src/views/reach/resource-state/resourceCopy.vue +1612 -0
  1134. package/src/views/reach/resource-state/resourceDetail.vue +1483 -0
  1135. package/src/views/reach/resource-state/resourceEdit.vue +1609 -0
  1136. package/src/views/reach/resource-state/resourceList.vue +555 -0
  1137. package/src/views/reach/resource-state/resourceNew copy.vue +1361 -0
  1138. package/src/views/reach/resource-state/resourceNew.vue +1499 -0
  1139. package/src/views/report/components/report-effect-monitor-fields.vue +234 -0
  1140. package/src/views/report/event/report-customer-branch.vue +228 -0
  1141. package/src/views/report/event/report-customer-detail-target.vue +113 -0
  1142. package/src/views/report/event/report-customer-detail.vue +149 -0
  1143. package/src/views/report/event/report-customer-sub.vue +258 -0
  1144. package/src/views/report/event/report-event-all.vue +250 -0
  1145. package/src/views/report/event/report-event-sub.vue +255 -0
  1146. package/src/views/report/event-effect-analysis/components/marketing-customer-detail-dialog.vue +137 -0
  1147. package/src/views/report/event-effect-analysis/event-effect-analysis-executor.vue +188 -0
  1148. package/src/views/report/event-effect-analysis/index.vue +53 -0
  1149. package/src/views/report/fieldsList.js +1162 -0
  1150. package/src/views/report/report-app-detail.vue +68 -0
  1151. package/src/views/report/report-app-month-detail.vue +67 -0
  1152. package/src/views/report/report-app-month.vue +151 -0
  1153. package/src/views/report/report-app.vue +175 -0
  1154. package/src/views/report/report-effect-monitor-customer.vue +236 -0
  1155. package/src/views/report/report-effect-monitor-default.vue +374 -0
  1156. package/src/views/report/report-effect-monitor-mechanism.vue +375 -0
  1157. package/src/views/report/report-effect-monitor-staff.vue +376 -0
  1158. package/src/views/report/report-effect-monitor.vue +69 -0
  1159. package/src/views/scene/scene-edit/event-main-btns.vue +1159 -0
  1160. package/src/views/scene/scene-edit/event-main.vue +900 -0
  1161. package/src/views/scene/scene-edit/index.vue +129 -0
  1162. package/src/views/scene/scene-library-manage/scene-center.vue +798 -0
  1163. package/src/views/scene/scene-library-manage/scene-log.vue +116 -0
  1164. package/src/views/scene/scene-library-manage/scene-mode-detail.vue +313 -0
  1165. package/src/views/scene/scene-library-manage/scene-quote.vue +148 -0
  1166. package/src/views/scene/scene-library-manage/scene-side.vue +362 -0
  1167. package/src/views/scene/scene-library-manage/scene-upload.vue +265 -0
  1168. package/src/views/scene/scene-personal-template/index.vue +457 -0
  1169. package/src/views/system/data-manage.vue +89 -0
  1170. package/src/views/system/menu/index.vue +359 -0
  1171. package/src/views/system/menu/system-menu-list.vue +270 -0
  1172. package/src/views/system/notice/index.vue +213 -0
  1173. package/src/views/system/notice/notice-dialog.vue +111 -0
  1174. package/src/views/system/productMatchRules/components/product-select-dialog.vue +219 -0
  1175. package/src/views/system/productMatchRules/index.vue +484 -0
  1176. package/src/views/system/productMatchRules/intelligentMatching.vue +183 -0
  1177. package/src/views/system/role/index.vue +247 -0
  1178. package/src/views/system/role/system-role-side.vue +267 -0
  1179. package/src/views/system/system-bitmap.vue +131 -0
  1180. package/src/views/system/system-bizline.vue +313 -0
  1181. package/src/views/system/system-configure.vue +288 -0
  1182. package/src/views/system/system-infomation.vue +479 -0
  1183. package/src/views/system/system-log.vue +96 -0
  1184. package/src/views/system/system-login.vue +150 -0
  1185. package/src/views/system/system-org.vue +363 -0
  1186. package/src/views/system/system-param.vue +356 -0
  1187. package/src/views/system/system-position-setting.vue +86 -0
  1188. package/src/views/system/system-position.vue +257 -0
  1189. package/src/views/system/system-sms.vue +146 -0
  1190. package/src/views/system/user/index.vue +259 -0
  1191. package/src/views/system/user/system-user-setting.vue +82 -0
  1192. package/src/views/task/visit-record.vue +205 -0
  1193. package/src/views/template/components/audio-upload.vue +171 -0
  1194. package/src/views/template/components/equity-list.vue +148 -0
  1195. package/src/views/template/components/game-add.vue +335 -0
  1196. package/src/views/template/components/gift-list.vue +149 -0
  1197. package/src/views/template/components/picture-upload.vue +166 -0
  1198. package/src/views/template/components/rewardTable.vue +323 -0
  1199. package/src/views/template/components/task-list.vue +184 -0
  1200. package/src/views/template/components/uploadImage.vue +67 -0
  1201. package/src/views/template/dialog/app-message.vue +226 -0
  1202. package/src/views/template/dialog/audio.vue +215 -0
  1203. package/src/views/template/dialog/fail-upload-list.vue +141 -0
  1204. package/src/views/template/dialog/h5.vue +234 -0
  1205. package/src/views/template/dialog/message-content.vue +138 -0
  1206. package/src/views/template/dialog/message.vue +472 -0
  1207. package/src/views/template/dialog/picture copy.vue +273 -0
  1208. package/src/views/template/dialog/picture.vue +304 -0
  1209. package/src/views/template/dialog/send-modal.vue +52 -0
  1210. package/src/views/template/dialog/task-message.vue +256 -0
  1211. package/src/views/template/dialog/upload.vue +253 -0
  1212. package/src/views/template/oa-fields-config/app-message.js +69 -0
  1213. package/src/views/template/oa-fields-config/audio.js +76 -0
  1214. package/src/views/template/oa-fields-config/computed-tags.js +28 -0
  1215. package/src/views/template/oa-fields-config/h5.js +98 -0
  1216. package/src/views/template/oa-fields-config/message.js +71 -0
  1217. package/src/views/template/oa-fields-config/picture.js +85 -0
  1218. package/src/views/template/template-activity/branch.vue +682 -0
  1219. package/src/views/template/template-activity/canvas-edit.vue +115 -0
  1220. package/src/views/template/template-activity/event-base-information.vue +498 -0
  1221. package/src/views/template/template-activity/event-base.vue +313 -0
  1222. package/src/views/template/template-activity/master.vue +755 -0
  1223. package/src/views/template/template-app-message.vue +477 -0
  1224. package/src/views/template/template-audio.vue +517 -0
  1225. package/src/views/template/template-game.vue +258 -0
  1226. package/src/views/template/template-h5.vue +468 -0
  1227. package/src/views/template/template-message.vue +563 -0
  1228. package/src/views/template/template-picture.vue +531 -0
  1229. package/src/views/template/template-task.vue +464 -0
  1230. package/src/views/template/template.less +28 -0
  1231. package/src/views/yunhu/employee-list.vue +190 -0
  1232. package/tailwind.config.js +25 -0
  1233. package/vue.config.js +341 -0
  1234. package/workspace.code-workspace +7 -0
@@ -0,0 +1,1784 @@
1
+ <template>
2
+ <div class="market-event-tool" v-loading="loading">
3
+ <yt-button v-if="type === 'event' && ['pause_update'].includes(mode)" v-loading="exporting" :disabled="exporting" @click="handleDownLoad">未下发数据</yt-button>
4
+ <yt-button v-if="type === 'event' && ['add', 'update', 'copy', 'pause_update'].includes(mode)" @click="goPreStep">上一步</yt-button>
5
+ <yt-button @click="handleCancle">{{ readonly? '关闭': '取消' }}</yt-button>
6
+
7
+ <yt-button v-if="type === 'event' && ['update', 'add', 'copy'].includes(mode)"
8
+ @click="handlePublish">发布</yt-button>
9
+ <yt-button v-if="type === 'event' && ['test_update'].includes(mode)"
10
+ @click="handleRuningTestPublish">发布</yt-button>
11
+ <yt-button v-if="type === 'event' && ['pause_update'].includes(mode)"
12
+ @click="handlePauseUpdatePublish">发布</yt-button>
13
+ <yt-button v-if="type === 'event' && ['pause_update'].includes(mode)" @click="handleSaveUpdate">保存修改</yt-button>
14
+ <!-- 机构等级3级及以下没有保存为模板按钮权限 -->
15
+ <yt-button v-if="profile.orgLevel<3 && showSaveTemp" :type="saveTemplateType" @click="handleSaveTemplateNew">保存为模板</yt-button>
16
+ <yt-button v-if="type === 'event' && !this.isLoop && ['calc_update'].includes(mode)" type="primary"
17
+ @click="handleCalcDetail">节点计数</yt-button>
18
+ <yt-button v-if="type === 'event' && !this.isLoop && ['update', 'add', 'copy', 'pause_update'].includes(mode)" plain
19
+ type="primary" @click="handleCalc">节点计数</yt-button>
20
+ <yt-button v-if="type === 'event' && !this.isLoop && ['update', 'add', 'copy'].includes(mode)" plain
21
+ type="primary" @click="handleTestPublish">试运行</yt-button>
22
+ <yt-button v-if="type === 'event' && ['update', 'add', 'copy'].includes(mode)" type="primary"
23
+ @click="handleSaveNew">保存{{config.IS_ACTIVITY}}</yt-button>
24
+ <yt-button v-if="['test_update'].includes(mode)" @click="handleTestUpdate">修改</yt-button>
25
+ <event-publish-confirm ref="confirm" />
26
+ <AttachmentApprovalDialog
27
+ ref="attachmentApprovalDialogRef"
28
+ accept=".png,.jpg,.pdf"
29
+ @approval-confirm="handleApprovalConfirm"
30
+ ></AttachmentApprovalDialog>
31
+ <download-act-btn ref="exportActBtn" @resetLoading="resetLoading"></download-act-btn>
32
+ <event-template-save ref="template" @change-template="saveTemplate" />
33
+ </div>
34
+ </template>
35
+ <script>
36
+ import EventPublishConfirm from '@market-event-edit-pro/event-publish-confirm'
37
+ import { backToDraft, publishMarket, publishTestMarket, publishMarketCircle, checkMarketSave, publishRunningTestMarket, publishEndedTestMarket, publishPauseUpdate, autoSaveMarket, autoSaveMarketCycle, checkActExport } from '@/api/market'
38
+ import { newSaveTemplate } from '@/api/template/template-active'
39
+ import { rewardExtend } from '@/api/lottery'
40
+ import { traslateSubmitData, traslateSubmitData_temp, checkData,checkValidateChannelComp, validAndMatchProduct, validCanPreview, checkValidateChannelTarget } from '@market-event-edit-pro/util'
41
+ import { mapState, mapMutations } from 'vuex'
42
+ import { submitLog } from '@/api/customer/customer-explore'
43
+ import bus from '@/bus'
44
+ import {PRODUCT_SOURCE} from '@market-event-edit-pro/side/channels/common.js'
45
+ import dayjs from 'dayjs'
46
+ import {getEventList} from '@/api/event'
47
+ import AttachmentApprovalDialog from '@/components/attachment-approval/attachment-approval-dialog.vue'
48
+ import DownloadActBtn from '@/components/transform/download-act-btn'
49
+ import { ACT_PUBLIC_TYPE } from '@/utils/variable'
50
+ import EventTemplateSave from '@/views/market/market-event-edit-pro/dialog/event-template-save'
51
+ import { getImgFileBySrc } from '@/utils/charts'
52
+ import { templateUploadFile } from '@/api/scene'
53
+
54
+ const TEMPLATE_ROOT = '1'
55
+ const TEMPLATE_BRANCH = '2'
56
+
57
+ export default {
58
+ inject: ['createBus', 'getLibId'],
59
+ components: { EventPublishConfirm, AttachmentApprovalDialog, DownloadActBtn, EventTemplateSave },
60
+ props: {
61
+ id: {
62
+ type: String,
63
+ default: ''
64
+ },
65
+ mode: {
66
+ type: String,
67
+ default: 'add'
68
+ },
69
+ type: {
70
+ type: String,
71
+ default: 'event' // template-root template-branch
72
+ },
73
+ actSeriesId: {
74
+ type: String,
75
+ default: '' // 系列活动 Id
76
+ },
77
+ validateSideForm: {
78
+ type: Function
79
+ },
80
+ getMenuByKey: {
81
+ type: Function
82
+ },
83
+ checkValidateChannelComp: {
84
+ type: Function
85
+ },
86
+ cstonly: {
87
+ type: Boolean,
88
+ default: false
89
+ },
90
+ isLoop: {
91
+ type: Boolean,
92
+ default: false
93
+ },
94
+ cstLoading: {
95
+ type: Boolean,
96
+ default: false
97
+ },
98
+ pageName: {
99
+ type: String,
100
+ default: ''
101
+ },
102
+ activeTab: {
103
+ type: [String, Number],
104
+ default: '2'
105
+ }
106
+ },
107
+ data() {
108
+ return {
109
+ allItemInLine: [],
110
+ loading: false,
111
+ running: false,
112
+ timer: null,
113
+ uuid: '',
114
+ approvalAttachmentIds: null,
115
+ exporting: false,
116
+ }
117
+ },
118
+ activated() {
119
+ let query = this.$route.query
120
+ let isPaseAutoSaveFlag = query.isPaseAutoSaveFlag ? [true,'true'].includes(query.isPaseAutoSaveFlag) : false
121
+ if (isPaseAutoSaveFlag) return
122
+ this.timer && clearInterval(this.timer)
123
+ if (['add', 'update', 'copy', 'pause_update'].includes(this.mode)) {
124
+ this.timer = setInterval(() => {
125
+ this.handleAutoSave(undefined, undefined, true)
126
+ }, 1000 * 60 * 3)
127
+ }
128
+ },
129
+ deactivated() {
130
+ this.timer && clearInterval(this.timer)
131
+ },
132
+ computed: {
133
+ ...mapState(['profile','config']),
134
+ readonly() {
135
+ return this.mode === 'view'
136
+ },
137
+ saveTemplateType() {
138
+ let { type, mode } = this
139
+ if (type === 'event' && ['add', 'update', 'test_update', 'calc_update'].includes(mode)) {
140
+ return ''
141
+ }
142
+ return 'primary'
143
+ },
144
+ showSaveTemp() {
145
+ let { type, mode, isLoop } = this
146
+ if (isLoop) {
147
+ return false
148
+ }
149
+ if (type === 'event') {
150
+ if (mode !== 'test' && mode !== 'pause_update') {
151
+ return true
152
+ }
153
+ } else {
154
+ if (mode !== 'view') {
155
+ return true
156
+ }
157
+ }
158
+ return false
159
+ },
160
+ attachmentOpptStatus() {
161
+ return this.config.attachmentOpptStatus && JSON.parse(this.config.attachmentOpptStatus)
162
+ },
163
+ isTravelExport() {
164
+ return this.profile?.roles ? this.profile?.roles?.some(i => i === 'TRAVEL_ROLE') : false
165
+ }
166
+ },
167
+ methods: {
168
+ ...mapMutations(['SET_FULL_LOADING']),
169
+ // 取消
170
+ async handleCancle() {
171
+ if(!this.readonly){
172
+ try {
173
+ await this.$confirm('确定退出并不保存当前活动修改的内容?', '提示', { type: 'warning' })
174
+ } catch (error) {
175
+ return
176
+ }
177
+ }
178
+ const tab = sessionStorage.getItem('market/evetn:CurrentTab')
179
+ sessionStorage.removeItem('market/evetn:CurrentTab')
180
+ this.$emit('cancel')
181
+ if (this.type === 'template-root') {
182
+ this.$router.replace({
183
+ name: 'template/activity-master',
184
+ query: {
185
+ __beforeClose: true
186
+ }
187
+ })
188
+ } else if (this.type === 'template-branch') {
189
+ this.$router.replace({
190
+ name: 'template/activity-branch',
191
+ query: {
192
+ __beforeClose: true
193
+ }
194
+ })
195
+ } else {
196
+ let name = this.isLoop ? 'market/cycle' : 'market/event'
197
+ this.$router.replace({
198
+ name,
199
+ query: {
200
+ __beforeClose: true,
201
+ tab
202
+ }
203
+ })
204
+ }
205
+ },
206
+ // 上一步
207
+ goPreStep() {
208
+ // 上一步先show基本信息,确保其他组件side信息被保存
209
+ this.$emit('show-detail')
210
+ let data = this.getData()
211
+ let currentCanvas = data.canvas
212
+
213
+ this.createBus.$emit('pre', {
214
+ mode: 'add',
215
+ params: JSON.stringify(data.detail),
216
+ currentCanvas: JSON.stringify(currentCanvas),
217
+ isLoop: this.isLoop
218
+ })
219
+ },
220
+ // 热部署下载暂停时所有节点中未向下流转的客户
221
+ async handleDownLoad() {
222
+ try {
223
+ let config = {
224
+ actId: this.id
225
+ }
226
+ const res = await checkActExport(config)
227
+ if (!res.data) {
228
+ this.$message.error(res.errorMsg)
229
+ return
230
+ }
231
+ this.$refs.exportActBtn.handleDownload(config)
232
+ this.exporting = true
233
+ } catch(e) {
234
+ console.log(e)
235
+ this.exporting = false
236
+ }
237
+ },
238
+ resetLoading() {
239
+ this.exporting = false
240
+ },
241
+ // 热部署 - 保存修改
242
+ async handleSaveUpdate() {
243
+ this.loading = true
244
+ this.saveCurrNode()
245
+ this.SET_FULL_LOADING(true)
246
+ // 提示列表页面要刷新
247
+ window.marketEventNeedRefresh = true
248
+ let { id } = await this.handleAutoSave('save')
249
+ this.$success('保存成功')
250
+ // 判断是否抽奖活动行为
251
+ let rewardForm = JSON.parse(localStorage.getItem('rewardForm'))
252
+ if (rewardForm) {
253
+ rewardForm.startDate = this.$util.formatFullDateTime(rewardForm.startDate)
254
+ rewardForm.endDate = this.$util.formatFullDateTime(rewardForm.endDate)
255
+ let rewardId = rewardForm.rewardsCfg.map(obj => obj.id).join(',')
256
+ delete rewardForm.rewardsCfg
257
+ params = {
258
+ ...rewardForm,
259
+ id,
260
+ rewardId
261
+ }
262
+ rewardExtend(params).then(res => {
263
+ this.$success(res.errorMsg)
264
+ })
265
+ }
266
+ // 保存 id
267
+ this.$emit('idChange', id)
268
+ this.loading = false
269
+ this.SET_FULL_LOADING(false)
270
+ localStorage.removeItem('es-search')
271
+ this.$router.replace({
272
+ name: "market/event/edit",
273
+ query: {
274
+ __refresh: true,
275
+ mode: 'pause_update',
276
+ isLoop: this.isLoop,
277
+ id,
278
+ hotDeployType: this.$route.query?.hotDeployType == '1' ? '1' : '0', // 0-直接发布 1-继承发布
279
+ isPaseAutoSaveFlag: true, // 是否停止自动保存
280
+ pageName: "eventManage"
281
+ }
282
+ })
283
+ },
284
+ // 发布活动
285
+ async handlePublish() {
286
+ getEventList({
287
+ pageSize: 200,
288
+ search: {
289
+ stat: '0'
290
+ }
291
+ }).then(data => {
292
+ sessionStorage.setItem('eventList',JSON.stringify(data.data.list || []))
293
+ })
294
+ // save canvas
295
+ this.saveCurrNode()
296
+ let data = this.getData()
297
+ let getData = data.canvas.nodes
298
+ let graph = data.graph
299
+ if (!this.canvasVerify()) {
300
+ return
301
+ }
302
+
303
+ let channelTypeArr = getData.filter(v => v.channelGroup === "sms" || v.channelGroup === "appPush") || []
304
+ if (channelTypeArr.length && !data.detail.expirationTime && data.detail.isNeedSmsApprove === '1') {
305
+ this.$warning('未选择短信发送审批时间')
306
+ return
307
+ }
308
+ let waitTime = getData.filter(item => item.menuKey === 'waitToTime')
309
+ if(waitTime.length>0){
310
+ let n = waitTime.findIndex((e)=>{
311
+ return e.form.dateTime >= data.detail.executeEndTime
312
+
313
+ })
314
+ if(n !== -1){
315
+ this.$warning(`${waitTime[n].label}组件时机需要小于旅程结束时间`)
316
+ return
317
+ }
318
+ }
319
+ let strdialog = false
320
+ getData.forEach(node => {
321
+ if (node.menuKey === 'channel' && node.form.supRecord && node.form.supRecord) {
322
+ node.form.supRecord.forEach(res => {
323
+ if (res.value === '') {
324
+ strdialog = true
325
+ }
326
+ })
327
+ }
328
+ })
329
+ if (strdialog === true) {
330
+ try {
331
+ await this.$confirm('您还有短信模板信息未补录,是否返回继续补录信息?', '提示', { type: 'warning', confirmButtonText: '继续', closeOnClickModal: '返回' })
332
+ } catch {
333
+ this.loading = false
334
+ return
335
+ }
336
+ }
337
+ //验证渠道节点是否有效
338
+ const channelCheckData = checkValidateChannelComp(data, this.checkValidateChannelComp, this.getMenuByKey)
339
+ if(!channelCheckData.flag) {
340
+ const text = channelCheckData.text || ''
341
+ this.loading = false
342
+ this.$error(`渠道节点【${text}】不存在`)
343
+ return;
344
+ }
345
+ this.loading = true
346
+ this.SET_FULL_LOADING(true)
347
+ // 校验活动目标时间和活动执行时间
348
+ // if (false && !this.validActTimeWithActTargetTime(data.detail)) { // 活动目标隐藏目标周期
349
+ // this.loading = false
350
+ // this.SET_FULL_LOADING(false)
351
+ // return
352
+ // }
353
+ // validate detail time
354
+ if (!this.validDetailTime(data.detail)) {
355
+ await this.validateSideForm('detail')
356
+ this.loading = false
357
+ this.SET_FULL_LOADING(false)
358
+ return
359
+ }
360
+ // validate canvas data
361
+ let valid = await checkData(data, this.validateSideForm, this.$error, false)
362
+ // 渠道开启预览功能后校验
363
+ if(this.config.SHOW_FIELDS_PREVIEW === '1') {
364
+ let hasPreviewChannelList = ['sms','appPush','intligCall']
365
+ let PreviewChannelNodes = getData.filter(v => hasPreviewChannelList.includes(v.channelGroup || v.uniqueKey))
366
+ for (let i = 0; i < PreviewChannelNodes.length; i++) {
367
+ const form = PreviewChannelNodes[i].form
368
+ const realParameters = form.parameters?.filter(item=> item) || []
369
+ if(validCanPreview({tableData: realParameters,alterInfo: `请完善${form.componentName}的动参列表`,vm: this})){
370
+ const currentNode = graph.findById(PreviewChannelNodes[i].id)
371
+ const hasProductFields = realParameters?.some(item => item.source === PRODUCT_SOURCE)
372
+ if(realParameters && realParameters.length && hasProductFields){
373
+ const {valid, value} = validAndMatchProduct(currentNode, this)
374
+ if(valid) {
375
+ // 产品类型动参赋值:前序产品编号
376
+ getData.forEach(node => {
377
+ // 取到对应节点node数据
378
+ if(node.id === PreviewChannelNodes[i].id) {
379
+ node.form?.parameters.forEach(par => {
380
+ if(par.source === PRODUCT_SOURCE){
381
+ par.mappingValue = value
382
+ }
383
+ })
384
+ }
385
+ })
386
+ } else {
387
+ this.loading = false
388
+ this.SET_FULL_LOADING(false)
389
+ return
390
+ }
391
+ }
392
+ }else{
393
+ this.loading = false
394
+ this.SET_FULL_LOADING(false)
395
+ return
396
+ }
397
+ }
398
+ }
399
+ if (!valid) {
400
+ this.loading = false
401
+ this.SET_FULL_LOADING(false)
402
+ return
403
+ }
404
+ try {
405
+ this.SET_FULL_LOADING(false)
406
+ await this.$confirm('是否确定要发布?', '提示', { type: 'warning', confirmButtonText: '发布', closeOnClickModal: false })
407
+ // 如果系统中配置了需要上传附件,则发布活动需要上传附件审批
408
+ if (this.attachmentOpptStatus) {
409
+ this.currentPublicType = ACT_PUBLIC_TYPE['PUBLIC']
410
+ this.loading = false
411
+ this.$refs.attachmentApprovalDialogRef.open()
412
+ }
413
+ } catch {
414
+ this.loading = false
415
+ return
416
+ }
417
+ if (!this.attachmentOpptStatus) {
418
+ this.realPublish()
419
+ }
420
+ },
421
+ // 试运行发布
422
+ async handleTestPublish() {
423
+ getEventList({
424
+ pageSize: 200,
425
+ search: {
426
+ stat: '0'
427
+ }
428
+ }).then(data => {
429
+ sessionStorage.setItem('eventList',JSON.stringify(data.data.list || []))
430
+ })
431
+ // save canvas
432
+ this.saveCurrNode()
433
+ if (!this.canvasVerify()) {
434
+ return
435
+ }
436
+ let getData = this.getData().canvas.nodes
437
+ let graph = this.getData().graph
438
+ let strdialog = false
439
+ getData.forEach(data => {
440
+ if (data.menuKey === 'channel' && data.form.supRecord && data.form.supRecord) {
441
+ data.form.supRecord.forEach(res => {
442
+ if (res.value === '') {
443
+ strdialog = true
444
+ }
445
+ })
446
+ }
447
+ })
448
+ let detail = this.getData()
449
+ let waitTime = getData.filter(item => item.menuKey === 'waitToTime')
450
+ if(waitTime.length>0){
451
+ let n = waitTime.findIndex((e)=>{
452
+ return e.form.dateTime >= detail.detail.executeEndTime
453
+
454
+ })
455
+ if(n !== -1){
456
+ this.$warning(`${waitTime[n].label}组件时机需要小于旅程结束时间`)
457
+ return
458
+ }
459
+ }
460
+ if (strdialog === true) {
461
+ try {
462
+ await this.$confirm('您还有短信模板信息未补录,是否返回继续补录信息?', '提示', { type: 'warning', confirmButtonText: '继续', closeOnClickModal: '返回' })
463
+ } catch {
464
+ this.loading = false
465
+ return
466
+ }
467
+ }
468
+ //验证渠道节点是否有效
469
+ const channelCheckData = checkValidateChannelComp(detail, this.checkValidateChannelComp, this.getMenuByKey)
470
+ if(!channelCheckData.flag) {
471
+ const text = channelCheckData.text || ''
472
+ this.loading = false
473
+ this.$error(`渠道节点【${text}】不存在`)
474
+ return;
475
+ }
476
+ this.loading = true
477
+ this.SET_FULL_LOADING(true)
478
+ // get
479
+ let data = this.getData()
480
+ // validate detail time
481
+ if (!this.validDetailTime(data.detail)) {
482
+ await this.validateSideForm('detail')
483
+ this.loading = false
484
+ this.SET_FULL_LOADING(false)
485
+ return
486
+ }
487
+ let testGroup = data.detail.testGroupView
488
+ if (!(testGroup && testGroup.custCnt && testGroup.custCnt !== '0')) {
489
+ this.loading = false
490
+ this.SET_FULL_LOADING(false)
491
+ this.$error('请选择试运行客群')
492
+ return
493
+ }
494
+ // validate canvas data
495
+ let checkType = 'test'
496
+ let valid = await checkData(data, this.validateSideForm, this.$error, false, checkType)
497
+ // 渠道开启预览功能后校验
498
+ if(this.config.SHOW_FIELDS_PREVIEW === '1') {
499
+ let hasPreviewChannelList = ['sms','appPush','intligCall']
500
+ let PreviewChannelNodes = getData.filter(v => hasPreviewChannelList.includes(v.channelGroup || v.uniqueKey))
501
+ for (let i = 0; i < PreviewChannelNodes.length; i++) {
502
+ const form = PreviewChannelNodes[i].form
503
+ const realParameters = form.parameters?.filter(item=> item) || []
504
+ if(validCanPreview({tableData: realParameters,alterInfo: `请完善${form.componentName}的动参列表`,vm: this})){
505
+ const currentNode = graph.findById(PreviewChannelNodes[i].id)
506
+ const hasProductFields = realParameters?.some(item => item.source === PRODUCT_SOURCE)
507
+ if(realParameters && realParameters.length && hasProductFields){
508
+ const {valid, value} = validAndMatchProduct(currentNode, this)
509
+ if(valid) {
510
+ // 产品类型动参赋值:前序产品编号
511
+ getData.forEach(node => {
512
+ // 取到对应节点node数据
513
+ if(node.id === PreviewChannelNodes[i].id) {
514
+ node.form?.parameters.forEach(par => {
515
+ if(par.source === PRODUCT_SOURCE){
516
+ par.mappingValue = value
517
+ }
518
+ })
519
+ }
520
+ })
521
+ } else {
522
+ this.loading = false
523
+ this.SET_FULL_LOADING(false)
524
+ return
525
+ }
526
+ }
527
+ }else{
528
+ this.loading = false
529
+ this.SET_FULL_LOADING(false)
530
+ return
531
+ }
532
+ }
533
+ }
534
+ if (!valid) {
535
+ this.loading = false
536
+ this.SET_FULL_LOADING(false)
537
+ return
538
+ }
539
+ try {
540
+ this.SET_FULL_LOADING(false)
541
+ await this.$confirm('是否要试运行?', '提示', { type: 'warning', confirmButtonText: '是', cancelButtonText: '否', closeOnClickModal: false })
542
+ // 如果系统中配置了需要上传附件,则发布活动需要上传附件审批
543
+ if (this.attachmentOpptStatus) {
544
+ this.currentPublicType = ACT_PUBLIC_TYPE['TEST_PUBLIC']
545
+ this.loading = false
546
+ this.$refs.attachmentApprovalDialogRef.open()
547
+ }
548
+ } catch {
549
+ this.loading = false
550
+ return
551
+ }
552
+ if (!this.attachmentOpptStatus) {
553
+ this.realTestPublic()
554
+ }
555
+ },
556
+ // 暂停后修改发布
557
+ async handlePauseUpdatePublish() {
558
+ getEventList({
559
+ pageSize: 200,
560
+ search: {
561
+ stat: '0'
562
+ }
563
+ }).then(data => {
564
+ sessionStorage.setItem('eventList',JSON.stringify(data.data.list || []))
565
+ })
566
+ // save canvas
567
+ this.saveCurrNode()
568
+ if (!this.canvasVerify(false)) {
569
+ return
570
+ }
571
+ let getData = this.getData().canvas.nodes
572
+ let graph = this.getData().graph
573
+ let strdialog = false
574
+ getData.forEach(data => {
575
+ if (data.menuKey === 'channel' && data.form.supRecord && data.form.supRecord) {
576
+ data.form.supRecord.forEach(res => {
577
+ if (res.value === '') {
578
+ strdialog = true
579
+ }
580
+ })
581
+ }
582
+ })
583
+ let detail = this.getData()
584
+ let waitTime = getData.filter(item => item.menuKey === 'waitToTime')
585
+ if(waitTime.length>0){
586
+ let n = waitTime.findIndex((e)=>{
587
+ return e.form.dateTime >= detail.detail.executeEndTime
588
+
589
+ })
590
+ if(n !== -1){
591
+ this.$warning(`${waitTime[n].label}组件时机需要小于旅程结束时间`)
592
+ return
593
+ }
594
+ }
595
+ if (strdialog === true) {
596
+ try {
597
+ await this.$confirm('您还有短信模板信息未补录,是否返回继续补录信息?', '提示', { type: 'warning', confirmButtonText: '继续', closeOnClickModal: '返回' })
598
+ } catch {
599
+ this.loading = false
600
+ return
601
+ }
602
+ }
603
+ //验证渠道节点是否有效
604
+ const channelCheckData = checkValidateChannelComp(detail, this.checkValidateChannelComp, this.getMenuByKey)
605
+ if(!channelCheckData.flag) {
606
+ const text = channelCheckData.text || ''
607
+ this.loading = false
608
+ this.$error(`渠道节点【${text}】不存在`)
609
+ return;
610
+ }
611
+ this.loading = true
612
+ this.SET_FULL_LOADING(true)
613
+ // get
614
+ let data = this.getData()
615
+ // validate detail time
616
+ if (!this.validDetailTime(data.detail)) {
617
+ await this.validateSideForm('detail')
618
+ this.loading = false
619
+ this.SET_FULL_LOADING(false)
620
+ return
621
+ }
622
+ // validate canvas data
623
+ let valid = await checkData(data, this.validateSideForm, this.$error, false)
624
+ // 渠道开启预览功能后校验
625
+ if(this.config.SHOW_FIELDS_PREVIEW === '1') {
626
+ let hasPreviewChannelList = ['sms','appPush','intligCall']
627
+ let PreviewChannelNodes = getData.filter(v => hasPreviewChannelList.includes(v.channelGroup || v.uniqueKey))
628
+ for (let i = 0; i < PreviewChannelNodes.length; i++) {
629
+ const form = PreviewChannelNodes[i].form
630
+ const realParameters = form.parameters?.filter(item=> item) || []
631
+ if(validCanPreview({tableData: realParameters,alterInfo: `请完善${form.componentName}的动参列表`,vm: this})){
632
+ const currentNode = graph.findById(PreviewChannelNodes[i].id)
633
+ const hasProductFields = realParameters?.some(item => item.source === PRODUCT_SOURCE)
634
+ if(realParameters && realParameters.length && hasProductFields){
635
+ const {valid, value} = validAndMatchProduct(currentNode, this)
636
+ if(valid) {
637
+ // 产品类型动参赋值:前序产品编号
638
+ getData.forEach(node => {
639
+ // 取到对应节点node数据
640
+ if(node.id === PreviewChannelNodes[i].id) {
641
+ node.form?.parameters.forEach(par => {
642
+ if(par.source === PRODUCT_SOURCE){
643
+ par.mappingValue = value
644
+ }
645
+ })
646
+ }
647
+ })
648
+ } else {
649
+ this.loading = false
650
+ this.SET_FULL_LOADING(false)
651
+ return
652
+ }
653
+ }
654
+ }else{
655
+ this.loading = false
656
+ this.SET_FULL_LOADING(false)
657
+ return
658
+ }
659
+ }
660
+ }
661
+ if (!valid) {
662
+ this.loading = false
663
+ this.SET_FULL_LOADING(false)
664
+ return
665
+ }
666
+ try {
667
+ this.SET_FULL_LOADING(false)
668
+ await this.$confirm('是否要发布?', '提示', { type: 'warning', confirmButtonText: '是', cancelButtonText: '否', closeOnClickModal: false })
669
+ if (this.attachmentOpptStatus) {
670
+ this.currentPublicType = ACT_PUBLIC_TYPE['PAUSE_UPDATE_PUBLIC']
671
+ this.loading = false
672
+ this.$refs.attachmentApprovalDialogRef.open()
673
+ }
674
+ } catch {
675
+ this.loading = false
676
+ return
677
+ }
678
+ if (!this.attachmentOpptStatus) {
679
+ this.realPauseUpdatePublic()
680
+ }
681
+ },
682
+ // 自动保存
683
+ async handleAutoSave (flag = '', resolve, autoSave = false) {
684
+ if (this.loading && !flag) return
685
+ let { id } = this
686
+ let { formatFullDateTime } = this.$util
687
+ const data = this.getData()
688
+ if (this.activeTab != '2') {
689
+ data.detail = this.getBaseData()
690
+ }
691
+ let params = traslateSubmitData(data, formatFullDateTime, this.cstonly)
692
+ params.actBaseInfoVo.actInitiatorOrg = null
693
+ params.actBaseInfoVo.libId = this.getLibId()
694
+ if (id && (this.mode === 'update' || this.mode === 'pause_update')) {
695
+ params.actBaseInfoVo.id = id
696
+ }
697
+ if (autoSave) {
698
+ params.autoSave = 1
699
+ }
700
+
701
+ // 自动保存使用,因为后端不会返回此字段,而前端回显接口太多,故在此赋值
702
+ if (!this.uuid) {
703
+ this.uuid = Math.random().toString(36).substring(2)
704
+ }
705
+ // 后端要求将id置为空
706
+ if (['add', 'copy'].includes(this.mode)) {
707
+ params.actBaseInfoVo.id = ''
708
+ }
709
+ let api = this.isLoop ? autoSaveMarketCycle : autoSaveMarket
710
+ params.actIdentify = this.uuid
711
+ // 保存接口报错,再次保存需要清空id和重置uuid
712
+ if (flag === 'save') {
713
+ return new Promise((resolve, reject) => {
714
+ api(params).then(res => {
715
+ let id = res.data.actId
716
+ if (res.data.actNumber) {
717
+ this.$emit('setActId', res.data.actNumber)
718
+ this.$emit('setActName', res.data.actName)
719
+ }
720
+ if (flag) resolve({ id })
721
+ }).catch(error => {
722
+ this.loading = false
723
+ this.isDeleteId = true
724
+ this.SET_FULL_LOADING(false)
725
+ this.uuid = Math.random().toString(36).substring(2)
726
+ reject(error)
727
+ })
728
+ })
729
+ } else {
730
+ if (this.mode === 'pause_update' && this.approvalAttachmentIds) {
731
+ params.fileList = this.approvalAttachmentIds
732
+ }
733
+ api(params).then(res => {
734
+ let id = res.data.actId
735
+ if (res.data.actNumber) {
736
+ this.$emit('setActId', res.data.actNumber)
737
+ this.$emit('setActName', res.data.actName)
738
+ }
739
+ if (resolve) {
740
+ return resolve(id)
741
+ }
742
+ }).catch(error => {
743
+ console.log(error)
744
+ this.loading = false
745
+ this.isDeleteId = true
746
+ this.SET_FULL_LOADING(false)
747
+ this.uuid = Math.random().toString(36).substring(2)
748
+ })
749
+ }
750
+ },
751
+ // 保存活动
752
+ async handleSave(notTip = false) {
753
+ if (typeof notTip !== 'boolean') {
754
+ notTip = false
755
+ }
756
+ if (this.loading && !notTip) {
757
+ return Promise.reject(new Error()).catch(()=>{})
758
+ }
759
+ if (this.cstLoading) {
760
+ this.$error('客户数据正在导入中,请重试')
761
+ return Promise.reject(new Error())
762
+ }
763
+ if (!notTip) {
764
+ this.loading = true
765
+ this.saveCurrNode()
766
+ let valid = await this.validateSideForm('detail')
767
+ if (!valid) {
768
+ this.loading = false
769
+ this.$error('请完善【详情】的表单信息')
770
+ return
771
+ }
772
+ }
773
+ const data = this.getData()
774
+ //验证渠道节点是否有效
775
+ const channelCheckData = checkValidateChannelComp(data, this.checkValidateChannelComp, this.getMenuByKey)
776
+ if(!channelCheckData.flag) {
777
+ this.loading = false
778
+ const text = channelCheckData.text || ''
779
+ this.loading = false
780
+ this.$error(`渠道节点【${text}】不存在`)
781
+ return;
782
+ }
783
+ // 校验渠道目标中所选的值是否包含在活动目标中
784
+ const channelCheckTarget = checkValidateChannelTarget(data)
785
+ if(!channelCheckTarget.flag) {
786
+ this.loading = false
787
+ this.$emit('show-node', channelCheckTarget.nodeId)
788
+ this.$error(`请重新选择渠道目标`)
789
+ return;
790
+ }
791
+ this.SET_FULL_LOADING(true)
792
+ return new Promise((resolve, reject) => {
793
+ this.$nextTick(() => {
794
+ let { formatFullDateTime, copy } = this.$util
795
+ let data = this.getData()
796
+ let params = traslateSubmitData(data, formatFullDateTime, this.cstonly)
797
+
798
+
799
+ // 设置校验客户数量的传参
800
+ let checkParams = copy(params)
801
+ const errorCb = () => {
802
+ this.loading = false
803
+ }
804
+ // 校验 汇聚组件前不允许连接事件组件
805
+ this.allItemInLine = []
806
+ let checkConvergence = true
807
+ const startNodeId = data.canvas.nodes.filter(v => v.label === '开始')[0].id
808
+ const endNodeId = data.canvas.nodes.filter(v => v.label === '结束')[0].id
809
+ this.getAllItemInLine(startNodeId, startNodeId, endNodeId, data.canvas.edges, data.canvas.nodes)
810
+ if (this.allItemInLine.length) {
811
+ const arr = this.allItemInLine.join(' ').split(' end').filter(v => v)
812
+ for (let i = 0; i < arr.length; i++) {
813
+ if (arr[i].includes('event') && arr[i].includes('merge')) {
814
+ checkConvergence = false
815
+ }
816
+ }
817
+ }
818
+ if (!checkConvergence) {
819
+ this.loading = false
820
+ this.SET_FULL_LOADING(false)
821
+ return this.$message.info('汇聚节点无法与事件节点直接或间接连接')
822
+ }
823
+ // 校验客户上限 100w
824
+ checkMarketSave(checkParams).then(data => {
825
+ const successCb = () => {
826
+ this.$nextTick(() => {
827
+ this.SET_FULL_LOADING(true)
828
+ })
829
+ this.handleAutoSave('publish', resolve)
830
+ }
831
+ // 客户校验轮询
832
+ bus.$emit('customer-loading', { id: data.data.syncId, tip: '校验', type: 'market-check', successCb, errorCb })
833
+ }, () => {
834
+ this.SET_FULL_LOADING(false)
835
+ if (!notTip) {
836
+ this.loading = false
837
+ }
838
+ reject(new Error('客户数量超标'))
839
+ })
840
+ })
841
+ })
842
+ },
843
+ // 保存活动
844
+ async handleSaveNew() {
845
+ this.loading = true
846
+ this.saveCurrNode()
847
+ this.SET_FULL_LOADING(true)
848
+ // 提示列表页面要刷新
849
+ window.marketEventNeedRefresh = true
850
+ let { id } = await this.handleAutoSave('save')
851
+ this.$success('保存成功')
852
+ // 判断是否抽奖活动行为
853
+ let rewardForm = JSON.parse(localStorage.getItem('rewardForm'))
854
+ if (rewardForm) {
855
+ rewardForm.startDate = this.$util.formatFullDateTime(rewardForm.startDate)
856
+ rewardForm.endDate = this.$util.formatFullDateTime(rewardForm.endDate)
857
+ let rewardId = rewardForm.rewardsCfg.map(obj => obj.id).join(',')
858
+ delete rewardForm.rewardsCfg
859
+ params = {
860
+ ...rewardForm,
861
+ id,
862
+ rewardId
863
+ }
864
+ rewardExtend(params).then(res => {
865
+ this.$success(res.errorMsg)
866
+ })
867
+ }
868
+ // 保存 id
869
+ this.$emit('idChange', id)
870
+ this.loading = false
871
+ this.SET_FULL_LOADING(false)
872
+ localStorage.removeItem('es-search')
873
+ // 手动保存不用跳转
874
+ this.$router.push({
875
+ name: "market/event/edit",
876
+ query: {
877
+ mode: 'update',
878
+ type: this.type,
879
+ isLoop: this.isLoop,
880
+ id,
881
+ pageName: this.pageName,
882
+ jump: '',
883
+ __beforeClose: ['copy', 'add'].includes(this.mode) ? true : false,
884
+ __refresh: true,
885
+ __forceReplace: true,
886
+ }
887
+ })
888
+
889
+ },
890
+ // 试运行 - 修改
891
+ handleTestUpdate() {
892
+ backToDraft(this.id).then(() => {
893
+ this.$router.push({
894
+ name: 'market/event/edit',
895
+ query: {
896
+ mode: 'update',
897
+ isLoop: false,
898
+ id: this.id,
899
+ pageName: "eventManage",
900
+ __refresh: true,
901
+ }
902
+ })
903
+ })
904
+ },
905
+ // 获取画布所有组件按照一条线顺序排序
906
+ getAllItemInLine(sourceNodeId, startNodeId, endNodeId, edges, nodes) {
907
+ // 拷贝连接线数据
908
+ const copyEdges = JSON.parse(JSON.stringify(edges))
909
+ // 当未筛选连接线数据为空时,表示结束循环
910
+ if (!copyEdges.length) {
911
+ return
912
+ }
913
+ // 当传入的起始节点和连接线数据中的起始节点相同时
914
+ const edgeIndex = copyEdges.findIndex(item => item.source === sourceNodeId)
915
+ if (edgeIndex !== -1) {
916
+ const { target } = copyEdges[edgeIndex]
917
+ // 判断是否到达结束节点
918
+ if (target !== endNodeId) {
919
+ this.allItemInLine.push(nodes.filter(v => v.id === target)[0]?.menuKey)
920
+ copyEdges.splice(edgeIndex, 1)
921
+
922
+ this.getAllItemInLine(target, startNodeId, endNodeId, copyEdges, nodes)
923
+ } else {
924
+ // push end表示这条线结束,查询是否还有第二条线
925
+ this.allItemInLine.push('end')
926
+
927
+ this.getAllItemInLine(startNodeId, startNodeId, endNodeId, copyEdges, nodes)
928
+ }
929
+ }
930
+ },
931
+ // 保存当前节点
932
+ saveCurrNode() {
933
+ this.$parent.$refs.main.saveCurrNode()
934
+ },
935
+ getData() {
936
+ return this.$parent.$refs.main.getData()
937
+ },
938
+ getBaseData () {
939
+ return this.$parent.$parent.$refs.base.getForm()
940
+ },
941
+ // 统计标签使用次数
942
+ async submitHistory() {
943
+ let ids = await this.$parent.$refs.main.getEventNodeExploreIds()
944
+ submitLog(ids)
945
+ },
946
+ // isVerifyInspection 是否渠道中截至时间、反馈和时机的时间的校验(暂停后修改再次发布时不校验)
947
+ canvasVerify(isVerifyInspection = true) {
948
+ let { formatFullDateTime } = this.$util
949
+ let getDataCheck = traslateSubmitData(this.getData(), formatFullDateTime, this.cstonly)
950
+ const verifyMergeInActRes = this.verifyMergeInAct(getDataCheck)
951
+ if (verifyMergeInActRes && !verifyMergeInActRes.code) {
952
+ this.loading = false
953
+ return false
954
+ }
955
+ const verifyDVCardEventInActRes = this.verifyDVCardEventInAct(getDataCheck)
956
+ if (verifyDVCardEventInActRes && !verifyDVCardEventInActRes.code) {
957
+ this.loading = false
958
+ return false
959
+ }
960
+ const verifyChannelInActRes = this.verifyChannelInAct(getDataCheck)
961
+ if (verifyChannelInActRes && !verifyChannelInActRes.code) {
962
+ this.loading = false
963
+ return false
964
+ }
965
+ const verifyContentInActRes = this.verifyContent(getDataCheck)
966
+ if (verifyContentInActRes && !verifyContentInActRes.code) {
967
+ this.loading = false
968
+ return false
969
+ }
970
+ const verifyInspectionTime = this.inspectionTime(getDataCheck, isVerifyInspection)
971
+ if (verifyInspectionTime && !verifyInspectionTime.code) {
972
+ this.loading = false
973
+ return false
974
+ }
975
+ return true
976
+ },
977
+ async handleSaveTemplateNew() {
978
+ let data = this.getData()
979
+ if (!data.detail?.actName) {
980
+ this.$warning('营销活动名称不能为空')
981
+ return
982
+ }
983
+
984
+ let valid = await checkData(data, this.validateSideForm, this.$error, false)
985
+ if (!valid) {
986
+ return
987
+ }
988
+
989
+ if (this.isTravelExport) {
990
+ this.$refs.template.open()
991
+ } else {
992
+ this.saveTemplate({ isSync: '0', scenePkId: '' })
993
+ }
994
+ },
995
+ // 保存为模板
996
+ async saveTemplate(form) {
997
+ if (!this.canvasVerify()) {
998
+ return
999
+ }
1000
+ this.loading = true
1001
+ try {
1002
+ this.saveCurrNode()
1003
+ let { formatFullDateTime } = this.$util
1004
+ let data = this.getData()
1005
+ //验证渠道节点是否有效
1006
+ const channelCheckData = checkValidateChannelComp(data, this.checkValidateChannelComp, this.getMenuByKey)
1007
+ if(!channelCheckData.flag) {
1008
+ const text = channelCheckData.text || ''
1009
+ this.loading = false
1010
+ this.$error(`渠道节点【${text}】不存在`)
1011
+ return;
1012
+ }
1013
+ /**
1014
+ * 2024-07-02 15:11
1015
+ * 与章超老师确认过,保存为模板的时候先不需要校验节点内容
1016
+ * 等后续完善这方面的需求
1017
+ */
1018
+ // let valid = await checkData(data, this.validateSideForm, this.$error, true)
1019
+ // if (!valid) {
1020
+ // this.loading = false
1021
+ // return
1022
+ // }
1023
+ this.$nextTick(() => {
1024
+ let params = traslateSubmitData_temp(data, formatFullDateTime, this.cstonly)
1025
+ let { mode, type, addTemp } = this
1026
+ this.loading = true
1027
+ // 去掉剔除客户
1028
+ params.deleteActCustomer = []
1029
+ params.isSync = form.isSync
1030
+ params.scenePkId = form.scenePkId
1031
+ params.actDefCanvasVo.actBaseInfoVo.libId = this.getLibId()
1032
+ if (type === 'event') {
1033
+ // 个人模板概念已去除,根据登录机构来判断 orglevel === 1为总行,orglevel=== 2为分行,支行无权限
1034
+ if (this.profile.orgLevel === 1){
1035
+ addTemp(TEMPLATE_ROOT, params, 'template-root')
1036
+ }else{
1037
+ addTemp(TEMPLATE_BRANCH, params, 'template-branch')
1038
+ }
1039
+ } else {
1040
+ if (mode === 'add') {
1041
+ if (type === 'template-root') {
1042
+ addTemp(TEMPLATE_ROOT, params, 'template-root')
1043
+ } else if (type === 'template-branch') {
1044
+ addTemp(TEMPLATE_BRANCH, params, 'template-branch')
1045
+ }
1046
+ }
1047
+ }
1048
+ })
1049
+ } catch {
1050
+ this.loading = false
1051
+ }
1052
+ },
1053
+ // 发布校验开始执行时间
1054
+ validDetailTime(detail) {
1055
+ let date = new Date()
1056
+ date.setMinutes(date.getMinutes() + 6)
1057
+ if (detail.executeFlag) {
1058
+ if (!detail.executeEndTime) {
1059
+ this.$error('请填写执行结束时间')
1060
+ return false
1061
+ }
1062
+ if (detail.executeEndTime < new Date()) {
1063
+ this.$error('结束时间不能早于现在!') // 禅道#2492
1064
+ return false
1065
+ } else if (detail.executeEndTime > new Date() && detail.executeEndTime < date) {
1066
+ this.$error('执行结束时间,距离发布时间太近!')
1067
+ return false
1068
+ } else {
1069
+ return true
1070
+ }
1071
+ }
1072
+ if (!detail.executeStartTime) {
1073
+ this.$error('请完善【详情】的表单信息')
1074
+ return false
1075
+ } else if (detail.executeStartTime < date && this.mode !== 'pause_update') {
1076
+ this.$error('执行开始时间,距离发布时间太近!')
1077
+ return false
1078
+ }
1079
+ if (detail.executeEndTime < date) {
1080
+ this.$error('活动已过期!')
1081
+ return false
1082
+ } else if (detail.executeEndTime > new Date() && detail.executeEndTime < date) {
1083
+ this.$error('执行结束时间,距离发布时间太近!')
1084
+ return false
1085
+ }
1086
+ return true
1087
+ },
1088
+ // 【试运行中/结束】发布 16: 试运行中提前终止
1089
+ async handleRuningTestPublish() {
1090
+ let canvasList = this.getData()
1091
+ let valid = await checkData(canvasList, this.validateSideForm, this.$error)
1092
+ if (!valid) {
1093
+ return
1094
+ }
1095
+ getEventList({
1096
+ pageSize: 200,
1097
+ search: {
1098
+ stat: '0'
1099
+ }
1100
+ }).then(data => {
1101
+ sessionStorage.setItem('eventList',JSON.stringify(data.data.list || []))
1102
+ })
1103
+ await this.$confirm('是否要发布?', '提示', { type: 'warning', confirmButtonText: '是', cancelButtonText: '否', closeOnClickModal: false })
1104
+
1105
+ // await this.handleAutoSave('save')
1106
+ const canvasData = this.getData()
1107
+ let { formatFullDateTime } = this.$util
1108
+ let params = traslateSubmitData(canvasData, formatFullDateTime, this.cstonly)
1109
+ let query = this.$route.query
1110
+ if (query.id && params.actBaseInfoVo) params.actBaseInfoVo.id = query.id
1111
+ await publishPauseUpdate(params)
1112
+ this.$success('发布成功')
1113
+ this.submitHistory()
1114
+ window.marketEventNeedRefresh = true
1115
+ this.$nextTick(() => {
1116
+ this.SET_FULL_LOADING(false)
1117
+ this.$router.replace({
1118
+ name: 'market/event/detail-pro',
1119
+ query: {
1120
+ mode: 'view',
1121
+ isLoop: this.isLoop,
1122
+ type: this.type,
1123
+ id: this.id,
1124
+ __refresh: true
1125
+ }
1126
+ })
1127
+ window.microApp.addDataListener((data) => {
1128
+ if (data.type === 'cancelTabCreate') {
1129
+ this.$router.replace({ name: 'market/event' })
1130
+ }
1131
+ })
1132
+ })
1133
+ },
1134
+ addTemp(tempType, params, type) {
1135
+ // 创建模板时对params进行处理 将marketingBase信息加入tempAct中, 并将其赋空
1136
+ let tempInfo = this.$util.copy(params)
1137
+ tempInfo.tempType = tempType
1138
+ if (tempInfo.actType === '01') {
1139
+ let flag = tempInfo.actDefCanvasVo.actDefNodeList.some(item => {
1140
+ return item.nodeType === 'waitEvent'
1141
+ })
1142
+ if (!flag) {
1143
+ this.loading = false
1144
+ return this.$message.info('活动类型为“事件跟进”时需要选择【事件】组件')
1145
+ }
1146
+ }
1147
+ // 保存图片
1148
+ bus.$emit('downloadFullTemplateImage', { name: 'test' })
1149
+ newSaveTemplate(tempInfo).then(res => {
1150
+ this.$success('保存成功')
1151
+ const dataUrl = sessionStorage.getItem('imageFile')
1152
+ getImgFileBySrc(dataUrl, 'img').then(file => {
1153
+ templateUploadFile({
1154
+ pkIds: res.data.join(',')
1155
+ }, file)
1156
+ }).finally(() => {
1157
+ // 保存后直接退出登录会展示次图片
1158
+ const canvasImg = document.querySelectorAll('.js-temp-img');
1159
+ canvasImg.forEach(img => {
1160
+ img.parentNode.removeChild(img)
1161
+ })
1162
+ })
1163
+ }).finally(() => {
1164
+ this.loading = false
1165
+ })
1166
+ },
1167
+ // 节点计数
1168
+ async handleCalc() {
1169
+ getEventList({
1170
+ pageSize: 200,
1171
+ search: {
1172
+ stat: '0'
1173
+ }
1174
+ }).then(data => {
1175
+ sessionStorage.setItem('eventList',JSON.stringify(data.data.list || []))
1176
+ })
1177
+ this.saveCurrNode()
1178
+ if (!this.canvasVerify()) {
1179
+ return
1180
+ }
1181
+ this.loading = true
1182
+ try {
1183
+ await this.$confirm('是否要节点计数?', '提示', { type: 'warning', confirmButtonText: '是', cancelButtonText: '否', closeOnClickModal: false })
1184
+ } catch {
1185
+ this.loading = false
1186
+ return
1187
+ }
1188
+ try {
1189
+ this.SET_FULL_LOADING(true)
1190
+ // save canvas
1191
+ this.saveCurrNode()
1192
+ // get
1193
+ let data = this.getData()
1194
+ // validate detail time
1195
+ if (!this.validDetailTime(data.detail)) {
1196
+ await this.validateSideForm('detail')
1197
+ this.loading = false
1198
+ this.SET_FULL_LOADING(false)
1199
+ return
1200
+ }
1201
+ //验证渠道节点是否有效
1202
+ const channelCheckData = checkValidateChannelComp(data, this.checkValidateChannelComp, this.getMenuByKey)
1203
+ if(!channelCheckData.flag) {
1204
+ this.loading = false
1205
+ const text = channelCheckData.text || ''
1206
+ this.$error(`渠道节点【${text}】不存在`)
1207
+ this.SET_FULL_LOADING(false)
1208
+ return;
1209
+ }
1210
+ // validate canvas data
1211
+ let valid = await checkData(data, this.validateSideForm, this.$error, false)
1212
+ if (!valid) {
1213
+ this.loading = false
1214
+ this.SET_FULL_LOADING(false)
1215
+ return
1216
+ }
1217
+ // submit canvas
1218
+ let id = await this.handleSave(true)
1219
+ if (!id) {
1220
+ this.loading = false
1221
+ this.SET_FULL_LOADING(false)
1222
+ return
1223
+ }
1224
+ // close loading
1225
+ this.loading = false
1226
+ this.SET_FULL_LOADING(false)
1227
+ // jump page
1228
+ this.$router.replace({
1229
+ name: 'market/event/calc1',
1230
+ query: {
1231
+ mode: 'calc',
1232
+ isLoop: this.isLoop,
1233
+ type: this.type,
1234
+ id,
1235
+ __beforeClose: true
1236
+ }
1237
+ })
1238
+ } catch (e) {
1239
+ this.loading = false
1240
+ this.SET_FULL_LOADING(false)
1241
+ }
1242
+ },
1243
+ async handleCalcDetail() {
1244
+ getEventList({
1245
+ pageSize: 200,
1246
+ search: {
1247
+ stat: '0'
1248
+ }
1249
+ }).then(data => {
1250
+ sessionStorage.setItem('eventList',JSON.stringify(data.data.list || []))
1251
+ })
1252
+ this.$router.replace({
1253
+ name: 'market/event/calc1',
1254
+ query: {
1255
+ mode: 'calc',
1256
+ isLoop: this.isLoop,
1257
+ type: this.type,
1258
+ id: this.id,
1259
+ __beforeClose: true
1260
+ }
1261
+ })
1262
+ },
1263
+ // 画布校验
1264
+ verifyRes(code, message) {
1265
+ const res = { 'code': code, message: message }
1266
+ this.$message.error(res.message)
1267
+ return res
1268
+ },
1269
+ // 校验渠道
1270
+ verifyChannelInAct(actJsonArray) {
1271
+ // 节点关系数组
1272
+ let actDefNodeLinkList = actJsonArray.actDefNodeLinkList
1273
+ // 节点详情数组
1274
+ let actDefNodeList = actJsonArray.actDefNodeList
1275
+
1276
+ if (!actDefNodeLinkList || !actDefNodeList) {
1277
+ return this.verifyRes(false, '节点或者连线为空')
1278
+ }
1279
+ // 画布中的渠道节点
1280
+ const channelNodes = actDefNodeList.filter(item => item.nodeType === 'channel')
1281
+
1282
+ // 画布中的事件节点
1283
+ const eventNodes = actDefNodeList.filter(item => item.nodeType === 'event')
1284
+
1285
+ // 查询渠道组件节点是否选择了掌上银行-按指定机构分配,如果选择了这个前序节点必须是大V卡事件
1286
+ for (let i = 0; i < channelNodes.length; i++) {
1287
+ const nodeId = channelNodes[i].id
1288
+ const actDefNodeParamsList = channelNodes[i].actDefNodeParamsList
1289
+ if (actDefNodeParamsList) {
1290
+ const channelTypeSubParam = actDefNodeParamsList.find(item => item.paramCode === 'channelTypeSub')
1291
+ if (channelTypeSubParam && channelTypeSubParam.paramValue) {
1292
+ // 判断是否为掌上银行-按指定机构分配,硬编码!!!
1293
+ if (channelTypeSubParam.paramValue && channelTypeSubParam.paramValue === '12') {
1294
+ // 判断nodeId前序节点是否为大V卡事件
1295
+ // 渠道前序节点关系
1296
+ const channelFrontNodeLinks = actDefNodeLinkList.filter(item => item.nodeTo === nodeId)
1297
+ // 判断前序节点是否存在
1298
+ if (channelFrontNodeLinks && channelFrontNodeLinks.length === 1) {
1299
+ for (let j = 0; j < channelFrontNodeLinks.length; j++) {
1300
+ const channelFrontNodeLink = channelFrontNodeLinks[j].nodeFrom
1301
+ if (eventNodes && eventNodes.length) {
1302
+ for (let k = 0; k < eventNodes.length; k++) {
1303
+ if (channelFrontNodeLink === eventNodes[k].id) {
1304
+ if (eventNodes[k] && eventNodes[k].nodeType === 'event') {
1305
+ const actDefNodeEventlParamsList = eventNodes[k].actDefNodeParamsList
1306
+ const eventNameParam = actDefNodeEventlParamsList.find(item => item.paramCode === 'eventName')
1307
+ // 判断是否为掌上银行-按指定机构分配
1308
+ if (!eventNameParam || eventNameParam.paramValue.substr(0, 6) !== '010026') {
1309
+ return this.verifyRes(false, '渠道节点选择了掌上银行-按指定机构分配,前序节点需选择大V卡事件组件')
1310
+ }
1311
+ } else {
1312
+ return this.verifyRes(false, '渠道节点选择了掌上银行-按指定机构分配,前序节点需选择大V卡事件组件')
1313
+ }
1314
+ }
1315
+ }
1316
+ }
1317
+ }
1318
+ } else {
1319
+ return this.verifyRes(false, '渠道节点选择了掌上银行-按指定机构分配,前序节点只能选择一个并且是大V卡事件组件')
1320
+ }
1321
+ }
1322
+ }
1323
+ }
1324
+ }
1325
+
1326
+ // 校验画布中是否有渠道节点并且渠道节点是否选择短信模板或者APP-PUSH,校验详情是否填写了审批时限
1327
+ for (let i = 0; i < channelNodes.length; i++) {
1328
+ const actDefNodeParamsList = channelNodes[i].actDefNodeParamsList
1329
+ if (actDefNodeParamsList) {
1330
+ const channelTypeSubParam = actDefNodeParamsList.find(item => item.paramCode === 'channelGroup')
1331
+ if (channelTypeSubParam && ['sms', 'appPush'].includes(channelTypeSubParam.paramValue)) {
1332
+ if (!actJsonArray.actBaseInfoVo.expirationTime) {
1333
+ return this.verifyRes(false, '选择渠道节点为线上渠道时,需要在活动详情中填写审批权限')
1334
+ }
1335
+ }
1336
+ }
1337
+ }
1338
+ },
1339
+ verifyDVCardEventInAct(actJsonArray) {
1340
+ // 节点关系数组
1341
+ let actDefNodeLinkList = actJsonArray.actDefNodeLinkList
1342
+ // 节点详情数组
1343
+ let actDefNodeList = actJsonArray.actDefNodeList
1344
+
1345
+ if (!actDefNodeLinkList || !actDefNodeList) {
1346
+ return this.verifyRes(false, '节点或者连线为空')
1347
+ }
1348
+ // 画布中的事件节点
1349
+ const eventNodes = actDefNodeList.filter(item => item.nodeType === 'event')
1350
+
1351
+ // 查询事件节点是否选择大V卡事件,如果是大V卡事件,则后续必须跟着渠道节点,并且渠道节点必须选择人工以及指定执行人
1352
+ let dVcardCount = 0
1353
+ for (let i = 0; i < eventNodes.length; i++) {
1354
+ const nodeId = eventNodes[i].id
1355
+ const actDefNodeParamsList = eventNodes[i].actDefNodeParamsList
1356
+ if (actDefNodeParamsList) {
1357
+ const eventNameParam = actDefNodeParamsList.find(item => item.paramCode === 'eventName')
1358
+ if (eventNameParam && eventNameParam.paramValue) {
1359
+ // 判断是否为大V卡事件,硬编码!!!
1360
+ if (eventNameParam.paramValue.substr(0, 6) === '010026') {
1361
+ dVcardCount++
1362
+ // 判断nodeId后续节点是否为渠道
1363
+ // 事件后续节点关系
1364
+ const eventBackNodeLinks = actDefNodeLinkList.filter(item => item.nodeFrom === nodeId)
1365
+ for (let j = 0; j < eventBackNodeLinks; j++) {
1366
+ const eventBackNodeLink = eventBackNodeLinks[j]
1367
+ if (eventBackNodeLink) {
1368
+ // 事件后续节点详情
1369
+ const eventBackNode = actDefNodeList.find(item => item.id === eventBackNodeLink.nodeTo)
1370
+ if (eventBackNode && eventBackNode.nodeType === 'channel') {
1371
+ const actDefNodeChannelParamsList = eventBackNode.actDefNodeParamsList
1372
+ const channelParam = actDefNodeChannelParamsList.find(item => item.paramCode === 'channelTypeSub')
1373
+ // 判断是否为掌上银行-按指定机构分配
1374
+ if (!channelParam || channelParam.paramValue !== '12') {
1375
+ return this.verifyRes(false, '大V卡事件组件后续渠道节点需选择掌上银行-按指定机构分配')
1376
+ }
1377
+ } else {
1378
+ return this.verifyRes(false, '大V卡事件组件后续渠道节点需选择掌上银行-按指定机构分配')
1379
+ }
1380
+ }
1381
+ }
1382
+ }
1383
+ }
1384
+ }
1385
+ }
1386
+ if (dVcardCount > 1) {
1387
+ return this.verifyRes(false, '大V卡事件组件节点数不能大于2')
1388
+ }
1389
+ },
1390
+ verifyMergeInAct(actJsonArray) {
1391
+ // 节点关系数组
1392
+ let actDefNodeLinkList = actJsonArray.actDefNodeLinkList
1393
+ // 节点详情数组
1394
+ let actDefNodeList = actJsonArray.actDefNodeList
1395
+
1396
+ if (!actDefNodeLinkList || !actDefNodeList) {
1397
+ return this.verifyRes(false, '节点或者连线为空')
1398
+ }
1399
+ // 1、查询是否存在汇聚节点
1400
+ // 2、查询汇聚节点是否存在只有一个前序节点
1401
+ // 3、查询画布中是否存在事件节点,因为汇聚节点无法与事件节点共存
1402
+ // 4、查询策略节点分支如果是行为策略,后续无法实现汇聚组件接入
1403
+ // 5、查询策略节点,是否存在多个前序
1404
+ // 6、查询策略节点后续分支是否连接到汇聚节点
1405
+
1406
+ // 画布中的策略节点
1407
+ const strategyNodes = actDefNodeList.filter(item => item.nodeType === 'strategy')
1408
+ // 画布中的汇聚节点
1409
+ const mergeNodes = actDefNodeList.filter(item => item.nodeType === 'merge')
1410
+
1411
+ // 查询是否存在汇聚节点
1412
+ if (mergeNodes.length === 0) { // 汇聚组件不存在,无需校验
1413
+ return
1414
+ }
1415
+
1416
+ // 查询汇聚节点是否存在只有一个前序节点
1417
+ for (let i = 0; i < mergeNodes.length; i++) {
1418
+ const mergeFrontNodes = actDefNodeLinkList.filter(item => item.nodeTo === mergeNodes[i].id)
1419
+ if (mergeFrontNodes.length < 2) {
1420
+ return this.verifyRes(false, '汇聚组件的前序节点不能小于2')
1421
+ }
1422
+ }
1423
+
1424
+ // 查询画布中是否存在事件节点,因为汇聚节点无法与事件节点共存
1425
+ // if (eventNodes.length > 0) {
1426
+ // return this.verifyRes(false, '汇聚组件节点无法与事件组件节点直接或间接相连')
1427
+ // }
1428
+
1429
+ // 查询策略节点分支如果是行为策略,后续无法实现汇聚组件接入
1430
+ for (let i = 0; i < strategyNodes.length; i++) {
1431
+ const strategyBackNodes = actDefNodeLinkList.filter(item => item.nodeFrom === strategyNodes[i].id)
1432
+ // 遍历策略组件的分支,判断行为策略分支是否继续连入了汇聚
1433
+ for (let j = 0; j < strategyBackNodes.length; j++) {
1434
+ const actDefNodeParamsList = strategyBackNodes[j].actDefNodeParamsList
1435
+ if (actDefNodeParamsList) {
1436
+ const behaviorStrategyTypeParam = actDefNodeParamsList.find(item => item.paramCode === 'behaviorStrategyType')
1437
+ if (behaviorStrategyTypeParam && behaviorStrategyTypeParam.paramValue === '1') {
1438
+ return this.verifyRes(false, '汇聚组件节点无法与策略组件的行为策略分支直接或间接相连')
1439
+ }
1440
+ }
1441
+ }
1442
+ }
1443
+
1444
+ // 查询策略节点,是否存在多个前序
1445
+ let strategyVerifyLeaf = true
1446
+ for (let i = 0; i < strategyNodes.length; i++) {
1447
+ const strategyFrontNodes = actDefNodeLinkList.filter(item => item.nodeTo === strategyNodes[i].id)
1448
+ if (strategyFrontNodes.length > 1) {
1449
+ strategyVerifyLeaf = false
1450
+ break
1451
+ }
1452
+ }
1453
+ // 策略组件前序节点数量不存在多个的情况,不需要校验
1454
+ if (strategyVerifyLeaf) {
1455
+ return
1456
+ }
1457
+
1458
+ // 查询策略节点后续分支是否连接到汇聚节点
1459
+ for (let i = 0; i < strategyNodes.length; i++) {
1460
+ const strategyBackNodes = actDefNodeLinkList.filter(item => item.nodeFrom === strategyNodes[i].id)
1461
+ // 遍历策略组件的分支,判断分支是否继续连入了汇聚
1462
+ for (let j = 0; j < strategyBackNodes.length; j++) {
1463
+ const strategyBranchBackNodes = actDefNodeLinkList.filter(item => item.nodeFrom === strategyBackNodes[j].nodeTo)
1464
+ for (let k = 0; k < strategyBranchBackNodes.length; k++) {
1465
+ const strategyBranchBackNode = strategyBranchBackNodes[k]
1466
+ const strategyBranchBackNodeDetail = actDefNodeList.find(item => item.id === strategyBranchBackNode.nodeTo)
1467
+ // 判断分支上后续节点是否连入了汇聚节点
1468
+ if (strategyBranchBackNodeDetail && strategyBranchBackNodeDetail.nodeType) {
1469
+ if (strategyBranchBackNodeDetail.nodeType === 'merge') {
1470
+ return this.verifyRes(false, '多个客户组件连接策略组件前需提前汇聚')
1471
+ }
1472
+ }
1473
+ }
1474
+ }
1475
+ }
1476
+ },
1477
+ // 内容节点
1478
+ verifyContent(actJsonArray) {
1479
+ // 节点关系数组
1480
+ let actDefNodeLinkList = actJsonArray.actDefNodeLinkList
1481
+ // 节点详情数组
1482
+ let actDefNodeList = actJsonArray.actDefNodeList
1483
+
1484
+ if (!actDefNodeLinkList || !actDefNodeList) {
1485
+ return this.verifyRes(false, '节点或者连线为空')
1486
+ }
1487
+ // 1、查询是否存在内容节点
1488
+ // 2、查询内容节点中的话术营销建议和营销建议是否最少填写了一项
1489
+
1490
+ // 画布中的内容节点
1491
+ const contentNodes = actDefNodeList.filter(item => item.nodeType === 'content')
1492
+
1493
+ // 查询是否存在内容节点
1494
+ if (contentNodes.length === 0) { // 内容组件不存在,无需校验
1495
+ return
1496
+ }
1497
+ // 查询汇聚节点是否存在只有一个前序节点
1498
+ for (let i = 0; i < contentNodes.length; i++) {
1499
+ let count = 0
1500
+ // 检测内容节点的内容类型 如果是营销建议:检测话术或营销标签建议至少一项被填写
1501
+ let currentContentType = contentNodes[i].actDefNodeParamsList.find(item => item.paramCode === 'contentType')?.paramValue
1502
+ if (currentContentType === 'campSuggest') {
1503
+ contentNodes[i].actDefNodeParamsList.forEach(item => {
1504
+ if (item.paramCode === 'wordsCampSuggest' || item.paramCode === 'labelCampSuggest') {
1505
+ if (item.paramValue === null || item.paramValue === '') {
1506
+ count++
1507
+ }
1508
+ }
1509
+ })
1510
+ if (count === 2) {
1511
+ return this.verifyRes(false, '内容组件中话术或标签营销建议至少填写一项')
1512
+ }
1513
+ }
1514
+ }
1515
+ },
1516
+ // 对画布中时机、渠道中截至时间、反馈和时机的时间的校验
1517
+ inspectionTime(actJsonArray,isVerifyInspection) {
1518
+ let actDefNodeLinkList = actJsonArray.actDefNodeLinkList
1519
+ let actDefNodeList = actJsonArray.actDefNodeList
1520
+ if (!actDefNodeLinkList || !actDefNodeList) {
1521
+ return this.verifyRes(false, '节点或者连线为空')
1522
+ }
1523
+ const strategyDetail = actJsonArray.actBaseInfoVo
1524
+ const { executeFlag } = strategyDetail
1525
+ const immediateExecute = executeFlag === '1' ? true : false
1526
+ if(isVerifyInspection) {
1527
+ const strategyFeed = actDefNodeList.filter(item => ['sms', 'appPush'].includes(item.channelGroup)) // 反馈截至时间
1528
+ if (strategyFeed.length) {
1529
+ for (let i = 0; i < strategyFeed.length; i++) {
1530
+ const feedbackDeadline = strategyFeed[i].actDefNodeParamsList.find(list => list.paramCode === 'feedbackDeadlineTime')
1531
+ // 活动开始时间选择立即执行则将当前发布时间作为活动执行开始时间
1532
+ if(immediateExecute) {
1533
+ if (feedbackDeadline.paramValue < dayjs().format('YYYY-MM-DD HH:mm:ss') || feedbackDeadline.paramValue > strategyDetail.executeEndTime) {
1534
+ return this.verifyRes(false, '节点终止时间不得早于当前时间并且不得晚于活动结束时间')
1535
+ }
1536
+ }else if (feedbackDeadline.paramValue < strategyDetail.executeStartTime || feedbackDeadline.paramValue > strategyDetail.executeEndTime) {
1537
+ return this.verifyRes(false, '节点终止时间不得早于活动开始时间并且不得晚于活动结束时间')
1538
+ }
1539
+ }
1540
+ }
1541
+
1542
+ const strategylimitTime = actDefNodeList.filter(item => ['ebankApp', 'teleSalesPlat', 'intligCall'].includes(item.channelGroup)) // 处理截至时间
1543
+ if (strategylimitTime.length) {
1544
+ for (let i = 0; i < strategylimitTime.length; i++) {
1545
+ const feedbackDeadline = strategylimitTime[i].actDefNodeParamsList.find(list => list.paramCode === 'limitTime')
1546
+ if(immediateExecute) {
1547
+ if (feedbackDeadline.paramValue < dayjs().format('YYYY-MM-DD HH:mm:ss') || feedbackDeadline.paramValue > strategyDetail.executeEndTime) {
1548
+ return this.verifyRes(false, '节点终止时间不得早于当前时间并且不得晚于活动结束时间')
1549
+ }
1550
+ }else if (feedbackDeadline.paramValue < strategyDetail.executeStartTime || feedbackDeadline.paramValue > strategyDetail.executeEndTime) {
1551
+ return this.verifyRes(false, '节点终止时间不得早于活动开始时间并且不得晚于活动结束时间')
1552
+ }
1553
+ }
1554
+ }
1555
+ }
1556
+ },
1557
+ validActTimeWithActTargetTime(detail) {
1558
+ let validRes = true
1559
+ const {areas, executeFlag, executeStartTime} = detail
1560
+ if (areas.length > 0) {
1561
+ let now = new Date().getTime()
1562
+ if (executeStartTime) {
1563
+ now = new Date(executeStartTime).getTime()
1564
+ }
1565
+ for (const target of areas) {
1566
+ const {targetSuperviseEndTime, targetSuperviseStartTime, actTargetDesc} = target
1567
+ if (targetSuperviseEndTime && targetSuperviseStartTime) {
1568
+ if (executeFlag) {
1569
+ if (new Date(targetSuperviseStartTime).getTime() < now) {
1570
+ this.$error(`${actTargetDesc}目标开始时间需要大于活动开始时间`)
1571
+ validRes = false
1572
+ break
1573
+ }
1574
+ if (new Date(targetSuperviseEndTime).getTime() < now) {
1575
+ this.$error(`${actTargetDesc}目标结束时间需要大于活动开始时间`)
1576
+ validRes = false
1577
+ break
1578
+ }
1579
+ }
1580
+ if (executeStartTime) {
1581
+ if (new Date(targetSuperviseStartTime).getTime() < now) {
1582
+ this.$error(`${actTargetDesc}目标开始时间需要大于活动开始时间`)
1583
+ validRes = false
1584
+ break
1585
+ }
1586
+ if (new Date(targetSuperviseEndTime).getTime() < now) {
1587
+ this.$error(`${actTargetDesc}目标结束时间需要大于活动开始时间`)
1588
+ validRes = false
1589
+ break
1590
+ }
1591
+ }
1592
+ }
1593
+ }
1594
+ }
1595
+ return validRes
1596
+ },
1597
+ async realPublish() {
1598
+ try {
1599
+ // submit canvas
1600
+ let id = await this.handleSave(true)
1601
+ if (!id) {
1602
+ this.loading = false
1603
+ this.SET_FULL_LOADING(false)
1604
+ return
1605
+ }
1606
+ // publish canvas
1607
+ let api = this.isLoop ? publishMarketCircle : publishMarket
1608
+ await api({
1609
+ id,
1610
+ fileList: this.approvalAttachmentIds
1611
+ })
1612
+ // message tip
1613
+ this.$success('发布成功')
1614
+ // 如果需要审批附件,则在发布成功后关闭上传附件弹窗
1615
+ if (this.attachmentOpptStatus) {
1616
+ this.closeAttachmentApprovalDialog()
1617
+ }
1618
+ // close loading
1619
+ this.loading = false
1620
+ this.SET_FULL_LOADING(false)
1621
+ // jump page
1622
+ this.$router.replace({
1623
+ name: 'market/event/detail-pro',
1624
+ query: {
1625
+ mode: 'view',
1626
+ isLoop: this.isLoop,
1627
+ type: this.type,
1628
+ id,
1629
+ pageName: this.pageName,
1630
+ __beforeClose: true
1631
+ }
1632
+ })
1633
+ window.microApp.addDataListener((data) => {
1634
+ if (data.type === 'cancelTabCreate') {
1635
+ this.$router.replace({ name: 'market/event' })
1636
+ }
1637
+ })
1638
+ } catch (e) {
1639
+ this.recoveryDisabled()
1640
+ this.loading = false
1641
+ this.SET_FULL_LOADING(false)
1642
+ }
1643
+ },
1644
+ async realTestPublic() {
1645
+ try {
1646
+ // submit canvas
1647
+ let id = await this.handleSave(true)
1648
+ if (!id) {
1649
+ this.loading = false
1650
+ this.SET_FULL_LOADING(false)
1651
+ return
1652
+ }
1653
+ // publish canvas
1654
+ let api = publishTestMarket
1655
+ await api({
1656
+ id,
1657
+ fileList: this.approvalAttachmentIds
1658
+ })
1659
+ // message tip
1660
+ this.$success('试运行成功')
1661
+ // 如果需要审批附件,则在发布成功后关闭上传附件弹窗
1662
+ if (this.attachmentOpptStatus) {
1663
+ this.closeAttachmentApprovalDialog()
1664
+ }
1665
+ // close loading
1666
+ this.loading = false
1667
+ this.SET_FULL_LOADING(false)
1668
+ // jump page
1669
+ this.$router.replace({
1670
+ name: 'market/event/detail-pro',
1671
+ query: {
1672
+ mode: 'view',
1673
+ isLoop: this.isLoop,
1674
+ type: this.type,
1675
+ id,
1676
+ __beforeClose: true
1677
+ }
1678
+ })
1679
+ window.microApp.addDataListener((data) => {
1680
+ if (data.type === 'cancelTabCreate') {
1681
+ this.$router.replace({ name: 'market/event' })
1682
+ }
1683
+ })
1684
+ } catch (e) {
1685
+ this.recoveryDisabled()
1686
+ this.loading = false
1687
+ this.SET_FULL_LOADING(false)
1688
+ if (this.id) {
1689
+ // jump page
1690
+ this.$router.replace({
1691
+ name: 'market/event/edit',
1692
+ query: {
1693
+ mode: 'update',
1694
+ isLoop: this.isLoop,
1695
+ type: this.type,
1696
+ id: this.id,
1697
+ __refresh: true
1698
+ }
1699
+ })
1700
+ }
1701
+ }
1702
+ },
1703
+ async realPauseUpdatePublic() {
1704
+ try {
1705
+ // submit canvas
1706
+ let id = await this.handleSave(true)
1707
+ if (!id) {
1708
+ this.loading = false
1709
+ this.SET_FULL_LOADING(false)
1710
+ return
1711
+ }
1712
+ // publish canvas
1713
+ const data = this.getData()
1714
+ let { formatFullDateTime } = this.$util
1715
+ let params = traslateSubmitData(data, formatFullDateTime, this.cstonly)
1716
+ await publishPauseUpdate(params)
1717
+ // message tip
1718
+ this.$success('发布成功')
1719
+ // 如果需要审批附件,则在发布成功后关闭上传附件弹窗
1720
+ if (this.attachmentOpptStatus) {
1721
+ this.closeAttachmentApprovalDialog()
1722
+ }
1723
+ // close loading
1724
+ this.loading = false
1725
+ this.SET_FULL_LOADING(false)
1726
+ // jump page
1727
+ this.$router.replace({
1728
+ name: 'market/event/detail-pro',
1729
+ query: {
1730
+ mode: 'view',
1731
+ isLoop: this.isLoop,
1732
+ type: this.type,
1733
+ id,
1734
+ __beforeClose: true
1735
+ }
1736
+ })
1737
+ window.microApp.addDataListener((data) => {
1738
+ if (data.type === 'cancelTabCreate') {
1739
+ this.$router.replace({ name: 'market/event' })
1740
+ }
1741
+ })
1742
+ } catch (e) {
1743
+ this.recoveryDisabled()
1744
+ this.loading = false
1745
+ this.SET_FULL_LOADING(false)
1746
+ if (this.id) {
1747
+ // jump page
1748
+ this.$router.replace({
1749
+ name: 'market/event/edit',
1750
+ query: {
1751
+ mode: 'update',
1752
+ isLoop: this.isLoop,
1753
+ type: this.type,
1754
+ id: this.id,
1755
+ __refresh: true
1756
+ }
1757
+ })
1758
+ }
1759
+ }
1760
+ },
1761
+ handleApprovalConfirm(fileList) {
1762
+ this.approvalAttachmentIds = fileList.map(item => item.id)
1763
+
1764
+ switch (this.currentPublicType) {
1765
+ case ACT_PUBLIC_TYPE['PAUSE_UPDATE_PUBLIC']:
1766
+ this.realPauseUpdatePublic()
1767
+ break;
1768
+ case ACT_PUBLIC_TYPE['TEST_PUBLIC']:
1769
+ this.realTestPublic()
1770
+ break;
1771
+ case ACT_PUBLIC_TYPE['PUBLIC']:
1772
+ this.realPublish()
1773
+ break;
1774
+ }
1775
+ },
1776
+ closeAttachmentApprovalDialog() {
1777
+ this.$refs.attachmentApprovalDialogRef.close()
1778
+ },
1779
+ recoveryDisabled() {
1780
+ this.$refs.attachmentApprovalDialogRef.recoveryDisabled()
1781
+ }
1782
+ }
1783
+ }
1784
+ </script>