@xatlas/rainbow-core 2.8.0 → 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 +827 -342
- package/dist/core.common.js.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.umd.js +827 -342
- 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.umd.js
CHANGED
|
@@ -670,6 +670,13 @@ var getters = ['schema', 'model', 'idName', 'nodeName', 'parentIdName', 'titleSc
|
|
|
670
670
|
|
|
671
671
|
/***/ }),
|
|
672
672
|
|
|
673
|
+
/***/ "1252":
|
|
674
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
675
|
+
|
|
676
|
+
// extracted by mini-css-extract-plugin
|
|
677
|
+
|
|
678
|
+
/***/ }),
|
|
679
|
+
|
|
673
680
|
/***/ "1385":
|
|
674
681
|
/***/ (function(module, exports, __webpack_require__) {
|
|
675
682
|
|
|
@@ -948,14 +955,14 @@ var NodeItem = /*#__PURE__*/function () {
|
|
|
948
955
|
|
|
949
956
|
/***/ }),
|
|
950
957
|
|
|
951
|
-
/***/ "
|
|
958
|
+
/***/ "191d":
|
|
952
959
|
/***/ (function(module, exports, __webpack_require__) {
|
|
953
960
|
|
|
954
961
|
// extracted by mini-css-extract-plugin
|
|
955
962
|
|
|
956
963
|
/***/ }),
|
|
957
964
|
|
|
958
|
-
/***/ "
|
|
965
|
+
/***/ "1cd9":
|
|
959
966
|
/***/ (function(module, exports, __webpack_require__) {
|
|
960
967
|
|
|
961
968
|
// extracted by mini-css-extract-plugin
|
|
@@ -1315,13 +1322,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__289a__;
|
|
|
1315
1322
|
|
|
1316
1323
|
/***/ }),
|
|
1317
1324
|
|
|
1318
|
-
/***/ "2ab7":
|
|
1319
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1320
|
-
|
|
1321
|
-
// extracted by mini-css-extract-plugin
|
|
1322
|
-
|
|
1323
|
-
/***/ }),
|
|
1324
|
-
|
|
1325
1325
|
/***/ "2f4d":
|
|
1326
1326
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1327
1327
|
|
|
@@ -2015,7 +2015,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
2015
2015
|
|
|
2016
2016
|
"use strict";
|
|
2017
2017
|
|
|
2018
|
-
// 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=
|
|
2018
|
+
// 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
|
|
2019
2019
|
var render = function render() {
|
|
2020
2020
|
var _vm = this,
|
|
2021
2021
|
_c = _vm._self._c;
|
|
@@ -2049,6 +2049,7 @@ var render = function render() {
|
|
|
2049
2049
|
"viewKey": _vm.viewKey,
|
|
2050
2050
|
"isViewselection": true,
|
|
2051
2051
|
"pickerMode": _vm.pickerMode,
|
|
2052
|
+
"initialSelections": _vm.initialSelections,
|
|
2052
2053
|
"mode": _vm.mode,
|
|
2053
2054
|
"layout": "layout-view-model-list-embed"
|
|
2054
2055
|
},
|
|
@@ -2059,7 +2060,7 @@ var render = function render() {
|
|
|
2059
2060
|
};
|
|
2060
2061
|
var staticRenderFns = [];
|
|
2061
2062
|
|
|
2062
|
-
// CONCATENATED MODULE: ../src/web/components/views/Picker.vue?vue&type=template&id=
|
|
2063
|
+
// CONCATENATED MODULE: ../src/web/components/views/Picker.vue?vue&type=template&id=f263e156
|
|
2063
2064
|
|
|
2064
2065
|
// CONCATENATED MODULE: ../src/core/view/picker.js
|
|
2065
2066
|
/* harmony default export */ var picker = ({
|
|
@@ -2089,16 +2090,16 @@ var views = __webpack_require__("c246");
|
|
|
2089
2090
|
|
|
2090
2091
|
// 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
|
|
2091
2092
|
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); }
|
|
2093
|
+
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 }; })(); }
|
|
2094
|
+
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); }
|
|
2095
|
+
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); }
|
|
2096
|
+
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); }); }; }
|
|
2092
2097
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2093
2098
|
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."); }
|
|
2094
2099
|
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; } }
|
|
2095
2100
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
2096
2101
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
2097
2102
|
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; }
|
|
2098
|
-
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 }; })(); }
|
|
2099
|
-
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); }
|
|
2100
|
-
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); }
|
|
2101
|
-
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); }); }; }
|
|
2102
2103
|
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; }
|
|
2103
2104
|
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; }
|
|
2104
2105
|
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; }
|
|
@@ -2110,6 +2111,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
2110
2111
|
|
|
2111
2112
|
/* harmony default export */ var Pickervue_type_script_lang_js = ({
|
|
2112
2113
|
mixins: [picker],
|
|
2114
|
+
props: {
|
|
2115
|
+
initialSelections: {
|
|
2116
|
+
type: Array,
|
|
2117
|
+
default: function _default() {
|
|
2118
|
+
return [];
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2113
2122
|
components: _objectSpread({}, views["a" /* default */]),
|
|
2114
2123
|
data: function data() {
|
|
2115
2124
|
return {
|
|
@@ -2117,7 +2126,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
2117
2126
|
viewKey: null,
|
|
2118
2127
|
storeNamespace: null,
|
|
2119
2128
|
loading: true,
|
|
2120
|
-
selections:
|
|
2129
|
+
selections: _toConsumableArray(this.initialSelections),
|
|
2121
2130
|
idName: '',
|
|
2122
2131
|
titleName: ''
|
|
2123
2132
|
};
|
|
@@ -2160,7 +2169,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
2160
2169
|
_this.viewKey = viewKey;
|
|
2161
2170
|
_this.storeNamespace = "v-".concat(viewKey);
|
|
2162
2171
|
_this.loading = false;
|
|
2172
|
+
_context.n = 2;
|
|
2173
|
+
return _this.$nextTick();
|
|
2163
2174
|
case 2:
|
|
2175
|
+
if (_this.$refs.view) {
|
|
2176
|
+
_this.idName = _this.$refs.view.idName;
|
|
2177
|
+
_this.titleName = _this.$refs.view.titleName;
|
|
2178
|
+
}
|
|
2179
|
+
case 3:
|
|
2164
2180
|
return _context.a(2);
|
|
2165
2181
|
}
|
|
2166
2182
|
}, _callee);
|
|
@@ -2183,6 +2199,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
2183
2199
|
return i[idName] === item[idName];
|
|
2184
2200
|
});
|
|
2185
2201
|
index !== -1 && selections.splice(index, 1);
|
|
2202
|
+
if (this.$refs.view) {
|
|
2203
|
+
this.$refs.view.selections = _toConsumableArray(selections);
|
|
2204
|
+
}
|
|
2186
2205
|
this.$emit('selected', selections);
|
|
2187
2206
|
}
|
|
2188
2207
|
}
|
|
@@ -2261,6 +2280,13 @@ exports.uvCounters = function() {};
|
|
|
2261
2280
|
exports.features = {};
|
|
2262
2281
|
|
|
2263
2282
|
|
|
2283
|
+
/***/ }),
|
|
2284
|
+
|
|
2285
|
+
/***/ "4380":
|
|
2286
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2287
|
+
|
|
2288
|
+
// extracted by mini-css-extract-plugin
|
|
2289
|
+
|
|
2264
2290
|
/***/ }),
|
|
2265
2291
|
|
|
2266
2292
|
/***/ "463b":
|
|
@@ -6778,17 +6804,6 @@ p7v.recipientInfoValidator = {
|
|
|
6778
6804
|
};
|
|
6779
6805
|
|
|
6780
6806
|
|
|
6781
|
-
/***/ }),
|
|
6782
|
-
|
|
6783
|
-
/***/ "7409":
|
|
6784
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6785
|
-
|
|
6786
|
-
"use strict";
|
|
6787
|
-
/* 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");
|
|
6788
|
-
/* 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__);
|
|
6789
|
-
/* unused harmony reexport * */
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
6807
|
/***/ }),
|
|
6793
6808
|
|
|
6794
6809
|
/***/ "7583":
|
|
@@ -27611,6 +27626,17 @@ function _update(s, w, bytes) {
|
|
|
27611
27626
|
}
|
|
27612
27627
|
|
|
27613
27628
|
|
|
27629
|
+
/***/ }),
|
|
27630
|
+
|
|
27631
|
+
/***/ "874c":
|
|
27632
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27633
|
+
|
|
27634
|
+
"use strict";
|
|
27635
|
+
/* 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");
|
|
27636
|
+
/* 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__);
|
|
27637
|
+
/* unused harmony reexport * */
|
|
27638
|
+
|
|
27639
|
+
|
|
27614
27640
|
/***/ }),
|
|
27615
27641
|
|
|
27616
27642
|
/***/ "877c":
|
|
@@ -27853,17 +27879,6 @@ var api = {
|
|
|
27853
27879
|
/* unused harmony reexport * */
|
|
27854
27880
|
|
|
27855
27881
|
|
|
27856
|
-
/***/ }),
|
|
27857
|
-
|
|
27858
|
-
/***/ "8cba":
|
|
27859
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27860
|
-
|
|
27861
|
-
"use strict";
|
|
27862
|
-
/* 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");
|
|
27863
|
-
/* 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__);
|
|
27864
|
-
/* unused harmony reexport * */
|
|
27865
|
-
|
|
27866
|
-
|
|
27867
27882
|
/***/ }),
|
|
27868
27883
|
|
|
27869
27884
|
/***/ "8d14":
|
|
@@ -29164,17 +29179,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
29164
29179
|
}
|
|
29165
29180
|
|
|
29166
29181
|
|
|
29167
|
-
/***/ }),
|
|
29168
|
-
|
|
29169
|
-
/***/ "96e5":
|
|
29170
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29171
|
-
|
|
29172
|
-
"use strict";
|
|
29173
|
-
/* 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");
|
|
29174
|
-
/* 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__);
|
|
29175
|
-
/* unused harmony reexport * */
|
|
29176
|
-
|
|
29177
|
-
|
|
29178
29182
|
/***/ }),
|
|
29179
29183
|
|
|
29180
29184
|
/***/ "9897":
|
|
@@ -29551,7 +29555,7 @@ var EadBusiness = /*#__PURE__*/function (_BusinessAdapter) {
|
|
|
29551
29555
|
});
|
|
29552
29556
|
case 2:
|
|
29553
29557
|
_context2.n = 3;
|
|
29554
|
-
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.
|
|
29558
|
+
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)]);
|
|
29555
29559
|
case 3:
|
|
29556
29560
|
promise = _context2.v;
|
|
29557
29561
|
viewAttrs = promise[0];
|
|
@@ -29562,15 +29566,8 @@ var EadBusiness = /*#__PURE__*/function (_BusinessAdapter) {
|
|
|
29562
29566
|
label: role.role_name
|
|
29563
29567
|
};
|
|
29564
29568
|
});
|
|
29565
|
-
users =
|
|
29566
|
-
|
|
29567
|
-
value: user.uid,
|
|
29568
|
-
label: user.name,
|
|
29569
|
-
title: user.name,
|
|
29570
|
-
key: user.name
|
|
29571
|
-
};
|
|
29572
|
-
});
|
|
29573
|
-
viewAttrsSchema = (_promise$ = promise[4]) === null || _promise$ === void 0 ? void 0 : _promise$.model.attrs;
|
|
29569
|
+
users = [];
|
|
29570
|
+
viewAttrsSchema = (_promise$ = promise[3]) === null || _promise$ === void 0 ? void 0 : _promise$.model.attrs;
|
|
29574
29571
|
orgMap = new Map();
|
|
29575
29572
|
orgParentMap = new Map();
|
|
29576
29573
|
orgs.forEach(function (org) {
|
|
@@ -35349,6 +35346,17 @@ function _createCipher(options) {
|
|
|
35349
35346
|
|
|
35350
35347
|
// extracted by mini-css-extract-plugin
|
|
35351
35348
|
|
|
35349
|
+
/***/ }),
|
|
35350
|
+
|
|
35351
|
+
/***/ "aa8a":
|
|
35352
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
35353
|
+
|
|
35354
|
+
"use strict";
|
|
35355
|
+
/* 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");
|
|
35356
|
+
/* 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__);
|
|
35357
|
+
/* unused harmony reexport * */
|
|
35358
|
+
|
|
35359
|
+
|
|
35352
35360
|
/***/ }),
|
|
35353
35361
|
|
|
35354
35362
|
/***/ "ad54":
|
|
@@ -38283,14 +38291,14 @@ var ParallelWrapNode_component = Object(componentNormalizer["a" /* default */])(
|
|
|
38283
38291
|
)
|
|
38284
38292
|
|
|
38285
38293
|
/* harmony default export */ var ParallelWrapNode = (ParallelWrapNode_component.exports);
|
|
38286
|
-
// 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=
|
|
38287
|
-
function
|
|
38288
|
-
function
|
|
38289
|
-
function
|
|
38290
|
-
function
|
|
38291
|
-
function
|
|
38292
|
-
function
|
|
38293
|
-
var
|
|
38294
|
+
// 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
|
|
38295
|
+
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(); }
|
|
38296
|
+
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."); }
|
|
38297
|
+
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; } }
|
|
38298
|
+
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); }
|
|
38299
|
+
function CheckNodevue_type_template_id_4c0a9357_scoped_true_arrayWithoutHoles(r) { if (Array.isArray(r)) return CheckNodevue_type_template_id_4c0a9357_scoped_true_arrayLikeToArray(r); }
|
|
38300
|
+
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; }
|
|
38301
|
+
var CheckNodevue_type_template_id_4c0a9357_scoped_true_render = function render() {
|
|
38294
38302
|
var _vm$nodeHandler, _vm$nodeHandler2, _vm$nodeRef, _vm$nodeRef2, _vm$nodeRef3, _vm$nodeHandler3, _vm$noticeTemplateAtt;
|
|
38295
38303
|
var _vm = this,
|
|
38296
38304
|
_c = _vm._self._c;
|
|
@@ -38718,15 +38726,13 @@ var CheckNodevue_type_template_id_b65a71f8_scoped_true_render = function render(
|
|
|
38718
38726
|
attrs: {
|
|
38719
38727
|
"span": "18"
|
|
38720
38728
|
}
|
|
38721
|
-
}, [_c('div', [_c('
|
|
38722
|
-
staticStyle: {
|
|
38723
|
-
"width": "100%"
|
|
38724
|
-
},
|
|
38729
|
+
}, [_c('div', [_c('ActorUserPicker', {
|
|
38725
38730
|
attrs: {
|
|
38726
|
-
"
|
|
38727
|
-
"
|
|
38728
|
-
|
|
38729
|
-
|
|
38731
|
+
"business-options": _vm.businessUserData,
|
|
38732
|
+
"ead-api": _vm.eadApi
|
|
38733
|
+
},
|
|
38734
|
+
on: {
|
|
38735
|
+
"users": _vm.mergeActorUsers
|
|
38730
38736
|
},
|
|
38731
38737
|
model: {
|
|
38732
38738
|
value: item.user,
|
|
@@ -38752,7 +38758,7 @@ var CheckNodevue_type_template_id_b65a71f8_scoped_true_render = function render(
|
|
|
38752
38758
|
maxHeight: '400px',
|
|
38753
38759
|
overflow: 'auto'
|
|
38754
38760
|
},
|
|
38755
|
-
"tree-data": [_vm.businessOrgData].concat(
|
|
38761
|
+
"tree-data": [_vm.businessOrgData].concat(CheckNodevue_type_template_id_4c0a9357_scoped_true_toConsumableArray(_vm.orgData)),
|
|
38756
38762
|
"allowClear": "",
|
|
38757
38763
|
"placeholder": "部门",
|
|
38758
38764
|
"tree-default-expand-all": ""
|
|
@@ -39917,19 +39923,311 @@ var CheckNodevue_type_template_id_b65a71f8_scoped_true_render = function render(
|
|
|
39917
39923
|
}
|
|
39918
39924
|
}) : _vm._e()], 1)]) : _vm._e()], 1)], 1) : _vm._e()], 1);
|
|
39919
39925
|
};
|
|
39920
|
-
var
|
|
39926
|
+
var CheckNodevue_type_template_id_4c0a9357_scoped_true_staticRenderFns = [];
|
|
39921
39927
|
|
|
39922
|
-
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=template&id=
|
|
39928
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=template&id=4c0a9357&scoped=true
|
|
39923
39929
|
|
|
39930
|
+
// 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
|
|
39931
|
+
var ActorUserPickervue_type_template_id_8c318e62_render = function render() {
|
|
39932
|
+
var _vm = this,
|
|
39933
|
+
_c = _vm._self._c;
|
|
39934
|
+
return _c('div', [_vm._l(_vm.value, function (uid) {
|
|
39935
|
+
return _c('a-tag', {
|
|
39936
|
+
key: uid,
|
|
39937
|
+
attrs: {
|
|
39938
|
+
"closable": ""
|
|
39939
|
+
},
|
|
39940
|
+
on: {
|
|
39941
|
+
"close": function close($event) {
|
|
39942
|
+
$event.preventDefault();
|
|
39943
|
+
return _vm.remove(uid);
|
|
39944
|
+
}
|
|
39945
|
+
}
|
|
39946
|
+
}, [_vm._v(" " + _vm._s(_vm.labelFor(uid)) + " ")]);
|
|
39947
|
+
}), _c('a-button', {
|
|
39948
|
+
attrs: {
|
|
39949
|
+
"size": "small",
|
|
39950
|
+
"icon": "user-add"
|
|
39951
|
+
},
|
|
39952
|
+
on: {
|
|
39953
|
+
"click": _vm.open
|
|
39954
|
+
}
|
|
39955
|
+
}, [_vm._v("选择人")]), _c('a-modal', {
|
|
39956
|
+
attrs: {
|
|
39957
|
+
"title": "选择人",
|
|
39958
|
+
"width": "900px"
|
|
39959
|
+
},
|
|
39960
|
+
on: {
|
|
39961
|
+
"ok": _vm.confirm,
|
|
39962
|
+
"cancel": _vm.cancel
|
|
39963
|
+
},
|
|
39964
|
+
model: {
|
|
39965
|
+
value: _vm.visible,
|
|
39966
|
+
callback: function callback($$v) {
|
|
39967
|
+
_vm.visible = $$v;
|
|
39968
|
+
},
|
|
39969
|
+
expression: "visible"
|
|
39970
|
+
}
|
|
39971
|
+
}, [_c('a-select', {
|
|
39972
|
+
staticStyle: {
|
|
39973
|
+
"width": "100%",
|
|
39974
|
+
"margin-bottom": "12px"
|
|
39975
|
+
},
|
|
39976
|
+
attrs: {
|
|
39977
|
+
"options": _vm.specialOptions,
|
|
39978
|
+
"mode": "multiple",
|
|
39979
|
+
"placeholder": "发起人或表单字段"
|
|
39980
|
+
},
|
|
39981
|
+
model: {
|
|
39982
|
+
value: _vm.specialValues,
|
|
39983
|
+
callback: function callback($$v) {
|
|
39984
|
+
_vm.specialValues = $$v;
|
|
39985
|
+
},
|
|
39986
|
+
expression: "specialValues"
|
|
39987
|
+
}
|
|
39988
|
+
}), _vm.visible ? _c('Picker', {
|
|
39989
|
+
attrs: {
|
|
39990
|
+
"schema": _vm.pickerSchema,
|
|
39991
|
+
"initial-selections": _vm.initialSelections,
|
|
39992
|
+
"params": {
|
|
39993
|
+
filters: {},
|
|
39994
|
+
route: {
|
|
39995
|
+
query: {
|
|
39996
|
+
close: true
|
|
39997
|
+
}
|
|
39998
|
+
}
|
|
39999
|
+
},
|
|
40000
|
+
"picker-mode": "multiple",
|
|
40001
|
+
"mode": "picker"
|
|
40002
|
+
},
|
|
40003
|
+
on: {
|
|
40004
|
+
"selected": _vm.handleSelected
|
|
40005
|
+
}
|
|
40006
|
+
}) : _vm._e()], 1)], 2);
|
|
40007
|
+
};
|
|
40008
|
+
var ActorUserPickervue_type_template_id_8c318e62_staticRenderFns = [];
|
|
40009
|
+
|
|
40010
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/ActorUserPicker.vue?vue&type=template&id=8c318e62
|
|
40011
|
+
|
|
40012
|
+
// EXTERNAL MODULE: ../src/web/components/views/Picker.vue + 5 modules
|
|
40013
|
+
var Picker = __webpack_require__("3d8a");
|
|
40014
|
+
|
|
40015
|
+
// 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
|
|
40016
|
+
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 }; })(); }
|
|
40017
|
+
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); }
|
|
40018
|
+
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); }
|
|
40019
|
+
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); }); }; }
|
|
40020
|
+
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(); }
|
|
40021
|
+
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."); }
|
|
40022
|
+
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; } }
|
|
40023
|
+
function ActorUserPickervue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
40024
|
+
function ActorUserPickervue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return ActorUserPickervue_type_script_lang_js_arrayLikeToArray(r); }
|
|
40025
|
+
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; }
|
|
40026
|
+
|
|
40027
|
+
var accountCache = new Map();
|
|
40028
|
+
/* harmony default export */ var ActorUserPickervue_type_script_lang_js = ({
|
|
40029
|
+
name: 'ActorUserPicker',
|
|
40030
|
+
components: {
|
|
40031
|
+
Picker: Picker["a" /* default */]
|
|
40032
|
+
},
|
|
40033
|
+
props: {
|
|
40034
|
+
value: {
|
|
40035
|
+
type: Array,
|
|
40036
|
+
default: function _default() {
|
|
40037
|
+
return [];
|
|
40038
|
+
}
|
|
40039
|
+
},
|
|
40040
|
+
businessOptions: {
|
|
40041
|
+
type: Array,
|
|
40042
|
+
default: function _default() {
|
|
40043
|
+
return [];
|
|
40044
|
+
}
|
|
40045
|
+
},
|
|
40046
|
+
eadApi: {
|
|
40047
|
+
type: Object,
|
|
40048
|
+
required: true
|
|
40049
|
+
}
|
|
40050
|
+
},
|
|
40051
|
+
data: function data() {
|
|
40052
|
+
return {
|
|
40053
|
+
visible: false,
|
|
40054
|
+
accountLabels: {},
|
|
40055
|
+
specialValues: [],
|
|
40056
|
+
selectedAccounts: [],
|
|
40057
|
+
pickerSchema: {
|
|
40058
|
+
configs: [{
|
|
40059
|
+
key: 'picker.view',
|
|
40060
|
+
value: 'view-select-account'
|
|
40061
|
+
}]
|
|
40062
|
+
}
|
|
40063
|
+
};
|
|
40064
|
+
},
|
|
40065
|
+
computed: {
|
|
40066
|
+
specialOptions: function specialOptions() {
|
|
40067
|
+
return [{
|
|
40068
|
+
value: '$' + '{sponsor}',
|
|
40069
|
+
label: '发起人'
|
|
40070
|
+
}].concat(ActorUserPickervue_type_script_lang_js_toConsumableArray(this.businessOptions));
|
|
40071
|
+
},
|
|
40072
|
+
initialSelections: function initialSelections() {
|
|
40073
|
+
var _this = this;
|
|
40074
|
+
return this.value.filter(function (uid) {
|
|
40075
|
+
return !_this.isSpecial(uid);
|
|
40076
|
+
}).map(function (uid) {
|
|
40077
|
+
return {
|
|
40078
|
+
uid: uid,
|
|
40079
|
+
user_name: _this.labelFor(uid),
|
|
40080
|
+
account: _this.labelFor(uid)
|
|
40081
|
+
};
|
|
40082
|
+
});
|
|
40083
|
+
}
|
|
40084
|
+
},
|
|
40085
|
+
watch: {
|
|
40086
|
+
value: {
|
|
40087
|
+
immediate: true,
|
|
40088
|
+
handler: function handler() {
|
|
40089
|
+
this.loadLabels();
|
|
40090
|
+
}
|
|
40091
|
+
}
|
|
40092
|
+
},
|
|
40093
|
+
methods: {
|
|
40094
|
+
isSpecial: function isSpecial(uid) {
|
|
40095
|
+
return this.specialOptions.some(function (option) {
|
|
40096
|
+
return option.value === uid;
|
|
40097
|
+
}) || String(uid).startsWith('$' + '{');
|
|
40098
|
+
},
|
|
40099
|
+
labelFor: function labelFor(uid) {
|
|
40100
|
+
var _accountCache$get;
|
|
40101
|
+
var special = this.specialOptions.find(function (option) {
|
|
40102
|
+
return option.value === uid;
|
|
40103
|
+
});
|
|
40104
|
+
return special ? special.label : this.accountLabels[uid] || ((_accountCache$get = accountCache.get(uid)) === null || _accountCache$get === void 0 ? void 0 : _accountCache$get.user_name) || uid;
|
|
40105
|
+
},
|
|
40106
|
+
publishLabels: function publishLabels() {
|
|
40107
|
+
var _this2 = this;
|
|
40108
|
+
this.$emit('users', this.value.filter(function (uid) {
|
|
40109
|
+
return !_this2.isSpecial(uid);
|
|
40110
|
+
}).map(function (uid) {
|
|
40111
|
+
return {
|
|
40112
|
+
value: uid,
|
|
40113
|
+
label: _this2.labelFor(uid)
|
|
40114
|
+
};
|
|
40115
|
+
}));
|
|
40116
|
+
},
|
|
40117
|
+
loadLabels: function loadLabels() {
|
|
40118
|
+
var _this3 = this;
|
|
40119
|
+
return ActorUserPickervue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/ActorUserPickervue_type_script_lang_js_regenerator().m(function _callee2() {
|
|
40120
|
+
var ids;
|
|
40121
|
+
return ActorUserPickervue_type_script_lang_js_regenerator().w(function (_context2) {
|
|
40122
|
+
while (1) switch (_context2.n) {
|
|
40123
|
+
case 0:
|
|
40124
|
+
_this3.value.forEach(function (uid) {
|
|
40125
|
+
if (accountCache.has(uid)) _this3.$set(_this3.accountLabels, uid, accountCache.get(uid).user_name);
|
|
40126
|
+
});
|
|
40127
|
+
ids = _this3.value.filter(function (uid) {
|
|
40128
|
+
return !_this3.isSpecial(uid) && !accountCache.has(uid);
|
|
40129
|
+
});
|
|
40130
|
+
_context2.n = 1;
|
|
40131
|
+
return Promise.all(ids.map(/*#__PURE__*/function () {
|
|
40132
|
+
var _ref = ActorUserPickervue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/ActorUserPickervue_type_script_lang_js_regenerator().m(function _callee(uid) {
|
|
40133
|
+
var user;
|
|
40134
|
+
return ActorUserPickervue_type_script_lang_js_regenerator().w(function (_context) {
|
|
40135
|
+
while (1) switch (_context.n) {
|
|
40136
|
+
case 0:
|
|
40137
|
+
_context.n = 1;
|
|
40138
|
+
return _this3.eadApi.getAccountByUid(uid);
|
|
40139
|
+
case 1:
|
|
40140
|
+
user = _context.v;
|
|
40141
|
+
accountCache.set(uid, {
|
|
40142
|
+
uid: uid,
|
|
40143
|
+
user_name: user.label
|
|
40144
|
+
});
|
|
40145
|
+
_this3.$set(_this3.accountLabels, uid, user.label);
|
|
40146
|
+
case 2:
|
|
40147
|
+
return _context.a(2);
|
|
40148
|
+
}
|
|
40149
|
+
}, _callee);
|
|
40150
|
+
}));
|
|
40151
|
+
return function (_x) {
|
|
40152
|
+
return _ref.apply(this, arguments);
|
|
40153
|
+
};
|
|
40154
|
+
}()));
|
|
40155
|
+
case 1:
|
|
40156
|
+
_this3.publishLabels();
|
|
40157
|
+
case 2:
|
|
40158
|
+
return _context2.a(2);
|
|
40159
|
+
}
|
|
40160
|
+
}, _callee2);
|
|
40161
|
+
}))();
|
|
40162
|
+
},
|
|
40163
|
+
open: function open() {
|
|
40164
|
+
this.specialValues = this.value.filter(this.isSpecial);
|
|
40165
|
+
this.selectedAccounts = this.initialSelections;
|
|
40166
|
+
this.visible = true;
|
|
40167
|
+
},
|
|
40168
|
+
handleSelected: function handleSelected(accounts) {
|
|
40169
|
+
this.selectedAccounts = accounts;
|
|
40170
|
+
},
|
|
40171
|
+
confirm: function confirm() {
|
|
40172
|
+
var _this4 = this;
|
|
40173
|
+
this.selectedAccounts.forEach(function (account) {
|
|
40174
|
+
if (!accountCache.has(account.uid) || account.user_name !== account.uid) {
|
|
40175
|
+
accountCache.set(account.uid, account);
|
|
40176
|
+
}
|
|
40177
|
+
_this4.$set(_this4.accountLabels, account.uid, accountCache.get(account.uid).user_name);
|
|
40178
|
+
});
|
|
40179
|
+
this.$emit('input', [].concat(ActorUserPickervue_type_script_lang_js_toConsumableArray(this.specialValues), ActorUserPickervue_type_script_lang_js_toConsumableArray(this.selectedAccounts.map(function (account) {
|
|
40180
|
+
return account.uid;
|
|
40181
|
+
}))));
|
|
40182
|
+
this.visible = false;
|
|
40183
|
+
this.$nextTick(this.publishLabels);
|
|
40184
|
+
},
|
|
40185
|
+
cancel: function cancel() {
|
|
40186
|
+
this.visible = false;
|
|
40187
|
+
},
|
|
40188
|
+
remove: function remove(uid) {
|
|
40189
|
+
this.$emit('input', this.value.filter(function (value) {
|
|
40190
|
+
return value !== uid;
|
|
40191
|
+
}));
|
|
40192
|
+
this.$nextTick(this.publishLabels);
|
|
40193
|
+
}
|
|
40194
|
+
}
|
|
40195
|
+
});
|
|
40196
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/ActorUserPicker.vue?vue&type=script&lang=js
|
|
40197
|
+
/* harmony default export */ var node_ActorUserPickervue_type_script_lang_js = (ActorUserPickervue_type_script_lang_js);
|
|
40198
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/ActorUserPicker.vue
|
|
40199
|
+
|
|
40200
|
+
|
|
40201
|
+
|
|
40202
|
+
|
|
40203
|
+
|
|
40204
|
+
/* normalize component */
|
|
40205
|
+
|
|
40206
|
+
var ActorUserPicker_component = Object(componentNormalizer["a" /* default */])(
|
|
40207
|
+
node_ActorUserPickervue_type_script_lang_js,
|
|
40208
|
+
ActorUserPickervue_type_template_id_8c318e62_render,
|
|
40209
|
+
ActorUserPickervue_type_template_id_8c318e62_staticRenderFns,
|
|
40210
|
+
false,
|
|
40211
|
+
null,
|
|
40212
|
+
null,
|
|
40213
|
+
null
|
|
40214
|
+
|
|
40215
|
+
)
|
|
40216
|
+
|
|
40217
|
+
/* harmony default export */ var ActorUserPicker = (ActorUserPicker_component.exports);
|
|
39924
40218
|
// 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
|
|
39925
40219
|
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); }
|
|
39926
40220
|
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"); }
|
|
40221
|
+
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; } } }; }
|
|
39927
40222
|
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 }; })(); }
|
|
39928
40223
|
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); }
|
|
39929
40224
|
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); }
|
|
39930
40225
|
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); }); }; }
|
|
39931
|
-
function
|
|
40226
|
+
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(); }
|
|
40227
|
+
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."); }
|
|
39932
40228
|
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; } }
|
|
40229
|
+
function CheckNodevue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
40230
|
+
function CheckNodevue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return CheckNodevue_type_script_lang_js_arrayLikeToArray(r); }
|
|
39933
40231
|
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; }
|
|
39934
40232
|
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; }
|
|
39935
40233
|
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; }
|
|
@@ -39942,6 +40240,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
39942
40240
|
|
|
39943
40241
|
|
|
39944
40242
|
|
|
40243
|
+
|
|
39945
40244
|
/* harmony default export */ var CheckNodevue_type_script_lang_js = ({
|
|
39946
40245
|
name: 'CheckNode',
|
|
39947
40246
|
props: {
|
|
@@ -39951,7 +40250,8 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
39951
40250
|
components: {
|
|
39952
40251
|
AssertDesigner: AssertDesigner,
|
|
39953
40252
|
RuntimeWorkflowActors: RuntimeWorkFlowActors,
|
|
39954
|
-
Item: Item["a" /* default */]
|
|
40253
|
+
Item: Item["a" /* default */],
|
|
40254
|
+
ActorUserPicker: ActorUserPicker
|
|
39955
40255
|
},
|
|
39956
40256
|
data: function data() {
|
|
39957
40257
|
return {
|
|
@@ -40010,6 +40310,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40010
40310
|
orgData: [],
|
|
40011
40311
|
roles: [],
|
|
40012
40312
|
users: [],
|
|
40313
|
+
actorNamesReady: false,
|
|
40013
40314
|
viewNameTimeout: null,
|
|
40014
40315
|
viewAttrLoading: true,
|
|
40015
40316
|
driverList: null,
|
|
@@ -40269,16 +40570,16 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40269
40570
|
}
|
|
40270
40571
|
}
|
|
40271
40572
|
if (expression[0].type === 'uid') {
|
|
40272
|
-
|
|
40273
|
-
return user.value;
|
|
40274
|
-
});
|
|
40573
|
+
if (!this.actorNamesReady) return '加载人员…';
|
|
40275
40574
|
content = expression[0].user.map(function (item) {
|
|
40276
|
-
var
|
|
40575
|
+
var _this$businessUserDat, _this$users$find;
|
|
40576
|
+
var label = ((_this$businessUserDat = _this.businessUserData.find(function (user) {
|
|
40277
40577
|
return user.value === item;
|
|
40278
|
-
}).label
|
|
40578
|
+
})) === null || _this$businessUserDat === void 0 ? void 0 : _this$businessUserDat.label) || ((_this$users$find = _this.users.find(function (user) {
|
|
40279
40579
|
return user.value === item;
|
|
40280
|
-
}).label;
|
|
40281
|
-
|
|
40580
|
+
})) === null || _this$users$find === void 0 ? void 0 : _this$users$find.label) || (item === '$' + '{sponsor}' ? '发起人' : item);
|
|
40581
|
+
var index = label.indexOf('(');
|
|
40582
|
+
return index === -1 ? label : label.substring(0, index);
|
|
40282
40583
|
}).join('、');
|
|
40283
40584
|
}
|
|
40284
40585
|
}
|
|
@@ -40348,11 +40649,55 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40348
40649
|
}
|
|
40349
40650
|
},
|
|
40350
40651
|
methods: {
|
|
40351
|
-
|
|
40652
|
+
mergeActorUsers: function mergeActorUsers(selected) {
|
|
40653
|
+
var users = new Map(this.users.map(function (user) {
|
|
40654
|
+
return [user.value, user];
|
|
40655
|
+
}));
|
|
40656
|
+
selected.forEach(function (user) {
|
|
40657
|
+
return users.set(user.value, user);
|
|
40658
|
+
});
|
|
40659
|
+
this.users = CheckNodevue_type_script_lang_js_toConsumableArray(users.values());
|
|
40660
|
+
},
|
|
40661
|
+
loadActorUserNames: function loadActorUserNames() {
|
|
40352
40662
|
var _this2 = this;
|
|
40663
|
+
return CheckNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CheckNodevue_type_script_lang_js_regenerator().m(function _callee() {
|
|
40664
|
+
var _this2$nodeRef$data$a;
|
|
40665
|
+
var expressions, ids, _t;
|
|
40666
|
+
return CheckNodevue_type_script_lang_js_regenerator().w(function (_context) {
|
|
40667
|
+
while (1) switch (_context.n) {
|
|
40668
|
+
case 0:
|
|
40669
|
+
expressions = ((_this2$nodeRef$data$a = _this2.nodeRef.data.actor_config) === null || _this2$nodeRef$data$a === void 0 ? void 0 : _this2$nodeRef$data$a.expression) || [];
|
|
40670
|
+
ids = CheckNodevue_type_script_lang_js_toConsumableArray(new Set(expressions.filter(function (item) {
|
|
40671
|
+
return item.type === 'uid';
|
|
40672
|
+
}).reduce(function (values, item) {
|
|
40673
|
+
return values.concat(item.user || []);
|
|
40674
|
+
}, []).filter(function (uid) {
|
|
40675
|
+
return uid && !String(uid).startsWith('$' + '{');
|
|
40676
|
+
})));
|
|
40677
|
+
if (!ids.length) {
|
|
40678
|
+
_context.n = 2;
|
|
40679
|
+
break;
|
|
40680
|
+
}
|
|
40681
|
+
_t = _this2;
|
|
40682
|
+
_context.n = 1;
|
|
40683
|
+
return Promise.all(ids.map(function (uid) {
|
|
40684
|
+
return _this2.eadApi.getAccountByUid(uid);
|
|
40685
|
+
}));
|
|
40686
|
+
case 1:
|
|
40687
|
+
_t.mergeActorUsers.call(_t, _context.v);
|
|
40688
|
+
case 2:
|
|
40689
|
+
_this2.actorNamesReady = true;
|
|
40690
|
+
case 3:
|
|
40691
|
+
return _context.a(2);
|
|
40692
|
+
}
|
|
40693
|
+
}, _callee);
|
|
40694
|
+
}))();
|
|
40695
|
+
},
|
|
40696
|
+
filterDataset: function filterDataset(filter, dataset, datasetKeys) {
|
|
40697
|
+
var _this3 = this;
|
|
40353
40698
|
if (!filter) {
|
|
40354
40699
|
return dataset.filter(function (o) {
|
|
40355
|
-
return
|
|
40700
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
40356
40701
|
});
|
|
40357
40702
|
}
|
|
40358
40703
|
return dataset.filter(function (o) {
|
|
@@ -40372,7 +40717,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40372
40717
|
}
|
|
40373
40718
|
return false;
|
|
40374
40719
|
}).filter(function (o) {
|
|
40375
|
-
return
|
|
40720
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
40376
40721
|
});
|
|
40377
40722
|
},
|
|
40378
40723
|
getClass: function getClass() {
|
|
@@ -40404,7 +40749,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40404
40749
|
},
|
|
40405
40750
|
handleDriverChange: function handleDriverChange(a, s) {},
|
|
40406
40751
|
handleDriverSearch: function handleDriverSearch(s) {
|
|
40407
|
-
var
|
|
40752
|
+
var _this4 = this;
|
|
40408
40753
|
if (this.driverTimeout) {
|
|
40409
40754
|
clearTimeout(this.driverTimeout);
|
|
40410
40755
|
this.driverTimeout = null;
|
|
@@ -40413,15 +40758,15 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40413
40758
|
if (!s) {
|
|
40414
40759
|
return;
|
|
40415
40760
|
}
|
|
40416
|
-
|
|
40417
|
-
|
|
40761
|
+
_this4.eadApi.getDrivers(s).then(function (value) {
|
|
40762
|
+
_this4.driverList = value.map(function (item) {
|
|
40418
40763
|
return {
|
|
40419
40764
|
value: item.driver_id,
|
|
40420
40765
|
label: item.driver_name,
|
|
40421
40766
|
title: item.driver_name
|
|
40422
40767
|
};
|
|
40423
40768
|
});
|
|
40424
|
-
|
|
40769
|
+
_this4.nodeRef.data.eadCache.workflow.driverList = _this4.driverList;
|
|
40425
40770
|
});
|
|
40426
40771
|
};
|
|
40427
40772
|
this.driverTimeout = setTimeout(go, 300);
|
|
@@ -40522,12 +40867,12 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40522
40867
|
// }
|
|
40523
40868
|
// },
|
|
40524
40869
|
hideDrawer: function hideDrawer() {
|
|
40525
|
-
var
|
|
40870
|
+
var _this5 = this;
|
|
40526
40871
|
var vaildR = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(true);
|
|
40527
40872
|
this.$refs.nameForm.validate(function (valid) {
|
|
40528
40873
|
if (!valid) {
|
|
40529
40874
|
vaildR.value = false;
|
|
40530
|
-
|
|
40875
|
+
_this5.$message.error('节点名称校验不通过');
|
|
40531
40876
|
}
|
|
40532
40877
|
});
|
|
40533
40878
|
|
|
@@ -40540,10 +40885,10 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40540
40885
|
// console.log(a)
|
|
40541
40886
|
},
|
|
40542
40887
|
showEditName: function showEditName() {
|
|
40543
|
-
var
|
|
40888
|
+
var _this6 = this;
|
|
40544
40889
|
this.editName = true;
|
|
40545
40890
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
40546
|
-
|
|
40891
|
+
_this6.$refs.nameInput.focus();
|
|
40547
40892
|
});
|
|
40548
40893
|
},
|
|
40549
40894
|
close: function close() {
|
|
@@ -40564,17 +40909,17 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40564
40909
|
this.loadCache(this.nodeRef);
|
|
40565
40910
|
},
|
|
40566
40911
|
mounted: function () {
|
|
40567
|
-
var _mounted = CheckNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CheckNodevue_type_script_lang_js_regenerator().m(function
|
|
40912
|
+
var _mounted = CheckNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CheckNodevue_type_script_lang_js_regenerator().m(function _callee2() {
|
|
40568
40913
|
var _this$nodeRef$data$op,
|
|
40569
|
-
|
|
40914
|
+
_this7 = this;
|
|
40570
40915
|
var _yield$this$nodeHandl, viewAttrs, orgMap, orgData, roles, users, viewAttrsSchema, optionViewAttrs, _loop;
|
|
40571
|
-
return CheckNodevue_type_script_lang_js_regenerator().w(function (
|
|
40572
|
-
while (1) switch (
|
|
40916
|
+
return CheckNodevue_type_script_lang_js_regenerator().w(function (_context3) {
|
|
40917
|
+
while (1) switch (_context3.n) {
|
|
40573
40918
|
case 0:
|
|
40574
|
-
|
|
40919
|
+
_context3.n = 1;
|
|
40575
40920
|
return this.nodeHandler.businessAdapter.getActorData();
|
|
40576
40921
|
case 1:
|
|
40577
|
-
_yield$this$nodeHandl =
|
|
40922
|
+
_yield$this$nodeHandl = _context3.v;
|
|
40578
40923
|
viewAttrs = _yield$this$nodeHandl.viewAttrs;
|
|
40579
40924
|
orgMap = _yield$this$nodeHandl.orgMap;
|
|
40580
40925
|
orgData = _yield$this$nodeHandl.orgData;
|
|
@@ -40582,7 +40927,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40582
40927
|
users = _yield$this$nodeHandl.users;
|
|
40583
40928
|
viewAttrsSchema = _yield$this$nodeHandl.viewAttrsSchema;
|
|
40584
40929
|
if ((_this$nodeRef$data$op = this.nodeRef.data.option_forms) !== null && _this$nodeRef$data$op !== void 0 && _this$nodeRef$data$op.length) {
|
|
40585
|
-
|
|
40930
|
+
_context3.n = 2;
|
|
40586
40931
|
break;
|
|
40587
40932
|
}
|
|
40588
40933
|
this.nodeRef.data.option_forms = viewAttrs.filter(function (attr) {
|
|
@@ -40600,7 +40945,7 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40600
40945
|
})
|
|
40601
40946
|
};
|
|
40602
40947
|
});
|
|
40603
|
-
|
|
40948
|
+
_context3.n = 5;
|
|
40604
40949
|
break;
|
|
40605
40950
|
case 2:
|
|
40606
40951
|
this.nodeRef.data.option_forms.forEach(function (value) {
|
|
@@ -40615,15 +40960,15 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40615
40960
|
});
|
|
40616
40961
|
_loop = /*#__PURE__*/CheckNodevue_type_script_lang_js_regenerator().m(function _loop() {
|
|
40617
40962
|
var attr;
|
|
40618
|
-
return CheckNodevue_type_script_lang_js_regenerator().w(function (
|
|
40619
|
-
while (1) switch (
|
|
40963
|
+
return CheckNodevue_type_script_lang_js_regenerator().w(function (_context2) {
|
|
40964
|
+
while (1) switch (_context2.n) {
|
|
40620
40965
|
case 0:
|
|
40621
40966
|
attr = optionViewAttrs.find(function (attr) {
|
|
40622
|
-
return !
|
|
40967
|
+
return !_this7.nodeRef.data.option_forms.find(function (form) {
|
|
40623
40968
|
return form.attrId === attr.id;
|
|
40624
40969
|
});
|
|
40625
40970
|
});
|
|
40626
|
-
|
|
40971
|
+
_this7.nodeRef.data.option_forms.push({
|
|
40627
40972
|
attrId: attr.id,
|
|
40628
40973
|
attrName: attr.alias,
|
|
40629
40974
|
attrCode: attr.name,
|
|
@@ -40635,29 +40980,31 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40635
40980
|
})
|
|
40636
40981
|
});
|
|
40637
40982
|
case 1:
|
|
40638
|
-
return
|
|
40983
|
+
return _context2.a(2);
|
|
40639
40984
|
}
|
|
40640
40985
|
}, _loop);
|
|
40641
40986
|
});
|
|
40642
40987
|
case 3:
|
|
40643
40988
|
if (!(optionViewAttrs.length > this.nodeRef.data.option_forms.length)) {
|
|
40644
|
-
|
|
40989
|
+
_context3.n = 5;
|
|
40645
40990
|
break;
|
|
40646
40991
|
}
|
|
40647
|
-
return
|
|
40992
|
+
return _context3.d(_regeneratorValues(_loop()), 4);
|
|
40648
40993
|
case 4:
|
|
40649
|
-
|
|
40994
|
+
_context3.n = 3;
|
|
40650
40995
|
break;
|
|
40651
40996
|
case 5:
|
|
40652
40997
|
this.viewAttrLoading = false;
|
|
40653
40998
|
this.orgMap = orgMap;
|
|
40654
40999
|
this.orgData = orgData;
|
|
40655
41000
|
this.roles = roles;
|
|
40656
|
-
this.users
|
|
41001
|
+
this.mergeActorUsers(users);
|
|
41002
|
+
_context3.n = 6;
|
|
41003
|
+
return this.loadActorUserNames();
|
|
40657
41004
|
case 6:
|
|
40658
|
-
return
|
|
41005
|
+
return _context3.a(2);
|
|
40659
41006
|
}
|
|
40660
|
-
},
|
|
41007
|
+
}, _callee2, this);
|
|
40661
41008
|
}));
|
|
40662
41009
|
function mounted() {
|
|
40663
41010
|
return _mounted.apply(this, arguments);
|
|
@@ -40667,8 +41014,8 @@ function CheckNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Ch
|
|
|
40667
41014
|
});
|
|
40668
41015
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=script&lang=js
|
|
40669
41016
|
/* harmony default export */ var node_CheckNodevue_type_script_lang_js = (CheckNodevue_type_script_lang_js);
|
|
40670
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=style&index=0&id=
|
|
40671
|
-
var
|
|
41017
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue?vue&type=style&index=0&id=4c0a9357&prod&lang=less&scoped=true
|
|
41018
|
+
var CheckNodevue_type_style_index_0_id_4c0a9357_prod_lang_less_scoped_true = __webpack_require__("aa8a");
|
|
40672
41019
|
|
|
40673
41020
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CheckNode.vue
|
|
40674
41021
|
|
|
@@ -40681,11 +41028,11 @@ var CheckNodevue_type_style_index_0_id_b65a71f8_prod_lang_less_scoped_true = __w
|
|
|
40681
41028
|
|
|
40682
41029
|
var CheckNode_component = Object(componentNormalizer["a" /* default */])(
|
|
40683
41030
|
node_CheckNodevue_type_script_lang_js,
|
|
40684
|
-
|
|
40685
|
-
|
|
41031
|
+
CheckNodevue_type_template_id_4c0a9357_scoped_true_render,
|
|
41032
|
+
CheckNodevue_type_template_id_4c0a9357_scoped_true_staticRenderFns,
|
|
40686
41033
|
false,
|
|
40687
41034
|
null,
|
|
40688
|
-
"
|
|
41035
|
+
"4c0a9357",
|
|
40689
41036
|
null
|
|
40690
41037
|
|
|
40691
41038
|
)
|
|
@@ -41346,14 +41693,14 @@ var JudgeNode_component = Object(componentNormalizer["a" /* default */])(
|
|
|
41346
41693
|
)
|
|
41347
41694
|
|
|
41348
41695
|
/* harmony default export */ var JudgeNode = (JudgeNode_component.exports);
|
|
41349
|
-
// 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=
|
|
41350
|
-
function
|
|
41351
|
-
function
|
|
41352
|
-
function
|
|
41353
|
-
function
|
|
41354
|
-
function
|
|
41355
|
-
function
|
|
41356
|
-
var
|
|
41696
|
+
// 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
|
|
41697
|
+
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(); }
|
|
41698
|
+
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."); }
|
|
41699
|
+
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; } }
|
|
41700
|
+
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); }
|
|
41701
|
+
function CCNodevue_type_template_id_19ab4a77_scoped_true_arrayWithoutHoles(r) { if (Array.isArray(r)) return CCNodevue_type_template_id_19ab4a77_scoped_true_arrayLikeToArray(r); }
|
|
41702
|
+
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; }
|
|
41703
|
+
var CCNodevue_type_template_id_19ab4a77_scoped_true_render = function render() {
|
|
41357
41704
|
var _vm$nodeRef, _vm$nodeHandler, _vm$noticeTemplateAtt;
|
|
41358
41705
|
var _vm = this,
|
|
41359
41706
|
_c = _vm._self._c;
|
|
@@ -41608,14 +41955,13 @@ var CCNodevue_type_template_id_2d46d5cf_scoped_true_render = function render() {
|
|
|
41608
41955
|
attrs: {
|
|
41609
41956
|
"span": "18"
|
|
41610
41957
|
}
|
|
41611
|
-
}, [_c('div', [_c('
|
|
41612
|
-
staticStyle: {
|
|
41613
|
-
"width": "100%"
|
|
41614
|
-
},
|
|
41958
|
+
}, [_c('div', [_c('ActorUserPicker', {
|
|
41615
41959
|
attrs: {
|
|
41616
|
-
"options":
|
|
41617
|
-
"
|
|
41618
|
-
|
|
41960
|
+
"business-options": _vm.businessUserData,
|
|
41961
|
+
"ead-api": _vm.eadApi
|
|
41962
|
+
},
|
|
41963
|
+
on: {
|
|
41964
|
+
"users": _vm.mergeActorUsers
|
|
41619
41965
|
},
|
|
41620
41966
|
model: {
|
|
41621
41967
|
value: item.user,
|
|
@@ -41641,7 +41987,7 @@ var CCNodevue_type_template_id_2d46d5cf_scoped_true_render = function render() {
|
|
|
41641
41987
|
maxHeight: '400px',
|
|
41642
41988
|
overflow: 'auto'
|
|
41643
41989
|
},
|
|
41644
|
-
"tree-data": [_vm.businessOrgData].concat(
|
|
41990
|
+
"tree-data": [_vm.businessOrgData].concat(CCNodevue_type_template_id_19ab4a77_scoped_true_toConsumableArray(_vm.orgData)),
|
|
41645
41991
|
"allowClear": "",
|
|
41646
41992
|
"placeholder": "部门",
|
|
41647
41993
|
"tree-default-expand-all": ""
|
|
@@ -42064,18 +42410,22 @@ var CCNodevue_type_template_id_2d46d5cf_scoped_true_render = function render() {
|
|
|
42064
42410
|
}
|
|
42065
42411
|
}, [_vm._v(" 允许 ")])], 1)], 1)], 1)], 1)], 1)], 1)], 1) : _vm._e()], 1);
|
|
42066
42412
|
};
|
|
42067
|
-
var
|
|
42413
|
+
var CCNodevue_type_template_id_19ab4a77_scoped_true_staticRenderFns = [];
|
|
42068
42414
|
|
|
42069
|
-
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=template&id=
|
|
42415
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=template&id=19ab4a77&scoped=true
|
|
42070
42416
|
|
|
42071
42417
|
// 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
|
|
42072
42418
|
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); }
|
|
42419
|
+
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; } } }; }
|
|
42073
42420
|
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 }; })(); }
|
|
42074
42421
|
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); }
|
|
42075
42422
|
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); }
|
|
42076
42423
|
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); }); }; }
|
|
42077
|
-
function
|
|
42424
|
+
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(); }
|
|
42425
|
+
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."); }
|
|
42078
42426
|
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; } }
|
|
42427
|
+
function CCNodevue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
42428
|
+
function CCNodevue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return CCNodevue_type_script_lang_js_arrayLikeToArray(r); }
|
|
42079
42429
|
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; }
|
|
42080
42430
|
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; }
|
|
42081
42431
|
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; }
|
|
@@ -42086,6 +42436,7 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42086
42436
|
|
|
42087
42437
|
|
|
42088
42438
|
|
|
42439
|
+
|
|
42089
42440
|
/* harmony default export */ var CCNodevue_type_script_lang_js = ({
|
|
42090
42441
|
name: 'CCNode',
|
|
42091
42442
|
props: {
|
|
@@ -42093,7 +42444,8 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42093
42444
|
nodeHandler: Object
|
|
42094
42445
|
},
|
|
42095
42446
|
components: {
|
|
42096
|
-
Item: Item["a" /* default */]
|
|
42447
|
+
Item: Item["a" /* default */],
|
|
42448
|
+
ActorUserPicker: ActorUserPicker
|
|
42097
42449
|
},
|
|
42098
42450
|
data: function data() {
|
|
42099
42451
|
return {
|
|
@@ -42129,6 +42481,7 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42129
42481
|
orgData: [],
|
|
42130
42482
|
roles: [],
|
|
42131
42483
|
users: [],
|
|
42484
|
+
actorNamesReady: false,
|
|
42132
42485
|
viewNametimeout: null,
|
|
42133
42486
|
viewAttrLoading: true,
|
|
42134
42487
|
formsColumnFilter: undefined,
|
|
@@ -42298,16 +42651,16 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42298
42651
|
}
|
|
42299
42652
|
}
|
|
42300
42653
|
if (expression[0].type === 'uid') {
|
|
42301
|
-
|
|
42302
|
-
return user.value;
|
|
42303
|
-
});
|
|
42654
|
+
if (!this.actorNamesReady) return '加载人员…';
|
|
42304
42655
|
content = expression[0].user.map(function (item) {
|
|
42305
|
-
var
|
|
42656
|
+
var _this$businessUserDat, _this$users$find;
|
|
42657
|
+
var label = ((_this$businessUserDat = _this.businessUserData.find(function (user) {
|
|
42306
42658
|
return user.value === item;
|
|
42307
|
-
}).label
|
|
42659
|
+
})) === null || _this$businessUserDat === void 0 ? void 0 : _this$businessUserDat.label) || ((_this$users$find = _this.users.find(function (user) {
|
|
42308
42660
|
return user.value === item;
|
|
42309
|
-
}).label;
|
|
42310
|
-
|
|
42661
|
+
})) === null || _this$users$find === void 0 ? void 0 : _this$users$find.label) || (item === '$' + '{sponsor}' ? '发起人' : item);
|
|
42662
|
+
var index = label.indexOf('(');
|
|
42663
|
+
return index === -1 ? label : label.substring(0, index);
|
|
42311
42664
|
}).join('、');
|
|
42312
42665
|
}
|
|
42313
42666
|
}
|
|
@@ -42377,11 +42730,55 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42377
42730
|
}
|
|
42378
42731
|
},
|
|
42379
42732
|
methods: {
|
|
42380
|
-
|
|
42733
|
+
mergeActorUsers: function mergeActorUsers(selected) {
|
|
42734
|
+
var users = new Map(this.users.map(function (user) {
|
|
42735
|
+
return [user.value, user];
|
|
42736
|
+
}));
|
|
42737
|
+
selected.forEach(function (user) {
|
|
42738
|
+
return users.set(user.value, user);
|
|
42739
|
+
});
|
|
42740
|
+
this.users = CCNodevue_type_script_lang_js_toConsumableArray(users.values());
|
|
42741
|
+
},
|
|
42742
|
+
loadActorUserNames: function loadActorUserNames() {
|
|
42381
42743
|
var _this2 = this;
|
|
42744
|
+
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function _callee() {
|
|
42745
|
+
var _this2$nodeRef$data$a;
|
|
42746
|
+
var expressions, ids, _t;
|
|
42747
|
+
return CCNodevue_type_script_lang_js_regenerator().w(function (_context) {
|
|
42748
|
+
while (1) switch (_context.n) {
|
|
42749
|
+
case 0:
|
|
42750
|
+
expressions = ((_this2$nodeRef$data$a = _this2.nodeRef.data.actor_config) === null || _this2$nodeRef$data$a === void 0 ? void 0 : _this2$nodeRef$data$a.expression) || [];
|
|
42751
|
+
ids = CCNodevue_type_script_lang_js_toConsumableArray(new Set(expressions.filter(function (item) {
|
|
42752
|
+
return item.type === 'uid';
|
|
42753
|
+
}).reduce(function (values, item) {
|
|
42754
|
+
return values.concat(item.user || []);
|
|
42755
|
+
}, []).filter(function (uid) {
|
|
42756
|
+
return uid && !String(uid).startsWith('$' + '{');
|
|
42757
|
+
})));
|
|
42758
|
+
if (!ids.length) {
|
|
42759
|
+
_context.n = 2;
|
|
42760
|
+
break;
|
|
42761
|
+
}
|
|
42762
|
+
_t = _this2;
|
|
42763
|
+
_context.n = 1;
|
|
42764
|
+
return Promise.all(ids.map(function (uid) {
|
|
42765
|
+
return _this2.eadApi.getAccountByUid(uid);
|
|
42766
|
+
}));
|
|
42767
|
+
case 1:
|
|
42768
|
+
_t.mergeActorUsers.call(_t, _context.v);
|
|
42769
|
+
case 2:
|
|
42770
|
+
_this2.actorNamesReady = true;
|
|
42771
|
+
case 3:
|
|
42772
|
+
return _context.a(2);
|
|
42773
|
+
}
|
|
42774
|
+
}, _callee);
|
|
42775
|
+
}))();
|
|
42776
|
+
},
|
|
42777
|
+
filterDataset: function filterDataset(filter, dataset, datasetKeys) {
|
|
42778
|
+
var _this3 = this;
|
|
42382
42779
|
if (!filter) {
|
|
42383
42780
|
return dataset.filter(function (o) {
|
|
42384
|
-
return
|
|
42781
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
42385
42782
|
});
|
|
42386
42783
|
}
|
|
42387
42784
|
return dataset.filter(function (o) {
|
|
@@ -42401,7 +42798,7 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42401
42798
|
}
|
|
42402
42799
|
return false;
|
|
42403
42800
|
}).filter(function (o) {
|
|
42404
|
-
return
|
|
42801
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
42405
42802
|
});
|
|
42406
42803
|
},
|
|
42407
42804
|
getClass: function getClass() {
|
|
@@ -42443,21 +42840,21 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42443
42840
|
});
|
|
42444
42841
|
},
|
|
42445
42842
|
optionViewChange: function optionViewChange(id) {
|
|
42446
|
-
var
|
|
42447
|
-
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function
|
|
42448
|
-
return CCNodevue_type_script_lang_js_regenerator().w(function (
|
|
42449
|
-
while (1) switch (
|
|
42843
|
+
var _this4 = this;
|
|
42844
|
+
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function _callee2() {
|
|
42845
|
+
return CCNodevue_type_script_lang_js_regenerator().w(function (_context2) {
|
|
42846
|
+
while (1) switch (_context2.n) {
|
|
42450
42847
|
case 0:
|
|
42451
|
-
|
|
42452
|
-
|
|
42453
|
-
|
|
42848
|
+
_this4.formsColumnFilter = undefined;
|
|
42849
|
+
_this4.nodeRef.data.option_view_id = id;
|
|
42850
|
+
_this4.nodeRef.data.eadCache.workflow.optionViewList = [_this4.optionViewList.find(function (item) {
|
|
42454
42851
|
return item.value === id;
|
|
42455
42852
|
})];
|
|
42456
|
-
|
|
42457
|
-
|
|
42458
|
-
return
|
|
42853
|
+
_this4.viewAttrLoading = true;
|
|
42854
|
+
_context2.n = 1;
|
|
42855
|
+
return _this4.eadApi.getViewAttrs(id);
|
|
42459
42856
|
case 1:
|
|
42460
|
-
|
|
42857
|
+
_this4.nodeRef.data.option_forms = _context2.v.filter(function (attr) {
|
|
42461
42858
|
return attr.type === 'value' && attr.access !== 'none';
|
|
42462
42859
|
}).filter(function (attr) {
|
|
42463
42860
|
return attr.key_type !== 'primary';
|
|
@@ -42470,15 +42867,15 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42470
42867
|
required: attr.required
|
|
42471
42868
|
};
|
|
42472
42869
|
});
|
|
42473
|
-
|
|
42870
|
+
_this4.viewAttrLoading = false;
|
|
42474
42871
|
case 2:
|
|
42475
|
-
return
|
|
42872
|
+
return _context2.a(2);
|
|
42476
42873
|
}
|
|
42477
|
-
},
|
|
42874
|
+
}, _callee2);
|
|
42478
42875
|
}))();
|
|
42479
42876
|
},
|
|
42480
42877
|
'optionViewSearch': function optionViewSearch(s) {
|
|
42481
|
-
var
|
|
42878
|
+
var _this5 = this;
|
|
42482
42879
|
if (this.viewNametimeout) {
|
|
42483
42880
|
clearTimeout(this.viewNametimeout);
|
|
42484
42881
|
this.viewNametimeout = null;
|
|
@@ -42487,8 +42884,8 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42487
42884
|
if (!s) {
|
|
42488
42885
|
return;
|
|
42489
42886
|
}
|
|
42490
|
-
|
|
42491
|
-
|
|
42887
|
+
_this5.eadApi.getViews(s).then(function (value) {
|
|
42888
|
+
_this5.optionViewList = value.map(function (item) {
|
|
42492
42889
|
return {
|
|
42493
42890
|
value: item.view_id,
|
|
42494
42891
|
text: item.view_name
|
|
@@ -42499,25 +42896,25 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42499
42896
|
this.viewNametimeout = setTimeout(go, 300);
|
|
42500
42897
|
},
|
|
42501
42898
|
'changeViewType': function changeViewType(_ref2) {
|
|
42502
|
-
var
|
|
42503
|
-
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function
|
|
42899
|
+
var _this6 = this;
|
|
42900
|
+
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function _callee3() {
|
|
42504
42901
|
var target, type;
|
|
42505
|
-
return CCNodevue_type_script_lang_js_regenerator().w(function (
|
|
42506
|
-
while (1) switch (
|
|
42902
|
+
return CCNodevue_type_script_lang_js_regenerator().w(function (_context3) {
|
|
42903
|
+
while (1) switch (_context3.n) {
|
|
42507
42904
|
case 0:
|
|
42508
42905
|
target = _ref2.target;
|
|
42509
42906
|
type = target.value;
|
|
42510
|
-
|
|
42907
|
+
_this6.nodeRef.data.eadCache.workflow.optionViewType = type;
|
|
42511
42908
|
if (!(type === 'use_model')) {
|
|
42512
|
-
|
|
42909
|
+
_context3.n = 2;
|
|
42513
42910
|
break;
|
|
42514
42911
|
}
|
|
42515
|
-
|
|
42516
|
-
|
|
42517
|
-
|
|
42518
|
-
return
|
|
42912
|
+
_this6.nodeRef.data.option_view_id = undefined;
|
|
42913
|
+
_this6.viewAttrLoading = true;
|
|
42914
|
+
_context3.n = 1;
|
|
42915
|
+
return _this6.eadApi.getViewAttrs(_this6.eadApi.getValues().option_view_id);
|
|
42519
42916
|
case 1:
|
|
42520
|
-
|
|
42917
|
+
_this6.nodeRef.data.option_forms = _context3.v.filter(function (attr) {
|
|
42521
42918
|
return attr.type === 'value' && attr.access !== 'none';
|
|
42522
42919
|
}).filter(function (attr) {
|
|
42523
42920
|
return attr.key_type !== 'primary';
|
|
@@ -42530,22 +42927,22 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42530
42927
|
required: attr.required
|
|
42531
42928
|
};
|
|
42532
42929
|
});
|
|
42533
|
-
|
|
42534
|
-
|
|
42930
|
+
_this6.$nextTick(function () {
|
|
42931
|
+
_this6.viewAttrLoading = false;
|
|
42535
42932
|
});
|
|
42536
42933
|
case 2:
|
|
42537
|
-
return
|
|
42934
|
+
return _context3.a(2);
|
|
42538
42935
|
}
|
|
42539
|
-
},
|
|
42936
|
+
}, _callee3);
|
|
42540
42937
|
}))();
|
|
42541
42938
|
},
|
|
42542
42939
|
hideDrawer: function hideDrawer() {
|
|
42543
|
-
var
|
|
42940
|
+
var _this7 = this;
|
|
42544
42941
|
var vaildR = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(true);
|
|
42545
42942
|
this.$refs.nameForm.validate(function (valid) {
|
|
42546
42943
|
if (!valid) {
|
|
42547
42944
|
vaildR.value = false;
|
|
42548
|
-
|
|
42945
|
+
_this7.$message.error('节点名称校验不通过');
|
|
42549
42946
|
}
|
|
42550
42947
|
});
|
|
42551
42948
|
|
|
@@ -42556,10 +42953,10 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42556
42953
|
},
|
|
42557
42954
|
changeTags: function changeTags(a) {},
|
|
42558
42955
|
showEditName: function showEditName() {
|
|
42559
|
-
var
|
|
42956
|
+
var _this8 = this;
|
|
42560
42957
|
this.editName = true;
|
|
42561
42958
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
42562
|
-
|
|
42959
|
+
_this8.$refs.nameInput.focus();
|
|
42563
42960
|
});
|
|
42564
42961
|
},
|
|
42565
42962
|
close: function close() {
|
|
@@ -42577,24 +42974,24 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42577
42974
|
}
|
|
42578
42975
|
},
|
|
42579
42976
|
mounted: function mounted() {
|
|
42580
|
-
var
|
|
42581
|
-
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function
|
|
42582
|
-
var
|
|
42583
|
-
var _yield$
|
|
42584
|
-
return CCNodevue_type_script_lang_js_regenerator().w(function (
|
|
42585
|
-
while (1) switch (
|
|
42977
|
+
var _this9 = this;
|
|
42978
|
+
return CCNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/CCNodevue_type_script_lang_js_regenerator().m(function _callee4() {
|
|
42979
|
+
var _this9$nodeRef$data$o;
|
|
42980
|
+
var _yield$_this9$nodeHan, viewAttrs, orgMap, orgData, roles, users;
|
|
42981
|
+
return CCNodevue_type_script_lang_js_regenerator().w(function (_context4) {
|
|
42982
|
+
while (1) switch (_context4.n) {
|
|
42586
42983
|
case 0:
|
|
42587
|
-
|
|
42588
|
-
return
|
|
42984
|
+
_context4.n = 1;
|
|
42985
|
+
return _this9.nodeHandler.businessAdapter.getActorData();
|
|
42589
42986
|
case 1:
|
|
42590
|
-
_yield$
|
|
42591
|
-
viewAttrs = _yield$
|
|
42592
|
-
orgMap = _yield$
|
|
42593
|
-
orgData = _yield$
|
|
42594
|
-
roles = _yield$
|
|
42595
|
-
users = _yield$
|
|
42596
|
-
if (!((
|
|
42597
|
-
|
|
42987
|
+
_yield$_this9$nodeHan = _context4.v;
|
|
42988
|
+
viewAttrs = _yield$_this9$nodeHan.viewAttrs;
|
|
42989
|
+
orgMap = _yield$_this9$nodeHan.orgMap;
|
|
42990
|
+
orgData = _yield$_this9$nodeHan.orgData;
|
|
42991
|
+
roles = _yield$_this9$nodeHan.roles;
|
|
42992
|
+
users = _yield$_this9$nodeHan.users;
|
|
42993
|
+
if (!((_this9$nodeRef$data$o = _this9.nodeRef.data.option_forms) !== null && _this9$nodeRef$data$o !== void 0 && _this9$nodeRef$data$o.length)) {
|
|
42994
|
+
_this9.nodeRef.data.option_forms = viewAttrs.filter(function (attr) {
|
|
42598
42995
|
return attr.type === 'value' && attr.access !== 'none';
|
|
42599
42996
|
}).filter(function (attr) {
|
|
42600
42997
|
return attr.key_type !== 'primary';
|
|
@@ -42608,22 +43005,24 @@ function CCNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != CCNod
|
|
|
42608
43005
|
};
|
|
42609
43006
|
});
|
|
42610
43007
|
}
|
|
42611
|
-
|
|
42612
|
-
|
|
42613
|
-
|
|
42614
|
-
|
|
42615
|
-
|
|
43008
|
+
_this9.viewAttrLoading = false;
|
|
43009
|
+
_this9.orgMap = orgMap;
|
|
43010
|
+
_this9.orgData = orgData;
|
|
43011
|
+
_this9.roles = roles;
|
|
43012
|
+
_this9.mergeActorUsers(users);
|
|
43013
|
+
_context4.n = 2;
|
|
43014
|
+
return _this9.loadActorUserNames();
|
|
42616
43015
|
case 2:
|
|
42617
|
-
return
|
|
43016
|
+
return _context4.a(2);
|
|
42618
43017
|
}
|
|
42619
|
-
},
|
|
43018
|
+
}, _callee4);
|
|
42620
43019
|
}))();
|
|
42621
43020
|
}
|
|
42622
43021
|
});
|
|
42623
43022
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=script&lang=js
|
|
42624
43023
|
/* harmony default export */ var node_CCNodevue_type_script_lang_js = (CCNodevue_type_script_lang_js);
|
|
42625
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=style&index=0&id=
|
|
42626
|
-
var
|
|
43024
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue?vue&type=style&index=0&id=19ab4a77&prod&lang=less&scoped=true
|
|
43025
|
+
var CCNodevue_type_style_index_0_id_19ab4a77_prod_lang_less_scoped_true = __webpack_require__("874c");
|
|
42627
43026
|
|
|
42628
43027
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/CCNode.vue
|
|
42629
43028
|
|
|
@@ -42636,24 +43035,24 @@ var CCNodevue_type_style_index_0_id_2d46d5cf_prod_lang_less_scoped_true = __webp
|
|
|
42636
43035
|
|
|
42637
43036
|
var CCNode_component = Object(componentNormalizer["a" /* default */])(
|
|
42638
43037
|
node_CCNodevue_type_script_lang_js,
|
|
42639
|
-
|
|
42640
|
-
|
|
43038
|
+
CCNodevue_type_template_id_19ab4a77_scoped_true_render,
|
|
43039
|
+
CCNodevue_type_template_id_19ab4a77_scoped_true_staticRenderFns,
|
|
42641
43040
|
false,
|
|
42642
43041
|
null,
|
|
42643
|
-
"
|
|
43042
|
+
"19ab4a77",
|
|
42644
43043
|
null
|
|
42645
43044
|
|
|
42646
43045
|
)
|
|
42647
43046
|
|
|
42648
43047
|
/* harmony default export */ var CCNode = (CCNode_component.exports);
|
|
42649
|
-
// 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=
|
|
42650
|
-
function
|
|
42651
|
-
function
|
|
42652
|
-
function
|
|
42653
|
-
function
|
|
42654
|
-
function
|
|
42655
|
-
function
|
|
42656
|
-
var
|
|
43048
|
+
// 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
|
|
43049
|
+
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(); }
|
|
43050
|
+
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."); }
|
|
43051
|
+
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; } }
|
|
43052
|
+
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); }
|
|
43053
|
+
function TaskNodevue_type_template_id_369c008a_scoped_true_arrayWithoutHoles(r) { if (Array.isArray(r)) return TaskNodevue_type_template_id_369c008a_scoped_true_arrayLikeToArray(r); }
|
|
43054
|
+
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; }
|
|
43055
|
+
var TaskNodevue_type_template_id_369c008a_scoped_true_render = function render() {
|
|
42657
43056
|
var _vm$nodeHandler, _vm$nodeHandler2, _vm$nodeRef, _vm$nodeRef2, _vm$nodeRef3, _vm$nodeHandler3, _vm$noticeTemplateAtt;
|
|
42658
43057
|
var _vm = this,
|
|
42659
43058
|
_c = _vm._self._c;
|
|
@@ -43659,15 +44058,13 @@ var TaskNodevue_type_template_id_42e0e2eb_scoped_true_render = function render()
|
|
|
43659
44058
|
attrs: {
|
|
43660
44059
|
"span": "18"
|
|
43661
44060
|
}
|
|
43662
|
-
}, [_c('div', [_c('
|
|
43663
|
-
staticStyle: {
|
|
43664
|
-
"width": "100%"
|
|
43665
|
-
},
|
|
44061
|
+
}, [_c('div', [_c('ActorUserPicker', {
|
|
43666
44062
|
attrs: {
|
|
43667
|
-
"
|
|
43668
|
-
"
|
|
43669
|
-
|
|
43670
|
-
|
|
44063
|
+
"business-options": _vm.businessUserData,
|
|
44064
|
+
"ead-api": _vm.eadApi
|
|
44065
|
+
},
|
|
44066
|
+
on: {
|
|
44067
|
+
"users": _vm.mergeActorUsers
|
|
43671
44068
|
},
|
|
43672
44069
|
model: {
|
|
43673
44070
|
value: item.user,
|
|
@@ -43693,7 +44090,7 @@ var TaskNodevue_type_template_id_42e0e2eb_scoped_true_render = function render()
|
|
|
43693
44090
|
maxHeight: '400px',
|
|
43694
44091
|
overflow: 'auto'
|
|
43695
44092
|
},
|
|
43696
|
-
"tree-data": [_vm.businessOrgData].concat(
|
|
44093
|
+
"tree-data": [_vm.businessOrgData].concat(TaskNodevue_type_template_id_369c008a_scoped_true_toConsumableArray(_vm.orgData)),
|
|
43697
44094
|
"allowClear": "",
|
|
43698
44095
|
"placeholder": "部门",
|
|
43699
44096
|
"tree-default-expand-all": ""
|
|
@@ -44154,18 +44551,22 @@ var TaskNodevue_type_template_id_42e0e2eb_scoped_true_render = function render()
|
|
|
44154
44551
|
}
|
|
44155
44552
|
}) : _vm._e()], 1)]) : _vm._e()], 1)], 1) : _vm._e()], 1);
|
|
44156
44553
|
};
|
|
44157
|
-
var
|
|
44554
|
+
var TaskNodevue_type_template_id_369c008a_scoped_true_staticRenderFns = [];
|
|
44158
44555
|
|
|
44159
|
-
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=template&id=
|
|
44556
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=template&id=369c008a&scoped=true
|
|
44160
44557
|
|
|
44161
44558
|
// 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
|
|
44162
44559
|
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); }
|
|
44560
|
+
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; } } }; }
|
|
44163
44561
|
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 }; })(); }
|
|
44164
44562
|
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); }
|
|
44165
44563
|
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); }
|
|
44166
44564
|
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); }); }; }
|
|
44167
|
-
function
|
|
44565
|
+
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(); }
|
|
44566
|
+
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."); }
|
|
44168
44567
|
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; } }
|
|
44568
|
+
function TaskNodevue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
44569
|
+
function TaskNodevue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return TaskNodevue_type_script_lang_js_arrayLikeToArray(r); }
|
|
44169
44570
|
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; }
|
|
44170
44571
|
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; }
|
|
44171
44572
|
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; }
|
|
@@ -44178,6 +44579,7 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44178
44579
|
|
|
44179
44580
|
|
|
44180
44581
|
|
|
44582
|
+
|
|
44181
44583
|
/* harmony default export */ var TaskNodevue_type_script_lang_js = ({
|
|
44182
44584
|
name: 'TaskNode',
|
|
44183
44585
|
props: {
|
|
@@ -44187,7 +44589,8 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44187
44589
|
components: {
|
|
44188
44590
|
AssertDesigner: AssertDesigner,
|
|
44189
44591
|
RuntimeWorkflowActors: RuntimeWorkFlowActors,
|
|
44190
|
-
Item: Item["a" /* default */]
|
|
44592
|
+
Item: Item["a" /* default */],
|
|
44593
|
+
ActorUserPicker: ActorUserPicker
|
|
44191
44594
|
},
|
|
44192
44595
|
data: function data() {
|
|
44193
44596
|
return {
|
|
@@ -44246,6 +44649,7 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44246
44649
|
orgData: [],
|
|
44247
44650
|
roles: [],
|
|
44248
44651
|
users: [],
|
|
44652
|
+
actorNamesReady: false,
|
|
44249
44653
|
viewNameTimeout: null,
|
|
44250
44654
|
viewAttrLoading: true,
|
|
44251
44655
|
driverList: null,
|
|
@@ -44507,16 +44911,16 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44507
44911
|
}
|
|
44508
44912
|
}
|
|
44509
44913
|
if (expression[0].type === 'uid') {
|
|
44510
|
-
|
|
44511
|
-
return user.value;
|
|
44512
|
-
});
|
|
44914
|
+
if (!this.actorNamesReady) return '加载人员…';
|
|
44513
44915
|
content = expression[0].user.map(function (item) {
|
|
44514
|
-
var
|
|
44916
|
+
var _this$businessUserDat, _this$users$find;
|
|
44917
|
+
var label = ((_this$businessUserDat = _this.businessUserData.find(function (user) {
|
|
44515
44918
|
return user.value === item;
|
|
44516
|
-
}).label
|
|
44919
|
+
})) === null || _this$businessUserDat === void 0 ? void 0 : _this$businessUserDat.label) || ((_this$users$find = _this.users.find(function (user) {
|
|
44517
44920
|
return user.value === item;
|
|
44518
|
-
}).label;
|
|
44519
|
-
|
|
44921
|
+
})) === null || _this$users$find === void 0 ? void 0 : _this$users$find.label) || (item === '$' + '{sponsor}' ? '发起人' : item);
|
|
44922
|
+
var index = label.indexOf('(');
|
|
44923
|
+
return index === -1 ? label : label.substring(0, index);
|
|
44520
44924
|
}).join('、');
|
|
44521
44925
|
}
|
|
44522
44926
|
}
|
|
@@ -44586,11 +44990,55 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44586
44990
|
}
|
|
44587
44991
|
},
|
|
44588
44992
|
methods: {
|
|
44589
|
-
|
|
44993
|
+
mergeActorUsers: function mergeActorUsers(selected) {
|
|
44994
|
+
var users = new Map(this.users.map(function (user) {
|
|
44995
|
+
return [user.value, user];
|
|
44996
|
+
}));
|
|
44997
|
+
selected.forEach(function (user) {
|
|
44998
|
+
return users.set(user.value, user);
|
|
44999
|
+
});
|
|
45000
|
+
this.users = TaskNodevue_type_script_lang_js_toConsumableArray(users.values());
|
|
45001
|
+
},
|
|
45002
|
+
loadActorUserNames: function loadActorUserNames() {
|
|
44590
45003
|
var _this2 = this;
|
|
45004
|
+
return TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function _callee() {
|
|
45005
|
+
var _this2$nodeRef$data$a;
|
|
45006
|
+
var expressions, ids, _t;
|
|
45007
|
+
return TaskNodevue_type_script_lang_js_regenerator().w(function (_context) {
|
|
45008
|
+
while (1) switch (_context.n) {
|
|
45009
|
+
case 0:
|
|
45010
|
+
expressions = ((_this2$nodeRef$data$a = _this2.nodeRef.data.actor_config) === null || _this2$nodeRef$data$a === void 0 ? void 0 : _this2$nodeRef$data$a.expression) || [];
|
|
45011
|
+
ids = TaskNodevue_type_script_lang_js_toConsumableArray(new Set(expressions.filter(function (item) {
|
|
45012
|
+
return item.type === 'uid';
|
|
45013
|
+
}).reduce(function (values, item) {
|
|
45014
|
+
return values.concat(item.user || []);
|
|
45015
|
+
}, []).filter(function (uid) {
|
|
45016
|
+
return uid && !String(uid).startsWith('$' + '{');
|
|
45017
|
+
})));
|
|
45018
|
+
if (!ids.length) {
|
|
45019
|
+
_context.n = 2;
|
|
45020
|
+
break;
|
|
45021
|
+
}
|
|
45022
|
+
_t = _this2;
|
|
45023
|
+
_context.n = 1;
|
|
45024
|
+
return Promise.all(ids.map(function (uid) {
|
|
45025
|
+
return _this2.eadApi.getAccountByUid(uid);
|
|
45026
|
+
}));
|
|
45027
|
+
case 1:
|
|
45028
|
+
_t.mergeActorUsers.call(_t, _context.v);
|
|
45029
|
+
case 2:
|
|
45030
|
+
_this2.actorNamesReady = true;
|
|
45031
|
+
case 3:
|
|
45032
|
+
return _context.a(2);
|
|
45033
|
+
}
|
|
45034
|
+
}, _callee);
|
|
45035
|
+
}))();
|
|
45036
|
+
},
|
|
45037
|
+
filterDataset: function filterDataset(filter, dataset, datasetKeys) {
|
|
45038
|
+
var _this3 = this;
|
|
44591
45039
|
if (!filter) {
|
|
44592
45040
|
return dataset.filter(function (o) {
|
|
44593
|
-
return
|
|
45041
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
44594
45042
|
});
|
|
44595
45043
|
}
|
|
44596
45044
|
return dataset.filter(function (o) {
|
|
@@ -44610,7 +45058,7 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44610
45058
|
}
|
|
44611
45059
|
return false;
|
|
44612
45060
|
}).filter(function (o) {
|
|
44613
|
-
return
|
|
45061
|
+
return _this3.formsColumnAccess === 'all' || _this3.formsColumnAccess.indexOf(o.access.toString()) !== -1;
|
|
44614
45062
|
});
|
|
44615
45063
|
},
|
|
44616
45064
|
getClass: function getClass() {
|
|
@@ -44643,7 +45091,7 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44643
45091
|
},
|
|
44644
45092
|
handleDriverChange: function handleDriverChange(a, s) {},
|
|
44645
45093
|
handleDriverSearch: function handleDriverSearch(s) {
|
|
44646
|
-
var
|
|
45094
|
+
var _this4 = this;
|
|
44647
45095
|
if (this.driverTimeout) {
|
|
44648
45096
|
clearTimeout(this.driverTimeout);
|
|
44649
45097
|
this.driverTimeout = null;
|
|
@@ -44652,15 +45100,15 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44652
45100
|
if (!s) {
|
|
44653
45101
|
return;
|
|
44654
45102
|
}
|
|
44655
|
-
|
|
44656
|
-
|
|
45103
|
+
_this4.eadApi.getDrivers(s).then(function (value) {
|
|
45104
|
+
_this4.driverList = value.map(function (item) {
|
|
44657
45105
|
return {
|
|
44658
45106
|
value: item.driver_id,
|
|
44659
45107
|
label: item.driver_name,
|
|
44660
45108
|
title: item.driver_name
|
|
44661
45109
|
};
|
|
44662
45110
|
});
|
|
44663
|
-
|
|
45111
|
+
_this4.nodeRef.data.eadCache.workflow.driverList = _this4.driverList;
|
|
44664
45112
|
});
|
|
44665
45113
|
};
|
|
44666
45114
|
this.driverTimeout = setTimeout(go, 300);
|
|
@@ -44682,35 +45130,35 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44682
45130
|
});
|
|
44683
45131
|
},
|
|
44684
45132
|
optionViewChange: function optionViewChange(id) {
|
|
44685
|
-
var
|
|
44686
|
-
return TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function
|
|
45133
|
+
var _this5 = this;
|
|
45134
|
+
return TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function _callee2() {
|
|
44687
45135
|
var _viewAttrsSchema;
|
|
44688
45136
|
var viewAttrsSchema;
|
|
44689
|
-
return TaskNodevue_type_script_lang_js_regenerator().w(function (
|
|
44690
|
-
while (1) switch (
|
|
45137
|
+
return TaskNodevue_type_script_lang_js_regenerator().w(function (_context2) {
|
|
45138
|
+
while (1) switch (_context2.n) {
|
|
44691
45139
|
case 0:
|
|
44692
|
-
|
|
44693
|
-
if (
|
|
44694
|
-
|
|
45140
|
+
_this5.formsColumnFilter = undefined;
|
|
45141
|
+
if (_this5.optionViewId) {
|
|
45142
|
+
_this5.optionFormsCache[_this5.optionViewId] = _this5.nodeRef.data.option_forms;
|
|
44695
45143
|
}
|
|
44696
|
-
|
|
44697
|
-
|
|
45144
|
+
_this5.optionViewId = id;
|
|
45145
|
+
_this5.nodeRef.data.eadCache.workflow.optionViewList = [_this5.optionViewList.find(function (item) {
|
|
44698
45146
|
return item.value === id;
|
|
44699
45147
|
})];
|
|
44700
|
-
|
|
44701
|
-
|
|
44702
|
-
return
|
|
45148
|
+
_this5.viewAttrLoading = true;
|
|
45149
|
+
_context2.n = 1;
|
|
45150
|
+
return _this5.eadApi.getViewSchema(id);
|
|
44703
45151
|
case 1:
|
|
44704
|
-
viewAttrsSchema =
|
|
45152
|
+
viewAttrsSchema = _context2.v;
|
|
44705
45153
|
viewAttrsSchema = (_viewAttrsSchema = viewAttrsSchema) === null || _viewAttrsSchema === void 0 ? void 0 : _viewAttrsSchema.model.attrs;
|
|
44706
|
-
|
|
44707
|
-
return
|
|
45154
|
+
_context2.n = 2;
|
|
45155
|
+
return _this5.eadApi.getViewAttrs(id);
|
|
44708
45156
|
case 2:
|
|
44709
|
-
|
|
45157
|
+
_this5.nodeRef.data.option_forms = _context2.v.filter(function (attr) {
|
|
44710
45158
|
return attr.type === 'value' && attr.access !== 'none' && attr.key_type !== 'primary' && attr.is_system === 'none';
|
|
44711
45159
|
}).map(function (attr) {
|
|
44712
|
-
var
|
|
44713
|
-
var cache = (
|
|
45160
|
+
var _this5$optionFormsCac, _cache$access, _ref3, _cache$attrValue, _cache$schema;
|
|
45161
|
+
var cache = (_this5$optionFormsCac = _this5.optionFormsCache[id]) === null || _this5$optionFormsCac === void 0 ? void 0 : _this5$optionFormsCac.find(function (attr0) {
|
|
44714
45162
|
return attr0.attrId === attr.id;
|
|
44715
45163
|
});
|
|
44716
45164
|
var access = (_cache$access = cache === null || cache === void 0 ? void 0 : cache.access) !== null && _cache$access !== void 0 ? _cache$access : 'none';
|
|
@@ -44729,17 +45177,17 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44729
45177
|
schema: schema
|
|
44730
45178
|
};
|
|
44731
45179
|
});
|
|
44732
|
-
|
|
44733
|
-
|
|
45180
|
+
_this5.$nextTick(function () {
|
|
45181
|
+
_this5.viewAttrLoading = false;
|
|
44734
45182
|
});
|
|
44735
45183
|
case 3:
|
|
44736
|
-
return
|
|
45184
|
+
return _context2.a(2);
|
|
44737
45185
|
}
|
|
44738
|
-
},
|
|
45186
|
+
}, _callee2);
|
|
44739
45187
|
}))();
|
|
44740
45188
|
},
|
|
44741
45189
|
'optionViewSearch': function optionViewSearch(s) {
|
|
44742
|
-
var
|
|
45190
|
+
var _this6 = this;
|
|
44743
45191
|
if (this.viewNameTimeout) {
|
|
44744
45192
|
clearTimeout(this.viewNameTimeout);
|
|
44745
45193
|
this.viewNameTimeout = null;
|
|
@@ -44748,8 +45196,8 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44748
45196
|
if (!s) {
|
|
44749
45197
|
return;
|
|
44750
45198
|
}
|
|
44751
|
-
|
|
44752
|
-
|
|
45199
|
+
_this6.eadApi.getViews(s).then(function (value) {
|
|
45200
|
+
_this6.optionViewList = value.map(function (item) {
|
|
44753
45201
|
return {
|
|
44754
45202
|
value: item.view_id,
|
|
44755
45203
|
text: item.view_name
|
|
@@ -44760,42 +45208,42 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44760
45208
|
this.viewNameTimeout = setTimeout(go, 300);
|
|
44761
45209
|
},
|
|
44762
45210
|
'changeViewType': function changeViewType(_ref4) {
|
|
44763
|
-
var
|
|
44764
|
-
return TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function
|
|
45211
|
+
var _this7 = this;
|
|
45212
|
+
return TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function _callee3() {
|
|
44765
45213
|
var _viewAttrsSchema2;
|
|
44766
45214
|
var target, type, optionViewId, viewAttrsSchema;
|
|
44767
|
-
return TaskNodevue_type_script_lang_js_regenerator().w(function (
|
|
44768
|
-
while (1) switch (
|
|
45215
|
+
return TaskNodevue_type_script_lang_js_regenerator().w(function (_context3) {
|
|
45216
|
+
while (1) switch (_context3.n) {
|
|
44769
45217
|
case 0:
|
|
44770
45218
|
target = _ref4.target;
|
|
44771
45219
|
type = target.value;
|
|
44772
|
-
|
|
45220
|
+
_this7.nodeRef.data.eadCache.workflow.optionViewType = type;
|
|
44773
45221
|
optionViewId = '';
|
|
44774
45222
|
if (type === 'custom') {
|
|
44775
|
-
|
|
44776
|
-
|
|
44777
|
-
optionViewId =
|
|
45223
|
+
_this7.optionFormsCache[_this7.eadApi.getValues().option_view_id] = _this7.nodeRef.data.option_forms;
|
|
45224
|
+
_this7.nodeRef.data.option_view_id = _this7.optionViewId;
|
|
45225
|
+
optionViewId = _this7.optionViewId;
|
|
44778
45226
|
} else if (type === 'use_model') {
|
|
44779
|
-
|
|
44780
|
-
|
|
44781
|
-
optionViewId =
|
|
45227
|
+
_this7.optionFormsCache[_this7.optionViewId] = _this7.nodeRef.data.option_forms;
|
|
45228
|
+
_this7.nodeRef.data.option_view_id = null;
|
|
45229
|
+
optionViewId = _this7.eadApi.getValues().option_view_id;
|
|
44782
45230
|
}
|
|
44783
|
-
|
|
44784
|
-
|
|
44785
|
-
return
|
|
45231
|
+
_this7.viewAttrLoading = true;
|
|
45232
|
+
_context3.n = 1;
|
|
45233
|
+
return _this7.eadApi.getViewSchema(optionViewId);
|
|
44786
45234
|
case 1:
|
|
44787
|
-
viewAttrsSchema =
|
|
45235
|
+
viewAttrsSchema = _context3.v;
|
|
44788
45236
|
viewAttrsSchema = (_viewAttrsSchema2 = viewAttrsSchema) === null || _viewAttrsSchema2 === void 0 ? void 0 : _viewAttrsSchema2.model.attrs;
|
|
44789
|
-
|
|
44790
|
-
return
|
|
45237
|
+
_context3.n = 2;
|
|
45238
|
+
return _this7.eadApi.getViewAttrs(optionViewId);
|
|
44791
45239
|
case 2:
|
|
44792
|
-
|
|
45240
|
+
_this7.nodeRef.data.option_forms = _context3.v.filter(function (attr) {
|
|
44793
45241
|
return attr.type === 'value' && attr.access !== 'none' && attr.key_type !== 'primary' && attr.is_system === 'none';
|
|
44794
45242
|
}).filter(function (attr) {
|
|
44795
45243
|
return attr.key_type !== 'primary';
|
|
44796
45244
|
}).map(function (attr) {
|
|
44797
|
-
var
|
|
44798
|
-
var cache = (
|
|
45245
|
+
var _this7$optionFormsCac, _cache$access2, _ref5, _cache$attrValue2, _cache$schema2;
|
|
45246
|
+
var cache = (_this7$optionFormsCac = _this7.optionFormsCache[optionViewId]) === null || _this7$optionFormsCac === void 0 ? void 0 : _this7$optionFormsCac.find(function (attr0) {
|
|
44799
45247
|
return attr0.attrId === attr.id;
|
|
44800
45248
|
});
|
|
44801
45249
|
var access = (_cache$access2 = cache === null || cache === void 0 ? void 0 : cache.access) !== null && _cache$access2 !== void 0 ? _cache$access2 : 'none';
|
|
@@ -44814,20 +45262,20 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44814
45262
|
schema: schema
|
|
44815
45263
|
};
|
|
44816
45264
|
});
|
|
44817
|
-
|
|
45265
|
+
_this7.viewAttrLoading = false;
|
|
44818
45266
|
case 3:
|
|
44819
|
-
return
|
|
45267
|
+
return _context3.a(2);
|
|
44820
45268
|
}
|
|
44821
|
-
},
|
|
45269
|
+
}, _callee3);
|
|
44822
45270
|
}))();
|
|
44823
45271
|
},
|
|
44824
45272
|
hideDrawer: function hideDrawer() {
|
|
44825
|
-
var
|
|
45273
|
+
var _this8 = this;
|
|
44826
45274
|
var vaildR = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(true);
|
|
44827
45275
|
this.$refs.nameForm.validate(function (valid) {
|
|
44828
45276
|
if (!valid) {
|
|
44829
45277
|
vaildR.value = false;
|
|
44830
|
-
|
|
45278
|
+
_this8.$message.error('节点名称校验不通过');
|
|
44831
45279
|
}
|
|
44832
45280
|
});
|
|
44833
45281
|
|
|
@@ -44840,10 +45288,10 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44840
45288
|
// console.log(a)
|
|
44841
45289
|
},
|
|
44842
45290
|
showEditName: function showEditName() {
|
|
44843
|
-
var
|
|
45291
|
+
var _this9 = this;
|
|
44844
45292
|
this.editName = true;
|
|
44845
45293
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
44846
|
-
|
|
45294
|
+
_this9.$refs.nameInput.focus();
|
|
44847
45295
|
});
|
|
44848
45296
|
},
|
|
44849
45297
|
close: function close() {
|
|
@@ -44864,16 +45312,16 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44864
45312
|
this.loadCache(this.nodeRef);
|
|
44865
45313
|
},
|
|
44866
45314
|
mounted: function () {
|
|
44867
|
-
var _mounted = TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function
|
|
45315
|
+
var _mounted = TaskNodevue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/TaskNodevue_type_script_lang_js_regenerator().m(function _callee4() {
|
|
44868
45316
|
var _this$nodeRef$data$op;
|
|
44869
45317
|
var _yield$this$nodeHandl, viewAttrs, orgMap, orgData, roles, users, viewAttrsSchema, _viewAttrsSchema3;
|
|
44870
|
-
return TaskNodevue_type_script_lang_js_regenerator().w(function (
|
|
44871
|
-
while (1) switch (
|
|
45318
|
+
return TaskNodevue_type_script_lang_js_regenerator().w(function (_context4) {
|
|
45319
|
+
while (1) switch (_context4.n) {
|
|
44872
45320
|
case 0:
|
|
44873
|
-
|
|
45321
|
+
_context4.n = 1;
|
|
44874
45322
|
return this.nodeHandler.businessAdapter.getActorData();
|
|
44875
45323
|
case 1:
|
|
44876
|
-
_yield$this$nodeHandl =
|
|
45324
|
+
_yield$this$nodeHandl = _context4.v;
|
|
44877
45325
|
viewAttrs = _yield$this$nodeHandl.viewAttrs;
|
|
44878
45326
|
orgMap = _yield$this$nodeHandl.orgMap;
|
|
44879
45327
|
orgData = _yield$this$nodeHandl.orgData;
|
|
@@ -44881,7 +45329,7 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44881
45329
|
users = _yield$this$nodeHandl.users;
|
|
44882
45330
|
viewAttrsSchema = _yield$this$nodeHandl.viewAttrsSchema;
|
|
44883
45331
|
if ((_this$nodeRef$data$op = this.nodeRef.data.option_forms) !== null && _this$nodeRef$data$op !== void 0 && _this$nodeRef$data$op.length) {
|
|
44884
|
-
|
|
45332
|
+
_context4.n = 2;
|
|
44885
45333
|
break;
|
|
44886
45334
|
}
|
|
44887
45335
|
this.nodeRef.data.option_forms = viewAttrs.filter(function (attr) {
|
|
@@ -44899,17 +45347,17 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44899
45347
|
})
|
|
44900
45348
|
};
|
|
44901
45349
|
});
|
|
44902
|
-
|
|
45350
|
+
_context4.n = 5;
|
|
44903
45351
|
break;
|
|
44904
45352
|
case 2:
|
|
44905
45353
|
if (!this.optionViewId) {
|
|
44906
|
-
|
|
45354
|
+
_context4.n = 4;
|
|
44907
45355
|
break;
|
|
44908
45356
|
}
|
|
44909
|
-
|
|
45357
|
+
_context4.n = 3;
|
|
44910
45358
|
return this.eadApi.getViewSchema(this.optionViewId);
|
|
44911
45359
|
case 3:
|
|
44912
|
-
viewAttrsSchema =
|
|
45360
|
+
viewAttrsSchema = _context4.v;
|
|
44913
45361
|
viewAttrsSchema = (_viewAttrsSchema3 = viewAttrsSchema) === null || _viewAttrsSchema3 === void 0 ? void 0 : _viewAttrsSchema3.model.attrs;
|
|
44914
45362
|
case 4:
|
|
44915
45363
|
this.nodeRef.data.option_forms.forEach(function (value) {
|
|
@@ -44923,11 +45371,13 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44923
45371
|
this.orgMap = orgMap;
|
|
44924
45372
|
this.orgData = orgData;
|
|
44925
45373
|
this.roles = roles;
|
|
44926
|
-
this.users
|
|
45374
|
+
this.mergeActorUsers(users);
|
|
45375
|
+
_context4.n = 6;
|
|
45376
|
+
return this.loadActorUserNames();
|
|
44927
45377
|
case 6:
|
|
44928
|
-
return
|
|
45378
|
+
return _context4.a(2);
|
|
44929
45379
|
}
|
|
44930
|
-
},
|
|
45380
|
+
}, _callee4, this);
|
|
44931
45381
|
}));
|
|
44932
45382
|
function mounted() {
|
|
44933
45383
|
return _mounted.apply(this, arguments);
|
|
@@ -44937,8 +45387,8 @@ function TaskNodevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Tas
|
|
|
44937
45387
|
});
|
|
44938
45388
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=script&lang=js
|
|
44939
45389
|
/* harmony default export */ var node_TaskNodevue_type_script_lang_js = (TaskNodevue_type_script_lang_js);
|
|
44940
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=style&index=0&id=
|
|
44941
|
-
var
|
|
45390
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue?vue&type=style&index=0&id=369c008a&prod&lang=less&scoped=true
|
|
45391
|
+
var TaskNodevue_type_style_index_0_id_369c008a_prod_lang_less_scoped_true = __webpack_require__("b7fe");
|
|
44942
45392
|
|
|
44943
45393
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/node/TaskNode.vue
|
|
44944
45394
|
|
|
@@ -44951,11 +45401,11 @@ var TaskNodevue_type_style_index_0_id_42e0e2eb_prod_lang_less_scoped_true = __we
|
|
|
44951
45401
|
|
|
44952
45402
|
var TaskNode_component = Object(componentNormalizer["a" /* default */])(
|
|
44953
45403
|
node_TaskNodevue_type_script_lang_js,
|
|
44954
|
-
|
|
44955
|
-
|
|
45404
|
+
TaskNodevue_type_template_id_369c008a_scoped_true_render,
|
|
45405
|
+
TaskNodevue_type_template_id_369c008a_scoped_true_staticRenderFns,
|
|
44956
45406
|
false,
|
|
44957
45407
|
null,
|
|
44958
|
-
"
|
|
45408
|
+
"369c008a",
|
|
44959
45409
|
null
|
|
44960
45410
|
|
|
44961
45411
|
)
|
|
@@ -51051,6 +51501,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
51051
51501
|
}
|
|
51052
51502
|
});
|
|
51053
51503
|
|
|
51504
|
+
/***/ }),
|
|
51505
|
+
|
|
51506
|
+
/***/ "b7fe":
|
|
51507
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
51508
|
+
|
|
51509
|
+
"use strict";
|
|
51510
|
+
/* 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");
|
|
51511
|
+
/* 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__);
|
|
51512
|
+
/* unused harmony reexport * */
|
|
51513
|
+
|
|
51514
|
+
|
|
51054
51515
|
/***/ }),
|
|
51055
51516
|
|
|
51056
51517
|
/***/ "b9aa":
|
|
@@ -57798,6 +58259,12 @@ function selection_arrayWithoutHoles(r) { if (Array.isArray(r)) return selection
|
|
|
57798
58259
|
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; }
|
|
57799
58260
|
/* harmony default export */ var selection = ({
|
|
57800
58261
|
props: {
|
|
58262
|
+
initialSelections: {
|
|
58263
|
+
type: Array,
|
|
58264
|
+
default: function _default() {
|
|
58265
|
+
return [];
|
|
58266
|
+
}
|
|
58267
|
+
},
|
|
57801
58268
|
pickerMode: {
|
|
57802
58269
|
type: String,
|
|
57803
58270
|
enum: ['single', 'multiple'],
|
|
@@ -57806,7 +58273,7 @@ function selection_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a =
|
|
|
57806
58273
|
},
|
|
57807
58274
|
data: function data() {
|
|
57808
58275
|
return {
|
|
57809
|
-
selections:
|
|
58276
|
+
selections: selection_toConsumableArray(this.initialSelections)
|
|
57810
58277
|
};
|
|
57811
58278
|
},
|
|
57812
58279
|
computed: {
|
|
@@ -57867,21 +58334,20 @@ function selection_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a =
|
|
|
57867
58334
|
return null;
|
|
57868
58335
|
};
|
|
57869
58336
|
if (this.mode === 'picker' && this.pickerMode === 'multiple') {
|
|
57870
|
-
|
|
58337
|
+
var currentIds = new Set(dataSource.map(function (item) {
|
|
58338
|
+
return item[idName];
|
|
58339
|
+
}));
|
|
58340
|
+
var selectedIds = new Set(rowKeys);
|
|
58341
|
+
this.selections = [].concat(selection_toConsumableArray(this.selections.filter(function (item) {
|
|
58342
|
+
return !currentIds.has(item[idName]);
|
|
58343
|
+
})), selection_toConsumableArray(rowKeys.filter(function (key) {
|
|
58344
|
+
return currentIds.has(key);
|
|
58345
|
+
}).map(function (key) {
|
|
57871
58346
|
return _find(dataSource, key);
|
|
57872
58347
|
}).filter(function (item) {
|
|
57873
58348
|
return item;
|
|
57874
|
-
})))
|
|
57875
|
-
|
|
57876
|
-
return JSON.stringify(item);
|
|
57877
|
-
}))).map(function (item) {
|
|
57878
|
-
return JSON.parse(item);
|
|
57879
|
-
});
|
|
57880
|
-
this.selections = this.selections.filter(function (item) {
|
|
57881
|
-
var index = rowKeys.findIndex(function (i) {
|
|
57882
|
-
return i === item[idName];
|
|
57883
|
-
});
|
|
57884
|
-
return index !== -1;
|
|
58349
|
+
}))).filter(function (item) {
|
|
58350
|
+
return selectedIds.has(item[idName]) || !currentIds.has(item[idName]);
|
|
57885
58351
|
});
|
|
57886
58352
|
} else {
|
|
57887
58353
|
this.selections = rowKeys.map(function (key) {
|
|
@@ -66906,7 +67372,7 @@ var WorkFlowDesignervue_type_template_id_7cc8451f_scoped_true_staticRenderFns =
|
|
|
66906
67372
|
|
|
66907
67373
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/WorkFlowDesigner.vue?vue&type=template&id=7cc8451f&scoped=true
|
|
66908
67374
|
|
|
66909
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/NodeContainer.vue +
|
|
67375
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/NodeContainer.vue + 96 modules
|
|
66910
67376
|
var NodeContainer = __webpack_require__("ad54");
|
|
66911
67377
|
|
|
66912
67378
|
// EXTERNAL MODULE: ../src/web/components/forms/flow/EadBusiness.js
|
|
@@ -66934,12 +67400,14 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
66934
67400
|
var _component = /*#__PURE__*/new WeakMap();
|
|
66935
67401
|
var _baseUrl = /*#__PURE__*/new WeakMap();
|
|
66936
67402
|
var _workflowUrl = /*#__PURE__*/new WeakMap();
|
|
67403
|
+
var _accountRequests = /*#__PURE__*/new WeakMap();
|
|
66937
67404
|
var EadApi = /*#__PURE__*/function () {
|
|
66938
67405
|
function EadApi(vueComponent) {
|
|
66939
67406
|
_classCallCheck(this, EadApi);
|
|
66940
67407
|
_classPrivateFieldInitSpec(this, _component, void 0);
|
|
66941
67408
|
_classPrivateFieldInitSpec(this, _baseUrl, void 0);
|
|
66942
67409
|
_classPrivateFieldInitSpec(this, _workflowUrl, void 0);
|
|
67410
|
+
_classPrivateFieldInitSpec(this, _accountRequests, new Map());
|
|
66943
67411
|
_classPrivateFieldSet(_component, this, vueComponent);
|
|
66944
67412
|
_classPrivateFieldSet(_baseUrl, this, window.location.origin + '/ead');
|
|
66945
67413
|
_classPrivateFieldSet(_workflowUrl, this, window.location.origin + '/workflow');
|
|
@@ -67137,6 +67605,30 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
67137
67605
|
}
|
|
67138
67606
|
return getUsers;
|
|
67139
67607
|
}()
|
|
67608
|
+
}, {
|
|
67609
|
+
key: "getAccountByUid",
|
|
67610
|
+
value: function getAccountByUid(uid) {
|
|
67611
|
+
var _this = this;
|
|
67612
|
+
if (!_classPrivateFieldGet(_accountRequests, this).has(uid)) {
|
|
67613
|
+
var request = _classPrivateFieldGet(_component, this).$api.get("".concat(_classPrivateFieldGet(_baseUrl, this), "/api/view-select-account/").concat(encodeURIComponent(uid))).then(function (_ref) {
|
|
67614
|
+
var _data$data;
|
|
67615
|
+
var data = _ref.data;
|
|
67616
|
+
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);
|
|
67617
|
+
return {
|
|
67618
|
+
value: uid,
|
|
67619
|
+
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
|
|
67620
|
+
};
|
|
67621
|
+
}).catch(function () {
|
|
67622
|
+
_classPrivateFieldGet(_accountRequests, _this).delete(uid);
|
|
67623
|
+
return {
|
|
67624
|
+
value: uid,
|
|
67625
|
+
label: uid
|
|
67626
|
+
};
|
|
67627
|
+
});
|
|
67628
|
+
_classPrivateFieldGet(_accountRequests, this).set(uid, request);
|
|
67629
|
+
}
|
|
67630
|
+
return _classPrivateFieldGet(_accountRequests, this).get(uid);
|
|
67631
|
+
}
|
|
67140
67632
|
}, {
|
|
67141
67633
|
key: "getRoles",
|
|
67142
67634
|
value: function () {
|
|
@@ -74853,13 +75345,6 @@ module.exports = {
|
|
|
74853
75345
|
|
|
74854
75346
|
/***/ }),
|
|
74855
75347
|
|
|
74856
|
-
/***/ "f063":
|
|
74857
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
74858
|
-
|
|
74859
|
-
// extracted by mini-css-extract-plugin
|
|
74860
|
-
|
|
74861
|
-
/***/ }),
|
|
74862
|
-
|
|
74863
75348
|
/***/ "f0b0":
|
|
74864
75349
|
/***/ (function(module, exports, __webpack_require__) {
|
|
74865
75350
|
|