ecinc-cloud-yoabase 9.6.249 → 9.6.250

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.
@@ -16592,7 +16592,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".el-collapse[data-v-7531760d]{width:26
16592
16592
 
16593
16593
  /***/ }),
16594
16594
 
16595
- /***/ 2120:
16595
+ /***/ 1577:
16596
16596
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
16597
16597
 
16598
16598
  "use strict";
@@ -16606,7 +16606,7 @@ __webpack_require__.r(__webpack_exports__);
16606
16606
 
16607
16607
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
16608
16608
  // Module
16609
- ___CSS_LOADER_EXPORT___.push([module.id, "#center[data-v-30cb1c36]{height:100%;max-width:3000px}.center-container[data-v-30cb1c36]{height:calc(100vh - 60px);overflow-y:auto;overflow-x:auto}.dropdown-menu[data-v-30cb1c36]{width:160px;display:none;position:fixed;z-index:999999;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:var(--portalFontSize14);text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu li a[data-v-30cb1c36]{padding:5px 20px;line-height:1.5;white-space:nowrap;color:#333}.dropdown-menu li[data-v-30cb1c36]:hover{background:#f5f5f5}[data-v-30cb1c36] .line_text{cursor:pointer;position:absolute;left:0;top:0;font-size:var(--portalFontSize14)}[data-v-30cb1c36] svg:hover path:last-child{fill:red}[data-v-30cb1c36] path{stroke-width:2;cursor:pointer}[data-v-30cb1c36] path:last-child{fill:#438eb9}[data-v-30cb1c36] circle{fill:#438eb9;stroke:none}li[data-v-30cb1c36],ul[data-v-30cb1c36]{list-style:none}", ""]);
16609
+ ___CSS_LOADER_EXPORT___.push([module.id, "#center[data-v-7f0a3c68]{height:100%;max-width:3000px}.center-container[data-v-7f0a3c68]{height:calc(100vh - 60px);overflow-y:auto;overflow-x:auto}.dropdown-menu[data-v-7f0a3c68]{width:160px;display:none;position:fixed;z-index:999999;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:var(--portalFontSize14);text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu li a[data-v-7f0a3c68]{padding:5px 20px;line-height:1.5;white-space:nowrap;color:#333}.dropdown-menu li[data-v-7f0a3c68]:hover{background:#f5f5f5}[data-v-7f0a3c68] .line_text{cursor:pointer;position:absolute;left:0;top:0;font-size:var(--portalFontSize14)}[data-v-7f0a3c68] svg:hover path:last-child{fill:red}[data-v-7f0a3c68] path{stroke-width:2;cursor:pointer}[data-v-7f0a3c68] path:last-child{fill:#438eb9}[data-v-7f0a3c68] circle{fill:#438eb9;stroke:none}li[data-v-7f0a3c68],ul[data-v-7f0a3c68]{list-style:none}", ""]);
16610
16610
  // Exports
16611
16611
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
16612
16612
 
@@ -91899,7 +91899,7 @@ var update = add("337f0990", content, true, {"sourceMap":false,"shadowMode":fals
91899
91899
 
91900
91900
  /***/ }),
91901
91901
 
91902
- /***/ 6006:
91902
+ /***/ 3625:
91903
91903
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
91904
91904
 
91905
91905
  // style-loader: Adds some css to the DOM by adding a <style> tag
@@ -92171,19 +92171,19 @@ var update = add("b391fe50", content, true, {"sourceMap":false,"shadowMode":fals
92171
92171
 
92172
92172
  /***/ }),
92173
92173
 
92174
- /***/ 1214:
92174
+ /***/ 4915:
92175
92175
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
92176
92176
 
92177
92177
  // style-loader: Adds some css to the DOM by adding a <style> tag
92178
92178
 
92179
92179
  // load the styles
92180
- var content = __webpack_require__(2120);
92180
+ var content = __webpack_require__(1577);
92181
92181
  if(content.__esModule) content = content.default;
92182
92182
  if(typeof content === 'string') content = [[module.id, content, '']];
92183
92183
  if(content.locals) module.exports = content.locals;
92184
92184
  // add the styles to the DOM
92185
92185
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
92186
- var update = add("45ac82be", content, true, {"sourceMap":false,"shadowMode":false});
92186
+ var update = add("eee62840", content, true, {"sourceMap":false,"shadowMode":false});
92187
92187
 
92188
92188
  /***/ }),
92189
92189
 
@@ -109947,7 +109947,7 @@ var StatisticsSearchvue_type_script_lang_js_moment = __webpack_require__(5093);
109947
109947
  ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/platStatistics/components/StatisticsSearch.vue?vue&type=script&lang=js
109948
109948
  /* harmony default export */ var components_StatisticsSearchvue_type_script_lang_js = (StatisticsSearchvue_type_script_lang_js);
109949
109949
  // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/platStatistics/components/StatisticsSearch.vue?vue&type=style&index=0&id=351115d6&prod&scoped=true&lang=scss
109950
- var StatisticsSearchvue_type_style_index_0_id_351115d6_prod_scoped_true_lang_scss = __webpack_require__(6006);
109950
+ var StatisticsSearchvue_type_style_index_0_id_351115d6_prod_scoped_true_lang_scss = __webpack_require__(3625);
109951
109951
  ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/platStatistics/components/StatisticsSearch.vue?vue&type=style&index=0&id=351115d6&prod&scoped=true&lang=scss
109952
109952
 
109953
109953
  ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/platStatistics/components/StatisticsSearch.vue
@@ -227308,8 +227308,8 @@ var MenuBar_component = normalizeComponent(
227308
227308
  )
227309
227309
 
227310
227310
  /* harmony default export */ var MenuBar = (MenuBar_component.exports);
227311
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/voice/Center/index.vue?vue&type=template&id=30cb1c36&scoped=true
227312
- var Centervue_type_template_id_30cb1c36_scoped_true_render = function render() {
227311
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/voice/Center/index.vue?vue&type=template&id=7f0a3c68&scoped=true
227312
+ var Centervue_type_template_id_7f0a3c68_scoped_true_render = function render() {
227313
227313
  var _vm = this,
227314
227314
  _c = _vm._self._c;
227315
227315
  return _c('div', {
@@ -227410,7 +227410,7 @@ var Centervue_type_template_id_30cb1c36_scoped_true_render = function render() {
227410
227410
  }
227411
227411
  }, [_vm._v("水平平局分布")])])])])]);
227412
227412
  };
227413
- var Centervue_type_template_id_30cb1c36_scoped_true_staticRenderFns = [];
227413
+ var Centervue_type_template_id_7f0a3c68_scoped_true_staticRenderFns = [];
227414
227414
 
227415
227415
  // EXTERNAL MODULE: ./node_modules/jquery/dist/jquery.js
227416
227416
  var jquery = __webpack_require__(4692);
@@ -227547,8 +227547,6 @@ var Base64 = {
227547
227547
  }
227548
227548
  };
227549
227549
 
227550
- // EXTERNAL MODULE: ./node_modules/jsplumb/dist/js/jsplumb.js
227551
- var jsplumb = __webpack_require__(1702);
227552
227550
  ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/voice/scripts/model_data.js
227553
227551
 
227554
227552
  // 定义全局流程对象
@@ -227721,7 +227719,7 @@ var modeldata = [{
227721
227719
  }];
227722
227720
 
227723
227721
  ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/voice/scripts/globalStyle.js
227724
- var globalStyle_jsPlumb = __webpack_require__(1702);
227722
+ var entry_lib_jsPlumb = window.jsPlumb;
227725
227723
 
227726
227724
  // 基本连接线样式
227727
227725
  // var connectorPaintStyle = {
@@ -227774,7 +227772,7 @@ var hollowCircle = {
227774
227772
  cssClass: 'line_text',
227775
227773
  events: {
227776
227774
  mousedown: function mousedown(labelOverlay, originalEvent) {
227777
- globalStyle_jsPlumb.draggable($('.line_text'));
227775
+ entry_lib_jsPlumb.draggable($('.line_text'));
227778
227776
  },
227779
227777
  mouseout: function mouseout() {
227780
227778
  return false;
@@ -227788,7 +227786,7 @@ var hollowCircle = {
227788
227786
  ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/voice/scripts/menuCoulmn.js
227789
227787
  /* eslint-disable */
227790
227788
 
227791
-
227789
+ var menuCoulmn_jsPlumb = window.jsPlumb;
227792
227790
 
227793
227791
  // 说明:添加、移除、检测 className
227794
227792
  function hasClass(element, className) {
@@ -228254,7 +228252,7 @@ function SelectAlignLeft() {
228254
228252
  if (id !== arr[j].parentNode.id) continue;
228255
228253
  jquery_default()(arr[j]).css('left', iLeft + 'px');
228256
228254
  }
228257
- jsplumb.jsPlumb.repaintEverything();
228255
+ menuCoulmn_jsPlumb.repaintEverything();
228258
228256
  }
228259
228257
 
228260
228258
  // 垂直居中对齐
@@ -228274,7 +228272,7 @@ function SelectAlignCenter() {
228274
228272
  if (id !== arr[j].parentNode.id) continue;
228275
228273
  jquery_default()(arr[j]).css('left', iLeft - parseInt(GetStyle(arr[j], 'width')) / 2 + 'px');
228276
228274
  }
228277
- jsplumb.jsPlumb.repaintEverything();
228275
+ menuCoulmn_jsPlumb.repaintEverything();
228278
228276
  }
228279
228277
 
228280
228278
  // 垂直平局分布
@@ -228317,7 +228315,7 @@ function SelectAlignMean() {
228317
228315
  ic++;
228318
228316
  }
228319
228317
  }
228320
- jsplumb.jsPlumb.repaintEverything();
228318
+ menuCoulmn_jsPlumb.repaintEverything();
228321
228319
  }
228322
228320
  }
228323
228321
 
@@ -228358,7 +228356,7 @@ function SelectMeanCenter() {
228358
228356
  ic++;
228359
228357
  }
228360
228358
  }
228361
- jsplumb.jsPlumb.repaintEverything();
228359
+ menuCoulmn_jsPlumb.repaintEverything();
228362
228360
  }
228363
228361
  }
228364
228362
 
@@ -228378,7 +228376,7 @@ function SelectAlignRight() {
228378
228376
  if (id !== arr[j].parentNode.id) continue;
228379
228377
  $(arr[j]).css('left', iLeft - parseInt(GetStyle(arr[j], 'width')) + 'px');
228380
228378
  }
228381
- jsPlumb.repaintEverything();
228379
+ menuCoulmn_jsPlumb.repaintEverything();
228382
228380
  }
228383
228381
 
228384
228382
  // 上对齐
@@ -228397,7 +228395,7 @@ function SelectAlignTop() {
228397
228395
  if (id !== arr[j].parentNode.id) continue;
228398
228396
  jquery_default()(arr[j]).css('top', iTop + 'px');
228399
228397
  }
228400
- jsplumb.jsPlumb.repaintEverything();
228398
+ menuCoulmn_jsPlumb.repaintEverything();
228401
228399
  }
228402
228400
 
228403
228401
  // 垂直居中
@@ -228416,21 +228414,21 @@ function SelectAlignMiddle() {
228416
228414
  if (id !== arr[j].parentNode.id) continue;
228417
228415
  jquery_default()(arr[j]).css('top', iTop - parseInt(GetStyle(arr[j], 'height')) / 2 + 'px');
228418
228416
  }
228419
- jsplumb.jsPlumb.repaintEverything();
228417
+ menuCoulmn_jsPlumb.repaintEverything();
228420
228418
  }
228421
228419
 
228422
228420
  // 删除选中
228423
228421
  function DeleteSelect() {
228424
228422
  var arr = getSelectedRegions();
228425
228423
  for (var i = 0; i < arr.length; i++) {
228426
- jsPlumb.remove(arr[i], true);
228424
+ menuCoulmn_jsPlumb.remove(arr[i], true);
228427
228425
  // var points = jsPlumb.getEndpoints(arr[i]);
228428
228426
  // for (var j = 0; j < points.length; j++) {
228429
228427
  // jsPlumb.deleteEndpoint(points[j]);
228430
228428
  // }
228431
228429
  // arr[i].parentNode.removeChild(arr[i]);
228432
228430
  }
228433
- jsPlumb.repaintEverything();
228431
+ menuCoulmn_jsPlumb.repaintEverything();
228434
228432
  }
