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.
- package/.browserslistrc +3 -0
- package/.editorconfig +5 -0
- package/.env.dev +8 -0
- package/.env.sit +4 -0
- package/.env.uat +4 -0
- package/.eslintrc.bak +2 -0
- package/.prettierignore +0 -0
- package/.prettierrc +10 -0
- package/README.md +168 -0
- package/babel.config.js +10 -0
- package/commitlint.config.js +32 -0
- package/package.json +137 -0
- package/postcss.config.js +6 -0
- package/public/StreamSaver.js +310 -0
- package/public/favicon.ico +0 -0
- package/public/favicon_back.ico +0 -0
- package/public/index.html +94 -0
- package/public/mitm.html +166 -0
- package/public/sw.js +124 -0
- package/sj/folder/g6.js +9 -0
- package/sj/g6.js.map +1 -0
- package/sonar-project.properties +5 -0
- package/src/App.vue +46 -0
- package/src/_backup/api/init.js +23 -0
- package/src/_backup/api/system.js +232 -0
- package/src/_backup/views/init-submit-log.vue +46 -0
- package/src/_backup/views/init.vue +112 -0
- package/src/actions.js +22 -0
- package/src/api/act-type-manage.js +49 -0
- package/src/api/allocation-rule.js +14 -0
- package/src/api/analysis.js +13 -0
- package/src/api/anti-disturbance.js +25 -0
- package/src/api/attachment-approval.js +23 -0
- package/src/api/calculate.js +10 -0
- package/src/api/channel-comp.js +47 -0
- package/src/api/channel.js +69 -0
- package/src/api/common.js +45 -0
- package/src/api/customer/customer-explore.js +162 -0
- package/src/api/customer/customer-group.js +168 -0
- package/src/api/customer/customer-tags.js +47 -0
- package/src/api/event.js +143 -0
- package/src/api/file.js +52 -0
- package/src/api/gift.js +69 -0
- package/src/api/init.js +22 -0
- package/src/api/lottery.js +11 -0
- package/src/api/market/component-manage.js +16 -0
- package/src/api/market.js +507 -0
- package/src/api/monitor.js +115 -0
- package/src/api/newHome.js +36 -0
- package/src/api/oa.js +53 -0
- package/src/api/other.js +3 -0
- package/src/api/process.js +29 -0
- package/src/api/product.js +72 -0
- package/src/api/reach.js +126 -0
- package/src/api/reachsource.js +4 -0
- package/src/api/recommend/recommend-fund.js +96 -0
- package/src/api/report.js +44 -0
- package/src/api/resource/file.js +83 -0
- package/src/api/scene.js +72 -0
- package/src/api/system.js +144 -0
- package/src/api/task.js +5 -0
- package/src/api/temp-content.js +36 -0
- package/src/api/template/template-active.js +157 -0
- package/src/api/template/template-app-message.js +14 -0
- package/src/api/template/template-audio.js +17 -0
- package/src/api/template/template-game.js +10 -0
- package/src/api/template/template-h5.js +16 -0
- package/src/api/template/template-message.js +35 -0
- package/src/api/template/template-picture.js +19 -0
- package/src/api/template/template-task.js +9 -0
- package/src/api/user.js +71 -0
- package/src/api/yunhu.js +13 -0
- package/src/assets/fonts/D-DINExp-Bold.otf +0 -0
- package/src/assets/fonts/Helvetica-Bold.ttf +0 -0
- package/src/assets/fonts/fonts.less +8 -0
- package/src/assets/iconfont/iconfont.css +348 -0
- package/src/assets/iconfont/iconfont.eot +0 -0
- package/src/assets/iconfont/iconfont.js +1 -0
- package/src/assets/iconfont/iconfont.json +520 -0
- package/src/assets/iconfont/iconfont.svg +243 -0
- package/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/assets/iconfont/iconfont.woff +0 -0
- package/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/assets/iconfont1/iconfont.css +359 -0
- package/src/assets/iconfont1/iconfont.js +1 -0
- package/src/assets/iconfont1/iconfont.json +611 -0
- package/src/assets/iconfont1/iconfont.ttf +0 -0
- package/src/assets/iconfont1/iconfont.woff +0 -0
- package/src/assets/iconfont1/iconfont.woff2 +0 -0
- package/src/assets/images/avatar.png +0 -0
- package/src/assets/images/brief-report/bg.png +0 -0
- package/src/assets/images/brief-report/download.png +0 -0
- package/src/assets/images/brief-report/summary.png +0 -0
- package/src/assets/images/canvas-icon/act.png +0 -0
- package/src/assets/images/canvas-icon/activeCst.png +0 -0
- package/src/assets/images/canvas-icon/activityCst.png +0 -0
- package/src/assets/images/canvas-icon/appPush.png +0 -0
- package/src/assets/images/canvas-icon/canvas-bg.png +0 -0
- package/src/assets/images/canvas-icon/chnlRespFlow.png +0 -0
- package/src/assets/images/canvas-icon/composeCst.png +0 -0
- package/src/assets/images/canvas-icon/content.png +0 -0
- package/src/assets/images/canvas-icon/cst.png +0 -0
- package/src/assets/images/canvas-icon/custFlow.png +0 -0
- package/src/assets/images/canvas-icon/ebankApp.png +0 -0
- package/src/assets/images/canvas-icon/equity.png +0 -0
- package/src/assets/images/canvas-icon/evtRespFlow.png +0 -0
- package/src/assets/images/canvas-icon/flowCst.png +0 -0
- package/src/assets/images/canvas-icon/intligCall.png +0 -0
- package/src/assets/images/canvas-icon/labelFlow.png +0 -0
- package/src/assets/images/canvas-icon/merge.png +0 -0
- package/src/assets/images/canvas-icon/prod.png +0 -0
- package/src/assets/images/canvas-icon/randomFlow.png +0 -0
- package/src/assets/images/canvas-icon/sms.png +0 -0
- package/src/assets/images/canvas-icon/teleSalesPlat.png +0 -0
- package/src/assets/images/canvas-icon/waitEvent.png +0 -0
- package/src/assets/images/canvas-icon/waitFixTime.png +0 -0
- package/src/assets/images/canvas-icon/waitToTime.png +0 -0
- package/src/assets/images/canvas-icon/weChat.png +0 -0
- package/src/assets/images/channel-icon/crm.png +0 -0
- package/src/assets/images/channel-icon/ebankapp.png +0 -0
- package/src/assets/images/channel-icon/intligcall.png +0 -0
- package/src/assets/images/channel-icon/manageapp.png +0 -0
- package/src/assets/images/channel-icon/sms.png +0 -0
- package/src/assets/images/channel-icon/telesalesplat.png +0 -0
- package/src/assets/images/channel-icon/wechat.png +0 -0
- package/src/assets/images/channel-icon/wechatminiprogram.png +0 -0
- package/src/assets/images/channel-icon/wechatpublicaccount.png +0 -0
- package/src/assets/images/egg.png +0 -0
- package/src/assets/images/expand.png +0 -0
- package/src/assets/images/icon-png/analysis/right-arrows.png +0 -0
- package/src/assets/images/icon-png/error.png +0 -0
- package/src/assets/images/icon-png/level-icon.png +0 -0
- package/src/assets/images/icon-png/success.png +0 -0
- package/src/assets/images/icon-png/warn.png +0 -0
- package/src/assets/images/icon-side-menu-svg/channel-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/channel.svg +23 -0
- package/src/assets/images/icon-side-menu-svg/cognization-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/cognization.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/customer-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/customer.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/event-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/event.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/home-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/home.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/kehu-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/kehu.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/market-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/market.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/oa-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/oa.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/product-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/product.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/report-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/report.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/resourceManager-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/resourceManager.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/scene-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/scene.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/system-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/system.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/template-selected.svg +1 -0
- package/src/assets/images/icon-side-menu-svg/template.svg +46 -0
- package/src/assets/images/icon-svg/biaoqian.svg +1 -0
- package/src/assets/images/icon-svg/biaoqianxin.svg +1 -0
- package/src/assets/images/icon-svg/big.svg +12 -0
- package/src/assets/images/icon-svg/disabled.svg +17 -0
- package/src/assets/images/icon-svg/fullscreen.svg +25 -0
- package/src/assets/images/icon-svg/huodongmoban.svg +1 -0
- package/src/assets/images/icon-svg/scene-icon.svg +29 -0
- package/src/assets/images/icon-svg/wenjianjiaguanbi.svg +1 -0
- package/src/assets/images/jiugongge.png +0 -0
- package/src/assets/images/login/login-bg.png +0 -0
- package/src/assets/images/login/logo.svg +16 -0
- package/src/assets/images/netError.png +0 -0
- package/src/assets/images/sceneDefaultBg.jpg +0 -0
- package/src/assets/images/starEmpty.png +0 -0
- package/src/assets/images/turntable_circle.png +0 -0
- package/src/assets/images/yatop-logo.png +0 -0
- package/src/assets/less/animation.less +116 -0
- package/src/assets/less/common.less +715 -0
- package/src/assets/less/index.less +9 -0
- package/src/assets/less/reset.less +295 -0
- package/src/assets/less/scroll.less +28 -0
- package/src/assets/less/var.less +74 -0
- package/src/assets/less/yt-ui-cover.less +12 -0
- package/src/assets/svg/1th.svg +27 -0
- package/src/assets/svg/2th.svg +27 -0
- package/src/assets/svg/3th.svg +23 -0
- package/src/assets/svg/activity.svg +45 -0
- package/src/assets/svg/activityCount.svg +43 -0
- package/src/assets/svg/activityCoverCount.svg +40 -0
- package/src/assets/svg/activityNum.svg +39 -0
- package/src/assets/svg/app.svg +55 -0
- package/src/assets/svg/bit.svg +11 -0
- package/src/assets/svg/bizline-active.svg +1 -0
- package/src/assets/svg/bizline.svg +1 -0
- package/src/assets/svg/channel.svg +37 -0
- package/src/assets/svg/chart-empty.svg +1 -0
- package/src/assets/svg/content-error.svg +1 -0
- package/src/assets/svg/content-loading.svg +1 -0
- package/src/assets/svg/custmoer-list.svg +1 -0
- package/src/assets/svg/empty.svg +30 -0
- package/src/assets/svg/empty_2.svg +28 -0
- package/src/assets/svg/equity.svg +39 -0
- package/src/assets/svg/event.svg +38 -0
- package/src/assets/svg/group.svg +24 -0
- package/src/assets/svg/labelCount.svg +34 -0
- package/src/assets/svg/line-center.svg +19 -0
- package/src/assets/svg/line-left.svg +19 -0
- package/src/assets/svg/menu-active.svg +1 -0
- package/src/assets/svg/menu.svg +1 -0
- package/src/assets/svg/message.svg +36 -0
- package/src/assets/svg/monitoring-icon.svg +1 -0
- package/src/assets/svg/org-active.svg +1 -0
- package/src/assets/svg/org.svg +1 -0
- package/src/assets/svg/product.svg +41 -0
- package/src/assets/svg/scene-share.svg +22 -0
- package/src/assets/svg/status-running.svg +19 -0
- package/src/assets/svg/status-stop.svg +16 -0
- package/src/assets/svg/template.svg +40 -0
- package/src/bus.js +3 -0
- package/src/components/Editor.vue +108 -0
- package/src/components/attachment-approval/assets/svg/file-icon-jpg.svg +1 -0
- package/src/components/attachment-approval/assets/svg/file-icon-pdf.svg +1 -0
- package/src/components/attachment-approval/assets/svg/file-icon-png.svg +1 -0
- package/src/components/attachment-approval/assets/svg/file-icon-word.svg +1 -0
- package/src/components/attachment-approval/assets/svg/upload-icon.svg +1 -0
- package/src/components/attachment-approval/attachment-approval-dialog.vue +240 -0
- package/src/components/attachment-approval/attachment-approval-item.vue +88 -0
- package/src/components/attachment-approval/attachment-approval.js +68 -0
- package/src/components/attachment-approval/attachment-approval.vue +124 -0
- package/src/components/channel-components-config/channel-class-rule.vue +54 -0
- package/src/components/channel-components-config/channel-fields.vue +0 -0
- package/src/components/channel-components-config/channel-reach-temp.vue +0 -0
- package/src/components/channel-components-config/channel-select-url-dialog.vue +145 -0
- package/src/components/channel-components-config/channel-select.vue +184 -0
- package/src/components/channel-components-config/channel-switch.vue +69 -0
- package/src/components/channel-components-config/channel-text.vue +75 -0
- package/src/components/channel-components-config/channel-time-range-picker.vue +100 -0
- package/src/components/channel-components-config/channel-time.vue +62 -0
- package/src/components/channel-components-config/channel-timerange.vue +67 -0
- package/src/components/channel-components-config/channel-turnover.vue +51 -0
- package/src/components/channel-components-config/configs.js +13 -0
- package/src/components/channel-components-config/field-key.vue +40 -0
- package/src/components/channel-components-view/channel-class-rule.vue +44 -0
- package/src/components/channel-components-view/channel-fields.vue +0 -0
- package/src/components/channel-components-view/channel-reach-temp.vue +57 -0
- package/src/components/channel-components-view/channel-select.vue +55 -0
- package/src/components/channel-components-view/channel-switch.vue +53 -0
- package/src/components/channel-components-view/channel-text.vue +72 -0
- package/src/components/channel-components-view/channel-time.vue +62 -0
- package/src/components/channel-components-view/channel-timerange.vue +113 -0
- package/src/components/channel-components-view/channel-turnover.vue +57 -0
- package/src/components/channel-params-loading.vue +100 -0
- package/src/components/chart/resize.js +55 -0
- package/src/components/chart/the-chart.vue +68 -0
- package/src/components/creator-select/index.vue +119 -0
- package/src/components/customer-explore-select/index.vue +248 -0
- package/src/components/customer-label-select/index.vue +184 -0
- package/src/components/customer-loading.vue +238 -0
- package/src/components/dynamic-components/form-date.vue +28 -0
- package/src/components/dynamic-components/form-input-number.vue +30 -0
- package/src/components/dynamic-components/form-input.vue +30 -0
- package/src/components/dynamic-components/form-multiple-select.vue +33 -0
- package/src/components/dynamic-components/form-select.vue +37 -0
- package/src/components/dynamic-components/form-time-picker.vue +28 -0
- package/src/components/ellipsisText.vue +45 -0
- package/src/components/empty.vue +22 -0
- package/src/components/event-edit/event-edit.vue +83 -0
- package/src/components/event-edit/index.js +3 -0
- package/src/components/form-img/form-img.vue +82 -0
- package/src/components/form-img/index.js +3 -0
- package/src/components/h5-editor.vue +344 -0
- package/src/components/image-selector/index.js +3 -0
- package/src/components/image-selector/main.vue +239 -0
- package/src/components/member-select.vue +89 -0
- package/src/components/product-select-dialog/index.vue +237 -0
- package/src/components/radio-table.vue +97 -0
- package/src/components/search-select.vue +150 -0
- package/src/components/split-panel/index.js +2 -0
- package/src/components/split-panel/index.less +114 -0
- package/src/components/split-panel/split.vue +159 -0
- package/src/components/split-panel/trigger.vue +43 -0
- package/src/components/system-layout.vue +88 -0
- package/src/components/tag-editor.vue +262 -0
- package/src/components/temp-content/channel-return-dialog.vue +227 -0
- package/src/components/temp-content/event-dialog.vue +298 -0
- package/src/components/temp-content/functions.js +47 -0
- package/src/components/temp-content/index.vue +378 -0
- package/src/components/temp-content/label-dialog.vue +291 -0
- package/src/components/temp-content/product-dialog.vue +268 -0
- package/src/components/temp-content/product-select-dialog.vue +225 -0
- package/src/components/temp-content/temp-content-preview.vue +221 -0
- package/src/components/temp-selector.vue +83 -0
- package/src/components/transform/download-act-btn.vue +245 -0
- package/src/components/transform/download-btn.vue +198 -0
- package/src/components/transform/uploader-btn.vue +143 -0
- package/src/components/transform/uploaderOptions.js +8 -0
- package/src/components/transform/utils/computeMD5.js +61 -0
- package/src/components/tree-select.vue +371 -0
- package/src/components/yt-editor.vue +303 -0
- package/src/components/yt-org/1.json +11720 -0
- package/src/components/yt-org/data.js +159 -0
- package/src/components/yt-org/index.js +3 -0
- package/src/components/yt-org/main.vue +143 -0
- package/src/components/yt-table-download.vue +226 -0
- package/src/components/yt-/342/200/216questionnaire/index.js +3 -0
- package/src/components/yt-/342/200/216questionnaire/main.vue +422 -0
- package/src/directive/common.js +8 -0
- package/src/directive/directives.js +13 -0
- package/src/directive/yt-dialog-drag/index.js +3 -0
- package/src/directive/yt-dialog-drag/yt-dialog-drag.js +88 -0
- package/src/directive/yt-hover/base.js +106 -0
- package/src/directive/yt-hover/index.js +14 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/system.js +18 -0
- package/src/icons/index.js +3 -0
- package/src/icons/resource/empty.png +0 -0
- package/src/icons/resource/icon.png +0 -0
- package/src/icons/resource/icon2.png +0 -0
- package/src/icons/resource/image.png +0 -0
- package/src/icons/svg/analysis-logo.svg +1 -0
- package/src/icons/svg/btn-export.svg +1 -0
- package/src/icons/svg/channel-class-rule.svg +1 -0
- package/src/icons/svg/channel-fields.svg +1 -0
- package/src/icons/svg/channel-reach-temp.svg +1 -0
- package/src/icons/svg/channel-select.svg +1 -0
- package/src/icons/svg/channel-switch.svg +1 -0
- package/src/icons/svg/channel-text.svg +1 -0
- package/src/icons/svg/channel-time.svg +1 -0
- package/src/icons/svg/channel-timerange.svg +1 -0
- package/src/icons/svg/channel-turnover.svg +1 -0
- package/src/icons/svg/earlyTermination.svg +20 -0
- package/src/icons/svg/equity-active.svg +1 -0
- package/src/icons/svg/equity.svg +1 -0
- package/src/icons/svg/event-file.svg +1 -0
- package/src/icons/svg/event-tree-icon.svg +1 -0
- package/src/icons/svg/finish.svg +20 -0
- package/src/icons/svg/full-screen.svg +12 -0
- package/src/icons/svg/monitoring-operate1.svg +1 -0
- package/src/icons/svg/monitoring-operate2.svg +1 -0
- package/src/icons/svg/monitoring-operate3.svg +1 -0
- package/src/icons/svg/more.svg +12 -0
- package/src/icons/svg/publish.svg +1 -0
- package/src/icons/svg/running.svg +20 -0
- package/src/icons/svg/scene-add.svg +1 -0
- package/src/icons/svg/scene-edit.svg +1 -0
- package/src/icons/svg/scene-sub.svg +1 -0
- package/src/icons/svg/tree-add.svg +1 -0
- package/src/icons/svg/tree-del.svg +1 -0
- package/src/icons/svg/tree-down.svg +1 -0
- package/src/icons/svg/tree-edit.svg +1 -0
- package/src/icons/svg/tree-file.svg +1 -0
- package/src/icons/svg/tree-refresh.svg +1 -0
- package/src/icons/svg/tree-up.svg +1 -0
- package/src/icons/svgo.yml +21 -0
- package/src/layout/layout-chrome-nav.vue +420 -0
- package/src/layout/layout-header.vue +393 -0
- package/src/layout/layout-nav.vue +583 -0
- package/src/layout/layout-side1.vue +290 -0
- package/src/layout/layout-water.vue +75 -0
- package/src/layout/layout.vue +610 -0
- package/src/layout/my-keep-alive.js +178 -0
- package/src/libs/yt-ui/index.js +9 -0
- package/src/main.js +149 -0
- package/src/micro-app.js +113 -0
- package/src/public-path.js +9 -0
- package/src/router/analysis.js +21 -0
- package/src/router/brief-report.js +13 -0
- package/src/router/channel.js +22 -0
- package/src/router/controlCenter.js +39 -0
- package/src/router/customer.js +367 -0
- package/src/router/event-center.js +409 -0
- package/src/router/gift.js +31 -0
- package/src/router/h5-lucky-draw.js +183 -0
- package/src/router/index.js +164 -0
- package/src/router/market-activity.js +31 -0
- package/src/router/market.js +499 -0
- package/src/router/monitoring-center.js +39 -0
- package/src/router/oa.js +41 -0
- package/src/router/process.js +58 -0
- package/src/router/productCenter.js +60 -0
- package/src/router/reach-center.js +349 -0
- package/src/router/report.js +274 -0
- package/src/router/scene.js +64 -0
- package/src/router/system.js +147 -0
- package/src/router/task.js +13 -0
- package/src/router/template.js +161 -0
- package/src/sensors.js +22 -0
- package/src/store/index.js +364 -0
- package/src/store/modules/common.js +37 -0
- package/src/store/modules/customerExplore.js +24 -0
- package/src/store/modules/market.js +31 -0
- package/src/store/modules/nav.js +97 -0
- package/src/store/variables.js +87 -0
- package/src/styles/common.less +4 -0
- package/src/styles/el-custom.less +106 -0
- package/src/styles/index.less +4 -0
- package/src/styles/tailwind.less +34 -0
- package/src/styles/yt-custom.less +31 -0
- package/src/utils/ajax.js +377 -0
- package/src/utils/auth.js +18 -0
- package/src/utils/buildHTML.js +194 -0
- package/src/utils/charts.js +51 -0
- package/src/utils/clickoutside.js +58 -0
- package/src/utils/copyLink.js +18 -0
- package/src/utils/deepClone.js +71 -0
- package/src/utils/dom.js +194 -0
- package/src/utils/encrypt.js +113 -0
- package/src/utils/getOptions.js +35 -0
- package/src/utils/htmlToPdf.js +56 -0
- package/src/utils/image.js +24 -0
- package/src/utils/index.js +786 -0
- package/src/utils/monitor.js +57 -0
- package/src/utils/repeatApi.js +39 -0
- package/src/utils/setProfile.js +21 -0
- package/src/utils/user.js +34 -0
- package/src/utils/variable.js +503 -0
- package/src/utils/xml.js +133 -0
- package/src/views/404.vue +96 -0
- package/src/views/abnormal-activity/index.vue +120 -0
- package/src/views/allocation-rule/common.js +12 -0
- package/src/views/allocation-rule/components/attr-select.vue +89 -0
- package/src/views/allocation-rule/index.vue +283 -0
- package/src/views/analysis/activity/Detail.vue +375 -0
- package/src/views/analysis/activity/Effect.vue +349 -0
- package/src/views/analysis/activity/Overview.vue +339 -0
- package/src/views/analysis/activity/index.vue +93 -0
- package/src/views/analysis/index.vue +12 -0
- package/src/views/analysis/utils.js +40 -0
- package/src/views/blank.vue +88 -0
- package/src/views/briefReportNew/components/bar-card.vue +110 -0
- package/src/views/briefReportNew/components/progress-list.vue +66 -0
- package/src/views/briefReportNew/components/tab-content.vue +179 -0
- package/src/views/briefReportNew/components/table-list.vue +102 -0
- package/src/views/briefReportNew/components/target-card.vue +75 -0
- package/src/views/briefReportNew/components/the-pending-table.vue +71 -0
- package/src/views/briefReportNew/components/the-pengding-progress.vue +75 -0
- package/src/views/briefReportNew/config/option.js +20 -0
- package/src/views/briefReportNew/index.vue +221 -0
- package/src/views/channel/avoidDisturb/avoid-disturb-range-picker.vue +49 -0
- package/src/views/channel/avoidDisturb/cstRange.vue +89 -0
- package/src/views/channel/avoidDisturb/index.vue +703 -0
- package/src/views/channel/channel-side.vue +354 -0
- package/src/views/channel/format.js +72 -0
- package/src/views/channel/index.vue +535 -0
- package/src/views/channel-components/components/component-left.vue +525 -0
- package/src/views/channel-components/components/component-view-item.vue +70 -0
- package/src/views/channel-components/components/components-configs.vue +104 -0
- package/src/views/channel-components/components/components-content.vue +288 -0
- package/src/views/channel-components/components/content-comp-dialog.vue +157 -0
- package/src/views/channel-components/config.js +273 -0
- package/src/views/channel-components/edit.vue +289 -0
- package/src/views/channel-components/index.vue +210 -0
- package/src/views/channel-components/util.js +20 -0
- package/src/views/controlCenter/chart-line.vue +64 -0
- package/src/views/controlCenter/chartOption.js +321 -0
- package/src/views/controlCenter/common-label.vue +48 -0
- package/src/views/controlCenter/content-card.vue +39 -0
- package/src/views/controlCenter/detail/channelDetail.vue +135 -0
- package/src/views/controlCenter/detail/eventDetail.vue +123 -0
- package/src/views/controlCenter/detail/labelDetail.vue +91 -0
- package/src/views/controlCenter/index.vue +146 -0
- package/src/views/controlCenter/label-card.vue +48 -0
- package/src/views/controlCenter/tab-content.vue +189 -0
- package/src/views/customer/app-act.vue +314 -0
- package/src/views/customer/bitmap/condition-save.vue +80 -0
- package/src/views/customer/bitmap/dialog.vue +129 -0
- package/src/views/customer/bitmap/loading-condition.vue +176 -0
- package/src/views/customer/bitmap/loading-log.vue +110 -0
- package/src/views/customer/bitmap/pre-loading.vue +241 -0
- package/src/views/customer/business-editor-tree.vue +309 -0
- package/src/views/customer/components/compound-tags-dialog.vue +141 -0
- package/src/views/customer/components/customer-to-group.vue +549 -0
- package/src/views/customer/components/reward-punishment.vue +106 -0
- package/src/views/customer/compound-tags.vue +231 -0
- package/src/views/customer/computed-tags/confirm-modal-new.vue +473 -0
- package/src/views/customer/computed-tags/confirm-modal.vue +116 -0
- package/src/views/customer/computed-tags/edit-modal-new.vue +512 -0
- package/src/views/customer/computed-tags/index.vue +290 -0
- package/src/views/customer/customer-ai-group-detail.vue +421 -0
- package/src/views/customer/customer-ai-group.vue +124 -0
- package/src/views/customer/customer-editor-header.vue +165 -0
- package/src/views/customer/customer-editor-list-multiple.vue +47 -0
- package/src/views/customer/customer-editor-list.vue +363 -0
- package/src/views/customer/customer-editor-org.vue +60 -0
- package/src/views/customer/customer-editor-save.vue +140 -0
- package/src/views/customer/customer-editor-tree-detail.vue +66 -0
- package/src/views/customer/customer-editor-tree.vue +457 -0
- package/src/views/customer/customer-get-from-group.vue +167 -0
- package/src/views/customer/customer-group-result-charts.vue +263 -0
- package/src/views/customer/customer-group-upload-detail.vue +211 -0
- package/src/views/customer/customer-group-upload-ext.vue +290 -0
- package/src/views/customer/customer-group-upload.vue +291 -0
- package/src/views/customer/customer-group.vue +521 -0
- package/src/views/customer/customer-judge-cst-group.vue +190 -0
- package/src/views/customer/customer-label-update-recycler.vue +151 -0
- package/src/views/customer/customer-label-update.vue +366 -0
- package/src/views/customer/customer-result-charts-detail.vue +387 -0
- package/src/views/customer/customer-result-charts.vue +264 -0
- package/src/views/customer/customer-result-checkbox.vue +58 -0
- package/src/views/customer/customer-result-fields-select-avyno.vue +298 -0
- package/src/views/customer/customer-result-fields-select-model.vue +241 -0
- package/src/views/customer/customer-result-fields-select-tab.vue +229 -0
- package/src/views/customer/customer-result-fields-select.vue +271 -0
- package/src/views/customer/customer-result-fields.vue +313 -0
- package/src/views/customer/customer-result-filter.vue +265 -0
- package/src/views/customer/customer-result.vue +499 -0
- package/src/views/customer/explore/customer-explore-detail.vue +421 -0
- package/src/views/customer/explore/customer-explore.vue +623 -0
- package/src/views/customer/explore/customer-twice-explore.vue +566 -0
- package/src/views/customer/growth-center.vue +156 -0
- package/src/views/customer/gruop/group-member.vue +338 -0
- package/src/views/customer/gruop/member-dialog.vue +179 -0
- package/src/views/customer/gruop/member-maintain.vue +241 -0
- package/src/views/customer/marketing-anti-disturbance.vue +199 -0
- package/src/views/customer/name-manage/index.vue +155 -0
- package/src/views/customer/name-manage/rule-name.vue +138 -0
- package/src/views/customer/personas/age-chart.vue +177 -0
- package/src/views/customer/personas/count-chart.vue +154 -0
- package/src/views/customer/personas/index.vue +220 -0
- package/src/views/customer/personas/level-chart.vue +143 -0
- package/src/views/customer/staff-center.vue +237 -0
- package/src/views/gift/gift-type-manage/gift-list-dialog.vue +115 -0
- package/src/views/gift/gift-type-manage/index.vue +85 -0
- package/src/views/gift/gift-type-manage/type-edit-dialog.vue +104 -0
- package/src/views/gift/gift-type-manage/type-select.vue +198 -0
- package/src/views/gift/gift-type-manage/type-table.vue +494 -0
- package/src/views/gift/gift-type-manage/type-tree.vue +333 -0
- package/src/views/gift/manage/index.vue +85 -0
- package/src/views/gift/manage/list/index.vue +545 -0
- package/src/views/gift/manage/pack/gift-select-dialog.vue +302 -0
- package/src/views/gift/manage/pack/gift-select.vue +201 -0
- package/src/views/gift/manage/pack/index.vue +583 -0
- package/src/views/gift/manage/pack/log-dialog.vue +294 -0
- package/src/views/gift/type/gift-list-dialog.vue +164 -0
- package/src/views/gift/type/gift-setting-dialog.vue +198 -0
- package/src/views/gift/type/index.vue +81 -0
- package/src/views/gift/type/type-edit-dialog.vue +109 -0
- package/src/views/gift/type/type-select.vue +184 -0
- package/src/views/gift/type/type-table.vue +482 -0
- package/src/views/gift/type/type-tree.vue +283 -0
- package/src/views/home-new/activity-data.vue +214 -0
- package/src/views/home-new/activity-strategy.vue +129 -0
- package/src/views/home-new/channel-data.vue +95 -0
- package/src/views/home-new/common/option.js +260 -0
- package/src/views/home-new/components/AnnoumcementDetail.vue +234 -0
- package/src/views/home-new/components/chart-container.vue +54 -0
- package/src/views/home-new/components/chart-parent.vue +111 -0
- package/src/views/home-new/components/chart-switch.vue +172 -0
- package/src/views/home-new/components/detail-card.vue +180 -0
- package/src/views/home-new/components/empty.vue +22 -0
- package/src/views/home-new/components/msg-card.vue +194 -0
- package/src/views/home-new/components/notice-card copy.vue +82 -0
- package/src/views/home-new/components/notice-card.vue +129 -0
- package/src/views/home-new/components/part-body.vue +36 -0
- package/src/views/home-new/components/ranking-list.vue +84 -0
- package/src/views/home-new/components/statistics-small-card.vue +70 -0
- package/src/views/home-new/components/tab-content.vue +168 -0
- package/src/views/home-new/index.vue +469 -0
- package/src/views/home-new/label-data.vue +271 -0
- package/src/views/home-new/list-data.vue +99 -0
- package/src/views/identify.vue +121 -0
- package/src/views/iframe/activity-detail-report.vue +31 -0
- package/src/views/iframe/analysis-activity-effectiveness.vue +31 -0
- package/src/views/iframe/analysis-activity-summary.vue +29 -0
- package/src/views/iframe/analysis-effectiveness-funnel.vue +29 -0
- package/src/views/iframe/analysis-market-effectiveness.vue +29 -0
- package/src/views/iframe/analysis-market-summary.vue +29 -0
- package/src/views/iframe/business-detail.vue +31 -0
- package/src/views/iframe/business-summary-account.vue +31 -0
- package/src/views/iframe/business-summary-branch.vue +31 -0
- package/src/views/iframe/business-summary-head.vue +31 -0
- package/src/views/iframe/business-summary-sub.vue +31 -0
- package/src/views/iframe/business-summary.vue +31 -0
- package/src/views/iframe/customer-purch-details.vue +31 -0
- package/src/views/iframe/customer-repurch-behavior.vue +31 -0
- package/src/views/iframe/product-sale-analysis.vue +31 -0
- package/src/views/iframe/product-sales-channel.vue +31 -0
- package/src/views/iframe/purch-product-detail.vue +31 -0
- package/src/views/iframe/self-analysis.vue +31 -0
- package/src/views/login/index.vue +184 -0
- package/src/views/login/login.less +97 -0
- package/src/views/market/act-type-setting/act-type-edit-dialog.vue +111 -0
- package/src/views/market/act-type-setting/act-type-select.vue +153 -0
- package/src/views/market/act-type-setting/act-type-table.vue +455 -0
- package/src/views/market/act-type-setting/act-type-tree.vue +235 -0
- package/src/views/market/act-type-setting/index.vue +71 -0
- package/src/views/market/business/components/add.vue +638 -0
- package/src/views/market/business/components/app-pop-template.vue +182 -0
- package/src/views/market/business/components/business-pause.vue +99 -0
- package/src/views/market/business/components/business-recover.vue +131 -0
- package/src/views/market/business/components/business-side-channel.vue +265 -0
- package/src/views/market/business/components/business-side-content.vue +503 -0
- package/src/views/market/business/components/business-side-customer.vue +257 -0
- package/src/views/market/business/components/business-side-detail.vue +305 -0
- package/src/views/market/business/components/business-side-opportunity-trigger.vue +427 -0
- package/src/views/market/business/components/util.js +379 -0
- package/src/views/market/business/index.vue +468 -0
- package/src/views/market/calculate/customer-group.vue +199 -0
- package/src/views/market/calculate/history-data.vue +457 -0
- package/src/views/market/calculate/index.vue +260 -0
- package/src/views/market/common/config.js +352 -0
- package/src/views/market/component-manage/index.vue +150 -0
- package/src/views/market/components/act-target.vue +548 -0
- package/src/views/market/components/activity-import-dialog.vue +115 -0
- package/src/views/market/components/channel-target.vue +204 -0
- package/src/views/market/components/corn-editor-dialog-new.vue +304 -0
- package/src/views/market/components/corn-editor.vue +115 -0
- package/src/views/market/components/cycle-setting.vue +321 -0
- package/src/views/market/components/event-group-selector.vue +140 -0
- package/src/views/market/components/event-template/apply-confirm.vue +56 -0
- package/src/views/market/components/event-template/index-origin.vue +357 -0
- package/src/views/market/components/event-template/index.vue +466 -0
- package/src/views/market/components/event-template/scene-template-index.vue +304 -0
- package/src/views/market/components/event-template/scene-template.vue +85 -0
- package/src/views/market/components/event-template/share-dialog.vue +111 -0
- package/src/views/market/components/event-template/template-item.vue +243 -0
- package/src/views/market/components/game-temp.vue +169 -0
- package/src/views/market/components/sub-activity-table.vue +173 -0
- package/src/views/market/components/target-run-time.vue +94 -0
- package/src/views/market/components/task-temp.vue +155 -0
- package/src/views/market/event/event-channel-status.vue +30 -0
- package/src/views/market/event/event-cycle.vue +773 -0
- package/src/views/market/event/event-delay.vue +102 -0
- package/src/views/market/event/event-log.vue +214 -0
- package/src/views/market/event/event-modify-dialog.vue +76 -0
- package/src/views/market/event/event-timeline.vue +80 -0
- package/src/views/market/event/event.vue +1226 -0
- package/src/views/market/event/lotteryManage.vue +602 -0
- package/src/views/market/external-act-manage/index.vue +329 -0
- package/src/views/market/group/group-analysis.vue +213 -0
- package/src/views/market/group/group-edit.vue +437 -0
- package/src/views/market/group/group-link.vue +127 -0
- package/src/views/market/group/group.vue +208 -0
- package/src/views/market/index.vue +441 -0
- package/src/views/market/lottery/creatActivity.vue +108 -0
- package/src/views/market/lottery/lotteryManage.vue +212 -0
- package/src/views/market/lottery/publish.vue +299 -0
- package/src/views/market/lottery/rewardTable.vue +310 -0
- package/src/views/market/lottery/uploadImage.vue +62 -0
- package/src/views/market/market-event-create/index.vue +371 -0
- package/src/views/market/market-event-create/market-event-base/cost-dialog.vue +103 -0
- package/src/views/market/market-event-create/market-event-base/costs-manager.vue +322 -0
- package/src/views/market/market-event-create/market-event-base/index.vue +947 -0
- package/src/views/market/market-event-create/market-event-detail/event-canvas.vue +1580 -0
- package/src/views/market/market-event-create/market-event-detail/event-main-btns.vue +1784 -0
- package/src/views/market/market-event-create/market-event-detail/event-main.vue +984 -0
- package/src/views/market/market-event-create/market-event-detail/index.vue +144 -0
- package/src/views/market/market-event-detail-pro/components/act-target-detail.vue +184 -0
- package/src/views/market/market-event-detail-pro/components/act-target.vue +273 -0
- package/src/views/market/market-event-detail-pro/components/test-group.vue +57 -0
- package/src/views/market/market-event-detail-pro/detail.json +218 -0
- package/src/views/market/market-event-detail-pro/event-canvas-detail.vue +826 -0
- package/src/views/market/market-event-detail-pro/event-detail-base.vue +765 -0
- package/src/views/market/market-event-detail-pro/event-detail-exam.vue +318 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/canvas.less +145 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/channels/call.js +185 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/channels/client.js +106 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/channels/dynamic-channel.js +181 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/channels/handbnk.js +120 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/channels/phonebnk.js +166 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/channels/sms.js +165 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/channels/teleSalesPlat.js +150 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/channels/wechat.js +9 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/common.js +135 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/customer/activityCst.js +58 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/customer/composeCst.js +30 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/customer/cst.js +165 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/customer/flowCst.js +30 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/index.js +148 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/optionsApi.js +290 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/resources/activity.js +31 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/resources/content.js +237 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/resources/gift.js +72 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/resources/product.js +59 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/channel.js +17 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/channelBranch.js +103 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/customer.js +14 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/customerBranch.js +60 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/event.js +69 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/eventBranch.js +65 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/eventRespFlowBranchNoResp.js +5 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/eventRespFlowBranchResp.js +6 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/label.js +14 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/labelBranch.js +24 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/merge.js +20 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/random.js +29 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/split/randomBranch.js +22 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/time/waitEvent.js +123 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/time/waitFixTime.js +50 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/time/waitToTime.js +97 -0
- package/src/views/market/market-event-detail-pro/htmlGenerator/util.js +179 -0
- package/src/views/market/market-event-detail-pro/index.vue +373 -0
- package/src/views/market/market-event-detail-pro/market-event-approval-detail.vue +373 -0
- package/src/views/market/market-event-detail-pro/time/event-approve-time.vue +60 -0
- package/src/views/market/market-event-detail-pro/time/event-run-time.vue +89 -0
- package/src/views/market/market-event-detail-pro/time/event-watch-time.vue +99 -0
- package/src/views/market/market-event-edit/act-event.vue +675 -0
- package/src/views/market/market-event-edit/event-calc-btns.vue +107 -0
- package/src/views/market/market-event-edit/event-calc.vue +122 -0
- package/src/views/market/market-event-edit/event-canvas.vue +1593 -0
- package/src/views/market/market-event-edit/event-dialog-edit.vue +711 -0
- package/src/views/market/market-event-edit/event-main-btns.vue +1008 -0
- package/src/views/market/market-event-edit/event-main.vue +528 -0
- package/src/views/market/market-event-edit/event-publish-confirm.vue +47 -0
- package/src/views/market/market-event-edit/index.vue +62 -0
- package/src/views/market/market-event-edit/select/node-select-appact.vue +119 -0
- package/src/views/market/market-event-edit/select/node-select-channel-tag-ai.vue +192 -0
- package/src/views/market/market-event-edit/select/node-select-channel-tag.vue +242 -0
- package/src/views/market/market-event-edit/select/node-select-customer-ai-group.vue +113 -0
- package/src/views/market/market-event-edit/select/node-select-customer-detail.vue +196 -0
- package/src/views/market/market-event-edit/select/node-select-customer-group.vue +62 -0
- package/src/views/market/market-event-edit/select/node-select-customer.vue +105 -0
- package/src/views/market/market-event-edit/select/node-select-event.vue +123 -0
- package/src/views/market/market-event-edit/select/node-select-explore-group.vue +74 -0
- package/src/views/market/market-event-edit/select/node-select-explore.vue +86 -0
- package/src/views/market/market-event-edit/select/node-select-group.vue +884 -0
- package/src/views/market/market-event-edit/select/node-select-limit-time.vue +72 -0
- package/src/views/market/market-event-edit/select/node-select-maincontent-tag.vue +84 -0
- package/src/views/market/market-event-edit/select/node-select-message.vue +332 -0
- package/src/views/market/market-event-edit/select/node-select-questionnaire.vue +92 -0
- package/src/views/market/market-event-edit/select/node-select-suprecord.vue +97 -0
- package/src/views/market/market-event-edit/select/node-select-tag-customer.vue +210 -0
- package/src/views/market/market-event-edit/select/node-select-unique-customer.vue +83 -0
- package/src/views/market/market-event-edit/select/node-select.vue +280 -0
- package/src/views/market/market-event-edit/select/node-temp-detail.vue +88 -0
- package/src/views/market/market-event-edit/side/dialog-side.vue +87 -0
- package/src/views/market/market-event-edit/side/event-form.vue +837 -0
- package/src/views/market/market-event-edit/side/node-side-channel.vue +977 -0
- package/src/views/market/market-event-edit/side/node-side-content.vue +167 -0
- package/src/views/market/market-event-edit/side/node-side-customer.vue +425 -0
- package/src/views/market/market-event-edit/side/node-side-detail.vue +620 -0
- package/src/views/market/market-event-edit/side/node-side-event.vue +378 -0
- package/src/views/market/market-event-edit/side/node-side-merge-branch.vue +108 -0
- package/src/views/market/market-event-edit/side/node-side-merge-table.vue +149 -0
- package/src/views/market/market-event-edit/side/node-side-merge.vue +117 -0
- package/src/views/market/market-event-edit/side/node-side-strategy-branch-editor.vue +205 -0
- package/src/views/market/market-event-edit/side/node-side-strategy-branch.vue +286 -0
- package/src/views/market/market-event-edit/side/node-side-strategy-table.vue +210 -0
- package/src/views/market/market-event-edit/side/node-side-strategy.vue +200 -0
- package/src/views/market/market-event-edit/side/node-side-time-config.vue +45 -0
- package/src/views/market/market-event-edit/side/node-side-time.vue +126 -0
- package/src/views/market/market-event-edit/side/node-upload-customer-detail.vue +252 -0
- package/src/views/market/market-event-edit/side/qrcode-preview.vue +25 -0
- package/src/views/market/market-event-edit/time/event-approve-time.vue +58 -0
- package/src/views/market/market-event-edit/time/event-run-time.vue +88 -0
- package/src/views/market/market-event-edit/time/event-watch-time.vue +88 -0
- package/src/views/market/market-event-edit/util.js +1832 -0
- package/src/views/market/market-event-edit-pro/dialog/components/content-analysi-channel.vue +190 -0
- package/src/views/market/market-event-edit-pro/dialog/components/content-analysis-customer.vue +199 -0
- package/src/views/market/market-event-edit-pro/dialog/components/content-analysis-flow-branch.vue +170 -0
- package/src/views/market/market-event-edit-pro/dialog/components/content-analysis-flow.vue +168 -0
- package/src/views/market/market-event-edit-pro/dialog/components/content-analysis-waitEvent.vue +194 -0
- package/src/views/market/market-event-edit-pro/dialog/components/content-analysis-waitFixTime.vue +143 -0
- package/src/views/market/market-event-edit-pro/dialog/components/node-customer-list.vue +293 -0
- package/src/views/market/market-event-edit-pro/dialog/components/node-equity-list.vue +225 -0
- package/src/views/market/market-event-edit-pro/dialog/components/options.js +318 -0
- package/src/views/market/market-event-edit-pro/dialog/components/theEchartFunctional.vue +179 -0
- package/src/views/market/market-event-edit-pro/dialog/event-template-save.vue +93 -0
- package/src/views/market/market-event-edit-pro/dialog/fail-upload-list.vue +96 -0
- package/src/views/market/market-event-edit-pro/dialog/node-content-analysis.vue +86 -0
- package/src/views/market/market-event-edit-pro/dialog/node-content-error.vue +131 -0
- package/src/views/market/market-event-edit-pro/dialog/same-type-customer-list.vue +183 -0
- package/src/views/market/market-event-edit-pro/dialog/upload.vue +316 -0
- package/src/views/market/market-event-edit-pro/event-base.vue +594 -0
- package/src/views/market/market-event-edit-pro/event-calc-btns.vue +132 -0
- package/src/views/market/market-event-edit-pro/event-calc.vue +129 -0
- package/src/views/market/market-event-edit-pro/event-canvas.vue +1434 -0
- package/src/views/market/market-event-edit-pro/event-main-btns.vue +1187 -0
- package/src/views/market/market-event-edit-pro/event-main.vue +755 -0
- package/src/views/market/market-event-edit-pro/event-publish-confirm.vue +47 -0
- package/src/views/market/market-event-edit-pro/function/channel-func.js +18 -0
- package/src/views/market/market-event-edit-pro/function/getNodeForm.js +755 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/active.js +35 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/anchor-add-edge.js +536 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/brush-select.js +266 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/click-select.js +104 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/copy-paste.js +317 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/drag-canvas.js +167 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/drag-node.js +518 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/index.js +15 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/key-delete.js +250 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/paste.js +328 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/search-node.js +72 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/select-all.js +78 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/template-use.js +51 -0
- package/src/views/market/market-event-edit-pro/g6-config/behavior/zoom-canvas.js +66 -0
- package/src/views/market/market-event-edit-pro/g6-config/common.js +84 -0
- package/src/views/market/market-event-edit-pro/g6-config/flow-line-readonly.js +59 -0
- package/src/views/market/market-event-edit-pro/g6-config/flow-line.js +306 -0
- package/src/views/market/market-event-edit-pro/g6-config/flow-node-readonly.js +171 -0
- package/src/views/market/market-event-edit-pro/g6-config/flow-node.js +420 -0
- package/src/views/market/market-event-edit-pro/g6-config/index.js +57 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/AlignToolBar.js +369 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/Base.js +65 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/DefaultToolBar.js +425 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/FullScreenToolBar.js +212 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/Grid.js +66 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/MenuToolBar.js +1858 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/Minimap.js +510 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/SearchToolBar.js +356 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/ZoomToolBar.js +372 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignBottom.svg +12 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignCenter.svg +20 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignHorizontal.svg +12 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignLeft.svg +12 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignMiddle.svg +14 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignRight.svg +12 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignTop.svg +12 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/alignVertical.svg +12 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/beautify.svg +30 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/clear.svg +12 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/close.svg +12 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/detail.svg +20 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/download.svg +17 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/hide.svg +15 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/link.svg +17 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/more.svg +1 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/panorama.svg +10 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/redo.svg +11 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-allSelect.svg +14 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-copy.svg +24 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-del.svg +27 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-enable.svg +1 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-group.svg +15 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-paste.svg +25 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-stop.svg +1 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/rightClick-switch.svg +1 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/show.svg +15 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/template.svg +23 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/undo.svg +11 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/zoom-in.svg +12 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/imgs/zoom-out.svg +12 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/index.js +22 -0
- package/src/views/market/market-event-edit-pro/g6-config/plugins/util.js +6 -0
- package/src/views/market/market-event-edit-pro/g6-config/stack/index.js +111 -0
- package/src/views/market/market-event-edit-pro/g6-config/stack/linked-list.js +236 -0
- package/src/views/market/market-event-edit-pro/g6-config/stack/stack.js +61 -0
- package/src/views/market/market-event-edit-pro/index.vue +71 -0
- package/src/views/market/market-event-edit-pro/select/detail-test-run-customer.vue +252 -0
- package/src/views/market/market-event-edit-pro/select/endday-trigger-rule.vue +195 -0
- package/src/views/market/market-event-edit-pro/select/node-select-act-case-library.vue +283 -0
- package/src/views/market/market-event-edit-pro/select/node-select-act-gift-group-copy.vue +438 -0
- package/src/views/market/market-event-edit-pro/select/node-select-act-gift-group.vue +851 -0
- package/src/views/market/market-event-edit-pro/select/node-select-allocation-rule.vue +126 -0
- package/src/views/market/market-event-edit-pro/select/node-select-app-act-group.vue +84 -0
- package/src/views/market/market-event-edit-pro/select/node-select-appact.vue +120 -0
- package/src/views/market/market-event-edit-pro/select/node-select-call-name.vue +156 -0
- package/src/views/market/market-event-edit-pro/select/node-select-channel-tag-ai.vue +191 -0
- package/src/views/market/market-event-edit-pro/select/node-select-channel-tag-customer.vue +202 -0
- package/src/views/market/market-event-edit-pro/select/node-select-channel-tag.vue +341 -0
- package/src/views/market/market-event-edit-pro/select/node-select-content-act.vue +314 -0
- package/src/views/market/market-event-edit-pro/select/node-select-content-equity.vue +488 -0
- package/src/views/market/market-event-edit-pro/select/node-select-content-graphic-template-detail.vue +200 -0
- package/src/views/market/market-event-edit-pro/select/node-select-content-graphic-template.vue +118 -0
- package/src/views/market/market-event-edit-pro/select/node-select-content-pro.vue +412 -0
- package/src/views/market/market-event-edit-pro/select/node-select-content-tab.vue +409 -0
- package/src/views/market/market-event-edit-pro/select/node-select-content-temp-inside.vue +193 -0
- package/src/views/market/market-event-edit-pro/select/node-select-content-temp-outside.vue +268 -0
- package/src/views/market/market-event-edit-pro/select/node-select-customer-ai-group.vue +118 -0
- package/src/views/market/market-event-edit-pro/select/node-select-customer-detail.vue +195 -0
- package/src/views/market/market-event-edit-pro/select/node-select-customer-group-tag.vue +396 -0
- package/src/views/market/market-event-edit-pro/select/node-select-customer-group.vue +62 -0
- package/src/views/market/market-event-edit-pro/select/node-select-customer-import.vue +168 -0
- package/src/views/market/market-event-edit-pro/select/node-select-customer.vue +105 -0
- package/src/views/market/market-event-edit-pro/select/node-select-equity-adv.vue +119 -0
- package/src/views/market/market-event-edit-pro/select/node-select-event.vue +128 -0
- package/src/views/market/market-event-edit-pro/select/node-select-explore-group.vue +66 -0
- package/src/views/market/market-event-edit-pro/select/node-select-external-act-copy.vue +279 -0
- package/src/views/market/market-event-edit-pro/select/node-select-external-act.vue +228 -0
- package/src/views/market/market-event-edit-pro/select/node-select-group.vue +1129 -0
- package/src/views/market/market-event-edit-pro/select/node-select-label-group.vue +930 -0
- package/src/views/market/market-event-edit-pro/select/node-select-maincontent-tag.vue +84 -0
- package/src/views/market/market-event-edit-pro/select/node-select-message.vue +384 -0
- package/src/views/market/market-event-edit-pro/select/node-select-prod-adv.vue +115 -0
- package/src/views/market/market-event-edit-pro/select/node-select-prod-detail.vue +126 -0
- package/src/views/market/market-event-edit-pro/select/node-select-prod-pro-name.vue +345 -0
- package/src/views/market/market-event-edit-pro/select/node-select-strtg-name.vue +147 -0
- package/src/views/market/market-event-edit-pro/select/node-select-suprecord.vue +97 -0
- package/src/views/market/market-event-edit-pro/select/node-select-tag-customer.vue +162 -0
- package/src/views/market/market-event-edit-pro/select/node-select-unique-customer.vue +118 -0
- package/src/views/market/market-event-edit-pro/select/node-select.vue +462 -0
- package/src/views/market/market-event-edit-pro/select/node-side-channel-preview.vue +144 -0
- package/src/views/market/market-event-edit-pro/select/node-side-customer-group-detail.vue +20 -0
- package/src/views/market/market-event-edit-pro/select/node-side-wechat-sub.vue +99 -0
- package/src/views/market/market-event-edit-pro/select/node-temp-detail.vue +94 -0
- package/src/views/market/market-event-edit-pro/select/product-mix-mode-custom.vue +239 -0
- package/src/views/market/market-event-edit-pro/select/product-select-detail.vue +190 -0
- package/src/views/market/market-event-edit-pro/select/product-select.vue +166 -0
- package/src/views/market/market-event-edit-pro/select/realtime-trigger-rule.vue +257 -0
- package/src/views/market/market-event-edit-pro/side/act/node-side-act.vue +193 -0
- package/src/views/market/market-event-edit-pro/side/channels/channel-comp.js +616 -0
- package/src/views/market/market-event-edit-pro/side/channels/common.js +297 -0
- package/src/views/market/market-event-edit-pro/side/channels/dialog/channel-dynamic-select-dialog.vue +399 -0
- package/src/views/market/market-event-edit-pro/side/channels/dialog/channel-target.vue +140 -0
- package/src/views/market/market-event-edit-pro/side/channels/dialog/code-table.vue +110 -0
- package/src/views/market/market-event-edit-pro/side/channels/dialog/issue-fields-select.vue +91 -0
- package/src/views/market/market-event-edit-pro/side/channels/dialog/preview.vue +488 -0
- package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-call.vue +388 -0
- package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-client.vue +226 -0
- package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-dynamic.vue +346 -0
- package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-elecpin.vue +231 -0
- package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-handbnk.vue +176 -0
- package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-phonebnk.vue +478 -0
- package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-sms.vue +486 -0
- package/src/views/market/market-event-edit-pro/side/channels/node-side-channel-wechat.vue +182 -0
- package/src/views/market/market-event-edit-pro/side/customer/node-side-activityCst.vue +255 -0
- package/src/views/market/market-event-edit-pro/side/customer/node-side-composeCst.vue +186 -0
- package/src/views/market/market-event-edit-pro/side/customer/node-side-customer.vue +606 -0
- package/src/views/market/market-event-edit-pro/side/customer/node-side-flowCst.vue +186 -0
- package/src/views/market/market-event-edit-pro/side/dialog-side.vue +550 -0
- package/src/views/market/market-event-edit-pro/side/equity/node-side-equity.vue +264 -0
- package/src/views/market/market-event-edit-pro/side/event-form.vue +992 -0
- package/src/views/market/market-event-edit-pro/side/merge/node-side-merge.vue +145 -0
- package/src/views/market/market-event-edit-pro/side/node-card-tips.vue +178 -0
- package/src/views/market/market-event-edit-pro/side/node-side-detail-scene.vue +392 -0
- package/src/views/market/market-event-edit-pro/side/node-side-detail.vue +853 -0
- package/src/views/market/market-event-edit-pro/side/node-side-strategy-branch-editor.vue +153 -0
- package/src/views/market/market-event-edit-pro/side/node-side-strategy-table.vue +270 -0
- package/src/views/market/market-event-edit-pro/side/node-side-time-config.vue +45 -0
- package/src/views/market/market-event-edit-pro/side/node-side-time.vue +125 -0
- package/src/views/market/market-event-edit-pro/side/node-upload-customer-detail.vue +214 -0
- package/src/views/market/market-event-edit-pro/side/node-upload-customer.vue +369 -0
- package/src/views/market/market-event-edit-pro/side/opportunity/node-side-opportunity-delay.vue +166 -0
- package/src/views/market/market-event-edit-pro/side/opportunity/node-side-opportunity-timer.vue +267 -0
- package/src/views/market/market-event-edit-pro/side/opportunity/node-side-opportunity-trigger.vue +814 -0
- package/src/views/market/market-event-edit-pro/side/resource/node-side-act.vue +194 -0
- package/src/views/market/market-event-edit-pro/side/resource/node-side-content.vue +679 -0
- package/src/views/market/market-event-edit-pro/side/resource/node-side-equity.vue +293 -0
- package/src/views/market/market-event-edit-pro/side/resource/node-side-prod.vue +227 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-merge.vue +141 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-channel-branch.vue +434 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-channel.vue +303 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-cst-branch.vue +241 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-cst.vue +187 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt-branch-new.vue +248 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt-branch-no-resp.vue +127 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt-branch-resp.vue +127 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt-branch.vue +757 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt-new.vue +873 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-evt.vue +169 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-label-branch.vue +242 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-label.vue +198 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-rdm-branch.vue +217 -0
- package/src/views/market/market-event-edit-pro/side/split/node-side-split-rdm.vue +200 -0
- package/src/views/market/market-event-edit-pro/time/event-approve-time.vue +60 -0
- package/src/views/market/market-event-edit-pro/time/event-run-time.vue +96 -0
- package/src/views/market/market-event-edit-pro/time/event-watch-time.vue +98 -0
- package/src/views/market/market-event-edit-pro/util.js +3877 -0
- package/src/views/market/marketing-anti-disturbance.vue +554 -0
- package/src/views/market/monitor/act-target-table.vue +123 -0
- package/src/views/market/monitor/card-item.vue +219 -0
- package/src/views/market/monitor/circulation-customer-list.vue +219 -0
- package/src/views/market/monitor/customer-list-extend.js +144 -0
- package/src/views/market/monitor/customer-list.vue +761 -0
- package/src/views/market/monitor/info-card.vue +160 -0
- package/src/views/market/monitor/monitor-base.vue +357 -0
- package/src/views/market/monitor/monitor-charts-analysis.vue +41 -0
- package/src/views/market/monitor/monitor-detail-customer-target-detail.vue +66 -0
- package/src/views/market/monitor/monitor-detail-customer.vue +445 -0
- package/src/views/market/monitor/monitor-detail.vue +90 -0
- package/src/views/market/monitor/monitor-info-cur.vue +193 -0
- package/src/views/market/monitor/monitor-info.vue +245 -0
- package/src/views/market/monitor/monitor.vue +261 -0
- package/src/views/market/monitor/summary/channel-analysis-search.vue +198 -0
- package/src/views/market/monitor/summary/channel-analysis.vue +38 -0
- package/src/views/market/monitor/summary/channel-table.vue +353 -0
- package/src/views/market/monitor/summary/common/option.js +191 -0
- package/src/views/market/monitor/summary/components/channel-analysis-chart.vue +738 -0
- package/src/views/market/monitor/summary/components/channel-task-done.vue +333 -0
- package/src/views/market/monitor/summary/components/chart-container.vue +56 -0
- package/src/views/market/monitor/summary/components/chart-funnel.vue +190 -0
- package/src/views/market/monitor/summary/components/chart-line.vue +64 -0
- package/src/views/market/monitor/summary/components/chart-parent.vue +71 -0
- package/src/views/market/monitor/summary/components/customer-list.vue +636 -0
- package/src/views/market/monitor/summary/components/detail-card.vue +167 -0
- package/src/views/market/monitor/summary/components/empty.vue +22 -0
- package/src/views/market/monitor/summary/components/label-analysis-improve.vue +708 -0
- package/src/views/market/monitor/summary/components/label-analysis-whole.vue +859 -0
- package/src/views/market/monitor/summary/components/options-common.js +35 -0
- package/src/views/market/monitor/summary/components/part-body.vue +29 -0
- package/src/views/market/monitor/summary/components/ranking-list.vue +160 -0
- package/src/views/market/monitor/summary/components/statistics-small-card.vue +143 -0
- package/src/views/market/monitor/summary/components/tab-content.vue +167 -0
- package/src/views/market/monitor/summary/components/target-customer-list.vue +277 -0
- package/src/views/market/monitor/summary/components/task-content.vue +103 -0
- package/src/views/market/monitor/summary/components/task-sort.vue +216 -0
- package/src/views/market/monitor/summary/index.vue +687 -0
- package/src/views/market/monitor/summary/select-checkbox.vue +116 -0
- package/src/views/market/monitor/summary/summary-analysis.vue +547 -0
- package/src/views/market/monitor/summary/summary-label-analysis.vue +180 -0
- package/src/views/market/monitor/summary/summary-label-process.vue +19 -0
- package/src/views/market/monitor/summary/summary-label-result.vue +490 -0
- package/src/views/market/monitor/summary/summary-line-wjf.vue +456 -0
- package/src/views/market/monitor/summary/summary-line.vue +300 -0
- package/src/views/market/monitor/summary/summary-table.vue +106 -0
- package/src/views/market/monitor/target-analysis.vue +383 -0
- package/src/views/market/monitor/target-customer-list.vue +403 -0
- package/src/views/market/order/order-analysis-detail.vue +277 -0
- package/src/views/market/order/order-analysis.vue +258 -0
- package/src/views/market/order/order.vue +151 -0
- package/src/views/market/remote-canvas.vue +76 -0
- package/src/views/market/report/report-customer-branch.vue +147 -0
- package/src/views/market/report/report-customer-detail-target.vue +100 -0
- package/src/views/market/report/report-customer-detail.vue +120 -0
- package/src/views/market/report/report-customer-sub.vue +163 -0
- package/src/views/market/report/report-event-all.vue +182 -0
- package/src/views/market/report/report-event-sub.vue +200 -0
- package/src/views/market-activity/common/config.js +221 -0
- package/src/views/market-activity/components/bar-card.vue +66 -0
- package/src/views/market-activity/components/custom-date-picker.vue +214 -0
- package/src/views/market-activity/components/switch-tabs.vue +101 -0
- package/src/views/market-activity/components/tab-content.vue +166 -0
- package/src/views/market-activity/config/constant.js +82 -0
- package/src/views/market-activity/config/customer-result-checkbox.vue +58 -0
- package/src/views/market-activity/config/customer-result-fields.vue +324 -0
- package/src/views/market-activity/config/customer-result-filter.vue +265 -0
- package/src/views/market-activity/config/customer-to-group.vue +530 -0
- package/src/views/market-activity/config/empty.vue +22 -0
- package/src/views/market-activity/config/ranking-list.vue +81 -0
- package/src/views/market-activity/config/the-activity-table.vue +295 -0
- package/src/views/market-activity/config/the-echart-functional.vue +176 -0
- package/src/views/market-activity/config/the-effect-table.vue +572 -0
- package/src/views/market-activity/config/the-grade-dialog.vue +415 -0
- package/src/views/market-activity/config/the-indicator-drawer.less +34 -0
- package/src/views/market-activity/config/the-indicator-drawer.vue +835 -0
- package/src/views/market-activity/config/the-views-card.vue +105 -0
- package/src/views/market-activity/config/the-views-effect.vue +320 -0
- package/src/views/market-activity/config/the-views-level.vue +247 -0
- package/src/views/market-activity/config/the-views-type.vue +82 -0
- package/src/views/market-activity/index.vue +553 -0
- package/src/views/market-activity/summary/abtest-analysys.vue +150 -0
- package/src/views/market-activity/summary/channel-analysis-search.vue +193 -0
- package/src/views/market-activity/summary/channel-analysis.vue +45 -0
- package/src/views/market-activity/summary/channel-table.vue +375 -0
- package/src/views/market-activity/summary/customer-list.vue +561 -0
- package/src/views/market-activity/summary/index.vue +341 -0
- package/src/views/market-activity/summary/market-event-edit-pro/event-canvas.vue +1337 -0
- package/src/views/market-activity/summary/market-info.vue +281 -0
- package/src/views/monitoring-center/forewarning/config/common.js +302 -0
- package/src/views/monitoring-center/forewarning/config/index.vue +79 -0
- package/src/views/monitoring-center/forewarning/config/tab-channel.vue +287 -0
- package/src/views/monitoring-center/forewarning/config/tab-event.vue +252 -0
- package/src/views/monitoring-center/forewarning/config/tab-label.vue +183 -0
- package/src/views/monitoring-center/forewarning/config/tab-operate.vue +236 -0
- package/src/views/monitoring-center/forewarning/config/tab-timeTask.vue +242 -0
- package/src/views/monitoring-center/forewarning/record/index.vue +233 -0
- package/src/views/monitoring-center/manage/common.js +909 -0
- package/src/views/monitoring-center/manage/components/bg-intro.vue +34 -0
- package/src/views/monitoring-center/manage/components/error-components-customer-detail.vue +111 -0
- package/src/views/monitoring-center/manage/components/event-leakage-customer-detail.vue +133 -0
- package/src/views/monitoring-center/manage/index.vue +54 -0
- package/src/views/monitoring-center/manage/tab-channel.vue +433 -0
- package/src/views/monitoring-center/manage/tab-event.vue +221 -0
- package/src/views/monitoring-center/manage/tab-label.vue +232 -0
- package/src/views/monitoring-center/manage/tab-operate.vue +501 -0
- package/src/views/mul-activity-type/act-type-edit-dialog.vue +126 -0
- package/src/views/mul-activity-type/index.vue +356 -0
- package/src/views/oa/components/event-channel-approve.vue +75 -0
- package/src/views/oa/index.vue +316 -0
- package/src/views/oa/oa-confirm.vue +57 -0
- package/src/views/oa/oa-detail.vue +609 -0
- package/src/views/oa/oa-message.vue +254 -0
- package/src/views/oa/progress-test.vue +13 -0
- package/src/views/process/charts.vue +389 -0
- package/src/views/process/index.vue +402 -0
- package/src/views/process/pro-manage/index.vue +0 -0
- package/src/views/process/pro-manage/pro-title.vue +56 -0
- package/src/views/process/process-customer-log.vue +103 -0
- package/src/views/process/process-customer.vue +189 -0
- package/src/views/process/process-executor.vue +251 -0
- package/src/views/process/process-org.vue +333 -0
- package/src/views/process/process-risk.vue +232 -0
- package/src/views/process/statistics.vue +159 -0
- package/src/views/product/components/product-select-dialog.vue +253 -0
- package/src/views/product/dialog/picture-upload.vue +139 -0
- package/src/views/product/productMatchRules/components/groupList.vue +487 -0
- package/src/views/product/productMatchRules/components/product-customer-to-group.vue +581 -0
- package/src/views/product/productMatchRules/components/product-select-dialog-search.vue +227 -0
- package/src/views/product/productMatchRules/components/product-select-dialog.vue +284 -0
- package/src/views/product/productMatchRules/components/product-target-customer-list.vue +194 -0
- package/src/views/product/productMatchRules/index.vue +804 -0
- package/src/views/product/productMatchRules/intelligentMatching.vue +183 -0
- package/src/views/product/productMatchRules/resource.js +329 -0
- package/src/views/reach/business/add.vue +508 -0
- package/src/views/reach/business/bannerjump.vue +362 -0
- package/src/views/reach/business/businessCopy.vue +1017 -0
- package/src/views/reach/business/businessDetail.vue +786 -0
- package/src/views/reach/business/businessEdit.vue +1038 -0
- package/src/views/reach/business/businessList.vue +466 -0
- package/src/views/reach/business/businessNew.vue +1004 -0
- package/src/views/reach/business/components/act-gift-group.vue +431 -0
- package/src/views/reach/business/components/actList.vue +219 -0
- package/src/views/reach/business/components/activitySelector.vue +439 -0
- package/src/views/reach/business/components/common.js +45 -0
- package/src/views/reach/business/components/external-act.vue +260 -0
- package/src/views/reach/business/components/image-con-upload.js +34 -0
- package/src/views/reach/business/components/image-con.vue +229 -0
- package/src/views/reach/business/components/image-upload.vue +259 -0
- package/src/views/reach/business/components/resource-side-customer-upload.vue +354 -0
- package/src/views/reach/business/components/resource-side-reach-customer.vue +64 -0
- package/src/views/reach/business/components/resource-state-picture-upload.vue +98 -0
- package/src/views/reach/business/components/resourcedetail.vue +238 -0
- package/src/views/reach/business/components/resourceformItem.vue +256 -0
- package/src/views/reach/business/groupList.vue +396 -0
- package/src/views/reach/business/index.vue +247 -0
- package/src/views/reach/business/resource.js +330 -0
- package/src/views/reach/resource/location-analyse.vue +239 -0
- package/src/views/reach/resource/resource-analyse.vue +247 -0
- package/src/views/reach/resource-state/add.vue +508 -0
- package/src/views/reach/resource-state/bannerjump.vue +362 -0
- package/src/views/reach/resource-state/components/act-gift-group.vue +431 -0
- package/src/views/reach/resource-state/components/actList.vue +219 -0
- package/src/views/reach/resource-state/components/activitySelector.vue +439 -0
- package/src/views/reach/resource-state/components/common.js +45 -0
- package/src/views/reach/resource-state/components/external-act.vue +260 -0
- package/src/views/reach/resource-state/components/image-con-upload.js +34 -0
- package/src/views/reach/resource-state/components/image-con.vue +229 -0
- package/src/views/reach/resource-state/components/image-pop.vue +372 -0
- package/src/views/reach/resource-state/components/image-upload.vue +259 -0
- package/src/views/reach/resource-state/components/resource-side-customer-upload.vue +354 -0
- package/src/views/reach/resource-state/components/resource-side-reach-customer.vue +64 -0
- package/src/views/reach/resource-state/components/resource-state-picture-upload.vue +98 -0
- package/src/views/reach/resource-state/components/resourceListHead.vue +250 -0
- package/src/views/reach/resource-state/components/resourcecreate.vue +410 -0
- package/src/views/reach/resource-state/components/resourcedetail.vue +409 -0
- package/src/views/reach/resource-state/components/resourceformItem.vue +325 -0
- package/src/views/reach/resource-state/groupList.vue +419 -0
- package/src/views/reach/resource-state/index copy.vue +308 -0
- package/src/views/reach/resource-state/index.vue +334 -0
- package/src/views/reach/resource-state/resource.js +330 -0
- package/src/views/reach/resource-state/resourceCopy.vue +1612 -0
- package/src/views/reach/resource-state/resourceDetail.vue +1483 -0
- package/src/views/reach/resource-state/resourceEdit.vue +1609 -0
- package/src/views/reach/resource-state/resourceList.vue +555 -0
- package/src/views/reach/resource-state/resourceNew copy.vue +1361 -0
- package/src/views/reach/resource-state/resourceNew.vue +1499 -0
- package/src/views/report/components/report-effect-monitor-fields.vue +234 -0
- package/src/views/report/event/report-customer-branch.vue +228 -0
- package/src/views/report/event/report-customer-detail-target.vue +113 -0
- package/src/views/report/event/report-customer-detail.vue +149 -0
- package/src/views/report/event/report-customer-sub.vue +258 -0
- package/src/views/report/event/report-event-all.vue +250 -0
- package/src/views/report/event/report-event-sub.vue +255 -0
- package/src/views/report/event-effect-analysis/components/marketing-customer-detail-dialog.vue +137 -0
- package/src/views/report/event-effect-analysis/event-effect-analysis-executor.vue +188 -0
- package/src/views/report/event-effect-analysis/index.vue +53 -0
- package/src/views/report/fieldsList.js +1162 -0
- package/src/views/report/report-app-detail.vue +68 -0
- package/src/views/report/report-app-month-detail.vue +67 -0
- package/src/views/report/report-app-month.vue +151 -0
- package/src/views/report/report-app.vue +175 -0
- package/src/views/report/report-effect-monitor-customer.vue +236 -0
- package/src/views/report/report-effect-monitor-default.vue +374 -0
- package/src/views/report/report-effect-monitor-mechanism.vue +375 -0
- package/src/views/report/report-effect-monitor-staff.vue +376 -0
- package/src/views/report/report-effect-monitor.vue +69 -0
- package/src/views/scene/scene-edit/event-main-btns.vue +1159 -0
- package/src/views/scene/scene-edit/event-main.vue +900 -0
- package/src/views/scene/scene-edit/index.vue +129 -0
- package/src/views/scene/scene-library-manage/scene-center.vue +798 -0
- package/src/views/scene/scene-library-manage/scene-log.vue +116 -0
- package/src/views/scene/scene-library-manage/scene-mode-detail.vue +313 -0
- package/src/views/scene/scene-library-manage/scene-quote.vue +148 -0
- package/src/views/scene/scene-library-manage/scene-side.vue +362 -0
- package/src/views/scene/scene-library-manage/scene-upload.vue +265 -0
- package/src/views/scene/scene-personal-template/index.vue +457 -0
- package/src/views/system/data-manage.vue +89 -0
- package/src/views/system/menu/index.vue +359 -0
- package/src/views/system/menu/system-menu-list.vue +270 -0
- package/src/views/system/notice/index.vue +213 -0
- package/src/views/system/notice/notice-dialog.vue +111 -0
- package/src/views/system/productMatchRules/components/product-select-dialog.vue +219 -0
- package/src/views/system/productMatchRules/index.vue +484 -0
- package/src/views/system/productMatchRules/intelligentMatching.vue +183 -0
- package/src/views/system/role/index.vue +247 -0
- package/src/views/system/role/system-role-side.vue +267 -0
- package/src/views/system/system-bitmap.vue +131 -0
- package/src/views/system/system-bizline.vue +313 -0
- package/src/views/system/system-configure.vue +288 -0
- package/src/views/system/system-infomation.vue +479 -0
- package/src/views/system/system-log.vue +96 -0
- package/src/views/system/system-login.vue +150 -0
- package/src/views/system/system-org.vue +363 -0
- package/src/views/system/system-param.vue +356 -0
- package/src/views/system/system-position-setting.vue +86 -0
- package/src/views/system/system-position.vue +257 -0
- package/src/views/system/system-sms.vue +146 -0
- package/src/views/system/user/index.vue +259 -0
- package/src/views/system/user/system-user-setting.vue +82 -0
- package/src/views/task/visit-record.vue +205 -0
- package/src/views/template/components/audio-upload.vue +171 -0
- package/src/views/template/components/equity-list.vue +148 -0
- package/src/views/template/components/game-add.vue +335 -0
- package/src/views/template/components/gift-list.vue +149 -0
- package/src/views/template/components/picture-upload.vue +166 -0
- package/src/views/template/components/rewardTable.vue +323 -0
- package/src/views/template/components/task-list.vue +184 -0
- package/src/views/template/components/uploadImage.vue +67 -0
- package/src/views/template/dialog/app-message.vue +226 -0
- package/src/views/template/dialog/audio.vue +215 -0
- package/src/views/template/dialog/fail-upload-list.vue +141 -0
- package/src/views/template/dialog/h5.vue +234 -0
- package/src/views/template/dialog/message-content.vue +138 -0
- package/src/views/template/dialog/message.vue +472 -0
- package/src/views/template/dialog/picture copy.vue +273 -0
- package/src/views/template/dialog/picture.vue +304 -0
- package/src/views/template/dialog/send-modal.vue +52 -0
- package/src/views/template/dialog/task-message.vue +256 -0
- package/src/views/template/dialog/upload.vue +253 -0
- package/src/views/template/oa-fields-config/app-message.js +69 -0
- package/src/views/template/oa-fields-config/audio.js +76 -0
- package/src/views/template/oa-fields-config/computed-tags.js +28 -0
- package/src/views/template/oa-fields-config/h5.js +98 -0
- package/src/views/template/oa-fields-config/message.js +71 -0
- package/src/views/template/oa-fields-config/picture.js +85 -0
- package/src/views/template/template-activity/branch.vue +682 -0
- package/src/views/template/template-activity/canvas-edit.vue +115 -0
- package/src/views/template/template-activity/event-base-information.vue +498 -0
- package/src/views/template/template-activity/event-base.vue +313 -0
- package/src/views/template/template-activity/master.vue +755 -0
- package/src/views/template/template-app-message.vue +477 -0
- package/src/views/template/template-audio.vue +517 -0
- package/src/views/template/template-game.vue +258 -0
- package/src/views/template/template-h5.vue +468 -0
- package/src/views/template/template-message.vue +563 -0
- package/src/views/template/template-picture.vue +531 -0
- package/src/views/template/template-task.vue +464 -0
- package/src/views/template/template.less +28 -0
- package/src/views/yunhu/employee-list.vue +190 -0
- package/tailwind.config.js +25 -0
- package/vue.config.js +341 -0
- package/workspace.code-workspace +7 -0
|
@@ -0,0 +1,1832 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getPosition,
|
|
3
|
+
getMessages,
|
|
4
|
+
getAppMessages,
|
|
5
|
+
getCounterList,
|
|
6
|
+
getManagerList
|
|
7
|
+
} from '@/api/market'
|
|
8
|
+
import {
|
|
9
|
+
formatDate
|
|
10
|
+
} from '@/utils'
|
|
11
|
+
import {
|
|
12
|
+
NODE_ONLINE,
|
|
13
|
+
NODE_OFFLINE,
|
|
14
|
+
TEMP_STATE_ON,
|
|
15
|
+
SCENE_USE,
|
|
16
|
+
CHANNEL_MESSAGE,
|
|
17
|
+
CHANNEL_APP_MESSAGE,
|
|
18
|
+
EVNET_REALTIME
|
|
19
|
+
} from '@/utils/variable'
|
|
20
|
+
const NODE_TYPE_INTERFACE = {
|
|
21
|
+
event: 'com.yatop.act.executor.event.EventExecutor',
|
|
22
|
+
cst: 'com.yatop.act.executor.cst.CstExecutor',
|
|
23
|
+
strategy: 'com.yatop.act.executor.strategy.StrategyExecutor',
|
|
24
|
+
strategyBranch: 'com.nbcb.domain.executor.StrategyBranchExecutor',
|
|
25
|
+
channel: 'com.nbcb.domain.executor.ChannelExecutor'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const NODE_CHANNEL_INTERFACE = {
|
|
29
|
+
1: 'com.yatop.act.executor.channel.SmsChannelExecutor', // 短信
|
|
30
|
+
2: 'com.yatop.act.executor.channel.WxChannelExecutor', // 微信
|
|
31
|
+
3: 'com.yatop.act.executor.channel.ShopChannelExecutor', // 网店
|
|
32
|
+
4: 'com.yatop.act.executor.channel.ManagerChannelExecutor', // 客户经理
|
|
33
|
+
5: 'com.yatop.act.executor.channel.CounterChannelExecutor' // 柜面
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const TEMPLATE_TYPE = {
|
|
37
|
+
'template-root': '总行模板',
|
|
38
|
+
'template-branch': '分行模板',
|
|
39
|
+
'template-person': '个人模板'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const currency = value => {
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null
|
|
45
|
+
}
|
|
46
|
+
value = Number(value)
|
|
47
|
+
return Math.round(value * 100) / 100
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// true: '1', false: '0'
|
|
51
|
+
export const boolToString = value => {
|
|
52
|
+
return value ? '1' : '0'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// '1': true, '0': false
|
|
56
|
+
export const stringToBoolean = value => {
|
|
57
|
+
return value === '1'
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const stringToNumber = value => {
|
|
61
|
+
if (value === null) {
|
|
62
|
+
return null
|
|
63
|
+
}
|
|
64
|
+
return value ? +value : 0
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// 【提交】获得后端的 interface,后端用,前端无用
|
|
68
|
+
const getInterface = (node) => {
|
|
69
|
+
let menuKey = node.menuKey
|
|
70
|
+
if (menuKey !== 'channel') {
|
|
71
|
+
return NODE_TYPE_INTERFACE[node.menuKey] || ''
|
|
72
|
+
} else {
|
|
73
|
+
let form = node.form
|
|
74
|
+
let value = form.type === '0' ? form.channel : form.useType
|
|
75
|
+
return NODE_CHANNEL_INTERFACE[value] || ''
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// 【提交】根据 form 转成成 数组
|
|
80
|
+
const getParamsListByNode = (node, formatFullDateTime, detail) => {
|
|
81
|
+
let paramsList = []
|
|
82
|
+
let form = node.form
|
|
83
|
+
switch (node.menuKey) {
|
|
84
|
+
case 'event':
|
|
85
|
+
paramsList = [{
|
|
86
|
+
paramCode: 'componentName',
|
|
87
|
+
paramValue: form.name || ''
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
paramCode: 'eventName',
|
|
91
|
+
paramValue: form.eventName ? form.eventName.split(',')[0] : ''
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
paramCode: 'eventDefineId',
|
|
95
|
+
paramValue: form.eventName ? form.eventName.split(',')[1] : ''
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
paramCode: 'eventType',
|
|
99
|
+
paramValue: form.eventType || ''
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
paramCode: 'eventCycle',
|
|
103
|
+
paramValue: form.eventCycle
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
paramCode: 'startRemindDate',
|
|
107
|
+
paramValue: form.startRemind ? formatDate(form.startRemind[0]) : null
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
paramCode: 'endRemindDate',
|
|
111
|
+
paramValue: form.startRemind ? formatDate(form.startRemind[1]) : null
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
paramCode: 'startHappenDate',
|
|
115
|
+
paramValue: form.expireDate ? formatDate(form.expireDate[0]) : null
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
paramCode: 'endHappenDate',
|
|
119
|
+
paramValue: form.expireDate ? formatDate(form.expireDate[1]) : null
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
break
|
|
123
|
+
case 'cst':
|
|
124
|
+
paramsList = [{
|
|
125
|
+
paramCode: 'componentName',
|
|
126
|
+
paramValue: form.name || ''
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
paramCode: 'total',
|
|
130
|
+
paramValue: form.customerTagTotal
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
paramCode: 'customerGroupTag',
|
|
134
|
+
paramValue: JSON.stringify(form.customerGroupTag)
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
paramCode: 'customerGroupTagAI',
|
|
138
|
+
paramValue: JSON.stringify(form.customerGroupTagAI)
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
paramCode: 'exploreGroupTag',
|
|
142
|
+
paramValue: JSON.stringify(form.exploreGroupTag)
|
|
143
|
+
},
|
|
144
|
+
// 普通客户导入
|
|
145
|
+
{
|
|
146
|
+
paramCode: 'successCount',
|
|
147
|
+
paramValue: form.uploadGroup.successCount || 0
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
paramCode: 'failCount',
|
|
151
|
+
paramValue: 0
|
|
152
|
+
// form.uploadGroup.failCount ||
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
paramCode: 'fileName',
|
|
156
|
+
paramValue: form.uploadGroup.fileName
|
|
157
|
+
},
|
|
158
|
+
// 试运行客户导入
|
|
159
|
+
{
|
|
160
|
+
paramCode: 'successCountWhite',
|
|
161
|
+
paramValue: form.uploadGroupWhite.successCount || 0
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
paramCode: 'failCountWhite',
|
|
165
|
+
paramValue: 0
|
|
166
|
+
// form.uploadGroupWhite.failCount ||
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
paramCode: 'fileNameWhite',
|
|
170
|
+
paramValue: form.uploadGroupWhite.fileName
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
break
|
|
174
|
+
case 'strategy': // 策略
|
|
175
|
+
paramsList = [{
|
|
176
|
+
paramCode: 'componentName',
|
|
177
|
+
paramValue: form.name || ''
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
paramCode: 'strategyType',
|
|
181
|
+
paramValue: form.strategyType || ''
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
paramCode: 'exclutionType',
|
|
185
|
+
paramValue: boolToString(form.exclutionType)
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
paramCode: 'sampleType',
|
|
189
|
+
paramValue: form.sampleType || null
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
paramCode: 'version',
|
|
193
|
+
paramValue: '2' // 后端判断用,固定值即可
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
// 添加分支行数据
|
|
197
|
+
let strategySubBranchData = form.data.map((row, i) => {
|
|
198
|
+
return {
|
|
199
|
+
...row,
|
|
200
|
+
order: i
|
|
201
|
+
}
|
|
202
|
+
})
|
|
203
|
+
paramsList.push({
|
|
204
|
+
paramCode: 'strategySubBranchData',
|
|
205
|
+
paramValue: JSON.stringify(strategySubBranchData)
|
|
206
|
+
})
|
|
207
|
+
break
|
|
208
|
+
case 'strategyBranch': // 策略分支
|
|
209
|
+
paramsList = [{
|
|
210
|
+
paramCode: 'componentName',
|
|
211
|
+
paramValue: form.name || ''
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
paramCode: 'rowId',
|
|
215
|
+
paramValue: form.rowId || ''
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
paramCode: 'hiddenDelete',
|
|
219
|
+
paramValue: boolToString(form.hiddenDelete)
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
paramCode: 'strategyType',
|
|
223
|
+
paramValue: form.strategyType || ''
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
paramCode: 'sampleType',
|
|
227
|
+
paramValue: form.sampleType || ''
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
paramCode: 'sampleValue',
|
|
231
|
+
paramValue: form.sampleValue || 0
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
paramCode: 'conditionType',
|
|
235
|
+
paramValue: form.conditionType || ''
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
paramCode: 'behaviorStrategyType',
|
|
239
|
+
paramValue: form.strategyGroup[0] ? form.strategyGroup[0].behaviorStrategyType : null
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
paramCode: 'startExecuteTime',
|
|
243
|
+
paramValue: form.strategyGroup[0] ? (form.strategyGroup[0].startExecuteTime ? formatFullDateTime(form.strategyGroup[0].startExecuteTime) : null) : null
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
paramCode: 'tags',
|
|
247
|
+
paramValue: JSON.stringify(form.tags) || null
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
paramCode: 'strategyGroup',
|
|
251
|
+
paramValue: JSON.stringify(form.strategyGroup) || null
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
paramCode: 'customerGroupTag',
|
|
255
|
+
paramValue: JSON.stringify(form.customerGroupTag)
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
break
|
|
259
|
+
case 'channel': // 渠道
|
|
260
|
+
paramsList.push({
|
|
261
|
+
paramCode: 'componentName',
|
|
262
|
+
paramValue: form.name || ''
|
|
263
|
+
}, {
|
|
264
|
+
paramCode: 'channelType',
|
|
265
|
+
paramValue: form.type || null
|
|
266
|
+
}, {
|
|
267
|
+
paramCode: 'positionId',
|
|
268
|
+
paramValue: form.positionId || null
|
|
269
|
+
}, {
|
|
270
|
+
paramCode: 'positionName',
|
|
271
|
+
paramValue: form.positionName || null
|
|
272
|
+
}, {
|
|
273
|
+
paramCode: 'remind',
|
|
274
|
+
paramValue: boolToString(form.remind)
|
|
275
|
+
}, {
|
|
276
|
+
paramCode: 'limitInt',
|
|
277
|
+
paramValue: form.limitInt || null
|
|
278
|
+
}, {
|
|
279
|
+
paramCode: 'filterFlag',
|
|
280
|
+
paramValue: boolToString(form.isFilter)
|
|
281
|
+
}, {
|
|
282
|
+
paramCode: 'superviseValue',
|
|
283
|
+
paramValue: form.superviseValue || ''
|
|
284
|
+
}, {
|
|
285
|
+
paramCode: 'limitTimeType',
|
|
286
|
+
paramValue: form.limitTimeType || ''
|
|
287
|
+
}, {
|
|
288
|
+
paramCode: 'limitTimeUnit',
|
|
289
|
+
paramValue: form.limitTimeUnit || ''
|
|
290
|
+
}, {
|
|
291
|
+
paramCode: 'limitTime',
|
|
292
|
+
paramValue: form.limitTime ? formatFullDateTime(form.limitTime) : null
|
|
293
|
+
})
|
|
294
|
+
// 线上
|
|
295
|
+
if (form.type === NODE_ONLINE) {
|
|
296
|
+
paramsList.push({
|
|
297
|
+
paramCode: 'isFeedBack',
|
|
298
|
+
paramValue: boolToString(form.isFeedBack)
|
|
299
|
+
}, {
|
|
300
|
+
paramCode: 'channelTypeSub',
|
|
301
|
+
paramValue: form.channel
|
|
302
|
+
}, {
|
|
303
|
+
paramCode: 'exeEndTimeFlag',
|
|
304
|
+
paramValue: boolToString(form.endByActEndDate)
|
|
305
|
+
}, {
|
|
306
|
+
paramCode: 'exeEndTime',
|
|
307
|
+
paramValue: form.endDate ? formatFullDateTime(form.endDate) : null
|
|
308
|
+
}, {
|
|
309
|
+
paramCode: 'exeStartTime',
|
|
310
|
+
paramValue: form.startDate ? formatFullDateTime(form.startDate) : null
|
|
311
|
+
}, {
|
|
312
|
+
paramCode: 'exeStartTimeFlag',
|
|
313
|
+
paramValue: boolToString(form.sendNow)
|
|
314
|
+
})
|
|
315
|
+
// 短信
|
|
316
|
+
if (form.channel === CHANNEL_MESSAGE) {
|
|
317
|
+
let supRec = JSON.parse(JSON.stringify(form.supRecord))
|
|
318
|
+
paramsList.push({
|
|
319
|
+
paramCode: 'smsTemplate',
|
|
320
|
+
paramValue: form.smsTemplate
|
|
321
|
+
}, {
|
|
322
|
+
paramCode: 'smsTemplateName',
|
|
323
|
+
paramValue: form.smsTemplateName
|
|
324
|
+
}, {
|
|
325
|
+
paramCode: 'withActLinkFlag',
|
|
326
|
+
paramValue: boolToString(form.withActLinkFlag)
|
|
327
|
+
}, {
|
|
328
|
+
paramCode: 'smsTemplateContext',
|
|
329
|
+
paramValue: form.smsTemplateContext
|
|
330
|
+
}, {
|
|
331
|
+
paramCode: 'supRecord',
|
|
332
|
+
paramValue: JSON.stringify(supRec) || ''
|
|
333
|
+
}, {
|
|
334
|
+
paramCode: 'smsLink',
|
|
335
|
+
paramValue: form.smsLink
|
|
336
|
+
})
|
|
337
|
+
}
|
|
338
|
+
if (form.channel === CHANNEL_APP_MESSAGE) {
|
|
339
|
+
paramsList.push({
|
|
340
|
+
paramCode: 'appMessageTemplate',
|
|
341
|
+
paramValue: form.appMessageTemplate
|
|
342
|
+
}, {
|
|
343
|
+
paramCode: 'appMessageTemplateName',
|
|
344
|
+
paramValue: form.appMessageTemplateName
|
|
345
|
+
}, {
|
|
346
|
+
paramCode: 'msgLink',
|
|
347
|
+
paramValue: form.msgLink
|
|
348
|
+
}, {
|
|
349
|
+
paramCode: 'msgTitle',
|
|
350
|
+
paramValue: form.msgTitle
|
|
351
|
+
}, {
|
|
352
|
+
paramCode: 'msgContent',
|
|
353
|
+
paramValue: form.msgContent
|
|
354
|
+
})
|
|
355
|
+
}
|
|
356
|
+
} else if (form.type === NODE_OFFLINE) {
|
|
357
|
+
let copyMarketingAdvice = JSON.parse(JSON.stringify(form.marketingAdvice))
|
|
358
|
+
for (let i = 0; i < copyMarketingAdvice.length; i++) {
|
|
359
|
+
if (copyMarketingAdvice[i].labelNm === '营销活动名称') {
|
|
360
|
+
copyMarketingAdvice[i].labelValue = detail.actName
|
|
361
|
+
}
|
|
362
|
+
if (copyMarketingAdvice[i].labelNm === 'app活动名称') {
|
|
363
|
+
copyMarketingAdvice[i].labelValue = detail.appActName || ''
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
paramsList.push({
|
|
367
|
+
paramCode: 'channelTypeSub',
|
|
368
|
+
paramValue: form.useType || null
|
|
369
|
+
}, {
|
|
370
|
+
paramCode: 'enfourceFlag',
|
|
371
|
+
paramValue: form.enfourceFlag || null
|
|
372
|
+
}, {
|
|
373
|
+
paramCode: 'exeEndTime',
|
|
374
|
+
paramValue: null
|
|
375
|
+
}, {
|
|
376
|
+
paramCode: 'exeStartTime',
|
|
377
|
+
paramValue: null
|
|
378
|
+
}, {
|
|
379
|
+
paramCode: 'exeEndTimeFlag',
|
|
380
|
+
paramValue: '1' // 结束时间,人工渠道默认跟随活动结束时间、页面不展示
|
|
381
|
+
}, {
|
|
382
|
+
paramCode: 'exeStartTimeFlag',
|
|
383
|
+
paramValue: '1' // 开始时间,人工渠道默认跟随活动结束时间、页面不展示
|
|
384
|
+
}, {
|
|
385
|
+
paramCode: 'successRate',
|
|
386
|
+
paramValue: form.successRate || null
|
|
387
|
+
}, {
|
|
388
|
+
paramCode: 'successLimitTime',
|
|
389
|
+
paramValue: form.successLimitTime || ''
|
|
390
|
+
}, {
|
|
391
|
+
paramCode: 'followLimitTime',
|
|
392
|
+
paramValue: form.followLimitTime || ''
|
|
393
|
+
},
|
|
394
|
+
// 智能外呼活动名称 || 电销活动名称
|
|
395
|
+
{
|
|
396
|
+
paramCode: 'strtgNo',
|
|
397
|
+
paramValue: form.strtgNo || null
|
|
398
|
+
}, {
|
|
399
|
+
paramCode: 'strtgName',
|
|
400
|
+
paramValue: form.strtgName || ''
|
|
401
|
+
},
|
|
402
|
+
// 营销建议是否带名称
|
|
403
|
+
{
|
|
404
|
+
paramCode: 'displayLabelFlag',
|
|
405
|
+
paramValue: boolToString(form.displayLabelFlag)
|
|
406
|
+
},
|
|
407
|
+
// 营销建议
|
|
408
|
+
{
|
|
409
|
+
paramCode: 'downSendField',
|
|
410
|
+
paramValue: JSON.stringify(copyMarketingAdvice) || ''
|
|
411
|
+
}, {
|
|
412
|
+
paramCode: 'aiDownSendField',
|
|
413
|
+
paramValue: JSON.stringify(form.aiDownSendField) || ''
|
|
414
|
+
},
|
|
415
|
+
// 回传字段设置
|
|
416
|
+
{
|
|
417
|
+
paramCode: 'haveIntent',
|
|
418
|
+
paramValue: form.haveIntent
|
|
419
|
+
}, {
|
|
420
|
+
paramCode: 'noIntent',
|
|
421
|
+
paramValue: form.noIntent
|
|
422
|
+
}, {
|
|
423
|
+
paramCode: 'unSure',
|
|
424
|
+
paramValue: form.unSure
|
|
425
|
+
}
|
|
426
|
+
)
|
|
427
|
+
}
|
|
428
|
+
break
|
|
429
|
+
case 'merge':
|
|
430
|
+
paramsList = [{
|
|
431
|
+
paramCode: 'componentName',
|
|
432
|
+
paramValue: form.name || ''
|
|
433
|
+
},
|
|
434
|
+
// {
|
|
435
|
+
// paramCode: 'rowId',
|
|
436
|
+
// paramValue: form.rowId || ''
|
|
437
|
+
// },
|
|
438
|
+
{
|
|
439
|
+
paramCode: 'mergeType',
|
|
440
|
+
paramValue: form.mergeType || ''
|
|
441
|
+
}
|
|
442
|
+
]
|
|
443
|
+
break
|
|
444
|
+
case 'content':
|
|
445
|
+
let copyLabelCampSuggest = null
|
|
446
|
+
if (form.labelCampSuggest) {
|
|
447
|
+
copyLabelCampSuggest = JSON.parse(JSON.stringify(form.labelCampSuggest))
|
|
448
|
+
}
|
|
449
|
+
if (!copyLabelCampSuggest || typeof copyLabelCampSuggest !== 'object') {
|
|
450
|
+
copyLabelCampSuggest = []
|
|
451
|
+
}
|
|
452
|
+
// 如果要去掉第一位的客户号,从这里开始删除代码
|
|
453
|
+
copyLabelCampSuggest.unshift({
|
|
454
|
+
labelName: '客户号',
|
|
455
|
+
labelCode: 'CUST_ID',
|
|
456
|
+
labelId: '',
|
|
457
|
+
value: 'CUST_ID',
|
|
458
|
+
order: 0
|
|
459
|
+
})
|
|
460
|
+
// 这里结束
|
|
461
|
+
paramsList = [{
|
|
462
|
+
paramCode: 'componentName',
|
|
463
|
+
paramValue: form.name || ''
|
|
464
|
+
},
|
|
465
|
+
// {
|
|
466
|
+
// paramCode: 'rowId',
|
|
467
|
+
// paramValue: form.rowId || ''
|
|
468
|
+
// },
|
|
469
|
+
{
|
|
470
|
+
paramCode: 'contentType',
|
|
471
|
+
paramValue: form.contentType || ''
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
paramCode: 'reserveWay',
|
|
475
|
+
paramValue: form.reserveWay || ''
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
paramCode: 'wordsCampSuggest',
|
|
479
|
+
paramValue: form.wordsCampSuggest
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
paramCode: 'displayLabelName',
|
|
483
|
+
paramValue: boolToString(form.displayLabelName)
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
paramCode: 'labelCampSuggest',
|
|
487
|
+
paramValue: copyLabelCampSuggest.length !== 1 ? JSON.stringify(copyLabelCampSuggest) : ''
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
break
|
|
491
|
+
// case 'merge':
|
|
492
|
+
// paramsList = [
|
|
493
|
+
// {
|
|
494
|
+
// paramCode: 'componentName',
|
|
495
|
+
// paramValue: form.name || ''
|
|
496
|
+
// },
|
|
497
|
+
// {
|
|
498
|
+
// paramCode: 'mergeType',
|
|
499
|
+
// paramValue: form.mergeType || ''
|
|
500
|
+
// },
|
|
501
|
+
// {
|
|
502
|
+
// paramCode: 'data',
|
|
503
|
+
// paramValue: JSON.stringify(form.data || '')
|
|
504
|
+
// }
|
|
505
|
+
// ]
|
|
506
|
+
// break
|
|
507
|
+
// case 'mergeBranch':
|
|
508
|
+
// paramsList = [
|
|
509
|
+
// {
|
|
510
|
+
// paramCode: 'componentName',
|
|
511
|
+
// paramValue: form.name || ''
|
|
512
|
+
// },
|
|
513
|
+
// {
|
|
514
|
+
// paramCode: 'rowId',
|
|
515
|
+
// paramValue: form.rowId || ''
|
|
516
|
+
// },
|
|
517
|
+
// {
|
|
518
|
+
// paramCode: 'mergeType',
|
|
519
|
+
// paramValue: form.mergeType || ''
|
|
520
|
+
// },
|
|
521
|
+
// {
|
|
522
|
+
// paramCode: 'marketingAdvice',
|
|
523
|
+
// paramValue: form.marketingAdvice || ''
|
|
524
|
+
// }
|
|
525
|
+
// ]
|
|
526
|
+
// break
|
|
527
|
+
default:
|
|
528
|
+
break
|
|
529
|
+
}
|
|
530
|
+
return paramsList
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
// 【提交】获取策略分支附加策略
|
|
534
|
+
const getTagList = (nodes) => {
|
|
535
|
+
let list = []
|
|
536
|
+
nodes.forEach(node => {
|
|
537
|
+
if (node.menuKey === 'strategyBranch') {
|
|
538
|
+
let temp = {
|
|
539
|
+
nodeId: node.id,
|
|
540
|
+
name: node.form.name
|
|
541
|
+
}
|
|
542
|
+
let tags = []
|
|
543
|
+
let targetStrategy = (node.form.strategyGroup || []).find(item => item.type === 'ruleStrategy') || []
|
|
544
|
+
if (targetStrategy) {
|
|
545
|
+
tags = targetStrategy.ruleStrategy || []
|
|
546
|
+
}
|
|
547
|
+
if (!tags.length) {
|
|
548
|
+
return
|
|
549
|
+
}
|
|
550
|
+
temp.areas = tags.map((tag, i) => {
|
|
551
|
+
let item = {
|
|
552
|
+
areaName: '组合' + (i + 1),
|
|
553
|
+
rela: tag.isOpen === 'AND' ? 'AND' : tag.isOpen === 'OR' ? 'OR' : 'AND NOT',
|
|
554
|
+
seqid: i
|
|
555
|
+
// children: []
|
|
556
|
+
}
|
|
557
|
+
item.terms = tag.children.map((tag, j) => {
|
|
558
|
+
return {
|
|
559
|
+
labelCode: tag.code,
|
|
560
|
+
labelTable: tag.labelTable,
|
|
561
|
+
labelNm: tag.name,
|
|
562
|
+
labelId: tag.id,
|
|
563
|
+
codeParam: tag.codeParam,
|
|
564
|
+
matchType: tag.type,
|
|
565
|
+
relaType: tag.relaType || (tag.relate === 0 ? 'OR' : 'AND'),
|
|
566
|
+
seqid: j,
|
|
567
|
+
op1: tag.detailType[0] || '',
|
|
568
|
+
op2: tag.detailType[1],
|
|
569
|
+
val1: tag.detail[0],
|
|
570
|
+
val2: tag.detail[1],
|
|
571
|
+
showType: tag.showTp,
|
|
572
|
+
valType: tag.valType
|
|
573
|
+
}
|
|
574
|
+
})
|
|
575
|
+
return item
|
|
576
|
+
})
|
|
577
|
+
list.push(temp)
|
|
578
|
+
}
|
|
579
|
+
})
|
|
580
|
+
return list
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
// 【提交】获取活动目标
|
|
584
|
+
export const getTargetList = (detail) => {
|
|
585
|
+
if (detail.target && detail.target.length) {
|
|
586
|
+
return detail.target.map((tag, i) => {
|
|
587
|
+
let item = {
|
|
588
|
+
areaName: '组合' + (i + 1),
|
|
589
|
+
rela: tag.isOpen === 'AND' ? 'AND' : tag.isOpen === 'OR' ? 'OR' : 'AND NOT',
|
|
590
|
+
seqid: i,
|
|
591
|
+
children: []
|
|
592
|
+
}
|
|
593
|
+
item.terms = tag.children.map((tag, j) => {
|
|
594
|
+
return {
|
|
595
|
+
labelCode: tag.code || tag.labelCode,
|
|
596
|
+
labelId: tag.id,
|
|
597
|
+
labelNm: tag.name,
|
|
598
|
+
codeParam: tag.codeParam,
|
|
599
|
+
matchType: tag.type,
|
|
600
|
+
relaType: tag.relaType || (tag.relate === 0 ? 'OR' : 'AND'),
|
|
601
|
+
seqid: j,
|
|
602
|
+
op1: tag.detailType[0] || '',
|
|
603
|
+
op2: tag.detailType[1],
|
|
604
|
+
val1: tag.detail[0],
|
|
605
|
+
val2: tag.detail[1],
|
|
606
|
+
showType: tag.showTp,
|
|
607
|
+
valType: tag.valType
|
|
608
|
+
}
|
|
609
|
+
})
|
|
610
|
+
return item
|
|
611
|
+
})
|
|
612
|
+
}
|
|
613
|
+
return []
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// 【提交】获取客户群组 'cst'指客户节点的客户群组 'strategyBranch'指分支策略节点的客户群组
|
|
617
|
+
const getStrategyBranchList = (nodes) => {
|
|
618
|
+
let list = []
|
|
619
|
+
nodes.forEach(node => {
|
|
620
|
+
if (node.menuKey === 'strategyBranch') {
|
|
621
|
+
let customerGroupTag = []
|
|
622
|
+
let targetStrategy = (node.form.strategyGroup || []).find(item => item.type === 'cstGroupStrategy')
|
|
623
|
+
if (targetStrategy) {
|
|
624
|
+
customerGroupTag = targetStrategy.cstGroupStrategy
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
if (!customerGroupTag.length) {
|
|
628
|
+
return
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
let item = {
|
|
632
|
+
nodeId: node.id,
|
|
633
|
+
composeContent: getCustomerGroupFunc(customerGroupTag),
|
|
634
|
+
cstEntityVoList: []
|
|
635
|
+
}
|
|
636
|
+
if (customerGroupTag.length) {
|
|
637
|
+
item.cstEntityVoList = customerGroupTag.map(group => {
|
|
638
|
+
return {
|
|
639
|
+
id: group.id,
|
|
640
|
+
name: group.groupName
|
|
641
|
+
}
|
|
642
|
+
})
|
|
643
|
+
}
|
|
644
|
+
list.push(item)
|
|
645
|
+
}
|
|
646
|
+
})
|
|
647
|
+
list = list.filter(item => item.composeContent)
|
|
648
|
+
|
|
649
|
+
return list
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// 【提交】获取客户群组 'cst'指客户节点的客户群组 'strategyBranch'指分支策略节点的客户群组
|
|
653
|
+
const getCstGroupList = (nodes) => {
|
|
654
|
+
let list = []
|
|
655
|
+
nodes.forEach(node => {
|
|
656
|
+
if (node.menuKey === 'cst') {
|
|
657
|
+
let customerGroupTag = []
|
|
658
|
+
customerGroupTag = node.form.customerGroupTag
|
|
659
|
+
|
|
660
|
+
if (!customerGroupTag.length) {
|
|
661
|
+
return
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
let item = {
|
|
665
|
+
nodeId: node.id,
|
|
666
|
+
composeContent: getCustomerGroupFunc(customerGroupTag),
|
|
667
|
+
cstEntityVoList: []
|
|
668
|
+
}
|
|
669
|
+
if (customerGroupTag.length) {
|
|
670
|
+
item.cstEntityVoList = customerGroupTag.map(group => {
|
|
671
|
+
return {
|
|
672
|
+
id: group.id,
|
|
673
|
+
name: group.groupName
|
|
674
|
+
}
|
|
675
|
+
})
|
|
676
|
+
}
|
|
677
|
+
list.push(item)
|
|
678
|
+
}
|
|
679
|
+
})
|
|
680
|
+
list = list.filter(item => item.composeContent)
|
|
681
|
+
|
|
682
|
+
return list
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
// 【提交】获取AI客户群组
|
|
686
|
+
const getCstAIGroupList = (nodes) => {
|
|
687
|
+
let list = []
|
|
688
|
+
nodes.forEach(node => {
|
|
689
|
+
if (node.menuKey === 'cst') {
|
|
690
|
+
let customerGroupTagAI = node.form.customerGroupTagAI
|
|
691
|
+
let item = {
|
|
692
|
+
nodeId: node.id,
|
|
693
|
+
composeContent: getCustomerGroupFunc(customerGroupTagAI, 'modelId'),
|
|
694
|
+
cstEntityVoList: []
|
|
695
|
+
}
|
|
696
|
+
if (customerGroupTagAI.length) {
|
|
697
|
+
item.cstEntityVoList = customerGroupTagAI.map(group => {
|
|
698
|
+
return {
|
|
699
|
+
id: group.modelId,
|
|
700
|
+
name: group.modelNm
|
|
701
|
+
}
|
|
702
|
+
})
|
|
703
|
+
}
|
|
704
|
+
list.push(item)
|
|
705
|
+
}
|
|
706
|
+
})
|
|
707
|
+
list = list.filter(item => item.cstEntityVoList.length)
|
|
708
|
+
return list
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
// 【提交】获取客户群组公式
|
|
712
|
+
export const getCustomerGroupFunc = (list, key = 'id') => {
|
|
713
|
+
return list.reduce((arr, item, index) => {
|
|
714
|
+
if (index !== 0) {
|
|
715
|
+
arr.push(item.symbol)
|
|
716
|
+
}
|
|
717
|
+
for (let i = 0; i < item.left; i++) {
|
|
718
|
+
arr.push('(')
|
|
719
|
+
}
|
|
720
|
+
arr.push(item[key])
|
|
721
|
+
for (let i = 0; i < item.right; i++) {
|
|
722
|
+
arr.push(')')
|
|
723
|
+
}
|
|
724
|
+
return arr
|
|
725
|
+
}, []).join(' ')
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
const getCustomerLabelList = (nodes) => {
|
|
729
|
+
let list = []
|
|
730
|
+
nodes.forEach(node => {
|
|
731
|
+
if (node.menuKey === 'cst') {
|
|
732
|
+
let exploreGroupTag = node.form.exploreGroupTag
|
|
733
|
+
let item = {
|
|
734
|
+
nodeId: node.id,
|
|
735
|
+
composeContent: getCustomerGroupFunc(exploreGroupTag),
|
|
736
|
+
cstEntityVoList: []
|
|
737
|
+
}
|
|
738
|
+
if (exploreGroupTag.length) {
|
|
739
|
+
item.cstEntityVoList = exploreGroupTag.map(group => {
|
|
740
|
+
return {
|
|
741
|
+
id: group.id,
|
|
742
|
+
name: group.templateName
|
|
743
|
+
}
|
|
744
|
+
})
|
|
745
|
+
}
|
|
746
|
+
list.push(item)
|
|
747
|
+
}
|
|
748
|
+
})
|
|
749
|
+
list = list.filter(item => item.composeContent)
|
|
750
|
+
return list
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
const getNodeType = (node) => {
|
|
754
|
+
if (node.menuKey) {
|
|
755
|
+
return node.menuKey
|
|
756
|
+
} else if (node.type === 'point') {
|
|
757
|
+
return node.label === '开始' ? 'start' : 'end'
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
const getCstNodeIdsList = (nodes) => {
|
|
762
|
+
let list = []
|
|
763
|
+
nodes.forEach(node => {
|
|
764
|
+
if (node.menuKey === 'cst') {
|
|
765
|
+
list.push({
|
|
766
|
+
nodeId: node.id
|
|
767
|
+
})
|
|
768
|
+
}
|
|
769
|
+
})
|
|
770
|
+
return list
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
const getExcludeActivityList = (detail) => {
|
|
774
|
+
return detail.deleteActCustomer.map(row => {
|
|
775
|
+
return {
|
|
776
|
+
actId: detail.id || null,
|
|
777
|
+
excludeActId: row.id,
|
|
778
|
+
excludeActName: row.actName
|
|
779
|
+
}
|
|
780
|
+
})
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
// 获取客户探索条件
|
|
784
|
+
const getCustomerSearch = (nodes) => {
|
|
785
|
+
let list = []
|
|
786
|
+
nodes.forEach(node => {
|
|
787
|
+
if (node.menuKey === 'cst') {
|
|
788
|
+
if (localStorage.getItem('cust-nodeId-copy') && node.id.slice(0, 4) === 'copy') {
|
|
789
|
+
let item = JSON.parse(localStorage.getItem('cust-nodeId-copy')).filter(item => {
|
|
790
|
+
if (item.nodeId === node.id || item.nodeId === node.form.nodeId) {
|
|
791
|
+
return {
|
|
792
|
+
nodeId: item.nodeId,
|
|
793
|
+
areas: item.areas
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
})
|
|
797
|
+
list.push(...item)
|
|
798
|
+
} else {
|
|
799
|
+
let item = JSON.parse(localStorage.getItem('cust-nodeId')).filter(item => {
|
|
800
|
+
if (item.nodeId === node.id || item.nodeId === node.form.nodeId) {
|
|
801
|
+
return {
|
|
802
|
+
nodeId: item.nodeId,
|
|
803
|
+
areas: item.areas
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
})
|
|
807
|
+
list.push(...item)
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
})
|
|
811
|
+
return list
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
// 【提交】 将浏览器的画布信息转化为接口提交的信息
|
|
815
|
+
export const traslateSubmitData = (data = {}, formatFullDateTime, cstonly = false) => {
|
|
816
|
+
let {
|
|
817
|
+
canvas,
|
|
818
|
+
detail
|
|
819
|
+
} = data
|
|
820
|
+
// '-' 表示修改时需要带上,新建时无用
|
|
821
|
+
let actBaseInfoVo = {
|
|
822
|
+
actAttendFlag: null, // -活动参与标志
|
|
823
|
+
actBudget: detail.actBudget || null, // 活动预算
|
|
824
|
+
actCode: null, // -二维码地址
|
|
825
|
+
actCodeFlag: null, // -是否插入活动二维码
|
|
826
|
+
actCycleId: detail.actCycleId || null, // 周期活动id
|
|
827
|
+
actDesc: detail.actDesc || null, // 活动描述
|
|
828
|
+
actEvaluate: detail.actEvaluate || null, // 营销活动评价
|
|
829
|
+
actInitiator: detail.actInitiator || null, // -活动创建人账号
|
|
830
|
+
actInitiatorName: detail.actInitiatorName || null, // -活动创建人姓名
|
|
831
|
+
actInitiatorOrg: detail.actInitiatorOrg || null, // -活动创建机构号
|
|
832
|
+
actInitiatorOrgName: detail.actInitiatorOrgName || null, // -活动创建机构名称
|
|
833
|
+
actName: detail.actName || null, // 活动名称
|
|
834
|
+
actType: detail.actType, // 活动类型
|
|
835
|
+
actTypeSub: detail.actTypeSub, // 活动子类型
|
|
836
|
+
communityFlag: null,
|
|
837
|
+
communityCode: null, // 社区 ID
|
|
838
|
+
communityName: null,
|
|
839
|
+
createTime: detail.createTime,
|
|
840
|
+
cstCycleFlag: boolToString(detail.cstCycleFlag), // 客户生命周期标志
|
|
841
|
+
cstCycleType: detail.cstCycleType, // 客户生命周期类型
|
|
842
|
+
cstCycleValue: detail.cstCycleValue, // 客户生命周期值
|
|
843
|
+
earlyTerminateReason: detail.earlyTerminateReason || '', // 提前终止原因
|
|
844
|
+
executeEndTime: formatFullDateTime(detail.executeEndTime) || null, // 活动结束时间
|
|
845
|
+
executeFlag: boolToString(detail.executeFlag) || null, // 立刻执行标志
|
|
846
|
+
executeStartTime: formatFullDateTime(detail.executeStartTime) || null, // 活动执行时间
|
|
847
|
+
goalType: detail.goalType, // 目标类型 0数 1率
|
|
848
|
+
goalVal: detail.goalVal, // 目标数
|
|
849
|
+
id: detail.id || null, // id
|
|
850
|
+
requirementDesc: detail.requirementDesc, // 需求描述
|
|
851
|
+
signCode: null, // -签到二维码地址
|
|
852
|
+
signCodeFlag: null, // -是否插入签到二维码
|
|
853
|
+
status: detail.status || null, // 活动状态
|
|
854
|
+
superviseFlag: boolToString(detail.superviseFlag) || null, // 使用活动执行事件标志
|
|
855
|
+
superviseStartTime: formatFullDateTime(detail.superviseStartTime) || null, // 监测时间开始
|
|
856
|
+
superviseEndTime: formatFullDateTime(detail.superviseEndTime) || null, // 监测时间结束
|
|
857
|
+
actCycleType: detail.actCycleType || null,
|
|
858
|
+
actCycleValue: detail.actCycleValue || null,
|
|
859
|
+
actCycleFrequency: detail.corn || '', // cron 表达式
|
|
860
|
+
actCycleFrequencyJsonString: JSON.stringify(detail.cornData), // cron 表达式勾选
|
|
861
|
+
actDefContent: detail.actDefContent, // 活动 h5
|
|
862
|
+
externalNo: detail.externalNo,
|
|
863
|
+
externalName: detail.externalName,
|
|
864
|
+
externalLink: detail.externalLink,
|
|
865
|
+
areas: getTargetList(detail), // 活动目标
|
|
866
|
+
actTargetDesc: localStorage.getItem('targetHtml'),
|
|
867
|
+
tempType: detail.tempType, // 模板类型
|
|
868
|
+
deleteActCustomer: JSON.stringify(detail.deleteActCustomer),
|
|
869
|
+
cstOnly: boolToString(cstonly),
|
|
870
|
+
appActId: detail.appActId,
|
|
871
|
+
appActName: detail.appActName,
|
|
872
|
+
isNeedSmsApprove: detail.isNeedSmsApprove || '0', // 是否发送短信
|
|
873
|
+
expirationTime: formatFullDateTime(detail.expirationTime) || null // 审批权限
|
|
874
|
+
// checkType: boolToString(cstonly), // 模板总分行模式
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
// 节点
|
|
878
|
+
let actDefNodeList = canvas.nodes.map(node => {
|
|
879
|
+
let item = {
|
|
880
|
+
id: node.id,
|
|
881
|
+
nodeInterface: getInterface(node),
|
|
882
|
+
nodePositionX: currency(node.x),
|
|
883
|
+
nodePositionY: currency(node.y),
|
|
884
|
+
nodeType: getNodeType(node),
|
|
885
|
+
nodeName: node.label || getMenuNameByKey(node.menuKey),
|
|
886
|
+
actDefNodeParamsList: getParamsListByNode(node, formatFullDateTime, detail)
|
|
887
|
+
}
|
|
888
|
+
return item
|
|
889
|
+
})
|
|
890
|
+
|
|
891
|
+
// 连线
|
|
892
|
+
let actDefNodeLinkList = canvas.edges.map(edge => {
|
|
893
|
+
let sourceOffset = edge.sourceOffset || {
|
|
894
|
+
x: 32,
|
|
895
|
+
y: 0
|
|
896
|
+
}
|
|
897
|
+
let targetOffset = edge.targetOffset || {
|
|
898
|
+
x: -32,
|
|
899
|
+
y: 0
|
|
900
|
+
}
|
|
901
|
+
return {
|
|
902
|
+
nodeFrom: edge.source,
|
|
903
|
+
nodeTo: edge.target,
|
|
904
|
+
fromOffsetX: sourceOffset.x,
|
|
905
|
+
fromOffsetY: sourceOffset.y,
|
|
906
|
+
toOffsetX: targetOffset.x,
|
|
907
|
+
toOffsetY: targetOffset.y,
|
|
908
|
+
linkType: edge.linkType
|
|
909
|
+
}
|
|
910
|
+
})
|
|
911
|
+
|
|
912
|
+
// 附加策略
|
|
913
|
+
let wholeStrategyList = getTagList(data.canvas.nodes)
|
|
914
|
+
// 客户群组
|
|
915
|
+
let actCstGroupVoList = getCstGroupList(data.canvas.nodes)
|
|
916
|
+
// AI客户群组
|
|
917
|
+
let actCstAIVoList = getCstAIGroupList(data.canvas.nodes)
|
|
918
|
+
// 复合标签
|
|
919
|
+
let actCstLabelVoList = getCustomerLabelList(data.canvas.nodes)
|
|
920
|
+
// 所有客户节点
|
|
921
|
+
let actCstNodeVoList = getCstNodeIdsList(data.canvas.nodes)
|
|
922
|
+
// 剔除的客户
|
|
923
|
+
let actExcludeActivityList = getExcludeActivityList(detail)
|
|
924
|
+
// 客户策略分支
|
|
925
|
+
let groupStrategyList = getStrategyBranchList(data.canvas.nodes)
|
|
926
|
+
|
|
927
|
+
let actCstExploreVoList = getCustomerSearch(data.canvas.nodes)
|
|
928
|
+
|
|
929
|
+
let actCstExploreShowVoList = getCustomerSearch(data.canvas.nodes)
|
|
930
|
+
|
|
931
|
+
return {
|
|
932
|
+
actBaseInfoVo,
|
|
933
|
+
actDefNodeList,
|
|
934
|
+
actDefNodeLinkList,
|
|
935
|
+
actCstGroupVoList,
|
|
936
|
+
actCstNodeVoList,
|
|
937
|
+
actCstLabelVoList,
|
|
938
|
+
wholeStrategyList,
|
|
939
|
+
// actDefQuestionList,
|
|
940
|
+
actCstAIVoList,
|
|
941
|
+
actExcludeActivityList,
|
|
942
|
+
groupStrategyList,
|
|
943
|
+
actCstExploreVoList,
|
|
944
|
+
actCstExploreShowVoList
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
export const menuList = [{
|
|
949
|
+
key: 'event',
|
|
950
|
+
label: '事件',
|
|
951
|
+
icon: 'event',
|
|
952
|
+
color: 'orange',
|
|
953
|
+
activeColor: '#E28119',
|
|
954
|
+
activeBackgroundColor: '#FFF6D6'
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
key: 'cst',
|
|
958
|
+
label: '客户',
|
|
959
|
+
icon: 'customer',
|
|
960
|
+
color: 'sky',
|
|
961
|
+
activeColor: '#09A7C0',
|
|
962
|
+
activeBackgroundColor: '#D6FFFC'
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
key: 'channel',
|
|
966
|
+
label: '渠道',
|
|
967
|
+
icon: 'channel',
|
|
968
|
+
color: 'blue',
|
|
969
|
+
activeColor: '#234BD2',
|
|
970
|
+
activeBackgroundColor: '#D6E2FF'
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
key: 'strategy',
|
|
974
|
+
label: '策略',
|
|
975
|
+
icon: 'strategy',
|
|
976
|
+
color: 'green',
|
|
977
|
+
activeColor: '#16A370',
|
|
978
|
+
activeBackgroundColor: '#D6FFEC'
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
key: 'merge',
|
|
982
|
+
label: '汇聚',
|
|
983
|
+
icon: 'merge',
|
|
984
|
+
color: 'purple',
|
|
985
|
+
activeColor: '#16A370',
|
|
986
|
+
activeBackgroundColor: '#D6FFEC'
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
key: 'content',
|
|
990
|
+
label: '内容',
|
|
991
|
+
icon: 'content',
|
|
992
|
+
color: 'red',
|
|
993
|
+
activeColor: '#16A370',
|
|
994
|
+
activeBackgroundColor: '#D6FFEC'
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
key: 'strategyBranch',
|
|
998
|
+
label: '策略分支',
|
|
999
|
+
show: false,
|
|
1000
|
+
icon: 'strategy',
|
|
1001
|
+
color: 'green',
|
|
1002
|
+
activeColor: '#16A370',
|
|
1003
|
+
activeBackgroundColor: '#D6FFEC'
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
key: 'time',
|
|
1007
|
+
label: '时刻',
|
|
1008
|
+
show: false, // 时刻组件数据保存暂时没有做,另外目前版本不需要用到,所以隐藏
|
|
1009
|
+
icon: 'time',
|
|
1010
|
+
color: 'red',
|
|
1011
|
+
activeColor: '#ff4c2f',
|
|
1012
|
+
activeBackgroundColor: '#ffd9d9'
|
|
1013
|
+
}
|
|
1014
|
+
]
|
|
1015
|
+
|
|
1016
|
+
export const getMenuByKey = (key) => {
|
|
1017
|
+
return menuList.find(menu => menu.key === key)
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
export const getMenuNameByKey = (key) => {
|
|
1021
|
+
let menu = menuList.find(menu => menu.key === key)
|
|
1022
|
+
return menu ? menu.label : ''
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
// 【转换】数据的 paramsList 转成 map
|
|
1026
|
+
const paramsListToMap = (list = []) => {
|
|
1027
|
+
if (!list || !list.length) {
|
|
1028
|
+
return {}
|
|
1029
|
+
}
|
|
1030
|
+
let map = {}
|
|
1031
|
+
list.forEach(item => {
|
|
1032
|
+
map[item.paramCode] = item.paramValue
|
|
1033
|
+
})
|
|
1034
|
+
return map
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
// 【转换】转成节点对应的 form
|
|
1038
|
+
const getForm = (item, {
|
|
1039
|
+
questionList = [],
|
|
1040
|
+
wholeStrategyList,
|
|
1041
|
+
actCstGroupVoList,
|
|
1042
|
+
actCstLabelVoList,
|
|
1043
|
+
actCstExploreShowVoList
|
|
1044
|
+
}) => {
|
|
1045
|
+
let form = {}
|
|
1046
|
+
let map = null
|
|
1047
|
+
switch (item.nodeType) {
|
|
1048
|
+
case 'event':
|
|
1049
|
+
map = paramsListToMap(item.actDefNodeParamsList)
|
|
1050
|
+
form = {
|
|
1051
|
+
name: map.componentName,
|
|
1052
|
+
eventName: [map.eventName, map.eventDefineId].join(','),
|
|
1053
|
+
eventDefineId: map.eventDefineId,
|
|
1054
|
+
eventType: map.eventType,
|
|
1055
|
+
eventCycle: Number(map.eventCycle) || 0,
|
|
1056
|
+
startRemind: getDateRange(map.startRemindDate, map.endRemindDate),
|
|
1057
|
+
expireDate: getDateRange(map.startHappenDate, map.endHappenDate)
|
|
1058
|
+
}
|
|
1059
|
+
break
|
|
1060
|
+
case 'cst':
|
|
1061
|
+
map = paramsListToMap(item.actDefNodeParamsList)
|
|
1062
|
+
form = {
|
|
1063
|
+
name: map.componentName,
|
|
1064
|
+
customerGroup: actCstExploreShowVoList || [],
|
|
1065
|
+
customerTagTotal: stringToNumber(map.total || 0),
|
|
1066
|
+
customerGroupTag: map.customerGroupTag ? JSON.parse(map.customerGroupTag) : [],
|
|
1067
|
+
customerGroupTagAI: map.customerGroupTagAI ? JSON.parse(map.customerGroupTagAI) : [],
|
|
1068
|
+
exploreGroupTag: map.exploreGroupTag ? JSON.parse(map.exploreGroupTag) : [],
|
|
1069
|
+
uploadGroup: {
|
|
1070
|
+
successCount: stringToNumber(map.successCount),
|
|
1071
|
+
failCount: stringToNumber(map.failCount),
|
|
1072
|
+
fileName: map.fileName
|
|
1073
|
+
},
|
|
1074
|
+
uploadGroupWhite: {
|
|
1075
|
+
successCount: stringToNumber(map.successCountWhite),
|
|
1076
|
+
failCount: stringToNumber(map.failCountWhite),
|
|
1077
|
+
fileName: map.fileNameWhite
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
break
|
|
1081
|
+
case 'channel':
|
|
1082
|
+
map = paramsListToMap(item.actDefNodeParamsList)
|
|
1083
|
+
form = {
|
|
1084
|
+
name: map.componentName,
|
|
1085
|
+
type: map.channelType,
|
|
1086
|
+
isFeedBack: stringToBoolean(map.isFeedBack),
|
|
1087
|
+
channel: map.channelType === '0' ? map.channelTypeSub : null,
|
|
1088
|
+
useType: map.channelType === '1' ? map.channelTypeSub : null,
|
|
1089
|
+
enfourceFlag: map.enfourceFlag,
|
|
1090
|
+
successRate: stringToNumber(map.successRate),
|
|
1091
|
+
successLimitTime: map.successLimitTime || '',
|
|
1092
|
+
followLimitTime: map.followLimitTime || '',
|
|
1093
|
+
sendNow: stringToBoolean(map.exeStartTimeFlag),
|
|
1094
|
+
startDate: map.exeStartTime ? new Date(map.exeStartTime) : null,
|
|
1095
|
+
endByActEndDate: stringToBoolean(map.exeEndTimeFlag),
|
|
1096
|
+
endDate: map.exeEndTime ? new Date(map.exeEndTime) : null,
|
|
1097
|
+
withActLinkFlag: stringToBoolean(map.withActLinkFlag),
|
|
1098
|
+
smsTemplate: map.smsTemplate || null,
|
|
1099
|
+
smsTemplateName: map.smsTemplateName || '',
|
|
1100
|
+
smsTemplateContext: map.smsTemplateContext || '',
|
|
1101
|
+
supRecord: map.supRecord ? JSON.parse(map.supRecord) : [],
|
|
1102
|
+
positionId: map.positionId || null,
|
|
1103
|
+
positionName: map.positionName || null,
|
|
1104
|
+
mode: map.mode || null,
|
|
1105
|
+
marketingAdvice: map.downSendField ? JSON.parse(map.downSendField) : [],
|
|
1106
|
+
aiDownSendField: map.aiDownSendField ? JSON.parse(map.aiDownSendField) : [],
|
|
1107
|
+
displayLabelFlag: stringToBoolean(map.displayLabelFlag),
|
|
1108
|
+
appMessageTemplateName: map.appMessageTemplateName || '',
|
|
1109
|
+
appMessageTemplate: map.appMessageTemplate || null,
|
|
1110
|
+
msgLink: map.msgLink || '',
|
|
1111
|
+
msgTitle: map.msgTitle || '',
|
|
1112
|
+
msgContent: map.msgContent || '',
|
|
1113
|
+
haveIntent: map.haveIntent || '',
|
|
1114
|
+
noIntent: map.noIntent || '',
|
|
1115
|
+
unSure: map.unSure || '',
|
|
1116
|
+
strtgNo: map.strtgNo || null,
|
|
1117
|
+
strtgName: map.strtgName || '',
|
|
1118
|
+
superviseValue: map.superviseValue || '',
|
|
1119
|
+
remind: stringToBoolean(map.remind),
|
|
1120
|
+
limitInt: map.limitInt || null,
|
|
1121
|
+
limitTimeType: map.limitTimeType || '',
|
|
1122
|
+
limitTimeUnit: map.limitTimeUnit || '',
|
|
1123
|
+
limitTime: map.limitTime ? new Date(map.limitTime) : null,
|
|
1124
|
+
smsLink: map.smsLink || ''
|
|
1125
|
+
}
|
|
1126
|
+
break
|
|
1127
|
+
case 'strategy':
|
|
1128
|
+
map = paramsListToMap(item.actDefNodeParamsList)
|
|
1129
|
+
form = {
|
|
1130
|
+
name: map.componentName,
|
|
1131
|
+
strategyType: map.strategyType,
|
|
1132
|
+
exclutionType: stringToBoolean(map.exclutionType),
|
|
1133
|
+
sampleType: map.sampleType,
|
|
1134
|
+
data: map.strategySubBranchData ? JSON.parse(map.strategySubBranchData) : []
|
|
1135
|
+
}
|
|
1136
|
+
break
|
|
1137
|
+
case 'strategyBranch':
|
|
1138
|
+
map = paramsListToMap(item.actDefNodeParamsList)
|
|
1139
|
+
form = {
|
|
1140
|
+
name: map.componentName,
|
|
1141
|
+
rowId: map.rowId,
|
|
1142
|
+
hiddenDelete: stringToBoolean(map.hiddenDelete),
|
|
1143
|
+
customerGroupTag: map.customerGroupTag ? JSON.parse(map.customerGroupTag) : [],
|
|
1144
|
+
sampleType: map.sampleType,
|
|
1145
|
+
strategyType: map.strategyType,
|
|
1146
|
+
sampleValue: stringToNumber(map.sampleValue),
|
|
1147
|
+
behaviorStrategyType: map.behaviorStrategyType,
|
|
1148
|
+
startExecuteTime: map.startExecuteTime ? new Date(map.startExecuteTime) : null,
|
|
1149
|
+
conditionType: map.conditionType,
|
|
1150
|
+
tags: map.tags ? JSON.parse(map.tags) : [],
|
|
1151
|
+
strategyGroup: map.strategyGroup ? JSON.parse(map.strategyGroup) : []
|
|
1152
|
+
}
|
|
1153
|
+
break
|
|
1154
|
+
case 'merge':
|
|
1155
|
+
map = paramsListToMap(item.actDefNodeParamsList)
|
|
1156
|
+
form = {
|
|
1157
|
+
name: map.componentName,
|
|
1158
|
+
// rowId: map.rowId,
|
|
1159
|
+
mergeType: map.mergeType
|
|
1160
|
+
}
|
|
1161
|
+
break
|
|
1162
|
+
case 'content':
|
|
1163
|
+
map = paramsListToMap(item.actDefNodeParamsList)
|
|
1164
|
+
const copyLabelCampSuggest = map.labelCampSuggest ? JSON.parse(map.labelCampSuggest) : []
|
|
1165
|
+
if (copyLabelCampSuggest.length && copyLabelCampSuggest[0].labelName === '客户号') {
|
|
1166
|
+
copyLabelCampSuggest.shift()
|
|
1167
|
+
}
|
|
1168
|
+
form = {
|
|
1169
|
+
name: map.componentName,
|
|
1170
|
+
// rowId: map.rowId,
|
|
1171
|
+
contentType: map.contentType,
|
|
1172
|
+
reserveWay: map.reserveWay,
|
|
1173
|
+
wordsCampSuggest: map.wordsCampSuggest,
|
|
1174
|
+
displayLabelName: stringToBoolean(map.displayLabelName),
|
|
1175
|
+
labelCampSuggest: copyLabelCampSuggest
|
|
1176
|
+
}
|
|
1177
|
+
break
|
|
1178
|
+
default:
|
|
1179
|
+
break
|
|
1180
|
+
}
|
|
1181
|
+
return form
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
// 【转换】转时间区间
|
|
1185
|
+
export const getDateRange = (start, end) => {
|
|
1186
|
+
start = start ? new Date(start) : ''
|
|
1187
|
+
end = end ? new Date(end) : ''
|
|
1188
|
+
return [start, end]
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
export const getDate = (date) => {
|
|
1192
|
+
return date ? new Date(date) : ''
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
// 【转换】转换到页面的活动目标
|
|
1196
|
+
export const getTargetToPage = (list, customerTagMap) => {
|
|
1197
|
+
if (!list || !list.length) {
|
|
1198
|
+
return []
|
|
1199
|
+
}
|
|
1200
|
+
return list.map(v => {
|
|
1201
|
+
return {
|
|
1202
|
+
isOpen: v.rela,
|
|
1203
|
+
children: v.terms.map(item => {
|
|
1204
|
+
const {
|
|
1205
|
+
relaType,
|
|
1206
|
+
labelId,
|
|
1207
|
+
matchType,
|
|
1208
|
+
op1,
|
|
1209
|
+
op2,
|
|
1210
|
+
val1,
|
|
1211
|
+
val2
|
|
1212
|
+
} = item
|
|
1213
|
+
const tag = customerTagMap[item.labelId] || {}
|
|
1214
|
+
return {
|
|
1215
|
+
relate: relaType === 'OR' ? 0 : 1,
|
|
1216
|
+
name: item.labelNm || tag.labelNm || '',
|
|
1217
|
+
type: matchType,
|
|
1218
|
+
valType: item.valType || tag.valType || '',
|
|
1219
|
+
detailType: op2 ? {
|
|
1220
|
+
'0': op1,
|
|
1221
|
+
'1': op2
|
|
1222
|
+
} : {
|
|
1223
|
+
'0': op1
|
|
1224
|
+
},
|
|
1225
|
+
detail: val2 ? {
|
|
1226
|
+
'0': val1,
|
|
1227
|
+
'1': val2
|
|
1228
|
+
} : {
|
|
1229
|
+
'0': val1
|
|
1230
|
+
},
|
|
1231
|
+
showTp: item.showType || tag.showTp,
|
|
1232
|
+
codeParam: item.labelCode || tag.condCode,
|
|
1233
|
+
labelCode: item.labelCode || tag.condCode,
|
|
1234
|
+
id: labelId
|
|
1235
|
+
}
|
|
1236
|
+
})
|
|
1237
|
+
}
|
|
1238
|
+
})
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
export const translateDetail = (detail, customerTagMap, actExcludeActivityList = []) => {
|
|
1242
|
+
let data = {
|
|
1243
|
+
actAttendFlag: detail.actAttendFlag || null, // -活动参与标志
|
|
1244
|
+
actBudget: detail.actBudget || null, // 活动预算
|
|
1245
|
+
actCode: detail.actCode || null, // -二维码地址
|
|
1246
|
+
actCodeFlag: detail.actCodeFlag || null, // -是否插入活动二维码
|
|
1247
|
+
actCycleId: detail.actCycleId || null, // 周期活动id
|
|
1248
|
+
actDesc: detail.actDesc || null, // 活动描述
|
|
1249
|
+
actEvaluate: detail.actEvaluate || null, // 营销活动评价
|
|
1250
|
+
actInitiator: detail.actInitiator || null, // -活动创建人账号
|
|
1251
|
+
actInitiatorName: detail.actInitiatorName || null, // -活动创建人姓名
|
|
1252
|
+
actInitiatorOrg: detail.actInitiatorOrg || null, // -活动创建机构号
|
|
1253
|
+
actInitiatorOrgName: detail.actInitiatorOrgName || null, // -活动创建机构名称
|
|
1254
|
+
actName: detail.actName || null, // 活动名称
|
|
1255
|
+
actType: detail.actType, // 活动类型
|
|
1256
|
+
actTypeSub: detail.actTypeSub, // 活动子类型
|
|
1257
|
+
communityFlag: detail.communityFlag || null,
|
|
1258
|
+
communityCode: detail.communityCode || null, // 社区 ID
|
|
1259
|
+
communityName: detail.communityName || null,
|
|
1260
|
+
cstCycleFlag: stringToBoolean(detail.cstCycleFlag), // 客户生命周期标志
|
|
1261
|
+
cstCycleType: detail.cstCycleType, // 客户生命周期类型
|
|
1262
|
+
cstCycleValue: detail.cstCycleValue, // 客户生命周期值
|
|
1263
|
+
earlyTerminateReason: detail.earlyTerminateReason || '', // 提前终止原因
|
|
1264
|
+
executeEndTime: getDate(detail.executeEndTime) || null, // 活动结束时间
|
|
1265
|
+
executeFlag: stringToBoolean(detail.executeFlag) || null, // 立刻执行标志
|
|
1266
|
+
executeStartTime: getDate(detail.executeStartTime) || null, // 活动执行时间
|
|
1267
|
+
goalType: detail.goalType, // 目标类型 0数 1率
|
|
1268
|
+
goalVal: detail.goalVal, // 目标数
|
|
1269
|
+
id: detail.id || null, // id
|
|
1270
|
+
requirementDesc: detail.requirementDesc, // 需求描述
|
|
1271
|
+
signCode: detail.signCode || null, // -签到二维码地址
|
|
1272
|
+
signCodeFlag: detail.signCodeFlag || null, // -是否插入签到二维码
|
|
1273
|
+
status: detail.status || null, // 活动状态
|
|
1274
|
+
superviseFlag: stringToBoolean(detail.superviseFlag) || null, // 使用活动执行事件标志
|
|
1275
|
+
superviseStartTime: getDate(detail.superviseStartTime) || null, // 监测时间开始
|
|
1276
|
+
superviseEndTime: getDate(detail.superviseEndTime) || null, // 监测时间结束
|
|
1277
|
+
actCycleType: detail.actCycleType || null,
|
|
1278
|
+
actCycleValue: detail.actCycleValue || null,
|
|
1279
|
+
corn: detail.actCycleFrequency, // cron 表达式
|
|
1280
|
+
actDefContent: detail.actDefContent || {}, // 活动 h5
|
|
1281
|
+
externalNo: detail.externalNo || '',
|
|
1282
|
+
externalName: detail.externalName || '',
|
|
1283
|
+
externalLink: detail.externalLink || '',
|
|
1284
|
+
target: getTargetToPage(detail.areas || [], customerTagMap), // 活动目标
|
|
1285
|
+
tempType: detail.tempType, // 模板类型
|
|
1286
|
+
deleteActCustomer: (actExcludeActivityList || []).map(row => {
|
|
1287
|
+
return {
|
|
1288
|
+
id: row.excludeActId,
|
|
1289
|
+
actName: row.excludeActName
|
|
1290
|
+
}
|
|
1291
|
+
}),
|
|
1292
|
+
appActId: detail.appActId,
|
|
1293
|
+
appActName: detail.appActName,
|
|
1294
|
+
cstonly: stringToBoolean(detail.cstOnly), // 模板总分行模式
|
|
1295
|
+
isNeedSmsApprove: detail.isNeedSmsApprove, // 是否发送短信
|
|
1296
|
+
expirationTime: getDate(detail.expirationTime) || null // 审批权限
|
|
1297
|
+
}
|
|
1298
|
+
// cron 表达式勾选
|
|
1299
|
+
if (detail.actCycleFrequencyJsonString) {
|
|
1300
|
+
data.cornData = JSON.parse(detail.actCycleFrequencyJsonString)
|
|
1301
|
+
}
|
|
1302
|
+
return data
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
// 【转换】将接口的数据转化为页面上的数据
|
|
1306
|
+
export const translatePageData = (data = {}, customerTagMap, edgeKey = 'actDefNodeLinkList', nodeKey = 'actDefNodeList') => {
|
|
1307
|
+
let {
|
|
1308
|
+
actBaseInfoVo,
|
|
1309
|
+
questionList,
|
|
1310
|
+
wholeStrategyList,
|
|
1311
|
+
actCstGroupVoList,
|
|
1312
|
+
actCstLabelVoList,
|
|
1313
|
+
actExcludeActivityList,
|
|
1314
|
+
actCstExploreShowVoList
|
|
1315
|
+
} = data
|
|
1316
|
+
// 初始化客户探索数据
|
|
1317
|
+
// localStorage.removeItem('cust-nodeId')
|
|
1318
|
+
localStorage.removeItem('es-search')
|
|
1319
|
+
if (actCstExploreShowVoList && actCstExploreShowVoList.length) {
|
|
1320
|
+
for (let i = 0; i < actCstExploreShowVoList.length; i++) {
|
|
1321
|
+
actCstExploreShowVoList[i].isOrigin = true
|
|
1322
|
+
}
|
|
1323
|
+
if (actCstExploreShowVoList.length && actCstExploreShowVoList[0].nodeId.slice(0, 4) === 'copy') {
|
|
1324
|
+
localStorage.setItem('cust-nodeId-copy', JSON.stringify(actCstExploreShowVoList))
|
|
1325
|
+
} else {
|
|
1326
|
+
localStorage.setItem('cust-nodeId', JSON.stringify(actCstExploreShowVoList))
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
let nodeLinkList = data[edgeKey] || []
|
|
1330
|
+
let nodeList = data[nodeKey] || []
|
|
1331
|
+
let edges = nodeLinkList.map(item => {
|
|
1332
|
+
return {
|
|
1333
|
+
label: item.cstNum,
|
|
1334
|
+
source: item.nodeFrom,
|
|
1335
|
+
target: item.nodeTo,
|
|
1336
|
+
linkType: item.linkType,
|
|
1337
|
+
sourceOffset: {
|
|
1338
|
+
x: stringToNumber(item.fromOffsetX) || 32,
|
|
1339
|
+
y: stringToNumber(item.fromOffsetY)
|
|
1340
|
+
},
|
|
1341
|
+
targetOffset: {
|
|
1342
|
+
x: stringToNumber(item.toOffsetX) || -32,
|
|
1343
|
+
y: stringToNumber(item.toOffsetY)
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
})
|
|
1347
|
+
let nodes = nodeList.map(item => {
|
|
1348
|
+
let node = {
|
|
1349
|
+
id: item.id,
|
|
1350
|
+
menuKey: item.nodeType,
|
|
1351
|
+
label: item.nodeName,
|
|
1352
|
+
nodeInterface: item.nodeInterface,
|
|
1353
|
+
status: item.status,
|
|
1354
|
+
x: stringToNumber(item.nodePositionX),
|
|
1355
|
+
y: stringToNumber(item.nodePositionY),
|
|
1356
|
+
form: getForm(item, {
|
|
1357
|
+
questionList,
|
|
1358
|
+
wholeStrategyList,
|
|
1359
|
+
actCstGroupVoList,
|
|
1360
|
+
actCstLabelVoList,
|
|
1361
|
+
actCstExploreShowVoList
|
|
1362
|
+
})
|
|
1363
|
+
}
|
|
1364
|
+
if (item.nodeName === '开始' || item.nodeName === '结束') {
|
|
1365
|
+
node.type = 'point'
|
|
1366
|
+
}
|
|
1367
|
+
return node
|
|
1368
|
+
})
|
|
1369
|
+
let detail
|
|
1370
|
+
if (customerTagMap) {
|
|
1371
|
+
detail = translateDetail(actBaseInfoVo, customerTagMap, actExcludeActivityList)
|
|
1372
|
+
}
|
|
1373
|
+
return {
|
|
1374
|
+
edges,
|
|
1375
|
+
nodes,
|
|
1376
|
+
detail
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
// const EDGES_LESS = 'EDGES_LESS'
|
|
1381
|
+
const NOT_START_EDGE_MESSAGE = '缺少开始节点连线'
|
|
1382
|
+
const NOT_END_EDGE_MESSAGE = '缺少结束节点连线'
|
|
1383
|
+
const NODE_LESS_MESSAGE = '至少需要一个节点'
|
|
1384
|
+
const EDGE_LESS_MESSAGE = '缺少连线'
|
|
1385
|
+
const START_TO_END_MESSAGE = '开始节点前面不能是结束节点'
|
|
1386
|
+
const STRATEGY_ERROR_MESSAGE = '响应策略前面只能连接渠道节点'
|
|
1387
|
+
const CHANNEL_ERROR_MESSAGE = '渠道节点选择指定执行人时前面有且只有一个客户节点'
|
|
1388
|
+
const MERGE_ERROR_MESSAGE = '汇聚节点前面不能有行为策略和实时事件'
|
|
1389
|
+
const NODE_NAME_REPEART_MESSAGE = '不能存在重复名字的节点'
|
|
1390
|
+
// const CHANNEL_ERROR_startNode = '开始节点不能直连渠道节点'
|
|
1391
|
+
// const CHANNEL_ERROR_strategyErr = '开始节点不能直连策略节点'
|
|
1392
|
+
|
|
1393
|
+
// 【校验】校验页面的每一项数据是否正确
|
|
1394
|
+
export const checkData = async (data, validateSideForm, messageAlert, nameRepeat) => {
|
|
1395
|
+
let {
|
|
1396
|
+
canvas,
|
|
1397
|
+
graph
|
|
1398
|
+
} = data
|
|
1399
|
+
let {
|
|
1400
|
+
edges,
|
|
1401
|
+
nodes
|
|
1402
|
+
} = canvas
|
|
1403
|
+
let startNode = nodes.find(node => node.type === 'point' && node.label === '开始')
|
|
1404
|
+
let endNode = nodes.find(node => node.type === 'point' && node.label === '结束')
|
|
1405
|
+
// let channelErr = nodes.find(node => node.menuKey === 'channel')
|
|
1406
|
+
// let strategyErr = nodes.find(node => node.menuKey === 'strategy')
|
|
1407
|
+
|
|
1408
|
+
// 校验是否有开始连线
|
|
1409
|
+
let isNotStartEdge = checkStartEdge(startNode, edges)
|
|
1410
|
+
if (!isNotStartEdge) {
|
|
1411
|
+
messageAlert(NOT_START_EDGE_MESSAGE)
|
|
1412
|
+
return false
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
// 校验是不是有结束连线
|
|
1416
|
+
let iFINndEdge = checkEndEdge(endNode, edges)
|
|
1417
|
+
if (!iFINndEdge) {
|
|
1418
|
+
messageAlert(NOT_END_EDGE_MESSAGE)
|
|
1419
|
+
return false
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
// 校验是不是缺少节点
|
|
1423
|
+
let isNodeLess = checkNodeLess(nodes)
|
|
1424
|
+
if (!isNodeLess) {
|
|
1425
|
+
messageAlert(NODE_LESS_MESSAGE)
|
|
1426
|
+
return false
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
// 校验是不是少线
|
|
1430
|
+
let isEdgeLess = checkEdgeLess(nodes, edges, graph)
|
|
1431
|
+
if (!isEdgeLess) {
|
|
1432
|
+
messageAlert(EDGE_LESS_MESSAGE)
|
|
1433
|
+
return false
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
// 开始不能直接结束
|
|
1437
|
+
let isStartToEnd = checkStartToEnd(startNode, endNode, edges)
|
|
1438
|
+
if (!isStartToEnd) {
|
|
1439
|
+
messageAlert(START_TO_END_MESSAGE)
|
|
1440
|
+
return false
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
// 客户后面不能有行为策略
|
|
1444
|
+
let isStrategyError = checkStrategyError(graph.getNodes())
|
|
1445
|
+
|
|
1446
|
+
if (!isStrategyError) {
|
|
1447
|
+
messageAlert(STRATEGY_ERROR_MESSAGE)
|
|
1448
|
+
return false
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
// 渠道前面只能有一个客户节点
|
|
1452
|
+
let isChannelError = checkChannelError(graph.getNodes())
|
|
1453
|
+
|
|
1454
|
+
if (!isChannelError) {
|
|
1455
|
+
messageAlert(CHANNEL_ERROR_MESSAGE)
|
|
1456
|
+
return false
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
// 汇聚策略不能有行为策略
|
|
1460
|
+
let isMergeError = checkMergeError(graph.getNodes())
|
|
1461
|
+
|
|
1462
|
+
if (!isMergeError) {
|
|
1463
|
+
messageAlert(MERGE_ERROR_MESSAGE)
|
|
1464
|
+
return false
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
// 名称是否重复
|
|
1468
|
+
let isNameRepeart = checkNodeName(nodes)
|
|
1469
|
+
|
|
1470
|
+
if (!isNameRepeart && !nameRepeat) {
|
|
1471
|
+
messageAlert(NODE_NAME_REPEART_MESSAGE)
|
|
1472
|
+
return false
|
|
1473
|
+
}
|
|
1474
|
+
// 校验是不是有闭环
|
|
1475
|
+
// let isLineLoop = checkEdgeLoop(nodes, edges, startNode, endNode)
|
|
1476
|
+
|
|
1477
|
+
// 校验页面表单
|
|
1478
|
+
if (validateSideForm) {
|
|
1479
|
+
let text = await checkForm(nodes, validateSideForm)
|
|
1480
|
+
if (text) {
|
|
1481
|
+
messageAlert(`请完善【${text}】的表单信息`)
|
|
1482
|
+
return false
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
return true
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
// 【校验】是不是开始节点没有连线
|
|
1490
|
+
const checkStartEdge = (startNode, edges) => {
|
|
1491
|
+
let {
|
|
1492
|
+
afterEdges
|
|
1493
|
+
} = getNodeBeforeAndAfterEdges(startNode, edges)
|
|
1494
|
+
return afterEdges.length > 0
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
// 【校验】是不是结束节点没有连线
|
|
1498
|
+
const checkEndEdge = (endNode, edges) => {
|
|
1499
|
+
let {
|
|
1500
|
+
beforeEdges
|
|
1501
|
+
} = getNodeBeforeAndAfterEdges(endNode, edges)
|
|
1502
|
+
return beforeEdges.length > 0
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
// 【校验】结束前面节点不能是开始节点
|
|
1506
|
+
const checkStartToEnd = (startNode, endNode, edges) => {
|
|
1507
|
+
let {
|
|
1508
|
+
beforeEdges
|
|
1509
|
+
} = getNodeBeforeAndAfterEdges(endNode, edges)
|
|
1510
|
+
return beforeEdges[0].source !== startNode.id
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
// 【校验】行为策略前面只能是渠道节点
|
|
1514
|
+
const checkStrategyError = (nodes) => {
|
|
1515
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
1516
|
+
let node = nodes[i]
|
|
1517
|
+
let model = node.getModel()
|
|
1518
|
+
if (model.menuKey === 'strategyBranch' && model.form.strategyGroup && model.form.strategyGroup.some(item => item.type === 'behaviorStrategy')) {
|
|
1519
|
+
let strategyEdges = node.getInEdges()[0].getSource().getInEdges()
|
|
1520
|
+
for (let j = 0; j < strategyEdges.length; j++) {
|
|
1521
|
+
if (strategyEdges[j].getSource().getModel().menuKey !== 'channel') {
|
|
1522
|
+
return false
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
return true
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
// 【校验】渠道节点选择指定执行人时前面只能有一个客户节点
|
|
1531
|
+
const checkChannelError = (nodes) => {
|
|
1532
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
1533
|
+
let node = nodes[i]
|
|
1534
|
+
let model = node.getModel()
|
|
1535
|
+
|
|
1536
|
+
if (model.menuKey === 'channel' && model.form.useType === '11') {
|
|
1537
|
+
let z = 0
|
|
1538
|
+
let strategyEdges = node.getInEdges()
|
|
1539
|
+
for (let j = 0; j < strategyEdges.length; j++) {
|
|
1540
|
+
if (strategyEdges[j].getSource().getModel().menuKey === 'cst' || strategyEdges[j].getSource().getModel().menuKey === 'content') {
|
|
1541
|
+
z++
|
|
1542
|
+
} else {
|
|
1543
|
+
return false
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
if (z !== 1) {
|
|
1547
|
+
return false
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
return true
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
// 【校验】汇聚节点前面不能有 行为策略 和 实时事件
|
|
1555
|
+
const checkMergeError = (nodes) => {
|
|
1556
|
+
const loop = (node) => {
|
|
1557
|
+
let edges = node.getInEdges()
|
|
1558
|
+
// 因为循环中if/else都会return, 因此i没有循环的机会
|
|
1559
|
+
// for (let i = 0; i < edges.length; i++) {
|
|
1560
|
+
{
|
|
1561
|
+
let i = 0
|
|
1562
|
+
let edge = edges[i]
|
|
1563
|
+
let node = edge.getSource()
|
|
1564
|
+
let model = node.getModel()
|
|
1565
|
+
if (
|
|
1566
|
+
model.menuKey === 'strategyBranch' &&
|
|
1567
|
+
model.form.strategyGroup &&
|
|
1568
|
+
model.form.strategyGroup.some(item => item.type === 'behaviorStrategy') ||
|
|
1569
|
+
model.menuKey === 'event' &&
|
|
1570
|
+
model.form.eventType === EVNET_REALTIME
|
|
1571
|
+
) {
|
|
1572
|
+
return false
|
|
1573
|
+
// break
|
|
1574
|
+
} else {
|
|
1575
|
+
return loop(node)
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
// return true
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
1582
|
+
let node = nodes[i]
|
|
1583
|
+
let model = node.getModel()
|
|
1584
|
+
if (model.menuKey === 'mergeBranch') {
|
|
1585
|
+
if (!loop(node)) {
|
|
1586
|
+
return false
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
return true
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
// 【校验】确认所有节点都有连线
|
|
1595
|
+
export const checkEdgeLess = (nodes, edges, graph) => {
|
|
1596
|
+
return graph.getNodes().every(node => {
|
|
1597
|
+
let model = node.getModel()
|
|
1598
|
+
if (model.type === 'point') {
|
|
1599
|
+
return true
|
|
1600
|
+
} else if (node.getInEdges().length < 1 || node.getOutEdges().length < 1) {
|
|
1601
|
+
return false
|
|
1602
|
+
} else {
|
|
1603
|
+
return true
|
|
1604
|
+
}
|
|
1605
|
+
})
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
// 【校验】至少需要 3 个节点
|
|
1609
|
+
export const checkNodeLess = (nodes) => {
|
|
1610
|
+
return nodes.length > 2
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
// 获取节点的前后线
|
|
1614
|
+
const getNodeBeforeAndAfterEdges = (node, edges) => {
|
|
1615
|
+
let beforeEdges = []
|
|
1616
|
+
let afterEdges = []
|
|
1617
|
+
edges.forEach(edge => {
|
|
1618
|
+
if (edge.target === node.id) {
|
|
1619
|
+
beforeEdges.push(edge)
|
|
1620
|
+
}
|
|
1621
|
+
if (edge.source === node.id) {
|
|
1622
|
+
afterEdges.push(edge)
|
|
1623
|
+
}
|
|
1624
|
+
})
|
|
1625
|
+
return {
|
|
1626
|
+
beforeEdges,
|
|
1627
|
+
afterEdges
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
// 【校验】获取节点后面线
|
|
1632
|
+
// const getAfterEdges = (node, edges) => {
|
|
1633
|
+
// return edges.filter(edge => edge.source === node.id)
|
|
1634
|
+
// }
|
|
1635
|
+
|
|
1636
|
+
export const checkNodeName = (nodes) => {
|
|
1637
|
+
let map = {}
|
|
1638
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
1639
|
+
let node = nodes[i]
|
|
1640
|
+
if (map[node.label]) {
|
|
1641
|
+
return false
|
|
1642
|
+
}
|
|
1643
|
+
map[node.label] = node.label
|
|
1644
|
+
}
|
|
1645
|
+
return true
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
// 【校验】是不是产生了闭环
|
|
1649
|
+
export const checkEdgeLoop = (nodes, edges, startNode, endNode) => {
|
|
1650
|
+
// getAfterEdges()
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
// 【校验】所有表单
|
|
1654
|
+
export const checkForm = async (nodes, validateSideForm) => {
|
|
1655
|
+
let valid = await validateSideForm('detail')
|
|
1656
|
+
if (!valid) {
|
|
1657
|
+
return '详情'
|
|
1658
|
+
}
|
|
1659
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
1660
|
+
let node = nodes[i]
|
|
1661
|
+
if (node.type !== 'point') {
|
|
1662
|
+
let valid = await validateSideForm(node.menuKey, node)
|
|
1663
|
+
if (!valid) {
|
|
1664
|
+
return getMenuNameByKey(node.menuKey)
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
// 最后再回到主表单
|
|
1669
|
+
validateSideForm('detail')
|
|
1670
|
+
return ''
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
// 监测时间校验
|
|
1674
|
+
export const validateWatchDate = function (rule, value, callback) {
|
|
1675
|
+
let context = this.$refs.form ? this.$refs.form : this.$refs.main
|
|
1676
|
+
let form = context.getForm()
|
|
1677
|
+
let runDate = form.runDate || []
|
|
1678
|
+
if (!value[0]) {
|
|
1679
|
+
callback(new Error('请选择活动监测时间'))
|
|
1680
|
+
} else if (!runDate[0]) {
|
|
1681
|
+
callback(new Error('请先选择执行时间'))
|
|
1682
|
+
} else {
|
|
1683
|
+
if (runDate[0] > value[0]) {
|
|
1684
|
+
callback(new Error('监测开始时间需要大于执行开始时间'))
|
|
1685
|
+
} else if (runDate[1] > value[1]) {
|
|
1686
|
+
callback(new Error('监测结束时间需要大于执行结束时间'))
|
|
1687
|
+
} else {
|
|
1688
|
+
callback()
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
// 渠道 options -------------------------------------
|
|
1693
|
+
// eslint-disable-next-line no-unused-vars
|
|
1694
|
+
let messageOptions = []
|
|
1695
|
+
// eslint-disable-next-line no-unused-vars
|
|
1696
|
+
let appMessageOptions = []
|
|
1697
|
+
let counterOptions = []
|
|
1698
|
+
let managerOptions = []
|
|
1699
|
+
let positionOptions = []
|
|
1700
|
+
|
|
1701
|
+
// 岗位数据
|
|
1702
|
+
export const getPositionOptions = (form) => {
|
|
1703
|
+
return new Promise(resolve => {
|
|
1704
|
+
if (positionOptions.length) {
|
|
1705
|
+
resolve(positionOptions)
|
|
1706
|
+
return
|
|
1707
|
+
}
|
|
1708
|
+
let options = []
|
|
1709
|
+
// 默认添加一条
|
|
1710
|
+
// if (form.positionName) {
|
|
1711
|
+
// options.push({
|
|
1712
|
+
// label: form.positionName,
|
|
1713
|
+
// value: form.positionId
|
|
1714
|
+
// })
|
|
1715
|
+
// }
|
|
1716
|
+
getPosition().then(data => {
|
|
1717
|
+
options.push(...data.data.map(item => {
|
|
1718
|
+
return {
|
|
1719
|
+
label: item.positionName,
|
|
1720
|
+
value: item.positionId
|
|
1721
|
+
}
|
|
1722
|
+
}))
|
|
1723
|
+
positionOptions = options
|
|
1724
|
+
resolve(options)
|
|
1725
|
+
})
|
|
1726
|
+
})
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
// 加载短信数据
|
|
1730
|
+
export const getMessageOptions = (form = {}) => {
|
|
1731
|
+
return new Promise(resolve => {
|
|
1732
|
+
let params = {
|
|
1733
|
+
pageSize: 30,
|
|
1734
|
+
pageNum: 1,
|
|
1735
|
+
search: {
|
|
1736
|
+
tepltStat: TEMP_STATE_ON,
|
|
1737
|
+
scene: SCENE_USE
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
getMessages(params).then(data => {
|
|
1741
|
+
data.data = data.data.list || []
|
|
1742
|
+
let options = data.data.map(item => {
|
|
1743
|
+
return {
|
|
1744
|
+
value: item.pkId,
|
|
1745
|
+
label: item.tepltName,
|
|
1746
|
+
smsTemplateContext: item.tepltContent
|
|
1747
|
+
}
|
|
1748
|
+
})
|
|
1749
|
+
messageOptions = options
|
|
1750
|
+
resolve(messageOptions)
|
|
1751
|
+
})
|
|
1752
|
+
})
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
// 加载 App 消息数据
|
|
1756
|
+
export const getAppMessageOptions = (form = {}) => {
|
|
1757
|
+
return new Promise(resolve => {
|
|
1758
|
+
let params = {
|
|
1759
|
+
pageSize: 500,
|
|
1760
|
+
pageNum: 1,
|
|
1761
|
+
search: {
|
|
1762
|
+
tempStatus: TEMP_STATE_ON,
|
|
1763
|
+
scene: SCENE_USE
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
getAppMessages(params).then(data => {
|
|
1767
|
+
data.data = data.data.list || []
|
|
1768
|
+
let options = data.data.map(item => {
|
|
1769
|
+
return {
|
|
1770
|
+
value: item.id,
|
|
1771
|
+
label: item.tempName,
|
|
1772
|
+
msgContent: item.msgContent,
|
|
1773
|
+
msgTitle: item.msgTitle
|
|
1774
|
+
}
|
|
1775
|
+
})
|
|
1776
|
+
messageOptions = options
|
|
1777
|
+
resolve(messageOptions)
|
|
1778
|
+
})
|
|
1779
|
+
})
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
export const setMessageOptions = (options) => {
|
|
1783
|
+
messageOptions = options
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
// 加载柜面经理处理者数据
|
|
1787
|
+
export const getCounterOptions = () => {
|
|
1788
|
+
return new Promise(resolve => {
|
|
1789
|
+
if (counterOptions.length) {
|
|
1790
|
+
resolve(counterOptions)
|
|
1791
|
+
return
|
|
1792
|
+
}
|
|
1793
|
+
getCounterList({}).then(data => {
|
|
1794
|
+
let options = data.data.map(item => {
|
|
1795
|
+
return {
|
|
1796
|
+
value: item.userName,
|
|
1797
|
+
label: item.realName
|
|
1798
|
+
}
|
|
1799
|
+
})
|
|
1800
|
+
counterOptions = options
|
|
1801
|
+
resolve(options)
|
|
1802
|
+
})
|
|
1803
|
+
})
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
// 加载客户经理处理者数据
|
|
1807
|
+
export const getManagerOptions = () => {
|
|
1808
|
+
return new Promise(resolve => {
|
|
1809
|
+
if (managerOptions.length) {
|
|
1810
|
+
resolve(managerOptions)
|
|
1811
|
+
return
|
|
1812
|
+
}
|
|
1813
|
+
getManagerList({}).then(data => {
|
|
1814
|
+
let options = data.data.map(item => {
|
|
1815
|
+
return {
|
|
1816
|
+
value: item.userName,
|
|
1817
|
+
label: item.realName
|
|
1818
|
+
}
|
|
1819
|
+
})
|
|
1820
|
+
managerOptions = options
|
|
1821
|
+
resolve(options)
|
|
1822
|
+
})
|
|
1823
|
+
})
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
export const clearOptions = () => {
|
|
1827
|
+
managerOptions = []
|
|
1828
|
+
messageOptions = []
|
|
1829
|
+
counterOptions = []
|
|
1830
|
+
positionOptions = []
|
|
1831
|
+
appMessageOptions = []
|
|
1832
|
+
}
|