@xatlas/rainbow-core 2.7.9 → 2.8.1
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/dist/core.common.js +836 -381
- package/dist/core.common.js.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.umd.js +836 -381
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +4 -4
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.common.js
CHANGED
|
@@ -661,6 +661,13 @@ var getters = ['schema', 'model', 'idName', 'nodeName', 'parentIdName', 'titleSc
|
|
|
661
661
|
|
|
662
662
|
/***/ }),
|
|
663
663
|
|
|
664
|
+
/***/ "1252":
|
|
665
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
666
|
+
|
|
667
|
+
// extracted by mini-css-extract-plugin
|
|
668
|
+
|
|
669
|
+
/***/ }),
|
|
670
|
+
|
|
664
671
|
/***/ "1385":
|
|
665
672
|
/***/ (function(module, exports, __webpack_require__) {
|
|
666
673
|
|
|
@@ -939,14 +946,14 @@ var NodeItem = /*#__PURE__*/function () {
|
|
|
939
946
|
|
|
940
947
|
/***/ }),
|
|
941
948
|
|
|
942
|
-
/***/ "
|
|
949
|
+
/***/ "191d":
|
|
943
950
|
/***/ (function(module, exports, __webpack_require__) {
|
|
944
951
|
|
|
945
952
|
// extracted by mini-css-extract-plugin
|
|
946
953
|
|
|
947
954
|
/***/ }),
|
|
948
955
|
|
|
949
|
-
/***/ "
|
|
956
|
+
/***/ "1cd9":
|
|
950
957
|
/***/ (function(module, exports, __webpack_require__) {
|
|
951
958
|
|
|
952
959
|
// extracted by mini-css-extract-plugin
|
|
@@ -1306,13 +1313,6 @@ module.exports = require("vuedraggable");
|
|
|
1306
1313
|
|
|
1307
1314
|
/***/ }),
|
|
1308
1315
|
|
|
1309
|
-
/***/ "2ab7":
|
|
1310
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1311
|
-
|
|
1312
|
-
// extracted by mini-css-extract-plugin
|
|
1313
|
-
|
|
1314
|
-
/***/ }),
|
|
1315
|
-
|
|
1316
1316
|
/***/ "2f4d":
|
|
1317
1317
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1318
1318
|
|
|
@@ -2006,7 +2006,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
2006
2006
|
|
|
2007
2007
|
"use strict";
|
|
2008
2008
|
|
|
2009
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b95bb1c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/views/Picker.vue?vue&type=template&id=
|
|
2009
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b95bb1c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/views/Picker.vue?vue&type=template&id=f263e156
|
|
2010
2010
|
var render = function render() {
|
|
2011
2011
|
var _vm = this,
|
|
2012
2012
|
_c = _vm._self._c;
|
|
@@ -2040,6 +2040,7 @@ var render = function render() {
|
|
|
2040
2040
|
"viewKey": _vm.viewKey,
|
|
2041
2041
|
"isViewselection": true,
|
|
2042
2042
|
"pickerMode": _vm.pickerMode,
|
|
2043
|
+
"initialSelections": _vm.initialSelections,
|
|
2043
2044
|
"mode": _vm.mode,
|
|
2044
2045
|
"layout": "layout-view-model-list-embed"
|
|
2045
2046
|
},
|
|
@@ -2050,7 +2051,7 @@ var render = function render() {
|
|
|
2050
2051
|
};
|
|
2051
2052
|
var staticRenderFns = [];
|
|
2052
2053
|
|
|
2053
|
-
// CONCATENATED MODULE: ../src/web/components/views/Picker.vue?vue&type=template&id=
|
|
2054
|
+
// CONCATENATED MODULE: ../src/web/components/views/Picker.vue?vue&type=template&id=f263e156
|
|
2054
2055
|
|
|
2055
2056
|
// CONCATENATED MODULE: ../src/core/view/picker.js
|
|
2056
2057
|
/* harmony default export */ var picker = ({
|
|
@@ -2080,16 +2081,16 @@ var views = __webpack_require__("c246");
|
|
|
2080
2081
|
|
|
2081
2082
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/views/Picker.vue?vue&type=script&lang=js
|
|
2082
2083
|
function _typeof(o) { "@babel/helpers - typeof"; return _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; }, _typeof(o); }
|
|
2084
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
2085
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
2086
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
2087
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
2083
2088
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2084
2089
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2085
2090
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
2086
2091
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
2087
2092
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
2088
2093
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2089
|
-
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
2090
|
-
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
2091
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
2092
|
-
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
2093
2094
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2094
2095
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2095
2096
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -2101,6 +2102,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
2101
2102
|
|
|
2102
2103
|
/* harmony default export */ var Pickervue_type_script_lang_js = ({
|
|
2103
2104
|
mixins: [picker],
|
|
2105
|
+
props: {
|
|
2106
|
+
initialSelections: {
|
|
2107
|
+
type: Array,
|
|
2108
|
+
default: function _default() {
|
|
2109
|
+
return [];
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2104
2113
|
components: _objectSpread({}, views["a" /* default */]),
|
|
2105
2114
|
data: function data() {
|
|
2106
2115
|
return {
|
|
@@ -2108,7 +2117,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
2108
2117
|
viewKey: null,
|
|
2109
2118
|
storeNamespace: null,
|
|
2110
2119
|
loading: true,
|
|
2111
|
-
selections:
|
|
2120
|
+
selections: _toConsumableArray(this.initialSelections),
|
|
2112
2121
|
idName: '',
|
|
2113
2122
|
titleName: ''
|
|
2114
2123
|
};
|
|
@@ -2151,7 +2160,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
2151
2160
|
_this.viewKey = viewKey;
|
|
2152
2161
|
_this.storeNamespace = "v-".concat(viewKey);
|
|
2153
2162
|
_this.loading = false;
|
|
2163
|
+
_context.n = 2;
|
|
2164
|
+
return _this.$nextTick();
|
|
2154
2165
|
case 2:
|
|
2166
|
+
if (_this.$refs.view) {
|
|
2167
|
+
_this.idName = _this.$refs.view.idName;
|
|
2168
|
+
_this.titleName = _this.$refs.view.titleName;
|
|
2169
|
+
}
|
|
2170
|
+
case 3:
|
|
2155
2171
|
return _context.a(2);
|
|
2156
2172
|
}
|
|
2157
2173
|
}, _callee);
|
|
@@ -2174,6 +2190,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
2174
2190
|
return i[idName] === item[idName];
|
|
2175
2191
|
});
|
|
2176
2192
|
index !== -1 && selections.splice(index, 1);
|
|
2193
|
+
if (this.$refs.view) {
|
|
2194
|
+
this.$refs.view.selections = _toConsumableArray(selections);
|
|
2195
|
+
}
|
|
2177
2196
|
this.$emit('selected', selections);
|
|
2178
2197
|
}
|
|
2179
2198
|
}
|
|
@@ -2252,6 +2271,13 @@ exports.uvCounters = function() {};
|
|
|
2252
2271
|
exports.features = {};
|
|
2253
2272
|
|
|
2254
2273
|
|
|
2274
|
+
/***/ }),
|
|
2275
|
+
|
|
2276
|
+
/***/ "4380":
|
|
2277
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2278
|
+
|
|
2279
|
+
// extracted by mini-css-extract-plugin
|
|
2280
|
+
|
|
2255
2281
|
/***/ }),
|
|
2256
2282
|
|
|
2257
2283
|
/***/ "463b":
|
|
@@ -6769,17 +6795,6 @@ p7v.recipientInfoValidator = {
|
|
|
6769
6795
|
};
|
|
6770
6796
|
|
|
6771
6797
|
|
|
6772
|
-
/***/ }),
|
|
6773
|
-
|
|
6774
|
-
/***/ "7409":
|
|
6775
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6776
|
-
|
|
6777
|
-
"use strict";
|
|
6778
|
-
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_TaskNode_vue_vue_type_style_index_0_id_42e0e2eb_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("15ff");
|
|
6779
|
-
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_TaskNode_vue_vue_type_style_index_0_id_42e0e2eb_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_TaskNode_vue_vue_type_style_index_0_id_42e0e2eb_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
6780
|
-
/* unused harmony reexport * */
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
6798
|
/***/ }),
|
|
6784
6799
|
|
|
6785
6800
|
/***/ "7583":
|
|
@@ -27602,6 +27617,17 @@ function _update(s, w, bytes) {
|
|
|
27602
27617
|
}
|
|
27603
27618
|
|
|
27604
27619
|
|
|
27620
|
+
/***/ }),
|
|
27621
|
+
|
|
27622
|
+
/***/ "874c":
|
|
27623
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27624
|
+
|
|
27625
|
+
"use strict";
|
|
27626
|
+
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CCNode_vue_vue_type_style_index_0_id_19ab4a77_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4380");
|
|
27627
|
+
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CCNode_vue_vue_type_style_index_0_id_19ab4a77_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CCNode_vue_vue_type_style_index_0_id_19ab4a77_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
27628
|
+
/* unused harmony reexport * */
|
|
27629
|
+
|
|
27630
|
+
|
|
27605
27631
|
/***/ }),
|
|
27606
27632
|
|
|
27607
27633
|
/***/ "877c":
|
|
@@ -27844,17 +27870,6 @@ var api = {
|
|
|
27844
27870
|
/* unused harmony reexport * */
|
|
27845
27871
|
|
|
27846
27872
|
|
|
27847
|
-
/***/ }),
|
|
27848
|
-
|
|
27849
|
-
/***/ "8cba":
|
|
27850
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27851
|
-
|
|
27852
|
-
"use strict";
|
|
27853
|
-
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CCNode_vue_vue_type_style_index_0_id_2d46d5cf_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f063");
|
|
27854
|
-
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CCNode_vue_vue_type_style_index_0_id_2d46d5cf_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CCNode_vue_vue_type_style_index_0_id_2d46d5cf_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
27855
|
-
/* unused harmony reexport * */
|
|
27856
|
-
|
|
27857
|
-
|
|
27858
27873
|
/***/ }),
|
|
27859
27874
|
|
|
27860
27875
|
/***/ "8d14":
|
|
@@ -29155,17 +29170,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
29155
29170
|
}
|
|
29156
29171
|
|
|
29157
29172
|
|
|
29158
|
-
/***/ }),
|
|
29159
|
-
|
|
29160
|
-
/***/ "96e5":
|
|
29161
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29162
|
-
|
|
29163
|
-
"use strict";
|
|
29164
|
-
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckNode_vue_vue_type_style_index_0_id_b65a71f8_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2ab7");
|
|
29165
|
-
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckNode_vue_vue_type_style_index_0_id_b65a71f8_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckNode_vue_vue_type_style_index_0_id_b65a71f8_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
29166
|
-
/* unused harmony reexport * */
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
29173
|
/***/ }),
|
|
29170
29174
|
|
|
29171
29175
|
/***/ "9897":
|
|
@@ -29542,7 +29546,7 @@ var EadBusiness = /*#__PURE__*/function (_BusinessAdapter) {
|
|
|
29542
29546
|
});
|
|
29543
29547
|
case 2:
|
|
29544
29548
|
_context2.n = 3;
|
|
29545
|
-
return Promise.all([this.eadApi.getViewAttrs(this.eadApi.getValues().option_view_id), this.eadApi.getOrgs(), this.eadApi.getRoles(this.eadApi.getValues().app_key), this.eadApi.
|
|
29549
|
+
return Promise.all([this.eadApi.getViewAttrs(this.eadApi.getValues().option_view_id), this.eadApi.getOrgs(), this.eadApi.getRoles(this.eadApi.getValues().app_key), this.eadApi.getViewSchema(this.eadApi.getValues().option_view_id)]);
|
|
29546
29550
|
case 3:
|
|
29547
29551
|
promise = _context2.v;
|
|
29548
29552
|
viewAttrs = promise[0];
|
|
@@ -29553,15 +29557,8 @@ var EadBusiness = /*#__PURE__*/function (_BusinessAdapter) {
|
|
|
29553
29557
|
label: role.role_name
|
|
29554
29558
|
};
|
|
29555
29559
|
});
|
|
29556
|
-
users =
|
|
29557
|
-
|
|
29558
|
-
value: user.uid,
|
|
29559
|
-
label: user.name,
|
|
29560
|
-
title: user.name,
|
|
29561
|
-
key: user.name
|
|
29562
|
-
};
|
|
29563
|
-
});
|
|
29564
|
-
viewAttrsSchema = (_promise$ = promise[4]) === null || _promise$ === void 0 ? void 0 : _promise$.model.attrs;
|
|
29560
|
+
users = [];
|
|
29561
|
+
viewAttrsSchema = (_promise$ = promise[3]) === null || _promise$ === void 0 ? void 0 : _promise$.model.attrs;
|
|
29565
29562
|
orgMap = new Map();
|
|
29566
29563
|
orgParentMap = new Map();
|
|
29567
29564
|
orgs.forEach(function (org) {
|
|
@@ -35340,6 +35337,17 @@ function _createCipher(options) {
|
|
|
35340
35337
|
|
|
35341
35338
|
// extracted by mini-css-extract-plugin
|
|
35342
35339
|
|
|
35340
|
+
/***/ }),
|
|
35341
|
+
|
|
35342
|
+
/***/ "aa8a":
|
|
35343
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
35344
|
+
|
|
35345
|
+
"use strict";
|
|
35346
|
+
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckNode_vue_vue_type_style_index_0_id_4c0a9357_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1cd9");
|
|
35347
|
+
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckNode_vue_vue_type_style_index_0_id_4c0a9357_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_CheckNode_vue_vue_type_style_index_0_id_4c0a9357_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
35348
|
+
/* unused harmony reexport * */
|
|
35349
|
+
|
|
35350
|
+
|
|
35343
35351
|
/***/ }),
|
|
35344
35352
|
|
|
35345
35353
|
/***/ "ad54":
|
|
@@ -38274,14 +38282,14 @@ var ParallelWrapNode_component = Object(componentNormalizer["a" /* default */])(
|
|
|
38274
38282
|
)
|
|
38275
38283
|
|
|
38276
38284
|
/* harmony default export */ var ParallelWrapNode = (ParallelWrapNode_component.exports);
|
|
38277
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b95bb1c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=template&id=
|
|
38278
|
-
function
|
|
38279
|
-
function
|
|
38280
|
-
function
|
|
38281
|
-
function
|
|
38282
|
-
function
|
|
38283
|
-
function
|
|
38284
|
-
var
|
|
38285
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b95bb1c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=template&id=4c0a9357&scoped=true
|
|
38286
|
+
function CheckNodevue_type_template_id_4c0a9357_scoped_true_toConsumableArray(r) { return CheckNodevue_type_template_id_4c0a9357_scoped_true_arrayWithoutHoles(r) || CheckNodevue_type_template_id_4c0a9357_scoped_true_iterableToArray(r) || CheckNodevue_type_template_id_4c0a9357_scoped_true_unsupportedIterableToArray(r) || CheckNodevue_type_template_id_4c0a9357_scoped_true_nonIterableSpread(); }
|
|
38287
|
+
function CheckNodevue_type_template_id_4c0a9357_scoped_true_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
38288
|
+
function CheckNodevue_type_template_id_4c0a9357_scoped_true_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return CheckNodevue_type_template_id_4c0a9357_scoped_true_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? CheckNodevue_type_template_id_4c0a9357_scoped_true_arrayLikeToArray(r, a) : void 0; } }
|
|
38289
|
+
function CheckNodevue_type_template_id_4c0a9357_scoped_true_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
38290
|
+
function CheckNodevue_type_template_id_4c0a9357_scoped_true_arrayWithoutHoles(r) { if (Array.isArray(r)) return CheckNodevue_type_template_id_4c0a9357_scoped_true_arrayLikeToArray(r); }
|
|
38291
|
+
function CheckNodevue_type_template_id_4c0a9357_scoped_true_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
38292
|
+
var CheckNodevue_type_template_id_4c0a9357_scoped_true_render = function render() {
|
|
38285
38293
|
var _vm$nodeHandler, _vm$nodeHandler2, _vm$nodeRef, _vm$nodeRef2, _vm$nodeRef3, _vm$nodeHandler3, _vm$noticeTemplateAtt;
|
|
38286
38294
|
var _vm = this,
|
|
38287
38295
|
_c = _vm._self._c;
|
|
@@ -38709,15 +38717,13 @@ var CheckNodevue_type_template_id_b65a71f8_scoped_true_render = function render(
|
|
|
38709
38717
|
attrs: {
|
|
38710
38718
|
"span": "18"
|
|
38711
38719
|
}
|
|
38712
|
-
}, [_c('div', [_c('
|
|
38713
|
-
staticStyle: {
|
|
38714
|
-
"width": "100%"
|
|
38715
|
-
},
|
|
38720
|
+
}, [_c('div', [_c('ActorUserPicker', {
|
|
38716
38721
|
attrs: {
|
|
38717
|
-
"
|
|
38718
|
-
"
|
|
38719
|
-
|
|
38720
|
-
|
|
38722
|
+
"business-options": _vm.businessUserData,
|
|
38723
|
+
"ead-api": _vm.eadApi
|
|
38724
|
+
},
|
|
38725
|
+
on: {
|
|
38726
|
+
"users": _vm.mergeActorUsers
|
|
38721
38727
|
},
|
|
38722
38728
|
model: {
|
|
38723
38729
|
value: item.user,
|
|
@@ -38743,7 +38749,7 @@ var CheckNodevue_type_template_id_b65a71f8_scoped_true_render = function render(
|
|
|
38743
38749
|
maxHeight: '400px',
|
|
38744
38750
|
overflow: 'auto'
|
|
38745
38751
|
},
|
|
38746
|
-
"tree-data": [_vm.businessOrgData].concat(
|
|
38752
|
+
"tree-data": [_vm.businessOrgData].concat(CheckNodevue_type_template_id_4c0a9357_scoped_true_toConsumableArray(_vm.orgData)),
|
|
38747
38753
|
"allowClear": "",
|
|
38748
38754
|
"placeholder": "部门",
|
|
38749
38755
|
"tree-default-expand-all": ""
|
|
@@ -39908,19 +39914,311 @@ var CheckNodevue_type_template_id_b65a71f8_scoped_true_render = function render(
|
|
|
39908
39914
|
}
|
|
39909
39915
|
}) : _vm._e()], 1)]) : _vm._e()], 1)], 1) : _vm._e()], 1);
|
|
39910
39916
|
};
|
|
39911
|
-
var
|
|
39917
|
+
var CheckNodevue_type_template_id_4c0a9357_scoped_true_staticRenderFns = [];
|
|
39912
39918
|
|
|
39913
|
-
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=template&id=
|
|
39919
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=template&id=4c0a9357&scoped=true
|
|
39914
39920
|
|
|
39921
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b95bb1c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/ActorUserPicker.vue?vue&type=template&id=8c318e62
|
|
39922
|
+
var ActorUserPickervue_type_template_id_8c318e62_render = function render() {
|
|
39923
|
+
var _vm = this,
|
|
39924
|
+
_c = _vm._self._c;
|
|
39925
|
+
return _c('div', [_vm._l(_vm.value, function (uid) {
|
|
39926
|
+
return _c('a-tag', {
|
|
39927
|
+
key: uid,
|
|
39928
|
+
attrs: {
|
|
39929
|
+
"closable": ""
|
|
39930
|
+
},
|
|
39931
|
+
on: {
|
|
39932
|
+
"close": function close($event) {
|
|
39933
|
+
$event.preventDefault();
|
|
39934
|
+
return _vm.remove(uid);
|
|
39935
|
+
}
|
|
39936
|
+
}
|
|
39937
|
+
}, [_vm._v(" " + _vm._s(_vm.labelFor(uid)) + " ")]);
|
|
39938
|
+
}), _c('a-button', {
|
|
39939
|
+
attrs: {
|
|
39940
|
+
"size": "small",
|
|
39941
|
+
"icon": "user-add"
|
|
39942
|
+
},
|
|
39943
|
+
on: {
|
|
39944
|
+
"click": _vm.open
|
|
39945
|
+
}
|
|
39946
|
+
}, [_vm._v("选择人")]), _c('a-modal', {
|
|
39947
|
+
attrs: {
|
|
39948
|
+
"title": "选择人",
|
|
39949
|
+
"width": "900px"
|
|
39950
|
+
},
|
|
39951
|
+
on: {
|
|
39952
|
+
"ok": _vm.confirm,
|
|
39953
|
+
"cancel": _vm.cancel
|
|
39954
|
+
},
|
|
39955
|
+
model: {
|
|
39956
|
+
value: _vm.visible,
|
|
39957
|
+
callback: function callback($$v) {
|
|
39958
|
+
_vm.visible = $$v;
|
|
39959
|
+
},
|
|
39960
|
+
expression: "visible"
|
|
39961
|
+
}
|
|
39962
|
+
}, [_c('a-select', {
|
|
39963
|
+
staticStyle: {
|
|
39964
|
+
"width": "100%",
|
|
39965
|
+
"margin-bottom": "12px"
|
|
39966
|
+
},
|
|
39967
|
+
attrs: {
|
|
39968
|
+
"options": _vm.specialOptions,
|
|
39969
|
+
"mode": "multiple",
|
|
39970
|
+
"placeholder": "发起人或表单字段"
|
|
39971
|
+
},
|
|
39972
|
+
model: {
|
|
39973
|
+
value: _vm.specialValues,
|
|
39974
|
+
callback: function callback($$v) {
|
|
39975
|
+
_vm.specialValues = $$v;
|
|
39976
|
+
},
|
|
39977
|
+
expression: "specialValues"
|
|
39978
|
+
}
|
|
39979
|
+
}), _vm.visible ? _c('Picker', {
|
|
39980
|
+
attrs: {
|
|
39981
|
+
"schema": _vm.pickerSchema,
|
|
39982
|
+
"initial-selections": _vm.initialSelections,
|
|
39983
|
+
"params": {
|
|
39984
|
+
filters: {},
|
|
39985
|
+
route: {
|
|
39986
|
+
query: {
|
|
39987
|
+
close: true
|
|
39988
|
+
}
|
|
39989
|
+
}
|
|
39990
|
+
},
|
|
39991
|
+
"picker-mode": "multiple",
|
|
39992
|
+
"mode": "picker"
|
|
39993
|
+
},
|
|
39994
|
+
on: {
|
|
39995
|
+
"selected": _vm.handleSelected
|
|
39996
|
+
}
|
|
39997
|
+
}) : _vm._e()], 1)], 2);
|
|
39998
|
+
};
|
|
39999
|
+
var ActorUserPickervue_type_template_id_8c318e62_staticRenderFns = [];
|
|
40000
|
+
|
|
40001
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/ActorUserPicker.vue?vue&type=template&id=8c318e62
|
|
40002
|
+
|
|
40003
|
+
// EXTERNAL MODULE: ../src/web/components/views/Picker.vue + 5 modules
|
|
40004
|
+
var Picker = __webpack_require__("3d8a");
|
|
40005
|
+
|
|
40006
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/ActorUserPicker.vue?vue&type=script&lang=js
|
|
40007
|
+
function ActorUserPickervue_type_script_lang_js_regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return ActorUserPickervue_type_script_lang_js_regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (ActorUserPickervue_type_script_lang_js_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, ActorUserPickervue_type_script_lang_js_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, ActorUserPickervue_type_script_lang_js_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), ActorUserPickervue_type_script_lang_js_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", ActorUserPickervue_type_script_lang_js_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), ActorUserPickervue_type_script_lang_js_regeneratorDefine2(u), ActorUserPickervue_type_script_lang_js_regeneratorDefine2(u, o, "Generator"), ActorUserPickervue_type_script_lang_js_regeneratorDefine2(u, n, function () { return this; }), ActorUserPickervue_type_script_lang_js_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (ActorUserPickervue_type_script_lang_js_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
40008
|
+
function ActorUserPickervue_type_script_lang_js_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } ActorUserPickervue_type_script_lang_js_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { ActorUserPickervue_type_script_lang_js_regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, ActorUserPickervue_type_script_lang_js_regeneratorDefine2(e, r, n, t); }
|
|
40009
|
+
function ActorUserPickervue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
40010
|
+
function ActorUserPickervue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { ActorUserPickervue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { ActorUserPickervue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
40011
|
+
function ActorUserPickervue_type_script_lang_js_toConsumableArray(r) { return ActorUserPickervue_type_script_lang_js_arrayWithoutHoles(r) || ActorUserPickervue_type_script_lang_js_iterableToArray(r) || ActorUserPickervue_type_script_lang_js_unsupportedIterableToArray(r) || ActorUserPickervue_type_script_lang_js_nonIterableSpread(); }
|
|
40012
|
+
function ActorUserPickervue_type_script_lang_js_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
40013
|
+
function ActorUserPickervue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return ActorUserPickervue_type_script_lang_js_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? ActorUserPickervue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
40014
|
+
function ActorUserPickervue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
40015
|
+
function ActorUserPickervue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return ActorUserPickervue_type_script_lang_js_arrayLikeToArray(r); }
|
|
40016
|
+
function ActorUserPickervue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
40017
|
+
|
|
40018
|
+
var accountCache = new Map();
|
|
40019
|
+
/* harmony default export */ var ActorUserPickervue_type_script_lang_js = ({
|
|
40020
|
+
name: 'ActorUserPicker',
|
|
40021
|
+
components: {
|
|
40022
|
+
Picker: Picker["a" /* default */]
|
|
40023
|
+
},
|
|
40024
|
+
props: {
|
|
40025
|
+
value: {
|
|
40026
|
+
type: Array,
|
|
40027
|
+
default: function _default() {
|
|
40028
|
+
return [];
|
|
40029
|
+
}
|
|
40030
|
+
},
|
|
40031
|
+
businessOptions: {
|
|
40032
|
+
type: Array,
|
|
40033
|
+
default: function _default() {
|
|
40034
|
+
return [];
|
|
40035
|
+
}
|
|
40036
|
+
},
|
|
40037
|
+
eadApi: {
|
|
40038
|
+
type: Object,
|
|
40039
|
+
required: true
|
|
40040
|
+
}
|
|
40041
|
+
},
|
|
40042
|
+
data: function data() {
|
|
40043
|
+
return {
|
|
40044
|
+
visible: false,
|
|
40045
|
+
accountLabels: {},
|
|
40046
|
+
specialValues: [],
|
|
40047
|
+
selectedAccounts: [],
|
|
40048
|
+
pickerSchema: {
|
|
40049
|
+
configs: [{
|
|
40050
|
+
key: 'picker.view',
|
|
40051
|
+
value: 'view-select-account'
|
|
40052
|
+
}]
|
|
40053
|
+
}
|
|
40054
|
+
};
|
|
40055
|
+
},
|
|
40056
|
+
computed: {
|
|
40057
|
+
specialOptions: function specialOptions() {
|
|
40058
|
+
return [{
|
|
40059
|
+
value: '$' + '{sponsor}',
|
|
40060
|
+
label: '发起人'
|
|
40061
|
+
}].concat(ActorUserPickervue_type_script_lang_js_toConsumableArray(this.businessOptions));
|
|
40062
|
+
},
|
|
40063
|
+
initialSelections: function initialSelections() {
|
|
40064
|
+
var _this = this;
|
|
40065
|
+
return this.value.filter(function (uid) {
|
|
40066
|
+
return !_this.isSpecial(uid);
|
|
40067
|
+
}).map(function (uid) {
|
|
40068
|
+
return {
|
|
40069
|
+
uid: uid,
|
|
40070
|
+
user_name: _this.labelFor(uid),
|
|
40071
|
+
account: _this.labelFor(uid)
|
|
40072
|
+
};
|
|
40073
|
+
});
|
|
40074
|
+
}
|
|
40075
|
+
},
|
|
40076
|
+
watch: {
|
|
40077
|
+
value: {
|
|
40078
|
+
immediate: true,
|
|
40079
|
+
handler: function handler() {
|
|
40080
|
+
this.loadLabels();
|
|
40081
|
+
}
|
|
40082
|
+
}
|
|
40083
|
+
},
|
|
40084
|
+
methods: {
|
|
40085
|
+
isSpecial: function isSpecial(uid) {
|
|
40086
|
+
return this.specialOptions.some(function (option) {
|
|
40087
|
+
return option.value === uid;
|
|
40088
|
+
}) || String(uid).startsWith('$' + '{');
|
|
40089
|
+
},
|
|
40090
|
+
labelFor: function labelFor(uid) {
|
|
40091
|
+
var _accountCache$get;
|
|
40092
|
+
var special = this.specialOptions.find(function (option) {
|
|
40093
|
+
return option.value === uid;
|
|
40094
|
+
});
|
|
40095
|
+
return special ? special.label : this.accountLabels[uid] || ((_accountCache$get = accountCache.get(uid)) === null || _accountCache$get === void 0 ? void 0 : _accountCache$get.user_name) || uid;
|
|
40096
|
+
},
|
|
40097
|
+
publishLabels: function publishLabels() {
|
|
40098
|
+
var _this2 = this;
|
|
40099
|
+
this.$emit('users', this.value.filter(function (uid) {
|
|
40100
|
+
return !_this2.isSpecial(uid);
|
|
40101
|
+
}).map(function (uid) {
|
|
40102
|
+
return {
|
|
40103
|
+
value: uid,
|
|
40104
|
+
label: _this2.labelFor(uid)
|
|
40105
|
+
};
|
|
40106
|
+
}));
|
|
40107
|
+
},
|
|
40108
|
+
loadLabels: function loadLabels() {
|
|
40109
|
+
var _this3 = this;
|
|
40110
|
+
return ActorUserPickervue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/ActorUserPickervue_type_script_lang_js_regenerator().m(function _callee2() {
|
|
40111
|
+
var ids;
|
|
40112
|
+
return ActorUserPickervue_type_script_lang_js_regenerator().w(function (_context2) {
|
|
40113
|
+
while (1) switch (_context2.n) {
|
|
40114
|
+
case 0:
|
|
40115
|
+
_this3.value.forEach(function (uid) {
|
|
40116
|
+
if (accountCache.has(uid)) _this3.$set(_this3.accountLabels, uid, accountCache.get(uid).user_name);
|
|
40117
|
+
});
|
|
40118
|
+
ids = _this3.value.filter(function (uid) {
|
|
40119
|
+
return !_this3.isSpecial(uid) && !accountCache.has(uid);
|
|
40120
|
+
});
|
|
40121
|
+
_context2.n = 1;
|
|
40122
|
+
return Promise.all(ids.map(/*#__PURE__*/function () {
|
|
40123
|
+
var _ref = ActorUserPickervue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/ActorUserPickervue_type_script_lang_js_regenerator().m(function _callee(uid) {
|
|
40124
|
+
var user;
|
|
40125
|
+
return ActorUserPickervue_type_script_lang_js_regenerator().w(function (_context) {
|
|
40126
|
+
while (1) switch (_context.n) {
|
|
40127
|
+
case 0:
|
|
40128
|
+
_context.n = 1;
|
|
40129
|
+
return _this3.eadApi.getAccountByUid(uid);
|
|
40130
|
+
case 1:
|
|
40131
|
+
user = _context.v;
|
|
40132
|
+
accountCache.set(uid, {
|
|
40133
|
+
uid: uid,
|
|
40134
|
+
user_name: user.label
|
|
40135
|
+
});
|
|
40136
|
+
_this3.$set(_this3.accountLabels, uid, user.label);
|
|
40137
|
+
case 2:
|
|
40138
|
+
return _context.a(2);
|
|
40139
|
+
}
|
|
40140
|
+
}, _callee);
|
|
40141
|
+
}));
|
|
40142
|
+
return function (_x) {
|
|
40143
|
+
return _ref.apply(this, arguments);
|
|
40144
|
+
};
|
|
40145
|
+
}()));
|
|
40146
|
+
case 1:
|
|
40147
|
+
_this3.publishLabels();
|
|
40148
|
+
case 2:
|
|
40149
|
+
return _context2.a(2);
|
|
40150
|
+
}
|
|
40151
|
+
}, _callee2);
|
|
40152
|
+
}))();
|
|
40153
|
+
},
|
|
40154
|
+
open: function open() {
|
|
40155
|
+
this.specialValues = this.value.filter(this.isSpecial);
|
|
40156
|
+
this.selectedAccounts = this.initialSelections;
|
|
40157
|
+
this.visible = true;
|
|
40158
|
+
},
|
|
40159
|
+
handleSelected: function handleSelected(accounts) {
|
|
40160
|
+
this.selectedAccounts = accounts;
|
|
40161
|
+
},
|
|
40162
|
+
confirm: function confirm() {
|
|
40163
|
+
var _this4 = this;
|
|
40164
|
+
this.selectedAccounts.forEach(function (account) {
|
|
40165
|
+
if (!accountCache.has(account.uid) || account.user_name !== account.uid) {
|
|
40166
|
+
accountCache.set(account.uid, account);
|
|
40167
|
+
}
|
|
40168
|
+
_this4.$set(_this4.accountLabels, account.uid, accountCache.get(account.uid).user_name);
|
|
40169
|
+
});
|
|
40170
|
+
this.$emit('input', [].concat(ActorUserPickervue_type_script_lang_js_toConsumableArray(this.specialValues), ActorUserPickervue_type_script_lang_js_toConsumableArray(this.selectedAccounts.map(function (account) {
|
|
40171
|
+
return account.uid;
|
|
40172
|
+
}))));
|
|
40173
|
+
this.visible = false;
|
|
40174
|
+
this.$nextTick(this.publishLabels);
|
|
40175
|
+
},
|
|
40176
|
+
cancel: function cancel() {
|
|
40177
|
+
this.visible = false;
|
|
40178
|
+
},
|
|
40179
|
+
remove: function remove(uid) {
|
|
40180
|
+
this.$emit('input', this.value.filter(function (value) {
|
|
40181
|
+
return value !== uid;
|
|
40182
|
+
}));
|
|
40183
|
+
this.$nextTick(this.publishLabels);
|
|
40184
|
+
}
|
|
40185
|
+
}
|
|
40186
|
+
});
|
|
40187
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/ActorUserPicker.vue?vue&type=script&lang=js
|
|
40188
|
+
/* harmony default export */ var node_ActorUserPickervue_type_script_lang_js = (ActorUserPickervue_type_script_lang_js);
|
|
40189
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/ActorUserPicker.vue
|
|
40190
|
+
|
|
40191
|
+
|
|
40192
|
+
|
|
40193
|
+
|
|
40194
|
+
|
|
40195
|
+
/* normalize component */
|
|
40196
|
+
|
|
40197
|
+
var ActorUserPicker_component = Object(componentNormalizer["a" /* default */])(
|
|
40198
|
+
node_ActorUserPickervue_type_script_lang_js,
|
|
40199
|
+
ActorUserPickervue_type_template_id_8c318e62_render,
|
|
40200
|
+
ActorUserPickervue_type_template_id_8c318e62_staticRenderFns,
|
|
40201
|
+
false,
|
|
40202
|
+
null,
|
|
40203
|
+
null,
|
|
40204
|
+
null
|
|
40205
|
+
|
|
40206
|
+
)
|
|
40207
|
+
|
|
40208
|
+
/* harmony default export */ var ActorUserPicker = (ActorUserPicker_component.exports);
|
|
39915
40209
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=script&lang=js
|
|
39916
40210
|
function CheckNodevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return CheckNodevue_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; }, CheckNodevue_type_script_lang_js_typeof(o); }
|
|
39917
40211
|
function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(CheckNodevue_type_script_lang_js_typeof(e) + " is not iterable"); }
|
|
40212
|
+
function CheckNodevue_type_script_lang_js_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = CheckNodevue_type_script_lang_js_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
39918
40213
|
function CheckNodevue_type_script_lang_js_regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return CheckNodevue_type_script_lang_js_regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (CheckNodevue_type_script_lang_js_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, CheckNodevue_type_script_lang_js_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, CheckNodevue_type_script_lang_js_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), CheckNodevue_type_script_lang_js_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", CheckNodevue_type_script_lang_js_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), CheckNodevue_type_script_lang_js_regeneratorDefine2(u), CheckNodevue_type_script_lang_js_regeneratorDefine2(u, o, "Generator"), CheckNodevue_type_script_lang_js_regeneratorDefine2(u, n, function () { return this; }), CheckNodevue_type_script_lang_js_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (CheckNodevue_type_script_lang_js_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
39919
40214
|
function CheckNodevue_type_script_lang_js_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } CheckNodevue_type_script_lang_js_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { CheckNodevue_type_script_lang_js_regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, CheckNodevue_type_script_lang_js_regeneratorDefine2(e, r, n, t); }
|
|
39920
40215
|
function CheckNodevue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
39921
40216
|
function CheckNodevue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { CheckNodevue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { CheckNodevue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
39922
|
-
function
|
|
40217
|
+
function CheckNodevue_type_script_lang_js_toConsumableArray(r) { return CheckNodevue_type_script_lang_js_arrayWithoutHoles(r) || CheckNodevue_type_script_lang_js_iterableToArray(r) || CheckNodevue_type_script_lang_js_unsupportedIterableToArray(r) || CheckNodevue_type_script_lang_js_nonIterableSpread(); }
|
|
40218
|
+
function CheckNodevue_type_script_lang_js_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39923
40219
|
function CheckNodevue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return CheckNodevue_type_script_lang_js_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? CheckNodevue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
40220
|
+
function CheckNodevue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
40221
|
+
function CheckNodevue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return CheckNodevue_type_script_lang_js_arrayLikeToArray(r); }
|
|
39924
40222
|
function CheckNodevue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
39925
40223
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
39926
40224
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { CheckNodevue_type_script_lang_js_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -39933,6 +40231,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
39933
40231
|
|
|
39934
40232
|
|
|
39935
40233
|
|
|
40234
|
+
|
|
39936
40235
|
/* harmony default export */ var CheckNodevue_type_script_lang_js = ({
|
|
39937
40236
|
name: 'CheckNode',
|
|
39938
40237
|
props: {
|
|
@@ -39942,7 +40241,8 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
39942
40241
|
components: {
|
|
39943
40242
|
AssertDesigner: AssertDesigner,
|
|
39944
40243
|
RuntimeWorkflowActors: RuntimeWorkFlowActors,
|
|
39945
|
-
Item: Item["a" /* default */]
|
|
40244
|
+
Item: Item["a" /* default */],
|
|
40245
|
+
ActorUserPicker: ActorUserPicker
|
|
39946
40246
|
},
|
|
39947
40247
|
data: function data() {
|
|
39948
40248
|
return {
|
|
@@ -40001,6 +40301,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40001
40301
|
orgData: [],
|
|
40002
40302
|
roles: [],
|
|
40003
40303
|
users: [],
|
|
40304
|
+
actorNamesReady: false,
|
|
40004
40305
|
viewNameTimeout: null,
|
|
40005
40306
|
viewAttrLoading: true,
|
|
40006
40307
|
driverList: null,
|
|
@@ -40260,16 +40561,16 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40260
40561
|
}
|
|
40261
40562
|
}
|
|
40262
40563
|
if (expression[0].type === 'uid') {
|
|
40263
|
-
|
|
40264
|
-
return user.value;
|
|
40265
|
-
});
|
|
40564
|
+
if (!this.actorNamesReady) return '加载人员…';
|
|
40266
40565
|
content = expression[0].user.map(function (item) {
|
|
40267
|
-
var
|
|
40566
|
+
var _this$businessUserDat, _this$users$find;
|
|
40567
|
+
var label = ((_this$businessUserDat = _this.businessUserData.find(function (user) {
|
|
40268
40568
|
return user.value === item;
|
|
40269
|
-
}).label
|
|
40569
|
+
})) === null || _this$businessUserDat === void 0 ? void 0 : _this$businessUserDat.label) || ((_this$users$find = _this.users.find(function (user) {
|
|
40270
40570
|
return user.value === item;
|
|
40271
|
-
}).label;
|
|
40272
|
-
|
|
40571
|
+
})) === null || _this$users$find === void 0 ? void 0 : _this$users$find.label) || (item === '$' + '{sponsor}' ? '发起人' : item);
|
|
40572
|
+
var index = label.indexOf('(');
|
|
40573
|
+
return index === -1 ? label : label.substring(0, index);
|
|
40273
40574
|
}).join('、');
|
|
40274
40575
|
}
|
|
40275
40576
|
}
|
|
@@ -40339,11 +40640,55 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40339
40640
|
}
|
|
40340
40641
|
},
|
|
40341
40642
|
methods: {
|
|
40342
|
-
|
|
40643
|
+
mergeActorUsers: function mergeActorUsers(selected) {
|
|
40644
|
+
var users = new Map(this.users.map(function (user) {
|
|
40645
|
+
return [user.value, user];
|
|
40646
|
+
}));
|
|
40647
|
+
selected.forEach(function (user) {
|
|
40648
|
+
return users.set(user.value, user);
|
|
40649
|
+
});
|
|
40650
|
+
this.users = CheckNodevue_type_script_lang_js_toConsumableArray(users.values());
|
|
40651
|
+
},
|
|
40652
|
+
loadActorUserNames: function loadActorUserNames() {
|
|
40343
40653
|
var _this2 = this;
|
|
40654
|
+
return CheckNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CheckNodevue_type_script_lang_js_regenerator().m(function _callee() {
|
|
40655
|
+
var _this2$nodeRef$data$a;
|
|
40656
|
+
var expressions, ids, _t;
|
|
40657
|
+
return CheckNodevue_type_script_lang_js_regenerator().w(function (_context) {
|
|
40658
|
+
while (1) switch (_context.n) {
|
|
40659
|
+
case 0:
|
|
40660
|
+
expressions = ((_this2$nodeRef$data$a = _this2.nodeRef.data.actor_config) === null || _this2$nodeRef$data$a === void 0 ? void 0 : _this2$nodeRef$data$a.expression) || [];
|
|
40661
|
+
ids = CheckNodevue_type_script_lang_js_toConsumableArray(new Set(expressions.filter(function (item) {
|
|
40662
|
+
return item.type === 'uid';
|
|
40663
|
+
}).reduce(function (values, item) {
|
|
40664
|
+
return values.concat(item.user || []);
|
|
40665
|
+
}, []).filter(function (uid) {
|
|
40666
|
+
return uid && !String(uid).startsWith('$' + '{');
|
|
40667
|
+
})));
|
|
40668
|
+
if (!ids.length) {
|
|
40669
|
+
_context.n = 2;
|
|
40670
|
+
break;
|
|
40671
|
+
}
|
|
40672
|
+
_t = _this2;
|
|
40673
|
+
_context.n = 1;
|
|
40674
|
+
return Promise.all(ids.map(function (uid) {
|
|
40675
|
+
return _this2.eadApi.getAccountByUid(uid);
|
|
40676
|
+
}));
|
|
40677
|
+
case 1:
|
|
40678
|
+
_t.mergeActorUsers.call(_t, _context.v);
|
|
40679
|
+
case 2:
|
|
40680
|
+
_this2.actorNamesReady = true;
|
|
40681
|
+
case 3:
|
|
40682
|
+
return _context.a(2);
|
|
40683
|
+
}
|
|
40684
|
+
}, _callee);
|
|
40685
|
+
}))();
|
|
40686
|
+
},
|
|
40687
|
+
filterDataset: function filterDataset(filter, dataset, datasetKeys) {
|
|
40688
|
+
var _this3 = this;
|
|
40344
40689
|
if (!filter) {
|
|
40345
40690
|
return dataset.filter(function (o) {
|
|
40346
|
-
return
|
|
40691
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
40347
40692
|
});
|
|
40348
40693
|
}
|
|
40349
40694
|
return dataset.filter(function (o) {
|
|
@@ -40363,7 +40708,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40363
40708
|
}
|
|
40364
40709
|
return false;
|
|
40365
40710
|
}).filter(function (o) {
|
|
40366
|
-
return
|
|
40711
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
40367
40712
|
});
|
|
40368
40713
|
},
|
|
40369
40714
|
getClass: function getClass() {
|
|
@@ -40395,7 +40740,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40395
40740
|
},
|
|
40396
40741
|
handleDriverChange: function handleDriverChange(a, s) {},
|
|
40397
40742
|
handleDriverSearch: function handleDriverSearch(s) {
|
|
40398
|
-
var
|
|
40743
|
+
var _this4 = this;
|
|
40399
40744
|
if (this.driverTimeout) {
|
|
40400
40745
|
clearTimeout(this.driverTimeout);
|
|
40401
40746
|
this.driverTimeout = null;
|
|
@@ -40404,15 +40749,15 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40404
40749
|
if (!s) {
|
|
40405
40750
|
return;
|
|
40406
40751
|
}
|
|
40407
|
-
|
|
40408
|
-
|
|
40752
|
+
_this4.eadApi.getDrivers(s).then(function (value) {
|
|
40753
|
+
_this4.driverList = value.map(function (item) {
|
|
40409
40754
|
return {
|
|
40410
40755
|
value: item.driver_id,
|
|
40411
40756
|
label: item.driver_name,
|
|
40412
40757
|
title: item.driver_name
|
|
40413
40758
|
};
|
|
40414
40759
|
});
|
|
40415
|
-
|
|
40760
|
+
_this4.nodeRef.data.eadCache.workflow.driverList = _this4.driverList;
|
|
40416
40761
|
});
|
|
40417
40762
|
};
|
|
40418
40763
|
this.driverTimeout = setTimeout(go, 300);
|
|
@@ -40513,12 +40858,12 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40513
40858
|
// }
|
|
40514
40859
|
// },
|
|
40515
40860
|
hideDrawer: function hideDrawer() {
|
|
40516
|
-
var
|
|
40861
|
+
var _this5 = this;
|
|
40517
40862
|
var vaildR = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(true);
|
|
40518
40863
|
this.$refs.nameForm.validate(function (valid) {
|
|
40519
40864
|
if (!valid) {
|
|
40520
40865
|
vaildR.value = false;
|
|
40521
|
-
|
|
40866
|
+
_this5.$message.error('节点名称校验不通过');
|
|
40522
40867
|
}
|
|
40523
40868
|
});
|
|
40524
40869
|
|
|
@@ -40531,10 +40876,10 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40531
40876
|
// console.log(a)
|
|
40532
40877
|
},
|
|
40533
40878
|
showEditName: function showEditName() {
|
|
40534
|
-
var
|
|
40879
|
+
var _this6 = this;
|
|
40535
40880
|
this.editName = true;
|
|
40536
40881
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
40537
|
-
|
|
40882
|
+
_this6.$refs.nameInput.focus();
|
|
40538
40883
|
});
|
|
40539
40884
|
},
|
|
40540
40885
|
close: function close() {
|
|
@@ -40555,17 +40900,17 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40555
40900
|
this.loadCache(this.nodeRef);
|
|
40556
40901
|
},
|
|
40557
40902
|
mounted: function () {
|
|
40558
|
-
var _mounted = CheckNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CheckNodevue_type_script_lang_js_regenerator().m(function
|
|
40903
|
+
var _mounted = CheckNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CheckNodevue_type_script_lang_js_regenerator().m(function _callee2() {
|
|
40559
40904
|
var _this$nodeRef$data$op,
|
|
40560
|
-
|
|
40905
|
+
_this7 = this;
|
|
40561
40906
|
var _yield$this$nodeHandl, viewAttrs, orgMap, orgData, roles, users, viewAttrsSchema, optionViewAttrs, _loop;
|
|
40562
|
-
return CheckNodevue_type_script_lang_js_regenerator().w(function (
|
|
40563
|
-
while (1) switch (
|
|
40907
|
+
return CheckNodevue_type_script_lang_js_regenerator().w(function (_context3) {
|
|
40908
|
+
while (1) switch (_context3.n) {
|
|
40564
40909
|
case 0:
|
|
40565
|
-
|
|
40910
|
+
_context3.n = 1;
|
|
40566
40911
|
return this.nodeHandler.businessAdapter.getActorData();
|
|
40567
40912
|
case 1:
|
|
40568
|
-
_yield$this$nodeHandl =
|
|
40913
|
+
_yield$this$nodeHandl = _context3.v;
|
|
40569
40914
|
viewAttrs = _yield$this$nodeHandl.viewAttrs;
|
|
40570
40915
|
orgMap = _yield$this$nodeHandl.orgMap;
|
|
40571
40916
|
orgData = _yield$this$nodeHandl.orgData;
|
|
@@ -40573,7 +40918,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40573
40918
|
users = _yield$this$nodeHandl.users;
|
|
40574
40919
|
viewAttrsSchema = _yield$this$nodeHandl.viewAttrsSchema;
|
|
40575
40920
|
if ((_this$nodeRef$data$op = this.nodeRef.data.option_forms) !== null && _this$nodeRef$data$op !== void 0 && _this$nodeRef$data$op.length) {
|
|
40576
|
-
|
|
40921
|
+
_context3.n = 2;
|
|
40577
40922
|
break;
|
|
40578
40923
|
}
|
|
40579
40924
|
this.nodeRef.data.option_forms = viewAttrs.filter(function (attr) {
|
|
@@ -40591,7 +40936,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40591
40936
|
})
|
|
40592
40937
|
};
|
|
40593
40938
|
});
|
|
40594
|
-
|
|
40939
|
+
_context3.n = 5;
|
|
40595
40940
|
break;
|
|
40596
40941
|
case 2:
|
|
40597
40942
|
this.nodeRef.data.option_forms.forEach(function (value) {
|
|
@@ -40606,15 +40951,15 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40606
40951
|
});
|
|
40607
40952
|
_loop = /*#__PURE__*/CheckNodevue_type_script_lang_js_regenerator().m(function _loop() {
|
|
40608
40953
|
var attr;
|
|
40609
|
-
return CheckNodevue_type_script_lang_js_regenerator().w(function (
|
|
40610
|
-
while (1) switch (
|
|
40954
|
+
return CheckNodevue_type_script_lang_js_regenerator().w(function (_context2) {
|
|
40955
|
+
while (1) switch (_context2.n) {
|
|
40611
40956
|
case 0:
|
|
40612
40957
|
attr = optionViewAttrs.find(function (attr) {
|
|
40613
|
-
return !
|
|
40958
|
+
return !_this7.nodeRef.data.option_forms.find(function (form) {
|
|
40614
40959
|
return form.attrId === attr.id;
|
|
40615
40960
|
});
|
|
40616
40961
|
});
|
|
40617
|
-
|
|
40962
|
+
_this7.nodeRef.data.option_forms.push({
|
|
40618
40963
|
attrId: attr.id,
|
|
40619
40964
|
attrName: attr.alias,
|
|
40620
40965
|
attrCode: attr.name,
|
|
@@ -40626,29 +40971,31 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40626
40971
|
})
|
|
40627
40972
|
});
|
|
40628
40973
|
case 1:
|
|
40629
|
-
return
|
|
40974
|
+
return _context2.a(2);
|
|
40630
40975
|
}
|
|
40631
40976
|
}, _loop);
|
|
40632
40977
|
});
|
|
40633
40978
|
case 3:
|
|
40634
40979
|
if (!(optionViewAttrs.length > this.nodeRef.data.option_forms.length)) {
|
|
40635
|
-
|
|
40980
|
+
_context3.n = 5;
|
|
40636
40981
|
break;
|
|
40637
40982
|
}
|
|
40638
|
-
return
|
|
40983
|
+
return _context3.d(_regeneratorValues(_loop()), 4);
|
|
40639
40984
|
case 4:
|
|
40640
|
-
|
|
40985
|
+
_context3.n = 3;
|
|
40641
40986
|
break;
|
|
40642
40987
|
case 5:
|
|
40643
40988
|
this.viewAttrLoading = false;
|
|
40644
40989
|
this.orgMap = orgMap;
|
|
40645
40990
|
this.orgData = orgData;
|
|
40646
40991
|
this.roles = roles;
|
|
40647
|
-
this.users
|
|
40992
|
+
this.mergeActorUsers(users);
|
|
40993
|
+
_context3.n = 6;
|
|
40994
|
+
return this.loadActorUserNames();
|
|
40648
40995
|
case 6:
|
|
40649
|
-
return
|
|
40996
|
+
return _context3.a(2);
|
|
40650
40997
|
}
|
|
40651
|
-
},
|
|
40998
|
+
}, _callee2, this);
|
|
40652
40999
|
}));
|
|
40653
41000
|
function mounted() {
|
|
40654
41001
|
return _mounted.apply(this, arguments);
|
|
@@ -40658,8 +41005,8 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40658
41005
|
});
|
|
40659
41006
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=script&lang=js
|
|
40660
41007
|
/* harmony default export */ var node_CheckNodevue_type_script_lang_js = (CheckNodevue_type_script_lang_js);
|
|
40661
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=style&index=0&id=
|
|
40662
|
-
var
|
|
41008
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=style&index=0&id=4c0a9357&prod&lang=less&scoped=true
|
|
41009
|
+
var CheckNodevue_type_style_index_0_id_4c0a9357_prod_lang_less_scoped_true = __webpack_require__("aa8a");
|
|
40663
41010
|
|
|
40664
41011
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue
|
|
40665
41012
|
|
|
@@ -40672,11 +41019,11 @@ var CheckNodevue_type_style_index_0_id_b65a71f8_prod_lang_less_scoped_true = __w
|
|
|
40672
41019
|
|
|
40673
41020
|
var CheckNode_component = Object(componentNormalizer["a" /* default */])(
|
|
40674
41021
|
node_CheckNodevue_type_script_lang_js,
|
|
40675
|
-
|
|
40676
|
-
|
|
41022
|
+
CheckNodevue_type_template_id_4c0a9357_scoped_true_render,
|
|
41023
|
+
CheckNodevue_type_template_id_4c0a9357_scoped_true_staticRenderFns,
|
|
40677
41024
|
false,
|
|
40678
41025
|
null,
|
|
40679
|
-
"
|
|
41026
|
+
"4c0a9357",
|
|
40680
41027
|
null
|
|
40681
41028
|
|
|
40682
41029
|
)
|
|
@@ -41337,14 +41684,14 @@ var JudgeNode_component = Object(componentNormalizer["a" /* default */])(
|
|
|
41337
41684
|
)
|
|
41338
41685
|
|
|
41339
41686
|
/* harmony default export */ var JudgeNode = (JudgeNode_component.exports);
|
|
41340
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b95bb1c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=template&id=
|
|
41341
|
-
function
|
|
41342
|
-
function
|
|
41343
|
-
function
|
|
41344
|
-
function
|
|
41345
|
-
function
|
|
41346
|
-
function
|
|
41347
|
-
var
|
|
41687
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b95bb1c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=template&id=19ab4a77&scoped=true
|
|
41688
|
+
function CCNodevue_type_template_id_19ab4a77_scoped_true_toConsumableArray(r) { return CCNodevue_type_template_id_19ab4a77_scoped_true_arrayWithoutHoles(r) || CCNodevue_type_template_id_19ab4a77_scoped_true_iterableToArray(r) || CCNodevue_type_template_id_19ab4a77_scoped_true_unsupportedIterableToArray(r) || CCNodevue_type_template_id_19ab4a77_scoped_true_nonIterableSpread(); }
|
|
41689
|
+
function CCNodevue_type_template_id_19ab4a77_scoped_true_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
41690
|
+
function CCNodevue_type_template_id_19ab4a77_scoped_true_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return CCNodevue_type_template_id_19ab4a77_scoped_true_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? CCNodevue_type_template_id_19ab4a77_scoped_true_arrayLikeToArray(r, a) : void 0; } }
|
|
41691
|
+
function CCNodevue_type_template_id_19ab4a77_scoped_true_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
41692
|
+
function CCNodevue_type_template_id_19ab4a77_scoped_true_arrayWithoutHoles(r) { if (Array.isArray(r)) return CCNodevue_type_template_id_19ab4a77_scoped_true_arrayLikeToArray(r); }
|
|
41693
|
+
function CCNodevue_type_template_id_19ab4a77_scoped_true_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
41694
|
+
var CCNodevue_type_template_id_19ab4a77_scoped_true_render = function render() {
|
|
41348
41695
|
var _vm$nodeRef, _vm$nodeHandler, _vm$noticeTemplateAtt;
|
|
41349
41696
|
var _vm = this,
|
|
41350
41697
|
_c = _vm._self._c;
|
|
@@ -41599,14 +41946,13 @@ var CCNodevue_type_template_id_2d46d5cf_scoped_true_render = function render() {
|
|
|
41599
41946
|
attrs: {
|
|
41600
41947
|
"span": "18"
|
|
41601
41948
|
}
|
|
41602
|
-
}, [_c('div', [_c('
|
|
41603
|
-
staticStyle: {
|
|
41604
|
-
"width": "100%"
|
|
41605
|
-
},
|
|
41949
|
+
}, [_c('div', [_c('ActorUserPicker', {
|
|
41606
41950
|
attrs: {
|
|
41607
|
-
"options":
|
|
41608
|
-
"
|
|
41609
|
-
|
|
41951
|
+
"business-options": _vm.businessUserData,
|
|
41952
|
+
"ead-api": _vm.eadApi
|
|
41953
|
+
},
|
|
41954
|
+
on: {
|
|
41955
|
+
"users": _vm.mergeActorUsers
|
|
41610
41956
|
},
|
|
41611
41957
|
model: {
|
|
41612
41958
|
value: item.user,
|
|
@@ -41632,7 +41978,7 @@ var CCNodevue_type_template_id_2d46d5cf_scoped_true_render = function render() {
|
|
|
41632
41978
|
maxHeight: '400px',
|
|
41633
41979
|
overflow: 'auto'
|
|
41634
41980
|
},
|
|
41635
|
-
"tree-data": [_vm.businessOrgData].concat(
|
|
41981
|
+
"tree-data": [_vm.businessOrgData].concat(CCNodevue_type_template_id_19ab4a77_scoped_true_toConsumableArray(_vm.orgData)),
|
|
41636
41982
|
"allowClear": "",
|
|
41637
41983
|
"placeholder": "部门",
|
|
41638
41984
|
"tree-default-expand-all": ""
|
|
@@ -42055,18 +42401,22 @@ var CCNodevue_type_template_id_2d46d5cf_scoped_true_render = function render() {
|
|
|
42055
42401
|
}
|
|
42056
42402
|
}, [_vm._v(" 允许 ")])], 1)], 1)], 1)], 1)], 1)], 1)], 1) : _vm._e()], 1);
|
|
42057
42403
|
};
|
|
42058
|
-
var
|
|
42404
|
+
var CCNodevue_type_template_id_19ab4a77_scoped_true_staticRenderFns = [];
|
|
42059
42405
|
|
|
42060
|
-
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=template&id=
|
|
42406
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=template&id=19ab4a77&scoped=true
|
|
42061
42407
|
|
|
42062
42408
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=script&lang=js
|
|
42063
42409
|
function CCNodevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return CCNodevue_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; }, CCNodevue_type_script_lang_js_typeof(o); }
|
|
42410
|
+
function CCNodevue_type_script_lang_js_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = CCNodevue_type_script_lang_js_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
42064
42411
|
function CCNodevue_type_script_lang_js_regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return CCNodevue_type_script_lang_js_regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (CCNodevue_type_script_lang_js_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, CCNodevue_type_script_lang_js_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, CCNodevue_type_script_lang_js_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), CCNodevue_type_script_lang_js_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", CCNodevue_type_script_lang_js_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), CCNodevue_type_script_lang_js_regeneratorDefine2(u), CCNodevue_type_script_lang_js_regeneratorDefine2(u, o, "Generator"), CCNodevue_type_script_lang_js_regeneratorDefine2(u, n, function () { return this; }), CCNodevue_type_script_lang_js_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (CCNodevue_type_script_lang_js_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
42065
42412
|
function CCNodevue_type_script_lang_js_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } CCNodevue_type_script_lang_js_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { CCNodevue_type_script_lang_js_regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, CCNodevue_type_script_lang_js_regeneratorDefine2(e, r, n, t); }
|
|
42066
42413
|
function CCNodevue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
42067
42414
|
function CCNodevue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { CCNodevue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { CCNodevue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
42068
|
-
function
|
|
42415
|
+
function CCNodevue_type_script_lang_js_toConsumableArray(r) { return CCNodevue_type_script_lang_js_arrayWithoutHoles(r) || CCNodevue_type_script_lang_js_iterableToArray(r) || CCNodevue_type_script_lang_js_unsupportedIterableToArray(r) || CCNodevue_type_script_lang_js_nonIterableSpread(); }
|
|
42416
|
+
function CCNodevue_type_script_lang_js_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
42069
42417
|
function CCNodevue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return CCNodevue_type_script_lang_js_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? CCNodevue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
42418
|
+
function CCNodevue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
42419
|
+
function CCNodevue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return CCNodevue_type_script_lang_js_arrayLikeToArray(r); }
|
|
42070
42420
|
function CCNodevue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
42071
42421
|
function CCNodevue_type_script_lang_js_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
42072
42422
|
function CCNodevue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? CCNodevue_type_script_lang_js_ownKeys(Object(t), !0).forEach(function (r) { CCNodevue_type_script_lang_js_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : CCNodevue_type_script_lang_js_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -42077,6 +42427,7 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42077
42427
|
|
|
42078
42428
|
|
|
42079
42429
|
|
|
42430
|
+
|
|
42080
42431
|
/* harmony default export */ var CCNodevue_type_script_lang_js = ({
|
|
42081
42432
|
name: 'CCNode',
|
|
42082
42433
|
props: {
|
|
@@ -42084,7 +42435,8 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42084
42435
|
nodeHandler: Object
|
|
42085
42436
|
},
|
|
42086
42437
|
components: {
|
|
42087
|
-
Item: Item["a" /* default */]
|
|
42438
|
+
Item: Item["a" /* default */],
|
|
42439
|
+
ActorUserPicker: ActorUserPicker
|
|
42088
42440
|
},
|
|
42089
42441
|
data: function data() {
|
|
42090
42442
|
return {
|
|
@@ -42120,6 +42472,7 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42120
42472
|
orgData: [],
|
|
42121
42473
|
roles: [],
|
|
42122
42474
|
users: [],
|
|
42475
|
+
actorNamesReady: false,
|
|
42123
42476
|
viewNametimeout: null,
|
|
42124
42477
|
viewAttrLoading: true,
|
|
42125
42478
|
formsColumnFilter: undefined,
|
|
@@ -42289,16 +42642,16 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42289
42642
|
}
|
|
42290
42643
|
}
|
|
42291
42644
|
if (expression[0].type === 'uid') {
|
|
42292
|
-
|
|
42293
|
-
return user.value;
|
|
42294
|
-
});
|
|
42645
|
+
if (!this.actorNamesReady) return '加载人员…';
|
|
42295
42646
|
content = expression[0].user.map(function (item) {
|
|
42296
|
-
var
|
|
42647
|
+
var _this$businessUserDat, _this$users$find;
|
|
42648
|
+
var label = ((_this$businessUserDat = _this.businessUserData.find(function (user) {
|
|
42297
42649
|
return user.value === item;
|
|
42298
|
-
}).label
|
|
42650
|
+
})) === null || _this$businessUserDat === void 0 ? void 0 : _this$businessUserDat.label) || ((_this$users$find = _this.users.find(function (user) {
|
|
42299
42651
|
return user.value === item;
|
|
42300
|
-
}).label;
|
|
42301
|
-
|
|
42652
|
+
})) === null || _this$users$find === void 0 ? void 0 : _this$users$find.label) || (item === '$' + '{sponsor}' ? '发起人' : item);
|
|
42653
|
+
var index = label.indexOf('(');
|
|
42654
|
+
return index === -1 ? label : label.substring(0, index);
|
|
42302
42655
|
}).join('、');
|
|
42303
42656
|
}
|
|
42304
42657
|
}
|
|
@@ -42368,11 +42721,55 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42368
42721
|
}
|
|
42369
42722
|
},
|
|
42370
42723
|
methods: {
|
|
42371
|
-
|
|
42724
|
+
mergeActorUsers: function mergeActorUsers(selected) {
|
|
42725
|
+
var users = new Map(this.users.map(function (user) {
|
|
42726
|
+
return [user.value, user];
|
|
42727
|
+
}));
|
|
42728
|
+
selected.forEach(function (user) {
|
|
42729
|
+
return users.set(user.value, user);
|
|
42730
|
+
});
|
|
42731
|
+
this.users = CCNodevue_type_script_lang_js_toConsumableArray(users.values());
|
|
42732
|
+
},
|
|
42733
|
+
loadActorUserNames: function loadActorUserNames() {
|
|
42372
42734
|
var _this2 = this;
|
|
42735
|
+
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function _callee() {
|
|
42736
|
+
var _this2$nodeRef$data$a;
|
|
42737
|
+
var expressions, ids, _t;
|
|
42738
|
+
return CCNodevue_type_script_lang_js_regenerator().w(function (_context) {
|
|
42739
|
+
while (1) switch (_context.n) {
|
|
42740
|
+
case 0:
|
|
42741
|
+
expressions = ((_this2$nodeRef$data$a = _this2.nodeRef.data.actor_config) === null || _this2$nodeRef$data$a === void 0 ? void 0 : _this2$nodeRef$data$a.expression) || [];
|
|
42742
|
+
ids = CCNodevue_type_script_lang_js_toConsumableArray(new Set(expressions.filter(function (item) {
|
|
42743
|
+
return item.type === 'uid';
|
|
42744
|
+
}).reduce(function (values, item) {
|
|
42745
|
+
return values.concat(item.user || []);
|
|
42746
|
+
}, []).filter(function (uid) {
|
|
42747
|
+
return uid && !String(uid).startsWith('$' + '{');
|
|
42748
|
+
})));
|
|
42749
|
+
if (!ids.length) {
|
|
42750
|
+
_context.n = 2;
|
|
42751
|
+
break;
|
|
42752
|
+
}
|
|
42753
|
+
_t = _this2;
|
|
42754
|
+
_context.n = 1;
|
|
42755
|
+
return Promise.all(ids.map(function (uid) {
|
|
42756
|
+
return _this2.eadApi.getAccountByUid(uid);
|
|
42757
|
+
}));
|
|
42758
|
+
case 1:
|
|
42759
|
+
_t.mergeActorUsers.call(_t, _context.v);
|
|
42760
|
+
case 2:
|
|
42761
|
+
_this2.actorNamesReady = true;
|
|
42762
|
+
case 3:
|
|
42763
|
+
return _context.a(2);
|
|
42764
|
+
}
|
|
42765
|
+
}, _callee);
|
|
42766
|
+
}))();
|
|
42767
|
+
},
|
|
42768
|
+
filterDataset: function filterDataset(filter, dataset, datasetKeys) {
|
|
42769
|
+
var _this3 = this;
|
|
42373
42770
|
if (!filter) {
|
|
42374
42771
|
return dataset.filter(function (o) {
|
|
42375
|
-
return
|
|
42772
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
42376
42773
|
});
|
|
42377
42774
|
}
|
|
42378
42775
|
return dataset.filter(function (o) {
|
|
@@ -42392,7 +42789,7 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42392
42789
|
}
|
|
42393
42790
|
return false;
|
|
42394
42791
|
}).filter(function (o) {
|
|
42395
|
-
return
|
|
42792
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
42396
42793
|
});
|
|
42397
42794
|
},
|
|
42398
42795
|
getClass: function getClass() {
|
|
@@ -42434,21 +42831,21 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42434
42831
|
});
|
|
42435
42832
|
},
|
|
42436
42833
|
optionViewChange: function optionViewChange(id) {
|
|
42437
|
-
var
|
|
42438
|
-
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function
|
|
42439
|
-
return CCNodevue_type_script_lang_js_regenerator().w(function (
|
|
42440
|
-
while (1) switch (
|
|
42834
|
+
var _this4 = this;
|
|
42835
|
+
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function _callee2() {
|
|
42836
|
+
return CCNodevue_type_script_lang_js_regenerator().w(function (_context2) {
|
|
42837
|
+
while (1) switch (_context2.n) {
|
|
42441
42838
|
case 0:
|
|
42442
|
-
|
|
42443
|
-
|
|
42444
|
-
|
|
42839
|
+
_this4.formsColumnFilter = undefined;
|
|
42840
|
+
_this4.nodeRef.data.option_view_id = id;
|
|
42841
|
+
_this4.nodeRef.data.eadCache.workflow.optionViewList = [_this4.optionViewList.find(function (item) {
|
|
42445
42842
|
return item.value === id;
|
|
42446
42843
|
})];
|
|
42447
|
-
|
|
42448
|
-
|
|
42449
|
-
return
|
|
42844
|
+
_this4.viewAttrLoading = true;
|
|
42845
|
+
_context2.n = 1;
|
|
42846
|
+
return _this4.eadApi.getViewAttrs(id);
|
|
42450
42847
|
case 1:
|
|
42451
|
-
|
|
42848
|
+
_this4.nodeRef.data.option_forms = _context2.v.filter(function (attr) {
|
|
42452
42849
|
return attr.type === 'value' && attr.access !== 'none';
|
|
42453
42850
|
}).filter(function (attr) {
|
|
42454
42851
|
return attr.key_type !== 'primary';
|
|
@@ -42461,15 +42858,15 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42461
42858
|
required: attr.required
|
|
42462
42859
|
};
|
|
42463
42860
|
});
|
|
42464
|
-
|
|
42861
|
+
_this4.viewAttrLoading = false;
|
|
42465
42862
|
case 2:
|
|
42466
|
-
return
|
|
42863
|
+
return _context2.a(2);
|
|
42467
42864
|
}
|
|
42468
|
-
},
|
|
42865
|
+
}, _callee2);
|
|
42469
42866
|
}))();
|
|
42470
42867
|
},
|
|
42471
42868
|
'optionViewSearch': function optionViewSearch(s) {
|
|
42472
|
-
var
|
|
42869
|
+
var _this5 = this;
|
|
42473
42870
|
if (this.viewNametimeout) {
|
|
42474
42871
|
clearTimeout(this.viewNametimeout);
|
|
42475
42872
|
this.viewNametimeout = null;
|
|
@@ -42478,8 +42875,8 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42478
42875
|
if (!s) {
|
|
42479
42876
|
return;
|
|
42480
42877
|
}
|
|
42481
|
-
|
|
42482
|
-
|
|
42878
|
+
_this5.eadApi.getViews(s).then(function (value) {
|
|
42879
|
+
_this5.optionViewList = value.map(function (item) {
|
|
42483
42880
|
return {
|
|
42484
42881
|
value: item.view_id,
|
|
42485
42882
|
text: item.view_name
|
|
@@ -42490,25 +42887,25 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42490
42887
|
this.viewNametimeout = setTimeout(go, 300);
|
|
42491
42888
|
},
|
|
42492
42889
|
'changeViewType': function changeViewType(_ref2) {
|
|
42493
|
-
var
|
|
42494
|
-
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function
|
|
42890
|
+
var _this6 = this;
|
|
42891
|
+
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function _callee3() {
|
|
42495
42892
|
var target, type;
|
|
42496
|
-
return CCNodevue_type_script_lang_js_regenerator().w(function (
|
|
42497
|
-
while (1) switch (
|
|
42893
|
+
return CCNodevue_type_script_lang_js_regenerator().w(function (_context3) {
|
|
42894
|
+
while (1) switch (_context3.n) {
|
|
42498
42895
|
case 0:
|
|
42499
42896
|
target = _ref2.target;
|
|
42500
42897
|
type = target.value;
|
|
42501
|
-
|
|
42898
|
+
_this6.nodeRef.data.eadCache.workflow.optionViewType = type;
|
|
42502
42899
|
if (!(type === 'use_model')) {
|
|
42503
|
-
|
|
42900
|
+
_context3.n = 2;
|
|
42504
42901
|
break;
|
|
42505
42902
|
}
|
|
42506
|
-
|
|
42507
|
-
|
|
42508
|
-
|
|
42509
|
-
return
|
|
42903
|
+
_this6.nodeRef.data.option_view_id = undefined;
|
|
42904
|
+
_this6.viewAttrLoading = true;
|
|
42905
|
+
_context3.n = 1;
|
|
42906
|
+
return _this6.eadApi.getViewAttrs(_this6.eadApi.getValues().option_view_id);
|
|
42510
42907
|
case 1:
|
|
42511
|
-
|
|
42908
|
+
_this6.nodeRef.data.option_forms = _context3.v.filter(function (attr) {
|
|
42512
42909
|
return attr.type === 'value' && attr.access !== 'none';
|
|
42513
42910
|
}).filter(function (attr) {
|
|
42514
42911
|
return attr.key_type !== 'primary';
|
|
@@ -42521,22 +42918,22 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42521
42918
|
required: attr.required
|
|
42522
42919
|
};
|
|
42523
42920
|
});
|
|
42524
|
-
|
|
42525
|
-
|
|
42921
|
+
_this6.$nextTick(function () {
|
|
42922
|
+
_this6.viewAttrLoading = false;
|
|
42526
42923
|
});
|
|
42527
42924
|
case 2:
|
|
42528
|
-
return
|
|
42925
|
+
return _context3.a(2);
|
|
42529
42926
|
}
|
|
42530
|
-
},
|
|
42927
|
+
}, _callee3);
|
|
42531
42928
|
}))();
|
|
42532
42929
|
},
|
|
42533
42930
|
hideDrawer: function hideDrawer() {
|
|
42534
|
-
var
|
|
42931
|
+
var _this7 = this;
|
|
42535
42932
|
var vaildR = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(true);
|
|
42536
42933
|
this.$refs.nameForm.validate(function (valid) {
|
|
42537
42934
|
if (!valid) {
|
|
42538
42935
|
vaildR.value = false;
|
|
42539
|
-
|
|
42936
|
+
_this7.$message.error('节点名称校验不通过');
|
|
42540
42937
|
}
|
|
42541
42938
|
});
|
|
42542
42939
|
|
|
@@ -42547,10 +42944,10 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42547
42944
|
},
|
|
42548
42945
|
changeTags: function changeTags(a) {},
|
|
42549
42946
|
showEditName: function showEditName() {
|
|
42550
|
-
var
|
|
42947
|
+
var _this8 = this;
|
|
42551
42948
|
this.editName = true;
|
|
42552
42949
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
42553
|
-
|
|
42950
|
+
_this8.$refs.nameInput.focus();
|
|
42554
42951
|
});
|
|
42555
42952
|
},
|
|
42556
42953
|
close: function close() {
|
|
@@ -42568,24 +42965,24 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42568
42965
|
}
|
|
42569
42966
|
},
|
|
42570
42967
|
mounted: function mounted() {
|
|
42571
|
-
var
|
|
42572
|
-
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function
|
|
42573
|
-
var
|
|
42574
|
-
var _yield$
|
|
42575
|
-
return CCNodevue_type_script_lang_js_regenerator().w(function (
|
|
42576
|
-
while (1) switch (
|
|
42968
|
+
var _this9 = this;
|
|
42969
|
+
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function _callee4() {
|
|
42970
|
+
var _this9$nodeRef$data$o;
|
|
42971
|
+
var _yield$_this9$nodeHan, viewAttrs, orgMap, orgData, roles, users;
|
|
42972
|
+
return CCNodevue_type_script_lang_js_regenerator().w(function (_context4) {
|
|
42973
|
+
while (1) switch (_context4.n) {
|
|
42577
42974
|
case 0:
|
|
42578
|
-
|
|
42579
|
-
return
|
|
42975
|
+
_context4.n = 1;
|
|
42976
|
+
return _this9.nodeHandler.businessAdapter.getActorData();
|
|
42580
42977
|
case 1:
|
|
42581
|
-
_yield$
|
|
42582
|
-
viewAttrs = _yield$
|
|
42583
|
-
orgMap = _yield$
|
|
42584
|
-
orgData = _yield$
|
|
42585
|
-
roles = _yield$
|
|
42586
|
-
users = _yield$
|
|
42587
|
-
if (!((
|
|
42588
|
-
|
|
42978
|
+
_yield$_this9$nodeHan = _context4.v;
|
|
42979
|
+
viewAttrs = _yield$_this9$nodeHan.viewAttrs;
|
|
42980
|
+
orgMap = _yield$_this9$nodeHan.orgMap;
|
|
42981
|
+
orgData = _yield$_this9$nodeHan.orgData;
|
|
42982
|
+
roles = _yield$_this9$nodeHan.roles;
|
|
42983
|
+
users = _yield$_this9$nodeHan.users;
|
|
42984
|
+
if (!((_this9$nodeRef$data$o = _this9.nodeRef.data.option_forms) !== null && _this9$nodeRef$data$o !== void 0 && _this9$nodeRef$data$o.length)) {
|
|
42985
|
+
_this9.nodeRef.data.option_forms = viewAttrs.filter(function (attr) {
|
|
42589
42986
|
return attr.type === 'value' && attr.access !== 'none';
|
|
42590
42987
|
}).filter(function (attr) {
|
|
42591
42988
|
return attr.key_type !== 'primary';
|
|
@@ -42599,22 +42996,24 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42599
42996
|
};
|
|
42600
42997
|
});
|
|
42601
42998
|
}
|
|
42602
|
-
|
|
42603
|
-
|
|
42604
|
-
|
|
42605
|
-
|
|
42606
|
-
|
|
42999
|
+
_this9.viewAttrLoading = false;
|
|
43000
|
+
_this9.orgMap = orgMap;
|
|
43001
|
+
_this9.orgData = orgData;
|
|
43002
|
+
_this9.roles = roles;
|
|
43003
|
+
_this9.mergeActorUsers(users);
|
|
43004
|
+
_context4.n = 2;
|
|
43005
|
+
return _this9.loadActorUserNames();
|
|
42607
43006
|
case 2:
|
|
42608
|
-
return
|
|
43007
|
+
return _context4.a(2);
|
|
42609
43008
|
}
|
|
42610
|
-
},
|
|
43009
|
+
}, _callee4);
|
|
42611
43010
|
}))();
|
|
42612
43011
|
}
|
|
42613
43012
|
});
|
|
42614
43013
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=script&lang=js
|
|
42615
43014
|
/* harmony default export */ var node_CCNodevue_type_script_lang_js = (CCNodevue_type_script_lang_js);
|
|
42616
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=style&index=0&id=
|
|
42617
|
-
var
|
|
43015
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=style&index=0&id=19ab4a77&prod&lang=less&scoped=true
|
|
43016
|
+
var CCNodevue_type_style_index_0_id_19ab4a77_prod_lang_less_scoped_true = __webpack_require__("874c");
|
|
42618
43017
|
|
|
42619
43018
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue
|
|
42620
43019
|
|
|
@@ -42627,24 +43026,24 @@ var CCNodevue_type_style_index_0_id_2d46d5cf_prod_lang_less_scoped_true = __webp
|
|
|
42627
43026
|
|
|
42628
43027
|
var CCNode_component = Object(componentNormalizer["a" /* default */])(
|
|
42629
43028
|
node_CCNodevue_type_script_lang_js,
|
|
42630
|
-
|
|
42631
|
-
|
|
43029
|
+
CCNodevue_type_template_id_19ab4a77_scoped_true_render,
|
|
43030
|
+
CCNodevue_type_template_id_19ab4a77_scoped_true_staticRenderFns,
|
|
42632
43031
|
false,
|
|
42633
43032
|
null,
|
|
42634
|
-
"
|
|
43033
|
+
"19ab4a77",
|
|
42635
43034
|
null
|
|
42636
43035
|
|
|
42637
43036
|
)
|
|
42638
43037
|
|
|
42639
43038
|
/* harmony default export */ var CCNode = (CCNode_component.exports);
|
|
42640
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b95bb1c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=template&id=
|
|
42641
|
-
function
|
|
42642
|
-
function
|
|
42643
|
-
function
|
|
42644
|
-
function
|
|
42645
|
-
function
|
|
42646
|
-
function
|
|
42647
|
-
var
|
|
43039
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1b95bb1c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=template&id=369c008a&scoped=true
|
|
43040
|
+
function TaskNodevue_type_template_id_369c008a_scoped_true_toConsumableArray(r) { return TaskNodevue_type_template_id_369c008a_scoped_true_arrayWithoutHoles(r) || TaskNodevue_type_template_id_369c008a_scoped_true_iterableToArray(r) || TaskNodevue_type_template_id_369c008a_scoped_true_unsupportedIterableToArray(r) || TaskNodevue_type_template_id_369c008a_scoped_true_nonIterableSpread(); }
|
|
43041
|
+
function TaskNodevue_type_template_id_369c008a_scoped_true_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
43042
|
+
function TaskNodevue_type_template_id_369c008a_scoped_true_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return TaskNodevue_type_template_id_369c008a_scoped_true_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? TaskNodevue_type_template_id_369c008a_scoped_true_arrayLikeToArray(r, a) : void 0; } }
|
|
43043
|
+
function TaskNodevue_type_template_id_369c008a_scoped_true_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
43044
|
+
function TaskNodevue_type_template_id_369c008a_scoped_true_arrayWithoutHoles(r) { if (Array.isArray(r)) return TaskNodevue_type_template_id_369c008a_scoped_true_arrayLikeToArray(r); }
|
|
43045
|
+
function TaskNodevue_type_template_id_369c008a_scoped_true_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
43046
|
+
var TaskNodevue_type_template_id_369c008a_scoped_true_render = function render() {
|
|
42648
43047
|
var _vm$nodeHandler, _vm$nodeHandler2, _vm$nodeRef, _vm$nodeRef2, _vm$nodeRef3, _vm$nodeHandler3, _vm$noticeTemplateAtt;
|
|
42649
43048
|
var _vm = this,
|
|
42650
43049
|
_c = _vm._self._c;
|
|
@@ -43650,15 +44049,13 @@ var TaskNodevue_type_template_id_42e0e2eb_scoped_true_render = function render()
|
|
|
43650
44049
|
attrs: {
|
|
43651
44050
|
"span": "18"
|
|
43652
44051
|
}
|
|
43653
|
-
}, [_c('div', [_c('
|
|
43654
|
-
staticStyle: {
|
|
43655
|
-
"width": "100%"
|
|
43656
|
-
},
|
|
44052
|
+
}, [_c('div', [_c('ActorUserPicker', {
|
|
43657
44053
|
attrs: {
|
|
43658
|
-
"
|
|
43659
|
-
"
|
|
43660
|
-
|
|
43661
|
-
|
|
44054
|
+
"business-options": _vm.businessUserData,
|
|
44055
|
+
"ead-api": _vm.eadApi
|
|
44056
|
+
},
|
|
44057
|
+
on: {
|
|
44058
|
+
"users": _vm.mergeActorUsers
|
|
43662
44059
|
},
|
|
43663
44060
|
model: {
|
|
43664
44061
|
value: item.user,
|
|
@@ -43684,7 +44081,7 @@ var TaskNodevue_type_template_id_42e0e2eb_scoped_true_render = function render()
|
|
|
43684
44081
|
maxHeight: '400px',
|
|
43685
44082
|
overflow: 'auto'
|
|
43686
44083
|
},
|
|
43687
|
-
"tree-data": [_vm.businessOrgData].concat(
|
|
44084
|
+
"tree-data": [_vm.businessOrgData].concat(TaskNodevue_type_template_id_369c008a_scoped_true_toConsumableArray(_vm.orgData)),
|
|
43688
44085
|
"allowClear": "",
|
|
43689
44086
|
"placeholder": "部门",
|
|
43690
44087
|
"tree-default-expand-all": ""
|
|
@@ -44145,18 +44542,22 @@ var TaskNodevue_type_template_id_42e0e2eb_scoped_true_render = function render()
|
|
|
44145
44542
|
}
|
|
44146
44543
|
}) : _vm._e()], 1)]) : _vm._e()], 1)], 1) : _vm._e()], 1);
|
|
44147
44544
|
};
|
|
44148
|
-
var
|
|
44545
|
+
var TaskNodevue_type_template_id_369c008a_scoped_true_staticRenderFns = [];
|
|
44149
44546
|
|
|
44150
|
-
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=template&id=
|
|
44547
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=template&id=369c008a&scoped=true
|
|
44151
44548
|
|
|
44152
44549
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=script&lang=js
|
|
44153
44550
|
function TaskNodevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return TaskNodevue_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; }, TaskNodevue_type_script_lang_js_typeof(o); }
|
|
44551
|
+
function TaskNodevue_type_script_lang_js_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = TaskNodevue_type_script_lang_js_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
44154
44552
|
function TaskNodevue_type_script_lang_js_regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return TaskNodevue_type_script_lang_js_regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (TaskNodevue_type_script_lang_js_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, TaskNodevue_type_script_lang_js_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, TaskNodevue_type_script_lang_js_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), TaskNodevue_type_script_lang_js_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", TaskNodevue_type_script_lang_js_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), TaskNodevue_type_script_lang_js_regeneratorDefine2(u), TaskNodevue_type_script_lang_js_regeneratorDefine2(u, o, "Generator"), TaskNodevue_type_script_lang_js_regeneratorDefine2(u, n, function () { return this; }), TaskNodevue_type_script_lang_js_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (TaskNodevue_type_script_lang_js_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
44155
44553
|
function TaskNodevue_type_script_lang_js_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } TaskNodevue_type_script_lang_js_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { TaskNodevue_type_script_lang_js_regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, TaskNodevue_type_script_lang_js_regeneratorDefine2(e, r, n, t); }
|
|
44156
44554
|
function TaskNodevue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
44157
44555
|
function TaskNodevue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { TaskNodevue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { TaskNodevue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
44158
|
-
function
|
|
44556
|
+
function TaskNodevue_type_script_lang_js_toConsumableArray(r) { return TaskNodevue_type_script_lang_js_arrayWithoutHoles(r) || TaskNodevue_type_script_lang_js_iterableToArray(r) || TaskNodevue_type_script_lang_js_unsupportedIterableToArray(r) || TaskNodevue_type_script_lang_js_nonIterableSpread(); }
|
|
44557
|
+
function TaskNodevue_type_script_lang_js_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
44159
44558
|
function TaskNodevue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return TaskNodevue_type_script_lang_js_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? TaskNodevue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
44559
|
+
function TaskNodevue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
44560
|
+
function TaskNodevue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return TaskNodevue_type_script_lang_js_arrayLikeToArray(r); }
|
|
44160
44561
|
function TaskNodevue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
44161
44562
|
function TaskNodevue_type_script_lang_js_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
44162
44563
|
function TaskNodevue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? TaskNodevue_type_script_lang_js_ownKeys(Object(t), !0).forEach(function (r) { TaskNodevue_type_script_lang_js_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : TaskNodevue_type_script_lang_js_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -44169,6 +44570,7 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44169
44570
|
|
|
44170
44571
|
|
|
44171
44572
|
|
|
44573
|
+
|
|
44172
44574
|
/* harmony default export */ var TaskNodevue_type_script_lang_js = ({
|
|
44173
44575
|
name: 'TaskNode',
|
|
44174
44576
|
props: {
|
|
@@ -44178,7 +44580,8 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44178
44580
|
components: {
|
|
44179
44581
|
AssertDesigner: AssertDesigner,
|
|
44180
44582
|
RuntimeWorkflowActors: RuntimeWorkFlowActors,
|
|
44181
|
-
Item: Item["a" /* default */]
|
|
44583
|
+
Item: Item["a" /* default */],
|
|
44584
|
+
ActorUserPicker: ActorUserPicker
|
|
44182
44585
|
},
|
|
44183
44586
|
data: function data() {
|
|
44184
44587
|
return {
|
|
@@ -44237,6 +44640,7 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44237
44640
|
orgData: [],
|
|
44238
44641
|
roles: [],
|
|
44239
44642
|
users: [],
|
|
44643
|
+
actorNamesReady: false,
|
|
44240
44644
|
viewNameTimeout: null,
|
|
44241
44645
|
viewAttrLoading: true,
|
|
44242
44646
|
driverList: null,
|
|
@@ -44498,16 +44902,16 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44498
44902
|
}
|
|
44499
44903
|
}
|
|
44500
44904
|
if (expression[0].type === 'uid') {
|
|
44501
|
-
|
|
44502
|
-
return user.value;
|
|
44503
|
-
});
|
|
44905
|
+
if (!this.actorNamesReady) return '加载人员…';
|
|
44504
44906
|
content = expression[0].user.map(function (item) {
|
|
44505
|
-
var
|
|
44907
|
+
var _this$businessUserDat, _this$users$find;
|
|
44908
|
+
var label = ((_this$businessUserDat = _this.businessUserData.find(function (user) {
|
|
44506
44909
|
return user.value === item;
|
|
44507
|
-
}).label
|
|
44910
|
+
})) === null || _this$businessUserDat === void 0 ? void 0 : _this$businessUserDat.label) || ((_this$users$find = _this.users.find(function (user) {
|
|
44508
44911
|
return user.value === item;
|
|
44509
|
-
}).label;
|
|
44510
|
-
|
|
44912
|
+
})) === null || _this$users$find === void 0 ? void 0 : _this$users$find.label) || (item === '$' + '{sponsor}' ? '发起人' : item);
|
|
44913
|
+
var index = label.indexOf('(');
|
|
44914
|
+
return index === -1 ? label : label.substring(0, index);
|
|
44511
44915
|
}).join('、');
|
|
44512
44916
|
}
|
|
44513
44917
|
}
|
|
@@ -44577,11 +44981,55 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44577
44981
|
}
|
|
44578
44982
|
},
|
|
44579
44983
|
methods: {
|
|
44580
|
-
|
|
44984
|
+
mergeActorUsers: function mergeActorUsers(selected) {
|
|
44985
|
+
var users = new Map(this.users.map(function (user) {
|
|
44986
|
+
return [user.value, user];
|
|
44987
|
+
}));
|
|
44988
|
+
selected.forEach(function (user) {
|
|
44989
|
+
return users.set(user.value, user);
|
|
44990
|
+
});
|
|
44991
|
+
this.users = TaskNodevue_type_script_lang_js_toConsumableArray(users.values());
|
|
44992
|
+
},
|
|
44993
|
+
loadActorUserNames: function loadActorUserNames() {
|
|
44581
44994
|
var _this2 = this;
|
|
44995
|
+
return TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function _callee() {
|
|
44996
|
+
var _this2$nodeRef$data$a;
|
|
44997
|
+
var expressions, ids, _t;
|
|
44998
|
+
return TaskNodevue_type_script_lang_js_regenerator().w(function (_context) {
|
|
44999
|
+
while (1) switch (_context.n) {
|
|
45000
|
+
case 0:
|
|
45001
|
+
expressions = ((_this2$nodeRef$data$a = _this2.nodeRef.data.actor_config) === null || _this2$nodeRef$data$a === void 0 ? void 0 : _this2$nodeRef$data$a.expression) || [];
|
|
45002
|
+
ids = TaskNodevue_type_script_lang_js_toConsumableArray(new Set(expressions.filter(function (item) {
|
|
45003
|
+
return item.type === 'uid';
|
|
45004
|
+
}).reduce(function (values, item) {
|
|
45005
|
+
return values.concat(item.user || []);
|
|
45006
|
+
}, []).filter(function (uid) {
|
|
45007
|
+
return uid && !String(uid).startsWith('$' + '{');
|
|
45008
|
+
})));
|
|
45009
|
+
if (!ids.length) {
|
|
45010
|
+
_context.n = 2;
|
|
45011
|
+
break;
|
|
45012
|
+
}
|
|
45013
|
+
_t = _this2;
|
|
45014
|
+
_context.n = 1;
|
|
45015
|
+
return Promise.all(ids.map(function (uid) {
|
|
45016
|
+
return _this2.eadApi.getAccountByUid(uid);
|
|
45017
|
+
}));
|
|
45018
|
+
case 1:
|
|
45019
|
+
_t.mergeActorUsers.call(_t, _context.v);
|
|
45020
|
+
case 2:
|
|
45021
|
+
_this2.actorNamesReady = true;
|
|
45022
|
+
case 3:
|
|
45023
|
+
return _context.a(2);
|
|
45024
|
+
}
|
|
45025
|
+
}, _callee);
|
|
45026
|
+
}))();
|
|
45027
|
+
},
|
|
45028
|
+
filterDataset: function filterDataset(filter, dataset, datasetKeys) {
|
|
45029
|
+
var _this3 = this;
|
|
44582
45030
|
if (!filter) {
|
|
44583
45031
|
return dataset.filter(function (o) {
|
|
44584
|
-
return
|
|
45032
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
44585
45033
|
});
|
|
44586
45034
|
}
|
|
44587
45035
|
return dataset.filter(function (o) {
|
|
@@ -44601,7 +45049,7 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44601
45049
|
}
|
|
44602
45050
|
return false;
|
|
44603
45051
|
}).filter(function (o) {
|
|
44604
|
-
return
|
|
45052
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
44605
45053
|
});
|
|
44606
45054
|
},
|
|
44607
45055
|
getClass: function getClass() {
|
|
@@ -44634,7 +45082,7 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44634
45082
|
},
|
|
44635
45083
|
handleDriverChange: function handleDriverChange(a, s) {},
|
|
44636
45084
|
handleDriverSearch: function handleDriverSearch(s) {
|
|
44637
|
-
var
|
|
45085
|
+
var _this4 = this;
|
|
44638
45086
|
if (this.driverTimeout) {
|
|
44639
45087
|
clearTimeout(this.driverTimeout);
|
|
44640
45088
|
this.driverTimeout = null;
|
|
@@ -44643,15 +45091,15 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44643
45091
|
if (!s) {
|
|
44644
45092
|
return;
|
|
44645
45093
|
}
|
|
44646
|
-
|
|
44647
|
-
|
|
45094
|
+
_this4.eadApi.getDrivers(s).then(function (value) {
|
|
45095
|
+
_this4.driverList = value.map(function (item) {
|
|
44648
45096
|
return {
|
|
44649
45097
|
value: item.driver_id,
|
|
44650
45098
|
label: item.driver_name,
|
|
44651
45099
|
title: item.driver_name
|
|
44652
45100
|
};
|
|
44653
45101
|
});
|
|
44654
|
-
|
|
45102
|
+
_this4.nodeRef.data.eadCache.workflow.driverList = _this4.driverList;
|
|
44655
45103
|
});
|
|
44656
45104
|
};
|
|
44657
45105
|
this.driverTimeout = setTimeout(go, 300);
|
|
@@ -44673,35 +45121,35 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44673
45121
|
});
|
|
44674
45122
|
},
|
|
44675
45123
|
optionViewChange: function optionViewChange(id) {
|
|
44676
|
-
var
|
|
44677
|
-
return TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function
|
|
45124
|
+
var _this5 = this;
|
|
45125
|
+
return TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function _callee2() {
|
|
44678
45126
|
var _viewAttrsSchema;
|
|
44679
45127
|
var viewAttrsSchema;
|
|
44680
|
-
return TaskNodevue_type_script_lang_js_regenerator().w(function (
|
|
44681
|
-
while (1) switch (
|
|
45128
|
+
return TaskNodevue_type_script_lang_js_regenerator().w(function (_context2) {
|
|
45129
|
+
while (1) switch (_context2.n) {
|
|
44682
45130
|
case 0:
|
|
44683
|
-
|
|
44684
|
-
if (
|
|
44685
|
-
|
|
45131
|
+
_this5.formsColumnFilter = undefined;
|
|
45132
|
+
if (_this5.optionViewId) {
|
|
45133
|
+
_this5.optionFormsCache[_this5.optionViewId] = _this5.nodeRef.data.option_forms;
|
|
44686
45134
|
}
|
|
44687
|
-
|
|
44688
|
-
|
|
45135
|
+
_this5.optionViewId = id;
|
|
45136
|
+
_this5.nodeRef.data.eadCache.workflow.optionViewList = [_this5.optionViewList.find(function (item) {
|
|
44689
45137
|
return item.value === id;
|
|
44690
45138
|
})];
|
|
44691
|
-
|
|
44692
|
-
|
|
44693
|
-
return
|
|
45139
|
+
_this5.viewAttrLoading = true;
|
|
45140
|
+
_context2.n = 1;
|
|
45141
|
+
return _this5.eadApi.getViewSchema(id);
|
|
44694
45142
|
case 1:
|
|
44695
|
-
viewAttrsSchema =
|
|
45143
|
+
viewAttrsSchema = _context2.v;
|
|
44696
45144
|
viewAttrsSchema = (_viewAttrsSchema = viewAttrsSchema) === null || _viewAttrsSchema === void 0 ? void 0 : _viewAttrsSchema.model.attrs;
|
|
44697
|
-
|
|
44698
|
-
return
|
|
45145
|
+
_context2.n = 2;
|
|
45146
|
+
return _this5.eadApi.getViewAttrs(id);
|
|
44699
45147
|
case 2:
|
|
44700
|
-
|
|
45148
|
+
_this5.nodeRef.data.option_forms = _context2.v.filter(function (attr) {
|
|
44701
45149
|
return attr.type === 'value' && attr.access !== 'none' && attr.key_type !== 'primary' && attr.is_system === 'none';
|
|
44702
45150
|
}).map(function (attr) {
|
|
44703
|
-
var
|
|
44704
|
-
var cache = (
|
|
45151
|
+
var _this5$optionFormsCac, _cache$access, _ref3, _cache$attrValue, _cache$schema;
|
|
45152
|
+
var cache = (_this5$optionFormsCac = _this5.optionFormsCache[id]) === null || _this5$optionFormsCac === void 0 ? void 0 : _this5$optionFormsCac.find(function (attr0) {
|
|
44705
45153
|
return attr0.attrId === attr.id;
|
|
44706
45154
|
});
|
|
44707
45155
|
var access = (_cache$access = cache === null || cache === void 0 ? void 0 : cache.access) !== null && _cache$access !== void 0 ? _cache$access : 'none';
|
|
@@ -44720,17 +45168,17 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44720
45168
|
schema: schema
|
|
44721
45169
|
};
|
|
44722
45170
|
});
|
|
44723
|
-
|
|
44724
|
-
|
|
45171
|
+
_this5.$nextTick(function () {
|
|
45172
|
+
_this5.viewAttrLoading = false;
|
|
44725
45173
|
});
|
|
44726
45174
|
case 3:
|
|
44727
|
-
return
|
|
45175
|
+
return _context2.a(2);
|
|
44728
45176
|
}
|
|
44729
|
-
},
|
|
45177
|
+
}, _callee2);
|
|
44730
45178
|
}))();
|
|
44731
45179
|
},
|
|
44732
45180
|
'optionViewSearch': function optionViewSearch(s) {
|
|
44733
|
-
var
|
|
45181
|
+
var _this6 = this;
|
|
44734
45182
|
if (this.viewNameTimeout) {
|
|
44735
45183
|
clearTimeout(this.viewNameTimeout);
|
|
44736
45184
|
this.viewNameTimeout = null;
|
|
@@ -44739,8 +45187,8 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44739
45187
|
if (!s) {
|
|
44740
45188
|
return;
|
|
44741
45189
|
}
|
|
44742
|
-
|
|
44743
|
-
|
|
45190
|
+
_this6.eadApi.getViews(s).then(function (value) {
|
|
45191
|
+
_this6.optionViewList = value.map(function (item) {
|
|
44744
45192
|
return {
|
|
44745
45193
|
value: item.view_id,
|
|
44746
45194
|
text: item.view_name
|
|
@@ -44751,42 +45199,42 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44751
45199
|
this.viewNameTimeout = setTimeout(go, 300);
|
|
44752
45200
|
},
|
|
44753
45201
|
'changeViewType': function changeViewType(_ref4) {
|
|
44754
|
-
var
|
|
44755
|
-
return TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function
|
|
45202
|
+
var _this7 = this;
|
|
45203
|
+
return TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function _callee3() {
|
|
44756
45204
|
var _viewAttrsSchema2;
|
|
44757
45205
|
var target, type, optionViewId, viewAttrsSchema;
|
|
44758
|
-
return TaskNodevue_type_script_lang_js_regenerator().w(function (
|
|
44759
|
-
while (1) switch (
|
|
45206
|
+
return TaskNodevue_type_script_lang_js_regenerator().w(function (_context3) {
|
|
45207
|
+
while (1) switch (_context3.n) {
|
|
44760
45208
|
case 0:
|
|
44761
45209
|
target = _ref4.target;
|
|
44762
45210
|
type = target.value;
|
|
44763
|
-
|
|
45211
|
+
_this7.nodeRef.data.eadCache.workflow.optionViewType = type;
|
|
44764
45212
|
optionViewId = '';
|
|
44765
45213
|
if (type === 'custom') {
|
|
44766
|
-
|
|
44767
|
-
|
|
44768
|
-
optionViewId =
|
|
45214
|
+
_this7.optionFormsCache[_this7.eadApi.getValues().option_view_id] = _this7.nodeRef.data.option_forms;
|
|
45215
|
+
_this7.nodeRef.data.option_view_id = _this7.optionViewId;
|
|
45216
|
+
optionViewId = _this7.optionViewId;
|
|
44769
45217
|
} else if (type === 'use_model') {
|
|
44770
|
-
|
|
44771
|
-
|
|
44772
|
-
optionViewId =
|
|
45218
|
+
_this7.optionFormsCache[_this7.optionViewId] = _this7.nodeRef.data.option_forms;
|
|
45219
|
+
_this7.nodeRef.data.option_view_id = null;
|
|
45220
|
+
optionViewId = _this7.eadApi.getValues().option_view_id;
|
|
44773
45221
|
}
|
|
44774
|
-
|
|
44775
|
-
|
|
44776
|
-
return
|
|
45222
|
+
_this7.viewAttrLoading = true;
|
|
45223
|
+
_context3.n = 1;
|
|
45224
|
+
return _this7.eadApi.getViewSchema(optionViewId);
|
|
44777
45225
|
case 1:
|
|
44778
|
-
viewAttrsSchema =
|
|
45226
|
+
viewAttrsSchema = _context3.v;
|
|
44779
45227
|
viewAttrsSchema = (_viewAttrsSchema2 = viewAttrsSchema) === null || _viewAttrsSchema2 === void 0 ? void 0 : _viewAttrsSchema2.model.attrs;
|
|
44780
|
-
|
|
44781
|
-
return
|
|
45228
|
+
_context3.n = 2;
|
|
45229
|
+
return _this7.eadApi.getViewAttrs(optionViewId);
|
|
44782
45230
|
case 2:
|
|
44783
|
-
|
|
45231
|
+
_this7.nodeRef.data.option_forms = _context3.v.filter(function (attr) {
|
|
44784
45232
|
return attr.type === 'value' && attr.access !== 'none' && attr.key_type !== 'primary' && attr.is_system === 'none';
|
|
44785
45233
|
}).filter(function (attr) {
|
|
44786
45234
|
return attr.key_type !== 'primary';
|
|
44787
45235
|
}).map(function (attr) {
|
|
44788
|
-
var
|
|
44789
|
-
var cache = (
|
|
45236
|
+
var _this7$optionFormsCac, _cache$access2, _ref5, _cache$attrValue2, _cache$schema2;
|
|
45237
|
+
var cache = (_this7$optionFormsCac = _this7.optionFormsCache[optionViewId]) === null || _this7$optionFormsCac === void 0 ? void 0 : _this7$optionFormsCac.find(function (attr0) {
|
|
44790
45238
|
return attr0.attrId === attr.id;
|
|
44791
45239
|
});
|
|
44792
45240
|
var access = (_cache$access2 = cache === null || cache === void 0 ? void 0 : cache.access) !== null && _cache$access2 !== void 0 ? _cache$access2 : 'none';
|
|
@@ -44805,20 +45253,20 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44805
45253
|
schema: schema
|
|
44806
45254
|
};
|
|
44807
45255
|
});
|
|
44808
|
-
|
|
45256
|
+
_this7.viewAttrLoading = false;
|
|
44809
45257
|
case 3:
|
|
44810
|
-
return
|
|
45258
|
+
return _context3.a(2);
|
|
44811
45259
|
}
|
|
44812
|
-
},
|
|
45260
|
+
}, _callee3);
|
|
44813
45261
|
}))();
|
|
44814
45262
|
},
|
|
44815
45263
|
hideDrawer: function hideDrawer() {
|
|
44816
|
-
var
|
|
45264
|
+
var _this8 = this;
|
|
44817
45265
|
var vaildR = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(true);
|
|
44818
45266
|
this.$refs.nameForm.validate(function (valid) {
|
|
44819
45267
|
if (!valid) {
|
|
44820
45268
|
vaildR.value = false;
|
|
44821
|
-
|
|
45269
|
+
_this8.$message.error('节点名称校验不通过');
|
|
44822
45270
|
}
|
|
44823
45271
|
});
|
|
44824
45272
|
|
|
@@ -44831,10 +45279,10 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44831
45279
|
// console.log(a)
|
|
44832
45280
|
},
|
|
44833
45281
|
showEditName: function showEditName() {
|
|
44834
|
-
var
|
|
45282
|
+
var _this9 = this;
|
|
44835
45283
|
this.editName = true;
|
|
44836
45284
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
44837
|
-
|
|
45285
|
+
_this9.$refs.nameInput.focus();
|
|
44838
45286
|
});
|
|
44839
45287
|
},
|
|
44840
45288
|
close: function close() {
|
|
@@ -44855,16 +45303,16 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44855
45303
|
this.loadCache(this.nodeRef);
|
|
44856
45304
|
},
|
|
44857
45305
|
mounted: function () {
|
|
44858
|
-
var _mounted = TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function
|
|
45306
|
+
var _mounted = TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function _callee4() {
|
|
44859
45307
|
var _this$nodeRef$data$op;
|
|
44860
45308
|
var _yield$this$nodeHandl, viewAttrs, orgMap, orgData, roles, users, viewAttrsSchema, _viewAttrsSchema3;
|
|
44861
|
-
return TaskNodevue_type_script_lang_js_regenerator().w(function (
|
|
44862
|
-
while (1) switch (
|
|
45309
|
+
return TaskNodevue_type_script_lang_js_regenerator().w(function (_context4) {
|
|
45310
|
+
while (1) switch (_context4.n) {
|
|
44863
45311
|
case 0:
|
|
44864
|
-
|
|
45312
|
+
_context4.n = 1;
|
|
44865
45313
|
return this.nodeHandler.businessAdapter.getActorData();
|
|
44866
45314
|
case 1:
|
|
44867
|
-
_yield$this$nodeHandl =
|
|
45315
|
+
_yield$this$nodeHandl = _context4.v;
|
|
44868
45316
|
viewAttrs = _yield$this$nodeHandl.viewAttrs;
|
|
44869
45317
|
orgMap = _yield$this$nodeHandl.orgMap;
|
|
44870
45318
|
orgData = _yield$this$nodeHandl.orgData;
|
|
@@ -44872,7 +45320,7 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44872
45320
|
users = _yield$this$nodeHandl.users;
|
|
44873
45321
|
viewAttrsSchema = _yield$this$nodeHandl.viewAttrsSchema;
|
|
44874
45322
|
if ((_this$nodeRef$data$op = this.nodeRef.data.option_forms) !== null && _this$nodeRef$data$op !== void 0 && _this$nodeRef$data$op.length) {
|
|
44875
|
-
|
|
45323
|
+
_context4.n = 2;
|
|
44876
45324
|
break;
|
|
44877
45325
|
}
|
|
44878
45326
|
this.nodeRef.data.option_forms = viewAttrs.filter(function (attr) {
|
|
@@ -44890,17 +45338,17 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44890
45338
|
})
|
|
44891
45339
|
};
|
|
44892
45340
|
});
|
|
44893
|
-
|
|
45341
|
+
_context4.n = 5;
|
|
44894
45342
|
break;
|
|
44895
45343
|
case 2:
|
|
44896
45344
|
if (!this.optionViewId) {
|
|
44897
|
-
|
|
45345
|
+
_context4.n = 4;
|
|
44898
45346
|
break;
|
|
44899
45347
|
}
|
|
44900
|
-
|
|
45348
|
+
_context4.n = 3;
|
|
44901
45349
|
return this.eadApi.getViewSchema(this.optionViewId);
|
|
44902
45350
|
case 3:
|
|
44903
|
-
viewAttrsSchema =
|
|
45351
|
+
viewAttrsSchema = _context4.v;
|
|
44904
45352
|
viewAttrsSchema = (_viewAttrsSchema3 = viewAttrsSchema) === null || _viewAttrsSchema3 === void 0 ? void 0 : _viewAttrsSchema3.model.attrs;
|
|
44905
45353
|
case 4:
|
|
44906
45354
|
this.nodeRef.data.option_forms.forEach(function (value) {
|
|
@@ -44914,11 +45362,13 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44914
45362
|
this.orgMap = orgMap;
|
|
44915
45363
|
this.orgData = orgData;
|
|
44916
45364
|
this.roles = roles;
|
|
44917
|
-
this.users
|
|
45365
|
+
this.mergeActorUsers(users);
|
|
45366
|
+
_context4.n = 6;
|
|
45367
|
+
return this.loadActorUserNames();
|
|
44918
45368
|
case 6:
|
|
44919
|
-
return
|
|
45369
|
+
return _context4.a(2);
|
|
44920
45370
|
}
|
|
44921
|
-
},
|
|
45371
|
+
}, _callee4, this);
|
|
44922
45372
|
}));
|
|
44923
45373
|
function mounted() {
|
|
44924
45374
|
return _mounted.apply(this, arguments);
|
|
@@ -44928,8 +45378,8 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44928
45378
|
});
|
|
44929
45379
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=script&lang=js
|
|
44930
45380
|
/* harmony default export */ var node_TaskNodevue_type_script_lang_js = (TaskNodevue_type_script_lang_js);
|
|
44931
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=style&index=0&id=
|
|
44932
|
-
var
|
|
45381
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=style&index=0&id=369c008a&prod&lang=less&scoped=true
|
|
45382
|
+
var TaskNodevue_type_style_index_0_id_369c008a_prod_lang_less_scoped_true = __webpack_require__("b7fe");
|
|
44933
45383
|
|
|
44934
45384
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue
|
|
44935
45385
|
|
|
@@ -44942,11 +45392,11 @@ var TaskNodevue_type_style_index_0_id_42e0e2eb_prod_lang_less_scoped_true = __we
|
|
|
44942
45392
|
|
|
44943
45393
|
var TaskNode_component = Object(componentNormalizer["a" /* default */])(
|
|
44944
45394
|
node_TaskNodevue_type_script_lang_js,
|
|
44945
|
-
|
|
44946
|
-
|
|
45395
|
+
TaskNodevue_type_template_id_369c008a_scoped_true_render,
|
|
45396
|
+
TaskNodevue_type_template_id_369c008a_scoped_true_staticRenderFns,
|
|
44947
45397
|
false,
|
|
44948
45398
|
null,
|
|
44949
|
-
"
|
|
45399
|
+
"369c008a",
|
|
44950
45400
|
null
|
|
44951
45401
|
|
|
44952
45402
|
)
|
|
@@ -51042,6 +51492,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
51042
51492
|
}
|
|
51043
51493
|
});
|
|
51044
51494
|
|
|
51495
|
+
/***/ }),
|
|
51496
|
+
|
|
51497
|
+
/***/ "b7fe":
|
|
51498
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
51499
|
+
|
|
51500
|
+
"use strict";
|
|
51501
|
+
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_TaskNode_vue_vue_type_style_index_0_id_369c008a_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1252");
|
|
51502
|
+
/* harmony import */ var _core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_TaskNode_vue_vue_type_style_index_0_id_369c008a_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_core_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_core_node_modules_vue_loader_lib_loaders_stylePostLoader_js_core_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_core_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_core_node_modules_cache_loader_dist_cjs_js_ref_1_0_core_node_modules_vue_loader_lib_index_js_vue_loader_options_TaskNode_vue_vue_type_style_index_0_id_369c008a_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
51503
|
+
/* unused harmony reexport * */
|
|
51504
|
+
|
|
51505
|
+
|
|
51045
51506
|
/***/ }),
|
|
51046
51507
|
|
|
51047
51508
|
/***/ "b9aa":
|
|
@@ -57789,6 +58250,12 @@ function selection_arrayWithoutHoles(r) { if (Array.isArray(r)) return selection
|
|
|
57789
58250
|
function selection_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
57790
58251
|
/* harmony default export */ var selection = ({
|
|
57791
58252
|
props: {
|
|
58253
|
+
initialSelections: {
|
|
58254
|
+
type: Array,
|
|
58255
|
+
default: function _default() {
|
|
58256
|
+
return [];
|
|
58257
|
+
}
|
|
58258
|
+
},
|
|
57792
58259
|
pickerMode: {
|
|
57793
58260
|
type: String,
|
|
57794
58261
|
enum: ['single', 'multiple'],
|
|
@@ -57797,7 +58264,7 @@ function selection_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a =
|
|
|
57797
58264
|
},
|
|
57798
58265
|
data: function data() {
|
|
57799
58266
|
return {
|
|
57800
|
-
selections:
|
|
58267
|
+
selections: selection_toConsumableArray(this.initialSelections)
|
|
57801
58268
|
};
|
|
57802
58269
|
},
|
|
57803
58270
|
computed: {
|
|
@@ -57858,21 +58325,20 @@ function selection_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a =
|
|
|
57858
58325
|
return null;
|
|
57859
58326
|
};
|
|
57860
58327
|
if (this.mode === 'picker' && this.pickerMode === 'multiple') {
|
|
57861
|
-
|
|
58328
|
+
var currentIds = new Set(dataSource.map(function (item) {
|
|
58329
|
+
return item[idName];
|
|
58330
|
+
}));
|
|
58331
|
+
var selectedIds = new Set(rowKeys);
|
|
58332
|
+
this.selections = [].concat(selection_toConsumableArray(this.selections.filter(function (item) {
|
|
58333
|
+
return !currentIds.has(item[idName]);
|
|
58334
|
+
})), selection_toConsumableArray(rowKeys.filter(function (key) {
|
|
58335
|
+
return currentIds.has(key);
|
|
58336
|
+
}).map(function (key) {
|
|
57862
58337
|
return _find(dataSource, key);
|
|
57863
58338
|
}).filter(function (item) {
|
|
57864
58339
|
return item;
|
|
57865
|
-
})))
|
|
57866
|
-
|
|
57867
|
-
return JSON.stringify(item);
|
|
57868
|
-
}))).map(function (item) {
|
|
57869
|
-
return JSON.parse(item);
|
|
57870
|
-
});
|
|
57871
|
-
this.selections = this.selections.filter(function (item) {
|
|
57872
|
-
var index = rowKeys.findIndex(function (i) {
|
|
57873
|
-
return i === item[idName];
|
|
57874
|
-
});
|
|
57875
|
-
return index !== -1;
|
|
58340
|
+
}))).filter(function (item) {
|
|
58341
|
+
return selectedIds.has(item[idName]) || !currentIds.has(item[idName]);
|
|
57876
58342
|
});
|
|
57877
58343
|
} else {
|
|
57878
58344
|
this.selections = rowKeys.map(function (key) {
|
|
@@ -66897,7 +67363,7 @@ var WorkFlowDesignervue_type_template_id_7cc8451f_scoped_true_staticRenderFns =
|
|
|
66897
67363
|
|
|
66898
67364
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/WorkFlowDesigner.vue?vue&type=template&id=7cc8451f&scoped=true
|
|
66899
67365
|
|
|
66900
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/NodeContainer.vue +
|
|
67366
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/NodeContainer.vue + 96 modules
|
|
66901
67367
|
var NodeContainer = __webpack_require__("ad54");
|
|
66902
67368
|
|
|
66903
67369
|
// EXTERNAL MODULE: ../src/web/components/forms/flow/EadBusiness.js
|
|
@@ -66925,12 +67391,14 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
66925
67391
|
var _component = /*#__PURE__*/new WeakMap();
|
|
66926
67392
|
var _baseUrl = /*#__PURE__*/new WeakMap();
|
|
66927
67393
|
var _workflowUrl = /*#__PURE__*/new WeakMap();
|
|
67394
|
+
var _accountRequests = /*#__PURE__*/new WeakMap();
|
|
66928
67395
|
var EadApi = /*#__PURE__*/function () {
|
|
66929
67396
|
function EadApi(vueComponent) {
|
|
66930
67397
|
_classCallCheck(this, EadApi);
|
|
66931
67398
|
_classPrivateFieldInitSpec(this, _component, void 0);
|
|
66932
67399
|
_classPrivateFieldInitSpec(this, _baseUrl, void 0);
|
|
66933
67400
|
_classPrivateFieldInitSpec(this, _workflowUrl, void 0);
|
|
67401
|
+
_classPrivateFieldInitSpec(this, _accountRequests, new Map());
|
|
66934
67402
|
_classPrivateFieldSet(_component, this, vueComponent);
|
|
66935
67403
|
_classPrivateFieldSet(_baseUrl, this, window.location.origin + '/ead');
|
|
66936
67404
|
_classPrivateFieldSet(_workflowUrl, this, window.location.origin + '/workflow');
|
|
@@ -67128,6 +67596,30 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
67128
67596
|
}
|
|
67129
67597
|
return getUsers;
|
|
67130
67598
|
}()
|
|
67599
|
+
}, {
|
|
67600
|
+
key: "getAccountByUid",
|
|
67601
|
+
value: function getAccountByUid(uid) {
|
|
67602
|
+
var _this = this;
|
|
67603
|
+
if (!_classPrivateFieldGet(_accountRequests, this).has(uid)) {
|
|
67604
|
+
var request = _classPrivateFieldGet(_component, this).$api.get("".concat(_classPrivateFieldGet(_baseUrl, this), "/api/view-select-account/").concat(encodeURIComponent(uid))).then(function (_ref) {
|
|
67605
|
+
var _data$data;
|
|
67606
|
+
var data = _ref.data;
|
|
67607
|
+
var account = (data === null || data === void 0 ? void 0 : data.model) || (data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.model);
|
|
67608
|
+
return {
|
|
67609
|
+
value: uid,
|
|
67610
|
+
label: (account === null || account === void 0 ? void 0 : account.user_name) || (account === null || account === void 0 ? void 0 : account.name) || (account === null || account === void 0 ? void 0 : account.account) || uid
|
|
67611
|
+
};
|
|
67612
|
+
}).catch(function () {
|
|
67613
|
+
_classPrivateFieldGet(_accountRequests, _this).delete(uid);
|
|
67614
|
+
return {
|
|
67615
|
+
value: uid,
|
|
67616
|
+
label: uid
|
|
67617
|
+
};
|
|
67618
|
+
});
|
|
67619
|
+
_classPrivateFieldGet(_accountRequests, this).set(uid, request);
|
|
67620
|
+
}
|
|
67621
|
+
return _classPrivateFieldGet(_accountRequests, this).get(uid);
|
|
67622
|
+
}
|
|
67131
67623
|
}, {
|
|
67132
67624
|
key: "getRoles",
|
|
67133
67625
|
value: function () {
|
|
@@ -74844,13 +75336,6 @@ module.exports = {
|
|
|
74844
75336
|
|
|
74845
75337
|
/***/ }),
|
|
74846
75338
|
|
|
74847
|
-
/***/ "f063":
|
|
74848
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
74849
|
-
|
|
74850
|
-
// extracted by mini-css-extract-plugin
|
|
74851
|
-
|
|
74852
|
-
/***/ }),
|
|
74853
|
-
|
|
74854
75339
|
/***/ "f0b0":
|
|
74855
75340
|
/***/ (function(module, exports, __webpack_require__) {
|
|
74856
75341
|
|
|
@@ -77128,14 +77613,13 @@ var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
|
77128
77613
|
|
|
77129
77614
|
// CONCATENATED MODULE: ../src/core/utils/encrypt.js
|
|
77130
77615
|
function encrypt_typeof(o) { "@babel/helpers - typeof"; return encrypt_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; }, encrypt_typeof(o); }
|
|
77131
|
-
// import CryptoJS from 'crypto-js'
|
|
77132
77616
|
|
|
77133
77617
|
|
|
77134
77618
|
/**
|
|
77135
77619
|
* 加密配置来源于 EAD 应用配置中的 params(JSON),支持的字段:
|
|
77136
77620
|
* - cipherTransfer: 是否加密传输(true/false),原有开关
|
|
77137
|
-
* - cipherMethod: 加密方法,'
|
|
77138
|
-
* - cipherPublicKey: RSA 公钥(PEM 或 base64 均可,自动归一化),
|
|
77621
|
+
* - cipherMethod: 加密方法,'rsa'(默认,也是目前唯一支持的值;旧的 'aes' 因对称密钥硬编码在前端已下线)
|
|
77622
|
+
* - cipherPublicKey: RSA 公钥(PEM 或 base64 均可,自动归一化),rsa 时必填
|
|
77139
77623
|
* - cipherPadding: RSA 填充方式,'RSAES-PKCS1-V1_5'(默认)| 'RSA-OAEP'
|
|
77140
77624
|
* - cipherHash: RSA-OAEP 摘要算法,'sha256'(默认)| 'sha1'
|
|
77141
77625
|
*
|
|
@@ -77149,27 +77633,11 @@ function encrypt_typeof(o) { "@babel/helpers - typeof"; return encrypt_typeof =
|
|
|
77149
77633
|
* 否则直接用默认的 PKCS1 v1.5 对齐最稳妥。
|
|
77150
77634
|
*/
|
|
77151
77635
|
var DEFAULTS = {
|
|
77152
|
-
method: '
|
|
77636
|
+
method: 'rsa',
|
|
77153
77637
|
padding: 'RSAES-PKCS1-V1_5',
|
|
77154
77638
|
hash: 'sha256'
|
|
77155
77639
|
};
|
|
77156
77640
|
|
|
77157
|
-
// AES(原有实现保持不变:key/iv 为历史约定值,输出 hex)
|
|
77158
|
-
function encryptAES(text) {
|
|
77159
|
-
// var plaintText = CryptoJS.enc.Utf8.parse(text) // 明文
|
|
77160
|
-
// var keyStr = '1234123412ABCDEF' // 一般key为一个字符串
|
|
77161
|
-
// var ivStr = 'ABCDEF1234123412' // 偏移量
|
|
77162
|
-
// var key = CryptoJS.enc.Utf8.parse(keyStr)
|
|
77163
|
-
// var iv = CryptoJS.enc.Utf8.parse(ivStr)
|
|
77164
|
-
// var encryptedData = CryptoJS.AES.encrypt(plaintText, key, {
|
|
77165
|
-
// iv,
|
|
77166
|
-
// mode: CryptoJS.mode.CBC,
|
|
77167
|
-
// padding: CryptoJS.pad.Pkcs7
|
|
77168
|
-
// })
|
|
77169
|
-
// var encryptedStr = encryptedData.ciphertext.toString()
|
|
77170
|
-
return null; // 旧 AES 已废弃,返回 null 以便前端不再使用
|
|
77171
|
-
}
|
|
77172
|
-
|
|
77173
77641
|
// 归一化公钥:平台配置里常见的是裸 base64(DER 的 SubjectPublicKeyInfo,即 Java
|
|
77174
77642
|
// Base64.encode(publicKey.getEncoded()) 的产物),自动补 PEM 头尾;
|
|
77175
77643
|
// 已带 PEM 头(SPKI 或 PKCS#1)的原样返回
|
|
@@ -77226,16 +77694,6 @@ function encryptRSA(text, publicKey) {
|
|
|
77226
77694
|
return lib_default.a.util.encode64(encrypted);
|
|
77227
77695
|
}
|
|
77228
77696
|
|
|
77229
|
-
// 按方法分发加密,method 默认 aes
|
|
77230
|
-
function encryptByMethod(text) {
|
|
77231
|
-
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
77232
|
-
var method = String(config.method || DEFAULTS.method).toLowerCase();
|
|
77233
|
-
if (method === 'rsa') {
|
|
77234
|
-
return encryptRSA(text, config.publicKey, config);
|
|
77235
|
-
}
|
|
77236
|
-
return encryptAES(text);
|
|
77237
|
-
}
|
|
77238
|
-
|
|
77239
77697
|
// 解析应用 params:兼容 JSON 字符串(window.Rainbow 注入)与对象(接口返回)两种形态
|
|
77240
77698
|
function parseParams(params) {
|
|
77241
77699
|
if (!params) return {};
|
|
@@ -77247,22 +77705,19 @@ function parseParams(params) {
|
|
|
77247
77705
|
}
|
|
77248
77706
|
}
|
|
77249
77707
|
|
|
77250
|
-
//
|
|
77708
|
+
// 便捷入口:根据应用 params 加密;cipherTransfer 不为 true 时原样返回明文
|
|
77251
77709
|
function encryptWithParams(text, params) {
|
|
77252
77710
|
var p = parseParams(params);
|
|
77253
77711
|
if (!p.cipherTransfer) return text;
|
|
77254
|
-
|
|
77255
|
-
|
|
77256
|
-
|
|
77712
|
+
var method = String(p.cipherMethod || DEFAULTS.method).toLowerCase();
|
|
77713
|
+
if (method !== 'rsa') {
|
|
77714
|
+
throw new Error("\u4E0D\u652F\u6301\u7684\u52A0\u5BC6\u65B9\u5F0F\uFF08params.cipherMethod\uFF09\uFF1A".concat(p.cipherMethod, "\u3002AES \u56E0\u5BC6\u94A5\u786C\u7F16\u7801\u5728\u524D\u7AEF\u5DF2\u4E0B\u7EBF\uFF0C\u8BF7\u6539\u4E3A \"rsa\" \u5E76\u914D\u7F6E cipherPublicKey"));
|
|
77715
|
+
}
|
|
77716
|
+
return encryptRSA(text, p.cipherPublicKey, {
|
|
77257
77717
|
padding: p.cipherPadding,
|
|
77258
77718
|
hash: p.cipherHash
|
|
77259
77719
|
});
|
|
77260
77720
|
}
|
|
77261
|
-
|
|
77262
|
-
// 兼容旧调用:默认 AES
|
|
77263
|
-
function encrypt(text) {
|
|
77264
|
-
return encryptAES(text);
|
|
77265
|
-
}
|
|
77266
77721
|
// CONCATENATED MODULE: ../src/core/store/index.js
|
|
77267
77722
|
function store_typeof(o) { "@babel/helpers - typeof"; return store_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; }, store_typeof(o); }
|
|
77268
77723
|
function store_regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return store_regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (store_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, store_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, store_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), store_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", store_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), store_regeneratorDefine2(u), store_regeneratorDefine2(u, o, "Generator"), store_regeneratorDefine2(u, n, function () { return this; }), store_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (store_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|