Showing
31 changed files
with
31 additions
and
64 deletions
| ... | @@ -112,7 +112,7 @@ | ... | @@ -112,7 +112,7 @@ |
| 112 | </template> | 112 | </template> |
| 113 | 113 | ||
| 114 | <script lang="ts"> | 114 | <script lang="ts"> |
| 115 | -import { reactive } from "vue"; | 115 | +import { reactive, onMounted } from "vue"; |
| 116 | import { AppData } from "./data.js"; | 116 | import { AppData } from "./data.js"; |
| 117 | import { staticPath } from "./utils"; | 117 | import { staticPath } from "./utils"; |
| 118 | import { ElNotification } from 'element-plus' | 118 | import { ElNotification } from 'element-plus' |
| ... | @@ -179,6 +179,33 @@ export default { | ... | @@ -179,6 +179,33 @@ export default { |
| 179 | }, | 179 | }, |
| 180 | }); | 180 | }); |
| 181 | 181 | ||
| 182 | + onMounted(() => { | ||
| 183 | + // 显示提示框的标志位 | ||
| 184 | + var showConfirmation = true; | ||
| 185 | + | ||
| 186 | + // 监听 beforeunload 事件 | ||
| 187 | + window.addEventListener('beforeunload', function (event) { | ||
| 188 | + if (showConfirmation) { | ||
| 189 | + // 取消事件的默认行为(弹出确认对话框) | ||
| 190 | + event.preventDefault(); | ||
| 191 | + // Chrome 和 Firefox 需要返回一个值以显示确认对话框 | ||
| 192 | + event.returnValue = ''; | ||
| 193 | + | ||
| 194 | + // 显示自定义的提示信息 | ||
| 195 | + var confirmationMessage = '确定要离开此页面吗?'; | ||
| 196 | + (event || window.event).returnValue = confirmationMessage; // 兼容旧版浏览器 | ||
| 197 | + | ||
| 198 | + return confirmationMessage; | ||
| 199 | + } | ||
| 200 | + }); | ||
| 201 | + | ||
| 202 | + // 监听 unload 事件 | ||
| 203 | + window.addEventListener('unload', function () { | ||
| 204 | + // 设置标志位为 false,避免在刷新页面时再次显示提示框 | ||
| 205 | + showConfirmation = false; | ||
| 206 | + }); | ||
| 207 | + }); | ||
| 208 | + | ||
| 182 | let editor; | 209 | let editor; |
| 183 | 210 | ||
| 184 | function onDblclickNode(e) { | 211 | function onDblclickNode(e) { | ... | ... |
This diff could not be displayed because it is too large.
docs copy/css/index.0ba1d066.css
deleted
100644 → 0
This diff is collapsed. Click to expand it.
docs copy/demo-es6.html
deleted
100644 → 0
This diff is collapsed. Click to expand it.
docs copy/demo.html
deleted
100644 → 0
This diff is collapsed. Click to expand it.
docs copy/favicon.ico
deleted
100644 → 0
No preview for this file type
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | -<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
| 3 | - <!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch --> | ||
| 4 | - <title>Group 15</title> | ||
| 5 | - <desc>Created with Sketch.</desc> | ||
| 6 | - <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | ||
| 7 | - <g id="营销活动-新建活动-维护活动事件收起" transform="translate(-234.000000, -1217.000000)"> | ||
| 8 | - <g id="Group-17" transform="translate(218.000000, 749.000000)"> | ||
| 9 | - <g transform="translate(16.000000, 348.000000)" id="Group-5-Copy-6"> | ||
| 10 | - <g transform="translate(0.000000, 120.000000)"> | ||
| 11 | - <g id="Group-15"> | ||
| 12 | - <rect id="Rectangle-5" fill="#9283ED" x="0" y="0" width="24" height="24"></rect> | ||
| 13 | - <g id="_08-2广告投放日志" transform="translate(6.000000, 7.000000)" fill="#FFFFFF" fill-rule="nonzero"> | ||
| 14 | - <path d="M0.00260303688,7.74513716 C0.00260303688,8.17286783 0.449075922,8.49206983 0.888885033,8.49206983 L5.7401128,8.49206983 L5.7401128,9.49436409 L3.23453362,9.49436409 C3.08126681,9.49436409 2.97464642,9.59650873 2.97464642,9.74334165 C2.97464642,9.89017456 3.08126681,9.9923192 3.23453362,9.9923192 L8.97204338,9.9923192 C9.1253102,9.9923192 9.23193059,9.89017456 9.23193059,9.74334165 C9.23193059,9.59650873 9.1253102,9.49436409 8.97204338,9.49436409 L6.2598872,9.49436409 L6.2598872,8.49206983 L11.317692,8.49206983 C11.7641649,8.49206983 11.997397,8.16648379 11.997397,7.74513716 L11.997397,7.4961596 L0.00260303688,7.4961596 L0.00260303688,7.74513716 Z M4.03418655,2.81027431 C3.95422126,3.02733167 3.95422126,3.02733167 3.94089371,3.07201995 L3.43444685,4.45097257 L4.64059002,4.45097257 L4.12081562,3.07201995 C4.1008243,3.02094763 4.08749675,2.96349127 4.03418655,2.81027431 Z M7.81921041,2.82304239 L7.03954881,2.82304239 L7.03954881,5.43411471 L7.81254664,5.43411471 C8.2123731,5.43411471 8.4722603,5.34473815 8.67217354,5.13406484 C8.90540564,4.89785536 9.03201735,4.53396509 9.03201735,4.09985037 C9.03201735,3.65935162 8.91873319,3.32738155 8.69216486,3.10394015 C8.49225163,2.89965087 8.2390282,2.82304239 7.81921041,2.82304239 Z" id="Shape"></path> | ||
| 15 | - <path d="M11.317692,0.0012967581 L0.888885033,0.0012967581 C0.442412148,0.0012967581 0.00260303688,0.352418953 0.00260303688,0.805685786 L0.00260303688,7.52169576 L11.997397,7.52169576 L11.997397,0.812069825 C11.997397,0.352418953 11.7375098,0.0012967581 11.317692,0.0012967581 Z M5.14703688,5.98952618 C5.12038178,5.83630923 5.06707158,5.63201995 5.00709761,5.49795511 L4.81384816,4.98723192 L3.26118872,4.98723192 L3.06793926,5.49795511 C2.9813102,5.72139651 2.96131887,5.79162095 2.92133623,5.98952618 L2.1216833,5.98952618 C2.19498482,5.86184539 2.29494143,5.65117207 2.3815705,5.44049875 L3.45443818,2.74643392 C3.54773102,2.51022444 3.58771367,2.39531172 3.60770499,2.27401496 L4.45400434,2.27401496 C4.48065944,2.38892768 4.50731453,2.45915212 4.6205987,2.74643392 L5.70013015,5.44049875 C5.82007809,5.74054863 5.88005206,5.86822943 5.9466898,5.98952618 L5.14703688,5.98952618 Z M9.13197397,5.58094763 C8.81877657,5.86184539 8.43227766,5.98952618 7.85919306,5.98952618 L6.97291106,5.98952618 C6.67304121,5.98952618 6.55309328,5.99591022 6.35318004,6.00229426 C6.37983514,5.81077307 6.39316269,5.66394015 6.39316269,5.38942643 L6.39316269,2.86773067 C6.39316269,2.60598504 6.38649892,2.46553616 6.35318004,2.26124688 C6.5464295,2.26763092 6.66637744,2.27401496 6.97291106,2.27401496 L7.85252928,2.27401496 C8.45893275,2.27401496 8.85875922,2.39531172 9.16529284,2.68259352 C9.52513666,3.00179551 9.70505857,3.48698254 9.70505857,4.09346633 C9.70505857,4.73187032 9.51180911,5.23620948 9.13197397,5.58094763 Z" id="Shape"></path> | ||
| 16 | - </g> | ||
| 17 | - </g> | ||
| 18 | - </g> | ||
| 19 | - </g> | ||
| 20 | - </g> | ||
| 21 | - </g> | ||
| 22 | - </g> | ||
| 23 | -</svg> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | -<svg width="56px" height="56px" viewBox="0 0 56 56" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
| 3 | - <!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch --> | ||
| 4 | - <title>优惠券@3x</title> | ||
| 5 | - <desc>Created with Sketch.</desc> | ||
| 6 | - <g id="老窖智慧零售" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | ||
| 7 | - <g id="Artboard" transform="translate(-340.000000, -460.000000)"> | ||
| 8 | - <g id="优惠券" transform="translate(340.000000, 460.000000)"> | ||
| 9 | - <rect id="Rectangle-5" fill="#ED8383" x="0" y="0" width="56" height="56"></rect> | ||
| 10 | - <g transform="translate(14.000000, 16.500000)" fill="#FFFFFF" fill-rule="nonzero" id="Shape"> | ||
| 11 | - <path d="M27.0206628,14.1948104 C25.4237817,13.4113107 24.9447174,12.784511 24.9447173,11.5309115 C24.9447173,10.355662 25.4237816,9.72886228 27.0206628,8.86701265 C27.8989474,8.31856287 27.9787914,7.84846309 27.9787914,7.0649634 L27.9787914,2.59901529 C27.9787914,1.18871589 26.7811306,0.0134663967 25.3439376,0.0134663967 L2.66822611,0.0134663967 C1.23103312,0.0134663967 0.0333723158,1.18871589 0.0333723158,2.59901529 L0.0333723158,7.0649634 C0.0333723158,7.7701131 0.113216386,8.39691282 0.991500982,8.86701265 C1.6302534,9.1804125 3.06744639,9.96391219 3.06744639,11.5309115 C3.06744639,13.2546108 2.02947368,13.8030605 1.07134502,14.1164604 L0.991500982,14.1164604 C0.113216386,14.6649102 0.0333723158,15.5267598 0.0333723158,15.9185097 L0.0333723158,20.3844578 C0.0333723158,21.7947572 1.23103312,22.9700067 2.66822611,22.9700067 L25.3439376,22.9700067 C26.7811306,22.9700067 27.9787914,21.7947572 27.9787914,20.3844578 L27.9787914,15.9185097 C27.9787914,15.05666 27.6594152,14.7432602 27.0206628,14.1948104 Z M18.2378168,12.6278111 C18.7168811,12.6278111 19.1161014,13.0195609 19.1161014,13.4896607 C19.1161014,13.9597605 18.7168811,14.3515103 18.2378168,14.3515103 L14.8843665,14.3515103 L14.8843665,17.6422089 C14.8843665,18.1123087 14.4851462,18.5040585 14.0060819,18.5040585 C13.5270175,18.5040585 13.1277973,18.1123087 13.1277973,17.6422089 L13.1277973,14.3515103 L9.77434698,14.3515103 C9.29528267,14.3515103 8.89606239,13.9597605 8.89606239,13.4896607 C8.89606239,13.0195609 9.29528267,12.6278111 9.77434698,12.6278111 L13.1277973,12.6278111 L13.1277973,10.5907119 L9.53481481,10.5907119 C9.05575049,10.5907119 8.65653021,10.1989621 8.65653021,9.72886228 C8.65653021,9.25876249 9.05575049,8.86701265 9.53481481,8.86701265 L12.1696686,8.86701265 L9.3751267,6.12476379 C9.05575049,5.81136393 9.05575049,5.26291416 9.3751267,4.9495143 C9.69450291,4.63611444 10.2534113,4.63611444 10.5727875,4.9495143 L14.0060819,8.31856287 L17.4393762,4.9495143 C17.7587524,4.63611444 18.3176608,4.63611444 18.6370371,4.9495143 C18.9564133,5.26291416 18.9564133,5.81136393 18.6370371,6.12476379 L15.8424951,8.86701265 L18.3975049,8.86701265 C18.8765692,8.86701265 19.2757895,9.25876249 19.2757895,9.72886228 C19.2757895,10.1989621 18.8765692,10.5907119 18.3975049,10.5907119 L14.8045224,10.5907119 L14.8045224,12.6278111 L18.2378168,12.6278111 Z"></path> | ||
| 12 | - </g> | ||
| 13 | - </g> | ||
| 14 | - </g> | ||
| 15 | - </g> | ||
| 16 | -</svg> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | -<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
| 3 | - <!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch --> | ||
| 4 | - <title>Group 7</title> | ||
| 5 | - <desc>Created with Sketch.</desc> | ||
| 6 | - <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | ||
| 7 | - <g id="营销活动-新建活动-维护活动事件收起" transform="translate(-234.000000, -841.000000)"> | ||
| 8 | - <g id="Group-5" transform="translate(234.000000, 841.000000)"> | ||
| 9 | - <g id="Group-7"> | ||
| 10 | - <rect id="Rectangle-5" fill="#92DBA8" x="0" y="0" width="24" height="24"></rect> | ||
| 11 | - <g id="选择人群" transform="translate(6.000000, 6.000000)" fill="#FFFFFF" fill-rule="nonzero"> | ||
| 12 | - <path d="M6.07954684,0.0879348459 C6.27427218,0.127410328 6.46293741,0.192275772 6.64067902,0.280859046 C6.8102853,0.353040709 6.96966437,0.447089399 7.11473896,0.560599136 C7.23270551,0.650915741 7.33983452,0.754492582 7.43400383,0.869277845 C7.6096674,1.10543782 7.743798,1.3696474 7.83066622,1.65062084 C7.90815537,1.91946351 7.96635063,2.19346537 8.0048107,2.47054868 C8.04340938,2.76803307 8.0627987,3.06768277 8.06285885,3.36764619 C8.11177355,3.40676316 8.15141696,3.45617153 8.17895517,3.51233934 C8.20586843,3.57834292 8.22848954,3.64600647 8.24667801,3.71490975 C8.26110047,3.81406862 8.26110047,3.91478338 8.24667801,4.01394225 C8.23277675,4.14333562 8.20019089,4.27004632 8.14993109,4.39014444 C8.11296793,4.47042419 8.06034712,4.54256479 7.995136,4.60236105 C7.94281913,4.66039795 7.87607712,4.70365254 7.80164215,4.72776178 C7.80164215,4.8435163 7.7339193,4.95927082 7.69522052,5.08467155 L7.57912421,5.36441163 C7.53873738,5.44264135 7.48652933,5.51421609 7.42432913,5.57662825 L7.09538957,5.86601454 C6.998376,5.97618752 6.94056027,6.11521495 6.9309198,6.26150915 C6.92102457,6.37383202 6.92102457,6.48680361 6.9309198,6.59912648 C6.94377829,6.7163127 6.97649181,6.83047294 7.02766672,6.93674384 C7.02766672,6.93674384 7.09538957,7.01391352 7.02766672,7.03320594 C5.85840368,8.06021036 5.57533261,9.76573242 6.35043823,11.1135527 L0.00383979921,11.1135527 C0.0484947862,10.5618146 0.17230191,10.0193167 0.371478118,9.50263565 C0.655979451,8.98774748 1.08682936,8.56823433 1.6098388,8.29685942 C2.03232171,8.06520837 2.47617744,7.87462158 2.9352717,7.72773304 C3.1657719,7.66730243 3.38475398,7.56953942 3.58347612,7.43834674 C3.70199899,7.35979832 3.80938384,7.26570764 3.90274097,7.15860665 C3.97403505,7.07963202 4.02982465,6.9880138 4.06721075,6.88851279 C4.10475758,6.80334678 4.12450861,6.71144666 4.12525891,6.6184189 L4.12525891,6.29044778 C4.10646041,6.13177975 4.02669894,5.98655719 3.90274097,5.88530696 C3.80599404,5.77919865 3.68989773,5.67309034 3.58347612,5.57662825 C3.51809483,5.51907594 3.46820471,5.44611919 3.43835572,5.36441163 L3.32225941,5.07502534 C3.32225941,4.95927082 3.24486187,4.8435163 3.21583779,4.72776178 C3.16234019,4.7083446 3.11307613,4.67887318 3.07071739,4.64094589 C3.01825681,4.59636533 2.97262442,4.54436756 2.9352717,4.48660654 C2.87405499,4.39967129 2.83125963,4.30120353 2.8095007,4.19722024 C2.78360203,4.08973474 2.78030797,3.97806645 2.799826,3.8692491 C2.80890097,3.77732376 2.82837411,3.68671665 2.85787416,3.59915523 C2.88751895,3.51394932 2.93352397,3.43531575 2.99331985,3.36764619 C2.97402783,3.08501761 2.97402783,2.80140832 2.99331985,2.51877973 C3.03093752,2.26213766 3.08261314,2.00774044 3.14811494,1.75672915 C3.2195717,1.47529117 3.34435992,1.21007834 3.51575327,0.975386155 C3.64051454,0.79730067 3.79040549,0.638104288 3.96078913,0.502721876 C4.11460093,0.381471537 4.28374782,0.280930836 4.46387315,0.203689366 C4.627772,0.114590779 4.80373999,0.0496093232 4.98630656,0.0107651658 C5.15046156,-0.00358290013 5.31556089,-0.00358290013 5.47971589,0.0107651658 C5.68206408,0.0120561592 5.88349756,0.0379710558 6.07954684,0.0879348459 Z M8.42082248,8.63447676 L7.82099153,9.17466451 L8.54659349,10.0524696 L9.06902689,10.6601808 L9.66885784,10.1199931 L11.7005433,8.25827458 C12.1888311,9.19354561 12.0510689,10.3317812 11.3536536,11.1243887 C10.6562384,11.9169962 9.54228256,12.2013293 8.54867674,11.8403487 C7.55507093,11.4793681 6.88570713,10.5471485 6.86319696,9.49298944 C6.85800832,8.46749633 7.46798468,7.53817708 8.4125917,7.13243506 C9.35719873,6.72669304 10.4535645,6.92307817 11.1974593,7.63127094 L9.14642444,9.50263565 L8.42082248,8.63447676 Z" id="Shape"></path> | ||
| 13 | - </g> | ||
| 14 | - </g> | ||
| 15 | - </g> | ||
| 16 | - </g> | ||
| 17 | - </g> | ||
| 18 | -</svg> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
docs copy/images/end-node.png
deleted
100644 → 0
1.15 KB
docs copy/images/flow-node.png
deleted
100644 → 0
944 Bytes
docs copy/images/judge-node.png
deleted
100644 → 0
1.03 KB
docs copy/images/start-node.png
deleted
100644 → 0
858 Bytes
docs copy/index.html
deleted
100644 → 0
| 1 | -<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="./lib/element-ui.css"><link href="css/chunk-vendors.d1676ea7.css" rel="preload" as="style"><link href="css/index.0ba1d066.css" rel="preload" as="style"><link href="js/chunk-vendors.9382c778.js" rel="preload" as="script"><link href="js/index.e8a5c5ea.js" rel="preload" as="script"><link href="css/chunk-vendors.d1676ea7.css" rel="stylesheet"><link href="css/index.0ba1d066.css" rel="stylesheet"></head><body><script src="./lib/g6.umd.min.js"></script><div id="app"></div><script src="js/chunk-vendors.9382c778.js"></script><script src="js/index.e8a5c5ea.js"></script></body></html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
docs copy/js/index.e8a5c5ea.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
docs copy/js/index.e8a5c5ea.js.map
deleted
100644 → 0
This diff could not be displayed because it is too large.
docs copy/lib/element-ui.css
deleted
100644 → 0
This diff could not be displayed because it is too large.
docs copy/lib/element-ui.js
deleted
100644 → 0
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
docs copy/lib/g6.umd.min.js
deleted
100644 → 0
This diff could not be displayed because it is too large.
docs copy/lib/g6.umd.min.js.map
deleted
100644 → 0
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
docs copy/lib/vue.min.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
docs copy/report.html
deleted
100644 → 0
This diff could not be displayed because it is too large.
docs copy/vue.png
deleted
100644 → 0
3.37 KB
-
Please register or login to post a comment