@xatlas/rainbow-core 2.4.0 → 2.4.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 +259 -191
- package/dist/core.common.js.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.umd.js +259 -191
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +4 -4
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.common.js
CHANGED
|
@@ -17467,8 +17467,8 @@ var _codeIndex = {
|
|
|
17467
17467
|
value: {}
|
|
17468
17468
|
};
|
|
17469
17469
|
/* harmony default export */ var designer_NodeHandler = (NodeHandler_NodeHandler);
|
|
17470
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-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/NodeWrap.vue?vue&type=template&id=
|
|
17471
|
-
var
|
|
17470
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-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/NodeWrap.vue?vue&type=template&id=65e78fbf&scoped=true
|
|
17471
|
+
var NodeWrapvue_type_template_id_65e78fbf_scoped_true_render = function render() {
|
|
17472
17472
|
var _vm = this,
|
|
17473
17473
|
_c = _vm._self._c;
|
|
17474
17474
|
return _c('div', {
|
|
@@ -17497,9 +17497,9 @@ var NodeWrapvue_type_template_id_63654330_scoped_true_render = function render()
|
|
|
17497
17497
|
}
|
|
17498
17498
|
}) : _vm._e()], 1);
|
|
17499
17499
|
};
|
|
17500
|
-
var
|
|
17500
|
+
var NodeWrapvue_type_template_id_65e78fbf_scoped_true_staticRenderFns = [];
|
|
17501
17501
|
|
|
17502
|
-
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/NodeWrap.vue?vue&type=template&id=
|
|
17502
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/NodeWrap.vue?vue&type=template&id=65e78fbf&scoped=true
|
|
17503
17503
|
|
|
17504
17504
|
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-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/EndNode.vue?vue&type=template&id=778e5139&scoped=true
|
|
17505
17505
|
var EndNodevue_type_template_id_778e5139_scoped_true_render = function render() {
|
|
@@ -27271,7 +27271,7 @@ function NodeWrapvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Nod
|
|
|
27271
27271
|
return uiStyle[o] = 'start-node-box';
|
|
27272
27272
|
});
|
|
27273
27273
|
// eslint-disable-next-line no-return-assign
|
|
27274
|
-
[designer_NodeType.CHECK, designer_NodeType.CC, designer_NodeType.PARALLEL, designer_NodeType.JUDGE, designer_NodeType.TRIGGER, designer_NodeType.DELAY].forEach(function (o) {
|
|
27274
|
+
[designer_NodeType.CHECK, designer_NodeType.CC, designer_NodeType.TASK, designer_NodeType.PARALLEL, designer_NodeType.JUDGE, designer_NodeType.TRIGGER, designer_NodeType.DELAY].forEach(function (o) {
|
|
27275
27275
|
return uiStyle[o] = 'node-box';
|
|
27276
27276
|
});
|
|
27277
27277
|
// eslint-disable-next-line no-return-assign
|
|
@@ -27299,11 +27299,11 @@ function NodeWrapvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Nod
|
|
|
27299
27299
|
|
|
27300
27300
|
var NodeWrap_component = normalizeComponent(
|
|
27301
27301
|
designer_NodeWrapvue_type_script_lang_js,
|
|
27302
|
-
|
|
27303
|
-
|
|
27302
|
+
NodeWrapvue_type_template_id_65e78fbf_scoped_true_render,
|
|
27303
|
+
NodeWrapvue_type_template_id_65e78fbf_scoped_true_staticRenderFns,
|
|
27304
27304
|
false,
|
|
27305
27305
|
null,
|
|
27306
|
-
"
|
|
27306
|
+
"65e78fbf",
|
|
27307
27307
|
null
|
|
27308
27308
|
|
|
27309
27309
|
)
|
|
@@ -27722,9 +27722,8 @@ var EadBusiness_EadBusiness = /*#__PURE__*/function (_BusinessAdapter) {
|
|
|
27722
27722
|
}
|
|
27723
27723
|
}
|
|
27724
27724
|
}
|
|
27725
|
-
|
|
27726
27725
|
// 表单视图为自定义时,必须指定表单视图
|
|
27727
|
-
if ([designer_NodeType.START, designer_NodeType.CHECK, designer_NodeType.CC].includes(node.type)) {
|
|
27726
|
+
if ([designer_NodeType.START, designer_NodeType.CHECK, designer_NodeType.CC, designer_NodeType.TASK].includes(node.type)) {
|
|
27728
27727
|
if (node.data.eadCache.workflow.optionViewType === 'custom') {
|
|
27729
27728
|
if (!node.data.option_view_id) {
|
|
27730
27729
|
node.error += '表单视图为自主选择时,必须指定表单视图;';
|
|
@@ -27734,7 +27733,7 @@ var EadBusiness_EadBusiness = /*#__PURE__*/function (_BusinessAdapter) {
|
|
|
27734
27733
|
}
|
|
27735
27734
|
|
|
27736
27735
|
// 执行人策略为表达式时,表达式必须有值
|
|
27737
|
-
if ([designer_NodeType.CHECK, designer_NodeType.CC].includes(node.type)) {
|
|
27736
|
+
if ([designer_NodeType.CHECK, designer_NodeType.CC, designer_NodeType.TASK].includes(node.type)) {
|
|
27738
27737
|
if (node.data.actor_config.type === 'expression') {
|
|
27739
27738
|
if (!node.data.actor_config.expression.length) {
|
|
27740
27739
|
node.error += '执行人策略为表达式时,表达式必须有值;';
|
|
@@ -27973,7 +27972,7 @@ var EadBusiness_EadBusiness = /*#__PURE__*/function (_BusinessAdapter) {
|
|
|
27973
27972
|
}
|
|
27974
27973
|
}
|
|
27975
27974
|
return nodes.filter(function (node) {
|
|
27976
|
-
return [designer_NodeType.START, designer_NodeType.CHECK].includes(node.type);
|
|
27975
|
+
return [designer_NodeType.START, designer_NodeType.CHECK, designer_NodeType.TASK].includes(node.type);
|
|
27977
27976
|
});
|
|
27978
27977
|
}
|
|
27979
27978
|
}], [{
|
|
@@ -28012,6 +28011,7 @@ function EadApi_classExtractFieldDescriptor(receiver, privateMap, action) { if (
|
|
|
28012
28011
|
function EadApi_classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
|
|
28013
28012
|
var _component = /*#__PURE__*/new WeakMap();
|
|
28014
28013
|
var _baseUrl = /*#__PURE__*/new WeakMap();
|
|
28014
|
+
var _workflowUrl = /*#__PURE__*/new WeakMap();
|
|
28015
28015
|
var EadApi = /*#__PURE__*/function () {
|
|
28016
28016
|
function EadApi(vueComponent) {
|
|
28017
28017
|
EadApi_classCallCheck(this, EadApi);
|
|
@@ -28023,8 +28023,13 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
28023
28023
|
writable: true,
|
|
28024
28024
|
value: void 0
|
|
28025
28025
|
});
|
|
28026
|
+
EadApi_classPrivateFieldInitSpec(this, _workflowUrl, {
|
|
28027
|
+
writable: true,
|
|
28028
|
+
value: void 0
|
|
28029
|
+
});
|
|
28026
28030
|
EadApi_classPrivateFieldSet(this, _component, vueComponent);
|
|
28027
28031
|
EadApi_classPrivateFieldSet(this, _baseUrl, window.location.origin + '/ead');
|
|
28032
|
+
EadApi_classPrivateFieldSet(this, _workflowUrl, window.location.origin + '/workflow');
|
|
28028
28033
|
}
|
|
28029
28034
|
EadApi_createClass(EadApi, [{
|
|
28030
28035
|
key: "getComponent",
|
|
@@ -28081,11 +28086,11 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
28081
28086
|
case 0:
|
|
28082
28087
|
_context.prev = 0;
|
|
28083
28088
|
action = EadApi_classPrivateFieldGet(this, _component).action;
|
|
28084
|
-
url = EadApi_classPrivateFieldGet(this, _component)
|
|
28089
|
+
url = EadApi_classPrivateFieldGet(this, _component).view.apiURL.replace(EadApi_classPrivateFieldGet(this, _component).view.apiBaseURL + '/', '');
|
|
28085
28090
|
key = action.key;
|
|
28086
28091
|
method = action.method;
|
|
28087
28092
|
_context.next = 7;
|
|
28088
|
-
return EadApi_classPrivateFieldGet(this, _component).$api[method.toLowerCase()]("
|
|
28093
|
+
return EadApi_classPrivateFieldGet(this, _component).$api[method.toLowerCase()]("".concat(url).concat(key ? "/".concat(key) : ''), EadApi_objectSpread({}, EadApi_classPrivateFieldGet(this, _component).actionModel));
|
|
28089
28094
|
case 7:
|
|
28090
28095
|
_yield$_classPrivateF = _context.sent;
|
|
28091
28096
|
data = _yield$_classPrivateF.data;
|
|
@@ -28147,57 +28152,61 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
28147
28152
|
}
|
|
28148
28153
|
return getViewAttrs;
|
|
28149
28154
|
}()
|
|
28155
|
+
/**
|
|
28156
|
+
* 获取视图schema
|
|
28157
|
+
* @param viewId
|
|
28158
|
+
* @returns {Promise<*[]>}
|
|
28159
|
+
*/
|
|
28150
28160
|
}, {
|
|
28151
|
-
key: "
|
|
28152
|
-
value: function () {
|
|
28153
|
-
var
|
|
28154
|
-
var _yield$_classPrivateF4,
|
|
28161
|
+
key: "getViewSchema",
|
|
28162
|
+
value: (function () {
|
|
28163
|
+
var _getViewSchema = EadApi_asyncToGenerator( /*#__PURE__*/EadApi_regeneratorRuntime().mark(function _callee3(viewId) {
|
|
28164
|
+
var _yield$_classPrivateF4, data, _data2, message;
|
|
28155
28165
|
return EadApi_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
28156
28166
|
while (1) switch (_context3.prev = _context3.next) {
|
|
28157
28167
|
case 0:
|
|
28158
28168
|
_context3.prev = 0;
|
|
28159
28169
|
_context3.next = 3;
|
|
28160
|
-
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this,
|
|
28170
|
+
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _workflowUrl), "/api/viewschema/").concat(viewId));
|
|
28161
28171
|
case 3:
|
|
28162
28172
|
_yield$_classPrivateF4 = _context3.sent;
|
|
28163
|
-
|
|
28164
|
-
|
|
28165
|
-
|
|
28166
|
-
|
|
28167
|
-
_context3.prev = 9;
|
|
28173
|
+
data = _yield$_classPrivateF4.data;
|
|
28174
|
+
return _context3.abrupt("return", data);
|
|
28175
|
+
case 8:
|
|
28176
|
+
_context3.prev = 8;
|
|
28168
28177
|
_context3.t0 = _context3["catch"](0);
|
|
28169
|
-
|
|
28170
|
-
message =
|
|
28178
|
+
_data2 = _context3.t0.response.data;
|
|
28179
|
+
message = _data2 && _data2.content || '系统错误请与管理员联系。';
|
|
28171
28180
|
this.$message.error(message);
|
|
28172
|
-
case
|
|
28173
|
-
_context3.prev =
|
|
28174
|
-
return _context3.finish(
|
|
28175
|
-
case
|
|
28181
|
+
case 13:
|
|
28182
|
+
_context3.prev = 13;
|
|
28183
|
+
return _context3.finish(13);
|
|
28184
|
+
case 15:
|
|
28176
28185
|
case "end":
|
|
28177
28186
|
return _context3.stop();
|
|
28178
28187
|
}
|
|
28179
|
-
}, _callee3, this, [[0,
|
|
28188
|
+
}, _callee3, this, [[0, 8, 13, 15]]);
|
|
28180
28189
|
}));
|
|
28181
|
-
function
|
|
28182
|
-
return
|
|
28190
|
+
function getViewSchema(_x2) {
|
|
28191
|
+
return _getViewSchema.apply(this, arguments);
|
|
28183
28192
|
}
|
|
28184
|
-
return
|
|
28185
|
-
}()
|
|
28193
|
+
return getViewSchema;
|
|
28194
|
+
}())
|
|
28186
28195
|
}, {
|
|
28187
|
-
key: "
|
|
28196
|
+
key: "getUsers",
|
|
28188
28197
|
value: function () {
|
|
28189
|
-
var
|
|
28190
|
-
var _yield$
|
|
28198
|
+
var _getUsers = EadApi_asyncToGenerator( /*#__PURE__*/EadApi_regeneratorRuntime().mark(function _callee4() {
|
|
28199
|
+
var _yield$_classPrivateF5, _yield$_classPrivateF6, collection, data, message;
|
|
28191
28200
|
return EadApi_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
28192
28201
|
while (1) switch (_context4.prev = _context4.next) {
|
|
28193
28202
|
case 0:
|
|
28194
28203
|
_context4.prev = 0;
|
|
28195
28204
|
_context4.next = 3;
|
|
28196
|
-
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/api/flowdir-
|
|
28205
|
+
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/api/flowdir-user"));
|
|
28197
28206
|
case 3:
|
|
28198
|
-
_yield$
|
|
28199
|
-
_yield$
|
|
28200
|
-
collection = _yield$
|
|
28207
|
+
_yield$_classPrivateF5 = _context4.sent;
|
|
28208
|
+
_yield$_classPrivateF6 = _yield$_classPrivateF5.data.collection;
|
|
28209
|
+
collection = _yield$_classPrivateF6 === void 0 ? [] : _yield$_classPrivateF6;
|
|
28201
28210
|
return _context4.abrupt("return", collection);
|
|
28202
28211
|
case 9:
|
|
28203
28212
|
_context4.prev = 9;
|
|
@@ -28214,26 +28223,26 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
28214
28223
|
}
|
|
28215
28224
|
}, _callee4, this, [[0, 9, 14, 16]]);
|
|
28216
28225
|
}));
|
|
28217
|
-
function
|
|
28218
|
-
return
|
|
28226
|
+
function getUsers() {
|
|
28227
|
+
return _getUsers.apply(this, arguments);
|
|
28219
28228
|
}
|
|
28220
|
-
return
|
|
28229
|
+
return getUsers;
|
|
28221
28230
|
}()
|
|
28222
28231
|
}, {
|
|
28223
|
-
key: "
|
|
28232
|
+
key: "getRoles",
|
|
28224
28233
|
value: function () {
|
|
28225
|
-
var
|
|
28226
|
-
var _yield$
|
|
28234
|
+
var _getRoles = EadApi_asyncToGenerator( /*#__PURE__*/EadApi_regeneratorRuntime().mark(function _callee5(appKey) {
|
|
28235
|
+
var _yield$_classPrivateF7, _yield$_classPrivateF8, collection, data, message;
|
|
28227
28236
|
return EadApi_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
28228
28237
|
while (1) switch (_context5.prev = _context5.next) {
|
|
28229
28238
|
case 0:
|
|
28230
28239
|
_context5.prev = 0;
|
|
28231
28240
|
_context5.next = 3;
|
|
28232
|
-
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/api/flowdir-
|
|
28241
|
+
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/api/flowdir-role?app_key=") + appKey);
|
|
28233
28242
|
case 3:
|
|
28234
|
-
_yield$
|
|
28235
|
-
_yield$
|
|
28236
|
-
collection = _yield$
|
|
28243
|
+
_yield$_classPrivateF7 = _context5.sent;
|
|
28244
|
+
_yield$_classPrivateF8 = _yield$_classPrivateF7.data.collection;
|
|
28245
|
+
collection = _yield$_classPrivateF8 === void 0 ? [] : _yield$_classPrivateF8;
|
|
28237
28246
|
return _context5.abrupt("return", collection);
|
|
28238
28247
|
case 9:
|
|
28239
28248
|
_context5.prev = 9;
|
|
@@ -28250,37 +28259,32 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
28250
28259
|
}
|
|
28251
28260
|
}, _callee5, this, [[0, 9, 14, 16]]);
|
|
28252
28261
|
}));
|
|
28253
|
-
function
|
|
28254
|
-
return
|
|
28262
|
+
function getRoles(_x3) {
|
|
28263
|
+
return _getRoles.apply(this, arguments);
|
|
28255
28264
|
}
|
|
28256
|
-
return
|
|
28265
|
+
return getRoles;
|
|
28257
28266
|
}()
|
|
28258
|
-
/**
|
|
28259
|
-
* @deprecated
|
|
28260
|
-
*/
|
|
28261
28267
|
}, {
|
|
28262
|
-
key: "
|
|
28263
|
-
value:
|
|
28264
|
-
var
|
|
28265
|
-
var _yield$
|
|
28268
|
+
key: "getOrgs",
|
|
28269
|
+
value: function () {
|
|
28270
|
+
var _getOrgs = EadApi_asyncToGenerator( /*#__PURE__*/EadApi_regeneratorRuntime().mark(function _callee6() {
|
|
28271
|
+
var _yield$_classPrivateF9, _yield$_classPrivateF10, collection, data, message;
|
|
28266
28272
|
return EadApi_regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
28267
28273
|
while (1) switch (_context6.prev = _context6.next) {
|
|
28268
28274
|
case 0:
|
|
28269
28275
|
_context6.prev = 0;
|
|
28270
28276
|
_context6.next = 3;
|
|
28271
|
-
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/
|
|
28272
|
-
params: EadApi_objectSpread({}, params)
|
|
28273
|
-
});
|
|
28277
|
+
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/api/flowdir-org"));
|
|
28274
28278
|
case 3:
|
|
28275
|
-
_yield$
|
|
28276
|
-
_yield$
|
|
28277
|
-
|
|
28278
|
-
return _context6.abrupt("return",
|
|
28279
|
+
_yield$_classPrivateF9 = _context6.sent;
|
|
28280
|
+
_yield$_classPrivateF10 = _yield$_classPrivateF9.data.collection;
|
|
28281
|
+
collection = _yield$_classPrivateF10 === void 0 ? [] : _yield$_classPrivateF10;
|
|
28282
|
+
return _context6.abrupt("return", collection);
|
|
28279
28283
|
case 9:
|
|
28280
28284
|
_context6.prev = 9;
|
|
28281
28285
|
_context6.t0 = _context6["catch"](0);
|
|
28282
|
-
|
|
28283
|
-
message =
|
|
28286
|
+
data = _context6.t0.response.data;
|
|
28287
|
+
message = data && data.content || '系统错误请与管理员联系。';
|
|
28284
28288
|
this.$message.error(message);
|
|
28285
28289
|
case 14:
|
|
28286
28290
|
_context6.prev = 14;
|
|
@@ -28291,34 +28295,37 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
28291
28295
|
}
|
|
28292
28296
|
}, _callee6, this, [[0, 9, 14, 16]]);
|
|
28293
28297
|
}));
|
|
28294
|
-
function
|
|
28295
|
-
return
|
|
28298
|
+
function getOrgs() {
|
|
28299
|
+
return _getOrgs.apply(this, arguments);
|
|
28296
28300
|
}
|
|
28297
|
-
return
|
|
28298
|
-
}()
|
|
28301
|
+
return getOrgs;
|
|
28302
|
+
}()
|
|
28303
|
+
/**
|
|
28304
|
+
* @deprecated
|
|
28305
|
+
*/
|
|
28299
28306
|
}, {
|
|
28300
|
-
key: "
|
|
28301
|
-
value: function () {
|
|
28302
|
-
var
|
|
28303
|
-
var _yield$
|
|
28307
|
+
key: "getDataset",
|
|
28308
|
+
value: (function () {
|
|
28309
|
+
var _getDataset = EadApi_asyncToGenerator( /*#__PURE__*/EadApi_regeneratorRuntime().mark(function _callee7(datasetName, params) {
|
|
28310
|
+
var _yield$_classPrivateF11, _yield$_classPrivateF12, data, _data3, message;
|
|
28304
28311
|
return EadApi_regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
28305
28312
|
while (1) switch (_context7.prev = _context7.next) {
|
|
28306
28313
|
case 0:
|
|
28307
28314
|
_context7.prev = 0;
|
|
28308
28315
|
_context7.next = 3;
|
|
28309
|
-
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/
|
|
28316
|
+
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/dataset/").concat(datasetName), {
|
|
28310
28317
|
params: EadApi_objectSpread({}, params)
|
|
28311
28318
|
});
|
|
28312
28319
|
case 3:
|
|
28313
|
-
_yield$
|
|
28314
|
-
_yield$
|
|
28315
|
-
|
|
28316
|
-
return _context7.abrupt("return",
|
|
28320
|
+
_yield$_classPrivateF11 = _context7.sent;
|
|
28321
|
+
_yield$_classPrivateF12 = _yield$_classPrivateF11.data.data;
|
|
28322
|
+
data = _yield$_classPrivateF12 === void 0 ? [] : _yield$_classPrivateF12;
|
|
28323
|
+
return _context7.abrupt("return", data);
|
|
28317
28324
|
case 9:
|
|
28318
28325
|
_context7.prev = 9;
|
|
28319
28326
|
_context7.t0 = _context7["catch"](0);
|
|
28320
|
-
|
|
28321
|
-
message =
|
|
28327
|
+
_data3 = _context7.t0.response.data;
|
|
28328
|
+
message = _data3 && _data3.content || '系统错误请与管理员联系。';
|
|
28322
28329
|
this.$message.error(message);
|
|
28323
28330
|
case 14:
|
|
28324
28331
|
_context7.prev = 14;
|
|
@@ -28329,26 +28336,28 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
28329
28336
|
}
|
|
28330
28337
|
}, _callee7, this, [[0, 9, 14, 16]]);
|
|
28331
28338
|
}));
|
|
28332
|
-
function
|
|
28333
|
-
return
|
|
28339
|
+
function getDataset(_x4, _x5) {
|
|
28340
|
+
return _getDataset.apply(this, arguments);
|
|
28334
28341
|
}
|
|
28335
|
-
return
|
|
28336
|
-
}()
|
|
28342
|
+
return getDataset;
|
|
28343
|
+
}())
|
|
28337
28344
|
}, {
|
|
28338
|
-
key: "
|
|
28345
|
+
key: "getDatasetApi",
|
|
28339
28346
|
value: function () {
|
|
28340
|
-
var
|
|
28341
|
-
var _yield$
|
|
28347
|
+
var _getDatasetApi = EadApi_asyncToGenerator( /*#__PURE__*/EadApi_regeneratorRuntime().mark(function _callee8(datasetName, params) {
|
|
28348
|
+
var _yield$_classPrivateF13, _yield$_classPrivateF14, collection, data, message;
|
|
28342
28349
|
return EadApi_regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
28343
28350
|
while (1) switch (_context8.prev = _context8.next) {
|
|
28344
28351
|
case 0:
|
|
28345
28352
|
_context8.prev = 0;
|
|
28346
28353
|
_context8.next = 3;
|
|
28347
|
-
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/api/
|
|
28354
|
+
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/api/").concat(datasetName), {
|
|
28355
|
+
params: EadApi_objectSpread({}, params)
|
|
28356
|
+
});
|
|
28348
28357
|
case 3:
|
|
28349
|
-
_yield$
|
|
28350
|
-
_yield$
|
|
28351
|
-
collection = _yield$
|
|
28358
|
+
_yield$_classPrivateF13 = _context8.sent;
|
|
28359
|
+
_yield$_classPrivateF14 = _yield$_classPrivateF13.data.collection;
|
|
28360
|
+
collection = _yield$_classPrivateF14 === void 0 ? [] : _yield$_classPrivateF14;
|
|
28352
28361
|
return _context8.abrupt("return", collection);
|
|
28353
28362
|
case 9:
|
|
28354
28363
|
_context8.prev = 9;
|
|
@@ -28365,26 +28374,26 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
28365
28374
|
}
|
|
28366
28375
|
}, _callee8, this, [[0, 9, 14, 16]]);
|
|
28367
28376
|
}));
|
|
28368
|
-
function
|
|
28369
|
-
return
|
|
28377
|
+
function getDatasetApi(_x6, _x7) {
|
|
28378
|
+
return _getDatasetApi.apply(this, arguments);
|
|
28370
28379
|
}
|
|
28371
|
-
return
|
|
28380
|
+
return getDatasetApi;
|
|
28372
28381
|
}()
|
|
28373
28382
|
}, {
|
|
28374
|
-
key: "
|
|
28383
|
+
key: "getViews",
|
|
28375
28384
|
value: function () {
|
|
28376
|
-
var
|
|
28377
|
-
var _yield$
|
|
28385
|
+
var _getViews = EadApi_asyncToGenerator( /*#__PURE__*/EadApi_regeneratorRuntime().mark(function _callee9(name) {
|
|
28386
|
+
var _yield$_classPrivateF15, _yield$_classPrivateF16, collection, data, message;
|
|
28378
28387
|
return EadApi_regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
28379
28388
|
while (1) switch (_context9.prev = _context9.next) {
|
|
28380
28389
|
case 0:
|
|
28381
28390
|
_context9.prev = 0;
|
|
28382
28391
|
_context9.next = 3;
|
|
28383
|
-
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/api/flowdir-
|
|
28392
|
+
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/api/flowdir-view?name=") + name);
|
|
28384
28393
|
case 3:
|
|
28385
|
-
_yield$
|
|
28386
|
-
_yield$
|
|
28387
|
-
collection = _yield$
|
|
28394
|
+
_yield$_classPrivateF15 = _context9.sent;
|
|
28395
|
+
_yield$_classPrivateF16 = _yield$_classPrivateF15.data.collection;
|
|
28396
|
+
collection = _yield$_classPrivateF16 === void 0 ? [] : _yield$_classPrivateF16;
|
|
28388
28397
|
return _context9.abrupt("return", collection);
|
|
28389
28398
|
case 9:
|
|
28390
28399
|
_context9.prev = 9;
|
|
@@ -28401,7 +28410,43 @@ var EadApi = /*#__PURE__*/function () {
|
|
|
28401
28410
|
}
|
|
28402
28411
|
}, _callee9, this, [[0, 9, 14, 16]]);
|
|
28403
28412
|
}));
|
|
28404
|
-
function
|
|
28413
|
+
function getViews(_x8) {
|
|
28414
|
+
return _getViews.apply(this, arguments);
|
|
28415
|
+
}
|
|
28416
|
+
return getViews;
|
|
28417
|
+
}()
|
|
28418
|
+
}, {
|
|
28419
|
+
key: "getDrivers",
|
|
28420
|
+
value: function () {
|
|
28421
|
+
var _getDrivers = EadApi_asyncToGenerator( /*#__PURE__*/EadApi_regeneratorRuntime().mark(function _callee10(name) {
|
|
28422
|
+
var _yield$_classPrivateF17, _yield$_classPrivateF18, collection, data, message;
|
|
28423
|
+
return EadApi_regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
28424
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
28425
|
+
case 0:
|
|
28426
|
+
_context10.prev = 0;
|
|
28427
|
+
_context10.next = 3;
|
|
28428
|
+
return EadApi_classPrivateFieldGet(this, _component).$api.get("".concat(EadApi_classPrivateFieldGet(this, _baseUrl), "/api/flowdir-driver?name=") + name);
|
|
28429
|
+
case 3:
|
|
28430
|
+
_yield$_classPrivateF17 = _context10.sent;
|
|
28431
|
+
_yield$_classPrivateF18 = _yield$_classPrivateF17.data.collection;
|
|
28432
|
+
collection = _yield$_classPrivateF18 === void 0 ? [] : _yield$_classPrivateF18;
|
|
28433
|
+
return _context10.abrupt("return", collection);
|
|
28434
|
+
case 9:
|
|
28435
|
+
_context10.prev = 9;
|
|
28436
|
+
_context10.t0 = _context10["catch"](0);
|
|
28437
|
+
data = _context10.t0.response.data;
|
|
28438
|
+
message = data && data.content || '系统错误请与管理员联系。';
|
|
28439
|
+
this.$message.error(message);
|
|
28440
|
+
case 14:
|
|
28441
|
+
_context10.prev = 14;
|
|
28442
|
+
return _context10.finish(14);
|
|
28443
|
+
case 16:
|
|
28444
|
+
case "end":
|
|
28445
|
+
return _context10.stop();
|
|
28446
|
+
}
|
|
28447
|
+
}, _callee10, this, [[0, 9, 14, 16]]);
|
|
28448
|
+
}));
|
|
28449
|
+
function getDrivers(_x9) {
|
|
28405
28450
|
return _getDrivers.apply(this, arguments);
|
|
28406
28451
|
}
|
|
28407
28452
|
return getDrivers;
|
|
@@ -28567,8 +28612,8 @@ var WorkFlowDesigner_component = normalizeComponent(
|
|
|
28567
28612
|
)
|
|
28568
28613
|
|
|
28569
28614
|
/* harmony default export */ var WorkFlowDesigner = (WorkFlowDesigner_component.exports);
|
|
28570
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-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/runtime/RuntimeWorkFlow.vue?vue&type=template&id=
|
|
28571
|
-
var
|
|
28615
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-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/runtime/RuntimeWorkFlow.vue?vue&type=template&id=4cf1af68&scoped=true
|
|
28616
|
+
var RuntimeWorkFlowvue_type_template_id_4cf1af68_scoped_true_render = function render() {
|
|
28572
28617
|
var _this = this,
|
|
28573
28618
|
_vm$currentNode$data$,
|
|
28574
28619
|
_vm$currentNode$data$2;
|
|
@@ -28625,7 +28670,7 @@ var RuntimeWorkFlowvue_type_template_id_bf3aa83e_scoped_true_render = function r
|
|
|
28625
28670
|
attrs: {
|
|
28626
28671
|
"value": _vm.CHECK_ACTION.PASS
|
|
28627
28672
|
}
|
|
28628
|
-
}, [_vm._v(" " + _vm._s((_vm$currentNode$data$ = _vm.currentNode.data.other_options) !== null && _vm$currentNode$data$ !== void 0 && (_vm$currentNode$data$ = _vm$currentNode$data$.custom_action) !== null && _vm$currentNode$data$ !== void 0 && _vm$currentNode$data$.pass ? _vm.currentNode.data.other_options.custom_action.pass : '审批通过') + " ")]), _vm.runtimeData.pageOperate.allowBack ? _c('a-radio-button', {
|
|
28673
|
+
}, [_vm._v(" " + _vm._s((_vm$currentNode$data$ = _vm.currentNode.data.other_options) !== null && _vm$currentNode$data$ !== void 0 && (_vm$currentNode$data$ = _vm$currentNode$data$.custom_action) !== null && _vm$currentNode$data$ !== void 0 && _vm$currentNode$data$.pass ? _vm.currentNode.data.other_options.custom_action.pass : _vm.currentNode.type === 'check' ? '审批通过' : '执行') + " ")]), _vm.runtimeData.pageOperate.allowBack ? _c('a-radio-button', {
|
|
28629
28674
|
attrs: {
|
|
28630
28675
|
"value": _vm.CHECK_ACTION.BACK
|
|
28631
28676
|
}
|
|
@@ -28681,7 +28726,7 @@ var RuntimeWorkFlowvue_type_template_id_bf3aa83e_scoped_true_render = function r
|
|
|
28681
28726
|
}
|
|
28682
28727
|
}, [_c('a-form-model-item', {
|
|
28683
28728
|
attrs: {
|
|
28684
|
-
"label": [_vm.CHECK_ACTION.REASSIGN, _vm.CHECK_ACTION.INVOLVE, _vm.CHECK_ACTION.END].includes(_vm.workflowReq.page_operate.action) ? '备注' : '审批意见',
|
|
28729
|
+
"label": [_vm.CHECK_ACTION.REASSIGN, _vm.CHECK_ACTION.INVOLVE, _vm.CHECK_ACTION.END, _vm.CHECK_ACTION.BACK].includes(_vm.workflowReq.page_operate.action) || _vm.currentNode.type === 'task' ? '备注' : '审批意见',
|
|
28685
28730
|
"prop": "xxx",
|
|
28686
28731
|
"size": "small"
|
|
28687
28732
|
}
|
|
@@ -28691,7 +28736,7 @@ var RuntimeWorkFlowvue_type_template_id_bf3aa83e_scoped_true_render = function r
|
|
|
28691
28736
|
minRows: 4,
|
|
28692
28737
|
maxRows: 6
|
|
28693
28738
|
},
|
|
28694
|
-
"placeholder": "\u8BF7\u8F93\u5165".concat([_vm.CHECK_ACTION.REASSIGN, _vm.CHECK_ACTION.INVOLVE, _vm.CHECK_ACTION.END].includes(_vm.workflowReq.page_operate.action) ? '备注' : '审批或退回意见')
|
|
28739
|
+
"placeholder": "\u8BF7\u8F93\u5165".concat([_vm.CHECK_ACTION.REASSIGN, _vm.CHECK_ACTION.INVOLVE, _vm.CHECK_ACTION.END].includes(_vm.workflowReq.page_operate.action) || _vm.currentNode.type === 'task' ? '备注' : '审批或退回意见')
|
|
28695
28740
|
},
|
|
28696
28741
|
model: {
|
|
28697
28742
|
value: _vm.workflowReq.page_operate.operate_content,
|
|
@@ -29088,7 +29133,7 @@ var RuntimeWorkFlowvue_type_template_id_bf3aa83e_scoped_true_render = function r
|
|
|
29088
29133
|
key: "2",
|
|
29089
29134
|
attrs: {
|
|
29090
29135
|
"force-render": "",
|
|
29091
|
-
"tab": "
|
|
29136
|
+
"tab": "操作记录"
|
|
29092
29137
|
}
|
|
29093
29138
|
}, [_c('a-card', {
|
|
29094
29139
|
attrs: {
|
|
@@ -29127,7 +29172,7 @@ var RuntimeWorkFlowvue_type_template_id_bf3aa83e_scoped_true_render = function r
|
|
|
29127
29172
|
"direction": "vertical"
|
|
29128
29173
|
},
|
|
29129
29174
|
slot: "description"
|
|
29130
|
-
}, [_c('div', [_vm._v(_vm._s(item.operate_desc))]), item.operate_content ? _c('div', [_vm._v(" 审批意见:" + _vm._s(item.operate_content) + " ")]) : _vm._e(), _c('a-space', [_c('span', {
|
|
29175
|
+
}, [_c('div', [_vm._v(_vm._s(item.operate_desc))]), item.operate_content ? _c('div', [[_vm.CHECK_ACTION.REASSIGN, _vm.CHECK_ACTION.INVOLVE, _vm.CHECK_ACTION.END, _vm.CHECK_ACTION.EXECUTE].includes(item.operate) ? _c('div', [_vm._v(" 备注:" + _vm._s(item.operate_content) + " ")]) : _c('div', [_vm._v(" 审批意见:" + _vm._s(item.operate_content) + " ")])]) : _vm._e(), _c('a-space', [_c('span', {
|
|
29131
29176
|
staticStyle: {
|
|
29132
29177
|
"color": "#18274a"
|
|
29133
29178
|
}
|
|
@@ -29155,7 +29200,7 @@ var RuntimeWorkFlowvue_type_template_id_bf3aa83e_scoped_true_render = function r
|
|
|
29155
29200
|
}
|
|
29156
29201
|
}), _vm._v(" " + _vm._s(item.operator.name) + "(" + _vm._s(item.operator.org_name) + ") ")], 1)], 1)], 1)], 1)], 1);
|
|
29157
29202
|
}
|
|
29158
|
-
}], null, false,
|
|
29203
|
+
}], null, false, 1631359906)
|
|
29159
29204
|
})], 1)], 1) : _vm._e(), _vm.paneSet.has('3') ? _c('a-tab-pane', {
|
|
29160
29205
|
key: "3",
|
|
29161
29206
|
attrs: {
|
|
@@ -29249,9 +29294,9 @@ var RuntimeWorkFlowvue_type_template_id_bf3aa83e_scoped_true_render = function r
|
|
|
29249
29294
|
}
|
|
29250
29295
|
}, [_vm._v("关闭")])], 1)], 2)], 1);
|
|
29251
29296
|
};
|
|
29252
|
-
var
|
|
29297
|
+
var RuntimeWorkFlowvue_type_template_id_4cf1af68_scoped_true_staticRenderFns = [];
|
|
29253
29298
|
|
|
29254
|
-
// CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=template&id=
|
|
29299
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=template&id=4cf1af68&scoped=true
|
|
29255
29300
|
|
|
29256
29301
|
// EXTERNAL MODULE: external {"root":"vuedraggable","commonjs2":"vuedraggable","commonjs":"vuedraggable","amd":"vuedraggable"}
|
|
29257
29302
|
var external_root_vuedraggable_commonjs2_vuedraggable_commonjs_vuedraggable_amd_vuedraggable_ = __webpack_require__("289a");
|
|
@@ -29295,7 +29340,8 @@ var CHECK_ACTION = {
|
|
|
29295
29340
|
BACK: 'back',
|
|
29296
29341
|
REASSIGN: 'reassign',
|
|
29297
29342
|
INVOLVE: 'involve',
|
|
29298
|
-
END: 'end'
|
|
29343
|
+
END: 'end',
|
|
29344
|
+
EXECUTE: 'execute'
|
|
29299
29345
|
};
|
|
29300
29346
|
/* harmony default export */ var RuntimeWorkFlowvue_type_script_lang_js = ({
|
|
29301
29347
|
name: 'runtime-workflow',
|
|
@@ -29553,6 +29599,7 @@ var CHECK_ACTION = {
|
|
|
29553
29599
|
userCache: {},
|
|
29554
29600
|
expressionError: false,
|
|
29555
29601
|
workflow: {},
|
|
29602
|
+
formAttrs: [],
|
|
29556
29603
|
activityColumns: []
|
|
29557
29604
|
};
|
|
29558
29605
|
},
|
|
@@ -29709,7 +29756,6 @@ var CHECK_ACTION = {
|
|
|
29709
29756
|
nodeJson = data === null || data === void 0 || (_data$data3 = data.data) === null || _data$data3 === void 0 || (_data$data3 = _data$data3.workflow) === null || _data$data3 === void 0 ? void 0 : _data$data3.node_json;
|
|
29710
29757
|
node = nodeJson ? nodeJson === null || nodeJson === void 0 ? void 0 : nodeJson.node : null;
|
|
29711
29758
|
_this.nodeData = node ? RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(Object.values(node)) : [];
|
|
29712
|
-
|
|
29713
29759
|
// panes 初始化
|
|
29714
29760
|
paneSet = _this.paneSet;
|
|
29715
29761
|
[OPERATE.START, OPERATE.CHECK].includes(_this.workflowReq.operate) && paneSet.add('1');
|
|
@@ -29978,44 +30024,66 @@ var CHECK_ACTION = {
|
|
|
29978
30024
|
* @param nodeHandler {NodeHandler}
|
|
29979
30025
|
*/
|
|
29980
30026
|
nodeHandlerReady: function nodeHandlerReady(nodeHandler) {
|
|
29981
|
-
var
|
|
29982
|
-
|
|
29983
|
-
|
|
29984
|
-
|
|
29985
|
-
|
|
29986
|
-
|
|
29987
|
-
|
|
29988
|
-
|
|
29989
|
-
|
|
29990
|
-
|
|
29991
|
-
|
|
29992
|
-
|
|
29993
|
-
|
|
29994
|
-
|
|
29995
|
-
|
|
29996
|
-
|
|
29997
|
-
|
|
29998
|
-
|
|
29999
|
-
|
|
30000
|
-
|
|
30001
|
-
|
|
30027
|
+
var _this6 = this;
|
|
30028
|
+
return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
|
|
30029
|
+
var _node$data, _this6$runtimeData$cu;
|
|
30030
|
+
var node, columns, schema, optionForms;
|
|
30031
|
+
return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30032
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
30033
|
+
case 0:
|
|
30034
|
+
_this6.nodeHandler = nodeHandler;
|
|
30035
|
+
node = _this6.currentNode = nodeHandler.getNode(_this6.runtimeData.currentNodeCode); // 健壮考虑
|
|
30036
|
+
if (!_this6.runtimeData.PageOperate && node !== null && node !== void 0 && (_node$data = node.data) !== null && _node$data !== void 0 && _node$data.page_options) {
|
|
30037
|
+
_this6.runtimeData.PageOperate = node.data.page_options;
|
|
30038
|
+
}
|
|
30039
|
+
columns = _this6.columns;
|
|
30040
|
+
if (!(node && node.data.option_view_id)) {
|
|
30041
|
+
_context3.next = 9;
|
|
30042
|
+
break;
|
|
30043
|
+
}
|
|
30044
|
+
_context3.next = 7;
|
|
30045
|
+
return _this6.eadApi.getViewSchema(node.data.option_view_id);
|
|
30046
|
+
case 7:
|
|
30047
|
+
schema = _context3.sent;
|
|
30048
|
+
columns = schema === null || schema === void 0 ? void 0 : schema.model.attrs;
|
|
30049
|
+
case 9:
|
|
30050
|
+
// form load
|
|
30051
|
+
optionForms = (_this6$runtimeData$cu = _this6.runtimeData.currentNodeOptionForms) !== null && _this6$runtimeData$cu !== void 0 ? _this6$runtimeData$cu : node === null || node === void 0 ? void 0 : node.data.option_forms;
|
|
30052
|
+
_this6.runtimeData.currentNodeFormItem = optionForms.filter(function (value) {
|
|
30053
|
+
return value.access !== 'none';
|
|
30054
|
+
}).map(function (value) {
|
|
30055
|
+
// 【BUG】 全局:const attr = this.view.schema.model.attrs.find(value1 => value1.name === value.attrCode)
|
|
30056
|
+
var attr = columns.find(function (value1) {
|
|
30057
|
+
return value1.name === value.attrCode;
|
|
30058
|
+
});
|
|
30059
|
+
if (attr) {
|
|
30060
|
+
if (!attr.params) {
|
|
30061
|
+
attr.params = {};
|
|
30062
|
+
}
|
|
30063
|
+
attr.params.readonly = value.access === 'readonly';
|
|
30064
|
+
attr.required = value.required;
|
|
30065
|
+
if (node && node.data.option_view_id) {
|
|
30066
|
+
_this6.actionModel[attr.name] = null;
|
|
30067
|
+
}
|
|
30068
|
+
}
|
|
30069
|
+
return attr;
|
|
30070
|
+
}).filter(function (value) {
|
|
30071
|
+
return value;
|
|
30072
|
+
});
|
|
30073
|
+
// back load
|
|
30074
|
+
_this6.isCustomBack = (node === null || node === void 0 ? void 0 : node.data.back_type) === 'custom';
|
|
30075
|
+
if (_this6.isCustomBack) {
|
|
30076
|
+
if (!_this6.runtimeData.customBackNodes) {
|
|
30077
|
+
_this6.runtimeData.customBackNodes = RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(node === null || node === void 0 ? void 0 : node.data.custom_back_nodes);
|
|
30078
|
+
}
|
|
30079
|
+
_this6.workflowReq.page_operate.custom_back_node_code = _this6.runtimeData.customBackNodes[0];
|
|
30080
|
+
}
|
|
30081
|
+
case 13:
|
|
30082
|
+
case "end":
|
|
30083
|
+
return _context3.stop();
|
|
30002
30084
|
}
|
|
30003
|
-
|
|
30004
|
-
|
|
30005
|
-
}
|
|
30006
|
-
return attr;
|
|
30007
|
-
}).filter(function (value) {
|
|
30008
|
-
return value;
|
|
30009
|
-
});
|
|
30010
|
-
|
|
30011
|
-
// back load
|
|
30012
|
-
this.isCustomBack = (node === null || node === void 0 ? void 0 : node.data.back_type) === 'custom';
|
|
30013
|
-
if (this.isCustomBack) {
|
|
30014
|
-
if (!this.runtimeData.customBackNodes) {
|
|
30015
|
-
this.runtimeData.customBackNodes = RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(node === null || node === void 0 ? void 0 : node.data.custom_back_nodes);
|
|
30016
|
-
}
|
|
30017
|
-
this.workflowReq.page_operate.custom_back_node_code = this.runtimeData.customBackNodes[0];
|
|
30018
|
-
}
|
|
30085
|
+
}, _callee3);
|
|
30086
|
+
}))();
|
|
30019
30087
|
},
|
|
30020
30088
|
showFullScreenFlow: function showFullScreenFlow() {
|
|
30021
30089
|
var _this7 = this;
|
|
@@ -30032,33 +30100,33 @@ var CHECK_ACTION = {
|
|
|
30032
30100
|
},
|
|
30033
30101
|
handleItemChange: function handleItemChange(value, attr) {
|
|
30034
30102
|
var _this8 = this;
|
|
30035
|
-
return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function
|
|
30103
|
+
return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
|
|
30036
30104
|
var name, fd, res;
|
|
30037
|
-
return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function
|
|
30038
|
-
while (1) switch (
|
|
30105
|
+
return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
30106
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
30039
30107
|
case 0:
|
|
30040
30108
|
name = attr.name;
|
|
30041
30109
|
if (!(value instanceof FileList)) {
|
|
30042
|
-
|
|
30110
|
+
_context4.next = 14;
|
|
30043
30111
|
break;
|
|
30044
30112
|
}
|
|
30045
30113
|
if (!value[0]) {
|
|
30046
|
-
|
|
30114
|
+
_context4.next = 11;
|
|
30047
30115
|
break;
|
|
30048
30116
|
}
|
|
30049
30117
|
fd = new FormData();
|
|
30050
30118
|
fd.append(name, value[0]);
|
|
30051
|
-
|
|
30119
|
+
_context4.next = 7;
|
|
30052
30120
|
return _this8.$api.post('/upload', fd);
|
|
30053
30121
|
case 7:
|
|
30054
|
-
res =
|
|
30122
|
+
res = _context4.sent;
|
|
30055
30123
|
value = res.data.data[name];
|
|
30056
|
-
|
|
30124
|
+
_context4.next = 12;
|
|
30057
30125
|
break;
|
|
30058
30126
|
case 11:
|
|
30059
30127
|
value = null;
|
|
30060
30128
|
case 12:
|
|
30061
|
-
|
|
30129
|
+
_context4.next = 15;
|
|
30062
30130
|
break;
|
|
30063
30131
|
case 14:
|
|
30064
30132
|
if (value instanceof Date) {
|
|
@@ -30080,9 +30148,9 @@ var CHECK_ACTION = {
|
|
|
30080
30148
|
_this8.loadTodo();
|
|
30081
30149
|
case 19:
|
|
30082
30150
|
case "end":
|
|
30083
|
-
return
|
|
30151
|
+
return _context4.stop();
|
|
30084
30152
|
}
|
|
30085
|
-
},
|
|
30153
|
+
}, _callee4);
|
|
30086
30154
|
}))();
|
|
30087
30155
|
},
|
|
30088
30156
|
validExpression: function validExpression() {
|
|
@@ -30187,8 +30255,8 @@ var CHECK_ACTION = {
|
|
|
30187
30255
|
});
|
|
30188
30256
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=script&lang=js
|
|
30189
30257
|
/* harmony default export */ var runtime_RuntimeWorkFlowvue_type_script_lang_js = (RuntimeWorkFlowvue_type_script_lang_js);
|
|
30190
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=style&index=0&id=
|
|
30191
|
-
var
|
|
30258
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=style&index=0&id=4cf1af68&prod&lang=less&scoped=true
|
|
30259
|
+
var RuntimeWorkFlowvue_type_style_index_0_id_4cf1af68_prod_lang_less_scoped_true = __webpack_require__("8e2d");
|
|
30192
30260
|
|
|
30193
30261
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue
|
|
30194
30262
|
|
|
@@ -30201,11 +30269,11 @@ var RuntimeWorkFlowvue_type_style_index_0_id_bf3aa83e_prod_lang_less_scoped_true
|
|
|
30201
30269
|
|
|
30202
30270
|
var RuntimeWorkFlow_component = normalizeComponent(
|
|
30203
30271
|
runtime_RuntimeWorkFlowvue_type_script_lang_js,
|
|
30204
|
-
|
|
30205
|
-
|
|
30272
|
+
RuntimeWorkFlowvue_type_template_id_4cf1af68_scoped_true_render,
|
|
30273
|
+
RuntimeWorkFlowvue_type_template_id_4cf1af68_scoped_true_staticRenderFns,
|
|
30206
30274
|
false,
|
|
30207
30275
|
null,
|
|
30208
|
-
"
|
|
30276
|
+
"4cf1af68",
|
|
30209
30277
|
null
|
|
30210
30278
|
|
|
30211
30279
|
)
|
|
@@ -45635,6 +45703,17 @@ module.exports = require("vue");
|
|
|
45635
45703
|
/* unused harmony reexport * */
|
|
45636
45704
|
|
|
45637
45705
|
|
|
45706
|
+
/***/ }),
|
|
45707
|
+
|
|
45708
|
+
/***/ "8e2d":
|
|
45709
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
45710
|
+
|
|
45711
|
+
"use strict";
|
|
45712
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RuntimeWorkFlow_vue_vue_type_style_index_0_id_4cf1af68_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d6a8");
|
|
45713
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RuntimeWorkFlow_vue_vue_type_style_index_0_id_4cf1af68_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RuntimeWorkFlow_vue_vue_type_style_index_0_id_4cf1af68_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
45714
|
+
/* unused harmony reexport * */
|
|
45715
|
+
|
|
45716
|
+
|
|
45638
45717
|
/***/ }),
|
|
45639
45718
|
|
|
45640
45719
|
/***/ "8eee":
|
|
@@ -45654,13 +45733,6 @@ module.exports = Array.isArray || function (arr) {
|
|
|
45654
45733
|
};
|
|
45655
45734
|
|
|
45656
45735
|
|
|
45657
|
-
/***/ }),
|
|
45658
|
-
|
|
45659
|
-
/***/ "91f5":
|
|
45660
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
45661
|
-
|
|
45662
|
-
// extracted by mini-css-extract-plugin
|
|
45663
|
-
|
|
45664
45736
|
/***/ }),
|
|
45665
45737
|
|
|
45666
45738
|
/***/ "93bb":
|
|
@@ -50125,6 +50197,13 @@ module.exports = require("axios");
|
|
|
50125
50197
|
|
|
50126
50198
|
/***/ }),
|
|
50127
50199
|
|
|
50200
|
+
/***/ "d6a8":
|
|
50201
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
50202
|
+
|
|
50203
|
+
// extracted by mini-css-extract-plugin
|
|
50204
|
+
|
|
50205
|
+
/***/ }),
|
|
50206
|
+
|
|
50128
50207
|
/***/ "da25":
|
|
50129
50208
|
/***/ (function(module, exports, __webpack_require__) {
|
|
50130
50209
|
|
|
@@ -51248,17 +51327,6 @@ module.exports = require("vuex/dist/logger");
|
|
|
51248
51327
|
|
|
51249
51328
|
}));
|
|
51250
51329
|
|
|
51251
|
-
/***/ }),
|
|
51252
|
-
|
|
51253
|
-
/***/ "f005":
|
|
51254
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
51255
|
-
|
|
51256
|
-
"use strict";
|
|
51257
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RuntimeWorkFlow_vue_vue_type_style_index_0_id_bf3aa83e_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("91f5");
|
|
51258
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RuntimeWorkFlow_vue_vue_type_style_index_0_id_bf3aa83e_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_RuntimeWorkFlow_vue_vue_type_style_index_0_id_bf3aa83e_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
51259
|
-
/* unused harmony reexport * */
|
|
51260
|
-
|
|
51261
|
-
|
|
51262
51330
|
/***/ }),
|
|
51263
51331
|
|
|
51264
51332
|
/***/ "f0c7":
|