@xatlas/rainbow-core 2.4.2 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.common.js +199 -85
- package/dist/core.common.js.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.umd.js +199 -85
- 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
|
@@ -3151,7 +3151,8 @@ function list_toPrimitive(t, r) { if ("object" != list_typeof(t) || !t) return t
|
|
|
3151
3151
|
var _this = this;
|
|
3152
3152
|
var h = this.$createElement;
|
|
3153
3153
|
var idName = this.idName,
|
|
3154
|
-
hide = this.hide
|
|
3154
|
+
hide = this.hide,
|
|
3155
|
+
action = this.action;
|
|
3155
3156
|
var columns = this.model.attrs.filter(function (attr) {
|
|
3156
3157
|
return !['all', 'list'].includes(attr.hidden) && !hide.includes(attr.name) && attr.name !== idName && attr.metaType !== 'model' && attr.type !== 'link';
|
|
3157
3158
|
}).map(function (attr) {
|
|
@@ -3181,7 +3182,7 @@ function list_toPrimitive(t, r) { if ("object" != list_typeof(t) || !t) return t
|
|
|
3181
3182
|
"value": text,
|
|
3182
3183
|
"row": record,
|
|
3183
3184
|
"schema": attr,
|
|
3184
|
-
"editable": _this.
|
|
3185
|
+
"editable": _this.editable(record, action, attr),
|
|
3185
3186
|
"idName": _this.idName,
|
|
3186
3187
|
"rowIndex": index
|
|
3187
3188
|
}
|
|
@@ -3615,6 +3616,14 @@ function list_toPrimitive(t, r) { if ("object" != list_typeof(t) || !t) return t
|
|
|
3615
3616
|
onFileChange: function onFileChange(action, files) {
|
|
3616
3617
|
var key = action.list ? action.list : 'file';
|
|
3617
3618
|
this.handleAction(action, null, list_defineProperty({}, key, files));
|
|
3619
|
+
},
|
|
3620
|
+
editable: function editable(record, action, attr) {
|
|
3621
|
+
var editable = this.configs['list.actionRowNotEditing.key'] && this.configs['list.actionRowNotEditing.value'] ? this.actionRowEditing && !this.configs['list.actionRowNotEditing.value'].split(',').includes(record[this.configs['list.actionRowNotEditing.key']]) : this.actionRowEditing;
|
|
3622
|
+
if (action !== null && action !== void 0 && action.list) {
|
|
3623
|
+
var list = action.list.split(',');
|
|
3624
|
+
return editable && list.includes(attr.name);
|
|
3625
|
+
}
|
|
3626
|
+
return editable;
|
|
3618
3627
|
}
|
|
3619
3628
|
}
|
|
3620
3629
|
});
|
|
@@ -5138,8 +5147,9 @@ var SHOW_RULES = {
|
|
|
5138
5147
|
}];
|
|
5139
5148
|
},
|
|
5140
5149
|
settingActions: function settingActions() {
|
|
5150
|
+
var _this$action;
|
|
5141
5151
|
var actions = [{
|
|
5142
|
-
key: '',
|
|
5152
|
+
key: ((_this$action = this.action) === null || _this$action === void 0 ? void 0 : _this$action.key) || '',
|
|
5143
5153
|
name: '保存',
|
|
5144
5154
|
icon: 'save',
|
|
5145
5155
|
method: 'PUT',
|
|
@@ -5399,18 +5409,18 @@ var SHOW_RULES = {
|
|
|
5399
5409
|
actionModel = this.actionModel,
|
|
5400
5410
|
idName = this.idName,
|
|
5401
5411
|
editions = this.editions,
|
|
5402
|
-
_this$
|
|
5403
|
-
key = _this$
|
|
5404
|
-
method = _this$
|
|
5405
|
-
_this$
|
|
5406
|
-
_this$
|
|
5407
|
-
_this$
|
|
5408
|
-
_this$
|
|
5409
|
-
type = _this$
|
|
5410
|
-
redirectProfile = _this$
|
|
5411
|
-
autofill = _this$
|
|
5412
|
-
_this$
|
|
5413
|
-
confirmActionDialog = _this$
|
|
5412
|
+
_this$action2 = this.action,
|
|
5413
|
+
key = _this$action2.key,
|
|
5414
|
+
method = _this$action2.method,
|
|
5415
|
+
_this$action2$params = _this$action2.params,
|
|
5416
|
+
_this$action2$params2 = _this$action2$params === void 0 ? {} : _this$action2$params,
|
|
5417
|
+
_this$action2$params3 = _this$action2$params2.commit,
|
|
5418
|
+
_this$action2$params4 = _this$action2$params3 === void 0 ? {} : _this$action2$params3,
|
|
5419
|
+
type = _this$action2$params4.type,
|
|
5420
|
+
redirectProfile = _this$action2$params4.redirectProfile,
|
|
5421
|
+
autofill = _this$action2$params2.autofill,
|
|
5422
|
+
_this$action2$params5 = _this$action2$params2.confirmActionDialog,
|
|
5423
|
+
confirmActionDialog = _this$action2$params5 === void 0 ? null : _this$action2$params5,
|
|
5414
5424
|
schema = this.schema;
|
|
5415
5425
|
var submit = /*#__PURE__*/function () {
|
|
5416
5426
|
var _ref2 = action_asyncToGenerator( /*#__PURE__*/action_regeneratorRuntime().mark(function _callee3() {
|
|
@@ -16183,8 +16193,8 @@ var WorkFlowDesignervue_type_template_id_a2ad5ee6_scoped_true_staticRenderFns =
|
|
|
16183
16193
|
|
|
16184
16194
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/WorkFlowDesigner.vue?vue&type=template&id=a2ad5ee6&scoped=true
|
|
16185
16195
|
|
|
16186
|
-
// 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/NodeContainer.vue?vue&type=template&id=
|
|
16187
|
-
var
|
|
16196
|
+
// 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/NodeContainer.vue?vue&type=template&id=1bb5dbd7
|
|
16197
|
+
var NodeContainervue_type_template_id_1bb5dbd7_render = function render() {
|
|
16188
16198
|
var _vm = this,
|
|
16189
16199
|
_c = _vm._self._c;
|
|
16190
16200
|
return _c('section', {
|
|
@@ -16241,9 +16251,9 @@ var NodeContainervue_type_template_id_66b3fd75_render = function render() {
|
|
|
16241
16251
|
}
|
|
16242
16252
|
}) : _vm._e()], 1)]);
|
|
16243
16253
|
};
|
|
16244
|
-
var
|
|
16254
|
+
var NodeContainervue_type_template_id_1bb5dbd7_staticRenderFns = [];
|
|
16245
16255
|
|
|
16246
|
-
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/NodeContainer.vue?vue&type=template&id=
|
|
16256
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/NodeContainer.vue?vue&type=template&id=1bb5dbd7
|
|
16247
16257
|
|
|
16248
16258
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/NodeType.js
|
|
16249
16259
|
function NodeType_typeof(o) { "@babel/helpers - typeof"; return NodeType_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; }, NodeType_typeof(o); }
|
|
@@ -27631,6 +27641,7 @@ var BusinessAdapter = /*#__PURE__*/function () {
|
|
|
27631
27641
|
// this.done = false
|
|
27632
27642
|
// // eslint-disable-next-line no-return-assign
|
|
27633
27643
|
// this.$nextTick(() => this.done = true)
|
|
27644
|
+
_this.$emit('nodeHandlerChange', _this.nodeHandler);
|
|
27634
27645
|
});
|
|
27635
27646
|
if (this.defaultZoomScale) {
|
|
27636
27647
|
this.zoomScale = this.defaultZoomScale;
|
|
@@ -27665,8 +27676,8 @@ var BusinessAdapter = /*#__PURE__*/function () {
|
|
|
27665
27676
|
});
|
|
27666
27677
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/NodeContainer.vue?vue&type=script&lang=js
|
|
27667
27678
|
/* harmony default export */ var designer_NodeContainervue_type_script_lang_js = (NodeContainervue_type_script_lang_js);
|
|
27668
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/NodeContainer.vue?vue&type=style&index=0&id=
|
|
27669
|
-
var
|
|
27679
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/designer/NodeContainer.vue?vue&type=style&index=0&id=1bb5dbd7&prod&lang=less
|
|
27680
|
+
var NodeContainervue_type_style_index_0_id_1bb5dbd7_prod_lang_less = __webpack_require__("9707");
|
|
27670
27681
|
|
|
27671
27682
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/designer/NodeContainer.vue
|
|
27672
27683
|
|
|
@@ -27679,8 +27690,8 @@ var NodeContainervue_type_style_index_0_id_66b3fd75_prod_lang_less = __webpack_r
|
|
|
27679
27690
|
|
|
27680
27691
|
var NodeContainer_component = normalizeComponent(
|
|
27681
27692
|
designer_NodeContainervue_type_script_lang_js,
|
|
27682
|
-
|
|
27683
|
-
|
|
27693
|
+
NodeContainervue_type_template_id_1bb5dbd7_render,
|
|
27694
|
+
NodeContainervue_type_template_id_1bb5dbd7_staticRenderFns,
|
|
27684
27695
|
false,
|
|
27685
27696
|
null,
|
|
27686
27697
|
null,
|
|
@@ -28744,8 +28755,8 @@ var WorkFlowDesigner_component = normalizeComponent(
|
|
|
28744
28755
|
)
|
|
28745
28756
|
|
|
28746
28757
|
/* harmony default export */ var WorkFlowDesigner = (WorkFlowDesigner_component.exports);
|
|
28747
|
-
// 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=
|
|
28748
|
-
var
|
|
28758
|
+
// 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=3f2edf36&scoped=true
|
|
28759
|
+
var RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_render = function render() {
|
|
28749
28760
|
var _this = this,
|
|
28750
28761
|
_vm$currentNode$data$,
|
|
28751
28762
|
_vm$currentNode$data$2;
|
|
@@ -29388,7 +29399,8 @@ var RuntimeWorkFlowvue_type_template_id_f03e8252_scoped_true_render = function r
|
|
|
29388
29399
|
"runtime-data": _vm.runtimeData
|
|
29389
29400
|
},
|
|
29390
29401
|
on: {
|
|
29391
|
-
"nodeHandlerReady": _vm.nodeHandlerReady
|
|
29402
|
+
"nodeHandlerReady": _vm.nodeHandlerReady,
|
|
29403
|
+
"nodeHandlerChange": _vm.nodeHandlerChange
|
|
29392
29404
|
}
|
|
29393
29405
|
}) : _vm._e()], 1)], 1) : _vm._e()], 1)], 1), _c('a-modal', {
|
|
29394
29406
|
staticClass: "jjh-fullscreen",
|
|
@@ -29426,9 +29438,9 @@ var RuntimeWorkFlowvue_type_template_id_f03e8252_scoped_true_render = function r
|
|
|
29426
29438
|
}
|
|
29427
29439
|
}, [_vm._v("关闭")])], 1)], 2)], 1);
|
|
29428
29440
|
};
|
|
29429
|
-
var
|
|
29441
|
+
var RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_staticRenderFns = [];
|
|
29430
29442
|
|
|
29431
|
-
// CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=template&id=
|
|
29443
|
+
// CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=template&id=3f2edf36&scoped=true
|
|
29432
29444
|
|
|
29433
29445
|
// EXTERNAL MODULE: external {"root":"vuedraggable","commonjs2":"vuedraggable","commonjs":"vuedraggable","amd":"vuedraggable"}
|
|
29434
29446
|
var external_root_vuedraggable_commonjs2_vuedraggable_commonjs_vuedraggable_amd_vuedraggable_ = __webpack_require__("289a");
|
|
@@ -29907,12 +29919,11 @@ var CHECK_ACTION = {
|
|
|
29907
29919
|
_this.actionModel.workflow_req = _this.workflowReq;
|
|
29908
29920
|
_this.actionModel.workflow = _this.workflow;
|
|
29909
29921
|
_this.loading = false;
|
|
29910
|
-
_this.workflowReq.operate_mode = OPERATE_MODE.CONFIRM;
|
|
29911
29922
|
if (_this.workflowReq.operate === OPERATE.CHECK) {
|
|
29912
29923
|
_this.fetchInvolveUser();
|
|
29913
29924
|
_this.fetchReassignUser();
|
|
29914
29925
|
}
|
|
29915
|
-
case
|
|
29926
|
+
case 44:
|
|
29916
29927
|
case "end":
|
|
29917
29928
|
return _context.stop();
|
|
29918
29929
|
}
|
|
@@ -30025,6 +30036,7 @@ var CHECK_ACTION = {
|
|
|
30025
30036
|
// this.$message.error('校验未通过')
|
|
30026
30037
|
// 上报
|
|
30027
30038
|
var isBpmnBack = false;
|
|
30039
|
+
this.workflowReq.operate_mode = OPERATE_MODE.CONFIRM;
|
|
30028
30040
|
if (this.workflowReq.operate === OPERATE.START) {
|
|
30029
30041
|
var _this$runtimeData$tod;
|
|
30030
30042
|
if ((_this$runtimeData$tod = this.runtimeData.todos) !== null && _this$runtimeData$tod !== void 0 && _this$runtimeData$tod.length) {
|
|
@@ -30223,12 +30235,114 @@ var CHECK_ACTION = {
|
|
|
30223
30235
|
}, _callee3);
|
|
30224
30236
|
}))();
|
|
30225
30237
|
},
|
|
30226
|
-
|
|
30238
|
+
/**
|
|
30239
|
+
*
|
|
30240
|
+
* @param nodeHandler {NodeHandler}
|
|
30241
|
+
*/
|
|
30242
|
+
nodeHandlerChange: function nodeHandlerChange(nodeHandler) {
|
|
30227
30243
|
var _this7 = this;
|
|
30244
|
+
return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
|
|
30245
|
+
var _data$data4, _data$data5, _this7$runtimeData, _this7$runtimeData2;
|
|
30246
|
+
var map, result, data, runtimeData, users;
|
|
30247
|
+
return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
30248
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
30249
|
+
case 0:
|
|
30250
|
+
map = nodeHandler.map();
|
|
30251
|
+
if (!(map.node.size === Object.keys(_this7.workflow.node_json.node).length)) {
|
|
30252
|
+
_context4.next = 3;
|
|
30253
|
+
break;
|
|
30254
|
+
}
|
|
30255
|
+
return _context4.abrupt("return");
|
|
30256
|
+
case 3:
|
|
30257
|
+
result = {};
|
|
30258
|
+
Object.keys(map).forEach(function (key) {
|
|
30259
|
+
result[key] = Object.fromEntries(map[key]);
|
|
30260
|
+
});
|
|
30261
|
+
_this7.workflowReq.node_json = result;
|
|
30262
|
+
_this7.eadApi.getModelValues().workflow_req = _this7.workflowReq;
|
|
30263
|
+
_context4.next = 9;
|
|
30264
|
+
return _this7.eadApi.runCurrentAction();
|
|
30265
|
+
case 9:
|
|
30266
|
+
data = _context4.sent;
|
|
30267
|
+
if (data) {
|
|
30268
|
+
_context4.next = 14;
|
|
30269
|
+
break;
|
|
30270
|
+
}
|
|
30271
|
+
_this7.loading = false;
|
|
30272
|
+
_this7.$emit('close');
|
|
30273
|
+
return _context4.abrupt("return");
|
|
30274
|
+
case 14:
|
|
30275
|
+
// runtime数据
|
|
30276
|
+
_this7.workflow = data === null || data === void 0 || (_data$data4 = data.data) === null || _data$data4 === void 0 ? void 0 : _data$data4.workflow;
|
|
30277
|
+
runtimeData = data === null || data === void 0 || (_data$data5 = data.data) === null || _data$data5 === void 0 || (_data$data5 = _data$data5.workflow) === null || _data$data5 === void 0 ? void 0 : _data$data5.runtime_data;
|
|
30278
|
+
if (runtimeData && Object.keys(runtimeData).length) {
|
|
30279
|
+
_this7.runtimeData = runtimeData;
|
|
30280
|
+
}
|
|
30281
|
+
// 后续步骤默认执行人配置 selected init
|
|
30282
|
+
if (_this7.runtimeData.todos) {
|
|
30283
|
+
_this7.runtimeData.todos.forEach(function (item) {
|
|
30284
|
+
// 非自选 且 选择的为空,默认全选
|
|
30285
|
+
if (!item.optional || item.optional && !item.optional.enable) {
|
|
30286
|
+
if (!item.selected || !item.selected.length) {
|
|
30287
|
+
// 判断selected是否为null
|
|
30288
|
+
item.selected = item.actors.map(function (actor) {
|
|
30289
|
+
return actor.uid;
|
|
30290
|
+
});
|
|
30291
|
+
}
|
|
30292
|
+
}
|
|
30293
|
+
|
|
30294
|
+
// 自选单个 且 选择的为空,则选择第一个
|
|
30295
|
+
if (item.optional && item.optional.enable && !item.optional.multi) {
|
|
30296
|
+
// 判断optional.enable是否为true
|
|
30297
|
+
if (!item.selected || !item.selected.length) {
|
|
30298
|
+
// 判断selected是否为null
|
|
30299
|
+
item.selected = [item.actors[0].uid];
|
|
30300
|
+
}
|
|
30301
|
+
}
|
|
30302
|
+
});
|
|
30303
|
+
}
|
|
30304
|
+
// item filter
|
|
30305
|
+
// 【FEATURE】响应式更新支持
|
|
30306
|
+
if (_this7.runtimeData.todos) {
|
|
30307
|
+
_this7.runtimeData.todos.forEach(function (item) {
|
|
30308
|
+
if (!item.actorfilter) item.actorfilter = '';
|
|
30309
|
+
item.actorsf = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(item.actors));
|
|
30310
|
+
});
|
|
30311
|
+
}
|
|
30312
|
+
// user cache
|
|
30313
|
+
users = [];
|
|
30314
|
+
if ((_this7$runtimeData = _this7.runtimeData) !== null && _this7$runtimeData !== void 0 && (_this7$runtimeData = _this7$runtimeData.involve) !== null && _this7$runtimeData !== void 0 && _this7$runtimeData.actors) {
|
|
30315
|
+
users.push.apply(users, RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(_this7.runtimeData.involve.actors));
|
|
30316
|
+
}
|
|
30317
|
+
if ((_this7$runtimeData2 = _this7.runtimeData) !== null && _this7$runtimeData2 !== void 0 && (_this7$runtimeData2 = _this7$runtimeData2.reassign) !== null && _this7$runtimeData2 !== void 0 && _this7$runtimeData2.actors) {
|
|
30318
|
+
users.push.apply(users, RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(_this7.runtimeData.reassign.actors));
|
|
30319
|
+
}
|
|
30320
|
+
if (_this7.runtimeData.todos) {
|
|
30321
|
+
_this7.runtimeData.todos.forEach(function (item) {
|
|
30322
|
+
users.push.apply(users, RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(item.actors));
|
|
30323
|
+
});
|
|
30324
|
+
}
|
|
30325
|
+
_this7.userCache = {};
|
|
30326
|
+
users.forEach(function (user) {
|
|
30327
|
+
_this7.userCache[user.uid] = "".concat(user.name, "\uFF08").concat(user.org_name, "\uFF09");
|
|
30328
|
+
});
|
|
30329
|
+
// 后续步骤处理
|
|
30330
|
+
_this7.currentTodo = null;
|
|
30331
|
+
_this7.validExpression();
|
|
30332
|
+
_this7.loadTodo();
|
|
30333
|
+
case 28:
|
|
30334
|
+
case "end":
|
|
30335
|
+
return _context4.stop();
|
|
30336
|
+
}
|
|
30337
|
+
}, _callee4);
|
|
30338
|
+
}))();
|
|
30339
|
+
},
|
|
30340
|
+
showFullScreenFlow: function showFullScreenFlow() {
|
|
30341
|
+
var _this8 = this;
|
|
30228
30342
|
this.fullscreenLoading = true;
|
|
30229
30343
|
setTimeout(function () {
|
|
30230
|
-
|
|
30231
|
-
|
|
30344
|
+
_this8.$nextTick(function () {
|
|
30345
|
+
_this8.fullscreen = true;
|
|
30232
30346
|
});
|
|
30233
30347
|
}, 50);
|
|
30234
30348
|
},
|
|
@@ -30237,58 +30351,58 @@ var CHECK_ACTION = {
|
|
|
30237
30351
|
this.fullscreen = false;
|
|
30238
30352
|
},
|
|
30239
30353
|
handleItemChange: function handleItemChange(value, attr) {
|
|
30240
|
-
var
|
|
30241
|
-
return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function
|
|
30354
|
+
var _this9 = this;
|
|
30355
|
+
return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
|
|
30242
30356
|
var name, fd, res;
|
|
30243
|
-
return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function
|
|
30244
|
-
while (1) switch (
|
|
30357
|
+
return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
30358
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
30245
30359
|
case 0:
|
|
30246
30360
|
name = attr.name;
|
|
30247
30361
|
if (!(value instanceof FileList)) {
|
|
30248
|
-
|
|
30362
|
+
_context5.next = 14;
|
|
30249
30363
|
break;
|
|
30250
30364
|
}
|
|
30251
30365
|
if (!value[0]) {
|
|
30252
|
-
|
|
30366
|
+
_context5.next = 11;
|
|
30253
30367
|
break;
|
|
30254
30368
|
}
|
|
30255
30369
|
fd = new FormData();
|
|
30256
30370
|
fd.append(name, value[0]);
|
|
30257
|
-
|
|
30258
|
-
return
|
|
30371
|
+
_context5.next = 7;
|
|
30372
|
+
return _this9.$api.post('/upload', fd);
|
|
30259
30373
|
case 7:
|
|
30260
|
-
res =
|
|
30374
|
+
res = _context5.sent;
|
|
30261
30375
|
value = res.data.data[name];
|
|
30262
|
-
|
|
30376
|
+
_context5.next = 12;
|
|
30263
30377
|
break;
|
|
30264
30378
|
case 11:
|
|
30265
30379
|
value = null;
|
|
30266
30380
|
case 12:
|
|
30267
|
-
|
|
30381
|
+
_context5.next = 15;
|
|
30268
30382
|
break;
|
|
30269
30383
|
case 14:
|
|
30270
30384
|
if (value instanceof Date) {
|
|
30271
|
-
value =
|
|
30385
|
+
value = _this9.moment(value).format('YYYY-MM-DD');
|
|
30272
30386
|
}
|
|
30273
30387
|
case 15:
|
|
30274
30388
|
// this.actionModel.data[name] = value
|
|
30275
30389
|
|
|
30276
30390
|
// ISSUE:1 兼容格式化 ---------------------------------------------------
|
|
30277
30391
|
if (['time', 'datetime'].includes(attr.dataType)) {
|
|
30278
|
-
value =
|
|
30392
|
+
value = _this9.moment(value, 'YYYY-MM-DD HH:mm').valueOf();
|
|
30279
30393
|
}
|
|
30280
30394
|
if (['date'].includes(attr.dataType)) {
|
|
30281
|
-
value =
|
|
30395
|
+
value = _this9.moment(value, 'YYYY-MM-DD').valueOf();
|
|
30282
30396
|
}
|
|
30283
30397
|
// -----------------------------------------------------------
|
|
30284
30398
|
|
|
30285
|
-
|
|
30286
|
-
|
|
30399
|
+
_this9.actionModel[name] = value;
|
|
30400
|
+
_this9.loadTodo();
|
|
30287
30401
|
case 19:
|
|
30288
30402
|
case "end":
|
|
30289
|
-
return
|
|
30403
|
+
return _context5.stop();
|
|
30290
30404
|
}
|
|
30291
|
-
},
|
|
30405
|
+
}, _callee5);
|
|
30292
30406
|
}))();
|
|
30293
30407
|
},
|
|
30294
30408
|
validExpression: function validExpression() {
|
|
@@ -30332,7 +30446,7 @@ var CHECK_ACTION = {
|
|
|
30332
30446
|
return list;
|
|
30333
30447
|
},
|
|
30334
30448
|
loadTodo: function loadTodo() {
|
|
30335
|
-
var
|
|
30449
|
+
var _this10 = this;
|
|
30336
30450
|
if (!this.runtimeData.todos) {
|
|
30337
30451
|
return;
|
|
30338
30452
|
}
|
|
@@ -30356,7 +30470,7 @@ var CHECK_ACTION = {
|
|
|
30356
30470
|
}
|
|
30357
30471
|
} else {
|
|
30358
30472
|
if (!this.availableTodo(this.runtimeData.todos.find(function (todo) {
|
|
30359
|
-
return todo.node_code ===
|
|
30473
|
+
return todo.node_code === _this10.currentTodo;
|
|
30360
30474
|
}))) {
|
|
30361
30475
|
this.currentTodo = null;
|
|
30362
30476
|
this.loadTodo();
|
|
@@ -30364,11 +30478,11 @@ var CHECK_ACTION = {
|
|
|
30364
30478
|
}
|
|
30365
30479
|
},
|
|
30366
30480
|
availableTodo: function availableTodo(todo) {
|
|
30367
|
-
var
|
|
30481
|
+
var _this11 = this;
|
|
30368
30482
|
if (this.expressionError) {
|
|
30369
30483
|
return false;
|
|
30370
30484
|
}
|
|
30371
|
-
var expression = todo.condition;
|
|
30485
|
+
var expression = todo === null || todo === void 0 ? void 0 : todo.condition;
|
|
30372
30486
|
if (!expression) {
|
|
30373
30487
|
return true;
|
|
30374
30488
|
}
|
|
@@ -30376,7 +30490,7 @@ var CHECK_ACTION = {
|
|
|
30376
30490
|
var data = {};
|
|
30377
30491
|
// eslint-disable-next-line no-return-assign
|
|
30378
30492
|
this.activityColumns.forEach(function (column) {
|
|
30379
|
-
return data[column] =
|
|
30493
|
+
return data[column] = _this11.actionModel[column];
|
|
30380
30494
|
});
|
|
30381
30495
|
// eslint-disable-next-line no-new-func
|
|
30382
30496
|
var expressionFn = new Function(Object.keys(data), 'return ' + expression);
|
|
@@ -30393,8 +30507,8 @@ var CHECK_ACTION = {
|
|
|
30393
30507
|
});
|
|
30394
30508
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=script&lang=js
|
|
30395
30509
|
/* harmony default export */ var runtime_RuntimeWorkFlowvue_type_script_lang_js = (RuntimeWorkFlowvue_type_script_lang_js);
|
|
30396
|
-
// EXTERNAL MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=style&index=0&id=
|
|
30397
|
-
var
|
|
30510
|
+
// EXTERNAL MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=style&index=0&id=3f2edf36&prod&lang=less&scoped=true
|
|
30511
|
+
var RuntimeWorkFlowvue_type_style_index_0_id_3f2edf36_prod_lang_less_scoped_true = __webpack_require__("1c5f");
|
|
30398
30512
|
|
|
30399
30513
|
// CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue
|
|
30400
30514
|
|
|
@@ -30407,11 +30521,11 @@ var RuntimeWorkFlowvue_type_style_index_0_id_f03e8252_prod_lang_less_scoped_true
|
|
|
30407
30521
|
|
|
30408
30522
|
var RuntimeWorkFlow_component = normalizeComponent(
|
|
30409
30523
|
runtime_RuntimeWorkFlowvue_type_script_lang_js,
|
|
30410
|
-
|
|
30411
|
-
|
|
30524
|
+
RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_render,
|
|
30525
|
+
RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_staticRenderFns,
|
|
30412
30526
|
false,
|
|
30413
30527
|
null,
|
|
30414
|
-
"
|
|
30528
|
+
"3f2edf36",
|
|
30415
30529
|
null
|
|
30416
30530
|
|
|
30417
30531
|
)
|
|
@@ -31801,6 +31915,17 @@ var variable = __webpack_require__("aa23");
|
|
|
31801
31915
|
/* unused harmony reexport * */
|
|
31802
31916
|
|
|
31803
31917
|
|
|
31918
|
+
/***/ }),
|
|
31919
|
+
|
|
31920
|
+
/***/ "1c5f":
|
|
31921
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
31922
|
+
|
|
31923
|
+
"use strict";
|
|
31924
|
+
/* 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_3f2edf36_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("feb3");
|
|
31925
|
+
/* 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_3f2edf36_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_3f2edf36_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
31926
|
+
/* unused harmony reexport * */
|
|
31927
|
+
|
|
31928
|
+
|
|
31804
31929
|
/***/ }),
|
|
31805
31930
|
|
|
31806
31931
|
/***/ "1f44":
|
|
@@ -32008,13 +32133,6 @@ var variable = __webpack_require__("aa23");
|
|
|
32008
32133
|
|
|
32009
32134
|
/***/ }),
|
|
32010
32135
|
|
|
32011
|
-
/***/ "22ae":
|
|
32012
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
32013
|
-
|
|
32014
|
-
// extracted by mini-css-extract-plugin
|
|
32015
|
-
|
|
32016
|
-
/***/ }),
|
|
32017
|
-
|
|
32018
32136
|
/***/ "2364":
|
|
32019
32137
|
/***/ (function(module, exports) {
|
|
32020
32138
|
|
|
@@ -45887,12 +46005,12 @@ module.exports = Array.isArray || function (arr) {
|
|
|
45887
46005
|
|
|
45888
46006
|
/***/ }),
|
|
45889
46007
|
|
|
45890
|
-
/***/ "
|
|
46008
|
+
/***/ "9707":
|
|
45891
46009
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
45892
46010
|
|
|
45893
46011
|
"use strict";
|
|
45894
|
-
/* harmony import */ var
|
|
45895
|
-
/* harmony import */ var
|
|
46012
|
+
/* 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_NodeContainer_vue_vue_type_style_index_0_id_1bb5dbd7_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c996");
|
|
46013
|
+
/* 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_NodeContainer_vue_vue_type_style_index_0_id_1bb5dbd7_prod_lang_less__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_NodeContainer_vue_vue_type_style_index_0_id_1bb5dbd7_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
45896
46014
|
/* unused harmony reexport * */
|
|
45897
46015
|
|
|
45898
46016
|
|
|
@@ -48346,14 +48464,10 @@ module.exports = require("moment");
|
|
|
48346
48464
|
|
|
48347
48465
|
/***/ }),
|
|
48348
48466
|
|
|
48349
|
-
/***/ "
|
|
48350
|
-
/***/ (function(module,
|
|
48351
|
-
|
|
48352
|
-
"use strict";
|
|
48353
|
-
/* 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_NodeContainer_vue_vue_type_style_index_0_id_66b3fd75_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("22ae");
|
|
48354
|
-
/* 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_NodeContainer_vue_vue_type_style_index_0_id_66b3fd75_prod_lang_less__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_NodeContainer_vue_vue_type_style_index_0_id_66b3fd75_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
48355
|
-
/* unused harmony reexport * */
|
|
48467
|
+
/***/ "c996":
|
|
48468
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
48356
48469
|
|
|
48470
|
+
// extracted by mini-css-extract-plugin
|
|
48357
48471
|
|
|
48358
48472
|
/***/ }),
|
|
48359
48473
|
|
|
@@ -50346,13 +50460,6 @@ module.exports = require("axios");
|
|
|
50346
50460
|
|
|
50347
50461
|
/***/ }),
|
|
50348
50462
|
|
|
50349
|
-
/***/ "d7e5":
|
|
50350
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
50351
|
-
|
|
50352
|
-
// extracted by mini-css-extract-plugin
|
|
50353
|
-
|
|
50354
|
-
/***/ }),
|
|
50355
|
-
|
|
50356
50463
|
/***/ "da25":
|
|
50357
50464
|
/***/ (function(module, exports, __webpack_require__) {
|
|
50358
50465
|
|
|
@@ -51958,6 +52065,13 @@ module.exports = require("vuex/dist/logger");
|
|
|
51958
52065
|
|
|
51959
52066
|
/***/ }),
|
|
51960
52067
|
|
|
52068
|
+
/***/ "feb3":
|
|
52069
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
52070
|
+
|
|
52071
|
+
// extracted by mini-css-extract-plugin
|
|
52072
|
+
|
|
52073
|
+
/***/ }),
|
|
52074
|
+
|
|
51961
52075
|
/***/ "ff21":
|
|
51962
52076
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
51963
52077
|
|