228435
228433
  function GetStyle(obj, attr) {
228436
228434
  if (obj.currentStyle) {
@@ -228442,14 +228440,14 @@ function GetStyle(obj, attr) {
228442
228440
  }
228443
228441
 
228444
228442
  /** Event handler for mouse wheel event.
228445
- *鼠标滚动事件
228446
- */
228443
+ *鼠标滚动事件
228444
+ */
228447
228445
  var wheel = function wheel(event) {
228448
228446
  var delta = 0;
228449
- if (!event) /* IE. */
228450
- {
228451
- event = window.event;
228452
- }
228447
+ if (!event) {
228448
+ /* IE. */
228449
+ event = window.event;
228450
+ }
228453
228451
  if (event.wheelDelta) {
228454
228452
  /* IE/Opera. */
228455
228453
  delta = event.wheelDelta / 120;
@@ -228514,7 +228512,7 @@ var Transform = {
228514
228512
  '-webkit-transform': 'scale(' + M11 + ',' + M22 + ')',
228515
228513
  // "-webkit-transform-origin": transformOriginString,
228516
228514
  '-o-transform': 'scale(' + M11 + ',' + M22 + ')',
228517
- 'transform': 'scale(' + M11 + ',' + M22 + ')'
228515
+ transform: 'scale(' + M11 + ',' + M22 + ')'
228518
228516
  // "-o-transform-origin": transformOriginString,
228519
228517
  // "filter": "progid:DXImageTransform.Microsoft.Matrix(M11=" + M11 + ",M12=" + M12 + ",M21=" + M21 + ",M22=" + M22 + ", sizingMethod='auto expand')"
228520
228518
  });
@@ -228525,7 +228523,7 @@ var Transform = {
228525
228523
  ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/voice/scripts/drag.js
228526
228524
  /* eslint-disable */
228527
228525
 
228528
-
228526
+ var drag_jsPlumb = window.jsPlumb;
228529
228527
 
228530
228528
 
228531
228529
 
@@ -228557,7 +228555,7 @@ model.start = 0; // 用于判断开始节点是否存在
228557
228555
  function nodeEvents(id, wflow) {
228558
228556
  // 节点删除,包括连线以及数据
228559
228557
  jquery_default()('#' + id).bind('mousedown', function (e) {
228560
- var allConnection = jsplumb.jsPlumb.getAllConnections();
228558
+ var allConnection = drag_jsPlumb.getAllConnections();
228561
228559
  var pathArr = [];
228562
228560
  var curNode = jquery_default()(this).attr('id');
228563
228561
  if (e.which === 3) {
@@ -228597,7 +228595,7 @@ function nodeEvents(id, wflow) {
228597
228595
 
228598
228596
  // 2图形上删除node及path
228599
228597
 
228600
- jsplumb.jsPlumb.remove(id);
228598
+ drag_jsPlumb.remove(id);
228601
228599
  });
228602
228600
  }
228603
228601
  // 解决center的top无规则运动的bug
@@ -228641,24 +228639,24 @@ model.CreateModel = function (ui, select, resize, domJoin, modelType, type, wflo
228641
228639
 
228642
228640
  // 设置连接点
228643
228641
  if (domJoin === 1) {
228644
- jsplumb.jsPlumb.addEndpoint(id, {
228642
+ drag_jsPlumb.addEndpoint(id, {
228645
228643
  anchors: [0.5, 1, 0, 1],
228646
228644
  uuid: jsPlumbUtil.uuid()
228647
228645
  }, hollowCircle);
228648
228646
  } else {
228649
- jsplumb.jsPlumb.addEndpoint(id, {
228647
+ drag_jsPlumb.addEndpoint(id, {
228650
228648
  anchors: [1, 0.5, 1, 0],
228651
228649
  uuid: jsPlumbUtil.uuid()
228652
228650
  }, hollowCircle);
228653
- jsplumb.jsPlumb.addEndpoint(id, {
228651
+ drag_jsPlumb.addEndpoint(id, {
228654
228652
  anchors: [0, 0.5, -1, 0],
228655
228653
  uuid: jsPlumbUtil.uuid()
228656
228654
  }, hollowCircle);
228657
- jsplumb.jsPlumb.addEndpoint(id, {
228655
+ drag_jsPlumb.addEndpoint(id, {
228658
228656
  anchors: [0.5, 0, 0, -1],
228659
228657
  uuid: jsPlumbUtil.uuid()
228660
228658
  }, hollowCircle);
228661
- jsplumb.jsPlumb.addEndpoint(id, {
228659
+ drag_jsPlumb.addEndpoint(id, {
228662
228660
  anchors: [0.5, 1, 0, 1],
228663
228661
  uuid: jsPlumbUtil.uuid()
228664
228662
  }, hollowCircle);
@@ -228680,14 +228678,14 @@ model.CreateModel = function (ui, select, resize, domJoin, modelType, type, wflo
228680
228678
  jquery_default()('#' + id).draggable({
228681
228679
  start: function start() {
228682
228680
  startMove();
228683
- jsplumb.jsPlumb.repaintEverything();
228681
+ drag_jsPlumb.repaintEverything();
228684
228682
  },
228685
228683
  drag: function drag(event, ui) {
228686
228684
  MoveSelectDiv(event, ui, id);
228687
- jsplumb.jsPlumb.repaintEverything();
228685
+ drag_jsPlumb.repaintEverything();
228688
228686
  },
228689
228687
  stop: function stop() {
228690
- jsplumb.jsPlumb.repaintEverything();
228688
+ drag_jsPlumb.repaintEverything();
228691
228689
  }
228692
228690
  });
228693
228691
 
@@ -229047,952 +229045,960 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
229047
229045
  },
229048
229046
  mounted: function mounted() {
229049
229047
  var _this2 = this;
229050
- Centervue_type_script_lang_js_jsPlumb.importDefaults({
229051
- PaintStyle: {
229052
- lineWidth: 8,
229053
- stroke: '#00ff54'
229048
+ jquery_default()(function () {
229049
+ if (_this2.$route.path.indexOf('/designer/voice') !== -1) {
229050
+ _this2.initVoiceDesigner();
229054
229051
  }
229055
229052
  });
229056
- this.dragLineObj.init = function (connection, thisConnect) {
229057
- _this2.dragLine(connection, thisConnect);
229058
- };
229059
- // 区域选择
229060
- var oRegionSelect = new RegionSelect({
229061
- region: '#center div.process',
229062
- selectedClass: 'seled',
229063
- parentId: 'center'
229064
- });
229065
- oRegionSelect.select();
229066
- jquery_default()('#topAlign').click(function () {
229067
- SelectAlignTop();
229068
- });
229069
- jquery_default()('#leftAlign').click(function () {
229070
- SelectAlignLeft();
229071
- });
229072
- jquery_default()('#verticalAlign').click(function () {
229073
- SelectAlignCenter();
229074
- });
229075
- jquery_default()('#verticalMean').click(function () {
229076
- SelectAlignMean();
229077
- });
229078
- jquery_default()('#levelAlign').click(function () {
229079
- // SelectAlignCenter();
229080
- SelectAlignMiddle();
229081
- });
229082
- jquery_default()('#levelMean').click(function () {
229083
- // SelectAlignCenter();
229084
- SelectMeanCenter();
229085
- });
229086
- jquery_default()('#left ul').find('li').draggable({
229087
- helper: 'clone',
229088
- scope: 'plant'
229089
- });
229090
- var labelText = ''; // 请求过来数据时保存路径文字
229091
- // const pathNo = ''// 请求过来数据时保存路径编号
229092
- ecinc_process.init();
229093
- ecinc_attr_panel.init();
229094
- this.handleBtn();
229095
- if (this.id) {
229096
- this.$http({
229097
- method: 'GET',
229098
- params: {
229099
- product: this.product,
229100
- dwadmin: this.dwadmin,
229101
- copy: this.$route.query.copy
229102
- },
229103
- contentType: 'application/x-www-form-urlencoded',
229104
- url: '/voice/scene/getById?id=' + this.id + ''
229105
- }).then(function (response) {
229106
- _this2.dataStatus = true;
229107
- // this.getWflow = response.body.vo
229108
- _this2.wflow = response.body.vo;
229109
- _this2.wflow.speaks.forEach(function (item) {
229110
- _this2.$set(item, 'time', [item.startTime || '', item.endTime || '']);
229111
- });
229112
- _this2.wflow.nodes.forEach(function (item) {
229113
- _this2.$set(item, 'SpeakMethod', _this2.wflow.speaks.filter(function (list) {
229114
- return list.nodeId === item.id && list.type === 2;
229115
- }));
229116
- _this2.$set(item, 'successSpeakMethod', _this2.wflow.speaks.filter(function (list) {
229117
- return list.nodeId === item.id && list.type === 1;
229118
- }));
229119
- _this2.$set(item, 'errorSpeakMethod', _this2.wflow.speaks.filter(function (list) {
229120
- return list.nodeId === item.id && list.type === 0;
229121
- }));
229122
- });
229123
- var _nextNodes = [];
229124
- _this2.wflow.paths.forEach(function (item) {
229125
- var obj = {
229126
- nextNodeId: item.afterNodeId,
229127
- pathId: item.id
229128
- };
229129
- _nextNodes.push(obj);
229130
- });
229131
- _this2.$set(_this2.wflow, 'nextNodes', _nextNodes);
229132
- _this2.$set(_this2.wflow, 'pathFieldValues', []);
229133
- _this2.$set(_this2.wflow, 'nodeFieldValues', []);
229134
- // if (this.wflow.groupOrgans && this.wflow.groupOrgans.length > 1) {
229135
- // this.wflow.groupOrgans.push({ 'code': 'group_cur_corp', 'name': '当前用户所在单位(公司)' })
229136
- // this.wflow.groupOrgans.push({ 'code': 'group_drf_corp', 'name': '拟稿用户所在单位(公司)' })
229137
- // this.wflow.groupOrgans.push({ 'code': 'group_all_corp', 'name': '不限制(集团各公司)' })
229138
- // }
229139
- _this2.responseVo = JSON.parse(JSON.stringify(response.body.vo));
229140
- _this2.ideaL = _this2.wflow.ideaLabels;
229141
- for (var k = 0; k < _this2.wflow.paths.length; k++) {
229142
- _this2.getWflow.push(_this2.wflow.paths[k].id);
229143
- }
229144
- // for (let i = 0; i < this.wflow.ideaLabels.length; i++) {
229145
- // if (this.wflow.ideaLabels.length === 1) {
229146
- // this.ideaLables = this.wflow.ideaLabels[i].name
229147
- // } else if (this.wflow.ideaLabels.length > 1) {
229148
- // this.ideaLables += this.wflow.ideaLabels[i].name + '\n'
229149
- // } else {
229150
- // this.ideaLables = ''
229151
- // }
229152
- // }
229153
- for (var o = 0; o < _this2.wflow.paths.length; o++) {
229154
- _this2.pathObj.push(_this2.wflow.paths[o]);
229155
- }
229156
- _this2.wflow.paths.length = 0;
229157
- _this2.process = response.body.vo.scene;
229158
- _this2.emitData();
229159
- var chartData = JSON.parse(response.body.vo.scene.chartData);
229160
- var connectsArr = chartData.connects;
229161
- _this2.connectsArr = connectsArr;
229162
- var domHtmlArr = chartData.domHtml;
229163
- var nodeIdArr = [];
229164
- for (var i = 0; i < domHtmlArr.length; i++) {
229165
- // console.log(Base64.decode(domHtmlArr[i].domH))
229166
- // console.log($(Base64.decode(domHtmlArr[i].domH)))
229167
- jquery_default()('#center').append(Base64.decode(domHtmlArr[i].domH));
229053
+ },
229054
+ methods: {
229055
+ initVoiceDesigner: function initVoiceDesigner() {
229056
+ var _this3 = this;
229057
+ Centervue_type_script_lang_js_jsPlumb.importDefaults({
229058
+ PaintStyle: {
229059
+ lineWidth: 8,
229060
+ stroke: '#00ff54'
229168
229061
  }
229169
- jquery_default()('.process').removeClass('seled');
229170
- jquery_default()('.process').each(function (index, elem) {
229171
- nodeIdArr.push(jquery_default()(elem).attr('id'));
229172
- nodeEvents(jquery_default()(elem).attr('id'), _this2.wflow);
229173
- if (jquery_default()(elem).hasClass('ptjd')) {
229174
- jquery_default()(elem).find('img').attr('src', _this2.ptjd);
229175
- } else if (jquery_default()(elem).hasClass('jzjd')) {
229176
- jquery_default()(elem).find('img').attr('src', _this2.jzjd);
229177
- } else if (jquery_default()(elem).hasClass('drbx')) {
229178
- jquery_default()(elem).find('img').attr('src', _this2.drbx);
229179
- } else if (jquery_default()(elem).hasClass('drcx')) {
229180
- jquery_default()(elem).find('img').attr('src', _this2.drcx);
229181
- } else if (jquery_default()(elem).hasClass('hqjd')) {
229182
- jquery_default()(elem).find('img').attr('src', _this2.hqjd);
229183
- } else if (jquery_default()(elem).hasClass('ywjd')) {
229184
- jquery_default()(elem).find('img').attr('src', _this2.ywjd);
229185
- } else if (jquery_default()(elem).hasClass('childWf')) {
229186
- jquery_default()(elem).find('img').attr('src', _this2.zlx);
229062
+ });
229063
+ this.dragLineObj.init = function (connection, thisConnect) {
229064
+ _this3.dragLine(connection, thisConnect);
229065
+ };
229066
+ // 区域选择
229067
+ var oRegionSelect = new RegionSelect({
229068
+ region: '#center div.process',
229069
+ selectedClass: 'seled',
229070
+ parentId: 'center'
229071
+ });
229072
+ oRegionSelect.select();
229073
+ jquery_default()('#topAlign').click(function () {
229074
+ SelectAlignTop();
229075
+ });
229076
+ jquery_default()('#leftAlign').click(function () {
229077
+ SelectAlignLeft();
229078
+ });
229079
+ jquery_default()('#verticalAlign').click(function () {
229080
+ SelectAlignCenter();
229081
+ });
229082
+ jquery_default()('#verticalMean').click(function () {
229083
+ SelectAlignMean();
229084
+ });
229085
+ jquery_default()('#levelAlign').click(function () {
229086
+ // SelectAlignCenter();
229087
+ SelectAlignMiddle();
229088
+ });
229089
+ jquery_default()('#levelMean').click(function () {
229090
+ // SelectAlignCenter();
229091
+ SelectMeanCenter();
229092
+ });
229093
+ jquery_default()('#left ul').find('li').draggable({
229094
+ helper: 'clone',
229095
+ scope: 'plant'
229096
+ });
229097
+ var labelText = ''; // 请求过来数据时保存路径文字
229098
+ // const pathNo = ''// 请求过来数据时保存路径编号
229099
+ ecinc_process.init();
229100
+ ecinc_attr_panel.init();
229101
+ this.handleBtn();
229102
+ if (this.id) {
229103
+ this.$http({
229104
+ method: 'GET',
229105
+ params: {
229106
+ product: this.product,
229107
+ dwadmin: this.dwadmin,
229108
+ copy: this.$route.query.copy
229109
+ },
229110
+ contentType: 'application/x-www-form-urlencoded',
229111
+ url: '/voice/scene/getById?id=' + this.id + ''
229112
+ }).then(function (response) {
229113
+ _this3.dataStatus = true;
229114
+ // this.getWflow = response.body.vo
229115
+ _this3.wflow = response.body.vo;
229116
+ _this3.wflow.speaks.forEach(function (item) {
229117
+ _this3.$set(item, 'time', [item.startTime || '', item.endTime || '']);
229118
+ });
229119
+ _this3.wflow.nodes.forEach(function (item) {
229120
+ _this3.$set(item, 'SpeakMethod', _this3.wflow.speaks.filter(function (list) {
229121
+ return list.nodeId === item.id && list.type === 2;
229122
+ }));
229123
+ _this3.$set(item, 'successSpeakMethod', _this3.wflow.speaks.filter(function (list) {
229124
+ return list.nodeId === item.id && list.type === 1;
229125
+ }));
229126
+ _this3.$set(item, 'errorSpeakMethod', _this3.wflow.speaks.filter(function (list) {
229127
+ return list.nodeId === item.id && list.type === 0;
229128
+ }));
229129
+ });
229130
+ var _nextNodes = [];
229131
+ _this3.wflow.paths.forEach(function (item) {
229132
+ var obj = {
229133
+ nextNodeId: item.afterNodeId,
229134
+ pathId: item.id
229135
+ };
229136
+ _nextNodes.push(obj);
229137
+ });
229138
+ _this3.$set(_this3.wflow, 'nextNodes', _nextNodes);
229139
+ _this3.$set(_this3.wflow, 'pathFieldValues', []);
229140
+ _this3.$set(_this3.wflow, 'nodeFieldValues', []);
229141
+ // if (this.wflow.groupOrgans && this.wflow.groupOrgans.length > 1) {
229142
+ // this.wflow.groupOrgans.push({ 'code': 'group_cur_corp', 'name': '当前用户所在单位(公司)' })
229143
+ // this.wflow.groupOrgans.push({ 'code': 'group_drf_corp', 'name': '拟稿用户所在单位(公司)' })
229144
+ // this.wflow.groupOrgans.push({ 'code': 'group_all_corp', 'name': '不限制(集团各公司)' })
229145
+ // }
229146
+ _this3.responseVo = JSON.parse(JSON.stringify(response.body.vo));
229147
+ _this3.ideaL = _this3.wflow.ideaLabels;
229148
+ for (var k = 0; k < _this3.wflow.paths.length; k++) {
229149
+ _this3.getWflow.push(_this3.wflow.paths[k].id);
229150
+ }
229151
+ // for (let i = 0; i < this.wflow.ideaLabels.length; i++) {
229152
+ // if (this.wflow.ideaLabels.length === 1) {
229153
+ // this.ideaLables = this.wflow.ideaLabels[i].name
229154
+ // } else if (this.wflow.ideaLabels.length > 1) {
229155
+ // this.ideaLables += this.wflow.ideaLabels[i].name + '\n'
229156
+ // } else {
229157
+ // this.ideaLables = ''
229158
+ // }
229159
+ // }
229160
+ for (var o = 0; o < _this3.wflow.paths.length; o++) {
229161
+ _this3.pathObj.push(_this3.wflow.paths[o]);
229162
+ }
229163
+ _this3.wflow.paths.length = 0;
229164
+ _this3.process = response.body.vo.scene;
229165
+ _this3.emitData();
229166
+ var chartData = JSON.parse(response.body.vo.scene.chartData);
229167
+ var connectsArr = chartData.connects;
229168
+ _this3.connectsArr = connectsArr;
229169
+ var domHtmlArr = chartData.domHtml;
229170
+ var nodeIdArr = [];
229171
+ for (var i = 0; i < domHtmlArr.length; i++) {
229172
+ // console.log(Base64.decode(domHtmlArr[i].domH))
229173
+ // console.log($(Base64.decode(domHtmlArr[i].domH)))
229174
+ jquery_default()('#center').append(Base64.decode(domHtmlArr[i].domH));
229187
229175
  }
229188
- });
229189
- for (var u = 0; u < nodeIdArr.length; u++) {
229190
- if (jquery_default()('#' + nodeIdArr[u]).hasClass('start')) {
229191
- Centervue_type_script_lang_js_jsPlumb.addEndpoint(nodeIdArr[u], {
229192
- anchors: [0.5, 1, 0, 1]
229193
- }, hollowCircle);
229194
- model.start++;
229195
- } else {
229196
- Centervue_type_script_lang_js_jsPlumb.addEndpoint(nodeIdArr[u], {
229197
- anchors: [1, 0.5, 1, 0]
229198
- }, hollowCircle);
229199
- Centervue_type_script_lang_js_jsPlumb.addEndpoint(nodeIdArr[u], {
229200
- anchors: [0, 0.5, -1, 0]
229201
- }, hollowCircle);
229202
- Centervue_type_script_lang_js_jsPlumb.addEndpoint(nodeIdArr[u], {
229203
- anchors: [0.5, 0, 0, -1]
229204
- }, hollowCircle);
229205
- Centervue_type_script_lang_js_jsPlumb.addEndpoint(nodeIdArr[u], {
229206
- anchors: [0.5, 1, 0, 1]
229207
- }, hollowCircle);
229208
- }
229209
- }
229210
- // 划线
229211
- for (var j = 0; j < connectsArr.length; j++) {
229212
- // debugger
229213
- labelText = connectsArr[j].label;
229214
- var anchor = [connectsArr[j].firstEndpoints, connectsArr[j].secondEndpoints];
229215
- var lineDistance = 0;
229216
- var topY = 0;
229217
- var connector = void 0;
229218
- // type,pathMaxX
229219
- if (connectsArr[j].type === 'Straight') {
229220
- connector = ['Straight', {
229221
- stub: [0, 0]
229222
- }];
229223
- } else if (connectsArr[j].type === 'Flowchart') {
229224
- // lineDistance = Math.abs(connectsArr[j].pathMaxX) >= Math.abs(connectsArr[j].pathMinX) ? Math.abs(connectsArr[j].pathMaxX) : Math.abs(connectsArr[j].pathMinX)
229225
- if (connectsArr[j].PageSourceId === connectsArr[j].PageTargetId) {
229226
- connector = ['Flowchart', {
229227
- stub: [50, 50],
229228
- gap: 3,
229229
- cornerRadius: 5,
229230
- alwaysRespectStubs: false
229231
- }];
229176
+ jquery_default()('.process').removeClass('seled');
229177
+ jquery_default()('.process').each(function (index, elem) {
229178
+ nodeIdArr.push(jquery_default()(elem).attr('id'));
229179
+ nodeEvents(jquery_default()(elem).attr('id'), _this3.wflow);
229180
+ if (jquery_default()(elem).hasClass('ptjd')) {
229181
+ jquery_default()(elem).find('img').attr('src', _this3.ptjd);
229182
+ } else if (jquery_default()(elem).hasClass('jzjd')) {
229183
+ jquery_default()(elem).find('img').attr('src', _this3.jzjd);
229184
+ } else if (jquery_default()(elem).hasClass('drbx')) {
229185
+ jquery_default()(elem).find('img').attr('src', _this3.drbx);
229186
+ } else if (jquery_default()(elem).hasClass('drcx')) {
229187
+ jquery_default()(elem).find('img').attr('src', _this3.drcx);
229188
+ } else if (jquery_default()(elem).hasClass('hqjd')) {
229189
+ jquery_default()(elem).find('img').attr('src', _this3.hqjd);
229190
+ } else if (jquery_default()(elem).hasClass('ywjd')) {
229191
+ jquery_default()(elem).find('img').attr('src', _this3.ywjd);
229192
+ } else if (jquery_default()(elem).hasClass('childWf')) {
229193
+ jquery_default()(elem).find('img').attr('src', _this3.zlx);
229194
+ }
229195
+ });
229196
+ for (var u = 0; u < nodeIdArr.length; u++) {
229197
+ if (jquery_default()('#' + nodeIdArr[u]).hasClass('start')) {
229198
+ Centervue_type_script_lang_js_jsPlumb.addEndpoint(nodeIdArr[u], {
229199
+ anchors: [0.5, 1, 0, 1]
229200
+ }, hollowCircle);
229201
+ model.start++;
229232
229202
  } else {
229233
- if (connectsArr[j].firstEndpoints[1] === 0 && connectsArr[j].secondEndpoints[1] === 1 || connectsArr[j].firstEndpoints[1] === 1 && connectsArr[j].secondEndpoints[1] === 0) {
229234
- topY = connectsArr[j].topY;
229203
+ Centervue_type_script_lang_js_jsPlumb.addEndpoint(nodeIdArr[u], {
229204
+ anchors: [1, 0.5, 1, 0]
229205
+ }, hollowCircle);
229206
+ Centervue_type_script_lang_js_jsPlumb.addEndpoint(nodeIdArr[u], {
229207
+ anchors: [0, 0.5, -1, 0]
229208
+ }, hollowCircle);
229209
+ Centervue_type_script_lang_js_jsPlumb.addEndpoint(nodeIdArr[u], {
229210
+ anchors: [0.5, 0, 0, -1]
229211
+ }, hollowCircle);
229212
+ Centervue_type_script_lang_js_jsPlumb.addEndpoint(nodeIdArr[u], {
229213
+ anchors: [0.5, 1, 0, 1]
229214
+ }, hollowCircle);
229215
+ }
229216
+ }
229217
+ // 划线
229218
+ for (var j = 0; j < connectsArr.length; j++) {
229219
+ // debugger
229220
+ labelText = connectsArr[j].label;
229221
+ var anchor = [connectsArr[j].firstEndpoints, connectsArr[j].secondEndpoints];
229222
+ var lineDistance = 0;
229223
+ var topY = 0;
229224
+ var connector = void 0;
229225
+ // type,pathMaxX
229226
+ if (connectsArr[j].type === 'Straight') {
229227
+ connector = ['Straight', {
229228
+ stub: [0, 0]
229229
+ }];
229230
+ } else if (connectsArr[j].type === 'Flowchart') {
229231
+ // lineDistance = Math.abs(connectsArr[j].pathMaxX) >= Math.abs(connectsArr[j].pathMinX) ? Math.abs(connectsArr[j].pathMaxX) : Math.abs(connectsArr[j].pathMinX)
229232
+ if (connectsArr[j].PageSourceId === connectsArr[j].PageTargetId) {
229235
229233
  connector = ['Flowchart', {
229236
- stub: [0, 0],
229234
+ stub: [50, 50],
229237
229235
  gap: 3,
229238
229236
  cornerRadius: 5,
229239
- alwaysRespectStubs: true,
229240
- midpoint: topY
229237
+ alwaysRespectStubs: false
229241
229238
  }];
229242
229239
  } else {
229243
- if (Math.abs(connectsArr[j].pathMaxX) >= Math.abs(connectsArr[j].pathMinX)) {
229244
- if (connectsArr[j].type !== 'Flowchart') {
229245
- lineDistance = 0;
229246
- } else {
229247
- if (connectsArr[j].firstEndpoints.x === connectsArr[j].secondEndpoints.x) {
229248
- if (connectsArr[j].pathMaxX >= 0) {
229249
- lineDistance = Math.abs(connectsArr[j].pathMinX); // 自动计算
229240
+ if (connectsArr[j].firstEndpoints[1] === 0 && connectsArr[j].secondEndpoints[1] === 1 || connectsArr[j].firstEndpoints[1] === 1 && connectsArr[j].secondEndpoints[1] === 0) {
229241
+ topY = connectsArr[j].topY;
229242
+ connector = ['Flowchart', {
229243
+ stub: [0, 0],
229244
+ gap: 3,
229245
+ cornerRadius: 5,
229246
+ alwaysRespectStubs: true,
229247
+ midpoint: topY
229248
+ }];
229249
+ } else {
229250
+ if (Math.abs(connectsArr[j].pathMaxX) >= Math.abs(connectsArr[j].pathMinX)) {
229251
+ if (connectsArr[j].type !== 'Flowchart') {
229252
+ lineDistance = 0;
229253
+ } else {
229254
+ if (connectsArr[j].firstEndpoints.x === connectsArr[j].secondEndpoints.x) {
229255
+ if (connectsArr[j].pathMaxX >= 0) {
229256
+ lineDistance = Math.abs(connectsArr[j].pathMinX); // 自动计算
229257
+ } else {
229258
+ lineDistance = Math.abs(connectsArr[j].pathMaxX); // 自动计算
229259
+ }
229260
+
229261
+ // lineDistance = Math.abs(connectsArr[j].pathMaxX)// 自动计算
229262
+ connector = [connectsArr[j].type, {
229263
+ stub: [lineDistance, 20],
229264
+ gap: 3,
229265
+ cornerRadius: 5,
229266
+ alwaysRespectStubs: true
229267
+ }];
229268
+ } else if (connectsArr[j].PageSourceId === connectsArr[j].PageTargetId) {
229269
+ lineDistance = 10; // 暂时写死,研究上下拖拽时再计算
229270
+ connector = [connectsArr[j].type, {
229271
+ stub: [lineDistance, 20],
229272
+ gap: 3,
229273
+ cornerRadius: 5,
229274
+ alwaysRespectStubs: true
229275
+ }];
229250
229276
  } else {
229251
- lineDistance = Math.abs(connectsArr[j].pathMaxX); // 自动计算
229277
+ lineDistance = 0; // 防止其他折线解析初始值错误
229278
+ connector = [connectsArr[j].type, {
229279
+ stub: [lineDistance, 20],
229280
+ gap: 3,
229281
+ cornerRadius: 5,
229282
+ alwaysRespectStubs: true
229283
+ }];
229252
229284
  }
229253
-
229254
- // lineDistance = Math.abs(connectsArr[j].pathMaxX)// 自动计算
229255
- connector = [connectsArr[j].type, {
229256
- stub: [lineDistance, 20],
229257
- gap: 3,
229258
- cornerRadius: 5,
229259
- alwaysRespectStubs: true
229260
- }];
229261
- } else if (connectsArr[j].PageSourceId === connectsArr[j].PageTargetId) {
229262
- lineDistance = 10; // 暂时写死,研究上下拖拽时再计算
229263
- connector = [connectsArr[j].type, {
229264
- stub: [lineDistance, 20],
229265
- gap: 3,
229266
- cornerRadius: 5,
229267
- alwaysRespectStubs: true
229268
- }];
229269
- } else {
229270
- lineDistance = 0; // 防止其他折线解析初始值错误
229271
- connector = [connectsArr[j].type, {
229272
- stub: [lineDistance, 20],
229273
- gap: 3,
229274
- cornerRadius: 5,
229275
- alwaysRespectStubs: true
229276
- }];
229277
229285
  }
229286
+ } else {
229287
+ lineDistance = Math.abs(connectsArr[j].pathMinX);
229288
+ connector = [connectsArr[j].type, {
229289
+ stub: [lineDistance, 10],
229290
+ gap: 3,
229291
+ cornerRadius: 5,
229292
+ alwaysRespectStubs: true
229293
+ }];
229278
229294
  }
229279
- } else {
229280
- lineDistance = Math.abs(connectsArr[j].pathMinX);
229295
+ }
229296
+ if (connectsArr[j].firstEndpoints[1] === 0 && connectsArr[j].secondEndpoints[1] === 0 || connectsArr[j].firstEndpoints[1] === 1 && connectsArr[j].secondEndpoints[1] === 1) {
229297
+ console.log(connectsArr[j]);
229281
229298
  connector = [connectsArr[j].type, {
229282
- stub: [lineDistance, 10],
229299
+ stub: [50, 50],
229283
229300
  gap: 3,
229284
229301
  cornerRadius: 5,
229285
229302
  alwaysRespectStubs: true
229286
229303
  }];
229287
229304
  }
229288
229305
  }
229289
- if (connectsArr[j].firstEndpoints[1] === 0 && connectsArr[j].secondEndpoints[1] === 0 || connectsArr[j].firstEndpoints[1] === 1 && connectsArr[j].secondEndpoints[1] === 1) {
229290
- console.log(connectsArr[j]);
229291
- connector = [connectsArr[j].type, {
229292
- stub: [50, 50],
229293
- gap: 3,
229294
- cornerRadius: 5,
229295
- alwaysRespectStubs: true
229296
- }];
229297
- }
229306
+ } else if (connectsArr[j].type === 'Bezier') {
229307
+ connector = ['Bezier', {
229308
+ stub: [0, 0]
229309
+ }];
229310
+ }
229311
+ var a = Centervue_type_script_lang_js_jsPlumb.connect({
229312
+ source: connectsArr[j].PageSourceId,
229313
+ target: connectsArr[j].PageTargetId,
229314
+ anchors: anchor,
229315
+ editable: true,
229316
+ paintStyle: {
229317
+ strokeStyle: '#438eb9',
229318
+ fillStyle: '#438eb9',
229319
+ radius: 5,
229320
+ lineWidth: 2
229321
+ },
229322
+ parameters: {
229323
+ pathId: connectsArr[j].ConnectionId
229324
+ },
229325
+ endpointStyle: {
229326
+ fill: 'lightgray',
229327
+ outlineStroke: 'darkgray',
229328
+ outlineWidth: 2
229329
+ },
229330
+ connector: connector,
229331
+ overlays: [['Arrow', {
229332
+ width: 10,
229333
+ length: 10,
229334
+ location: 1
229335
+ }]],
229336
+ endpoint: ['Dot', {
229337
+ radius: 5
229338
+ }],
229339
+ cssClass: 'line_path'
229340
+ });
229341
+ try {
229342
+ a.setLabel({
229343
+ label: labelText,
229344
+ cssClass: 'line_text'
229345
+ });
229346
+ a = null;
229347
+ } catch (e) {
229348
+ console.log(e);
229298
229349
  }
229299
- } else if (connectsArr[j].type === 'Bezier') {
229300
- connector = ['Bezier', {
229301
- stub: [0, 0]
229302
- }];
229303
229350
  }
229304
- var a = Centervue_type_script_lang_js_jsPlumb.connect({
229305
- source: connectsArr[j].PageSourceId,
229306
- target: connectsArr[j].PageTargetId,
229307
- anchors: anchor,
229308
- editable: true,
229309
- paintStyle: {
229310
- strokeStyle: '#438eb9',
229311
- fillStyle: '#438eb9',
229312
- radius: 5,
229313
- lineWidth: 2
229314
- },
229315
- parameters: {
229316
- pathId: connectsArr[j].ConnectionId
229351
+ // 选择加载的node拖放,支持单个、多个
229352
+ jquery_default()('.right-form').draggable({
229353
+ containment: '#center'
229354
+ });
229355
+ jquery_default()('.process').draggable({
229356
+ containment: '#center'
229357
+ });
229358
+ jquery_default()('.process').draggable({
229359
+ distance: 20
229360
+ });
229361
+ jquery_default()('.process').draggable({
229362
+ start: function start() {
229363
+ startMove();
229364
+ Centervue_type_script_lang_js_jsPlumb.repaintEverything();
229317
229365
  },
229318
- endpointStyle: {
229319
- fill: 'lightgray',
229320
- outlineStroke: 'darkgray',
229321
- outlineWidth: 2
229366
+ drag: function drag(event, ui) {
229367
+ var uiid = event.target.id;
229368
+ MoveSelectDiv(event, ui, uiid);
229369
+ _this3.isDomChange = true; // 如果dom移动
229370
+ Centervue_type_script_lang_js_jsPlumb.repaintEverything();
229322
229371
  },
229323
- connector: connector,
229324
- overlays: [['Arrow', {
229325
- width: 10,
229326
- length: 10,
229327
- location: 1
229328
- }]],
229329
- endpoint: ['Dot', {
229330
- radius: 5
229331
- }],
229332
- cssClass: 'line_path'
229372
+ stop: function stop() {
229373
+ Centervue_type_script_lang_js_jsPlumb.repaintEverything();
229374
+ }
229333
229375
  });
229334
- try {
229335
- a.setLabel({
229336
- label: labelText,
229337
- cssClass: 'line_text'
229338
- });
229339
- a = null;
229340
- } catch (e) {
229341
- console.log(e);
229342
- }
229343
- }
229344
- // 选择加载的node拖放,支持单个、多个
229345
- jquery_default()('.right-form').draggable({
229346
- containment: '#center'
229347
- });
229348
- jquery_default()('.process').draggable({
229349
- containment: '#center'
229350
- });
229351
- jquery_default()('.process').draggable({
229352
- distance: 20
229353
- });
229354
- jquery_default()('.process').draggable({
229355
- start: function start() {
229356
- startMove();
229357
- Centervue_type_script_lang_js_jsPlumb.repaintEverything();
229358
- },
229359
- drag: function drag(event, ui) {
229360
- var uiid = event.target.id;
229361
- MoveSelectDiv(event, ui, uiid);
229362
- _this2.isDomChange = true; // 如果dom移动
229363
- Centervue_type_script_lang_js_jsPlumb.repaintEverything();
229364
- },
229365
- stop: function stop() {
229366
- Centervue_type_script_lang_js_jsPlumb.repaintEverything();
229367
- }
229368
- });
229369
- _this2.dataStatus = false;
229370
-
229371
- // 环节点击动态绑定
229372
- // nodeClick();
229373
- jquery_default()('.process').bind('click', function (el) {
229374
- jquery_default()('.process').removeClass('seled');
229375
- jquery_default()(el.currentTarget).addClass('seled');
229376
- _this2.getHistroyNodes();
229377
- var curId = jquery_default()(el.currentTarget).attr('id');
229378
- for (var _j = 0; _j < _this2.wflow.nodes.length; _j++) {
229379
- if (curId === _this2.wflow.nodes[_j].id) {
229380
- _this2.curNode = _this2.wflow.nodes[_j];
229381
- jquery_default()(el.currentTarget).attr('id', _this2.wflow.nodes[_j].id);
229382
- break;
229376
+ _this3.dataStatus = false;
229377
+
229378
+ // 环节点击动态绑定
229379
+ // nodeClick();
229380
+ jquery_default()('.process').bind('click', function (el) {
229381
+ jquery_default()('.process').removeClass('seled');
229382
+ jquery_default()(el.currentTarget).addClass('seled');
229383
+ _this3.getHistroyNodes();
229384
+ var curId = jquery_default()(el.currentTarget).attr('id');
229385
+ for (var _j = 0; _j < _this3.wflow.nodes.length; _j++) {
229386
+ if (curId === _this3.wflow.nodes[_j].id) {
229387
+ _this3.curNode = _this3.wflow.nodes[_j];
229388
+ jquery_default()(el.currentTarget).attr('id', _this3.wflow.nodes[_j].id);
229389
+ break;
229390
+ }
229383
229391
  }
229384
- }
229385
- _this2.curNodeOperationArr = [];
229386
- // console.log(this.wflow)
229387
- // for (let t = 0; t < this.wflow.operations.length; t++) {
229388
- // if (this.wflow.operations[t].nodeId === curId) {
229389
- // this.curNodeOperationArr.push(this.wflow.operations[t])
229390
- // }
229391
- // }
229392
+ _this3.curNodeOperationArr = [];
229393
+ // console.log(this.wflow)
229394
+ // for (let t = 0; t < this.wflow.operations.length; t++) {
229395
+ // if (this.wflow.operations[t].nodeId === curId) {
229396
+ // this.curNodeOperationArr.push(this.wflow.operations[t])
229397
+ // }
229398
+ // }
229392
229399
 
229393
- // 获取环节指定机构、指定群组、指定岗位、指定处理人
229394
- // this.getNodeSpecialData(curId)
229400
+ // 获取环节指定机构、指定群组、指定岗位、指定处理人
229401
+ // this.getNodeSpecialData(curId)
229395
229402
 
229396
- // 获取需要等待的环节
229397
- _this2.getWaitNode();
229398
- _this2.emitData();
229399
- // $scope.$apply()
229403
+ // 获取需要等待的环节
229404
+ _this3.getWaitNode();
229405
+ _this3.emitData();
229406
+ // $scope.$apply()
229407
+ });
229408
+ // 双击给该元素动态添加锚点
229409
+ _this3.AddAnchor();
229410
+ _this3.oldWflow = JSON.parse(JSON.stringify(_this3.wflow));
229411
+ }, function (error) {
229412
+ _this3.$message.error(error);
229400
229413
  });
229401
- // 双击给该元素动态添加锚点
229402
- _this2.AddAnchor();
229403
- _this2.oldWflow = JSON.parse(JSON.stringify(_this2.wflow));
229404
- }, function (error) {
229405
- _this2.$message.error(error);
229406
- });
229407
- } else {
229408
- // 新增流程配置
229409
- // this.process.createTim = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
229410
- // this.process.creator = this.loginUser.personAccount
229411
- // this.$set(this.process, 'orgName', this.loginUser.orgName)
229412
- // this.$set(this.process, 'orgCode', this.loginUser.orgCode)
229413
- this.$http({
229414
- method: 'POST',
229415
- contentType: 'application/x-www-form-urlencoded',
229416
- url: '/voice/scene/addNew'
229417
- }).then(function (res) {
229418
- if (res.code === 'success') {
229419
- console.log(res);
229420
- _this2.process = res.body.vo.scene;
229421
- _this2.process.createName = _this2.loginUser.personAccount;
229422
- _this2.emitData();
229423
- }
229424
- });
229425
- }
229426
- /** *************************************路径数据******************************************/
229427
- // const a = null
229428
- var clickEndpoints = null; // 用于储存路径的目标端点
229429
- var isClickPath = false;
229430
- // 1路径创建
229431
- Centervue_type_script_lang_js_jsPlumb.bind('connection', function (info) {
229432
- if (!jquery_default()(info.source).hasClass('dfzjd')) {
229433
- info.connection.setHoverPaintStyle({
229434
- stroke: 'red'
229414
+ } else {
229415
+ // 新增流程配置
229416
+ // this.process.createTim = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
229417
+ // this.process.creator = this.loginUser.personAccount
229418
+ // this.$set(this.process, 'orgName', this.loginUser.orgName)
229419
+ // this.$set(this.process, 'orgCode', this.loginUser.orgCode)
229420
+ this.$http({
229421
+ method: 'POST',
229422
+ contentType: 'application/x-www-form-urlencoded',
229423
+ url: '/voice/scene/addNew'
229424
+ }).then(function (res) {
229425
+ if (res.code === 'success') {
229426
+ console.log(res);
229427
+ _this3.process = res.body.vo.scene;
229428
+ _this3.process.createName = _this3.loginUser.personAccount;
229429
+ _this3.emitData();
229430
+ }
229435
229431
  });
229436
229432
  }
229437
- info.connection.setPaintStyle({
229438
- stroke: '#438eb9',
229439
- fillStyle: '#438eb9',
229440
- radius: 5
229441
- });
229442
- _this2.dragPath(info);
229443
- // 用于比较数据是否改变
229444
- _this2.oldWflow = JSON.parse(JSON.stringify(_this2.wflow));
229445
- _this2.ComparePath();
229446
- _this2.emitData();
229447
- return false;
229448
- });
229449
- Centervue_type_script_lang_js_jsPlumb.bind('mousedown', function (connection, originalEvent) {
229450
- var thisConnect = {};
229451
- var len = _this2.connectsArr.length;
229452
- for (var i = 0; i < len; i++) {
229453
- if (connection.id === _this2.connectsArr[i].ConnectionId) {
229454
- thisConnect = _this2.connectsArr[i];
229455
- break;
229433
+ /** *************************************路径数据******************************************/
229434
+ // const a = null
229435
+ var clickEndpoints = null; // 用于储存路径的目标端点
229436
+ var isClickPath = false;
229437
+ // 1路径创建
229438
+ Centervue_type_script_lang_js_jsPlumb.bind('connection', function (info) {
229439
+ if (!jquery_default()(info.source).hasClass('dfzjd')) {
229440
+ info.connection.setHoverPaintStyle({
229441
+ stroke: 'red'
229442
+ });
229456
229443
  }
229457
- }
229458
- // 1储存路径目标端点
229459
- clickEndpoints = connection.endpoints[1];
229460
- console.log;
229461
- // 2设置下一端点可分离
229462
- clickEndpoints._jsPlumb.maxConnections = 1;
229463
- _this2.clickPath(connection); //, 此事件会跟click事件冲突,可以把事件函数放在这里执行
229464
- // 设置路径颜色
229465
- _this2.dragLineObj.init(connection, thisConnect);
229466
- if (!jquery_default()(connection.source).hasClass('dfzjd')) {
229467
- connection.setPaintStyle({
229468
- stroke: 'red'
229444
+ info.connection.setPaintStyle({
229445
+ stroke: '#438eb9',
229446
+ fillStyle: '#438eb9',
229447
+ radius: 5
229469
229448
  });
229470
- }
229471
- var isPathFieldValue = true;
229472
- var isAddPathFieldValue = true;
229473
- var isJobPathFieldValue = true;
229474
- if (!_this2.curPath.multiLevelPathFieldValue) {
229475
- _this2.curPath.multiLevelPathFieldValue = {};
229476
- }
229477
- for (var _i = 0; _i < _this2.wflow.pathFieldValues.length; _i++) {
229478
- if (_this2.wflow.pathFieldValues[_i].pathId === _this2.curPath.id) {
229479
- if (_this2.wflow.pathFieldValues[_i].valueType === 0) {
229480
- _this2.curPath.multiLevelPathFieldValue[_this2.wflow.pathFieldValues[_i].value] = true;
229481
- }
229482
- if (_this2.wflow.pathFieldValues[_i].valueType === 1) {
229483
- _this2.pathFieldValue = _this2.wflow.pathFieldValues[_i];
229484
- isPathFieldValue = false;
229485
- } else if (_this2.wflow.pathFieldValues[_i].valueType === 2) {
229486
- _this2.addPathFieldValue = _this2.wflow.pathFieldValues[_i];
229487
- isAddPathFieldValue = false;
229488
- } else if (_this2.wflow.pathFieldValues[_i].valueType === 3) {
229489
- _this2.jobPathFieldValue = _this2.wflow.pathFieldValues[_i];
229490
- isJobPathFieldValue = false;
229491
- }
229492
- } else {
229493
- if (isPathFieldValue) {
229494
- _this2.pathFieldValue = {};
229495
- }
229496
- if (isAddPathFieldValue) {
229497
- _this2.addPathFieldValue = {};
229498
- }
229499
- if (isJobPathFieldValue) {
229500
- _this2.jobPathFieldValue = {};
229449
+ _this3.dragPath(info);
229450
+ // 用于比较数据是否改变
229451
+ _this3.oldWflow = JSON.parse(JSON.stringify(_this3.wflow));
229452
+ _this3.ComparePath();
229453
+ _this3.emitData();
229454
+ return false;
229455
+ });
229456
+ Centervue_type_script_lang_js_jsPlumb.bind('mousedown', function (connection, originalEvent) {
229457
+ var thisConnect = {};
229458
+ var len = _this3.connectsArr.length;
229459
+ for (var i = 0; i < len; i++) {
229460
+ if (connection.id === _this3.connectsArr[i].ConnectionId) {
229461
+ thisConnect = _this3.connectsArr[i];
229462
+ break;
229501
229463
  }
229502
229464
  }
229503
- }
229504
- _this2.emitData();
229505
- // $scope.$apply();
229506
- return false;
229507
- });
229508
- // 2路径点击
229509
- Centervue_type_script_lang_js_jsPlumb.bind('click', function (conn, originalEvent) {
229510
- console.log('路径点击');
229511
- if (jquery_default()('.panel_path').css('display') !== 'none') {
229512
- if (!jquery_default()(conn.source).hasClass('dfzjd')) {
229513
- conn.setPaintStyle({
229465
+ // 1储存路径目标端点
229466
+ clickEndpoints = connection.endpoints[1];
229467
+ console.log;
229468
+ // 2设置下一端点可分离
229469
+ clickEndpoints._jsPlumb.maxConnections = 1;
229470
+ _this3.clickPath(connection); //, 此事件会跟click事件冲突,可以把事件函数放在这里执行
229471
+ // 设置路径颜色
229472
+ _this3.dragLineObj.init(connection, thisConnect);
229473
+ if (!jquery_default()(connection.source).hasClass('dfzjd')) {
229474
+ connection.setPaintStyle({
229514
229475
  stroke: 'red'
229515
229476
  });
229516
229477
  }
229517
- }
229518
- jquery_default()('.process').removeClass('seled');
229519
- isClickPath = true;
229520
- return false;
229521
- });
229478
+ var isPathFieldValue = true;
229479
+ var isAddPathFieldValue = true;
229480
+ var isJobPathFieldValue = true;
229481
+ if (!_this3.curPath.multiLevelPathFieldValue) {
229482
+ _this3.curPath.multiLevelPathFieldValue = {};
229483
+ }
229484
+ for (var _i = 0; _i < _this3.wflow.pathFieldValues.length; _i++) {
229485
+ if (_this3.wflow.pathFieldValues[_i].pathId === _this3.curPath.id) {
229486
+ if (_this3.wflow.pathFieldValues[_i].valueType === 0) {
229487
+ _this3.curPath.multiLevelPathFieldValue[_this3.wflow.pathFieldValues[_i].value] = true;
229488
+ }
229489
+ if (_this3.wflow.pathFieldValues[_i].valueType === 1) {
229490
+ _this3.pathFieldValue = _this3.wflow.pathFieldValues[_i];
229491
+ isPathFieldValue = false;
229492
+ } else if (_this3.wflow.pathFieldValues[_i].valueType === 2) {
229493
+ _this3.addPathFieldValue = _this3.wflow.pathFieldValues[_i];
229494
+ isAddPathFieldValue = false;
229495
+ } else if (_this3.wflow.pathFieldValues[_i].valueType === 3) {
229496
+ _this3.jobPathFieldValue = _this3.wflow.pathFieldValues[_i];
229497
+ isJobPathFieldValue = false;
229498
+ }
229499
+ } else {
229500
+ if (isPathFieldValue) {
229501
+ _this3.pathFieldValue = {};
229502
+ }
229503
+ if (isAddPathFieldValue) {
229504
+ _this3.addPathFieldValue = {};
229505
+ }
229506
+ if (isJobPathFieldValue) {
229507
+ _this3.jobPathFieldValue = {};
229508
+ }
229509
+ }
229510
+ }
229511
+ _this3.emitData();
229512
+ // $scope.$apply();
229513
+ return false;
229514
+ });
229515
+ // 2路径点击
229516
+ Centervue_type_script_lang_js_jsPlumb.bind('click', function (conn, originalEvent) {
229517
+ console.log('路径点击');
229518
+ if (jquery_default()('.panel_path').css('display') !== 'none') {
229519
+ if (!jquery_default()(conn.source).hasClass('dfzjd')) {
229520
+ conn.setPaintStyle({
229521
+ stroke: 'red'
229522
+ });
229523
+ }
229524
+ }
229525
+ jquery_default()('.process').removeClass('seled');
229526
+ isClickPath = true;
229527
+ return false;
229528
+ });
229522
229529
 
229523
- // 3路径删除
229524
- // 3.1自定义右键菜单
229525
- jquery_default()(document).bind('contextmenu', function () {
229526
- return false;
229527
- });
229528
- jquery_default()(document).click(function () {
229529
- jquery_default()('#centextMenu').hide();
229530
- });
229530
+ // 3路径删除
229531
+ // 3.1自定义右键菜单
229532
+ jquery_default()(document).bind('contextmenu', function () {
229533
+ return false;
229534
+ });
229535
+ jquery_default()(document).click(function () {
229536
+ jquery_default()('#centextMenu').hide();
229537
+ });
229531
229538
 
229532
- // 处理兼容点击连线状态
229539
+ // 处理兼容点击连线状态
229533
229540
 
229534
- jquery_default()('#center').click(function () {
229535
- var aConn = Centervue_type_script_lang_js_jsPlumb.getConnections(); // 获取容器所有的连接线
229536
- for (var i = 0; i < aConn.length; i++) {
229537
- aConn[i].setPaintStyle({
229538
- stroke: '#438eb9',
229539
- fillStyle: '#438eb9',
229540
- radius: 5
229541
- });
229542
- }
229543
- // 处理端点最大连接数
229544
- if (clickEndpoints) {
229545
- if (isClickPath && clickEndpoints._jsPlumb) {
229546
- clickEndpoints._jsPlumb.maxConnections = -1;
229547
- // console.log('连接多个')
229548
- }
229549
- isClickPath = false;
229550
- }
229551
- });
229552
- Centervue_type_script_lang_js_jsPlumb.bind('contextmenu', function (conn, originalEvent) {
229553
- // console.log(conn.id)
229554
- // for (let i = 0; i < this.wflow.paths.length; i++) {
229555
- // console.log(this.wflow.paths[i].id)
229556
- // }
229557
- // onst centerLeft = $('#center').css('marginLeft')
229558
- // const leftVal = parseInt(centerLeft.slice(0, centerLeft.indexOf('px')))
229559
- // const topVal = $('#head').outerHeight()
229560
- if (jquery_default()('#centextMenu').length > 0) {
229561
- jquery_default()('#centextMenu').remove();
229562
- }
229563
- var centextMenu = '<div id="centextMenu" style=" top:' + originalEvent.pageY + 'px;left:' + originalEvent.pageX + 'px;">' + '<a class="delete_line" href="javascript:;">删除连接线</a><a class="change_line_workline" href="javascript:;">转变为折线</a>' + '<a class="change_line_stright" href="javascript:;">转变为直线</a><a class="change_line_Bezier" href="javascript:;">转变为曲线</a></div>';
229564
- jquery_default()('#center').append(centextMenu);
229565
- jquery_default()('.delete_line').bind('click', function () {
229566
- // 删除连线时,获取连线的id,循环所有nextNodes的pathId,如果是删除的连线id,删除nextNode
229567
- var deleteConnId = conn.id;
229568
- console.log(conn.sourceId);
229569
- for (var i = 0; i < _this2.wflow.nextNodes.length; i++) {
229570
- if (_this2.wflow.nextNodes[i].pathId === deleteConnId || _this2.wflow.nextNodes[i].nextNodeId === conn.targetId) {
229571
- _this2.wflow.nextNodes.splice(i, 1);
229572
- }
229573
- }
229574
- for (var _i2 = 0; _i2 < _this2.wflow.pathFieldValues.length; _i2++) {
229575
- if (_this2.wflow.pathFieldValues[_i2].pathId === deleteConnId) {
229576
- _this2.wflow.pathFieldValues.splice(_i2, 1);
229577
- }
229578
- }
229579
- for (var _i3 = 0; _i3 < _this2.wflow.paths.length; _i3++) {
229580
- console.log(_this2.wflow.paths[_i3].id);
229581
- if (conn.id === _this2.wflow.paths[_i3].id) {
229582
- _this2.wflow.paths.splice(_i3, 1);
229583
- }
229584
- }
229585
- Centervue_type_script_lang_js_jsPlumb.deleteConnection(conn);
229586
- // 删除wflow.paths中的path
229587
- });
229588
- // 改变为直线
229589
- jquery_default()('.change_line_stright').bind('click', function () {
229590
- // 删除连线时,获取连线的id,循环所有nextNodes的pathId,如果是删除的连线id,删除nextNode
229591
- if (conn.type === 'Straight') return;
229592
- console.log(_this2.getWflow, _this2.getWflow.length);
229593
- var result = _this2.getWflow.some(function (item) {
229594
- return conn.id === item;
229595
- });
229596
- if (!result) {
229597
- _this2.$message({
229598
- type: 'warning',
229599
- message: '请先保存后再进行此操作'
229541
+ jquery_default()('#center').click(function () {
229542
+ var aConn = Centervue_type_script_lang_js_jsPlumb.getConnections(); // 获取容器所有的连接线
229543
+ for (var i = 0; i < aConn.length; i++) {
229544
+ aConn[i].setPaintStyle({
229545
+ stroke: '#438eb9',
229546
+ fillStyle: '#438eb9',
229547
+ radius: 5
229600
229548
  });
229601
- return;
229602
- } else {
229603
- _this2.dataStatus = true;
229604
- // const fristrow = [conn.endpoints[0].anchor.x, conn.endpoints[0].anchor.y, conn.endpoints[0].anchor.orientation[0], conn.endpoints[0].anchor.orientation[1]]
229605
- // const secrow = [conn.endpoints[1].anchor.x, conn.endpoints[1].anchor.y, conn.endpoints[1].anchor.orientation[0], conn.endpoints[1].anchor.orientation[1]]
229606
- // const anchor = [fristrow, secrow]
229549
+ }
229550
+ // 处理端点最大连接数
229551
+ if (clickEndpoints) {
229552
+ if (isClickPath && clickEndpoints._jsPlumb) {
229553
+ clickEndpoints._jsPlumb.maxConnections = -1;
229554
+ // console.log('连接多个')
229555
+ }
229556
+ isClickPath = false;
229557
+ }
229558
+ });
229559
+ Centervue_type_script_lang_js_jsPlumb.bind('contextmenu', function (conn, originalEvent) {
229560
+ // console.log(conn.id)
229561
+ // for (let i = 0; i < this.wflow.paths.length; i++) {
229562
+ // console.log(this.wflow.paths[i].id)
229563
+ // }
229564
+ // onst centerLeft = $('#center').css('marginLeft')
229565
+ // const leftVal = parseInt(centerLeft.slice(0, centerLeft.indexOf('px')))
229566
+ // const topVal = $('#head').outerHeight()
229567
+ if (jquery_default()('#centextMenu').length > 0) {
229568
+ jquery_default()('#centextMenu').remove();
229569
+ }
229570
+ var centextMenu = '<div id="centextMenu" style=" top:' + originalEvent.pageY + 'px;left:' + originalEvent.pageX + 'px;">' + '<a class="delete_line" href="javascript:;">删除连接线</a><a class="change_line_workline" href="javascript:;">转变为折线</a>' + '<a class="change_line_stright" href="javascript:;">转变为直线</a><a class="change_line_Bezier" href="javascript:;">转变为曲线</a></div>';
229571
+ jquery_default()('#center').append(centextMenu);
229572
+ jquery_default()('.delete_line').bind('click', function () {
229573
+ // 删除连线时,获取连线的id,循环所有nextNodes的pathId,如果是删除的连线id,删除nextNode
229607
229574
  var deleteConnId = conn.id;
229608
- for (var i = 0; i < _this2.wflow.nextNodes.length; i++) {
229609
- if (_this2.wflow.nextNodes[i].pathId === deleteConnId) {
229610
- _this2.wflow.nextNodes.splice(i, 1);
229575
+ console.log(conn.sourceId);
229576
+ for (var i = 0; i < _this3.wflow.nextNodes.length; i++) {
229577
+ if (_this3.wflow.nextNodes[i].pathId === deleteConnId || _this3.wflow.nextNodes[i].nextNodeId === conn.targetId) {
229578
+ _this3.wflow.nextNodes.splice(i, 1);
229579
+ }
229580
+ }
229581
+ for (var _i2 = 0; _i2 < _this3.wflow.pathFieldValues.length; _i2++) {
229582
+ if (_this3.wflow.pathFieldValues[_i2].pathId === deleteConnId) {
229583
+ _this3.wflow.pathFieldValues.splice(_i2, 1);
229611
229584
  }
229612
229585
  }
229613
- for (var _i4 = 0; _i4 < _this2.wflow.pathFieldValues.length; _i4++) {
229614
- if (_this2.wflow.pathFieldValues[_i4].pathId === deleteConnId) {
229615
- _this2.wflow.pathFieldValues.splice(_i4, 1);
229586
+ for (var _i3 = 0; _i3 < _this3.wflow.paths.length; _i3++) {
229587
+ console.log(_this3.wflow.paths[_i3].id);
229588
+ if (conn.id === _this3.wflow.paths[_i3].id) {
229589
+ _this3.wflow.paths.splice(_i3, 1);
229616
229590
  }
229617
229591
  }
229618
229592
  Centervue_type_script_lang_js_jsPlumb.deleteConnection(conn);
229619
229593
  // 删除wflow.paths中的path
229620
- for (var _i5 = 0; _i5 < _this2.connectsArr.length; _i5++) {
229621
- if (conn.id === _this2.connectsArr[_i5].ConnectionId) {
229622
- _this2.PathLabelText = _this2.connectsArr[_i5].label;
229623
- // conn.connector.type = 'Straight'
229624
- _this2.wflow.paths.splice(_i5, 1);
229625
- // console.log(this.wflow.paths)
229626
- var fristrow = _this2.connectsArr[_i5].firstEndpoints;
229627
- var secrow = _this2.connectsArr[_i5].secondEndpoints;
229628
- var anchor = [fristrow, secrow];
229629
- var a = Centervue_type_script_lang_js_jsPlumb.connect({
229630
- source: _this2.connectsArr[_i5].PageSourceId,
229631
- target: _this2.connectsArr[_i5].PageTargetId,
229632
- anchors: anchor,
229633
- editable: true,
229634
- paintStyle: {
229635
- strokeStyle: '#438eb9',
229636
- fillStyle: '#438eb9',
229637
- radius: 5,
229638
- lineWidth: 2
229639
- },
229640
- parameters: {
229641
- pathId: _this2.connectsArr[_i5].ConnectionId
229642
- },
229643
- endpointStyle: {
229644
- fill: 'lightgray',
229645
- outlineStroke: 'darkgray',
229646
- outlineWidth: 2
229647
- },
229648
- connector: ['Straight', {
229649
- stub: 0,
229650
- gap: 0
229651
- }],
229652
- overlays: [['Arrow', {
229653
- width: 10,
229654
- length: 10,
229655
- location: 1
229656
- }]],
229657
- endpoint: ['Dot', {
229658
- radius: 5
229659
- }],
229660
- cssClass: 'line_path'
229661
- });
229662
- try {
229663
- a.setLabel({
229664
- label: _this2.PathLabelText
229594
+ });
229595
+ // 改变为直线
229596
+ jquery_default()('.change_line_stright').bind('click', function () {
229597
+ // 删除连线时,获取连线的id,循环所有nextNodes的pathId,如果是删除的连线id,删除nextNode
229598
+ if (conn.type === 'Straight') return;
229599
+ console.log(_this3.getWflow, _this3.getWflow.length);
229600
+ var result = _this3.getWflow.some(function (item) {
229601
+ return conn.id === item;
229602
+ });
229603
+ if (!result) {
229604
+ _this3.$message({
229605
+ type: 'warning',
229606
+ message: '请先保存后再进行此操作'
229607
+ });
229608
+ return;
229609
+ } else {
229610
+ _this3.dataStatus = true;
229611
+ // const fristrow = [conn.endpoints[0].anchor.x, conn.endpoints[0].anchor.y, conn.endpoints[0].anchor.orientation[0], conn.endpoints[0].anchor.orientation[1]]
229612
+ // const secrow = [conn.endpoints[1].anchor.x, conn.endpoints[1].anchor.y, conn.endpoints[1].anchor.orientation[0], conn.endpoints[1].anchor.orientation[1]]
229613
+ // const anchor = [fristrow, secrow]
229614
+ var deleteConnId = conn.id;
229615
+ for (var i = 0; i < _this3.wflow.nextNodes.length; i++) {
229616
+ if (_this3.wflow.nextNodes[i].pathId === deleteConnId) {
229617
+ _this3.wflow.nextNodes.splice(i, 1);
229618
+ }
229619
+ }
229620
+ for (var _i4 = 0; _i4 < _this3.wflow.pathFieldValues.length; _i4++) {
229621
+ if (_this3.wflow.pathFieldValues[_i4].pathId === deleteConnId) {
229622
+ _this3.wflow.pathFieldValues.splice(_i4, 1);
229623
+ }
229624
+ }
229625
+ Centervue_type_script_lang_js_jsPlumb.deleteConnection(conn);
229626
+ // 删除wflow.paths中的path
229627
+ for (var _i5 = 0; _i5 < _this3.connectsArr.length; _i5++) {
229628
+ if (conn.id === _this3.connectsArr[_i5].ConnectionId) {
229629
+ _this3.PathLabelText = _this3.connectsArr[_i5].label;
229630
+ // conn.connector.type = 'Straight'
229631
+ _this3.wflow.paths.splice(_i5, 1);
229632
+ // console.log(this.wflow.paths)
229633
+ var fristrow = _this3.connectsArr[_i5].firstEndpoints;
229634
+ var secrow = _this3.connectsArr[_i5].secondEndpoints;
229635
+ var anchor = [fristrow, secrow];
229636
+ var a = Centervue_type_script_lang_js_jsPlumb.connect({
229637
+ source: _this3.connectsArr[_i5].PageSourceId,
229638
+ target: _this3.connectsArr[_i5].PageTargetId,
229639
+ anchors: anchor,
229640
+ editable: true,
229641
+ paintStyle: {
229642
+ strokeStyle: '#438eb9',
229643
+ fillStyle: '#438eb9',
229644
+ radius: 5,
229645
+ lineWidth: 2
229646
+ },
229647
+ parameters: {
229648
+ pathId: _this3.connectsArr[_i5].ConnectionId
229649
+ },
229650
+ endpointStyle: {
229651
+ fill: 'lightgray',
229652
+ outlineStroke: 'darkgray',
229653
+ outlineWidth: 2
229654
+ },
229655
+ connector: ['Straight', {
229656
+ stub: 0,
229657
+ gap: 0
229658
+ }],
229659
+ overlays: [['Arrow', {
229660
+ width: 10,
229661
+ length: 10,
229662
+ location: 1
229663
+ }]],
229664
+ endpoint: ['Dot', {
229665
+ radius: 5
229666
+ }],
229667
+ cssClass: 'line_path'
229665
229668
  });
229666
- a = null;
229667
- } catch (e) {
229668
- console.log(e);
229669
+ try {
229670
+ a.setLabel({
229671
+ label: _this3.PathLabelText
229672
+ });
229673
+ a = null;
229674
+ } catch (e) {
229675
+ console.log(e);
229676
+ }
229669
229677
  }
229670
229678
  }
229671
- }
229672
- Centervue_type_script_lang_js_jsPlumb.bind('connection', function (info) {
229673
- if (!jquery_default()(info.source).hasClass('dfzjd')) {
229674
- info.connection.setHoverPaintStyle({
229675
- stroke: 'red'
229679
+ Centervue_type_script_lang_js_jsPlumb.bind('connection', function (info) {
229680
+ if (!jquery_default()(info.source).hasClass('dfzjd')) {
229681
+ info.connection.setHoverPaintStyle({
229682
+ stroke: 'red'
229683
+ });
229684
+ }
229685
+ info.connection.setPaintStyle({
229686
+ stroke: '#438eb9',
229687
+ fillStyle: '#438eb9',
229688
+ radius: 5
229676
229689
  });
229677
- }
229678
- info.connection.setPaintStyle({
229679
- stroke: '#438eb9',
229680
- fillStyle: '#438eb9',
229681
- radius: 5
229690
+ _this3.dragPath(info);
229691
+ // 用于比较数据是否改变
229692
+ _this3.oldWflow = JSON.parse(JSON.stringify(_this3.wflow));
229693
+ _this3.emitData();
229694
+ return false;
229682
229695
  });
229683
- _this2.dragPath(info);
229684
- // 用于比较数据是否改变
229685
- _this2.oldWflow = JSON.parse(JSON.stringify(_this2.wflow));
229686
- _this2.emitData();
229687
- return false;
229688
- });
229689
- }
229690
- });
229691
- // 改变为曲线
229692
- jquery_default()('.change_line_Bezier').bind('click', function () {
229693
- // 删除连线时,获取连线的id,循环所有nextNodes的pathId,如果是删除的连线id,删除nextNode
229694
- if (conn.type === 'Bezier') return;
229695
- var result = _this2.getWflow.some(function (item) {
229696
- return conn.id === item;
229696
+ }
229697
229697
  });
229698
- if (!result) {
229699
- _this2.$message({
229700
- type: 'warning',
229701
- message: '请先保存后再进行次操作'
229698
+ // 改变为曲线
229699
+ jquery_default()('.change_line_Bezier').bind('click', function () {
229700
+ // 删除连线时,获取连线的id,循环所有nextNodes的pathId,如果是删除的连线id,删除nextNode
229701
+ if (conn.type === 'Bezier') return;
229702
+ var result = _this3.getWflow.some(function (item) {
229703
+ return conn.id === item;
229702
229704
  });
229703
- return;
229704
- } else {
229705
- _this2.dataStatus = true;
229706
- var fristrow = [conn.endpoints[0].anchor.x, conn.endpoints[0].anchor.y, conn.endpoints[0].anchor.orientation[0], conn.endpoints[0].anchor.orientation[1]];
229707
- var secrow = [conn.endpoints[1].anchor.x, conn.endpoints[1].anchor.y, conn.endpoints[1].anchor.orientation[0], conn.endpoints[1].anchor.orientation[1]];
229708
- var anchor = [fristrow, secrow];
229709
- console.log(anchor);
229710
- var deleteConnId = conn.id;
229711
- for (var i = 0; i < _this2.wflow.nextNodes.length; i++) {
229712
- if (_this2.wflow.nextNodes[i].pathId === deleteConnId) {
229713
- _this2.wflow.nextNodes.splice(i, 1);
229705
+ if (!result) {
229706
+ _this3.$message({
229707
+ type: 'warning',
229708
+ message: '请先保存后再进行次操作'
229709
+ });
229710
+ return;
229711
+ } else {
229712
+ _this3.dataStatus = true;
229713
+ var fristrow = [conn.endpoints[0].anchor.x, conn.endpoints[0].anchor.y, conn.endpoints[0].anchor.orientation[0], conn.endpoints[0].anchor.orientation[1]];
229714
+ var secrow = [conn.endpoints[1].anchor.x, conn.endpoints[1].anchor.y, conn.endpoints[1].anchor.orientation[0], conn.endpoints[1].anchor.orientation[1]];
229715
+ var anchor = [fristrow, secrow];
229716
+ console.log(anchor);
229717
+ var deleteConnId = conn.id;
229718
+ for (var i = 0; i < _this3.wflow.nextNodes.length; i++) {
229719
+ if (_this3.wflow.nextNodes[i].pathId === deleteConnId) {
229720
+ _this3.wflow.nextNodes.splice(i, 1);
229721
+ }
229714
229722
  }
229715
- }
229716
- for (var _i6 = 0; _i6 < _this2.wflow.pathFieldValues.length; _i6++) {
229717
- if (_this2.wflow.pathFieldValues[_i6].pathId === deleteConnId) {
229718
- _this2.wflow.pathFieldValues.splice(_i6, 1);
229723
+ for (var _i6 = 0; _i6 < _this3.wflow.pathFieldValues.length; _i6++) {
229724
+ if (_this3.wflow.pathFieldValues[_i6].pathId === deleteConnId) {
229725
+ _this3.wflow.pathFieldValues.splice(_i6, 1);
229726
+ }
229719
229727
  }
229720
- }
229721
- Centervue_type_script_lang_js_jsPlumb.deleteConnection(conn);
229722
- // 删除wflow.paths中的path
229723
- for (var _i7 = 0; _i7 < _this2.connectsArr.length; _i7++) {
229724
- if (conn.id === _this2.connectsArr[_i7].ConnectionId) {
229725
- _this2.PathLabelText = _this2.connectsArr[_i7].label;
229726
- // conn.connector.type = 'Straight'
229727
- _this2.wflow.paths.splice(_i7, 1);
229728
- var _fristrow = _this2.connectsArr[_i7].firstEndpoints;
229729
- var _secrow = _this2.connectsArr[_i7].secondEndpoints;
229730
- var _anchor = [_fristrow, _secrow];
229731
- var a = Centervue_type_script_lang_js_jsPlumb.connect({
229732
- source: _this2.connectsArr[_i7].PageSourceId,
229733
- target: _this2.connectsArr[_i7].PageTargetId,
229734
- anchors: _anchor,
229735
- editable: true,
229736
- paintStyle: {
229737
- strokeStyle: '#438eb9',
229738
- fillStyle: '#438eb9',
229739
- radius: 5,
229740
- lineWidth: 2
229741
- },
229742
- parameters: {
229743
- pathId: _this2.connectsArr[_i7].ConnectionId
229744
- },
229745
- endpointStyle: {
229746
- fill: 'lightgray',
229747
- outlineStroke: 'darkgray',
229748
- outlineWidth: 2
229749
- },
229750
- connector: ['Bezier', {
229751
- stub: 0,
229752
- gap: 0
229753
- }],
229754
- overlays: [['Arrow', {
229755
- width: 10,
229756
- length: 10,
229757
- location: 1
229758
- }]],
229759
- endpoint: ['Dot', {
229760
- radius: 5
229761
- }],
229762
- cssClass: 'line_path'
229763
- });
229764
- try {
229765
- a.setLabel({
229766
- label: _this2.PathLabelText
229728
+ Centervue_type_script_lang_js_jsPlumb.deleteConnection(conn);
229729
+ // 删除wflow.paths中的path
229730
+ for (var _i7 = 0; _i7 < _this3.connectsArr.length; _i7++) {
229731
+ if (conn.id === _this3.connectsArr[_i7].ConnectionId) {
229732
+ _this3.PathLabelText = _this3.connectsArr[_i7].label;
229733
+ // conn.connector.type = 'Straight'
229734
+ _this3.wflow.paths.splice(_i7, 1);
229735
+ var _fristrow = _this3.connectsArr[_i7].firstEndpoints;
229736
+ var _secrow = _this3.connectsArr[_i7].secondEndpoints;
229737
+ var _anchor = [_fristrow, _secrow];
229738
+ var a = Centervue_type_script_lang_js_jsPlumb.connect({
229739
+ source: _this3.connectsArr[_i7].PageSourceId,
229740
+ target: _this3.connectsArr[_i7].PageTargetId,
229741
+ anchors: _anchor,
229742
+ editable: true,
229743
+ paintStyle: {
229744
+ strokeStyle: '#438eb9',
229745
+ fillStyle: '#438eb9',
229746
+ radius: 5,
229747
+ lineWidth: 2
229748
+ },
229749
+ parameters: {
229750
+ pathId: _this3.connectsArr[_i7].ConnectionId
229751
+ },
229752
+ endpointStyle: {
229753
+ fill: 'lightgray',
229754
+ outlineStroke: 'darkgray',
229755
+ outlineWidth: 2
229756
+ },
229757
+ connector: ['Bezier', {
229758
+ stub: 0,
229759
+ gap: 0
229760
+ }],
229761
+ overlays: [['Arrow', {
229762
+ width: 10,
229763
+ length: 10,
229764
+ location: 1
229765
+ }]],
229766
+ endpoint: ['Dot', {
229767
+ radius: 5
229768
+ }],
229769
+ cssClass: 'line_path'
229767
229770
  });
229768
- a = null;
229769
- } catch (e) {
229770
- console.log(e);
229771
+ try {
229772
+ a.setLabel({
229773
+ label: _this3.PathLabelText
229774
+ });
229775
+ a = null;
229776
+ } catch (e) {
229777
+ console.log(e);
229778
+ }
229771
229779
  }
229772
229780
  }
229773
- }
229774
- Centervue_type_script_lang_js_jsPlumb.bind('connection', function (info) {
229775
- if (!jquery_default()(info.source).hasClass('dfzjd')) {
229776
- info.connection.setHoverPaintStyle({
229777
- stroke: 'red'
229781
+ Centervue_type_script_lang_js_jsPlumb.bind('connection', function (info) {
229782
+ if (!jquery_default()(info.source).hasClass('dfzjd')) {
229783
+ info.connection.setHoverPaintStyle({
229784
+ stroke: 'red'
229785
+ });
229786
+ }
229787
+ info.connection.setPaintStyle({
229788
+ stroke: '#438eb9',
229789
+ fillStyle: '#438eb9',
229790
+ radius: 5
229778
229791
  });
229779
- }
229780
- info.connection.setPaintStyle({
229781
- stroke: '#438eb9',
229782
- fillStyle: '#438eb9',
229783
- radius: 5
229792
+ _this3.dragPath(info);
229793
+ // 用于比较数据是否改变
229794
+ _this3.oldWflow = JSON.parse(JSON.stringify(_this3.wflow));
229795
+ _this3.emitData();
229796
+ return false;
229784
229797
  });
229785
- _this2.dragPath(info);
229786
- // 用于比较数据是否改变
229787
- _this2.oldWflow = JSON.parse(JSON.stringify(_this2.wflow));
229788
- _this2.emitData();
229789
- return false;
229790
- });
229791
- }
229792
- });
229793
- jquery_default()('.change_line_workline').bind('click', function () {
229794
- console.log(conn.type);
229795
- if (conn.type === 'Flowchart') return;
229796
- if (conn.type === 'Bezier') return;
229797
- var result = _this2.getWflow.some(function (item) {
229798
- return conn.id === item;
229798
+ }
229799
229799
  });
229800
- if (!result) {
229801
- _this2.$message({
229802
- type: 'warning',
229803
- message: '请先保存后再进行次操作'
229800
+ jquery_default()('.change_line_workline').bind('click', function () {
229801
+ console.log(conn.type);
229802
+ if (conn.type === 'Flowchart') return;
229803
+ if (conn.type === 'Bezier') return;
229804
+ var result = _this3.getWflow.some(function (item) {
229805
+ return conn.id === item;
229804
229806
  });
229805
- return;
229806
- } else {
229807
- _this2.dataStatus = true;
229808
- var fristrow = [conn.endpoints[0].anchor.x, conn.endpoints[0].anchor.y, conn.endpoints[0].anchor.orientation[0], conn.endpoints[0].anchor.orientation[1]];
229809
- var secrow = [conn.endpoints[1].anchor.x, conn.endpoints[1].anchor.y, conn.endpoints[1].anchor.orientation[0], conn.endpoints[1].anchor.orientation[1]];
229810
- var anchor = [fristrow, secrow];
229811
- console.log(anchor);
229812
- var deleteConnId = conn.id;
229813
- for (var i = 0; i < _this2.wflow.nextNodes.length; i++) {
229814
- if (_this2.wflow.nextNodes[i].pathId === deleteConnId) {
229815
- _this2.wflow.nextNodes.splice(i, 1);
229807
+ if (!result) {
229808
+ _this3.$message({
229809
+ type: 'warning',
229810
+ message: '请先保存后再进行次操作'
229811
+ });
229812
+ return;
229813
+ } else {
229814
+ _this3.dataStatus = true;
229815
+ var fristrow = [conn.endpoints[0].anchor.x, conn.endpoints[0].anchor.y, conn.endpoints[0].anchor.orientation[0], conn.endpoints[0].anchor.orientation[1]];
229816
+ var secrow = [conn.endpoints[1].anchor.x, conn.endpoints[1].anchor.y, conn.endpoints[1].anchor.orientation[0], conn.endpoints[1].anchor.orientation[1]];
229817
+ var anchor = [fristrow, secrow];
229818
+ console.log(anchor);
229819
+ var deleteConnId = conn.id;
229820
+ for (var i = 0; i < _this3.wflow.nextNodes.length; i++) {
229821
+ if (_this3.wflow.nextNodes[i].pathId === deleteConnId) {
229822
+ _this3.wflow.nextNodes.splice(i, 1);
229823
+ }
229816
229824
  }
229817
- }
229818
- for (var _i8 = 0; _i8 < _this2.wflow.pathFieldValues.length; _i8++) {
229819
- if (_this2.wflow.pathFieldValues[_i8].pathId === deleteConnId) {
229820
- _this2.wflow.pathFieldValues.splice(_i8, 1);
229825
+ for (var _i8 = 0; _i8 < _this3.wflow.pathFieldValues.length; _i8++) {
229826
+ if (_this3.wflow.pathFieldValues[_i8].pathId === deleteConnId) {
229827
+ _this3.wflow.pathFieldValues.splice(_i8, 1);
229828
+ }
229821
229829
  }
229822
- }
229823
- Centervue_type_script_lang_js_jsPlumb.deleteConnection(conn);
229824
- // 删除wflow.paths中的path
229825
- for (var _i9 = 0; _i9 < _this2.connectsArr.length; _i9++) {
229826
- if (conn.id === _this2.connectsArr[_i9].ConnectionId) {
229827
- _this2.PathLabelText = _this2.connectsArr[_i9].label;
229828
- // conn.connector.type = 'Straight'
229829
- _this2.wflow.paths.splice(_i9, 1);
229830
- var _fristrow2 = _this2.connectsArr[_i9].firstEndpoints;
229831
- var _secrow2 = _this2.connectsArr[_i9].secondEndpoints;
229832
- var _anchor2 = [_fristrow2, _secrow2];
229833
- var a = Centervue_type_script_lang_js_jsPlumb.connect({
229834
- source: _this2.connectsArr[_i9].PageSourceId,
229835
- target: _this2.connectsArr[_i9].PageTargetId,
229836
- anchors: _anchor2,
229837
- editable: true,
229838
- paintStyle: {
229839
- strokeStyle: '#438eb9',
229840
- fillStyle: '#438eb9',
229841
- radius: 5,
229842
- lineWidth: 2
229843
- },
229844
- parameters: {
229845
- pathId: _this2.connectsArr[_i9].ConnectionId
229846
- },
229847
- endpointStyle: {
229848
- fill: 'lightgray',
229849
- outlineStroke: 'darkgray',
229850
- outlineWidth: 2
229851
- },
229852
- connector: ['Flowchart', {
229853
- stub: [50, 50],
229854
- gap: 3,
229855
- cornerRadius: 5,
229856
- alwaysRespectStubs: false
229857
- }],
229858
- overlays: [['Arrow', {
229859
- width: 10,
229860
- length: 10,
229861
- location: 1
229862
- }]],
229863
- endpoint: ['Dot', {
229864
- radius: 5
229865
- }],
229866
- cssClass: 'line_path'
229867
- });
229868
- try {
229869
- a.setLabel({
229870
- label: _this2.PathLabelText
229830
+ Centervue_type_script_lang_js_jsPlumb.deleteConnection(conn);
229831
+ // 删除wflow.paths中的path
229832
+ for (var _i9 = 0; _i9 < _this3.connectsArr.length; _i9++) {
229833
+ if (conn.id === _this3.connectsArr[_i9].ConnectionId) {
229834
+ _this3.PathLabelText = _this3.connectsArr[_i9].label;
229835
+ // conn.connector.type = 'Straight'
229836
+ _this3.wflow.paths.splice(_i9, 1);
229837
+ var _fristrow2 = _this3.connectsArr[_i9].firstEndpoints;
229838
+ var _secrow2 = _this3.connectsArr[_i9].secondEndpoints;
229839
+ var _anchor2 = [_fristrow2, _secrow2];
229840
+ var a = Centervue_type_script_lang_js_jsPlumb.connect({
229841
+ source: _this3.connectsArr[_i9].PageSourceId,
229842
+ target: _this3.connectsArr[_i9].PageTargetId,
229843
+ anchors: _anchor2,
229844
+ editable: true,
229845
+ paintStyle: {
229846
+ strokeStyle: '#438eb9',
229847
+ fillStyle: '#438eb9',
229848
+ radius: 5,
229849
+ lineWidth: 2
229850
+ },
229851
+ parameters: {
229852
+ pathId: _this3.connectsArr[_i9].ConnectionId
229853
+ },
229854
+ endpointStyle: {
229855
+ fill: 'lightgray',
229856
+ outlineStroke: 'darkgray',
229857
+ outlineWidth: 2
229858
+ },
229859
+ connector: ['Flowchart', {
229860
+ stub: [50, 50],
229861
+ gap: 3,
229862
+ cornerRadius: 5,
229863
+ alwaysRespectStubs: false
229864
+ }],
229865
+ overlays: [['Arrow', {
229866
+ width: 10,
229867
+ length: 10,
229868
+ location: 1
229869
+ }]],
229870
+ endpoint: ['Dot', {
229871
+ radius: 5
229872
+ }],
229873
+ cssClass: 'line_path'
229871
229874
  });
229872
- a = null;
229873
- } catch (e) {
229874
- console.log(e);
229875
+ try {
229876
+ a.setLabel({
229877
+ label: _this3.PathLabelText
229878
+ });
229879
+ a = null;
229880
+ } catch (e) {
229881
+ console.log(e);
229882
+ }
229875
229883
  }
229876
229884
  }
229877
- }
229878
- Centervue_type_script_lang_js_jsPlumb.bind('connection', function (info) {
229879
- if (!jquery_default()(info.source).hasClass('dfzjd')) {
229880
- info.connection.setHoverPaintStyle({
229881
- stroke: 'red'
229885
+ Centervue_type_script_lang_js_jsPlumb.bind('connection', function (info) {
229886
+ if (!jquery_default()(info.source).hasClass('dfzjd')) {
229887
+ info.connection.setHoverPaintStyle({
229888
+ stroke: 'red'
229889
+ });
229890
+ }
229891
+ info.connection.setPaintStyle({
229892
+ stroke: '#438eb9',
229893
+ fillStyle: '#438eb9',
229894
+ radius: 5
229882
229895
  });
229883
- }
229884
- info.connection.setPaintStyle({
229885
- stroke: '#438eb9',
229886
- fillStyle: '#438eb9',
229887
- radius: 5
229896
+ _this3.dragPath(info);
229897
+ // 用于比较数据是否改变
229898
+ _this3.oldWflow = JSON.parse(JSON.stringify(_this3.wflow));
229899
+ _this3.emitData();
229900
+ return false;
229888
229901
  });
229889
- _this2.dragPath(info);
229890
- // 用于比较数据是否改变
229891
- _this2.oldWflow = JSON.parse(JSON.stringify(_this2.wflow));
229892
- _this2.emitData();
229893
- return false;
229894
- });
229895
- }
229896
- });
229897
- _this2.dataStatus = false;
229898
- });
229899
- // 中间放置
229900
- jquery_default()('#center').droppable({
229901
- scope: 'plant',
229902
- drop: function drop(event, ui) {
229903
- // 工厂方式模型创建
229904
- var modelType = jquery_default()(ui.draggable).attr('associated');
229905
- var resize = jquery_default()(ui.draggable).attr('resize');
229906
- var domJoin = jquery_default()(ui.draggable).attr('domJoin');
229907
- var type = jquery_default()(ui.draggable).attr('type');
229908
-
229909
- // if ($(ui.draggable).attr('associated') === 'start') {
229910
- // model.start++
229911
- // }
229912
- // 1获取id,添加模型
229913
- var nid = model.CreateModel(ui, jquery_default()(event.target), resize, domJoin, modelType, type, _this2.wflow);
229914
- _this2.getProcessNum(modelType);
229915
-
229916
- // node创建时,初始化数据
229917
- _this2.curNode = {
229918
- sceneId: '',
229919
- // id
229920
- status: -1,
229921
- name: '',
229922
- // 节点名称
229923
- type: 1,
229924
- // 节点类型
229925
- problem: [],
229926
- // 问题示例
229927
- keywords: '',
229928
- // 匹配关键词
229929
- serial: _this2.wflow.nodes.length + 1,
229930
- // 节点顺序
229931
- // serial: 50, // 节点顺序
229932
- speakType: 0,
229933
- // 话术类型
229934
- performId: '',
229935
- // 执行动作id
229936
- createTime: '',
229937
- // 创建时间
229938
- updateTime: '',
229939
- // 更新时间
229940
- memo: '',
229941
- // 备注
229942
- id: nid,
229943
- SpeakMethod: [],
229944
- successSpeakMethod: [],
229945
- errorSpeakMethod: []
229946
- };
229947
- if (modelType === 'ptjd') {
229948
- _this2.curNode.type = 0;
229949
- } else if (modelType === 'zxjd') {
229950
- _this2.curNode.type = 1;
229951
- }
229952
- // 2把当前环境添加到全局nodes对象中
229953
- _this2.wflow.nodes.push(_this2.curNode);
229954
-
229955
- // 3当前node对象根据id=全局对象的id
229956
- for (var i = 0; i < _this2.wflow.nodes.length; i++) {
229957
- if (_this2.curNode.id === _this2.wflow.nodes[i].id) {
229958
- _this2.curNode = _this2.wflow.nodes[i];
229959
- break;
229960
229902
  }
229961
- }
229962
- _this2.emitData();
229963
-
229964
- // node点击动态绑定
229965
- // nodeClick();
229966
- jquery_default()('.process').bind('click', function (el) {
229967
- // debugger
229968
- jquery_default()('.process').removeClass('seled');
229969
- jquery_default()(el.currentTarget).addClass('seled');
229970
- _this2.getHistroyNodes();
229971
- var curId = jquery_default()(el.currentTarget).attr('id');
229972
- for (var j = 0; j < _this2.wflow.nodes.length; j++) {
229973
- if (curId === _this2.wflow.nodes[j].id) {
229974
- _this2.curNode = _this2.wflow.nodes[j];
229975
- jquery_default()(el.currentTarget).attr('id', _this2.wflow.nodes[j].id);
229903
+ });
229904
+ _this3.dataStatus = false;
229905
+ });
229906
+ // 中间放置
229907
+ jquery_default()('#center').droppable({
229908
+ scope: 'plant',
229909
+ drop: function drop(event, ui) {
229910
+ // 工厂方式模型创建
229911
+ var modelType = jquery_default()(ui.draggable).attr('associated');
229912
+ var resize = jquery_default()(ui.draggable).attr('resize');
229913
+ var domJoin = jquery_default()(ui.draggable).attr('domJoin');
229914
+ var type = jquery_default()(ui.draggable).attr('type');
229915
+
229916
+ // if ($(ui.draggable).attr('associated') === 'start') {
229917
+ // model.start++
229918
+ // }
229919
+ // 1获取id,添加模型
229920
+ var nid = model.CreateModel(ui, jquery_default()(event.target), resize, domJoin, modelType, type, _this3.wflow);
229921
+ _this3.getProcessNum(modelType);
229922
+
229923
+ // node创建时,初始化数据
229924
+ _this3.curNode = {
229925
+ sceneId: '',
229926
+ // id
229927
+ status: -1,
229928
+ name: '',
229929
+ // 节点名称
229930
+ type: 1,
229931
+ // 节点类型
229932
+ problem: [],
229933
+ // 问题示例
229934
+ keywords: '',
229935
+ // 匹配关键词
229936
+ serial: _this3.wflow.nodes.length + 1,
229937
+ // 节点顺序
229938
+ // serial: 50, // 节点顺序
229939
+ speakType: 0,
229940
+ // 话术类型
229941
+ performId: '',
229942
+ // 执行动作id
229943
+ createTime: '',
229944
+ // 创建时间
229945
+ updateTime: '',
229946
+ // 更新时间
229947
+ memo: '',
229948
+ // 备注
229949
+ id: nid,
229950
+ SpeakMethod: [],
229951
+ successSpeakMethod: [],
229952
+ errorSpeakMethod: []
229953
+ };
229954
+ if (modelType === 'ptjd') {
229955
+ _this3.curNode.type = 0;
229956
+ } else if (modelType === 'zxjd') {
229957
+ _this3.curNode.type = 1;
229958
+ }
229959
+ // 2把当前环境添加到全局nodes对象中
229960
+ _this3.wflow.nodes.push(_this3.curNode);
229961
+
229962
+ // 3当前node对象根据id=全局对象的id
229963
+ for (var i = 0; i < _this3.wflow.nodes.length; i++) {
229964
+ if (_this3.curNode.id === _this3.wflow.nodes[i].id) {
229965
+ _this3.curNode = _this3.wflow.nodes[i];
229976
229966
  break;
229977
229967
  }
229978
229968
  }
229979
- _this2.changeCurNodeType(jquery_default()(el.currentTarget));
229969
+ _this3.emitData();
229980
229970
 
229981
- // this.getNodeSpecialData(curId)// 点击环节时,设置环节指定处理人、指定岗位、指定群组、指定机构信息
229971
+ // node点击动态绑定
229972
+ // nodeClick();
229973
+ jquery_default()('.process').bind('click', function (el) {
229974
+ // debugger
229975
+ jquery_default()('.process').removeClass('seled');
229976
+ jquery_default()(el.currentTarget).addClass('seled');
229977
+ _this3.getHistroyNodes();
229978
+ var curId = jquery_default()(el.currentTarget).attr('id');
229979
+ for (var j = 0; j < _this3.wflow.nodes.length; j++) {
229980
+ if (curId === _this3.wflow.nodes[j].id) {
229981
+ _this3.curNode = _this3.wflow.nodes[j];
229982
+ jquery_default()(el.currentTarget).attr('id', _this3.wflow.nodes[j].id);
229983
+ break;
229984
+ }
229985
+ }
229986
+ _this3.changeCurNodeType(jquery_default()(el.currentTarget));
229982
229987
 
229983
- _this2.clickNodeFieldValues(); // 点击环节更新多域值
229984
- // this.clickNodeOperation()// 点击环节更新操作按钮
229985
- _this2.getWaitNode(); // 点击环节计算需要等待环节
229986
- _this2.emitData();
229987
- // $scope.$apply()
229988
- });
229989
- _this2.AddAnchor();
229990
- }
229991
- });
229992
- this.wflow.ideaLabels = [{}];
229993
- this.ideaArr = [];
229994
- },
229995
- methods: {
229988
+ // this.getNodeSpecialData(curId)// 点击环节时,设置环节指定处理人、指定岗位、指定群组、指定机构信息
229989
+
229990
+ _this3.clickNodeFieldValues(); // 点击环节更新多域值
229991
+ // this.clickNodeOperation()// 点击环节更新操作按钮
229992
+ _this3.getWaitNode(); // 点击环节计算需要等待环节
229993
+ _this3.emitData();
229994
+ // $scope.$apply()
229995
+ });
229996
+ _this3.AddAnchor();
229997
+ }
229998
+ });
229999
+ this.wflow.ideaLabels = [{}];
230000
+ this.ideaArr = [];
230001
+ },
229996
230002
  getNodeSpecialData: function getNodeSpecialData(curId) {
229997
230003
  // 点击环节时,设置环节指定处理人、指定岗位、指定群组、指定机构信息
229998
230004
  this.nodeFieldValue = {}; // 处理人-指定机构
@@ -230108,13 +230114,13 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
230108
230114
  },
230109
230115
  // 点击环节计算需要等待环节
230110
230116
  getWaitNode: function getWaitNode() {
230111
- var _this3 = this;
230117
+ var _this4 = this;
230112
230118
  // waitNodeArr
230113
230119
  this.waitNodeArr = [];
230114
230120
  var ptNodeList = [];
230115
230121
  var ptNode = jquery_default()('#center').find('.process');
230116
230122
  ptNode.each(function (i, elem) {
230117
- var isPtNode = ptNode.eq(i).hasClass('start') || ptNode.eq(i).hasClass('jsrw') || ptNode.eq(i).hasClass('jslc') || ptNode.eq(i).hasClass('jcjd') || ptNode.eq(i).hasClass('zyjd') || ptNode.eq(i).hasClass('dfzjd') || ptNode.eq(i).hasClass('jhjd') || ptNode.eq(i).attr('id') === _this3.curNode.id;
230123
+ var isPtNode = ptNode.eq(i).hasClass('start') || ptNode.eq(i).hasClass('jsrw') || ptNode.eq(i).hasClass('jslc') || ptNode.eq(i).hasClass('jcjd') || ptNode.eq(i).hasClass('zyjd') || ptNode.eq(i).hasClass('dfzjd') || ptNode.eq(i).hasClass('jhjd') || ptNode.eq(i).attr('id') === _this4.curNode.id;
230118
230124
  if (!isPtNode) {
230119
230125
  ptNodeList.push(ptNode.eq(i));
230120
230126
  }
@@ -230143,18 +230149,18 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
230143
230149
  }
230144
230150
  },
230145
230151
  dragPath: function dragPath(pathTarget) {
230146
- var _this4 = this;
230152
+ var _this5 = this;
230147
230153
  var isDargPath = false;
230148
230154
  // 连接被重绘时通知
230149
230155
  Centervue_type_script_lang_js_jsPlumb.bind('connectionMoved', function (info, originalEvent) {
230150
230156
  // 存储路径信息,然后删除
230151
230157
  // alert(333)
230152
230158
  isDargPath = true;
230153
- for (var i = 0; i < _this4.wflow.paths.length; i++) {
230154
- if (_this4.wflow.paths[i].id === info.connection.id) {
230155
- _this4.curp = _this4.wflow.paths[i];
230159
+ for (var i = 0; i < _this5.wflow.paths.length; i++) {
230160
+ if (_this5.wflow.paths[i].id === info.connection.id) {
230161
+ _this5.curp = _this5.wflow.paths[i];
230156
230162
  // const a = this.wflow.paths[i].name
230157
- _this4.wflow.paths.splice(i, 1);
230163
+ _this5.wflow.paths.splice(i, 1);
230158
230164
  }
230159
230165
  }
230160
230166
  });
@@ -230242,8 +230248,8 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
230242
230248
  }
230243
230249
  if (this.curPath.beforNodeId !== '') {
230244
230250
  this.wflow.nodes.forEach(function (node) {
230245
- if (_this4.curPath.beforNodeId === node.id) {
230246
- _this4.curPath.preNodeName = node.name;
230251
+ if (_this5.curPath.beforNodeId === node.id) {
230252
+ _this5.curPath.preNodeName = node.name;
230247
230253
  }
230248
230254
  });
230249
230255
  }
@@ -230276,8 +230282,8 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
230276
230282
  this.curPath.beforNodeId = jquery_default()(pathTarget.source).attr('id');
230277
230283
  this.curPath.ctrlType = 6;
230278
230284
  this.wflow.nodes.forEach(function (node) {
230279
- if (_this4.curPath.beforNodeId === node.id) {
230280
- _this4.curPath.preNodeName = node.name;
230285
+ if (_this5.curPath.beforNodeId === node.id) {
230286
+ _this5.curPath.preNodeName = node.name;
230281
230287
  }
230282
230288
  });
230283
230289
  // pathTarget.connection.id = uuid();
@@ -230664,7 +230670,7 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
230664
230670
  },
230665
230671
  // 改变当前的环节类型
230666
230672
  changeCurNodeType: function changeCurNodeType(_this) {
230667
- var _this5 = this;
230673
+ var _this6 = this;
230668
230674
  if (_this.hasClass('ptjd')) {
230669
230675
  this.curNode.processType = 0;
230670
230676
  this.curNode.nodeType = 1;
@@ -230683,8 +230689,8 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
230683
230689
  } else if (_this.hasClass('ywjd')) {
230684
230690
  // eslint-disable-next-line no-undef
230685
230691
  setTimeout(function () {
230686
- _this5.curNode.processType = 0;
230687
- _this5.curNode.nodeType = 3;
230692
+ _this6.curNode.processType = 0;
230693
+ _this6.curNode.nodeType = 3;
230688
230694
  }, 100);
230689
230695
  }
230690
230696
  // $scope.$apply();
@@ -230806,7 +230812,7 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
230806
230812
  },
230807
230813
  // 保存流程验证
230808
230814
  customValidate: function customValidate(wflow) {
230809
- var _this6 = this;
230815
+ var _this7 = this;
230810
230816
  // 验证场景名称,场景类型
230811
230817
  if (this.wflow.scene.name === '' || this.wflow.scene.name === undefined || this.wflow.scene.name === null) {
230812
230818
  this.$message({
@@ -230824,67 +230830,67 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
230824
230830
  }
230825
230831
  // 验证节点参数
230826
230832
  var _loop = function _loop(i) {
230827
- if (_this6.wflow.nodes[i].name === '' || _this6.wflow.nodes[i].name === undefined) {
230828
- _this6.validateNode(_this6.wflow.nodes[i], '请填写任务名称');
230833
+ if (_this7.wflow.nodes[i].name === '' || _this7.wflow.nodes[i].name === undefined) {
230834
+ _this7.validateNode(_this7.wflow.nodes[i], '请填写任务名称');
230829
230835
  return {
230830
230836
  v: false
230831
230837
  };
230832
230838
  }
230833
- if (_this6.wflow.nodes[i].problem.length === 0 && _this6.wflow.nodes[i].type === 0) {
230834
- _this6.validateNode(_this6.wflow.nodes[i], '请添加问题示例');
230839
+ if (_this7.wflow.nodes[i].problem.length === 0 && _this7.wflow.nodes[i].type === 0) {
230840
+ _this7.validateNode(_this7.wflow.nodes[i], '请添加问题示例');
230835
230841
  return {
230836
230842
  v: false
230837
230843
  };
230838
230844
  }
230839
- if ((_this6.wflow.nodes[i].keywords === '' || _this6.wflow.nodes[i].keywords === undefined) && _this6.wflow.nodes[i].type === 0) {
230840
- _this6.validateNode(_this6.wflow.nodes[i], '请填写匹配关键词');
230845
+ if ((_this7.wflow.nodes[i].keywords === '' || _this7.wflow.nodes[i].keywords === undefined) && _this7.wflow.nodes[i].type === 0) {
230846
+ _this7.validateNode(_this7.wflow.nodes[i], '请填写匹配关键词');
230841
230847
  return {
230842
230848
  v: false
230843
230849
  };
230844
230850
  }
230845
- if (_this6.wflow.nodes[i].speakType === '' || _this6.wflow.nodes[i].speakType === undefined || _this6.wflow.nodes[i].speakType === null) {
230846
- _this6.validateNode(_this6.wflow.nodes[i], '请选择Ai话术切换类型');
230851
+ if (_this7.wflow.nodes[i].speakType === '' || _this7.wflow.nodes[i].speakType === undefined || _this7.wflow.nodes[i].speakType === null) {
230852
+ _this7.validateNode(_this7.wflow.nodes[i], '请选择Ai话术切换类型');
230847
230853
  return {
230848
230854
  v: false
230849
230855
  };
230850
230856
  }
230851
- if (_this6.wflow.nodes[i].SpeakMethod.length === 0 && _this6.wflow.nodes[i].type === 0) {
230852
- _this6.validateNode(_this6.wflow.nodes[i], '请添加AI话术');
230857
+ if (_this7.wflow.nodes[i].SpeakMethod.length === 0 && _this7.wflow.nodes[i].type === 0) {
230858
+ _this7.validateNode(_this7.wflow.nodes[i], '请添加AI话术');
230853
230859
  return {
230854
230860
  v: false
230855
230861
  };
230856
230862
  }
230857
- if (_this6.wflow.nodes[i].successSpeakMethod.length === 0 && _this6.wflow.nodes[i].type === 1) {
230858
- _this6.validateNode(_this6.wflow.nodes[i], '请添加AI成功话术');
230863
+ if (_this7.wflow.nodes[i].successSpeakMethod.length === 0 && _this7.wflow.nodes[i].type === 1) {
230864
+ _this7.validateNode(_this7.wflow.nodes[i], '请添加AI成功话术');
230859
230865
  return {
230860
230866
  v: false
230861
230867
  };
230862
230868
  }
230863
- if (_this6.wflow.nodes[i].errorSpeakMethod.length === 0 && _this6.wflow.nodes[i].type === 1) {
230864
- _this6.validateNode(_this6.wflow.nodes[i], '请添加AI失败话术');
230869
+ if (_this7.wflow.nodes[i].errorSpeakMethod.length === 0 && _this7.wflow.nodes[i].type === 1) {
230870
+ _this7.validateNode(_this7.wflow.nodes[i], '请添加AI失败话术');
230865
230871
  return {
230866
230872
  v: false
230867
230873
  };
230868
230874
  }
230869
- if (_this6.wflow.nodes[i].type === 1 && (_this6.wflow.nodes[i].performId === '' || _this6.wflow.nodes[i].performId === null)) {
230870
- _this6.validateNode(_this6.wflow.nodes[i], '请选择执行动作');
230875
+ if (_this7.wflow.nodes[i].type === 1 && (_this7.wflow.nodes[i].performId === '' || _this7.wflow.nodes[i].performId === null)) {
230876
+ _this7.validateNode(_this7.wflow.nodes[i], '请选择执行动作');
230871
230877
  return {
230872
230878
  v: false
230873
230879
  };
230874
230880
  }
230875
230881
  // 话术类型为时间的 验证时间是否填写
230876
- if (_this6.wflow.nodes[i].speakType === 1) {
230877
- var list = _this6.wflow.speaks.filter(function (item) {
230878
- return _this6.wflow.nodes[i].id === item.nodeId;
230882
+ if (_this7.wflow.nodes[i].speakType === 1) {
230883
+ var list = _this7.wflow.speaks.filter(function (item) {
230884
+ return _this7.wflow.nodes[i].id === item.nodeId;
230879
230885
  })[0];
230880
230886
  if (list.startTime === '' || list.startTime === null || list.startTime === undefined) {
230881
- _this6.validateNode(_this6.wflow.nodes[i], '请选择开始时间');
230887
+ _this7.validateNode(_this7.wflow.nodes[i], '请选择开始时间');
230882
230888
  return {
230883
230889
  v: false
230884
230890
  };
230885
230891
  }
230886
230892
  if (list.endTime === '' || list.endTime === null || list.endTime === undefined) {
230887
- _this6.validateNode(_this6.wflow.nodes[i], '请选择结束时间');
230893
+ _this7.validateNode(_this7.wflow.nodes[i], '请选择结束时间');
230888
230894
  return {
230889
230895
  v: false
230890
230896
  };
@@ -230970,7 +230976,7 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
230970
230976
  },
230971
230977
  // 保存
230972
230978
  saveWorkflow: function saveWorkflow(actionType) {
230973
- var _this7 = this;
230979
+ var _this8 = this;
230974
230980
  this.$bus.emit('SplicingAttavhStr');
230975
230981
  this.process.chartData = {};
230976
230982
  // console.log(this.connectsArr)
@@ -231024,13 +231030,13 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231024
231030
  }
231025
231031
  var SpeakMethod = [];
231026
231032
  this.wflow.nodes.forEach(function (item) {
231027
- item.sceneId = _this7.wflow.scene.id;
231028
- item.createTime = _this7.wflow.scene.createTime;
231033
+ item.sceneId = _this8.wflow.scene.id;
231034
+ item.createTime = _this8.wflow.scene.createTime;
231029
231035
  SpeakMethod = [].concat(_toConsumableArray(SpeakMethod), _toConsumableArray(item.SpeakMethod), _toConsumableArray(item.successSpeakMethod), _toConsumableArray(item.errorSpeakMethod));
231030
231036
  });
231031
231037
  this.$set(this.wflow, 'speaks', SpeakMethod);
231032
231038
  this.wflow.paths.forEach(function (item) {
231033
- var list = _this7.wflow.nextNodes.filter(function (el) {
231039
+ var list = _this8.wflow.nextNodes.filter(function (el) {
231034
231040
  return el.pathId === item.id;
231035
231041
  })[0];
231036
231042
  item.afterNodeId = list.nextNodeId;
@@ -231052,29 +231058,29 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231052
231058
  }).then(function () {
231053
231059
  // console.log(this)
231054
231060
  // 修改状态
231055
- if (actionType === 'save' && _this7.wflow.scene.status === -1) {
231056
- _this7.wflow.scene.status = 0;
231061
+ if (actionType === 'save' && _this8.wflow.scene.status === -1) {
231062
+ _this8.wflow.scene.status = 0;
231057
231063
  }
231058
231064
  if (actionType === 'online') {
231059
- _this7.wflow.scene.status = 1;
231065
+ _this8.wflow.scene.status = 1;
231060
231066
  }
231061
231067
  if (actionType === 'outline') {
231062
- _this7.wflow.scene.status = 2;
231068
+ _this8.wflow.scene.status = 2;
231063
231069
  }
231064
- _this7.$http(req).then(function (response) {
231070
+ _this8.$http(req).then(function (response) {
231065
231071
  // console.log(response)
231066
231072
  if (response.code === 'success') {
231067
231073
  // 保存成功
231068
- _this7.$message({
231074
+ _this8.$message({
231069
231075
  message: '保存成功',
231070
231076
  type: 'success'
231071
231077
  });
231072
231078
  var btnRefresh = opener.document.querySelector('.el-icon-refresh');
231073
231079
  if (btnRefresh !== null) btnRefresh.click();
231074
231080
  if (actionType !== 'SaveAndClose') {
231075
- if (_this7.$route.query.id) {
231081
+ if (_this8.$route.query.id) {
231076
231082
  // 如果你是打开流程,刷新当前页面
231077
- if (_this7.$route.query.id === response.body.vo.scene.id) {
231083
+ if (_this8.$route.query.id === response.body.vo.scene.id) {
231078
231084
  location.reload();
231079
231085
  } else {
231080
231086
  setTimeout(function () {
@@ -231104,14 +231110,14 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231104
231110
  }
231105
231111
  } else {
231106
231112
  // 保存异常
231107
- _this7.$message({
231113
+ _this8.$message({
231108
231114
  message: response.message,
231109
231115
  type: 'warning'
231110
231116
  });
231111
231117
  }
231112
231118
  }, function (error) {
231113
231119
  console.log(error);
231114
- _this7.$message.error(_this7.$tx('yoabase.messages.saveError', '保存失败'));
231120
+ _this8.$message.error(_this8.$tx('yoabase.messages.saveError', '保存失败'));
231115
231121
  });
231116
231122
  }).catch(function () {
231117
231123
  return;
@@ -231327,7 +231333,7 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231327
231333
  * 选择部门/科室/班组对话框确认完成
231328
231334
  */
231329
231335
  nodeFieldValueFn: function nodeFieldValueFn(type, nodeId, department, text) {
231330
- var _this8 = this;
231336
+ var _this9 = this;
231331
231337
  // type,类型,nodeId:当前环节ID,department:选择框id,text:选择后部门名字
231332
231338
  // 选择机构
231333
231339
  var fieldValue = {
@@ -231386,7 +231392,7 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231386
231392
  var nodeFieldValue = JSON.parse(JSON.stringify(fieldValue));
231387
231393
  nodeFieldValue.value = v;
231388
231394
  nodeFieldValue.id = common_uuid();
231389
- _this8.wflow.nodeFieldValues.push(nodeFieldValue);
231395
+ _this9.wflow.nodeFieldValues.push(nodeFieldValue);
231390
231396
  });
231391
231397
  } else {
231392
231398
  for (var _i17 = 0; _i17 < this.wflow.pathFieldValues.length; _i17++) {
@@ -231400,7 +231406,7 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231400
231406
  var pathFieldValue = JSON.parse(JSON.stringify(fieldValue));
231401
231407
  pathFieldValue.value = v;
231402
231408
  pathFieldValue.id = common_uuid();
231403
- _this8.wflow.pathFieldValues.push(pathFieldValue);
231409
+ _this9.wflow.pathFieldValues.push(pathFieldValue);
231404
231410
  });
231405
231411
  }
231406
231412
  },
@@ -231434,7 +231440,7 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231434
231440
  * 选择机构人员对话框确认完成
231435
231441
  */
231436
231442
  onSelectStaffCompleted: function onSelectStaffCompleted(selectedNodes, attr) {
231437
- var _this9 = this;
231443
+ var _this10 = this;
231438
231444
  var departmentId = '';
231439
231445
  var selected = '';
231440
231446
  var type = attr.nodefield;
@@ -231443,7 +231449,7 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231443
231449
  selected += ',';
231444
231450
  departmentId += ',';
231445
231451
  }
231446
- if (node.orgCode && (_this9.curNode.selectOrg === 'group_all_corp' || _this9.curNode.selectOrg === 'group_cur_corp')) {
231452
+ if (node.orgCode && (_this10.curNode.selectOrg === 'group_all_corp' || _this10.curNode.selectOrg === 'group_cur_corp')) {
231447
231453
  selected += node.name + '/' + node.orgCode;
231448
231454
  } else {
231449
231455
  selected += node.name;
@@ -231540,19 +231546,19 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231540
231546
  },
231541
231547
  // 选择添加常用按钮
231542
231548
  selAddButton: function selAddButton(selectedBtns) {
231543
- var _this10 = this;
231549
+ var _this11 = this;
231544
231550
  selectedBtns.forEach(function (btn) {
231545
231551
  var newBtn = JSON.parse(JSON.stringify(btn));
231546
- newBtn.nodeId = _this10.curNode.id;
231547
- _this10.curNodeOperationArr.push(newBtn);
231548
- _this10.wflow.operations.push(newBtn);
231552
+ newBtn.nodeId = _this11.curNode.id;
231553
+ _this11.curNodeOperationArr.push(newBtn);
231554
+ _this11.wflow.operations.push(newBtn);
231549
231555
  });
231550
231556
  this.$bus.emit('closeButtonForm');
231551
231557
  this.emitData();
231552
231558
  },
231553
231559
  // 删除操作按钮
231554
231560
  deleteButton: function deleteButton(nodeOperationId, nodeOperationName, nodeOperationType, $event) {
231555
- var _this11 = this;
231561
+ var _this12 = this;
231556
231562
  var confirmMsg = '确认要删除“' + nodeOperationName + '”按钮吗?';
231557
231563
  if (nodeOperationType === 2) {
231558
231564
  confirmMsg = '确认要删除“' + nodeOperationName + '”下拉按钮及全部子按钮吗?';
@@ -231564,14 +231570,14 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231564
231570
  cancelButtonText: '取消',
231565
231571
  type: 'warning'
231566
231572
  }).then(function () {
231567
- for (var i = 0; i < _this11.curNodeOperationArr.length; i++) {
231568
- if (_this11.curNodeOperationArr[i].id === nodeOperationId || _this11.curNodeOperationArr[i].btnGroupId === nodeOperationId) {
231569
- _this11.curNodeOperationArr.splice(i--, 1);
231573
+ for (var i = 0; i < _this12.curNodeOperationArr.length; i++) {
231574
+ if (_this12.curNodeOperationArr[i].id === nodeOperationId || _this12.curNodeOperationArr[i].btnGroupId === nodeOperationId) {
231575
+ _this12.curNodeOperationArr.splice(i--, 1);
231570
231576
  }
231571
231577
  }
231572
- for (var j = 0; j < _this11.wflow.operations.length; j++) {
231573
- if (_this11.wflow.operations[j].id === nodeOperationId || _this11.wflow.operations[j].btnGroupId === nodeOperationId) {
231574
- _this11.wflow.operations.splice(j--, 1);
231578
+ for (var j = 0; j < _this12.wflow.operations.length; j++) {
231579
+ if (_this12.wflow.operations[j].id === nodeOperationId || _this12.wflow.operations[j].btnGroupId === nodeOperationId) {
231580
+ _this12.wflow.operations.splice(j--, 1);
231575
231581
  }
231576
231582
  }
231577
231583
  // console.log(this.curNodeOperationArr)
@@ -231935,9 +231941,9 @@ var Centervue_type_script_lang_js_jsPlumb = window.jsPlumb;
231935
231941
  });
231936
231942
  ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/voice/Center/index.vue?vue&type=script&lang=js
231937
231943
  /* harmony default export */ var voice_Centervue_type_script_lang_js = (Centervue_type_script_lang_js);
231938
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/voice/Center/index.vue?vue&type=style&index=0&id=30cb1c36&prod&scoped=true&lang=scss
231939
- var Centervue_type_style_index_0_id_30cb1c36_prod_scoped_true_lang_scss = __webpack_require__(1214);
231940
- ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/voice/Center/index.vue?vue&type=style&index=0&id=30cb1c36&prod&scoped=true&lang=scss
231944
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/voice/Center/index.vue?vue&type=style&index=0&id=7f0a3c68&prod&scoped=true&lang=scss
231945
+ var Centervue_type_style_index_0_id_7f0a3c68_prod_scoped_true_lang_scss = __webpack_require__(4915);
231946
+ ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/voice/Center/index.vue?vue&type=style&index=0&id=7f0a3c68&prod&scoped=true&lang=scss
231941
231947
 
231942
231948
  ;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/voice/Center/index.vue
231943
231949
 
@@ -231950,11 +231956,11 @@ var Centervue_type_style_index_0_id_30cb1c36_prod_scoped_true_lang_scss = __webp
231950
231956
 
231951
231957
  var Center_component = normalizeComponent(
231952
231958
  voice_Centervue_type_script_lang_js,
231953
- Centervue_type_template_id_30cb1c36_scoped_true_render,
231954
- Centervue_type_template_id_30cb1c36_scoped_true_staticRenderFns,
231959
+ Centervue_type_template_id_7f0a3c68_scoped_true_render,
231960
+ Centervue_type_template_id_7f0a3c68_scoped_true_staticRenderFns,
231955
231961
  false,
231956
231962
  null,
231957
- "30cb1c36",
231963
+ "7f0a3c68",
231958
231964
  null
231959
231965
 
231960
231966
  )