ecinc-cloud-wappaio 9.7.3 → 9.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ecwappaio.common.js +663 -129
- package/lib/ecwappaio.umd.js +663 -129
- package/lib/ecwappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecwappaio.common.js
CHANGED
|
@@ -116355,7 +116355,7 @@ var UdmGenerator_UserModuleForm = UserModuleForm;
|
|
|
116355
116355
|
|
|
116356
116356
|
/***/ }),
|
|
116357
116357
|
|
|
116358
|
-
/***/
|
|
116358
|
+
/***/ 34797:
|
|
116359
116359
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
116360
116360
|
|
|
116361
116361
|
"use strict";
|
|
@@ -117022,8 +117022,8 @@ var SideBar_component = (0,componentNormalizer/* default */.A)(
|
|
|
117022
117022
|
)
|
|
117023
117023
|
|
|
117024
117024
|
/* harmony default export */ var SideBar = (SideBar_component.exports);
|
|
117025
|
-
;// 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/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=template&id=
|
|
117026
|
-
var
|
|
117025
|
+
;// 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/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=template&id=5c4008d4&scoped=true
|
|
117026
|
+
var Centervue_type_template_id_5c4008d4_scoped_true_render = function render() {
|
|
117027
117027
|
var _vm = this,
|
|
117028
117028
|
_c = _vm._self._c;
|
|
117029
117029
|
return _c('el-scrollbar', {
|
|
@@ -117142,7 +117142,7 @@ var Centervue_type_template_id_cf0d53e6_scoped_true_render = function render() {
|
|
|
117142
117142
|
}
|
|
117143
117143
|
})], 1)], 1)]);
|
|
117144
117144
|
};
|
|
117145
|
-
var
|
|
117145
|
+
var Centervue_type_template_id_5c4008d4_scoped_true_staticRenderFns = [];
|
|
117146
117146
|
|
|
117147
117147
|
// EXTERNAL MODULE: ./node_modules/jquery/dist/jquery.js
|
|
117148
117148
|
var jquery = __webpack_require__(74692);
|
|
@@ -117187,8 +117187,13 @@ var _require5 = __webpack_require__(61154),
|
|
|
117187
117187
|
dragLine = _require5.dragLine;
|
|
117188
117188
|
var _require6 = __webpack_require__(61154),
|
|
117189
117189
|
dragAddNode = _require6.dragAddNode;
|
|
117190
|
+
var _require7 = __webpack_require__(61154),
|
|
117191
|
+
bindConnectionEvents = _require7.bindConnectionEvents;
|
|
117190
117192
|
// 按需加载 globalStyle 模块
|
|
117191
117193
|
var hollowCircle, createPathLine, createConnect;
|
|
117194
|
+
var resetEndpointSourceFlags, clearEndpointFillStyle, applyConnectionStyle;
|
|
117195
|
+
var checkAndAddArrow, initConnectionEndpointMode, setAnchorCreateMode, setConnectionEndpointCreateMode, resetAllAnchorEndpoints, resetAllConnectionEndpoints;
|
|
117196
|
+
var CONNECTION_DEFAULT_STYLE;
|
|
117192
117197
|
var loadGlobalStyle = /*#__PURE__*/function () {
|
|
117193
117198
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
117194
117199
|
var module;
|
|
@@ -117208,7 +117213,17 @@ var loadGlobalStyle = /*#__PURE__*/function () {
|
|
|
117208
117213
|
hollowCircle = module.hollowCircle;
|
|
117209
117214
|
createPathLine = module.createPathLine;
|
|
117210
117215
|
createConnect = module.createConnect;
|
|
117211
|
-
|
|
117216
|
+
CONNECTION_DEFAULT_STYLE = module.CONNECTION_DEFAULT_STYLE;
|
|
117217
|
+
resetEndpointSourceFlags = module.resetEndpointSourceFlags;
|
|
117218
|
+
clearEndpointFillStyle = module.clearEndpointFillStyle;
|
|
117219
|
+
applyConnectionStyle = module.applyConnectionStyle;
|
|
117220
|
+
checkAndAddArrow = module.checkAndAddArrow;
|
|
117221
|
+
initConnectionEndpointMode = module.initConnectionEndpointMode;
|
|
117222
|
+
setAnchorCreateMode = module.setAnchorCreateMode;
|
|
117223
|
+
setConnectionEndpointCreateMode = module.setConnectionEndpointCreateMode;
|
|
117224
|
+
resetAllAnchorEndpoints = module.resetAllAnchorEndpoints;
|
|
117225
|
+
resetAllConnectionEndpoints = module.resetAllConnectionEndpoints;
|
|
117226
|
+
case 17:
|
|
117212
117227
|
case "end":
|
|
117213
117228
|
return _context.stop();
|
|
117214
117229
|
}
|
|
@@ -117218,37 +117233,37 @@ var loadGlobalStyle = /*#__PURE__*/function () {
|
|
|
117218
117233
|
return _ref.apply(this, arguments);
|
|
117219
117234
|
};
|
|
117220
117235
|
}();
|
|
117221
|
-
var _require7 = __webpack_require__(92399),
|
|
117222
|
-
startMove = _require7.startMove;
|
|
117223
117236
|
var _require8 = __webpack_require__(92399),
|
|
117224
|
-
|
|
117237
|
+
startMove = _require8.startMove;
|
|
117225
117238
|
var _require9 = __webpack_require__(92399),
|
|
117226
|
-
|
|
117239
|
+
MoveSelectDiv = _require9.MoveSelectDiv;
|
|
117227
117240
|
var _require10 = __webpack_require__(92399),
|
|
117228
|
-
|
|
117241
|
+
getSelectedRegions = _require10.getSelectedRegions;
|
|
117229
117242
|
var _require11 = __webpack_require__(92399),
|
|
117230
|
-
|
|
117243
|
+
resetLocation = _require11.resetLocation;
|
|
117231
117244
|
var _require12 = __webpack_require__(92399),
|
|
117232
|
-
|
|
117245
|
+
RegionSelect = _require12.RegionSelect;
|
|
117233
117246
|
var _require13 = __webpack_require__(92399),
|
|
117234
|
-
|
|
117247
|
+
SelectAlignCenter = _require13.SelectAlignCenter;
|
|
117235
117248
|
var _require14 = __webpack_require__(92399),
|
|
117236
|
-
|
|
117249
|
+
SelectAlignMean = _require14.SelectAlignMean;
|
|
117237
117250
|
var _require15 = __webpack_require__(92399),
|
|
117238
|
-
|
|
117251
|
+
SelectMeanCenter = _require15.SelectMeanCenter;
|
|
117239
117252
|
var _require16 = __webpack_require__(92399),
|
|
117240
|
-
|
|
117253
|
+
SelectAlignTop = _require16.SelectAlignTop;
|
|
117241
117254
|
var _require17 = __webpack_require__(92399),
|
|
117242
|
-
|
|
117255
|
+
SelectAlignMiddle = _require17.SelectAlignMiddle;
|
|
117243
117256
|
var _require18 = __webpack_require__(92399),
|
|
117244
|
-
|
|
117257
|
+
SelectAlignLeft = _require18.SelectAlignLeft;
|
|
117245
117258
|
var _require19 = __webpack_require__(92399),
|
|
117246
|
-
|
|
117247
|
-
|
|
117248
|
-
|
|
117249
|
-
|
|
117259
|
+
showProcessDesc = _require19.showProcessDesc;
|
|
117260
|
+
var _require20 = __webpack_require__(92399),
|
|
117261
|
+
showAddNodeBtn = _require20.showAddNodeBtn,
|
|
117262
|
+
addNodeBtnClick = _require20.addNodeBtnClick;
|
|
117250
117263
|
var _require21 = __webpack_require__(53978),
|
|
117251
|
-
|
|
117264
|
+
ecinc_process = _require21.ecinc_process;
|
|
117265
|
+
var _require22 = __webpack_require__(53978),
|
|
117266
|
+
ecinc_attr_panel = _require22.ecinc_attr_panel;
|
|
117252
117267
|
|
|
117253
117268
|
/* harmony default export */ var Centervue_type_script_lang_js = ({
|
|
117254
117269
|
components: {},
|
|
@@ -117413,7 +117428,20 @@ var _require21 = __webpack_require__(53978),
|
|
|
117413
117428
|
initWfDesigner: function initWfDesigner() {
|
|
117414
117429
|
var _this4 = this;
|
|
117415
117430
|
Centervue_type_script_lang_js_jsPlumb.importDefaults({
|
|
117416
|
-
ReattachConnections: true
|
|
117431
|
+
ReattachConnections: true,
|
|
117432
|
+
// 统一拖拽创建的新连接线类型(Flowchart折线,与createPathLine一致)
|
|
117433
|
+
Connector: ['Flowchart', {
|
|
117434
|
+
stub: [10, 50],
|
|
117435
|
+
alwaysRespectStubs: false,
|
|
117436
|
+
midpoint: 0,
|
|
117437
|
+
cornerRadius: 5
|
|
117438
|
+
}],
|
|
117439
|
+
// 统一连接线颜色(覆盖 loadGlobalStyle 的绿色 PaintStyle)
|
|
117440
|
+
PaintStyle: {
|
|
117441
|
+
stroke: '#438eb9',
|
|
117442
|
+
strokeWidth: 2
|
|
117443
|
+
}
|
|
117444
|
+
// 注:不设 ConnectionOverlays,避免与 createConnect 的 overlays 叠加产生双箭头
|
|
117417
117445
|
});
|
|
117418
117446
|
Centervue_type_script_lang_js_jsPlumb.connectorClass += ' line_path';
|
|
117419
117447
|
this.dragLineObj.init = function (connection, thisConnect) {
|
|
@@ -117724,6 +117752,14 @@ var _require21 = __webpack_require__(53978),
|
|
|
117724
117752
|
}
|
|
117725
117753
|
}
|
|
117726
117754
|
|
|
117755
|
+
// 标记所有锚点端点为原始源端点(区别于连接端点)
|
|
117756
|
+
jquery_default()('.process').each(function () {
|
|
117757
|
+
var eps = Centervue_type_script_lang_js_jsPlumb.getEndpoints(this);
|
|
117758
|
+
for (var i = 0; i < eps.length; i++) {
|
|
117759
|
+
if (eps[i].isSource) eps[i]._wfOrigSource = true;
|
|
117760
|
+
}
|
|
117761
|
+
});
|
|
117762
|
+
|
|
117727
117763
|
//节点连接线
|
|
117728
117764
|
createPathLine(_this4.connectsArr);
|
|
117729
117765
|
setTimeout(function () {
|
|
@@ -117780,6 +117816,32 @@ var _require21 = __webpack_require__(53978),
|
|
|
117780
117816
|
jquery_default()('.process').bind('click', function (el) {
|
|
117781
117817
|
jquery_default()('.process').removeClass('seled');
|
|
117782
117818
|
jquery_default()(el.currentTarget).addClass('seled');
|
|
117819
|
+
// === 新增:点击节点时清除连接 active 状态 ===
|
|
117820
|
+
jquery_default()('.jtk-connector').removeClass('wf-conn-active');
|
|
117821
|
+
jquery_default()('.jtk-endpoint').removeClass('wf-ep-active');
|
|
117822
|
+
// 移除所有连接端点的永久标记,让锚点 (z-index:5) 置顶,捕获拖拽事件
|
|
117823
|
+
jquery_default()('.jtk-endpoint').removeClass('wf-conn-ep');
|
|
117824
|
+
_this4._connectionSelected = false; // 取消连接线选中
|
|
117825
|
+
// === 清除所有端点的选中样式,恢复端点默认属性 ===
|
|
117826
|
+
jquery_default()('.jtk-endpoint').removeClass('wf-sel-ep');
|
|
117827
|
+
resetAllAnchorEndpoints(jquery_default()('.process').get());
|
|
117828
|
+
resetAllConnectionEndpoints(); // 显式重置所有连接端点(恢复移动模式)
|
|
117829
|
+
// 重置所有连接线为默认蓝色(清除连接选中红色)
|
|
117830
|
+
var resetConns = Centervue_type_script_lang_js_jsPlumb.getAllConnections();
|
|
117831
|
+
for (var ri = 0; ri < resetConns.length; ri++) {
|
|
117832
|
+
resetConns[ri].setPaintStyle(CONNECTION_DEFAULT_STYLE);
|
|
117833
|
+
}
|
|
117834
|
+
|
|
117835
|
+
// === 选中节点:锚点变红 + 锚点端点启用源模式 ===
|
|
117836
|
+
// 1. 锚点端点加 wf-sel-ep 类(CSS 控制红色)
|
|
117837
|
+
var selEndpoints = Centervue_type_script_lang_js_jsPlumb.getEndpoints(el.currentTarget);
|
|
117838
|
+
for (var ei = 0; ei < selEndpoints.length; ei++) {
|
|
117839
|
+
jquery_default()(selEndpoints[ei].canvas).addClass('wf-sel-ep');
|
|
117840
|
+
}
|
|
117841
|
+
// 2. 选中节点的锚点端点启用源模式(拖拽时创建新连接而非移动已有连接)
|
|
117842
|
+
setAnchorCreateMode(selEndpoints);
|
|
117843
|
+
// 3. 选中节点的连接端点也启用创建模式(拖拽连接端点也生成新连接)
|
|
117844
|
+
setConnectionEndpointCreateMode(el.currentTarget);
|
|
117783
117845
|
_this4.getHistroyNodes();
|
|
117784
117846
|
var curId = jquery_default()(el.currentTarget).attr('id');
|
|
117785
117847
|
for (var j = 0; j < _this.wflow.nodes.length; j++) {
|
|
@@ -117821,6 +117883,8 @@ var _require21 = __webpack_require__(53978),
|
|
|
117821
117883
|
|
|
117822
117884
|
// 获取需要等待的环节
|
|
117823
117885
|
_this4.getWaitNode();
|
|
117886
|
+
// === 新增:清除连接选中状态,保证节点/连接互斥 ===
|
|
117887
|
+
_this4.curPath = {};
|
|
117824
117888
|
_this4.emitData();
|
|
117825
117889
|
});
|
|
117826
117890
|
|
|
@@ -117852,54 +117916,44 @@ var _require21 = __webpack_require__(53978),
|
|
|
117852
117916
|
|
|
117853
117917
|
/** *************************************路径数据******************************************/
|
|
117854
117918
|
|
|
117919
|
+
// beforeDrag: 从空锚点/未满端点拖拽新建连接时触发(jpc==null,源模式走此分支)
|
|
117920
|
+
Centervue_type_script_lang_js_jsPlumb.bind('beforeDrag', function (info) {
|
|
117921
|
+
// 连接线被选中时,阻止从锚点创建新连接(用户应拖拽连接端点来移动)
|
|
117922
|
+
if (_this4._connectionSelected) {
|
|
117923
|
+
return false;
|
|
117924
|
+
}
|
|
117925
|
+
clearEndpointFillStyle(info.endpoint);
|
|
117926
|
+
return true;
|
|
117927
|
+
});
|
|
117928
|
+
// beforeStartDetach: 从已有连接线的端点拖拽时触发(jpc!=null)
|
|
117929
|
+
Centervue_type_script_lang_js_jsPlumb.bind('beforeStartDetach', function (info) {
|
|
117930
|
+
clearEndpointFillStyle(info.endpoint);
|
|
117931
|
+
return true;
|
|
117932
|
+
});
|
|
117933
|
+
|
|
117934
|
+
// connectionDrag、connectionMoved、connectionDetached、connectionAborted、mousedown、click
|
|
117935
|
+
// 已提取到 drag.js 的 bindConnectionEvents(vm) 函数
|
|
117936
|
+
bindConnectionEvents(this);
|
|
117937
|
+
|
|
117855
117938
|
// 1路径创建
|
|
117856
117939
|
Centervue_type_script_lang_js_jsPlumb.bind('connection', function (info) {
|
|
117857
|
-
|
|
117858
|
-
|
|
117859
|
-
|
|
117940
|
+
// 已移除 setHoverPaintStyle({ stroke: 'red' }):避免节点选中时悬停连接线端点导致变红
|
|
117941
|
+
|
|
117942
|
+
// 设置新连接线样式 + 检查并添加 Arrow 箭头覆盖
|
|
117943
|
+
applyConnectionStyle(info.connection);
|
|
117944
|
+
checkAndAddArrow(info.connection);
|
|
117945
|
+
|
|
117946
|
+
// === 连接端点标记 + 设置永久源模式(始终可拖拽) ===
|
|
117947
|
+
if (info.connection.endpoints) {
|
|
117948
|
+
info.connection.endpoints.forEach(function (ep) {
|
|
117949
|
+
initConnectionEndpointMode(ep);
|
|
117860
117950
|
});
|
|
117861
117951
|
}
|
|
117862
|
-
info.connection.setPaintStyle({
|
|
117863
|
-
stroke: '#438eb9',
|
|
117864
|
-
fillStyle: '#438eb9',
|
|
117865
|
-
radius: 5
|
|
117866
|
-
});
|
|
117867
117952
|
_this4.dragPath(info);
|
|
117868
117953
|
_this4.ComparePath();
|
|
117869
117954
|
_this4.emitData();
|
|
117870
117955
|
return false;
|
|
117871
117956
|
});
|
|
117872
|
-
Centervue_type_script_lang_js_jsPlumb.bind('mousedown', function (connection, originalEvent) {
|
|
117873
|
-
var thisConnect = {};
|
|
117874
|
-
var len = _this4.connectsArr.length;
|
|
117875
|
-
for (var i = 0; i < len; i++) {
|
|
117876
|
-
if (connection.id === _this4.connectsArr[i].ConnectionId) {
|
|
117877
|
-
thisConnect = _this4.connectsArr[i];
|
|
117878
|
-
break;
|
|
117879
|
-
}
|
|
117880
|
-
}
|
|
117881
|
-
_this4.clickPath(connection); //, 此事件会跟click事件冲突,可以把事件函数放在这里执行
|
|
117882
|
-
// 设置路径颜色
|
|
117883
|
-
_this4.dragLineObj.init(connection, thisConnect);
|
|
117884
|
-
_this4.emitData();
|
|
117885
|
-
// $scope.$apply();
|
|
117886
|
-
return false;
|
|
117887
|
-
});
|
|
117888
|
-
// 2路径点击
|
|
117889
|
-
Centervue_type_script_lang_js_jsPlumb.bind('click', function (conn, originalEvent) {
|
|
117890
|
-
conn.endpoints[0]._jsPlumb.maxConnections = 1;
|
|
117891
|
-
conn.endpoints[1]._jsPlumb.maxConnections = 1;
|
|
117892
|
-
if (jquery_default()('.panel_path').css('display') !== 'none') {
|
|
117893
|
-
if (!jquery_default()(conn.source).hasClass('dfzjd') && !jquery_default()(conn.source).hasClass('zyjd')) {
|
|
117894
|
-
conn.setPaintStyle({
|
|
117895
|
-
stroke: 'red',
|
|
117896
|
-
corsor: 'move'
|
|
117897
|
-
});
|
|
117898
|
-
}
|
|
117899
|
-
}
|
|
117900
|
-
jquery_default()('.process').removeClass('seled');
|
|
117901
|
-
return false;
|
|
117902
|
-
});
|
|
117903
117957
|
|
|
117904
117958
|
// 3自定义右键菜单
|
|
117905
117959
|
jquery_default()(document).bind('contextmenu', function () {
|
|
@@ -118000,16 +118054,35 @@ var _require21 = __webpack_require__(53978),
|
|
|
118000
118054
|
jquery_default()(document).click(function () {
|
|
118001
118055
|
jquery_default()('#centextMenu').remove();
|
|
118002
118056
|
});
|
|
118003
|
-
|
|
118004
|
-
|
|
118005
|
-
|
|
118006
|
-
|
|
118007
|
-
|
|
118008
|
-
|
|
118009
|
-
|
|
118010
|
-
|
|
118011
|
-
|
|
118012
|
-
|
|
118057
|
+
|
|
118058
|
+
// connectionDrag/connectionDragStop 已提取到 bindConnectionEvents
|
|
118059
|
+
|
|
118060
|
+
jquery_default()('#center').click(function (e) {
|
|
118061
|
+
// 若点击目标是节点或其子元素,不取消节点选中(事件已冒泡处理)
|
|
118062
|
+
if (jquery_default()(e.target).closest('.process').length > 0) return;
|
|
118063
|
+
// 若点击目标是连接线或端点,不取消选中(由 jsPlumb mousedown/click 事件处理)
|
|
118064
|
+
if (jquery_default()(e.target).closest('.jtk-connector, .jtk-endpoint').length > 0) return;
|
|
118065
|
+
// 拖拽创建连接后的 mouseup 会触发 click,此时不应取消选中
|
|
118066
|
+
if (_this4._connectionDragging) {
|
|
118067
|
+
_this4._connectionDragging = false;
|
|
118068
|
+
return;
|
|
118069
|
+
}
|
|
118070
|
+
// 点击画布空白处:清除节点选中和连接选中
|
|
118071
|
+
var prevSelNodes2 = jquery_default()('.process.seled');
|
|
118072
|
+
jquery_default()('.process').removeClass('seled');
|
|
118073
|
+
jquery_default()('.jtk-endpoint').removeClass('wf-sel-ep');
|
|
118074
|
+
_this4._connectionSelected = false; // 取消连接线选中
|
|
118075
|
+
// 仅重置之前选中的节点的锚点端点源模式标志
|
|
118076
|
+
resetAllAnchorEndpoints(prevSelNodes2.get());
|
|
118077
|
+
resetAllConnectionEndpoints(); // 显式重置所有连接端点(恢复移动模式)
|
|
118078
|
+
var allConns2 = Centervue_type_script_lang_js_jsPlumb.getAllConnections();
|
|
118079
|
+
for (var ci = 0; ci < allConns2.length; ci++) {
|
|
118080
|
+
allConns2[ci].setDetachable(true);
|
|
118081
|
+
}
|
|
118082
|
+
// 清除连接选中状态
|
|
118083
|
+
jquery_default()('.jtk-connector').removeClass('wf-conn-active');
|
|
118084
|
+
for (var i = 0; i < allConns2.length; i++) {
|
|
118085
|
+
applyConnectionStyle(allConns2[i]);
|
|
118013
118086
|
}
|
|
118014
118087
|
_this4.ComparePath();
|
|
118015
118088
|
if (window.getSelection) {
|
|
@@ -118021,17 +118094,21 @@ var _require21 = __webpack_require__(53978),
|
|
|
118021
118094
|
jquery_default()('#centextMenu').remove();
|
|
118022
118095
|
}
|
|
118023
118096
|
var aConn = Centervue_type_script_lang_js_jsPlumb.getConnections(); // 获取容器所有的连接线
|
|
118097
|
+
// 清除所有连接选中状态
|
|
118098
|
+
jquery_default()('.jtk-connector').removeClass('wf-conn-active');
|
|
118024
118099
|
for (var i = 0; i < aConn.length; i++) {
|
|
118025
118100
|
if (aConn[i].id !== conn.id) {
|
|
118026
|
-
aConn[i]
|
|
118027
|
-
stroke: '#438eb9',
|
|
118028
|
-
fillStyle: '#438eb9',
|
|
118029
|
-
radius: 5
|
|
118030
|
-
});
|
|
118101
|
+
applyConnectionStyle(aConn[i]);
|
|
118031
118102
|
} else {
|
|
118032
118103
|
aConn[i].setPaintStyle({
|
|
118033
|
-
stroke: 'red'
|
|
118104
|
+
stroke: 'red',
|
|
118105
|
+
strokeWidth: 2
|
|
118034
118106
|
});
|
|
118107
|
+
jquery_default()(aConn[i].connector.canvas).closest('.jtk-connector').addClass('wf-conn-active');
|
|
118108
|
+
// 将选中连接线 DOM 移到父容器末尾,确保最上层渲染
|
|
118109
|
+
var _ctxConn = jquery_default()(aConn[i].connector.canvas).closest('.jtk-connector');
|
|
118110
|
+
var _ctxParent = _ctxConn.parent();
|
|
118111
|
+
if (_ctxParent.length > 0) _ctxParent[0].appendChild(_ctxConn[0]);
|
|
118035
118112
|
}
|
|
118036
118113
|
}
|
|
118037
118114
|
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 style="height:2px;margin:8px 0 8px 8px;width:90%;background-color:#F5F7FA"/><a class="change_label_left" href="javascript:;">标签靠前</a>' + '<a class="change_label_center" href="javascript:;">标签居中</a><a class="change_label_right" href="javascript:;">标签靠后</a></div>';
|
|
@@ -118401,6 +118478,29 @@ var _require21 = __webpack_require__(53978),
|
|
|
118401
118478
|
},
|
|
118402
118479
|
dragPath: function dragPath(pathTarget) {
|
|
118403
118480
|
var _this7 = this;
|
|
118481
|
+
// 同一节点并且同一锚点时:删除已创建的连接线并退出
|
|
118482
|
+
if (pathTarget.sourceId === pathTarget.targetId) {
|
|
118483
|
+
var sameAnchor = false;
|
|
118484
|
+
try {
|
|
118485
|
+
// 获取源端点和目标端点的锚点位置进行比较
|
|
118486
|
+
var srcEp = pathTarget.sourceEndpoint || pathTarget.connection && pathTarget.connection.endpoints && pathTarget.connection.endpoints[0];
|
|
118487
|
+
var tgtEp = pathTarget.targetEndpoint || pathTarget.connection && pathTarget.connection.endpoints && pathTarget.connection.endpoints[1];
|
|
118488
|
+
if (srcEp && tgtEp && srcEp.anchor && tgtEp.anchor) {
|
|
118489
|
+
sameAnchor = srcEp.anchor.x === tgtEp.anchor.x && srcEp.anchor.y === tgtEp.anchor.y;
|
|
118490
|
+
}
|
|
118491
|
+
} catch (e) {
|
|
118492
|
+
// 无法获取锚点信息时默认视为同锚点
|
|
118493
|
+
sameAnchor = true;
|
|
118494
|
+
}
|
|
118495
|
+
if (sameAnchor) {
|
|
118496
|
+
try {
|
|
118497
|
+
Centervue_type_script_lang_js_jsPlumb.deleteConnection(pathTarget.connection);
|
|
118498
|
+
} catch (e) {
|
|
118499
|
+
console.warn('dragPath: deleteConnection failed', e);
|
|
118500
|
+
}
|
|
118501
|
+
return;
|
|
118502
|
+
}
|
|
118503
|
+
}
|
|
118404
118504
|
this.curPath = {};
|
|
118405
118505
|
for (var p = 0; p < this.pathObj.length; p++) {
|
|
118406
118506
|
if (this.pathObj[p].id === pathTarget.connection._jsPlumb.parameters.pathId) {
|
|
@@ -118879,9 +118979,12 @@ var _require21 = __webpack_require__(53978),
|
|
|
118879
118979
|
validatePath: function validatePath(target, msg, allConn) {
|
|
118880
118980
|
this.curPath = target;
|
|
118881
118981
|
this.emitData();
|
|
118982
|
+
// 清除所有连接选中状态
|
|
118983
|
+
jquery_default()('.jtk-connector').removeClass('wf-conn-active');
|
|
118882
118984
|
for (var i = 0; i < allConn.length; i++) {
|
|
118883
118985
|
allConn[i].setPaintStyle({
|
|
118884
|
-
stroke: '#42546c'
|
|
118986
|
+
stroke: '#42546c',
|
|
118987
|
+
strokeWidth: 2
|
|
118885
118988
|
});
|
|
118886
118989
|
}
|
|
118887
118990
|
var found = false;
|
|
@@ -118889,8 +118992,14 @@ var _require21 = __webpack_require__(53978),
|
|
|
118889
118992
|
if (target.id === allConn[u].id) {
|
|
118890
118993
|
ecinc_process.connection = allConn[u];
|
|
118891
118994
|
allConn[u].setPaintStyle({
|
|
118892
|
-
stroke: 'red'
|
|
118995
|
+
stroke: 'red',
|
|
118996
|
+
strokeWidth: 2
|
|
118893
118997
|
});
|
|
118998
|
+
jquery_default()(allConn[u].connector.canvas).closest('.jtk-connector').addClass('wf-conn-active');
|
|
118999
|
+
// 将选中连接线 DOM 移到父容器末尾,确保最上层渲染
|
|
119000
|
+
var _vpConn = jquery_default()(allConn[u].connector.canvas).closest('.jtk-connector');
|
|
119001
|
+
var _vpParent = _vpConn.parent();
|
|
119002
|
+
if (_vpParent.length > 0) _vpParent[0].appendChild(_vpConn[0]);
|
|
118894
119003
|
found = true;
|
|
118895
119004
|
break;
|
|
118896
119005
|
}
|
|
@@ -119656,13 +119765,13 @@ var _require21 = __webpack_require__(53978),
|
|
|
119656
119765
|
});
|
|
119657
119766
|
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=script&lang=js
|
|
119658
119767
|
/* harmony default export */ var components_Centervue_type_script_lang_js = (Centervue_type_script_lang_js);
|
|
119659
|
-
// 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/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=0&id=
|
|
119660
|
-
var
|
|
119661
|
-
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=0&id=
|
|
119768
|
+
// 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/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=0&id=5c4008d4&prod&scoped=true&lang=scss
|
|
119769
|
+
var Centervue_type_style_index_0_id_5c4008d4_prod_scoped_true_lang_scss = __webpack_require__(31099);
|
|
119770
|
+
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=0&id=5c4008d4&prod&scoped=true&lang=scss
|
|
119662
119771
|
|
|
119663
|
-
// 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/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=1&id=
|
|
119664
|
-
var
|
|
119665
|
-
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=1&id=
|
|
119772
|
+
// 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/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=1&id=5c4008d4&prod&lang=scss
|
|
119773
|
+
var Centervue_type_style_index_1_id_5c4008d4_prod_lang_scss = __webpack_require__(32011);
|
|
119774
|
+
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=1&id=5c4008d4&prod&lang=scss
|
|
119666
119775
|
|
|
119667
119776
|
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue
|
|
119668
119777
|
|
|
@@ -119676,11 +119785,11 @@ var Centervue_type_style_index_1_id_cf0d53e6_prod_lang_scss = __webpack_require_
|
|
|
119676
119785
|
|
|
119677
119786
|
var Center_component = (0,componentNormalizer/* default */.A)(
|
|
119678
119787
|
components_Centervue_type_script_lang_js,
|
|
119679
|
-
|
|
119680
|
-
|
|
119788
|
+
Centervue_type_template_id_5c4008d4_scoped_true_render,
|
|
119789
|
+
Centervue_type_template_id_5c4008d4_scoped_true_staticRenderFns,
|
|
119681
119790
|
false,
|
|
119682
119791
|
null,
|
|
119683
|
-
"
|
|
119792
|
+
"5c4008d4",
|
|
119684
119793
|
null
|
|
119685
119794
|
|
|
119686
119795
|
)
|
|
@@ -124978,8 +125087,8 @@ var Tab3_component = (0,componentNormalizer/* default */.A)(
|
|
|
124978
125087
|
)
|
|
124979
125088
|
|
|
124980
125089
|
/* harmony default export */ var Tab3 = (Tab3_component.exports);
|
|
124981
|
-
;// 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/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=template&id=
|
|
124982
|
-
var
|
|
125090
|
+
;// 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/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=template&id=4c5b4236&scoped=true
|
|
125091
|
+
var Tab4vue_type_template_id_4c5b4236_scoped_true_render = function render() {
|
|
124983
125092
|
var _vm = this,
|
|
124984
125093
|
_c = _vm._self._c;
|
|
124985
125094
|
return _vm.wflow.wfdEvents ? _c('div', {
|
|
@@ -125070,7 +125179,7 @@ var Tab4vue_type_template_id_1251ec84_scoped_true_render = function render() {
|
|
|
125070
125179
|
})])]);
|
|
125071
125180
|
})], 2)])]) : _vm._e();
|
|
125072
125181
|
};
|
|
125073
|
-
var
|
|
125182
|
+
var Tab4vue_type_template_id_4c5b4236_scoped_true_staticRenderFns = [function () {
|
|
125074
125183
|
var _vm = this,
|
|
125075
125184
|
_c = _vm._self._c;
|
|
125076
125185
|
return _c('tr', [_c('th', {
|
|
@@ -125098,7 +125207,7 @@ var Tab4vue_type_template_id_1251ec84_scoped_true_staticRenderFns = [function ()
|
|
|
125098
125207
|
}, [_vm._v("操作")])]);
|
|
125099
125208
|
}];
|
|
125100
125209
|
|
|
125101
|
-
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=template&id=
|
|
125210
|
+
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=template&id=4c5b4236&scoped=true
|
|
125102
125211
|
|
|
125103
125212
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=script&lang=js
|
|
125104
125213
|
/* harmony default export */ var Tab4vue_type_script_lang_js = ({
|
|
@@ -125257,9 +125366,9 @@ var Tab4vue_type_template_id_1251ec84_scoped_true_staticRenderFns = [function ()
|
|
|
125257
125366
|
});
|
|
125258
125367
|
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=script&lang=js
|
|
125259
125368
|
/* harmony default export */ var PanelProcess_Tab4vue_type_script_lang_js = (Tab4vue_type_script_lang_js);
|
|
125260
|
-
// 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/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=style&index=0&id=
|
|
125261
|
-
var
|
|
125262
|
-
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=style&index=0&id=
|
|
125369
|
+
// 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/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=style&index=0&id=4c5b4236&prod&scoped=true&lang=scss
|
|
125370
|
+
var Tab4vue_type_style_index_0_id_4c5b4236_prod_scoped_true_lang_scss = __webpack_require__(93270);
|
|
125371
|
+
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=style&index=0&id=4c5b4236&prod&scoped=true&lang=scss
|
|
125263
125372
|
|
|
125264
125373
|
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue
|
|
125265
125374
|
|
|
@@ -125272,11 +125381,11 @@ var Tab4vue_type_style_index_0_id_1251ec84_prod_scoped_true_lang_scss = __webpac
|
|
|
125272
125381
|
|
|
125273
125382
|
var Tab4_component = (0,componentNormalizer/* default */.A)(
|
|
125274
125383
|
PanelProcess_Tab4vue_type_script_lang_js,
|
|
125275
|
-
|
|
125276
|
-
|
|
125384
|
+
Tab4vue_type_template_id_4c5b4236_scoped_true_render,
|
|
125385
|
+
Tab4vue_type_template_id_4c5b4236_scoped_true_staticRenderFns,
|
|
125277
125386
|
false,
|
|
125278
125387
|
null,
|
|
125279
|
-
"
|
|
125388
|
+
"4c5b4236",
|
|
125280
125389
|
null
|
|
125281
125390
|
|
|
125282
125391
|
)
|
|
@@ -137906,6 +138015,7 @@ var Base64 = {
|
|
|
137906
138015
|
"use strict";
|
|
137907
138016
|
__webpack_require__.r(__webpack_exports__);
|
|
137908
138017
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
138018
|
+
/* harmony export */ bindConnectionEvents: function() { return /* binding */ bindConnectionEvents; },
|
|
137909
138019
|
/* harmony export */ dragAddNode: function() { return /* binding */ dragAddNode; },
|
|
137910
138020
|
/* harmony export */ dragLine: function() { return /* binding */ dragLine; },
|
|
137911
138021
|
/* harmony export */ getPathXyData: function() { return /* binding */ getPathXyData; },
|
|
@@ -137988,7 +138098,7 @@ function nodeEvents(id, wflow, $scope) {
|
|
|
137988
138098
|
$scope.$confirm('您是否确认删除选择的节点?', $scope.$t('common.confirm'), {
|
|
137989
138099
|
type: 'warning'
|
|
137990
138100
|
}).then(function () {
|
|
137991
|
-
var targetId, sourceId;
|
|
138101
|
+
var targetId, sourceId, targetPrevPath, sourceNextPath;
|
|
137992
138102
|
for (var i = 0; i < allConnection.length; i++) {
|
|
137993
138103
|
// targetId,sourceId
|
|
137994
138104
|
if (allConnection[i].targetId == curNodeId) {
|
|
@@ -137996,11 +138106,19 @@ function nodeEvents(id, wflow, $scope) {
|
|
|
137996
138106
|
pathArr.push(allConnection[i]);
|
|
137997
138107
|
}
|
|
137998
138108
|
if (allConnection[i].sourceId == curNodeId) {
|
|
137999
|
-
targetId = allConnection[i].
|
|
138109
|
+
targetId = allConnection[i].targetId;
|
|
138000
138110
|
pathArr.push(allConnection[i]);
|
|
138001
138111
|
}
|
|
138002
138112
|
}
|
|
138003
|
-
|
|
138113
|
+
for (var i = 0; i < allConnection.length; i++) {
|
|
138114
|
+
if (allConnection[i].targetId == targetId && allConnection[i].sourceId !== curNodeId) {
|
|
138115
|
+
targetPrevPath = true;
|
|
138116
|
+
}
|
|
138117
|
+
if (allConnection[i].sourceId == sourceId && allConnection[i].targetId !== curNodeId) {
|
|
138118
|
+
sourceNextPath = true;
|
|
138119
|
+
}
|
|
138120
|
+
}
|
|
138121
|
+
if (targetId && sourceId && (!sourceNextPath || !targetPrevPath)) {
|
|
138004
138122
|
var pathLine = {
|
|
138005
138123
|
ConnectionId: '',
|
|
138006
138124
|
PageSourceId: '',
|
|
@@ -138749,6 +138867,145 @@ function viewLinkedProcess(wflow, curNodeId) {
|
|
|
138749
138867
|
}
|
|
138750
138868
|
|
|
138751
138869
|
|
|
138870
|
+
// ========== 连接线交互事件绑定(从 Center/index.vue 提取) ==========
|
|
138871
|
+
|
|
138872
|
+
/**
|
|
138873
|
+
* 选中连接线:设置样式 + DOM 重排序 + 端点高亮
|
|
138874
|
+
* @param {Object} vm - Vue 实例
|
|
138875
|
+
* @param {Object} connection - jsPlumb 连接对象
|
|
138876
|
+
*/
|
|
138877
|
+
function selectConnection(vm, connection) {
|
|
138878
|
+
// === 连接 active 状态管理 ===
|
|
138879
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()('.jtk-connector').removeClass('wf-conn-active');
|
|
138880
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()('.jtk-endpoint').removeClass('wf-ep-active');
|
|
138881
|
+
|
|
138882
|
+
// 找到连接的 SVG 容器添加 wf-conn-active
|
|
138883
|
+
if (connection.connector && connection.connector.canvas) {
|
|
138884
|
+
var $selectedConn = jquery__WEBPACK_IMPORTED_MODULE_0___default()(connection.connector.canvas).closest('.jtk-connector');
|
|
138885
|
+
$selectedConn.addClass('wf-conn-active');
|
|
138886
|
+
// 将选中的连接线 DOM 元素移到父容器末尾,确保在最上层渲染
|
|
138887
|
+
var connParent = $selectedConn.parent();
|
|
138888
|
+
if (connParent.length > 0) {
|
|
138889
|
+
connParent[0].appendChild($selectedConn[0]);
|
|
138890
|
+
}
|
|
138891
|
+
}
|
|
138892
|
+
|
|
138893
|
+
// 选中连接线显示红色(setPaintStyle + setTimeout 双重保障)
|
|
138894
|
+
if (!jquery__WEBPACK_IMPORTED_MODULE_0___default()(connection.source).hasClass('dfzjd') && !jquery__WEBPACK_IMPORTED_MODULE_0___default()(connection.source).hasClass('zyjd')) {
|
|
138895
|
+
connection.setPaintStyle({
|
|
138896
|
+
stroke: 'red',
|
|
138897
|
+
strokeWidth: 2
|
|
138898
|
+
});
|
|
138899
|
+
setTimeout(function () {
|
|
138900
|
+
connection.setPaintStyle({
|
|
138901
|
+
stroke: 'red',
|
|
138902
|
+
strokeWidth: 2
|
|
138903
|
+
});
|
|
138904
|
+
}, 0);
|
|
138905
|
+
}
|
|
138906
|
+
|
|
138907
|
+
// 给连接两端端点添加 wf-ep-active 和 wf-conn-ep
|
|
138908
|
+
if (connection.endpoints) {
|
|
138909
|
+
connection.endpoints.forEach(function (ep) {
|
|
138910
|
+
if (ep.canvas) {
|
|
138911
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(ep.canvas).addClass('wf-ep-active');
|
|
138912
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(ep.canvas).addClass('wf-conn-ep');
|
|
138913
|
+
}
|
|
138914
|
+
});
|
|
138915
|
+
}
|
|
138916
|
+
}
|
|
138917
|
+
|
|
138918
|
+
/**
|
|
138919
|
+
* 绑定所有连接线交互事件(mousedown/click/moved/detached/aborted/drag)
|
|
138920
|
+
* @param {Object} vm - Vue 实例
|
|
138921
|
+
*/
|
|
138922
|
+
function bindConnectionEvents(vm) {
|
|
138923
|
+
// connectionDetached: 连接线断开时重置端点标志
|
|
138924
|
+
jsPlumb.bind('connectionDetached', function (info) {
|
|
138925
|
+
if (info.connection && info.connection.endpoints) {
|
|
138926
|
+
info.connection.endpoints.forEach(function (ep) {
|
|
138927
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetEndpointSourceFlags)(ep);
|
|
138928
|
+
});
|
|
138929
|
+
}
|
|
138930
|
+
});
|
|
138931
|
+
|
|
138932
|
+
// connectionAborted: 拖拽连接线取消时重置端点状态
|
|
138933
|
+
jsPlumb.bind('connectionAborted', function (info) {
|
|
138934
|
+
if (info.connection && info.connection.endpoints) {
|
|
138935
|
+
info.connection.endpoints.forEach(function (ep) {
|
|
138936
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetEndpointSourceFlags)(ep);
|
|
138937
|
+
});
|
|
138938
|
+
}
|
|
138939
|
+
});
|
|
138940
|
+
|
|
138941
|
+
// mousedown: 连接线点击选中(状态管理 + 样式设置 + 节点清除)
|
|
138942
|
+
jsPlumb.bind('mousedown', function (connection, originalEvent) {
|
|
138943
|
+
var thisConnect = {};
|
|
138944
|
+
var len = vm.connectsArr.length;
|
|
138945
|
+
for (var i = 0; i < len; i++) {
|
|
138946
|
+
if (connection.id === vm.connectsArr[i].ConnectionId) {
|
|
138947
|
+
thisConnect = vm.connectsArr[i];
|
|
138948
|
+
break;
|
|
138949
|
+
}
|
|
138950
|
+
}
|
|
138951
|
+
|
|
138952
|
+
// === 节点/连接互斥,清除节点选中 ===
|
|
138953
|
+
var prevSelNodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.process.seled');
|
|
138954
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()('.process').removeClass('seled');
|
|
138955
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()('.jtk-endpoint').removeClass('wf-sel-ep');
|
|
138956
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetAllAnchorEndpoints)(prevSelNodes.get());
|
|
138957
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetAllConnectionEndpoints)(); // 显式重置所有连接端点(恢复移动模式)
|
|
138958
|
+
|
|
138959
|
+
var allConns = jsPlumb.getAllConnections();
|
|
138960
|
+
for (var ci = 0; ci < allConns.length; ci++) {
|
|
138961
|
+
allConns[ci].setDetachable(true);
|
|
138962
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.applyConnectionStyle)(allConns[ci]);
|
|
138963
|
+
}
|
|
138964
|
+
vm._connectionSelected = true;
|
|
138965
|
+
vm.clickPath(connection);
|
|
138966
|
+
vm.dragLineObj.init(connection, thisConnect);
|
|
138967
|
+
selectConnection(vm, connection);
|
|
138968
|
+
vm.emitData();
|
|
138969
|
+
return false;
|
|
138970
|
+
});
|
|
138971
|
+
|
|
138972
|
+
// click: 路径面板展示(状态管理由 mousedown 处理)
|
|
138973
|
+
jsPlumb.bind('click', function (conn) {
|
|
138974
|
+
vm.clickPath(conn);
|
|
138975
|
+
return false;
|
|
138976
|
+
});
|
|
138977
|
+
|
|
138978
|
+
// connectionMoved: 连接端点拖移完成后同步数据模型 + 重置端点状态
|
|
138979
|
+
jsPlumb.bind('connectionMoved', function (info) {
|
|
138980
|
+
vm.dragPath({
|
|
138981
|
+
connection: info.connection,
|
|
138982
|
+
source: info.connection.source,
|
|
138983
|
+
target: info.connection.target,
|
|
138984
|
+
sourceId: info.connection.sourceId,
|
|
138985
|
+
targetId: info.connection.targetId
|
|
138986
|
+
});
|
|
138987
|
+
var idx = info.index;
|
|
138988
|
+
if (idx === 0 && info.originalSourceEndpoint) {
|
|
138989
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetEndpointSourceFlags)(info.originalSourceEndpoint);
|
|
138990
|
+
} else if (idx === 1 && info.originalTargetEndpoint) {
|
|
138991
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetEndpointSourceFlags)(info.originalTargetEndpoint);
|
|
138992
|
+
}
|
|
138993
|
+
vm.ComparePath();
|
|
138994
|
+
vm.emitData();
|
|
138995
|
+
});
|
|
138996
|
+
|
|
138997
|
+
// connectionDrag: 拖拽创建新连接线时强制设置样式 + 拖拽状态追踪
|
|
138998
|
+
jsPlumb.bind('connectionDrag', function (conn) {
|
|
138999
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.applyConnectionStyle)(conn);
|
|
139000
|
+
vm._connectionDragging = true;
|
|
139001
|
+
});
|
|
139002
|
+
|
|
139003
|
+
// connectionDragStop: 拖拽停止后重置状态标志
|
|
139004
|
+
jsPlumb.bind('connectionDragStop', function () {
|
|
139005
|
+
vm._connectionDragging = false;
|
|
139006
|
+
});
|
|
139007
|
+
}
|
|
139008
|
+
|
|
138752
139009
|
/***/ }),
|
|
138753
139010
|
|
|
138754
139011
|
/***/ 93782:
|
|
@@ -138757,12 +139014,31 @@ function viewLinkedProcess(wflow, curNodeId) {
|
|
|
138757
139014
|
"use strict";
|
|
138758
139015
|
__webpack_require__.r(__webpack_exports__);
|
|
138759
139016
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
139017
|
+
/* harmony export */ CONNECTION_DEFAULT_STYLE: function() { return /* binding */ CONNECTION_DEFAULT_STYLE; },
|
|
139018
|
+
/* harmony export */ applyConnectionStyle: function() { return /* binding */ applyConnectionStyle; },
|
|
139019
|
+
/* harmony export */ checkAndAddArrow: function() { return /* binding */ checkAndAddArrow; },
|
|
139020
|
+
/* harmony export */ clearEndpointFillStyle: function() { return /* binding */ clearEndpointFillStyle; },
|
|
138760
139021
|
/* harmony export */ createConnect: function() { return /* binding */ createConnect; },
|
|
138761
139022
|
/* harmony export */ createPathLine: function() { return /* binding */ createPathLine; },
|
|
138762
|
-
/* harmony export */ hollowCircle: function() { return /* binding */ hollowCircle; }
|
|
139023
|
+
/* harmony export */ hollowCircle: function() { return /* binding */ hollowCircle; },
|
|
139024
|
+
/* harmony export */ initConnectionEndpointMode: function() { return /* binding */ initConnectionEndpointMode; },
|
|
139025
|
+
/* harmony export */ resetAllAnchorEndpoints: function() { return /* binding */ resetAllAnchorEndpoints; },
|
|
139026
|
+
/* harmony export */ resetAllConnectionEndpoints: function() { return /* binding */ resetAllConnectionEndpoints; },
|
|
139027
|
+
/* harmony export */ resetEndpointSourceFlags: function() { return /* binding */ resetEndpointSourceFlags; },
|
|
139028
|
+
/* harmony export */ setAnchorCreateMode: function() { return /* binding */ setAnchorCreateMode; },
|
|
139029
|
+
/* harmony export */ setConnectionEndpointCreateMode: function() { return /* binding */ setConnectionEndpointCreateMode; }
|
|
138763
139030
|
/* harmony export */ });
|
|
139031
|
+
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74692);
|
|
139032
|
+
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
|
139033
|
+
|
|
138764
139034
|
var jsPlumb = window.jsPlumb;
|
|
138765
139035
|
|
|
139036
|
+
// ========== 连接线默认样式常量 ==========
|
|
139037
|
+
var CONNECTION_DEFAULT_STYLE = {
|
|
139038
|
+
stroke: '#438eb9',
|
|
139039
|
+
strokeWidth: 2
|
|
139040
|
+
};
|
|
139041
|
+
|
|
138766
139042
|
// 端点样式,(修改变量名)
|
|
138767
139043
|
var hollowCircle = {
|
|
138768
139044
|
DragOptions: {
|
|
@@ -138806,7 +139082,7 @@ var hollowCircle = {
|
|
|
138806
139082
|
cssClass: 'line_text',
|
|
138807
139083
|
events: {
|
|
138808
139084
|
mousedown: function mousedown(labelOverlay, originalEvent) {
|
|
138809
|
-
jsPlumb.draggable(
|
|
139085
|
+
jsPlumb.draggable(jquery__WEBPACK_IMPORTED_MODULE_0___default()('.line_text'));
|
|
138810
139086
|
},
|
|
138811
139087
|
mouseout: function mouseout() {
|
|
138812
139088
|
return false;
|
|
@@ -138822,6 +139098,8 @@ function createConnect(conn, connector, anchors) {
|
|
|
138822
139098
|
target: conn.targetId || conn.PageTargetId,
|
|
138823
139099
|
anchors: anchors,
|
|
138824
139100
|
editable: true,
|
|
139101
|
+
connectionsDetachable: true,
|
|
139102
|
+
// 允许拖移连接端点(jsPlumb 2.15.6 默认即为 true,此处显式声明)
|
|
138825
139103
|
parameters: {
|
|
138826
139104
|
pathId: conn.id || conn.ConnectionId
|
|
138827
139105
|
},
|
|
@@ -138841,11 +139119,25 @@ function createConnect(conn, connector, anchors) {
|
|
|
138841
139119
|
}]
|
|
138842
139120
|
});
|
|
138843
139121
|
if (a) {
|
|
138844
|
-
|
|
138845
|
-
|
|
138846
|
-
|
|
138847
|
-
|
|
138848
|
-
|
|
139122
|
+
// 安全检查:确保连接内部状态完整后再设标签,防止 _jsPlumb.overlays 为 null
|
|
139123
|
+
if (a._jsPlumb && a._jsPlumb.overlays) {
|
|
139124
|
+
a.setLabel({
|
|
139125
|
+
label: conn.label || ' ',
|
|
139126
|
+
cssClass: 'line_text',
|
|
139127
|
+
location: conn.labelLocation || 0.5
|
|
139128
|
+
});
|
|
139129
|
+
} else {
|
|
139130
|
+
// 连接对象未完全初始化,延迟设置标签
|
|
139131
|
+
setTimeout(function () {
|
|
139132
|
+
if (a._jsPlumb && a._jsPlumb.overlays) {
|
|
139133
|
+
a.setLabel({
|
|
139134
|
+
label: conn.label || ' ',
|
|
139135
|
+
cssClass: 'line_text',
|
|
139136
|
+
location: conn.labelLocation || 0.5
|
|
139137
|
+
});
|
|
139138
|
+
}
|
|
139139
|
+
}, 100);
|
|
139140
|
+
}
|
|
138849
139141
|
a.labelLocation = conn.labelLocation;
|
|
138850
139142
|
} else {
|
|
138851
139143
|
console.log('createConnect failure', a);
|
|
@@ -138972,19 +139264,261 @@ function createPathLine(connectsArr) {
|
|
|
138972
139264
|
stub: [0, 0]
|
|
138973
139265
|
}];
|
|
138974
139266
|
}
|
|
138975
|
-
var sourceNode =
|
|
139267
|
+
var sourceNode = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + connectsArr[j].PageSourceId);
|
|
138976
139268
|
if (sourceNode.hasClass('dfzjd') || sourceNode.hasClass('zyjd')) {
|
|
138977
139269
|
connectsArr[j].label = '';
|
|
138978
139270
|
}
|
|
138979
139271
|
try {
|
|
138980
139272
|
createConnect(connectsArr[j], connector, anchors);
|
|
138981
139273
|
} catch (e) {
|
|
138982
|
-
|
|
139274
|
+
try {
|
|
139275
|
+
createConnect(connectsArr[j], connector, anchors);
|
|
139276
|
+
} catch (e2) {
|
|
139277
|
+
console.warn('createConnect failed after retry:', e2.message, connectsArr[j]);
|
|
139278
|
+
}
|
|
138983
139279
|
}
|
|
138984
139280
|
}
|
|
138985
139281
|
}
|
|
138986
139282
|
|
|
138987
139283
|
|
|
139284
|
+
// ========== 端点源模式工具函数 ==========
|
|
139285
|
+
|
|
139286
|
+
/**
|
|
139287
|
+
* 重置端点的临时源模式标志,恢复默认拖拽行为
|
|
139288
|
+
* - 连接端点:恢复到移动模式(isSource=true, maxConnections=1, dragAllowedWhenFull=true)
|
|
139289
|
+
* - 锚点端点:完全重置源模式(isSource=false)
|
|
139290
|
+
*/
|
|
139291
|
+
function resetEndpointSourceFlags(ep) {
|
|
139292
|
+
if (!ep) return;
|
|
139293
|
+
// 连接端点优先处理(无论是否有 _wfOrigSource,连接端点必须恢复到移动模式状态)
|
|
139294
|
+
if (ep._wfConnEp && ep._wfSourceMode) {
|
|
139295
|
+
delete ep.isTemporarySource;
|
|
139296
|
+
ep.isSource = true;
|
|
139297
|
+
ep.isTemporarySource = true;
|
|
139298
|
+
ep.dragAllowedWhenFull = true;
|
|
139299
|
+
if (ep._jsPlumb) {
|
|
139300
|
+
ep._jsPlumb.maxConnections = 1; // isFull()=true → 拖拽进入移动模式
|
|
139301
|
+
}
|
|
139302
|
+
if (ep._wfOrigPaintStyle) {
|
|
139303
|
+
for (var rk in ep._wfOrigPaintStyle) {
|
|
139304
|
+
ep._jsPlumb.paintStyle[rk] = ep._wfOrigPaintStyle[rk];
|
|
139305
|
+
}
|
|
139306
|
+
delete ep._jsPlumb.paintStyle.fill;
|
|
139307
|
+
if (ep._wfOrigPaintStyle.fill) ep._jsPlumb.paintStyle.fill = ep._wfOrigPaintStyle.fill;
|
|
139308
|
+
ep._jsPlumb.paintStyleInUse = ep._jsPlumb.paintStyle;
|
|
139309
|
+
delete ep._wfOrigPaintStyle;
|
|
139310
|
+
}
|
|
139311
|
+
if (ep._wfOrigGetPaintStyle) {
|
|
139312
|
+
ep.getPaintStyle = ep._wfOrigGetPaintStyle;
|
|
139313
|
+
delete ep._wfOrigGetPaintStyle;
|
|
139314
|
+
}
|
|
139315
|
+
delete ep._wfSourceMode;
|
|
139316
|
+
return;
|
|
139317
|
+
}
|
|
139318
|
+
if (ep._wfOrigSource) return; // 原始锚点源端点不重置
|
|
139319
|
+
delete ep.isTemporarySource;
|
|
139320
|
+
if (!ep._wfSourceMode) return;
|
|
139321
|
+
// 非连接端点(普通锚点端点):完全重置源模式
|
|
139322
|
+
ep.isSource = false;
|
|
139323
|
+
ep.connectionsDetachable = true;
|
|
139324
|
+
ep.dragAllowedWhenFull = false;
|
|
139325
|
+
if (ep._jsPlumb) {
|
|
139326
|
+
if (ep._wfOrigMaxConnections !== undefined) {
|
|
139327
|
+
ep._jsPlumb.maxConnections = ep._wfOrigMaxConnections;
|
|
139328
|
+
delete ep._wfOrigMaxConnections;
|
|
139329
|
+
}
|
|
139330
|
+
if (ep._wfOrigPaintStyle) {
|
|
139331
|
+
for (var rk in ep._wfOrigPaintStyle) {
|
|
139332
|
+
ep._jsPlumb.paintStyle[rk] = ep._wfOrigPaintStyle[rk];
|
|
139333
|
+
}
|
|
139334
|
+
delete ep._jsPlumb.paintStyle.fill;
|
|
139335
|
+
if (ep._wfOrigPaintStyle.fill) ep._jsPlumb.paintStyle.fill = ep._wfOrigPaintStyle.fill;
|
|
139336
|
+
ep._jsPlumb.paintStyleInUse = ep._jsPlumb.paintStyle;
|
|
139337
|
+
delete ep._wfOrigPaintStyle;
|
|
139338
|
+
}
|
|
139339
|
+
if (ep._wfOrigGetPaintStyle) {
|
|
139340
|
+
ep.getPaintStyle = ep._wfOrigGetPaintStyle;
|
|
139341
|
+
delete ep._wfOrigGetPaintStyle;
|
|
139342
|
+
}
|
|
139343
|
+
delete ep._wfSourceMode;
|
|
139344
|
+
}
|
|
139345
|
+
delete ep.connector;
|
|
139346
|
+
delete ep.connectorOverlays;
|
|
139347
|
+
delete ep.connectorStyle;
|
|
139348
|
+
}
|
|
139349
|
+
|
|
139350
|
+
/**
|
|
139351
|
+
* 清除端点 paintStyle 中的 fill/outline 属性(防止拖拽时箭头填充异常)
|
|
139352
|
+
*/
|
|
139353
|
+
function clearEndpointFillStyle(ep) {
|
|
139354
|
+
if (ep && ep._jsPlumb && ep._jsPlumb.paintStyle) {
|
|
139355
|
+
delete ep._jsPlumb.paintStyle.fill;
|
|
139356
|
+
delete ep._jsPlumb.paintStyle.outlineStroke;
|
|
139357
|
+
delete ep._jsPlumb.paintStyle.outlineWidth;
|
|
139358
|
+
ep._jsPlumb.paintStyle.fill = 'none';
|
|
139359
|
+
ep._jsPlumb.paintStyleInUse = ep._jsPlumb.paintStyle;
|
|
139360
|
+
}
|
|
139361
|
+
if (ep && ep.connectorStyle) {
|
|
139362
|
+
delete ep.connectorStyle.fill;
|
|
139363
|
+
}
|
|
139364
|
+
}
|
|
139365
|
+
|
|
139366
|
+
// ========== 连接线样式工具函数 ==========
|
|
139367
|
+
|
|
139368
|
+
/**
|
|
139369
|
+
* 设置连接线默认蓝色样式
|
|
139370
|
+
*/
|
|
139371
|
+
function applyConnectionStyle(connection) {
|
|
139372
|
+
if (connection && connection.setPaintStyle) {
|
|
139373
|
+
connection.setPaintStyle(CONNECTION_DEFAULT_STYLE);
|
|
139374
|
+
}
|
|
139375
|
+
}
|
|
139376
|
+
|
|
139377
|
+
/**
|
|
139378
|
+
* 检查连接线是否已有 Arrow 箭头覆盖,无则补充
|
|
139379
|
+
*/
|
|
139380
|
+
function checkAndAddArrow(connection) {
|
|
139381
|
+
var overlays = connection.getOverlays();
|
|
139382
|
+
var hasArrow = false;
|
|
139383
|
+
for (var key in overlays) {
|
|
139384
|
+
if (overlays[key] && overlays[key].type === 'Arrow') {
|
|
139385
|
+
hasArrow = true;
|
|
139386
|
+
break;
|
|
139387
|
+
}
|
|
139388
|
+
}
|
|
139389
|
+
if (!hasArrow) {
|
|
139390
|
+
connection.addOverlay(['Arrow', {
|
|
139391
|
+
width: 10,
|
|
139392
|
+
length: 10,
|
|
139393
|
+
location: 1
|
|
139394
|
+
}]);
|
|
139395
|
+
}
|
|
139396
|
+
}
|
|
139397
|
+
|
|
139398
|
+
// ========== 端点模式工具函数 ==========
|
|
139399
|
+
|
|
139400
|
+
/**
|
|
139401
|
+
* 初始化连接端点的永久源模式(始终可拖拽移动连接线)
|
|
139402
|
+
* maxConnections=1 配合 isFull()=true 确保拖拽进入移动模式
|
|
139403
|
+
* 若端点已处于节点选中的创建模式(_wfSourceMode),保留 maxConnections 不变
|
|
139404
|
+
*/
|
|
139405
|
+
function initConnectionEndpointMode(ep) {
|
|
139406
|
+
if (ep.canvas) {
|
|
139407
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(ep.canvas).addClass('wf-conn-ep'); // 永久标记:连接端点 z-index:6,高于锚点 z-index:5
|
|
139408
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(ep.canvas).addClass('wf-ep-active'); // 新连接立即 active,z-index:7 置顶可拖拽
|
|
139409
|
+
}
|
|
139410
|
+
ep._wfConnEp = true;
|
|
139411
|
+
ep.isSource = true;
|
|
139412
|
+
ep.isTemporarySource = true;
|
|
139413
|
+
ep.dragAllowedWhenFull = true;
|
|
139414
|
+
if (ep._jsPlumb) {
|
|
139415
|
+
if (ep._wfSourceMode) {
|
|
139416
|
+
// 端点已处于创建模式(节点选中时设置),保留 maxConnections 不变
|
|
139417
|
+
// 确保用户可以连续从同一节点拖拽创建多条连接线
|
|
139418
|
+
return;
|
|
139419
|
+
}
|
|
139420
|
+
if (ep._wfOrigMaxConnections === undefined) {
|
|
139421
|
+
ep._wfOrigMaxConnections = ep._jsPlumb.maxConnections;
|
|
139422
|
+
}
|
|
139423
|
+
ep._jsPlumb.maxConnections = 1;
|
|
139424
|
+
}
|
|
139425
|
+
}
|
|
139426
|
+
|
|
139427
|
+
/**
|
|
139428
|
+
* 设置选中节点的锚点端点为创建模式(拖拽时创建新连接)
|
|
139429
|
+
* maxConnections=-1 确保 connectorSelector 返回的 jpc 不被 isFull 拦截
|
|
139430
|
+
*/
|
|
139431
|
+
function setAnchorCreateMode(eps) {
|
|
139432
|
+
for (var i = 0; i < eps.length; i++) {
|
|
139433
|
+
var aep = eps[i];
|
|
139434
|
+
if (aep && aep._wfOrigSource) {
|
|
139435
|
+
if (!aep._wfSourceMode) {
|
|
139436
|
+
aep._wfSourceMode = true;
|
|
139437
|
+
if (aep._jsPlumb && aep._wfOrigMaxConnections === undefined) {
|
|
139438
|
+
aep._wfOrigMaxConnections = aep._jsPlumb.maxConnections;
|
|
139439
|
+
}
|
|
139440
|
+
}
|
|
139441
|
+
if (aep._jsPlumb) aep._jsPlumb.maxConnections = -1;
|
|
139442
|
+
}
|
|
139443
|
+
}
|
|
139444
|
+
}
|
|
139445
|
+
|
|
139446
|
+
/**
|
|
139447
|
+
* 设置选中节点的连接端点为创建模式(拖拽时生成新连接而非移动已有连接)
|
|
139448
|
+
* maxConnections=2 使 isFull() 返回 false(1 < 2),jsPlumb 进入创建模式
|
|
139449
|
+
*/
|
|
139450
|
+
function setConnectionEndpointCreateMode(node) {
|
|
139451
|
+
var nodeConns = jsPlumb.getConnections({
|
|
139452
|
+
source: node
|
|
139453
|
+
}).concat(jsPlumb.getConnections({
|
|
139454
|
+
target: node
|
|
139455
|
+
}));
|
|
139456
|
+
for (var ci = 0; ci < nodeConns.length; ci++) {
|
|
139457
|
+
if (!nodeConns[ci].endpoints) continue;
|
|
139458
|
+
for (var ei = 0; ei < nodeConns[ci].endpoints.length; ei++) {
|
|
139459
|
+
var ep = nodeConns[ci].endpoints[ei];
|
|
139460
|
+
if (ep && !ep._wfSourceMode) {
|
|
139461
|
+
ep._wfSourceMode = true;
|
|
139462
|
+
ep.isSource = true;
|
|
139463
|
+
ep.isTemporarySource = true;
|
|
139464
|
+
ep.dragAllowedWhenFull = true;
|
|
139465
|
+
if (ep._jsPlumb) {
|
|
139466
|
+
if (ep._wfOrigMaxConnections === undefined) {
|
|
139467
|
+
ep._wfOrigMaxConnections = ep._jsPlumb.maxConnections;
|
|
139468
|
+
}
|
|
139469
|
+
ep._jsPlumb.maxConnections = 99;
|
|
139470
|
+
// 清除 paintStyle 中的填充属性(避免拖拽时箭头填充异常)
|
|
139471
|
+
if (!ep._wfOrigPaintStyle) {
|
|
139472
|
+
ep._wfOrigPaintStyle = {};
|
|
139473
|
+
for (var pk in ep._jsPlumb.paintStyle) {
|
|
139474
|
+
ep._wfOrigPaintStyle[pk] = ep._jsPlumb.paintStyle[pk];
|
|
139475
|
+
}
|
|
139476
|
+
}
|
|
139477
|
+
delete ep._jsPlumb.paintStyle.fill;
|
|
139478
|
+
delete ep._jsPlumb.paintStyle.outlineStroke;
|
|
139479
|
+
delete ep._jsPlumb.paintStyle.outlineWidth;
|
|
139480
|
+
ep._jsPlumb.paintStyle.fill = 'none';
|
|
139481
|
+
ep._jsPlumb.paintStyleInUse = ep._jsPlumb.paintStyle;
|
|
139482
|
+
if (!ep._wfOrigGetPaintStyle) {
|
|
139483
|
+
ep._wfOrigGetPaintStyle = ep.getPaintStyle;
|
|
139484
|
+
}
|
|
139485
|
+
ep.getPaintStyle = function () {
|
|
139486
|
+
return ep._jsPlumb.paintStyle;
|
|
139487
|
+
};
|
|
139488
|
+
}
|
|
139489
|
+
}
|
|
139490
|
+
}
|
|
139491
|
+
}
|
|
139492
|
+
}
|
|
139493
|
+
|
|
139494
|
+
/**
|
|
139495
|
+
* 重置所有节点的锚点端点(恢复默认状态)
|
|
139496
|
+
* 遍历节点数组,获取每个节点的锚点端点并调用 resetEndpointSourceFlags
|
|
139497
|
+
*/
|
|
139498
|
+
function resetAllAnchorEndpoints(nodes) {
|
|
139499
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
139500
|
+
var eps = jsPlumb.getEndpoints(nodes[i]);
|
|
139501
|
+
for (var j = 0; j < eps.length; j++) {
|
|
139502
|
+
eps[j].setEnabled(true);
|
|
139503
|
+
resetEndpointSourceFlags(eps[j]);
|
|
139504
|
+
}
|
|
139505
|
+
}
|
|
139506
|
+
}
|
|
139507
|
+
|
|
139508
|
+
/**
|
|
139509
|
+
* 重置所有连接线的连接端点(恢复移动模式 maxConnections=1)
|
|
139510
|
+
* 通过 getAllConnections 遍历,确保连接端点被显式重置
|
|
139511
|
+
*/
|
|
139512
|
+
function resetAllConnectionEndpoints() {
|
|
139513
|
+
var allConns = jsPlumb.getAllConnections();
|
|
139514
|
+
for (var i = 0; i < allConns.length; i++) {
|
|
139515
|
+
if (!allConns[i].endpoints) continue;
|
|
139516
|
+
for (var j = 0; j < allConns[i].endpoints.length; j++) {
|
|
139517
|
+
resetEndpointSourceFlags(allConns[i].endpoints[j]);
|
|
139518
|
+
}
|
|
139519
|
+
}
|
|
139520
|
+
}
|
|
139521
|
+
|
|
138988
139522
|
/***/ }),
|
|
138989
139523
|
|
|
138990
139524
|
/***/ 53978:
|
|
@@ -167133,7 +167667,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".setting .header[data-v-8cadfe0a]{widt
|
|
|
167133
167667
|
|
|
167134
167668
|
/***/ }),
|
|
167135
167669
|
|
|
167136
|
-
/***/
|
|
167670
|
+
/***/ 73313:
|
|
167137
167671
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
167138
167672
|
|
|
167139
167673
|
"use strict";
|
|
@@ -167147,14 +167681,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167147
167681
|
|
|
167148
167682
|
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()));
|
|
167149
167683
|
// Module
|
|
167150
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
167684
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-5c4008d4] .el-scrollbar__wrap{overflow-x:auto}#center[data-v-5c4008d4]{background-image:-webkit-gradient(linear,left top,right top,color-stop(3%,rgba(50,0,0,.05)),color-stop(3%,transparent)),-webkit-gradient(linear,left bottom,left top,color-stop(3%,rgba(50,0,0,.05)),color-stop(3%,transparent));background-image:linear-gradient(90deg,rgba(50,0,0,.05) 3%,transparent 0),linear-gradient(1turn,rgba(50,0,0,.05) 3%,transparent 0);background-size:20px 20px;background-repeat:repeat;background-position:0 0}#center .add-node-btn[data-v-5c4008d4]{position:relative;margin:-15px -10px;z-index:4000;display:none}#center .insert-node-btn[data-v-5c4008d4]{position:fixed;margin:-15px -10px;z-index:4000;display:none}li[data-v-5c4008d4],ul[data-v-5c4008d4]{list-style:none}", ""]);
|
|
167151
167685
|
// Exports
|
|
167152
167686
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
167153
167687
|
|
|
167154
167688
|
|
|
167155
167689
|
/***/ }),
|
|
167156
167690
|
|
|
167157
|
-
/***/
|
|
167691
|
+
/***/ 96141:
|
|
167158
167692
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
167159
167693
|
|
|
167160
167694
|
"use strict";
|
|
@@ -167168,7 +167702,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167168
167702
|
|
|
167169
167703
|
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()));
|
|
167170
167704
|
// Module
|
|
167171
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".process-desc-container{width:350px;border:1px solid #dadada;background-color:#f8f8ff;font-size:14px;z-index:1001}.process-desc-container .label{padding-left:5px;padding-right:5px;height:30px;line-height:30px;cursor:pointer}.process-desc-container .label span{float:left}.process-desc-container .label img{margin-top:3px;float:right}.process-desc-container .content{border-top:1px solid #dadada;background-color:#fff}.process-desc-container .content textarea{width:100%;min-height:120px;border:0}", ""]);
|
|
167705
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".line_text{cursor:pointer;position:absolute;left:0;top:0;font-size:14px}.evt_line{color:orange}.dropdown-menu{width:160px;display:none;position:fixed;z-index:9999;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;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{padding:5px 20px;line-height:2;white-space:nowrap;color:#333}.dropdown-menu li:hover{background:#f5f5f5}.process svg:hover path:last-child{fill:red}.process path{stroke-width:2;cursor:pointer}.process path:last-child{fill:#438eb9}.process circle{fill:#438eb9;stroke:none}.move,.move path{cursor:move}.process-desc-container{width:350px;border:1px solid #dadada;background-color:#f8f8ff;font-size:14px;z-index:1001}.process-desc-container .label{padding-left:5px;padding-right:5px;height:30px;line-height:30px;cursor:pointer}.process-desc-container .label span{float:left}.process-desc-container .label img{margin-top:3px;float:right}.process-desc-container .content{border-top:1px solid #dadada;background-color:#fff}.process-desc-container .content textarea{width:100%;min-height:120px;border:0}.jtk-endpoint{z-index:3}.seled .jtk-endpoint{z-index:5}.jtk-endpoint.wf-conn-ep{z-index:6}.jtk-connector.wf-conn-active{z-index:1999!important}.jtk-connector.wf-conn-active path{stroke:red!important;stroke-width:2px!important}.jtk-connector:not(.wf-conn-active){z-index:4}.jtk-endpoint.wf-ep-active{z-index:2001!important}.jtk-endpoint.jtk-drag-active{z-index:10!important}.jtk-endpoint circle{fill:#438eb9!important;stroke:none!important}.jtk-endpoint.wf-sel-ep circle{fill:red!important}", ""]);
|
|
167172
167706
|
// Exports
|
|
167173
167707
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
167174
167708
|
|
|
@@ -167740,7 +168274,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "table[data-v-981ff2e2]{border-collapse
|
|
|
167740
168274
|
|
|
167741
168275
|
/***/ }),
|
|
167742
168276
|
|
|
167743
|
-
/***/
|
|
168277
|
+
/***/ 21660:
|
|
167744
168278
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
167745
168279
|
|
|
167746
168280
|
"use strict";
|
|
@@ -167754,7 +168288,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167754
168288
|
|
|
167755
168289
|
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()));
|
|
167756
168290
|
// Module
|
|
167757
|
-
___CSS_LOADER_EXPORT___.push([module.id, "table[data-v-
|
|
168291
|
+
___CSS_LOADER_EXPORT___.push([module.id, "table[data-v-4c5b4236]{border-collapse:collapse}table tr td[data-v-4c5b4236]{border:1px solid #e2e2e2;padding:5px;height:40px;color:#555;font-size:12px;line-height:30px}table tr td em[data-v-4c5b4236]{color:red}table tr .tdBg[data-v-4c5b4236]{font-weight:700}[data-v-4c5b4236] .el-input__inner{height:35px!important;line-height:35px!important;font-size:12px}[data-v-4c5b4236] .el-textarea__inner{font-size:12px}[data-v-4c5b4236] .el-select{width:100%;display:inline-block;position:relative}[data-v-4c5b4236] .el-checkbox__label,[data-v-4c5b4236] .el-radio__label{font-size:12px;padding-left:5px}.tableBox table[data-v-4c5b4236]{border-collapse:collapse}.tableBox table th[data-v-4c5b4236]{background:#f2f2f2;border-bottom:none;background-image:-webkit-gradient(linear,left top,left bottom,from(#f8f8f8),to(#ececec));background-image:linear-gradient(180deg,#f8f8f8 0,#ececec);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\"#fff8f8f8\",endColorstr=\"#ffececec\",GradientType=0);font-size:12px;padding:8px;line-height:1.42857143;color:#555;border:1px solid #e2e2e2}.tableBox table th .addbtn[data-v-4c5b4236],.tableBox table th .addbtn i[data-v-4c5b4236]{color:#337ab7;font-weight:700}.tableBox table tr[data-v-4c5b4236]:nth-of-type(odd){background:#f9f9f9}.tableBox table tr[data-v-4c5b4236]{cursor:pointer}.tableBox table td[data-v-4c5b4236],.tableBox table tr[data-v-4c5b4236]{font-size:12px;border:1px solid #e2e2e2}.tableBox table td[data-v-4c5b4236]{line-height:20px;height:35px;color:#555}.tableBox table td .deleteButton[data-v-4c5b4236]{color:#dd5a43;padding:2px 3px;border:1px solid transparent;border-radius:2px}.tableBox table td .deleteButton[data-v-4c5b4236]:hover{border:1px solid #abbac3;text-decoration:none}.tableBox table td .editButton[data-v-4c5b4236]{color:#478fca;padding:2px 3px;border:1px solid transparent;border-radius:2px}.tableBox table td .editButton[data-v-4c5b4236]:hover{border:1px solid #abbac3;text-decoration:none}.tableBox table td .disabledButton[data-v-4c5b4236]{color:#a9a9a9}.tableBox .el-row[data-v-4c5b4236]{margin-top:10px;padding:10px}.tableBox[data-v-4c5b4236] .el-checkbox__label{display:none}.tableBox .el-button-group[data-v-4c5b4236]{float:right;margin-top:-10px;margin-bottom:10px}.my-addon[data-v-4c5b4236]{position:absolute;top:0;right:0;height:35px;width:35px;background:#eee;text-align:center;line-height:35px;border-radius:5px;border:1px solid #ccc;-webkit-box-sizing:border-box;box-sizing:border-box}[data-v-4c5b4236] .el-button--mini{padding:0!important;line-height:20px;font-size:12px}", ""]);
|
|
167758
168292
|
// Exports
|
|
167759
168293
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
167760
168294
|
|
|
@@ -262436,35 +262970,35 @@ var update = add("0ef0df88", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
262436
262970
|
|
|
262437
262971
|
/***/ }),
|
|
262438
262972
|
|
|
262439
|
-
/***/
|
|
262973
|
+
/***/ 31099:
|
|
262440
262974
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
262441
262975
|
|
|
262442
262976
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
262443
262977
|
|
|
262444
262978
|
// load the styles
|
|
262445
|
-
var content = __webpack_require__(
|
|
262979
|
+
var content = __webpack_require__(73313);
|
|
262446
262980
|
if(content.__esModule) content = content.default;
|
|
262447
262981
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
262448
262982
|
if(content.locals) module.exports = content.locals;
|
|
262449
262983
|
// add the styles to the DOM
|
|
262450
262984
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
262451
|
-
var update = add("
|
|
262985
|
+
var update = add("13933678", content, true, {"sourceMap":false,"shadowMode":false});
|
|
262452
262986
|
|
|
262453
262987
|
/***/ }),
|
|
262454
262988
|
|
|
262455
|
-
/***/
|
|
262989
|
+
/***/ 32011:
|
|
262456
262990
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
262457
262991
|
|
|
262458
262992
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
262459
262993
|
|
|
262460
262994
|
// load the styles
|
|
262461
|
-
var content = __webpack_require__(
|
|
262995
|
+
var content = __webpack_require__(96141);
|
|
262462
262996
|
if(content.__esModule) content = content.default;
|
|
262463
262997
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
262464
262998
|
if(content.locals) module.exports = content.locals;
|
|
262465
262999
|
// add the styles to the DOM
|
|
262466
263000
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
262467
|
-
var update = add("
|
|
263001
|
+
var update = add("a1a82e7c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
262468
263002
|
|
|
262469
263003
|
/***/ }),
|
|
262470
263004
|
|
|
@@ -262884,19 +263418,19 @@ var update = add("06390188", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
262884
263418
|
|
|
262885
263419
|
/***/ }),
|
|
262886
263420
|
|
|
262887
|
-
/***/
|
|
263421
|
+
/***/ 93270:
|
|
262888
263422
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
262889
263423
|
|
|
262890
263424
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
262891
263425
|
|
|
262892
263426
|
// load the styles
|
|
262893
|
-
var content = __webpack_require__(
|
|
263427
|
+
var content = __webpack_require__(21660);
|
|
262894
263428
|
if(content.__esModule) content = content.default;
|
|
262895
263429
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
262896
263430
|
if(content.locals) module.exports = content.locals;
|
|
262897
263431
|
// add the styles to the DOM
|
|
262898
263432
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
262899
|
-
var update = add("
|
|
263433
|
+
var update = add("21408fec", content, true, {"sourceMap":false,"shadowMode":false});
|
|
262900
263434
|
|
|
262901
263435
|
/***/ }),
|
|
262902
263436
|
|
|
@@ -285002,7 +285536,7 @@ var asyncComponents = [
|
|
|
285002
285536
|
}],
|
|
285003
285537
|
// ========== 工作流设计器 + 系统设计器 ==========
|
|
285004
285538
|
['WflowDesigner', function () {
|
|
285005
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285539
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 34797));
|
|
285006
285540
|
}], ['ImportWf', function () {
|
|
285007
285541
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 39934));
|
|
285008
285542
|
}], ['WflowTrace', function () {
|
|
@@ -285078,7 +285612,7 @@ var WflowformModule = function WflowformModule() {
|
|
|
285078
285612
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 50965));
|
|
285079
285613
|
};
|
|
285080
285614
|
var WflowDesignerModule = function WflowDesignerModule() {
|
|
285081
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285615
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 34797));
|
|
285082
285616
|
};
|
|
285083
285617
|
var WflowTraceModule = function WflowTraceModule() {
|
|
285084
285618
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 85197));
|