ecinc-cloud-wappaio 9.7.3 → 9.7.5
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 +1268 -237
- package/lib/ecwappaio.umd.js +1266 -235
- package/lib/ecwappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecwappaio.umd.js
CHANGED
|
@@ -33223,7 +33223,7 @@ var TextRecognition_PDFInjector = PDFInjector;
|
|
|
33223
33223
|
|
|
33224
33224
|
/***/ }),
|
|
33225
33225
|
|
|
33226
|
-
/***/
|
|
33226
|
+
/***/ 16410:
|
|
33227
33227
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
33228
33228
|
|
|
33229
33229
|
"use strict";
|
|
@@ -36667,8 +36667,8 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
36667
36667
|
)
|
|
36668
36668
|
|
|
36669
36669
|
/* harmony default export */ var Attachment = (component.exports);
|
|
36670
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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/ecwapp/Wflowform/src/BodyFile.vue?vue&type=template&id=
|
|
36671
|
-
var
|
|
36670
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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/ecwapp/Wflowform/src/BodyFile.vue?vue&type=template&id=75fd78f9&scoped=true
|
|
36671
|
+
var BodyFilevue_type_template_id_75fd78f9_scoped_true_render = function render() {
|
|
36672
36672
|
var _vm = this,
|
|
36673
36673
|
_c = _vm._self._c;
|
|
36674
36674
|
return _c('div', {
|
|
@@ -37187,7 +37187,7 @@ var BodyFilevue_type_template_id_769fc0cb_scoped_true_render = function render()
|
|
|
37187
37187
|
return _vm.viewBodyfile(attach);
|
|
37188
37188
|
}
|
|
37189
37189
|
}
|
|
37190
|
-
}, [_vm._v(_vm._s(attach.fileVer) + "
|
|
37190
|
+
}, [_vm._v(_vm._s(attach.fileVer) + " ")])]), _c('el-col', {
|
|
37191
37191
|
attrs: {
|
|
37192
37192
|
"span": 6
|
|
37193
37193
|
}
|
|
@@ -37348,7 +37348,7 @@ var BodyFilevue_type_template_id_769fc0cb_scoped_true_render = function render()
|
|
|
37348
37348
|
expression: "'BodyFile.mattersNeeding'"
|
|
37349
37349
|
}],
|
|
37350
37350
|
staticClass: "el-table__cell tdlbl tdw17"
|
|
37351
|
-
}, [_vm._v("注意事项")]), _c('td', {
|
|
37351
|
+
}, [_vm._v("注意事项 ")]), _c('td', {
|
|
37352
37352
|
staticClass: "el-table__cell tdcont tdw83"
|
|
37353
37353
|
}, [_c('div', {
|
|
37354
37354
|
staticStyle: {
|
|
@@ -37415,8 +37415,10 @@ var BodyFilevue_type_template_id_769fc0cb_scoped_true_render = function render()
|
|
|
37415
37415
|
}
|
|
37416
37416
|
}, [_vm._v("确 定")])], 1)], 1) : _vm._e()], 1);
|
|
37417
37417
|
};
|
|
37418
|
-
var
|
|
37418
|
+
var BodyFilevue_type_template_id_75fd78f9_scoped_true_staticRenderFns = [];
|
|
37419
37419
|
|
|
37420
|
+
// EXTERNAL MODULE: ./node_modules/nprogress/nprogress.js
|
|
37421
|
+
var nprogress = __webpack_require__(5947);
|
|
37420
37422
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/BodyFile.vue?vue&type=script&lang=js
|
|
37421
37423
|
function BodyFilevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return BodyFilevue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, BodyFilevue_type_script_lang_js_typeof(o); }
|
|
37422
37424
|
function BodyFilevue_type_script_lang_js_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ BodyFilevue_type_script_lang_js_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == BodyFilevue_type_script_lang_js_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(BodyFilevue_type_script_lang_js_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
@@ -37435,6 +37437,7 @@ function BodyFilevue_type_script_lang_js_toPropertyKey(t) { var i = BodyFilevue_
|
|
|
37435
37437
|
function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != BodyFilevue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != BodyFilevue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
37436
37438
|
|
|
37437
37439
|
|
|
37440
|
+
|
|
37438
37441
|
/* harmony default export */ var BodyFilevue_type_script_lang_js = ({
|
|
37439
37442
|
name: 'BodyFile',
|
|
37440
37443
|
components: {},
|
|
@@ -37551,7 +37554,6 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37551
37554
|
computed: BodyFilevue_type_script_lang_js_objectSpread({}, (0,vuex_esm/* mapGetters */.L8)(['loginUser'])),
|
|
37552
37555
|
watch: {
|
|
37553
37556
|
curTN: function curTN() {
|
|
37554
|
-
this.frmRowCellCount = this.$vnode.context.frmRowCellCount;
|
|
37555
37557
|
if (this.flBodyfile !== null) {
|
|
37556
37558
|
this.setExtName();
|
|
37557
37559
|
} else {
|
|
@@ -37561,7 +37563,8 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37561
37563
|
}
|
|
37562
37564
|
};
|
|
37563
37565
|
}
|
|
37564
|
-
}
|
|
37566
|
+
},
|
|
37567
|
+
flBodyfile: function flBodyfile() {}
|
|
37565
37568
|
},
|
|
37566
37569
|
created: function created() {
|
|
37567
37570
|
this.$bus.on('uploadBodyFile', this.uploadBodyFile);
|
|
@@ -37574,9 +37577,15 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37574
37577
|
this.$bus.off('btnStampBodyFileClick', this.btnStampBodyFileClick);
|
|
37575
37578
|
},
|
|
37576
37579
|
mounted: function mounted() {
|
|
37580
|
+
var _this2 = this;
|
|
37577
37581
|
this.bodyFileTitle = this.bodyFileTitle || this.$tx('ecwapp.Wflowform.BodyFile.fileBody', '文件正文');
|
|
37578
37582
|
this.setExtName();
|
|
37579
|
-
|
|
37583
|
+
var timer = window.setInterval(function () {
|
|
37584
|
+
if (_this2.$vnode.context.frmRowCellCount || _this2.$vnode.context.formEvents) {
|
|
37585
|
+
_this2.frmRowCellCount = _this2.$vnode.context.frmRowCellCount;
|
|
37586
|
+
window.clearInterval(timer); // Clear the interval when the value is set
|
|
37587
|
+
}
|
|
37588
|
+
}, 500);
|
|
37580
37589
|
},
|
|
37581
37590
|
methods: {
|
|
37582
37591
|
uploadBodyFile: function uploadBodyFile(file, fileList) {
|
|
@@ -37590,15 +37599,15 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37590
37599
|
}
|
|
37591
37600
|
},
|
|
37592
37601
|
setExtName: function setExtName() {
|
|
37593
|
-
var
|
|
37602
|
+
var _this3 = this;
|
|
37594
37603
|
if (this.flBodyfile && this.flBodyfile.originalName) {
|
|
37595
37604
|
var oriangialName = this.flBodyfile.originalName.replace('.des', '').replace('.xor', '').replace('.rsm3', '').replace('.sm4', '');
|
|
37596
37605
|
this.extName = oriangialName.substring(oriangialName.lastIndexOf('.')).toLowerCase();
|
|
37597
37606
|
this.flDocfile = null;
|
|
37598
37607
|
this.attachments.forEach(function (attach) {
|
|
37599
|
-
if (attach.fileType === 'BODY' && attach.filePath.indexOf('/noTracks/') === -1 && attach.id !==
|
|
37600
|
-
|
|
37601
|
-
|
|
37608
|
+
if (attach.fileType === 'BODY' && attach.filePath.indexOf('/noTracks/') === -1 && attach.id !== _this3.flBodyfile.id && attach.originalName.split('.')[0] === _this3.flBodyfile.originalName.split('.')[0]) {
|
|
37609
|
+
_this3.flDocfile = attach;
|
|
37610
|
+
_this3.flDocfile.fileName = _this3.flBodyfile.fileName.split('.')[0] + '.' + attach.originalName.split('.')[1];
|
|
37602
37611
|
}
|
|
37603
37612
|
});
|
|
37604
37613
|
if (this.curTN.passenger.firstNodeName === this.curTN.tnNodeName && this.curTN.tnCanEdit === 1) {
|
|
@@ -37607,7 +37616,7 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37607
37616
|
}
|
|
37608
37617
|
},
|
|
37609
37618
|
viewBodyfile: function viewBodyfile(flBodyfile, sign) {
|
|
37610
|
-
var
|
|
37619
|
+
var _this4 = this;
|
|
37611
37620
|
if (flBodyfile.id === undefined) return;
|
|
37612
37621
|
if (this.extName === '.pdf' && (this.viewer === 'pdfjs' || sign === 'sign')) {
|
|
37613
37622
|
var fileurl = "/apigw" + '/' + this.wfAttachUrl + '/downloadById?inline=true&attachIds=' + flBodyfile.id + '&saveAs=' + encodeURI(flBodyfile.fileName);
|
|
@@ -37627,27 +37636,27 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37627
37636
|
if (res.code === 'success') {
|
|
37628
37637
|
var tSessionId = res.body.tSessionId;
|
|
37629
37638
|
var hostname = location.href.split('#')[0];
|
|
37630
|
-
var downUrl = hostname.substring(0, hostname.length - 1) + "/apigw" + '/' +
|
|
37639
|
+
var downUrl = hostname.substring(0, hostname.length - 1) + "/apigw" + '/' + _this4.wfAttachUrl + '/downloadById?attachIds=' + flBodyfile.id + '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&tSessionId=' + tSessionId;
|
|
37631
37640
|
var convertType = '0';
|
|
37632
|
-
if (
|
|
37641
|
+
if (_this4.extName === '.ofd') {
|
|
37633
37642
|
convertType = '21';
|
|
37634
|
-
} else if (
|
|
37643
|
+
} else if (_this4.extName === '.pdf' || _this4.extName === '.pdfx') {
|
|
37635
37644
|
convertType = '20';
|
|
37636
37645
|
}
|
|
37637
|
-
downUrl =
|
|
37638
|
-
if (
|
|
37639
|
-
downUrl += '&' +
|
|
37646
|
+
downUrl = _this4.viewer.split('=')[1] + '/composite/httpfile?convertType=' + convertType + '&fileUrl=' + encodeURIComponent(downUrl);
|
|
37647
|
+
if (_this4.viewerUrlParams) {
|
|
37648
|
+
downUrl += '&' + _this4.viewerUrlParams;
|
|
37640
37649
|
}
|
|
37641
37650
|
if (downUrl.indexOf('&acceptTracks=0') === -1) {
|
|
37642
37651
|
downUrl += '&acceptTracks=0';
|
|
37643
37652
|
}
|
|
37644
|
-
|
|
37653
|
+
_this4.$bus.emit('showDoingDialog', _this4.$tx('ecwapp.Wflowform.BodyFile.downloadingWait', '正在下载文件,请稍候...'));
|
|
37645
37654
|
$.post(downUrl, {}, function (res) {
|
|
37646
|
-
|
|
37655
|
+
_this4.$bus.emit('closeDoingDialog');
|
|
37647
37656
|
if (res.errorcode === 0) {
|
|
37648
37657
|
window.open(res.data.viewUrl);
|
|
37649
37658
|
} else {
|
|
37650
|
-
|
|
37659
|
+
_this4.$alert(res.message, _this4.$tx('common.operationTip', '操作提示'), {
|
|
37651
37660
|
type: 'error'
|
|
37652
37661
|
});
|
|
37653
37662
|
}
|
|
@@ -37667,7 +37676,7 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37667
37676
|
window.open(downUrl);
|
|
37668
37677
|
},
|
|
37669
37678
|
removeBodyfile: function removeBodyfile(flBodyfile) {
|
|
37670
|
-
var
|
|
37679
|
+
var _this5 = this;
|
|
37671
37680
|
var confirmMsg = this.$tx('ecwapp.Wflowform.BodyFile.deleterCurrent', '您是否确认删除当前的文件?');
|
|
37672
37681
|
if (flBodyfile.fileStatus === 8) {
|
|
37673
37682
|
confirmMsg = this.$tx('ecwapp.Wflowform.BodyFile.deleterHistor', '您是否确认删除历史版本文件?');
|
|
@@ -37681,23 +37690,23 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37681
37690
|
while (1) switch (_context.prev = _context.next) {
|
|
37682
37691
|
case 0:
|
|
37683
37692
|
if (flBodyfile.fileStatus !== 8) {
|
|
37684
|
-
document.querySelector('.removeBodyfileIcon').innerHTML =
|
|
37693
|
+
document.querySelector('.removeBodyfileIcon').innerHTML = _this5.$tx('ecwapp.Common.deleting', ' 正在删除...');
|
|
37685
37694
|
}
|
|
37686
37695
|
deleteIds = flBodyfile.id;
|
|
37687
|
-
|
|
37696
|
+
_this5.$http({
|
|
37688
37697
|
method: 'DELETE',
|
|
37689
37698
|
contentType: 'application/x-www-form-urlencoded',
|
|
37690
37699
|
params: {
|
|
37691
37700
|
attachIds: deleteIds
|
|
37692
37701
|
},
|
|
37693
|
-
url:
|
|
37702
|
+
url: _this5.wfAttachUrl + '/delete'
|
|
37694
37703
|
}).then(function (res) {
|
|
37695
37704
|
var $scope = _this.$vnode.context;
|
|
37696
37705
|
if (res.code === 'success') {
|
|
37697
37706
|
if (flBodyfile.fileStatus !== 8) {
|
|
37698
|
-
if (typeof
|
|
37699
|
-
if (typeof
|
|
37700
|
-
if (typeof
|
|
37707
|
+
if (typeof _this5.vo.flBodyFilename !== 'undefined') _this5.vo.flBodyFilename = null;
|
|
37708
|
+
if (typeof _this5.vo.signedFileName !== 'undefined') _this5.vo.signedFileName = null; //盖章文件名
|
|
37709
|
+
if (typeof _this5.vo.sealFileName !== 'undefined') _this5.vo.sealFileName = null; //签章平台文件名
|
|
37701
37710
|
|
|
37702
37711
|
if ($scope.commandBar) {
|
|
37703
37712
|
$scope.commandBar.forEach(function (btn) {
|
|
@@ -37766,7 +37775,7 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37766
37775
|
}
|
|
37767
37776
|
});
|
|
37768
37777
|
} else {
|
|
37769
|
-
|
|
37778
|
+
_this5.viewHistoryfile(_this5.flBodyfile);
|
|
37770
37779
|
}
|
|
37771
37780
|
} else {
|
|
37772
37781
|
_this.$alert(res.message, _this.$tx('common.operationTip', '操作提示'), {
|
|
@@ -37827,13 +37836,13 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37827
37836
|
}
|
|
37828
37837
|
},
|
|
37829
37838
|
selectBodyfile: function selectBodyfile() {
|
|
37830
|
-
var
|
|
37839
|
+
var _this6 = this;
|
|
37831
37840
|
this.$vnode.context.formValidate(function () {
|
|
37832
|
-
|
|
37841
|
+
_this6.$el.querySelector('#btn-upload').click();
|
|
37833
37842
|
});
|
|
37834
37843
|
},
|
|
37835
37844
|
btnStampBodyFileClick: function btnStampBodyFileClick(stampType) {
|
|
37836
|
-
var
|
|
37845
|
+
var _this7 = this;
|
|
37837
37846
|
//table-row表示审批表单行内嵌入,不需要响应btnStampBodyFileClick事件
|
|
37838
37847
|
if (this.bodyFileShow === 'table-row') {
|
|
37839
37848
|
return;
|
|
@@ -37851,7 +37860,7 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37851
37860
|
type: 'warning',
|
|
37852
37861
|
dangerouslyUseHTMLString: true
|
|
37853
37862
|
}).then(function () {
|
|
37854
|
-
|
|
37863
|
+
_this7.isPdfFileStampType = true;
|
|
37855
37864
|
});
|
|
37856
37865
|
} else {
|
|
37857
37866
|
this.isPdfFileStampType = true;
|
|
@@ -37866,7 +37875,7 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37866
37875
|
type: 'warning',
|
|
37867
37876
|
dangerouslyUseHTMLString: true
|
|
37868
37877
|
}).then(function () {
|
|
37869
|
-
|
|
37878
|
+
_this7.isPdfFileStampType = true;
|
|
37870
37879
|
});
|
|
37871
37880
|
} else {
|
|
37872
37881
|
this.isPdfFileStampType = true;
|
|
@@ -37876,7 +37885,7 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37876
37885
|
type: 'warning',
|
|
37877
37886
|
dangerouslyUseHTMLString: true
|
|
37878
37887
|
}).then(function () {
|
|
37879
|
-
|
|
37888
|
+
_this7.isPdfFileStampType = true;
|
|
37880
37889
|
});
|
|
37881
37890
|
}
|
|
37882
37891
|
} else {
|
|
@@ -37921,7 +37930,7 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37921
37930
|
console.log('上传盖章文件', this.bodyfile);
|
|
37922
37931
|
},
|
|
37923
37932
|
StampClick: function StampClick() {
|
|
37924
|
-
var
|
|
37933
|
+
var _this8 = this;
|
|
37925
37934
|
if (!this.haveFile) {
|
|
37926
37935
|
this.$message.warning(this.$tx('ecwapp.Wflowform.BodyFile.cannotSave', '当前还未上传盖章文件,不能保存!'));
|
|
37927
37936
|
return;
|
|
@@ -37932,7 +37941,7 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37932
37941
|
this.$vnode.context.vo.signedFileName = this.flBodysignedFile.file.name;
|
|
37933
37942
|
this.$vnode.context.btnSubmitClick('AutoSave', function (res) {
|
|
37934
37943
|
if (res === true) {
|
|
37935
|
-
|
|
37944
|
+
_this8.isPdfFileStampType = false;
|
|
37936
37945
|
}
|
|
37937
37946
|
});
|
|
37938
37947
|
} catch (error) {
|
|
@@ -37940,12 +37949,12 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37940
37949
|
}
|
|
37941
37950
|
},
|
|
37942
37951
|
viewHistoryfile: function viewHistoryfile(file) {
|
|
37943
|
-
var
|
|
37952
|
+
var _this9 = this;
|
|
37944
37953
|
if (this.bodyFileShow !== 'sidebar-area') {
|
|
37945
37954
|
if (this.$vnode.context.activeName !== 'second') {
|
|
37946
37955
|
this.$vnode.context.activeName = 'second'; //查询历史版本,切换到流程表单的正文标签
|
|
37947
37956
|
this.$nextTick(function () {
|
|
37948
|
-
|
|
37957
|
+
_this9.$bus.emit('viewHistoryfile', file);
|
|
37949
37958
|
});
|
|
37950
37959
|
}
|
|
37951
37960
|
return;
|
|
@@ -37965,17 +37974,17 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
37965
37974
|
url: listdataUrl
|
|
37966
37975
|
}).then(function (res) {
|
|
37967
37976
|
if (res.code === 'success') {
|
|
37968
|
-
|
|
37977
|
+
_this9.historyFiles = res.body.pageInfo.list.filter(function (attach) {
|
|
37969
37978
|
attach.updateTime = (0,utils/* formatTime */.fU)(attach.updateTime);
|
|
37970
37979
|
attach.avatarUrl = "/apigw" + '/base/user/downloadPhotoByAccount?orgCode=' + attach.orgCode + '&account=' + attach.updateBy + '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken();
|
|
37971
37980
|
return true;
|
|
37972
37981
|
});
|
|
37973
37982
|
} else {
|
|
37974
|
-
|
|
37983
|
+
_this9.$alert(res.message, _this9.$tx('common.operationTip', '操作提示'), {
|
|
37975
37984
|
type: 'error'
|
|
37976
37985
|
});
|
|
37977
37986
|
}
|
|
37978
|
-
|
|
37987
|
+
_this9.loading = false;
|
|
37979
37988
|
});
|
|
37980
37989
|
},
|
|
37981
37990
|
moreMenuitemClick: function moreMenuitemClick(command) {
|
|
@@ -38067,9 +38076,9 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
38067
38076
|
});
|
|
38068
38077
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/BodyFile.vue?vue&type=script&lang=js
|
|
38069
38078
|
/* harmony default export */ var src_BodyFilevue_type_script_lang_js = (BodyFilevue_type_script_lang_js);
|
|
38070
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=
|
|
38071
|
-
var
|
|
38072
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=
|
|
38079
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=75fd78f9&prod&scoped=true&lang=scss
|
|
38080
|
+
var BodyFilevue_type_style_index_0_id_75fd78f9_prod_scoped_true_lang_scss = __webpack_require__(26155);
|
|
38081
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=75fd78f9&prod&scoped=true&lang=scss
|
|
38073
38082
|
|
|
38074
38083
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/BodyFile.vue
|
|
38075
38084
|
|
|
@@ -38082,11 +38091,11 @@ var BodyFilevue_type_style_index_0_id_769fc0cb_prod_scoped_true_lang_scss = __we
|
|
|
38082
38091
|
|
|
38083
38092
|
var BodyFile_component = (0,componentNormalizer/* default */.A)(
|
|
38084
38093
|
src_BodyFilevue_type_script_lang_js,
|
|
38085
|
-
|
|
38086
|
-
|
|
38094
|
+
BodyFilevue_type_template_id_75fd78f9_scoped_true_render,
|
|
38095
|
+
BodyFilevue_type_template_id_75fd78f9_scoped_true_staticRenderFns,
|
|
38087
38096
|
false,
|
|
38088
38097
|
null,
|
|
38089
|
-
"
|
|
38098
|
+
"75fd78f9",
|
|
38090
38099
|
null
|
|
38091
38100
|
|
|
38092
38101
|
)
|
|
@@ -38475,8 +38484,8 @@ var CommandBar_component = (0,componentNormalizer/* default */.A)(
|
|
|
38475
38484
|
)
|
|
38476
38485
|
|
|
38477
38486
|
/* harmony default export */ var CommandBar = (CommandBar_component.exports);
|
|
38478
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=template&id=
|
|
38479
|
-
var
|
|
38487
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=template&id=52885f54&scoped=true
|
|
38488
|
+
var HandleIdeavue_type_template_id_52885f54_scoped_true_render = function render() {
|
|
38480
38489
|
var _vm = this,
|
|
38481
38490
|
_c = _vm._self._c;
|
|
38482
38491
|
return !_vm.showHistoryIdeaList ? _c('div', {
|
|
@@ -38512,7 +38521,7 @@ var HandleIdeavue_type_template_id_28023d64_scoped_true_render = function render
|
|
|
38512
38521
|
staticClass: "el-table__cell tdlbl",
|
|
38513
38522
|
class: _vm.frmRowCellCount != 24 ? group !== 'ungrouped' ? 'tdw13' : 'tdw17' : group !== 'ungrouped' ? 'span2' : 'span4',
|
|
38514
38523
|
attrs: {
|
|
38515
|
-
"colspan": wfIdea.colspan ? wfIdea.colspan : _vm.frmRowCellCount == 24 ? 4 :
|
|
38524
|
+
"colspan": wfIdea.colspan ? wfIdea.colspan : _vm.frmRowCellCount == 24 ? 4 : 1
|
|
38516
38525
|
}
|
|
38517
38526
|
}, [_vm.curTN.tnIdeaPosition === 2 && wfIdea.ideaLabelName === _vm.curTN.tnIdeaLabelName ? [_c('IdeaInputBox', {
|
|
38518
38527
|
staticStyle: {
|
|
@@ -38658,7 +38667,7 @@ var HandleIdeavue_type_template_id_28023d64_scoped_true_render = function render
|
|
|
38658
38667
|
'span4': _vm.frmRowCellCount == 24
|
|
38659
38668
|
},
|
|
38660
38669
|
attrs: {
|
|
38661
|
-
"colspan": _vm.frmRowCellCount == 24 ? 4 :
|
|
38670
|
+
"colspan": _vm.frmRowCellCount == 24 ? 4 : 1
|
|
38662
38671
|
}
|
|
38663
38672
|
}, [_vm.curTN.tnIdeaPosition === 2 && wfIdea.ideaLabelName === _vm.curTN.tnIdeaLabelName ? [_c('IdeaInputBox', {
|
|
38664
38673
|
staticStyle: {
|
|
@@ -38774,7 +38783,7 @@ var HandleIdeavue_type_template_id_28023d64_scoped_true_render = function render
|
|
|
38774
38783
|
}
|
|
38775
38784
|
}, [_vm._v("删除流程实例意见")])], 2) : _vm._e();
|
|
38776
38785
|
};
|
|
38777
|
-
var
|
|
38786
|
+
var HandleIdeavue_type_template_id_52885f54_scoped_true_staticRenderFns = [];
|
|
38778
38787
|
|
|
38779
38788
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=script&lang=js
|
|
38780
38789
|
/* harmony default export */ var HandleIdeavue_type_script_lang_js = ({
|
|
@@ -39090,7 +39099,7 @@ var HandleIdeavue_type_template_id_28023d64_scoped_true_staticRenderFns = [];
|
|
|
39090
39099
|
}
|
|
39091
39100
|
});
|
|
39092
39101
|
if (groupIdeaList.length === 1) {
|
|
39093
|
-
groupIdeaList[0].colspan = _this4.frmRowCellCount == 24 ? 4 : 2;
|
|
39102
|
+
groupIdeaList[0].colspan = _this4.frmRowCellCount == 24 ? 4 : _this4.labelGroupShowType === 'rowspan' ? 2 : 1;
|
|
39094
39103
|
}
|
|
39095
39104
|
ideaLabelGroup[group] = groupIdeaList;
|
|
39096
39105
|
};
|
|
@@ -39108,6 +39117,7 @@ var HandleIdeavue_type_template_id_28023d64_scoped_true_staticRenderFns = [];
|
|
|
39108
39117
|
ideaSignature.style.maxWidth = '100px';
|
|
39109
39118
|
ideaSignature.style.maxHeight = '50px';
|
|
39110
39119
|
});
|
|
39120
|
+
this.setIdeaLabelWidth(true);
|
|
39111
39121
|
setTimeout(function () {
|
|
39112
39122
|
_this4.setIdeaTextAlign();
|
|
39113
39123
|
_this4.initDeleteIdeaBtn();
|
|
@@ -39117,6 +39127,9 @@ var HandleIdeavue_type_template_id_28023d64_scoped_true_staticRenderFns = [];
|
|
|
39117
39127
|
},
|
|
39118
39128
|
setIdeaTextAlign: function setIdeaTextAlign() {
|
|
39119
39129
|
var ideaDivs = document.querySelectorAll('.tdw83 .ideaDiv');
|
|
39130
|
+
if (ideaDivs.length === 0) {
|
|
39131
|
+
ideaDivs = document.querySelectorAll('.tdw87 .ideaDiv');
|
|
39132
|
+
}
|
|
39120
39133
|
ideaDivs.forEach(function (ideaDiv) {
|
|
39121
39134
|
var p = ideaDiv.querySelector('p[align="center"]');
|
|
39122
39135
|
if (p) {
|
|
@@ -39146,13 +39159,14 @@ var HandleIdeavue_type_template_id_28023d64_scoped_true_staticRenderFns = [];
|
|
|
39146
39159
|
}
|
|
39147
39160
|
});
|
|
39148
39161
|
},
|
|
39149
|
-
setIdeaLabelWidth: function setIdeaLabelWidth() {
|
|
39162
|
+
setIdeaLabelWidth: function setIdeaLabelWidth(inited) {
|
|
39150
39163
|
var _this6 = this;
|
|
39151
39164
|
this.$nextTick(function () {
|
|
39152
|
-
_this6.initUdmIdeaLables();
|
|
39153
|
-
|
|
39154
|
-
|
|
39155
|
-
|
|
39165
|
+
if (!inited) _this6.initUdmIdeaLables();
|
|
39166
|
+
var wform = document.querySelector('.wflow-busiform');
|
|
39167
|
+
if (!wform) wform = document.querySelector('.form-container').querySelector('.el-form');
|
|
39168
|
+
if (wform && wform.querySelector('.tdw13')) {
|
|
39169
|
+
var formWidth = wform.clientWidth * 0.131 + 'px';
|
|
39156
39170
|
document.querySelectorAll('.tdw17').forEach(function (td) {
|
|
39157
39171
|
td.style.width = formWidth;
|
|
39158
39172
|
});
|
|
@@ -39237,13 +39251,13 @@ window.callDeleteIdeaBtnClick = function (ideaId) {
|
|
|
39237
39251
|
};
|
|
39238
39252
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=script&lang=js
|
|
39239
39253
|
/* harmony default export */ var src_HandleIdeavue_type_script_lang_js = (HandleIdeavue_type_script_lang_js);
|
|
39240
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=style&index=0&id=
|
|
39241
|
-
var
|
|
39242
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=style&index=0&id=
|
|
39254
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=style&index=0&id=52885f54&prod&scoped=true&lang=scss
|
|
39255
|
+
var HandleIdeavue_type_style_index_0_id_52885f54_prod_scoped_true_lang_scss = __webpack_require__(1683);
|
|
39256
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=style&index=0&id=52885f54&prod&scoped=true&lang=scss
|
|
39243
39257
|
|
|
39244
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=style&index=1&id=
|
|
39245
|
-
var
|
|
39246
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=style&index=1&id=
|
|
39258
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=style&index=1&id=52885f54&prod&lang=scss
|
|
39259
|
+
var HandleIdeavue_type_style_index_1_id_52885f54_prod_lang_scss = __webpack_require__(53155);
|
|
39260
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/HandleIdea.vue?vue&type=style&index=1&id=52885f54&prod&lang=scss
|
|
39247
39261
|
|
|
39248
39262
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/HandleIdea.vue
|
|
39249
39263
|
|
|
@@ -39257,11 +39271,11 @@ var HandleIdeavue_type_style_index_1_id_28023d64_prod_lang_scss = __webpack_requ
|
|
|
39257
39271
|
|
|
39258
39272
|
var HandleIdea_component = (0,componentNormalizer/* default */.A)(
|
|
39259
39273
|
src_HandleIdeavue_type_script_lang_js,
|
|
39260
|
-
|
|
39261
|
-
|
|
39274
|
+
HandleIdeavue_type_template_id_52885f54_scoped_true_render,
|
|
39275
|
+
HandleIdeavue_type_template_id_52885f54_scoped_true_staticRenderFns,
|
|
39262
39276
|
false,
|
|
39263
39277
|
null,
|
|
39264
|
-
"
|
|
39278
|
+
"52885f54",
|
|
39265
39279
|
null
|
|
39266
39280
|
|
|
39267
39281
|
)
|
|
@@ -116365,7 +116379,7 @@ var UdmGenerator_UserModuleForm = UserModuleForm;
|
|
|
116365
116379
|
|
|
116366
116380
|
/***/ }),
|
|
116367
116381
|
|
|
116368
|
-
/***/
|
|
116382
|
+
/***/ 26687:
|
|
116369
116383
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
116370
116384
|
|
|
116371
116385
|
"use strict";
|
|
@@ -117032,8 +117046,8 @@ var SideBar_component = (0,componentNormalizer/* default */.A)(
|
|
|
117032
117046
|
)
|
|
117033
117047
|
|
|
117034
117048
|
/* harmony default export */ var SideBar = (SideBar_component.exports);
|
|
117035
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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=
|
|
117036
|
-
var
|
|
117049
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
|
|
117050
|
+
var Centervue_type_template_id_5c4008d4_scoped_true_render = function render() {
|
|
117037
117051
|
var _vm = this,
|
|
117038
117052
|
_c = _vm._self._c;
|
|
117039
117053
|
return _c('el-scrollbar', {
|
|
@@ -117152,7 +117166,7 @@ var Centervue_type_template_id_cf0d53e6_scoped_true_render = function render() {
|
|
|
117152
117166
|
}
|
|
117153
117167
|
})], 1)], 1)]);
|
|
117154
117168
|
};
|
|
117155
|
-
var
|
|
117169
|
+
var Centervue_type_template_id_5c4008d4_scoped_true_staticRenderFns = [];
|
|
117156
117170
|
|
|
117157
117171
|
// EXTERNAL MODULE: ./node_modules/jquery/dist/jquery.js
|
|
117158
117172
|
var jquery = __webpack_require__(74692);
|
|
@@ -117197,8 +117211,13 @@ var _require5 = __webpack_require__(31787),
|
|
|
117197
117211
|
dragLine = _require5.dragLine;
|
|
117198
117212
|
var _require6 = __webpack_require__(31787),
|
|
117199
117213
|
dragAddNode = _require6.dragAddNode;
|
|
117214
|
+
var _require7 = __webpack_require__(31787),
|
|
117215
|
+
bindConnectionEvents = _require7.bindConnectionEvents;
|
|
117200
117216
|
// 按需加载 globalStyle 模块
|
|
117201
117217
|
var hollowCircle, createPathLine, createConnect;
|
|
117218
|
+
var resetEndpointSourceFlags, clearEndpointFillStyle, applyConnectionStyle;
|
|
117219
|
+
var checkAndAddArrow, initConnectionEndpointMode, setAnchorCreateMode, setConnectionEndpointCreateMode, resetAllAnchorEndpoints, resetAllConnectionEndpoints;
|
|
117220
|
+
var CONNECTION_DEFAULT_STYLE;
|
|
117202
117221
|
var loadGlobalStyle = /*#__PURE__*/function () {
|
|
117203
117222
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
117204
117223
|
var module;
|
|
@@ -117218,7 +117237,17 @@ var loadGlobalStyle = /*#__PURE__*/function () {
|
|
|
117218
117237
|
hollowCircle = module.hollowCircle;
|
|
117219
117238
|
createPathLine = module.createPathLine;
|
|
117220
117239
|
createConnect = module.createConnect;
|
|
117221
|
-
|
|
117240
|
+
CONNECTION_DEFAULT_STYLE = module.CONNECTION_DEFAULT_STYLE;
|
|
117241
|
+
resetEndpointSourceFlags = module.resetEndpointSourceFlags;
|
|
117242
|
+
clearEndpointFillStyle = module.clearEndpointFillStyle;
|
|
117243
|
+
applyConnectionStyle = module.applyConnectionStyle;
|
|
117244
|
+
checkAndAddArrow = module.checkAndAddArrow;
|
|
117245
|
+
initConnectionEndpointMode = module.initConnectionEndpointMode;
|
|
117246
|
+
setAnchorCreateMode = module.setAnchorCreateMode;
|
|
117247
|
+
setConnectionEndpointCreateMode = module.setConnectionEndpointCreateMode;
|
|
117248
|
+
resetAllAnchorEndpoints = module.resetAllAnchorEndpoints;
|
|
117249
|
+
resetAllConnectionEndpoints = module.resetAllConnectionEndpoints;
|
|
117250
|
+
case 17:
|
|
117222
117251
|
case "end":
|
|
117223
117252
|
return _context.stop();
|
|
117224
117253
|
}
|
|
@@ -117228,37 +117257,37 @@ var loadGlobalStyle = /*#__PURE__*/function () {
|
|
|
117228
117257
|
return _ref.apply(this, arguments);
|
|
117229
117258
|
};
|
|
117230
117259
|
}();
|
|
117231
|
-
var _require7 = __webpack_require__(43478),
|
|
117232
|
-
startMove = _require7.startMove;
|
|
117233
117260
|
var _require8 = __webpack_require__(43478),
|
|
117234
|
-
|
|
117261
|
+
startMove = _require8.startMove;
|
|
117235
117262
|
var _require9 = __webpack_require__(43478),
|
|
117236
|
-
|
|
117263
|
+
MoveSelectDiv = _require9.MoveSelectDiv;
|
|
117237
117264
|
var _require10 = __webpack_require__(43478),
|
|
117238
|
-
|
|
117265
|
+
getSelectedRegions = _require10.getSelectedRegions;
|
|
117239
117266
|
var _require11 = __webpack_require__(43478),
|
|
117240
|
-
|
|
117267
|
+
resetLocation = _require11.resetLocation;
|
|
117241
117268
|
var _require12 = __webpack_require__(43478),
|
|
117242
|
-
|
|
117269
|
+
RegionSelect = _require12.RegionSelect;
|
|
117243
117270
|
var _require13 = __webpack_require__(43478),
|
|
117244
|
-
|
|
117271
|
+
SelectAlignCenter = _require13.SelectAlignCenter;
|
|
117245
117272
|
var _require14 = __webpack_require__(43478),
|
|
117246
|
-
|
|
117273
|
+
SelectAlignMean = _require14.SelectAlignMean;
|
|
117247
117274
|
var _require15 = __webpack_require__(43478),
|
|
117248
|
-
|
|
117275
|
+
SelectMeanCenter = _require15.SelectMeanCenter;
|
|
117249
117276
|
var _require16 = __webpack_require__(43478),
|
|
117250
|
-
|
|
117277
|
+
SelectAlignTop = _require16.SelectAlignTop;
|
|
117251
117278
|
var _require17 = __webpack_require__(43478),
|
|
117252
|
-
|
|
117279
|
+
SelectAlignMiddle = _require17.SelectAlignMiddle;
|
|
117253
117280
|
var _require18 = __webpack_require__(43478),
|
|
117254
|
-
|
|
117281
|
+
SelectAlignLeft = _require18.SelectAlignLeft;
|
|
117255
117282
|
var _require19 = __webpack_require__(43478),
|
|
117256
|
-
|
|
117257
|
-
|
|
117258
|
-
|
|
117259
|
-
|
|
117283
|
+
showProcessDesc = _require19.showProcessDesc;
|
|
117284
|
+
var _require20 = __webpack_require__(43478),
|
|
117285
|
+
showAddNodeBtn = _require20.showAddNodeBtn,
|
|
117286
|
+
addNodeBtnClick = _require20.addNodeBtnClick;
|
|
117260
117287
|
var _require21 = __webpack_require__(61289),
|
|
117261
|
-
|
|
117288
|
+
ecinc_process = _require21.ecinc_process;
|
|
117289
|
+
var _require22 = __webpack_require__(61289),
|
|
117290
|
+
ecinc_attr_panel = _require22.ecinc_attr_panel;
|
|
117262
117291
|
|
|
117263
117292
|
/* harmony default export */ var Centervue_type_script_lang_js = ({
|
|
117264
117293
|
components: {},
|
|
@@ -117423,7 +117452,20 @@ var _require21 = __webpack_require__(61289),
|
|
|
117423
117452
|
initWfDesigner: function initWfDesigner() {
|
|
117424
117453
|
var _this4 = this;
|
|
117425
117454
|
Centervue_type_script_lang_js_jsPlumb.importDefaults({
|
|
117426
|
-
ReattachConnections: true
|
|
117455
|
+
ReattachConnections: true,
|
|
117456
|
+
// 统一拖拽创建的新连接线类型(Flowchart折线,与createPathLine一致)
|
|
117457
|
+
Connector: ['Flowchart', {
|
|
117458
|
+
stub: [10, 50],
|
|
117459
|
+
alwaysRespectStubs: false,
|
|
117460
|
+
midpoint: 0,
|
|
117461
|
+
cornerRadius: 5
|
|
117462
|
+
}],
|
|
117463
|
+
// 统一连接线颜色(覆盖 loadGlobalStyle 的绿色 PaintStyle)
|
|
117464
|
+
PaintStyle: {
|
|
117465
|
+
stroke: '#438eb9',
|
|
117466
|
+
strokeWidth: 2
|
|
117467
|
+
}
|
|
117468
|
+
// 注:不设 ConnectionOverlays,避免与 createConnect 的 overlays 叠加产生双箭头
|
|
117427
117469
|
});
|
|
117428
117470
|
Centervue_type_script_lang_js_jsPlumb.connectorClass += ' line_path';
|
|
117429
117471
|
this.dragLineObj.init = function (connection, thisConnect) {
|
|
@@ -117734,6 +117776,14 @@ var _require21 = __webpack_require__(61289),
|
|
|
117734
117776
|
}
|
|
117735
117777
|
}
|
|
117736
117778
|
|
|
117779
|
+
// 标记所有锚点端点为原始源端点(区别于连接端点)
|
|
117780
|
+
jquery_default()('.process').each(function () {
|
|
117781
|
+
var eps = Centervue_type_script_lang_js_jsPlumb.getEndpoints(this);
|
|
117782
|
+
for (var i = 0; i < eps.length; i++) {
|
|
117783
|
+
if (eps[i].isSource) eps[i]._wfOrigSource = true;
|
|
117784
|
+
}
|
|
117785
|
+
});
|
|
117786
|
+
|
|
117737
117787
|
//节点连接线
|
|
117738
117788
|
createPathLine(_this4.connectsArr);
|
|
117739
117789
|
setTimeout(function () {
|
|
@@ -117790,6 +117840,32 @@ var _require21 = __webpack_require__(61289),
|
|
|
117790
117840
|
jquery_default()('.process').bind('click', function (el) {
|
|
117791
117841
|
jquery_default()('.process').removeClass('seled');
|
|
117792
117842
|
jquery_default()(el.currentTarget).addClass('seled');
|
|
117843
|
+
// === 新增:点击节点时清除连接 active 状态 ===
|
|
117844
|
+
jquery_default()('.jtk-connector').removeClass('wf-conn-active');
|
|
117845
|
+
jquery_default()('.jtk-endpoint').removeClass('wf-ep-active');
|
|
117846
|
+
// 移除所有连接端点的永久标记,让锚点 (z-index:5) 置顶,捕获拖拽事件
|
|
117847
|
+
jquery_default()('.jtk-endpoint').removeClass('wf-conn-ep');
|
|
117848
|
+
_this4._connectionSelected = false; // 取消连接线选中
|
|
117849
|
+
// === 清除所有端点的选中样式,恢复端点默认属性 ===
|
|
117850
|
+
jquery_default()('.jtk-endpoint').removeClass('wf-sel-ep');
|
|
117851
|
+
resetAllAnchorEndpoints(jquery_default()('.process').get());
|
|
117852
|
+
resetAllConnectionEndpoints(); // 显式重置所有连接端点(恢复移动模式)
|
|
117853
|
+
// 重置所有连接线为默认蓝色(清除连接选中红色)
|
|
117854
|
+
var resetConns = Centervue_type_script_lang_js_jsPlumb.getAllConnections();
|
|
117855
|
+
for (var ri = 0; ri < resetConns.length; ri++) {
|
|
117856
|
+
resetConns[ri].setPaintStyle(CONNECTION_DEFAULT_STYLE);
|
|
117857
|
+
}
|
|
117858
|
+
|
|
117859
|
+
// === 选中节点:锚点变红 + 锚点端点启用源模式 ===
|
|
117860
|
+
// 1. 锚点端点加 wf-sel-ep 类(CSS 控制红色)
|
|
117861
|
+
var selEndpoints = Centervue_type_script_lang_js_jsPlumb.getEndpoints(el.currentTarget);
|
|
117862
|
+
for (var ei = 0; ei < selEndpoints.length; ei++) {
|
|
117863
|
+
jquery_default()(selEndpoints[ei].canvas).addClass('wf-sel-ep');
|
|
117864
|
+
}
|
|
117865
|
+
// 2. 选中节点的锚点端点启用源模式(拖拽时创建新连接而非移动已有连接)
|
|
117866
|
+
setAnchorCreateMode(selEndpoints);
|
|
117867
|
+
// 3. 选中节点的连接端点也启用创建模式(拖拽连接端点也生成新连接)
|
|
117868
|
+
setConnectionEndpointCreateMode(el.currentTarget);
|
|
117793
117869
|
_this4.getHistroyNodes();
|
|
117794
117870
|
var curId = jquery_default()(el.currentTarget).attr('id');
|
|
117795
117871
|
for (var j = 0; j < _this.wflow.nodes.length; j++) {
|
|
@@ -117831,6 +117907,8 @@ var _require21 = __webpack_require__(61289),
|
|
|
117831
117907
|
|
|
117832
117908
|
// 获取需要等待的环节
|
|
117833
117909
|
_this4.getWaitNode();
|
|
117910
|
+
// === 新增:清除连接选中状态,保证节点/连接互斥 ===
|
|
117911
|
+
_this4.curPath = {};
|
|
117834
117912
|
_this4.emitData();
|
|
117835
117913
|
});
|
|
117836
117914
|
|
|
@@ -117862,54 +117940,44 @@ var _require21 = __webpack_require__(61289),
|
|
|
117862
117940
|
|
|
117863
117941
|
/** *************************************路径数据******************************************/
|
|
117864
117942
|
|
|
117943
|
+
// beforeDrag: 从空锚点/未满端点拖拽新建连接时触发(jpc==null,源模式走此分支)
|
|
117944
|
+
Centervue_type_script_lang_js_jsPlumb.bind('beforeDrag', function (info) {
|
|
117945
|
+
// 连接线被选中时,阻止从锚点创建新连接(用户应拖拽连接端点来移动)
|
|
117946
|
+
if (_this4._connectionSelected) {
|
|
117947
|
+
return false;
|
|
117948
|
+
}
|
|
117949
|
+
clearEndpointFillStyle(info.endpoint);
|
|
117950
|
+
return true;
|
|
117951
|
+
});
|
|
117952
|
+
// beforeStartDetach: 从已有连接线的端点拖拽时触发(jpc!=null)
|
|
117953
|
+
Centervue_type_script_lang_js_jsPlumb.bind('beforeStartDetach', function (info) {
|
|
117954
|
+
clearEndpointFillStyle(info.endpoint);
|
|
117955
|
+
return true;
|
|
117956
|
+
});
|
|
117957
|
+
|
|
117958
|
+
// connectionDrag、connectionMoved、connectionDetached、connectionAborted、mousedown、click
|
|
117959
|
+
// 已提取到 drag.js 的 bindConnectionEvents(vm) 函数
|
|
117960
|
+
bindConnectionEvents(this);
|
|
117961
|
+
|
|
117865
117962
|
// 1路径创建
|
|
117866
117963
|
Centervue_type_script_lang_js_jsPlumb.bind('connection', function (info) {
|
|
117867
|
-
|
|
117868
|
-
|
|
117869
|
-
|
|
117964
|
+
// 已移除 setHoverPaintStyle({ stroke: 'red' }):避免节点选中时悬停连接线端点导致变红
|
|
117965
|
+
|
|
117966
|
+
// 设置新连接线样式 + 检查并添加 Arrow 箭头覆盖
|
|
117967
|
+
applyConnectionStyle(info.connection);
|
|
117968
|
+
checkAndAddArrow(info.connection);
|
|
117969
|
+
|
|
117970
|
+
// === 连接端点标记 + 设置永久源模式(始终可拖拽) ===
|
|
117971
|
+
if (info.connection.endpoints) {
|
|
117972
|
+
info.connection.endpoints.forEach(function (ep) {
|
|
117973
|
+
initConnectionEndpointMode(ep);
|
|
117870
117974
|
});
|
|
117871
117975
|
}
|
|
117872
|
-
info.connection.setPaintStyle({
|
|
117873
|
-
stroke: '#438eb9',
|
|
117874
|
-
fillStyle: '#438eb9',
|
|
117875
|
-
radius: 5
|
|
117876
|
-
});
|
|
117877
117976
|
_this4.dragPath(info);
|
|
117878
117977
|
_this4.ComparePath();
|
|
117879
117978
|
_this4.emitData();
|
|
117880
117979
|
return false;
|
|
117881
117980
|
});
|
|
117882
|
-
Centervue_type_script_lang_js_jsPlumb.bind('mousedown', function (connection, originalEvent) {
|
|
117883
|
-
var thisConnect = {};
|
|
117884
|
-
var len = _this4.connectsArr.length;
|
|
117885
|
-
for (var i = 0; i < len; i++) {
|
|
117886
|
-
if (connection.id === _this4.connectsArr[i].ConnectionId) {
|
|
117887
|
-
thisConnect = _this4.connectsArr[i];
|
|
117888
|
-
break;
|
|
117889
|
-
}
|
|
117890
|
-
}
|
|
117891
|
-
_this4.clickPath(connection); //, 此事件会跟click事件冲突,可以把事件函数放在这里执行
|
|
117892
|
-
// 设置路径颜色
|
|
117893
|
-
_this4.dragLineObj.init(connection, thisConnect);
|
|
117894
|
-
_this4.emitData();
|
|
117895
|
-
// $scope.$apply();
|
|
117896
|
-
return false;
|
|
117897
|
-
});
|
|
117898
|
-
// 2路径点击
|
|
117899
|
-
Centervue_type_script_lang_js_jsPlumb.bind('click', function (conn, originalEvent) {
|
|
117900
|
-
conn.endpoints[0]._jsPlumb.maxConnections = 1;
|
|
117901
|
-
conn.endpoints[1]._jsPlumb.maxConnections = 1;
|
|
117902
|
-
if (jquery_default()('.panel_path').css('display') !== 'none') {
|
|
117903
|
-
if (!jquery_default()(conn.source).hasClass('dfzjd') && !jquery_default()(conn.source).hasClass('zyjd')) {
|
|
117904
|
-
conn.setPaintStyle({
|
|
117905
|
-
stroke: 'red',
|
|
117906
|
-
corsor: 'move'
|
|
117907
|
-
});
|
|
117908
|
-
}
|
|
117909
|
-
}
|
|
117910
|
-
jquery_default()('.process').removeClass('seled');
|
|
117911
|
-
return false;
|
|
117912
|
-
});
|
|
117913
117981
|
|
|
117914
117982
|
// 3自定义右键菜单
|
|
117915
117983
|
jquery_default()(document).bind('contextmenu', function () {
|
|
@@ -118010,16 +118078,35 @@ var _require21 = __webpack_require__(61289),
|
|
|
118010
118078
|
jquery_default()(document).click(function () {
|
|
118011
118079
|
jquery_default()('#centextMenu').remove();
|
|
118012
118080
|
});
|
|
118013
|
-
|
|
118014
|
-
|
|
118015
|
-
|
|
118016
|
-
|
|
118017
|
-
|
|
118018
|
-
|
|
118019
|
-
|
|
118020
|
-
|
|
118021
|
-
|
|
118022
|
-
|
|
118081
|
+
|
|
118082
|
+
// connectionDrag/connectionDragStop 已提取到 bindConnectionEvents
|
|
118083
|
+
|
|
118084
|
+
jquery_default()('#center').click(function (e) {
|
|
118085
|
+
// 若点击目标是节点或其子元素,不取消节点选中(事件已冒泡处理)
|
|
118086
|
+
if (jquery_default()(e.target).closest('.process').length > 0) return;
|
|
118087
|
+
// 若点击目标是连接线或端点,不取消选中(由 jsPlumb mousedown/click 事件处理)
|
|
118088
|
+
if (jquery_default()(e.target).closest('.jtk-connector, .jtk-endpoint').length > 0) return;
|
|
118089
|
+
// 拖拽创建连接后的 mouseup 会触发 click,此时不应取消选中
|
|
118090
|
+
if (_this4._connectionDragging) {
|
|
118091
|
+
_this4._connectionDragging = false;
|
|
118092
|
+
return;
|
|
118093
|
+
}
|
|
118094
|
+
// 点击画布空白处:清除节点选中和连接选中
|
|
118095
|
+
var prevSelNodes2 = jquery_default()('.process.seled');
|
|
118096
|
+
jquery_default()('.process').removeClass('seled');
|
|
118097
|
+
jquery_default()('.jtk-endpoint').removeClass('wf-sel-ep');
|
|
118098
|
+
_this4._connectionSelected = false; // 取消连接线选中
|
|
118099
|
+
// 仅重置之前选中的节点的锚点端点源模式标志
|
|
118100
|
+
resetAllAnchorEndpoints(prevSelNodes2.get());
|
|
118101
|
+
resetAllConnectionEndpoints(); // 显式重置所有连接端点(恢复移动模式)
|
|
118102
|
+
var allConns2 = Centervue_type_script_lang_js_jsPlumb.getAllConnections();
|
|
118103
|
+
for (var ci = 0; ci < allConns2.length; ci++) {
|
|
118104
|
+
allConns2[ci].setDetachable(true);
|
|
118105
|
+
}
|
|
118106
|
+
// 清除连接选中状态
|
|
118107
|
+
jquery_default()('.jtk-connector').removeClass('wf-conn-active');
|
|
118108
|
+
for (var i = 0; i < allConns2.length; i++) {
|
|
118109
|
+
applyConnectionStyle(allConns2[i]);
|
|
118023
118110
|
}
|
|
118024
118111
|
_this4.ComparePath();
|
|
118025
118112
|
if (window.getSelection) {
|
|
@@ -118031,17 +118118,21 @@ var _require21 = __webpack_require__(61289),
|
|
|
118031
118118
|
jquery_default()('#centextMenu').remove();
|
|
118032
118119
|
}
|
|
118033
118120
|
var aConn = Centervue_type_script_lang_js_jsPlumb.getConnections(); // 获取容器所有的连接线
|
|
118121
|
+
// 清除所有连接选中状态
|
|
118122
|
+
jquery_default()('.jtk-connector').removeClass('wf-conn-active');
|
|
118034
118123
|
for (var i = 0; i < aConn.length; i++) {
|
|
118035
118124
|
if (aConn[i].id !== conn.id) {
|
|
118036
|
-
aConn[i]
|
|
118037
|
-
stroke: '#438eb9',
|
|
118038
|
-
fillStyle: '#438eb9',
|
|
118039
|
-
radius: 5
|
|
118040
|
-
});
|
|
118125
|
+
applyConnectionStyle(aConn[i]);
|
|
118041
118126
|
} else {
|
|
118042
118127
|
aConn[i].setPaintStyle({
|
|
118043
|
-
stroke: 'red'
|
|
118128
|
+
stroke: 'red',
|
|
118129
|
+
strokeWidth: 2
|
|
118044
118130
|
});
|
|
118131
|
+
jquery_default()(aConn[i].connector.canvas).closest('.jtk-connector').addClass('wf-conn-active');
|
|
118132
|
+
// 将选中连接线 DOM 移到父容器末尾,确保最上层渲染
|
|
118133
|
+
var _ctxConn = jquery_default()(aConn[i].connector.canvas).closest('.jtk-connector');
|
|
118134
|
+
var _ctxParent = _ctxConn.parent();
|
|
118135
|
+
if (_ctxParent.length > 0) _ctxParent[0].appendChild(_ctxConn[0]);
|
|
118045
118136
|
}
|
|
118046
118137
|
}
|
|
118047
118138
|
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>';
|
|
@@ -118411,6 +118502,29 @@ var _require21 = __webpack_require__(61289),
|
|
|
118411
118502
|
},
|
|
118412
118503
|
dragPath: function dragPath(pathTarget) {
|
|
118413
118504
|
var _this7 = this;
|
|
118505
|
+
// 同一节点并且同一锚点时:删除已创建的连接线并退出
|
|
118506
|
+
if (pathTarget.sourceId === pathTarget.targetId) {
|
|
118507
|
+
var sameAnchor = false;
|
|
118508
|
+
try {
|
|
118509
|
+
// 获取源端点和目标端点的锚点位置进行比较
|
|
118510
|
+
var srcEp = pathTarget.sourceEndpoint || pathTarget.connection && pathTarget.connection.endpoints && pathTarget.connection.endpoints[0];
|
|
118511
|
+
var tgtEp = pathTarget.targetEndpoint || pathTarget.connection && pathTarget.connection.endpoints && pathTarget.connection.endpoints[1];
|
|
118512
|
+
if (srcEp && tgtEp && srcEp.anchor && tgtEp.anchor) {
|
|
118513
|
+
sameAnchor = srcEp.anchor.x === tgtEp.anchor.x && srcEp.anchor.y === tgtEp.anchor.y;
|
|
118514
|
+
}
|
|
118515
|
+
} catch (e) {
|
|
118516
|
+
// 无法获取锚点信息时默认视为同锚点
|
|
118517
|
+
sameAnchor = true;
|
|
118518
|
+
}
|
|
118519
|
+
if (sameAnchor) {
|
|
118520
|
+
try {
|
|
118521
|
+
Centervue_type_script_lang_js_jsPlumb.deleteConnection(pathTarget.connection);
|
|
118522
|
+
} catch (e) {
|
|
118523
|
+
console.warn('dragPath: deleteConnection failed', e);
|
|
118524
|
+
}
|
|
118525
|
+
return;
|
|
118526
|
+
}
|
|
118527
|
+
}
|
|
118414
118528
|
this.curPath = {};
|
|
118415
118529
|
for (var p = 0; p < this.pathObj.length; p++) {
|
|
118416
118530
|
if (this.pathObj[p].id === pathTarget.connection._jsPlumb.parameters.pathId) {
|
|
@@ -118889,9 +119003,12 @@ var _require21 = __webpack_require__(61289),
|
|
|
118889
119003
|
validatePath: function validatePath(target, msg, allConn) {
|
|
118890
119004
|
this.curPath = target;
|
|
118891
119005
|
this.emitData();
|
|
119006
|
+
// 清除所有连接选中状态
|
|
119007
|
+
jquery_default()('.jtk-connector').removeClass('wf-conn-active');
|
|
118892
119008
|
for (var i = 0; i < allConn.length; i++) {
|
|
118893
119009
|
allConn[i].setPaintStyle({
|
|
118894
|
-
stroke: '#42546c'
|
|
119010
|
+
stroke: '#42546c',
|
|
119011
|
+
strokeWidth: 2
|
|
118895
119012
|
});
|
|
118896
119013
|
}
|
|
118897
119014
|
var found = false;
|
|
@@ -118899,8 +119016,14 @@ var _require21 = __webpack_require__(61289),
|
|
|
118899
119016
|
if (target.id === allConn[u].id) {
|
|
118900
119017
|
ecinc_process.connection = allConn[u];
|
|
118901
119018
|
allConn[u].setPaintStyle({
|
|
118902
|
-
stroke: 'red'
|
|
119019
|
+
stroke: 'red',
|
|
119020
|
+
strokeWidth: 2
|
|
118903
119021
|
});
|
|
119022
|
+
jquery_default()(allConn[u].connector.canvas).closest('.jtk-connector').addClass('wf-conn-active');
|
|
119023
|
+
// 将选中连接线 DOM 移到父容器末尾,确保最上层渲染
|
|
119024
|
+
var _vpConn = jquery_default()(allConn[u].connector.canvas).closest('.jtk-connector');
|
|
119025
|
+
var _vpParent = _vpConn.parent();
|
|
119026
|
+
if (_vpParent.length > 0) _vpParent[0].appendChild(_vpConn[0]);
|
|
118904
119027
|
found = true;
|
|
118905
119028
|
break;
|
|
118906
119029
|
}
|
|
@@ -119666,13 +119789,13 @@ var _require21 = __webpack_require__(61289),
|
|
|
119666
119789
|
});
|
|
119667
119790
|
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=script&lang=js
|
|
119668
119791
|
/* harmony default export */ var components_Centervue_type_script_lang_js = (Centervue_type_script_lang_js);
|
|
119669
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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=
|
|
119670
|
-
var
|
|
119671
|
-
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=0&id=
|
|
119792
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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
|
|
119793
|
+
var Centervue_type_style_index_0_id_5c4008d4_prod_scoped_true_lang_scss = __webpack_require__(21510);
|
|
119794
|
+
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=0&id=5c4008d4&prod&scoped=true&lang=scss
|
|
119672
119795
|
|
|
119673
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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=
|
|
119674
|
-
var
|
|
119675
|
-
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=1&id=
|
|
119796
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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
|
|
119797
|
+
var Centervue_type_style_index_1_id_5c4008d4_prod_lang_scss = __webpack_require__(90250);
|
|
119798
|
+
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=1&id=5c4008d4&prod&lang=scss
|
|
119676
119799
|
|
|
119677
119800
|
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue
|
|
119678
119801
|
|
|
@@ -119686,11 +119809,11 @@ var Centervue_type_style_index_1_id_cf0d53e6_prod_lang_scss = __webpack_require_
|
|
|
119686
119809
|
|
|
119687
119810
|
var Center_component = (0,componentNormalizer/* default */.A)(
|
|
119688
119811
|
components_Centervue_type_script_lang_js,
|
|
119689
|
-
|
|
119690
|
-
|
|
119812
|
+
Centervue_type_template_id_5c4008d4_scoped_true_render,
|
|
119813
|
+
Centervue_type_template_id_5c4008d4_scoped_true_staticRenderFns,
|
|
119691
119814
|
false,
|
|
119692
119815
|
null,
|
|
119693
|
-
"
|
|
119816
|
+
"5c4008d4",
|
|
119694
119817
|
null
|
|
119695
119818
|
|
|
119696
119819
|
)
|
|
@@ -124988,8 +125111,8 @@ var Tab3_component = (0,componentNormalizer/* default */.A)(
|
|
|
124988
125111
|
)
|
|
124989
125112
|
|
|
124990
125113
|
/* harmony default export */ var Tab3 = (Tab3_component.exports);
|
|
124991
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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=
|
|
124992
|
-
var
|
|
125114
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
|
|
125115
|
+
var Tab4vue_type_template_id_4c5b4236_scoped_true_render = function render() {
|
|
124993
125116
|
var _vm = this,
|
|
124994
125117
|
_c = _vm._self._c;
|
|
124995
125118
|
return _vm.wflow.wfdEvents ? _c('div', {
|
|
@@ -125080,7 +125203,7 @@ var Tab4vue_type_template_id_1251ec84_scoped_true_render = function render() {
|
|
|
125080
125203
|
})])]);
|
|
125081
125204
|
})], 2)])]) : _vm._e();
|
|
125082
125205
|
};
|
|
125083
|
-
var
|
|
125206
|
+
var Tab4vue_type_template_id_4c5b4236_scoped_true_staticRenderFns = [function () {
|
|
125084
125207
|
var _vm = this,
|
|
125085
125208
|
_c = _vm._self._c;
|
|
125086
125209
|
return _c('tr', [_c('th', {
|
|
@@ -125108,7 +125231,7 @@ var Tab4vue_type_template_id_1251ec84_scoped_true_staticRenderFns = [function ()
|
|
|
125108
125231
|
}, [_vm._v("操作")])]);
|
|
125109
125232
|
}];
|
|
125110
125233
|
|
|
125111
|
-
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=template&id=
|
|
125234
|
+
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=template&id=4c5b4236&scoped=true
|
|
125112
125235
|
|
|
125113
125236
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
|
|
125114
125237
|
/* harmony default export */ var Tab4vue_type_script_lang_js = ({
|
|
@@ -125267,9 +125390,9 @@ var Tab4vue_type_template_id_1251ec84_scoped_true_staticRenderFns = [function ()
|
|
|
125267
125390
|
});
|
|
125268
125391
|
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=script&lang=js
|
|
125269
125392
|
/* harmony default export */ var PanelProcess_Tab4vue_type_script_lang_js = (Tab4vue_type_script_lang_js);
|
|
125270
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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=
|
|
125271
|
-
var
|
|
125272
|
-
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=style&index=0&id=
|
|
125393
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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
|
|
125394
|
+
var Tab4vue_type_style_index_0_id_4c5b4236_prod_scoped_true_lang_scss = __webpack_require__(21465);
|
|
125395
|
+
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue?vue&type=style&index=0&id=4c5b4236&prod&scoped=true&lang=scss
|
|
125273
125396
|
|
|
125274
125397
|
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/RightForm/PanelProcess/Tab4.vue
|
|
125275
125398
|
|
|
@@ -125282,11 +125405,11 @@ var Tab4vue_type_style_index_0_id_1251ec84_prod_scoped_true_lang_scss = __webpac
|
|
|
125282
125405
|
|
|
125283
125406
|
var Tab4_component = (0,componentNormalizer/* default */.A)(
|
|
125284
125407
|
PanelProcess_Tab4vue_type_script_lang_js,
|
|
125285
|
-
|
|
125286
|
-
|
|
125408
|
+
Tab4vue_type_template_id_4c5b4236_scoped_true_render,
|
|
125409
|
+
Tab4vue_type_template_id_4c5b4236_scoped_true_staticRenderFns,
|
|
125287
125410
|
false,
|
|
125288
125411
|
null,
|
|
125289
|
-
"
|
|
125412
|
+
"4c5b4236",
|
|
125290
125413
|
null
|
|
125291
125414
|
|
|
125292
125415
|
)
|
|
@@ -137916,6 +138039,7 @@ var Base64 = {
|
|
|
137916
138039
|
"use strict";
|
|
137917
138040
|
__webpack_require__.r(__webpack_exports__);
|
|
137918
138041
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
138042
|
+
/* harmony export */ bindConnectionEvents: function() { return /* binding */ bindConnectionEvents; },
|
|
137919
138043
|
/* harmony export */ dragAddNode: function() { return /* binding */ dragAddNode; },
|
|
137920
138044
|
/* harmony export */ dragLine: function() { return /* binding */ dragLine; },
|
|
137921
138045
|
/* harmony export */ getPathXyData: function() { return /* binding */ getPathXyData; },
|
|
@@ -137998,7 +138122,7 @@ function nodeEvents(id, wflow, $scope) {
|
|
|
137998
138122
|
$scope.$confirm('您是否确认删除选择的节点?', $scope.$t('common.confirm'), {
|
|
137999
138123
|
type: 'warning'
|
|
138000
138124
|
}).then(function () {
|
|
138001
|
-
var targetId, sourceId;
|
|
138125
|
+
var targetId, sourceId, targetPrevPath, sourceNextPath;
|
|
138002
138126
|
for (var i = 0; i < allConnection.length; i++) {
|
|
138003
138127
|
// targetId,sourceId
|
|
138004
138128
|
if (allConnection[i].targetId == curNodeId) {
|
|
@@ -138006,11 +138130,19 @@ function nodeEvents(id, wflow, $scope) {
|
|
|
138006
138130
|
pathArr.push(allConnection[i]);
|
|
138007
138131
|
}
|
|
138008
138132
|
if (allConnection[i].sourceId == curNodeId) {
|
|
138009
|
-
targetId = allConnection[i].
|
|
138133
|
+
targetId = allConnection[i].targetId;
|
|
138010
138134
|
pathArr.push(allConnection[i]);
|
|
138011
138135
|
}
|
|
138012
138136
|
}
|
|
138013
|
-
|
|
138137
|
+
for (var i = 0; i < allConnection.length; i++) {
|
|
138138
|
+
if (allConnection[i].targetId == targetId && allConnection[i].sourceId !== curNodeId) {
|
|
138139
|
+
targetPrevPath = true;
|
|
138140
|
+
}
|
|
138141
|
+
if (allConnection[i].sourceId == sourceId && allConnection[i].targetId !== curNodeId) {
|
|
138142
|
+
sourceNextPath = true;
|
|
138143
|
+
}
|
|
138144
|
+
}
|
|
138145
|
+
if (targetId && sourceId && (!sourceNextPath || !targetPrevPath)) {
|
|
138014
138146
|
var pathLine = {
|
|
138015
138147
|
ConnectionId: '',
|
|
138016
138148
|
PageSourceId: '',
|
|
@@ -138759,6 +138891,145 @@ function viewLinkedProcess(wflow, curNodeId) {
|
|
|
138759
138891
|
}
|
|
138760
138892
|
|
|
138761
138893
|
|
|
138894
|
+
// ========== 连接线交互事件绑定(从 Center/index.vue 提取) ==========
|
|
138895
|
+
|
|
138896
|
+
/**
|
|
138897
|
+
* 选中连接线:设置样式 + DOM 重排序 + 端点高亮
|
|
138898
|
+
* @param {Object} vm - Vue 实例
|
|
138899
|
+
* @param {Object} connection - jsPlumb 连接对象
|
|
138900
|
+
*/
|
|
138901
|
+
function selectConnection(vm, connection) {
|
|
138902
|
+
// === 连接 active 状态管理 ===
|
|
138903
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()('.jtk-connector').removeClass('wf-conn-active');
|
|
138904
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()('.jtk-endpoint').removeClass('wf-ep-active');
|
|
138905
|
+
|
|
138906
|
+
// 找到连接的 SVG 容器添加 wf-conn-active
|
|
138907
|
+
if (connection.connector && connection.connector.canvas) {
|
|
138908
|
+
var $selectedConn = jquery__WEBPACK_IMPORTED_MODULE_0___default()(connection.connector.canvas).closest('.jtk-connector');
|
|
138909
|
+
$selectedConn.addClass('wf-conn-active');
|
|
138910
|
+
// 将选中的连接线 DOM 元素移到父容器末尾,确保在最上层渲染
|
|
138911
|
+
var connParent = $selectedConn.parent();
|
|
138912
|
+
if (connParent.length > 0) {
|
|
138913
|
+
connParent[0].appendChild($selectedConn[0]);
|
|
138914
|
+
}
|
|
138915
|
+
}
|
|
138916
|
+
|
|
138917
|
+
// 选中连接线显示红色(setPaintStyle + setTimeout 双重保障)
|
|
138918
|
+
if (!jquery__WEBPACK_IMPORTED_MODULE_0___default()(connection.source).hasClass('dfzjd') && !jquery__WEBPACK_IMPORTED_MODULE_0___default()(connection.source).hasClass('zyjd')) {
|
|
138919
|
+
connection.setPaintStyle({
|
|
138920
|
+
stroke: 'red',
|
|
138921
|
+
strokeWidth: 2
|
|
138922
|
+
});
|
|
138923
|
+
setTimeout(function () {
|
|
138924
|
+
connection.setPaintStyle({
|
|
138925
|
+
stroke: 'red',
|
|
138926
|
+
strokeWidth: 2
|
|
138927
|
+
});
|
|
138928
|
+
}, 0);
|
|
138929
|
+
}
|
|
138930
|
+
|
|
138931
|
+
// 给连接两端端点添加 wf-ep-active 和 wf-conn-ep
|
|
138932
|
+
if (connection.endpoints) {
|
|
138933
|
+
connection.endpoints.forEach(function (ep) {
|
|
138934
|
+
if (ep.canvas) {
|
|
138935
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(ep.canvas).addClass('wf-ep-active');
|
|
138936
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(ep.canvas).addClass('wf-conn-ep');
|
|
138937
|
+
}
|
|
138938
|
+
});
|
|
138939
|
+
}
|
|
138940
|
+
}
|
|
138941
|
+
|
|
138942
|
+
/**
|
|
138943
|
+
* 绑定所有连接线交互事件(mousedown/click/moved/detached/aborted/drag)
|
|
138944
|
+
* @param {Object} vm - Vue 实例
|
|
138945
|
+
*/
|
|
138946
|
+
function bindConnectionEvents(vm) {
|
|
138947
|
+
// connectionDetached: 连接线断开时重置端点标志
|
|
138948
|
+
jsPlumb.bind('connectionDetached', function (info) {
|
|
138949
|
+
if (info.connection && info.connection.endpoints) {
|
|
138950
|
+
info.connection.endpoints.forEach(function (ep) {
|
|
138951
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetEndpointSourceFlags)(ep);
|
|
138952
|
+
});
|
|
138953
|
+
}
|
|
138954
|
+
});
|
|
138955
|
+
|
|
138956
|
+
// connectionAborted: 拖拽连接线取消时重置端点状态
|
|
138957
|
+
jsPlumb.bind('connectionAborted', function (info) {
|
|
138958
|
+
if (info.connection && info.connection.endpoints) {
|
|
138959
|
+
info.connection.endpoints.forEach(function (ep) {
|
|
138960
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetEndpointSourceFlags)(ep);
|
|
138961
|
+
});
|
|
138962
|
+
}
|
|
138963
|
+
});
|
|
138964
|
+
|
|
138965
|
+
// mousedown: 连接线点击选中(状态管理 + 样式设置 + 节点清除)
|
|
138966
|
+
jsPlumb.bind('mousedown', function (connection, originalEvent) {
|
|
138967
|
+
var thisConnect = {};
|
|
138968
|
+
var len = vm.connectsArr.length;
|
|
138969
|
+
for (var i = 0; i < len; i++) {
|
|
138970
|
+
if (connection.id === vm.connectsArr[i].ConnectionId) {
|
|
138971
|
+
thisConnect = vm.connectsArr[i];
|
|
138972
|
+
break;
|
|
138973
|
+
}
|
|
138974
|
+
}
|
|
138975
|
+
|
|
138976
|
+
// === 节点/连接互斥,清除节点选中 ===
|
|
138977
|
+
var prevSelNodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.process.seled');
|
|
138978
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()('.process').removeClass('seled');
|
|
138979
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()('.jtk-endpoint').removeClass('wf-sel-ep');
|
|
138980
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetAllAnchorEndpoints)(prevSelNodes.get());
|
|
138981
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetAllConnectionEndpoints)(); // 显式重置所有连接端点(恢复移动模式)
|
|
138982
|
+
|
|
138983
|
+
var allConns = jsPlumb.getAllConnections();
|
|
138984
|
+
for (var ci = 0; ci < allConns.length; ci++) {
|
|
138985
|
+
allConns[ci].setDetachable(true);
|
|
138986
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.applyConnectionStyle)(allConns[ci]);
|
|
138987
|
+
}
|
|
138988
|
+
vm._connectionSelected = true;
|
|
138989
|
+
vm.clickPath(connection);
|
|
138990
|
+
vm.dragLineObj.init(connection, thisConnect);
|
|
138991
|
+
selectConnection(vm, connection);
|
|
138992
|
+
vm.emitData();
|
|
138993
|
+
return false;
|
|
138994
|
+
});
|
|
138995
|
+
|
|
138996
|
+
// click: 路径面板展示(状态管理由 mousedown 处理)
|
|
138997
|
+
jsPlumb.bind('click', function (conn) {
|
|
138998
|
+
vm.clickPath(conn);
|
|
138999
|
+
return false;
|
|
139000
|
+
});
|
|
139001
|
+
|
|
139002
|
+
// connectionMoved: 连接端点拖移完成后同步数据模型 + 重置端点状态
|
|
139003
|
+
jsPlumb.bind('connectionMoved', function (info) {
|
|
139004
|
+
vm.dragPath({
|
|
139005
|
+
connection: info.connection,
|
|
139006
|
+
source: info.connection.source,
|
|
139007
|
+
target: info.connection.target,
|
|
139008
|
+
sourceId: info.connection.sourceId,
|
|
139009
|
+
targetId: info.connection.targetId
|
|
139010
|
+
});
|
|
139011
|
+
var idx = info.index;
|
|
139012
|
+
if (idx === 0 && info.originalSourceEndpoint) {
|
|
139013
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetEndpointSourceFlags)(info.originalSourceEndpoint);
|
|
139014
|
+
} else if (idx === 1 && info.originalTargetEndpoint) {
|
|
139015
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.resetEndpointSourceFlags)(info.originalTargetEndpoint);
|
|
139016
|
+
}
|
|
139017
|
+
vm.ComparePath();
|
|
139018
|
+
vm.emitData();
|
|
139019
|
+
});
|
|
139020
|
+
|
|
139021
|
+
// connectionDrag: 拖拽创建新连接线时强制设置样式 + 拖拽状态追踪
|
|
139022
|
+
jsPlumb.bind('connectionDrag', function (conn) {
|
|
139023
|
+
(0,_globalStyle_js__WEBPACK_IMPORTED_MODULE_3__.applyConnectionStyle)(conn);
|
|
139024
|
+
vm._connectionDragging = true;
|
|
139025
|
+
});
|
|
139026
|
+
|
|
139027
|
+
// connectionDragStop: 拖拽停止后重置状态标志
|
|
139028
|
+
jsPlumb.bind('connectionDragStop', function () {
|
|
139029
|
+
vm._connectionDragging = false;
|
|
139030
|
+
});
|
|
139031
|
+
}
|
|
139032
|
+
|
|
138762
139033
|
/***/ }),
|
|
138763
139034
|
|
|
138764
139035
|
/***/ 52641:
|
|
@@ -138767,12 +139038,31 @@ function viewLinkedProcess(wflow, curNodeId) {
|
|
|
138767
139038
|
"use strict";
|
|
138768
139039
|
__webpack_require__.r(__webpack_exports__);
|
|
138769
139040
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
139041
|
+
/* harmony export */ CONNECTION_DEFAULT_STYLE: function() { return /* binding */ CONNECTION_DEFAULT_STYLE; },
|
|
139042
|
+
/* harmony export */ applyConnectionStyle: function() { return /* binding */ applyConnectionStyle; },
|
|
139043
|
+
/* harmony export */ checkAndAddArrow: function() { return /* binding */ checkAndAddArrow; },
|
|
139044
|
+
/* harmony export */ clearEndpointFillStyle: function() { return /* binding */ clearEndpointFillStyle; },
|
|
138770
139045
|
/* harmony export */ createConnect: function() { return /* binding */ createConnect; },
|
|
138771
139046
|
/* harmony export */ createPathLine: function() { return /* binding */ createPathLine; },
|
|
138772
|
-
/* harmony export */ hollowCircle: function() { return /* binding */ hollowCircle; }
|
|
139047
|
+
/* harmony export */ hollowCircle: function() { return /* binding */ hollowCircle; },
|
|
139048
|
+
/* harmony export */ initConnectionEndpointMode: function() { return /* binding */ initConnectionEndpointMode; },
|
|
139049
|
+
/* harmony export */ resetAllAnchorEndpoints: function() { return /* binding */ resetAllAnchorEndpoints; },
|
|
139050
|
+
/* harmony export */ resetAllConnectionEndpoints: function() { return /* binding */ resetAllConnectionEndpoints; },
|
|
139051
|
+
/* harmony export */ resetEndpointSourceFlags: function() { return /* binding */ resetEndpointSourceFlags; },
|
|
139052
|
+
/* harmony export */ setAnchorCreateMode: function() { return /* binding */ setAnchorCreateMode; },
|
|
139053
|
+
/* harmony export */ setConnectionEndpointCreateMode: function() { return /* binding */ setConnectionEndpointCreateMode; }
|
|
138773
139054
|
/* harmony export */ });
|
|
139055
|
+
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74692);
|
|
139056
|
+
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
|
|
139057
|
+
|
|
138774
139058
|
var jsPlumb = window.jsPlumb;
|
|
138775
139059
|
|
|
139060
|
+
// ========== 连接线默认样式常量 ==========
|
|
139061
|
+
var CONNECTION_DEFAULT_STYLE = {
|
|
139062
|
+
stroke: '#438eb9',
|
|
139063
|
+
strokeWidth: 2
|
|
139064
|
+
};
|
|
139065
|
+
|
|
138776
139066
|
// 端点样式,(修改变量名)
|
|
138777
139067
|
var hollowCircle = {
|
|
138778
139068
|
DragOptions: {
|
|
@@ -138816,7 +139106,7 @@ var hollowCircle = {
|
|
|
138816
139106
|
cssClass: 'line_text',
|
|
138817
139107
|
events: {
|
|
138818
139108
|
mousedown: function mousedown(labelOverlay, originalEvent) {
|
|
138819
|
-
jsPlumb.draggable(
|
|
139109
|
+
jsPlumb.draggable(jquery__WEBPACK_IMPORTED_MODULE_0___default()('.line_text'));
|
|
138820
139110
|
},
|
|
138821
139111
|
mouseout: function mouseout() {
|
|
138822
139112
|
return false;
|
|
@@ -138832,6 +139122,8 @@ function createConnect(conn, connector, anchors) {
|
|
|
138832
139122
|
target: conn.targetId || conn.PageTargetId,
|
|
138833
139123
|
anchors: anchors,
|
|
138834
139124
|
editable: true,
|
|
139125
|
+
connectionsDetachable: true,
|
|
139126
|
+
// 允许拖移连接端点(jsPlumb 2.15.6 默认即为 true,此处显式声明)
|
|
138835
139127
|
parameters: {
|
|
138836
139128
|
pathId: conn.id || conn.ConnectionId
|
|
138837
139129
|
},
|
|
@@ -138851,11 +139143,25 @@ function createConnect(conn, connector, anchors) {
|
|
|
138851
139143
|
}]
|
|
138852
139144
|
});
|
|
138853
139145
|
if (a) {
|
|
138854
|
-
|
|
138855
|
-
|
|
138856
|
-
|
|
138857
|
-
|
|
138858
|
-
|
|
139146
|
+
// 安全检查:确保连接内部状态完整后再设标签,防止 _jsPlumb.overlays 为 null
|
|
139147
|
+
if (a._jsPlumb && a._jsPlumb.overlays) {
|
|
139148
|
+
a.setLabel({
|
|
139149
|
+
label: conn.label || ' ',
|
|
139150
|
+
cssClass: 'line_text',
|
|
139151
|
+
location: conn.labelLocation || 0.5
|
|
139152
|
+
});
|
|
139153
|
+
} else {
|
|
139154
|
+
// 连接对象未完全初始化,延迟设置标签
|
|
139155
|
+
setTimeout(function () {
|
|
139156
|
+
if (a._jsPlumb && a._jsPlumb.overlays) {
|
|
139157
|
+
a.setLabel({
|
|
139158
|
+
label: conn.label || ' ',
|
|
139159
|
+
cssClass: 'line_text',
|
|
139160
|
+
location: conn.labelLocation || 0.5
|
|
139161
|
+
});
|
|
139162
|
+
}
|
|
139163
|
+
}, 100);
|
|
139164
|
+
}
|
|
138859
139165
|
a.labelLocation = conn.labelLocation;
|
|
138860
139166
|
} else {
|
|
138861
139167
|
console.log('createConnect failure', a);
|
|
@@ -138982,18 +139288,260 @@ function createPathLine(connectsArr) {
|
|
|
138982
139288
|
stub: [0, 0]
|
|
138983
139289
|
}];
|
|
138984
139290
|
}
|
|
138985
|
-
var sourceNode =
|
|
139291
|
+
var sourceNode = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + connectsArr[j].PageSourceId);
|
|
138986
139292
|
if (sourceNode.hasClass('dfzjd') || sourceNode.hasClass('zyjd')) {
|
|
138987
139293
|
connectsArr[j].label = '';
|
|
138988
139294
|
}
|
|
138989
139295
|
try {
|
|
138990
139296
|
createConnect(connectsArr[j], connector, anchors);
|
|
138991
139297
|
} catch (e) {
|
|
138992
|
-
|
|
139298
|
+
try {
|
|
139299
|
+
createConnect(connectsArr[j], connector, anchors);
|
|
139300
|
+
} catch (e2) {
|
|
139301
|
+
console.warn('createConnect failed after retry:', e2.message, connectsArr[j]);
|
|
139302
|
+
}
|
|
139303
|
+
}
|
|
139304
|
+
}
|
|
139305
|
+
}
|
|
139306
|
+
|
|
139307
|
+
|
|
139308
|
+
// ========== 端点源模式工具函数 ==========
|
|
139309
|
+
|
|
139310
|
+
/**
|
|
139311
|
+
* 重置端点的临时源模式标志,恢复默认拖拽行为
|
|
139312
|
+
* - 连接端点:恢复到移动模式(isSource=true, maxConnections=1, dragAllowedWhenFull=true)
|
|
139313
|
+
* - 锚点端点:完全重置源模式(isSource=false)
|
|
139314
|
+
*/
|
|
139315
|
+
function resetEndpointSourceFlags(ep) {
|
|
139316
|
+
if (!ep) return;
|
|
139317
|
+
// 连接端点优先处理(无论是否有 _wfOrigSource,连接端点必须恢复到移动模式状态)
|
|
139318
|
+
if (ep._wfConnEp && ep._wfSourceMode) {
|
|
139319
|
+
delete ep.isTemporarySource;
|
|
139320
|
+
ep.isSource = true;
|
|
139321
|
+
ep.isTemporarySource = true;
|
|
139322
|
+
ep.dragAllowedWhenFull = true;
|
|
139323
|
+
if (ep._jsPlumb) {
|
|
139324
|
+
ep._jsPlumb.maxConnections = 1; // isFull()=true → 拖拽进入移动模式
|
|
139325
|
+
}
|
|
139326
|
+
if (ep._wfOrigPaintStyle) {
|
|
139327
|
+
for (var rk in ep._wfOrigPaintStyle) {
|
|
139328
|
+
ep._jsPlumb.paintStyle[rk] = ep._wfOrigPaintStyle[rk];
|
|
139329
|
+
}
|
|
139330
|
+
delete ep._jsPlumb.paintStyle.fill;
|
|
139331
|
+
if (ep._wfOrigPaintStyle.fill) ep._jsPlumb.paintStyle.fill = ep._wfOrigPaintStyle.fill;
|
|
139332
|
+
ep._jsPlumb.paintStyleInUse = ep._jsPlumb.paintStyle;
|
|
139333
|
+
delete ep._wfOrigPaintStyle;
|
|
139334
|
+
}
|
|
139335
|
+
if (ep._wfOrigGetPaintStyle) {
|
|
139336
|
+
ep.getPaintStyle = ep._wfOrigGetPaintStyle;
|
|
139337
|
+
delete ep._wfOrigGetPaintStyle;
|
|
139338
|
+
}
|
|
139339
|
+
delete ep._wfSourceMode;
|
|
139340
|
+
return;
|
|
139341
|
+
}
|
|
139342
|
+
if (ep._wfOrigSource) return; // 原始锚点源端点不重置
|
|
139343
|
+
delete ep.isTemporarySource;
|
|
139344
|
+
if (!ep._wfSourceMode) return;
|
|
139345
|
+
// 非连接端点(普通锚点端点):完全重置源模式
|
|
139346
|
+
ep.isSource = false;
|
|
139347
|
+
ep.connectionsDetachable = true;
|
|
139348
|
+
ep.dragAllowedWhenFull = false;
|
|
139349
|
+
if (ep._jsPlumb) {
|
|
139350
|
+
if (ep._wfOrigMaxConnections !== undefined) {
|
|
139351
|
+
ep._jsPlumb.maxConnections = ep._wfOrigMaxConnections;
|
|
139352
|
+
delete ep._wfOrigMaxConnections;
|
|
139353
|
+
}
|
|
139354
|
+
if (ep._wfOrigPaintStyle) {
|
|
139355
|
+
for (var rk in ep._wfOrigPaintStyle) {
|
|
139356
|
+
ep._jsPlumb.paintStyle[rk] = ep._wfOrigPaintStyle[rk];
|
|
139357
|
+
}
|
|
139358
|
+
delete ep._jsPlumb.paintStyle.fill;
|
|
139359
|
+
if (ep._wfOrigPaintStyle.fill) ep._jsPlumb.paintStyle.fill = ep._wfOrigPaintStyle.fill;
|
|
139360
|
+
ep._jsPlumb.paintStyleInUse = ep._jsPlumb.paintStyle;
|
|
139361
|
+
delete ep._wfOrigPaintStyle;
|
|
139362
|
+
}
|
|
139363
|
+
if (ep._wfOrigGetPaintStyle) {
|
|
139364
|
+
ep.getPaintStyle = ep._wfOrigGetPaintStyle;
|
|
139365
|
+
delete ep._wfOrigGetPaintStyle;
|
|
138993
139366
|
}
|
|
139367
|
+
delete ep._wfSourceMode;
|
|
138994
139368
|
}
|
|
139369
|
+
delete ep.connector;
|
|
139370
|
+
delete ep.connectorOverlays;
|
|
139371
|
+
delete ep.connectorStyle;
|
|
138995
139372
|
}
|
|
138996
139373
|
|
|
139374
|
+
/**
|
|
139375
|
+
* 清除端点 paintStyle 中的 fill/outline 属性(防止拖拽时箭头填充异常)
|
|
139376
|
+
*/
|
|
139377
|
+
function clearEndpointFillStyle(ep) {
|
|
139378
|
+
if (ep && ep._jsPlumb && ep._jsPlumb.paintStyle) {
|
|
139379
|
+
delete ep._jsPlumb.paintStyle.fill;
|
|
139380
|
+
delete ep._jsPlumb.paintStyle.outlineStroke;
|
|
139381
|
+
delete ep._jsPlumb.paintStyle.outlineWidth;
|
|
139382
|
+
ep._jsPlumb.paintStyle.fill = 'none';
|
|
139383
|
+
ep._jsPlumb.paintStyleInUse = ep._jsPlumb.paintStyle;
|
|
139384
|
+
}
|
|
139385
|
+
if (ep && ep.connectorStyle) {
|
|
139386
|
+
delete ep.connectorStyle.fill;
|
|
139387
|
+
}
|
|
139388
|
+
}
|
|
139389
|
+
|
|
139390
|
+
// ========== 连接线样式工具函数 ==========
|
|
139391
|
+
|
|
139392
|
+
/**
|
|
139393
|
+
* 设置连接线默认蓝色样式
|
|
139394
|
+
*/
|
|
139395
|
+
function applyConnectionStyle(connection) {
|
|
139396
|
+
if (connection && connection.setPaintStyle) {
|
|
139397
|
+
connection.setPaintStyle(CONNECTION_DEFAULT_STYLE);
|
|
139398
|
+
}
|
|
139399
|
+
}
|
|
139400
|
+
|
|
139401
|
+
/**
|
|
139402
|
+
* 检查连接线是否已有 Arrow 箭头覆盖,无则补充
|
|
139403
|
+
*/
|
|
139404
|
+
function checkAndAddArrow(connection) {
|
|
139405
|
+
var overlays = connection.getOverlays();
|
|
139406
|
+
var hasArrow = false;
|
|
139407
|
+
for (var key in overlays) {
|
|
139408
|
+
if (overlays[key] && overlays[key].type === 'Arrow') {
|
|
139409
|
+
hasArrow = true;
|
|
139410
|
+
break;
|
|
139411
|
+
}
|
|
139412
|
+
}
|
|
139413
|
+
if (!hasArrow) {
|
|
139414
|
+
connection.addOverlay(['Arrow', {
|
|
139415
|
+
width: 10,
|
|
139416
|
+
length: 10,
|
|
139417
|
+
location: 1
|
|
139418
|
+
}]);
|
|
139419
|
+
}
|
|
139420
|
+
}
|
|
139421
|
+
|
|
139422
|
+
// ========== 端点模式工具函数 ==========
|
|
139423
|
+
|
|
139424
|
+
/**
|
|
139425
|
+
* 初始化连接端点的永久源模式(始终可拖拽移动连接线)
|
|
139426
|
+
* maxConnections=1 配合 isFull()=true 确保拖拽进入移动模式
|
|
139427
|
+
* 若端点已处于节点选中的创建模式(_wfSourceMode),保留 maxConnections 不变
|
|
139428
|
+
*/
|
|
139429
|
+
function initConnectionEndpointMode(ep) {
|
|
139430
|
+
if (ep.canvas) {
|
|
139431
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(ep.canvas).addClass('wf-conn-ep'); // 永久标记:连接端点 z-index:6,高于锚点 z-index:5
|
|
139432
|
+
jquery__WEBPACK_IMPORTED_MODULE_0___default()(ep.canvas).addClass('wf-ep-active'); // 新连接立即 active,z-index:7 置顶可拖拽
|
|
139433
|
+
}
|
|
139434
|
+
ep._wfConnEp = true;
|
|
139435
|
+
ep.isSource = true;
|
|
139436
|
+
ep.isTemporarySource = true;
|
|
139437
|
+
ep.dragAllowedWhenFull = true;
|
|
139438
|
+
if (ep._jsPlumb) {
|
|
139439
|
+
if (ep._wfSourceMode) {
|
|
139440
|
+
// 端点已处于创建模式(节点选中时设置),保留 maxConnections 不变
|
|
139441
|
+
// 确保用户可以连续从同一节点拖拽创建多条连接线
|
|
139442
|
+
return;
|
|
139443
|
+
}
|
|
139444
|
+
if (ep._wfOrigMaxConnections === undefined) {
|
|
139445
|
+
ep._wfOrigMaxConnections = ep._jsPlumb.maxConnections;
|
|
139446
|
+
}
|
|
139447
|
+
ep._jsPlumb.maxConnections = 1;
|
|
139448
|
+
}
|
|
139449
|
+
}
|
|
139450
|
+
|
|
139451
|
+
/**
|
|
139452
|
+
* 设置选中节点的锚点端点为创建模式(拖拽时创建新连接)
|
|
139453
|
+
* maxConnections=-1 确保 connectorSelector 返回的 jpc 不被 isFull 拦截
|
|
139454
|
+
*/
|
|
139455
|
+
function setAnchorCreateMode(eps) {
|
|
139456
|
+
for (var i = 0; i < eps.length; i++) {
|
|
139457
|
+
var aep = eps[i];
|
|
139458
|
+
if (aep && aep._wfOrigSource) {
|
|
139459
|
+
if (!aep._wfSourceMode) {
|
|
139460
|
+
aep._wfSourceMode = true;
|
|
139461
|
+
if (aep._jsPlumb && aep._wfOrigMaxConnections === undefined) {
|
|
139462
|
+
aep._wfOrigMaxConnections = aep._jsPlumb.maxConnections;
|
|
139463
|
+
}
|
|
139464
|
+
}
|
|
139465
|
+
if (aep._jsPlumb) aep._jsPlumb.maxConnections = -1;
|
|
139466
|
+
}
|
|
139467
|
+
}
|
|
139468
|
+
}
|
|
139469
|
+
|
|
139470
|
+
/**
|
|
139471
|
+
* 设置选中节点的连接端点为创建模式(拖拽时生成新连接而非移动已有连接)
|
|
139472
|
+
* maxConnections=2 使 isFull() 返回 false(1 < 2),jsPlumb 进入创建模式
|
|
139473
|
+
*/
|
|
139474
|
+
function setConnectionEndpointCreateMode(node) {
|
|
139475
|
+
var nodeConns = jsPlumb.getConnections({
|
|
139476
|
+
source: node
|
|
139477
|
+
}).concat(jsPlumb.getConnections({
|
|
139478
|
+
target: node
|
|
139479
|
+
}));
|
|
139480
|
+
for (var ci = 0; ci < nodeConns.length; ci++) {
|
|
139481
|
+
if (!nodeConns[ci].endpoints) continue;
|
|
139482
|
+
for (var ei = 0; ei < nodeConns[ci].endpoints.length; ei++) {
|
|
139483
|
+
var ep = nodeConns[ci].endpoints[ei];
|
|
139484
|
+
if (ep && !ep._wfSourceMode) {
|
|
139485
|
+
ep._wfSourceMode = true;
|
|
139486
|
+
ep.isSource = true;
|
|
139487
|
+
ep.isTemporarySource = true;
|
|
139488
|
+
ep.dragAllowedWhenFull = true;
|
|
139489
|
+
if (ep._jsPlumb) {
|
|
139490
|
+
if (ep._wfOrigMaxConnections === undefined) {
|
|
139491
|
+
ep._wfOrigMaxConnections = ep._jsPlumb.maxConnections;
|
|
139492
|
+
}
|
|
139493
|
+
ep._jsPlumb.maxConnections = 99;
|
|
139494
|
+
// 清除 paintStyle 中的填充属性(避免拖拽时箭头填充异常)
|
|
139495
|
+
if (!ep._wfOrigPaintStyle) {
|
|
139496
|
+
ep._wfOrigPaintStyle = {};
|
|
139497
|
+
for (var pk in ep._jsPlumb.paintStyle) {
|
|
139498
|
+
ep._wfOrigPaintStyle[pk] = ep._jsPlumb.paintStyle[pk];
|
|
139499
|
+
}
|
|
139500
|
+
}
|
|
139501
|
+
delete ep._jsPlumb.paintStyle.fill;
|
|
139502
|
+
delete ep._jsPlumb.paintStyle.outlineStroke;
|
|
139503
|
+
delete ep._jsPlumb.paintStyle.outlineWidth;
|
|
139504
|
+
ep._jsPlumb.paintStyle.fill = 'none';
|
|
139505
|
+
ep._jsPlumb.paintStyleInUse = ep._jsPlumb.paintStyle;
|
|
139506
|
+
if (!ep._wfOrigGetPaintStyle) {
|
|
139507
|
+
ep._wfOrigGetPaintStyle = ep.getPaintStyle;
|
|
139508
|
+
}
|
|
139509
|
+
ep.getPaintStyle = function () {
|
|
139510
|
+
return ep._jsPlumb.paintStyle;
|
|
139511
|
+
};
|
|
139512
|
+
}
|
|
139513
|
+
}
|
|
139514
|
+
}
|
|
139515
|
+
}
|
|
139516
|
+
}
|
|
139517
|
+
|
|
139518
|
+
/**
|
|
139519
|
+
* 重置所有节点的锚点端点(恢复默认状态)
|
|
139520
|
+
* 遍历节点数组,获取每个节点的锚点端点并调用 resetEndpointSourceFlags
|
|
139521
|
+
*/
|
|
139522
|
+
function resetAllAnchorEndpoints(nodes) {
|
|
139523
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
139524
|
+
var eps = jsPlumb.getEndpoints(nodes[i]);
|
|
139525
|
+
for (var j = 0; j < eps.length; j++) {
|
|
139526
|
+
eps[j].setEnabled(true);
|
|
139527
|
+
resetEndpointSourceFlags(eps[j]);
|
|
139528
|
+
}
|
|
139529
|
+
}
|
|
139530
|
+
}
|
|
139531
|
+
|
|
139532
|
+
/**
|
|
139533
|
+
* 重置所有连接线的连接端点(恢复移动模式 maxConnections=1)
|
|
139534
|
+
* 通过 getAllConnections 遍历,确保连接端点被显式重置
|
|
139535
|
+
*/
|
|
139536
|
+
function resetAllConnectionEndpoints() {
|
|
139537
|
+
var allConns = jsPlumb.getAllConnections();
|
|
139538
|
+
for (var i = 0; i < allConns.length; i++) {
|
|
139539
|
+
if (!allConns[i].endpoints) continue;
|
|
139540
|
+
for (var j = 0; j < allConns[i].endpoints.length; j++) {
|
|
139541
|
+
resetEndpointSourceFlags(allConns[i].endpoints[j]);
|
|
139542
|
+
}
|
|
139543
|
+
}
|
|
139544
|
+
}
|
|
138997
139545
|
|
|
138998
139546
|
/***/ }),
|
|
138999
139547
|
|
|
@@ -164980,7 +165528,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-820fd3ea]:export{stdMenuBgcolo
|
|
|
164980
165528
|
|
|
164981
165529
|
/***/ }),
|
|
164982
165530
|
|
|
164983
|
-
/***/
|
|
165531
|
+
/***/ 28728:
|
|
164984
165532
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
164985
165533
|
|
|
164986
165534
|
"use strict";
|
|
@@ -164994,7 +165542,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
164994
165542
|
|
|
164995
165543
|
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()));
|
|
164996
165544
|
// Module
|
|
164997
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
165545
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-75fd78f9] .el-upload--text{width:100%}[data-v-75fd78f9] .el-upload .el-input-group .el-input__inner{display:inline-block;vertical-align:baseline}.docfileIcon[data-v-75fd78f9]{padding-left:10px;padding-right:10px}.file-right-box[data-v-75fd78f9]{position:fixed;bottom:0;top:73px;height:calc(100vh - 73px)!important;z-index:1199}.file-right-box .right-box-div1[data-v-75fd78f9]{float:left;height:100%;background:#fff;border-left:1px solid #ddd;overflow:hidden;font-size:14px}.file-right-box .right-box-div1[data-v-75fd78f9] .el-scrollbar{height:calc(100vh - 112px);width:100%}.file-right-box .right-box-div1[data-v-75fd78f9] .el-scrollbar .el-scrollbar__wrap{overflow-x:auto}.file-right-box .right-box-div1 .navbar[data-v-75fd78f9]{padding:11px 12px 10px 12px;font-size:14px;font-weight:600;display:-webkit-box;display:-ms-flexbox;display:flex}.file-right-box .right-box-div1 .navbar[data-v-75fd78f9] .el-icon-close{float:right;cursor:pointer}.file-right-box .right-box-div1 .fileitem[data-v-75fd78f9]{padding:10px;font-size:13px;border-bottom:1px solid #f3f3f3;border-top:1px solid #f3f3f3}.file-right-box .right-box-div1 .fileitem .el-dropdown-link[data-v-75fd78f9]{cursor:pointer}@media (max-width:1569px){.right-box-div1[data-v-75fd78f9]{width:280px}}@media (min-width:1570px){.right-box-div1[data-v-75fd78f9]{width:350px}}.sidebar-area[data-v-75fd78f9]{border-bottom:1px solid #eee}.sidebar-area .sidebar-area-title[data-v-75fd78f9]{font-weight:600;line-height:24px;padding:10px}.sidebar-area .sidebar-area-title .el-button--primary[data-v-75fd78f9]{width:6px;padding:0;margin-right:6px;margin-top:5px;border-radius:1px;height:14px;cursor:default;vertical-align:top;display:inline-block}.sidebar-area .sidebar-area-title div[data-v-75fd78f9]{display:inline-block;vertical-align:top}.sidebar-area .sidebar-area-title i[data-v-75fd78f9]{margin:3px 5px 0 10px;font-size:14px}.sidebar-area .sidebar-area-content[data-v-75fd78f9]{padding-left:20px;padding-right:10px;padding-bottom:10px}.sidebar-area .sidebar-area-content .attach-row[data-v-75fd78f9]{line-height:21px}.sidebar-area .sidebar-area-content .attach-row .attach-name[data-v-75fd78f9]{width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.sidebar-area .sidebar-area-content .no-attachments[data-v-75fd78f9]{height:50px;line-height:50px}.table-row .attach-name[data-v-75fd78f9]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.table-row .removeBodyfileIcon[data-v-75fd78f9]{display:block}.fileHovering[data-v-75fd78f9]{background:#a5c45d}.fileHovering[data-v-75fd78f9] .el-input-group__append,.fileHovering[data-v-75fd78f9] .el-input__inner{opacity:.5!important}", ""]);
|
|
164998
165546
|
// Exports
|
|
164999
165547
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
165000
165548
|
|
|
@@ -165022,7 +165570,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-e8bcd130]:export{stdMenuBgcolo
|
|
|
165022
165570
|
|
|
165023
165571
|
/***/ }),
|
|
165024
165572
|
|
|
165025
|
-
/***/
|
|
165573
|
+
/***/ 39220:
|
|
165026
165574
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
165027
165575
|
|
|
165028
165576
|
"use strict";
|
|
@@ -165036,14 +165584,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
165036
165584
|
|
|
165037
165585
|
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()));
|
|
165038
165586
|
// Module
|
|
165039
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".idea-collapse-icon[data-v-
|
|
165587
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".idea-collapse-icon[data-v-52885f54]{float:right}.idea-collapse-icon .el-link[data-v-52885f54]{margin-top:2px}.idea-collapse-icon .el-link[data-v-52885f54],.idea-collapse-icon .el-link[data-v-52885f54] i{font-weight:600;font-size:14px}.idea-collapse-icon .el-link--default[data-v-52885f54]{display:table-cell}[data-v-52885f54] .el-collapse-item__header,[data-v-52885f54] .el-collapse-item__header i{font-weight:600;font-size:14px}[data-v-52885f54] .el-collapse-item__wrap{border-bottom:0!important}[data-v-52885f54] .el-collapse-item__wrap .el-collapse-item__content{padding-bottom:0!important}.idea-form[data-v-52885f54]{margin-top:-1px;position:relative;z-index:1000}.el-form .el-table__body .tdcont[data-v-52885f54]{line-height:20px}[data-v-52885f54] .highlight{font-weight:600;color:#323233}.idea-group[data-v-52885f54]{border-bottom:1px solid #e4e5e8}.l-text[data-v-52885f54]{font-weight:600}", ""]);
|
|
165040
165588
|
// Exports
|
|
165041
165589
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
165042
165590
|
|
|
165043
165591
|
|
|
165044
165592
|
/***/ }),
|
|
165045
165593
|
|
|
165046
|
-
/***/
|
|
165594
|
+
/***/ 66852:
|
|
165047
165595
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
165048
165596
|
|
|
165049
165597
|
"use strict";
|
|
@@ -167143,7 +167691,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".setting .header[data-v-8cadfe0a]{widt
|
|
|
167143
167691
|
|
|
167144
167692
|
/***/ }),
|
|
167145
167693
|
|
|
167146
|
-
/***/
|
|
167694
|
+
/***/ 4295:
|
|
167147
167695
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
167148
167696
|
|
|
167149
167697
|
"use strict";
|
|
@@ -167157,14 +167705,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167157
167705
|
|
|
167158
167706
|
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()));
|
|
167159
167707
|
// Module
|
|
167160
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
167708
|
+
___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}", ""]);
|
|
167161
167709
|
// Exports
|
|
167162
167710
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
167163
167711
|
|
|
167164
167712
|
|
|
167165
167713
|
/***/ }),
|
|
167166
167714
|
|
|
167167
|
-
/***/
|
|
167715
|
+
/***/ 75943:
|
|
167168
167716
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
167169
167717
|
|
|
167170
167718
|
"use strict";
|
|
@@ -167178,7 +167726,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167178
167726
|
|
|
167179
167727
|
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()));
|
|
167180
167728
|
// Module
|
|
167181
|
-
___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}", ""]);
|
|
167729
|
+
___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}", ""]);
|
|
167182
167730
|
// Exports
|
|
167183
167731
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
167184
167732
|
|
|
@@ -167750,7 +168298,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "table[data-v-981ff2e2]{border-collapse
|
|
|
167750
168298
|
|
|
167751
168299
|
/***/ }),
|
|
167752
168300
|
|
|
167753
|
-
/***/
|
|
168301
|
+
/***/ 13114:
|
|
167754
168302
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
167755
168303
|
|
|
167756
168304
|
"use strict";
|
|
@@ -167764,7 +168312,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167764
168312
|
|
|
167765
168313
|
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()));
|
|
167766
168314
|
// Module
|
|
167767
|
-
___CSS_LOADER_EXPORT___.push([module.id, "table[data-v-
|
|
168315
|
+
___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}", ""]);
|
|
167768
168316
|
// Exports
|
|
167769
168317
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
167770
168318
|
|
|
@@ -224002,6 +224550,489 @@ webpackContext.id = 35358;
|
|
|
224002
224550
|
})));
|
|
224003
224551
|
|
|
224004
224552
|
|
|
224553
|
+
/***/ }),
|
|
224554
|
+
|
|
224555
|
+
/***/ 5947:
|
|
224556
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
224557
|
+
|
|
224558
|
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
224559
|
+
* @license MIT */
|
|
224560
|
+
|
|
224561
|
+
;(function(root, factory) {
|
|
224562
|
+
|
|
224563
|
+
if (true) {
|
|
224564
|
+
!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
224565
|
+
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
224566
|
+
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
224567
|
+
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
224568
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
224569
|
+
} else {}
|
|
224570
|
+
|
|
224571
|
+
})(this, function() {
|
|
224572
|
+
var NProgress = {};
|
|
224573
|
+
|
|
224574
|
+
NProgress.version = '0.2.0';
|
|
224575
|
+
|
|
224576
|
+
var Settings = NProgress.settings = {
|
|
224577
|
+
minimum: 0.08,
|
|
224578
|
+
easing: 'ease',
|
|
224579
|
+
positionUsing: '',
|
|
224580
|
+
speed: 200,
|
|
224581
|
+
trickle: true,
|
|
224582
|
+
trickleRate: 0.02,
|
|
224583
|
+
trickleSpeed: 800,
|
|
224584
|
+
showSpinner: true,
|
|
224585
|
+
barSelector: '[role="bar"]',
|
|
224586
|
+
spinnerSelector: '[role="spinner"]',
|
|
224587
|
+
parent: 'body',
|
|
224588
|
+
template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
|
|
224589
|
+
};
|
|
224590
|
+
|
|
224591
|
+
/**
|
|
224592
|
+
* Updates configuration.
|
|
224593
|
+
*
|
|
224594
|
+
* NProgress.configure({
|
|
224595
|
+
* minimum: 0.1
|
|
224596
|
+
* });
|
|
224597
|
+
*/
|
|
224598
|
+
NProgress.configure = function(options) {
|
|
224599
|
+
var key, value;
|
|
224600
|
+
for (key in options) {
|
|
224601
|
+
value = options[key];
|
|
224602
|
+
if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;
|
|
224603
|
+
}
|
|
224604
|
+
|
|
224605
|
+
return this;
|
|
224606
|
+
};
|
|
224607
|
+
|
|
224608
|
+
/**
|
|
224609
|
+
* Last number.
|
|
224610
|
+
*/
|
|
224611
|
+
|
|
224612
|
+
NProgress.status = null;
|
|
224613
|
+
|
|
224614
|
+
/**
|
|
224615
|
+
* Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.
|
|
224616
|
+
*
|
|
224617
|
+
* NProgress.set(0.4);
|
|
224618
|
+
* NProgress.set(1.0);
|
|
224619
|
+
*/
|
|
224620
|
+
|
|
224621
|
+
NProgress.set = function(n) {
|
|
224622
|
+
var started = NProgress.isStarted();
|
|
224623
|
+
|
|
224624
|
+
n = clamp(n, Settings.minimum, 1);
|
|
224625
|
+
NProgress.status = (n === 1 ? null : n);
|
|
224626
|
+
|
|
224627
|
+
var progress = NProgress.render(!started),
|
|
224628
|
+
bar = progress.querySelector(Settings.barSelector),
|
|
224629
|
+
speed = Settings.speed,
|
|
224630
|
+
ease = Settings.easing;
|
|
224631
|
+
|
|
224632
|
+
progress.offsetWidth; /* Repaint */
|
|
224633
|
+
|
|
224634
|
+
queue(function(next) {
|
|
224635
|
+
// Set positionUsing if it hasn't already been set
|
|
224636
|
+
if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();
|
|
224637
|
+
|
|
224638
|
+
// Add transition
|
|
224639
|
+
css(bar, barPositionCSS(n, speed, ease));
|
|
224640
|
+
|
|
224641
|
+
if (n === 1) {
|
|
224642
|
+
// Fade out
|
|
224643
|
+
css(progress, {
|
|
224644
|
+
transition: 'none',
|
|
224645
|
+
opacity: 1
|
|
224646
|
+
});
|
|
224647
|
+
progress.offsetWidth; /* Repaint */
|
|
224648
|
+
|
|
224649
|
+
setTimeout(function() {
|
|
224650
|
+
css(progress, {
|
|
224651
|
+
transition: 'all ' + speed + 'ms linear',
|
|
224652
|
+
opacity: 0
|
|
224653
|
+
});
|
|
224654
|
+
setTimeout(function() {
|
|
224655
|
+
NProgress.remove();
|
|
224656
|
+
next();
|
|
224657
|
+
}, speed);
|
|
224658
|
+
}, speed);
|
|
224659
|
+
} else {
|
|
224660
|
+
setTimeout(next, speed);
|
|
224661
|
+
}
|
|
224662
|
+
});
|
|
224663
|
+
|
|
224664
|
+
return this;
|
|
224665
|
+
};
|
|
224666
|
+
|
|
224667
|
+
NProgress.isStarted = function() {
|
|
224668
|
+
return typeof NProgress.status === 'number';
|
|
224669
|
+
};
|
|
224670
|
+
|
|
224671
|
+
/**
|
|
224672
|
+
* Shows the progress bar.
|
|
224673
|
+
* This is the same as setting the status to 0%, except that it doesn't go backwards.
|
|
224674
|
+
*
|
|
224675
|
+
* NProgress.start();
|
|
224676
|
+
*
|
|
224677
|
+
*/
|
|
224678
|
+
NProgress.start = function() {
|
|
224679
|
+
if (!NProgress.status) NProgress.set(0);
|
|
224680
|
+
|
|
224681
|
+
var work = function() {
|
|
224682
|
+
setTimeout(function() {
|
|
224683
|
+
if (!NProgress.status) return;
|
|
224684
|
+
NProgress.trickle();
|
|
224685
|
+
work();
|
|
224686
|
+
}, Settings.trickleSpeed);
|
|
224687
|
+
};
|
|
224688
|
+
|
|
224689
|
+
if (Settings.trickle) work();
|
|
224690
|
+
|
|
224691
|
+
return this;
|
|
224692
|
+
};
|
|
224693
|
+
|
|
224694
|
+
/**
|
|
224695
|
+
* Hides the progress bar.
|
|
224696
|
+
* This is the *sort of* the same as setting the status to 100%, with the
|
|
224697
|
+
* difference being `done()` makes some placebo effect of some realistic motion.
|
|
224698
|
+
*
|
|
224699
|
+
* NProgress.done();
|
|
224700
|
+
*
|
|
224701
|
+
* If `true` is passed, it will show the progress bar even if its hidden.
|
|
224702
|
+
*
|
|
224703
|
+
* NProgress.done(true);
|
|
224704
|
+
*/
|
|
224705
|
+
|
|
224706
|
+
NProgress.done = function(force) {
|
|
224707
|
+
if (!force && !NProgress.status) return this;
|
|
224708
|
+
|
|
224709
|
+
return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);
|
|
224710
|
+
};
|
|
224711
|
+
|
|
224712
|
+
/**
|
|
224713
|
+
* Increments by a random amount.
|
|
224714
|
+
*/
|
|
224715
|
+
|
|
224716
|
+
NProgress.inc = function(amount) {
|
|
224717
|
+
var n = NProgress.status;
|
|
224718
|
+
|
|
224719
|
+
if (!n) {
|
|
224720
|
+
return NProgress.start();
|
|
224721
|
+
} else {
|
|
224722
|
+
if (typeof amount !== 'number') {
|
|
224723
|
+
amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);
|
|
224724
|
+
}
|
|
224725
|
+
|
|
224726
|
+
n = clamp(n + amount, 0, 0.994);
|
|
224727
|
+
return NProgress.set(n);
|
|
224728
|
+
}
|
|
224729
|
+
};
|
|
224730
|
+
|
|
224731
|
+
NProgress.trickle = function() {
|
|
224732
|
+
return NProgress.inc(Math.random() * Settings.trickleRate);
|
|
224733
|
+
};
|
|
224734
|
+
|
|
224735
|
+
/**
|
|
224736
|
+
* Waits for all supplied jQuery promises and
|
|
224737
|
+
* increases the progress as the promises resolve.
|
|
224738
|
+
*
|
|
224739
|
+
* @param $promise jQUery Promise
|
|
224740
|
+
*/
|
|
224741
|
+
(function() {
|
|
224742
|
+
var initial = 0, current = 0;
|
|
224743
|
+
|
|
224744
|
+
NProgress.promise = function($promise) {
|
|
224745
|
+
if (!$promise || $promise.state() === "resolved") {
|
|
224746
|
+
return this;
|
|
224747
|
+
}
|
|
224748
|
+
|
|
224749
|
+
if (current === 0) {
|
|
224750
|
+
NProgress.start();
|
|
224751
|
+
}
|
|
224752
|
+
|
|
224753
|
+
initial++;
|
|
224754
|
+
current++;
|
|
224755
|
+
|
|
224756
|
+
$promise.always(function() {
|
|
224757
|
+
current--;
|
|
224758
|
+
if (current === 0) {
|
|
224759
|
+
initial = 0;
|
|
224760
|
+
NProgress.done();
|
|
224761
|
+
} else {
|
|
224762
|
+
NProgress.set((initial - current) / initial);
|
|
224763
|
+
}
|
|
224764
|
+
});
|
|
224765
|
+
|
|
224766
|
+
return this;
|
|
224767
|
+
};
|
|
224768
|
+
|
|
224769
|
+
})();
|
|
224770
|
+
|
|
224771
|
+
/**
|
|
224772
|
+
* (Internal) renders the progress bar markup based on the `template`
|
|
224773
|
+
* setting.
|
|
224774
|
+
*/
|
|
224775
|
+
|
|
224776
|
+
NProgress.render = function(fromStart) {
|
|
224777
|
+
if (NProgress.isRendered()) return document.getElementById('nprogress');
|
|
224778
|
+
|
|
224779
|
+
addClass(document.documentElement, 'nprogress-busy');
|
|
224780
|
+
|
|
224781
|
+
var progress = document.createElement('div');
|
|
224782
|
+
progress.id = 'nprogress';
|
|
224783
|
+
progress.innerHTML = Settings.template;
|
|
224784
|
+
|
|
224785
|
+
var bar = progress.querySelector(Settings.barSelector),
|
|
224786
|
+
perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0),
|
|
224787
|
+
parent = document.querySelector(Settings.parent),
|
|
224788
|
+
spinner;
|
|
224789
|
+
|
|
224790
|
+
css(bar, {
|
|
224791
|
+
transition: 'all 0 linear',
|
|
224792
|
+
transform: 'translate3d(' + perc + '%,0,0)'
|
|
224793
|
+
});
|
|
224794
|
+
|
|
224795
|
+
if (!Settings.showSpinner) {
|
|
224796
|
+
spinner = progress.querySelector(Settings.spinnerSelector);
|
|
224797
|
+
spinner && removeElement(spinner);
|
|
224798
|
+
}
|
|
224799
|
+
|
|
224800
|
+
if (parent != document.body) {
|
|
224801
|
+
addClass(parent, 'nprogress-custom-parent');
|
|
224802
|
+
}
|
|
224803
|
+
|
|
224804
|
+
parent.appendChild(progress);
|
|
224805
|
+
return progress;
|
|
224806
|
+
};
|
|
224807
|
+
|
|
224808
|
+
/**
|
|
224809
|
+
* Removes the element. Opposite of render().
|
|
224810
|
+
*/
|
|
224811
|
+
|
|
224812
|
+
NProgress.remove = function() {
|
|
224813
|
+
removeClass(document.documentElement, 'nprogress-busy');
|
|
224814
|
+
removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent');
|
|
224815
|
+
var progress = document.getElementById('nprogress');
|
|
224816
|
+
progress && removeElement(progress);
|
|
224817
|
+
};
|
|
224818
|
+
|
|
224819
|
+
/**
|
|
224820
|
+
* Checks if the progress bar is rendered.
|
|
224821
|
+
*/
|
|
224822
|
+
|
|
224823
|
+
NProgress.isRendered = function() {
|
|
224824
|
+
return !!document.getElementById('nprogress');
|
|
224825
|
+
};
|
|
224826
|
+
|
|
224827
|
+
/**
|
|
224828
|
+
* Determine which positioning CSS rule to use.
|
|
224829
|
+
*/
|
|
224830
|
+
|
|
224831
|
+
NProgress.getPositioningCSS = function() {
|
|
224832
|
+
// Sniff on document.body.style
|
|
224833
|
+
var bodyStyle = document.body.style;
|
|
224834
|
+
|
|
224835
|
+
// Sniff prefixes
|
|
224836
|
+
var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' :
|
|
224837
|
+
('MozTransform' in bodyStyle) ? 'Moz' :
|
|
224838
|
+
('msTransform' in bodyStyle) ? 'ms' :
|
|
224839
|
+
('OTransform' in bodyStyle) ? 'O' : '';
|
|
224840
|
+
|
|
224841
|
+
if (vendorPrefix + 'Perspective' in bodyStyle) {
|
|
224842
|
+
// Modern browsers with 3D support, e.g. Webkit, IE10
|
|
224843
|
+
return 'translate3d';
|
|
224844
|
+
} else if (vendorPrefix + 'Transform' in bodyStyle) {
|
|
224845
|
+
// Browsers without 3D support, e.g. IE9
|
|
224846
|
+
return 'translate';
|
|
224847
|
+
} else {
|
|
224848
|
+
// Browsers without translate() support, e.g. IE7-8
|
|
224849
|
+
return 'margin';
|
|
224850
|
+
}
|
|
224851
|
+
};
|
|
224852
|
+
|
|
224853
|
+
/**
|
|
224854
|
+
* Helpers
|
|
224855
|
+
*/
|
|
224856
|
+
|
|
224857
|
+
function clamp(n, min, max) {
|
|
224858
|
+
if (n < min) return min;
|
|
224859
|
+
if (n > max) return max;
|
|
224860
|
+
return n;
|
|
224861
|
+
}
|
|
224862
|
+
|
|
224863
|
+
/**
|
|
224864
|
+
* (Internal) converts a percentage (`0..1`) to a bar translateX
|
|
224865
|
+
* percentage (`-100%..0%`).
|
|
224866
|
+
*/
|
|
224867
|
+
|
|
224868
|
+
function toBarPerc(n) {
|
|
224869
|
+
return (-1 + n) * 100;
|
|
224870
|
+
}
|
|
224871
|
+
|
|
224872
|
+
|
|
224873
|
+
/**
|
|
224874
|
+
* (Internal) returns the correct CSS for changing the bar's
|
|
224875
|
+
* position given an n percentage, and speed and ease from Settings
|
|
224876
|
+
*/
|
|
224877
|
+
|
|
224878
|
+
function barPositionCSS(n, speed, ease) {
|
|
224879
|
+
var barCSS;
|
|
224880
|
+
|
|
224881
|
+
if (Settings.positionUsing === 'translate3d') {
|
|
224882
|
+
barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };
|
|
224883
|
+
} else if (Settings.positionUsing === 'translate') {
|
|
224884
|
+
barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };
|
|
224885
|
+
} else {
|
|
224886
|
+
barCSS = { 'margin-left': toBarPerc(n)+'%' };
|
|
224887
|
+
}
|
|
224888
|
+
|
|
224889
|
+
barCSS.transition = 'all '+speed+'ms '+ease;
|
|
224890
|
+
|
|
224891
|
+
return barCSS;
|
|
224892
|
+
}
|
|
224893
|
+
|
|
224894
|
+
/**
|
|
224895
|
+
* (Internal) Queues a function to be executed.
|
|
224896
|
+
*/
|
|
224897
|
+
|
|
224898
|
+
var queue = (function() {
|
|
224899
|
+
var pending = [];
|
|
224900
|
+
|
|
224901
|
+
function next() {
|
|
224902
|
+
var fn = pending.shift();
|
|
224903
|
+
if (fn) {
|
|
224904
|
+
fn(next);
|
|
224905
|
+
}
|
|
224906
|
+
}
|
|
224907
|
+
|
|
224908
|
+
return function(fn) {
|
|
224909
|
+
pending.push(fn);
|
|
224910
|
+
if (pending.length == 1) next();
|
|
224911
|
+
};
|
|
224912
|
+
})();
|
|
224913
|
+
|
|
224914
|
+
/**
|
|
224915
|
+
* (Internal) Applies css properties to an element, similar to the jQuery
|
|
224916
|
+
* css method.
|
|
224917
|
+
*
|
|
224918
|
+
* While this helper does assist with vendor prefixed property names, it
|
|
224919
|
+
* does not perform any manipulation of values prior to setting styles.
|
|
224920
|
+
*/
|
|
224921
|
+
|
|
224922
|
+
var css = (function() {
|
|
224923
|
+
var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ],
|
|
224924
|
+
cssProps = {};
|
|
224925
|
+
|
|
224926
|
+
function camelCase(string) {
|
|
224927
|
+
return string.replace(/^-ms-/, 'ms-').replace(/-([\da-z])/gi, function(match, letter) {
|
|
224928
|
+
return letter.toUpperCase();
|
|
224929
|
+
});
|
|
224930
|
+
}
|
|
224931
|
+
|
|
224932
|
+
function getVendorProp(name) {
|
|
224933
|
+
var style = document.body.style;
|
|
224934
|
+
if (name in style) return name;
|
|
224935
|
+
|
|
224936
|
+
var i = cssPrefixes.length,
|
|
224937
|
+
capName = name.charAt(0).toUpperCase() + name.slice(1),
|
|
224938
|
+
vendorName;
|
|
224939
|
+
while (i--) {
|
|
224940
|
+
vendorName = cssPrefixes[i] + capName;
|
|
224941
|
+
if (vendorName in style) return vendorName;
|
|
224942
|
+
}
|
|
224943
|
+
|
|
224944
|
+
return name;
|
|
224945
|
+
}
|
|
224946
|
+
|
|
224947
|
+
function getStyleProp(name) {
|
|
224948
|
+
name = camelCase(name);
|
|
224949
|
+
return cssProps[name] || (cssProps[name] = getVendorProp(name));
|
|
224950
|
+
}
|
|
224951
|
+
|
|
224952
|
+
function applyCss(element, prop, value) {
|
|
224953
|
+
prop = getStyleProp(prop);
|
|
224954
|
+
element.style[prop] = value;
|
|
224955
|
+
}
|
|
224956
|
+
|
|
224957
|
+
return function(element, properties) {
|
|
224958
|
+
var args = arguments,
|
|
224959
|
+
prop,
|
|
224960
|
+
value;
|
|
224961
|
+
|
|
224962
|
+
if (args.length == 2) {
|
|
224963
|
+
for (prop in properties) {
|
|
224964
|
+
value = properties[prop];
|
|
224965
|
+
if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);
|
|
224966
|
+
}
|
|
224967
|
+
} else {
|
|
224968
|
+
applyCss(element, args[1], args[2]);
|
|
224969
|
+
}
|
|
224970
|
+
}
|
|
224971
|
+
})();
|
|
224972
|
+
|
|
224973
|
+
/**
|
|
224974
|
+
* (Internal) Determines if an element or space separated list of class names contains a class name.
|
|
224975
|
+
*/
|
|
224976
|
+
|
|
224977
|
+
function hasClass(element, name) {
|
|
224978
|
+
var list = typeof element == 'string' ? element : classList(element);
|
|
224979
|
+
return list.indexOf(' ' + name + ' ') >= 0;
|
|
224980
|
+
}
|
|
224981
|
+
|
|
224982
|
+
/**
|
|
224983
|
+
* (Internal) Adds a class to an element.
|
|
224984
|
+
*/
|
|
224985
|
+
|
|
224986
|
+
function addClass(element, name) {
|
|
224987
|
+
var oldList = classList(element),
|
|
224988
|
+
newList = oldList + name;
|
|
224989
|
+
|
|
224990
|
+
if (hasClass(oldList, name)) return;
|
|
224991
|
+
|
|
224992
|
+
// Trim the opening space.
|
|
224993
|
+
element.className = newList.substring(1);
|
|
224994
|
+
}
|
|
224995
|
+
|
|
224996
|
+
/**
|
|
224997
|
+
* (Internal) Removes a class from an element.
|
|
224998
|
+
*/
|
|
224999
|
+
|
|
225000
|
+
function removeClass(element, name) {
|
|
225001
|
+
var oldList = classList(element),
|
|
225002
|
+
newList;
|
|
225003
|
+
|
|
225004
|
+
if (!hasClass(element, name)) return;
|
|
225005
|
+
|
|
225006
|
+
// Replace the class name.
|
|
225007
|
+
newList = oldList.replace(' ' + name + ' ', ' ');
|
|
225008
|
+
|
|
225009
|
+
// Trim the opening and closing spaces.
|
|
225010
|
+
element.className = newList.substring(1, newList.length - 1);
|
|
225011
|
+
}
|
|
225012
|
+
|
|
225013
|
+
/**
|
|
225014
|
+
* (Internal) Gets a space separated list of the class names on the element.
|
|
225015
|
+
* The list is wrapped with a single space on each end to facilitate finding
|
|
225016
|
+
* matches within the list.
|
|
225017
|
+
*/
|
|
225018
|
+
|
|
225019
|
+
function classList(element) {
|
|
225020
|
+
return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' ');
|
|
225021
|
+
}
|
|
225022
|
+
|
|
225023
|
+
/**
|
|
225024
|
+
* (Internal) Removes an element from the DOM.
|
|
225025
|
+
*/
|
|
225026
|
+
|
|
225027
|
+
function removeElement(element) {
|
|
225028
|
+
element && element.parentNode && element.parentNode.removeChild(element);
|
|
225029
|
+
}
|
|
225030
|
+
|
|
225031
|
+
return NProgress;
|
|
225032
|
+
});
|
|
225033
|
+
|
|
225034
|
+
|
|
225035
|
+
|
|
224005
225036
|
/***/ }),
|
|
224006
225037
|
|
|
224007
225038
|
/***/ 58859:
|
|
@@ -260798,19 +261829,19 @@ var update = add("62dd250a", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
260798
261829
|
|
|
260799
261830
|
/***/ }),
|
|
260800
261831
|
|
|
260801
|
-
/***/
|
|
261832
|
+
/***/ 26155:
|
|
260802
261833
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
260803
261834
|
|
|
260804
261835
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
260805
261836
|
|
|
260806
261837
|
// load the styles
|
|
260807
|
-
var content = __webpack_require__(
|
|
261838
|
+
var content = __webpack_require__(28728);
|
|
260808
261839
|
if(content.__esModule) content = content.default;
|
|
260809
261840
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
260810
261841
|
if(content.locals) module.exports = content.locals;
|
|
260811
261842
|
// add the styles to the DOM
|
|
260812
261843
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
260813
|
-
var update = add("
|
|
261844
|
+
var update = add("39f843df", content, true, {"sourceMap":false,"shadowMode":false});
|
|
260814
261845
|
|
|
260815
261846
|
/***/ }),
|
|
260816
261847
|
|
|
@@ -260830,35 +261861,35 @@ var update = add("41d437ed", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
260830
261861
|
|
|
260831
261862
|
/***/ }),
|
|
260832
261863
|
|
|
260833
|
-
/***/
|
|
261864
|
+
/***/ 1683:
|
|
260834
261865
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
260835
261866
|
|
|
260836
261867
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
260837
261868
|
|
|
260838
261869
|
// load the styles
|
|
260839
|
-
var content = __webpack_require__(
|
|
261870
|
+
var content = __webpack_require__(39220);
|
|
260840
261871
|
if(content.__esModule) content = content.default;
|
|
260841
261872
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
260842
261873
|
if(content.locals) module.exports = content.locals;
|
|
260843
261874
|
// add the styles to the DOM
|
|
260844
261875
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
260845
|
-
var update = add("
|
|
261876
|
+
var update = add("e7207b88", content, true, {"sourceMap":false,"shadowMode":false});
|
|
260846
261877
|
|
|
260847
261878
|
/***/ }),
|
|
260848
261879
|
|
|
260849
|
-
/***/
|
|
261880
|
+
/***/ 53155:
|
|
260850
261881
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
260851
261882
|
|
|
260852
261883
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
260853
261884
|
|
|
260854
261885
|
// load the styles
|
|
260855
|
-
var content = __webpack_require__(
|
|
261886
|
+
var content = __webpack_require__(66852);
|
|
260856
261887
|
if(content.__esModule) content = content.default;
|
|
260857
261888
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
260858
261889
|
if(content.locals) module.exports = content.locals;
|
|
260859
261890
|
// add the styles to the DOM
|
|
260860
261891
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
260861
|
-
var update = add("
|
|
261892
|
+
var update = add("7791e49c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
260862
261893
|
|
|
260863
261894
|
/***/ }),
|
|
260864
261895
|
|
|
@@ -262446,35 +263477,35 @@ var update = add("76ac6c2c", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
262446
263477
|
|
|
262447
263478
|
/***/ }),
|
|
262448
263479
|
|
|
262449
|
-
/***/
|
|
263480
|
+
/***/ 21510:
|
|
262450
263481
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
262451
263482
|
|
|
262452
263483
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
262453
263484
|
|
|
262454
263485
|
// load the styles
|
|
262455
|
-
var content = __webpack_require__(
|
|
263486
|
+
var content = __webpack_require__(4295);
|
|
262456
263487
|
if(content.__esModule) content = content.default;
|
|
262457
263488
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
262458
263489
|
if(content.locals) module.exports = content.locals;
|
|
262459
263490
|
// add the styles to the DOM
|
|
262460
263491
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
262461
|
-
var update = add("
|
|
263492
|
+
var update = add("6797039a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
262462
263493
|
|
|
262463
263494
|
/***/ }),
|
|
262464
263495
|
|
|
262465
|
-
/***/
|
|
263496
|
+
/***/ 90250:
|
|
262466
263497
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
262467
263498
|
|
|
262468
263499
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
262469
263500
|
|
|
262470
263501
|
// load the styles
|
|
262471
|
-
var content = __webpack_require__(
|
|
263502
|
+
var content = __webpack_require__(75943);
|
|
262472
263503
|
if(content.__esModule) content = content.default;
|
|
262473
263504
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
262474
263505
|
if(content.locals) module.exports = content.locals;
|
|
262475
263506
|
// add the styles to the DOM
|
|
262476
263507
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
262477
|
-
var update = add("
|
|
263508
|
+
var update = add("25b0d8e4", content, true, {"sourceMap":false,"shadowMode":false});
|
|
262478
263509
|
|
|
262479
263510
|
/***/ }),
|
|
262480
263511
|
|
|
@@ -262894,19 +263925,19 @@ var update = add("4865ce3c", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
262894
263925
|
|
|
262895
263926
|
/***/ }),
|
|
262896
263927
|
|
|
262897
|
-
/***/
|
|
263928
|
+
/***/ 21465:
|
|
262898
263929
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
262899
263930
|
|
|
262900
263931
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
262901
263932
|
|
|
262902
263933
|
// load the styles
|
|
262903
|
-
var content = __webpack_require__(
|
|
263934
|
+
var content = __webpack_require__(13114);
|
|
262904
263935
|
if(content.__esModule) content = content.default;
|
|
262905
263936
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
262906
263937
|
if(content.locals) module.exports = content.locals;
|
|
262907
263938
|
// add the styles to the DOM
|
|
262908
263939
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
262909
|
-
var update = add("
|
|
263940
|
+
var update = add("6cc2deec", content, true, {"sourceMap":false,"shadowMode":false});
|
|
262910
263941
|
|
|
262911
263942
|
/***/ }),
|
|
262912
263943
|
|
|
@@ -284720,87 +285751,87 @@ var asyncComponents = [
|
|
|
284720
285751
|
}],
|
|
284721
285752
|
// ========== ecwapp/Wflowform 工作流表单子组件 → chunk: wflow-form ==========
|
|
284722
285753
|
['Attachment', function () {
|
|
284723
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285754
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284724
285755
|
return m.Attachment;
|
|
284725
285756
|
});
|
|
284726
285757
|
}], ['BodyFile', function () {
|
|
284727
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285758
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284728
285759
|
return m.BodyFile;
|
|
284729
285760
|
});
|
|
284730
285761
|
}], ['CommandBar', function () {
|
|
284731
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285762
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284732
285763
|
return m.CommandBar;
|
|
284733
285764
|
});
|
|
284734
285765
|
}], ['HandleIdea', function () {
|
|
284735
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285766
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284736
285767
|
return m.HandleIdea;
|
|
284737
285768
|
});
|
|
284738
285769
|
}], ['IdeaInputBox', function () {
|
|
284739
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285770
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284740
285771
|
return m.IdeaInputBox;
|
|
284741
285772
|
});
|
|
284742
285773
|
}], ['ModifyWflogAddUser', function () {
|
|
284743
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285774
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284744
285775
|
return m.ModifyWflogAddUser;
|
|
284745
285776
|
});
|
|
284746
285777
|
}], ['ModifyWflogIdea', function () {
|
|
284747
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285778
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284748
285779
|
return m.ModifyWflogIdea;
|
|
284749
285780
|
});
|
|
284750
285781
|
}], ['WriteToReadIdea', function () {
|
|
284751
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285782
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284752
285783
|
return m.WriteToReadIdea;
|
|
284753
285784
|
});
|
|
284754
285785
|
}], ['ModifyWflogSubmitFile', function () {
|
|
284755
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285786
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284756
285787
|
return m.ModifyWflogSubmitFile;
|
|
284757
285788
|
});
|
|
284758
285789
|
}], ['ModifyWfNodelog', function () {
|
|
284759
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285790
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284760
285791
|
return m.ModifyWfNodelog;
|
|
284761
285792
|
});
|
|
284762
285793
|
}], ['SelectOuterDeputy', function () {
|
|
284763
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285794
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284764
285795
|
return m.SelectOuterDeputy;
|
|
284765
285796
|
});
|
|
284766
285797
|
}], ['SubmitHandle', function () {
|
|
284767
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285798
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284768
285799
|
return m.SubmitHandle;
|
|
284769
285800
|
});
|
|
284770
285801
|
}], ['SubmitDialog', function () {
|
|
284771
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285802
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284772
285803
|
return m.SubmitDialog;
|
|
284773
285804
|
});
|
|
284774
285805
|
}], ['WfNodelogList', function () {
|
|
284775
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285806
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284776
285807
|
return m.WfNodelogList;
|
|
284777
285808
|
});
|
|
284778
285809
|
}], ['WflogAddReader', function () {
|
|
284779
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285810
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284780
285811
|
return m.WflogAddReader;
|
|
284781
285812
|
});
|
|
284782
285813
|
}], ['WflowView', function () {
|
|
284783
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285814
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284784
285815
|
return m.WflowView;
|
|
284785
285816
|
});
|
|
284786
285817
|
}], ['ImgView', function () {
|
|
284787
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285818
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284788
285819
|
return m.ImgView;
|
|
284789
285820
|
});
|
|
284790
285821
|
}], ['IdeaSignature', function () {
|
|
284791
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285822
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284792
285823
|
return m.IdeaSignature;
|
|
284793
285824
|
});
|
|
284794
285825
|
}], ['ReplaceFile', function () {
|
|
284795
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285826
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284796
285827
|
return m.ReplaceFile;
|
|
284797
285828
|
});
|
|
284798
285829
|
}], ['ViewBodyFile', function () {
|
|
284799
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285830
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284800
285831
|
return m.ViewBodyFile;
|
|
284801
285832
|
});
|
|
284802
285833
|
}], ['WformLayout', function () {
|
|
284803
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
285834
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410)).then(function (m) {
|
|
284804
285835
|
return m.WformLayout;
|
|
284805
285836
|
});
|
|
284806
285837
|
}],
|
|
@@ -285012,7 +286043,7 @@ var asyncComponents = [
|
|
|
285012
286043
|
}],
|
|
285013
286044
|
// ========== 工作流设计器 + 系统设计器 ==========
|
|
285014
286045
|
['WflowDesigner', function () {
|
|
285015
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286046
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 26687));
|
|
285016
286047
|
}], ['ImportWf', function () {
|
|
285017
286048
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 76341));
|
|
285018
286049
|
}], ['WflowTrace', function () {
|
|
@@ -285085,10 +286116,10 @@ var WfengineModule = function WfengineModule() {
|
|
|
285085
286116
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 99932));
|
|
285086
286117
|
};
|
|
285087
286118
|
var WflowformModule = function WflowformModule() {
|
|
285088
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286119
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 16410));
|
|
285089
286120
|
};
|
|
285090
286121
|
var WflowDesignerModule = function WflowDesignerModule() {
|
|
285091
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286122
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 26687));
|
|
285092
286123
|
};
|
|
285093
286124
|
var WflowTraceModule = function WflowTraceModule() {
|
|
285094
286125
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 50106));
|