@xatlas/rainbow-core 2.4.4 → 2.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28755,8 +28755,8 @@ var WorkFlowDesigner_component = normalizeComponent(
28755
28755
  )
28756
28756
 
28757
28757
  /* harmony default export */ var WorkFlowDesigner = (WorkFlowDesigner_component.exports);
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() {
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=5970b818&scoped=true
28759
+ var RuntimeWorkFlowvue_type_template_id_5970b818_scoped_true_render = function render() {
28760
28760
  var _this = this,
28761
28761
  _vm$currentNode$data$,
28762
28762
  _vm$currentNode$data$2;
@@ -29297,7 +29297,23 @@ var RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_render = function r
29297
29297
  "slot": "title"
29298
29298
  },
29299
29299
  slot: "title"
29300
- }, [_vm._v(" " + _vm._s(item.node_name) + " ")]), _vm.$store.state.app.icon ? _c('a-avatar', {
29300
+ }, [_vm._v(" " + _vm._s(item.node_name) + " "), _c('a-button', {
29301
+ directives: [{
29302
+ name: "show",
29303
+ rawName: "v-show",
29304
+ value: item.operate_data,
29305
+ expression: "item.operate_data"
29306
+ }],
29307
+ attrs: {
29308
+ "icon": "read",
29309
+ "type": "link"
29310
+ },
29311
+ on: {
29312
+ "click": function click($event) {
29313
+ return _vm.showOperateData(item);
29314
+ }
29315
+ }
29316
+ })], 1), _vm.$store.state.app.icon ? _c('a-avatar', {
29301
29317
  attrs: {
29302
29318
  "slot": "avatar",
29303
29319
  "src": _vm.$store.state.app.icon
@@ -29343,7 +29359,7 @@ var RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_render = function r
29343
29359
  }
29344
29360
  }), _vm._v(" " + _vm._s(item.operator.name) + "(" + _vm._s(item.operator.org_name) + ") ")], 1)], 1)], 1)], 1)], 1);
29345
29361
  }
29346
- }], null, false, 1631359906)
29362
+ }], null, false, 542072683)
29347
29363
  })], 1)], 1) : _vm._e(), _vm.paneSet.has('3') ? _c('a-tab-pane', {
29348
29364
  key: "3",
29349
29365
  attrs: {
@@ -29403,6 +29419,35 @@ var RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_render = function r
29403
29419
  "nodeHandlerChange": _vm.nodeHandlerChange
29404
29420
  }
29405
29421
  }) : _vm._e()], 1)], 1) : _vm._e()], 1)], 1), _c('a-modal', {
29422
+ attrs: {
29423
+ "title": "操作表单",
29424
+ "visible": _vm.isShowOperateData,
29425
+ "footer": null,
29426
+ "width": "50%"
29427
+ },
29428
+ on: {
29429
+ "cancel": _vm.hideOperateData
29430
+ }
29431
+ }, [_c('a-descriptions', {
29432
+ attrs: {
29433
+ "bordered": "",
29434
+ "column": {
29435
+ xxl: 2,
29436
+ xl: 2,
29437
+ lg: 2,
29438
+ md: 2,
29439
+ sm: 2,
29440
+ xs: 1
29441
+ }
29442
+ }
29443
+ }, _vm._l(_vm.operateDataItems, function (attr) {
29444
+ return _c('a-descriptions-item', {
29445
+ key: attr.id,
29446
+ attrs: {
29447
+ "label": attr.alias
29448
+ }
29449
+ }, [_vm._v(" " + _vm._s(_vm.formatter(attr, attr.value, attr)) + " ")]);
29450
+ }), 1)], 1), _c('a-modal', {
29406
29451
  staticClass: "jjh-fullscreen",
29407
29452
  attrs: {
29408
29453
  "bodyStyle": {
@@ -29438,9 +29483,9 @@ var RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_render = function r
29438
29483
  }
29439
29484
  }, [_vm._v("关闭")])], 1)], 2)], 1);
29440
29485
  };
29441
- var RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_staticRenderFns = [];
29486
+ var RuntimeWorkFlowvue_type_template_id_5970b818_scoped_true_staticRenderFns = [];
29442
29487
 
29443
- // CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=template&id=3f2edf36&scoped=true
29488
+ // CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=template&id=5970b818&scoped=true
29444
29489
 
29445
29490
  // EXTERNAL MODULE: external {"root":"vuedraggable","commonjs2":"vuedraggable","commonjs":"vuedraggable","amd":"vuedraggable"}
29446
29491
  var external_root_vuedraggable_commonjs2_vuedraggable_commonjs_vuedraggable_amd_vuedraggable_ = __webpack_require__("289a");
@@ -29470,6 +29515,7 @@ function RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator(fn) { return fu
29470
29515
 
29471
29516
 
29472
29517
 
29518
+
29473
29519
  var OPERATE = {
29474
29520
  START: 'start',
29475
29521
  CHECK: 'check',
@@ -29489,7 +29535,7 @@ var CHECK_ACTION = {
29489
29535
  };
29490
29536
  /* harmony default export */ var RuntimeWorkFlowvue_type_script_lang_js = ({
29491
29537
  name: 'runtime-workflow',
29492
- mixins: [form_base],
29538
+ mixins: [form_base, cell],
29493
29539
  components: {
29494
29540
  NodeContainer: NodeContainer,
29495
29541
  Item: Item,
@@ -29509,6 +29555,8 @@ var CHECK_ACTION = {
29509
29555
  initNodeContainer: false,
29510
29556
  fullscreen: false,
29511
29557
  fullscreenLoading: false,
29558
+ isShowOperateData: false,
29559
+ operateDataItems: [],
29512
29560
  nodeData: null,
29513
29561
  paneKey: '3',
29514
29562
  /**
@@ -29761,7 +29809,8 @@ var CHECK_ACTION = {
29761
29809
  custom_back_node_code: undefined,
29762
29810
  todos: undefined,
29763
29811
  involve: undefined,
29764
- reassign: undefined
29812
+ reassign: undefined,
29813
+ form_data: {}
29765
29814
  },
29766
29815
  model_id: null,
29767
29816
  data_id: null
@@ -29954,19 +30003,57 @@ var CHECK_ACTION = {
29954
30003
  }
29955
30004
  });
29956
30005
  },
29957
- fetchReassignUser: function fetchReassignUser() {
30006
+ showOperateData: function showOperateData(data) {
29958
30007
  var _this2 = this;
30008
+ return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
30009
+ var columns, schema, operateData;
30010
+ return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
30011
+ while (1) switch (_context2.prev = _context2.next) {
30012
+ case 0:
30013
+ columns = _this2.columns;
30014
+ if (!data.option_view_id) {
30015
+ _context2.next = 6;
30016
+ break;
30017
+ }
30018
+ _context2.next = 4;
30019
+ return _this2.eadApi.getViewSchema(data.option_view_id);
30020
+ case 4:
30021
+ schema = _context2.sent;
30022
+ columns = schema === null || schema === void 0 ? void 0 : schema.model.attrs;
30023
+ case 6:
30024
+ operateData = JSON.parse(data.operate_data);
30025
+ _this2.operateDataItems = [];
30026
+ columns.forEach(function (column) {
30027
+ if (column.name in operateData) {
30028
+ var item = RuntimeWorkFlowvue_type_script_lang_js_objectSpread({}, column);
30029
+ item.value = operateData[column.name];
30030
+ _this2.operateDataItems.push(item);
30031
+ }
30032
+ });
30033
+ _this2.isShowOperateData = true;
30034
+ case 10:
30035
+ case "end":
30036
+ return _context2.stop();
30037
+ }
30038
+ }, _callee2);
30039
+ }))();
30040
+ },
30041
+ hideOperateData: function hideOperateData() {
30042
+ this.isShowOperateData = false;
30043
+ },
30044
+ fetchReassignUser: function fetchReassignUser() {
30045
+ var _this3 = this;
29959
30046
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
29960
30047
  userName: this.reassignUserFilter,
29961
30048
  pagination: this.reassignUserPagination
29962
30049
  };
29963
30050
  this.loadingReassignUser = true;
29964
30051
  this.getAllUsers(params.userName, params.pagination).then(function (data) {
29965
- var pagination = RuntimeWorkFlowvue_type_script_lang_js_objectSpread({}, _this2.reassignUserPagination);
30052
+ var pagination = RuntimeWorkFlowvue_type_script_lang_js_objectSpread({}, _this3.reassignUserPagination);
29966
30053
  pagination.total = data.count;
29967
- _this2.loadingReassignUser = false;
29968
- _this2.reassignUserData = data.results;
29969
- _this2.reassignUserPagination = pagination;
30054
+ _this3.loadingReassignUser = false;
30055
+ _this3.reassignUserData = data.results;
30056
+ _this3.reassignUserPagination = pagination;
29970
30057
  });
29971
30058
  },
29972
30059
  handleTableChangeInvolveUser: function handleTableChangeInvolveUser(pagination) {
@@ -29982,57 +30069,57 @@ var CHECK_ACTION = {
29982
30069
  });
29983
30070
  },
29984
30071
  fetchInvolveUser: function fetchInvolveUser() {
29985
- var _this3 = this;
30072
+ var _this4 = this;
29986
30073
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
29987
30074
  userName: this.involveUserFilter,
29988
30075
  pagination: this.involveUserPagination
29989
30076
  };
29990
30077
  this.loadingInvolveUser = true;
29991
30078
  this.getAllUsers(params.userName, params.pagination).then(function (data) {
29992
- var pagination = RuntimeWorkFlowvue_type_script_lang_js_objectSpread({}, _this3.involveUserPagination);
30079
+ var pagination = RuntimeWorkFlowvue_type_script_lang_js_objectSpread({}, _this4.involveUserPagination);
29993
30080
  pagination.total = data.count;
29994
- _this3.loadingInvolveUser = false;
29995
- _this3.involveUserData = data.results;
29996
- _this3.involveUserPagination = pagination;
30081
+ _this4.loadingInvolveUser = false;
30082
+ _this4.involveUserData = data.results;
30083
+ _this4.involveUserPagination = pagination;
29997
30084
  });
29998
30085
  },
29999
30086
  getAllUsers: function getAllUsers(userName, pagination) {
30000
- var _this4 = this;
30001
- return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
30087
+ var _this5 = this;
30088
+ return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
30002
30089
  var data1, data;
30003
- return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
30004
- while (1) switch (_context2.prev = _context2.next) {
30090
+ return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
30091
+ while (1) switch (_context3.prev = _context3.next) {
30005
30092
  case 0:
30006
- _context2.next = 2;
30007
- return _this4.eadApi.getDatasetApi('flowdir-allusercount', {
30093
+ _context3.next = 2;
30094
+ return _this5.eadApi.getDatasetApi('flowdir-allusercount', {
30008
30095
  user_name: userName
30009
30096
  });
30010
30097
  case 2:
30011
- data1 = _context2.sent;
30012
- _context2.next = 5;
30013
- return _this4.eadApi.getDatasetApi('flowdir-alluser', {
30098
+ data1 = _context3.sent;
30099
+ _context3.next = 5;
30100
+ return _this5.eadApi.getDatasetApi('flowdir-alluser', {
30014
30101
  user_name: userName,
30015
30102
  limit_index: (pagination.current - 1) * pagination.pageSize,
30016
30103
  limit_num: pagination.pageSize
30017
30104
  });
30018
30105
  case 5:
30019
- data = _context2.sent;
30020
- return _context2.abrupt("return", {
30106
+ data = _context3.sent;
30107
+ return _context3.abrupt("return", {
30021
30108
  count: data1[0].count,
30022
30109
  results: data
30023
30110
  });
30024
30111
  case 7:
30025
30112
  case "end":
30026
- return _context2.stop();
30113
+ return _context3.stop();
30027
30114
  }
30028
- }, _callee2);
30115
+ }, _callee3);
30029
30116
  }))();
30030
30117
  },
30031
30118
  /**
30032
30119
  * 请求前最后的校验
30033
30120
  */
30034
30121
  handleCommit: function handleCommit() {
30035
- var _this5 = this;
30122
+ var _this6 = this;
30036
30123
  // this.$message.error('校验未通过')
30037
30124
  // 上报
30038
30125
  var isBpmnBack = false;
@@ -30116,7 +30203,7 @@ var CHECK_ACTION = {
30116
30203
  }
30117
30204
  if (this.currentNode.data.other_options.assert && this.currentNode.data.other_options.assert.length) {
30118
30205
  var needAssert = this.currentNode.data.other_options.assert.filter(function (assertItem) {
30119
- return assertItem.action === 'all' || assertItem.action === _this5.workflowReq.page_operate.action;
30206
+ return assertItem.action === 'all' || assertItem.action === _this6.workflowReq.page_operate.action;
30120
30207
  }).filter(function (assertItem) {
30121
30208
  return assertItem.expression && assertItem.message;
30122
30209
  });
@@ -30128,20 +30215,20 @@ var CHECK_ACTION = {
30128
30215
  try {
30129
30216
  var data = {};
30130
30217
  // eslint-disable-next-line no-return-assign
30131
- _this5.activityColumns.forEach(function (column) {
30132
- return data[column] = _this5.actionModel[column];
30218
+ _this6.activityColumns.forEach(function (column) {
30219
+ return data[column] = _this6.actionModel[column];
30133
30220
  });
30134
30221
  // eslint-disable-next-line no-new-func
30135
30222
  var expressionFn = new Function(Object.keys(data), 'return ' + item.expression);
30136
30223
  var isOk = expressionFn.apply(void 0, RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(Object.values(data)));
30137
30224
  if (!isOk) {
30138
- _this5.$message.error(item.message);
30225
+ _this6.$message.error(item.message);
30139
30226
  return {
30140
30227
  v: void 0
30141
30228
  };
30142
30229
  }
30143
30230
  } catch (e) {
30144
- _this5.$message.error('断言表达式配置错误,' + item.message);
30231
+ _this6.$message.error('断言表达式配置错误,' + item.message);
30145
30232
  return {
30146
30233
  v: void 0
30147
30234
  };
@@ -30158,6 +30245,11 @@ var CHECK_ACTION = {
30158
30245
  _iterator.f();
30159
30246
  }
30160
30247
  }
30248
+ if (this.runtimeData.currentNodeFormItem) {
30249
+ this.runtimeData.currentNodeFormItem.forEach(function (item) {
30250
+ _this6.workflowReq.page_operate.form_data[item.name] = _this6.actionModel[item.name];
30251
+ });
30252
+ }
30161
30253
  this.actionModel.workflow = this.workflow;
30162
30254
  this.actionModel.workflow_req = this.workflowReq;
30163
30255
  var actionModel = RuntimeWorkFlowvue_type_script_lang_js_objectSpread({}, this.actionModel);
@@ -30174,32 +30266,32 @@ var CHECK_ACTION = {
30174
30266
  * @param nodeHandler {NodeHandler}
30175
30267
  */
30176
30268
  nodeHandlerReady: function nodeHandlerReady(nodeHandler) {
30177
- var _this6 = this;
30178
- return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
30179
- var _node$data, _this6$runtimeData$cu;
30269
+ var _this7 = this;
30270
+ return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
30271
+ var _node$data, _this7$runtimeData$cu;
30180
30272
  var node, columns, schema, optionForms;
30181
- return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
30182
- while (1) switch (_context3.prev = _context3.next) {
30273
+ return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
30274
+ while (1) switch (_context4.prev = _context4.next) {
30183
30275
  case 0:
30184
- _this6.nodeHandler = nodeHandler;
30185
- node = _this6.currentNode = nodeHandler.getNode(_this6.runtimeData.currentNodeCode); // 健壮考虑
30186
- if (!_this6.runtimeData.PageOperate && node !== null && node !== void 0 && (_node$data = node.data) !== null && _node$data !== void 0 && _node$data.page_options) {
30187
- _this6.runtimeData.PageOperate = node.data.page_options;
30276
+ _this7.nodeHandler = nodeHandler;
30277
+ node = _this7.currentNode = nodeHandler.getNode(_this7.runtimeData.currentNodeCode); // 健壮考虑
30278
+ if (!_this7.runtimeData.PageOperate && node !== null && node !== void 0 && (_node$data = node.data) !== null && _node$data !== void 0 && _node$data.page_options) {
30279
+ _this7.runtimeData.PageOperate = node.data.page_options;
30188
30280
  }
30189
- columns = _this6.columns;
30281
+ columns = _this7.columns;
30190
30282
  if (!(node && node.data.option_view_id)) {
30191
- _context3.next = 9;
30283
+ _context4.next = 9;
30192
30284
  break;
30193
30285
  }
30194
- _context3.next = 7;
30195
- return _this6.eadApi.getViewSchema(node.data.option_view_id);
30286
+ _context4.next = 7;
30287
+ return _this7.eadApi.getViewSchema(node.data.option_view_id);
30196
30288
  case 7:
30197
- schema = _context3.sent;
30289
+ schema = _context4.sent;
30198
30290
  columns = schema === null || schema === void 0 ? void 0 : schema.model.attrs;
30199
30291
  case 9:
30200
30292
  // form load
30201
- 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;
30202
- _this6.runtimeData.currentNodeFormItem = optionForms.filter(function (value) {
30293
+ optionForms = (_this7$runtimeData$cu = _this7.runtimeData.currentNodeOptionForms) !== null && _this7$runtimeData$cu !== void 0 ? _this7$runtimeData$cu : node === null || node === void 0 ? void 0 : node.data.option_forms;
30294
+ _this7.runtimeData.currentNodeFormItem = optionForms.filter(function (value) {
30203
30295
  return value.access !== 'none';
30204
30296
  }).map(function (value) {
30205
30297
  // 【BUG】 全局:const attr = this.view.schema.model.attrs.find(value1 => value1.name === value.attrCode)
@@ -30213,7 +30305,7 @@ var CHECK_ACTION = {
30213
30305
  attr.params.readonly = value.access === 'readonly';
30214
30306
  attr.required = value.required;
30215
30307
  if (node && node.data.option_view_id) {
30216
- _this6.actionModel[attr.name] = null;
30308
+ _this7.actionModel[attr.name] = null;
30217
30309
  }
30218
30310
  }
30219
30311
  return attr;
@@ -30221,18 +30313,18 @@ var CHECK_ACTION = {
30221
30313
  return value;
30222
30314
  });
30223
30315
  // back load
30224
- _this6.isCustomBack = (node === null || node === void 0 ? void 0 : node.data.back_type) === 'custom';
30225
- if (_this6.isCustomBack) {
30226
- if (!_this6.runtimeData.customBackNodes) {
30227
- _this6.runtimeData.customBackNodes = RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(node === null || node === void 0 ? void 0 : node.data.custom_back_nodes);
30316
+ _this7.isCustomBack = (node === null || node === void 0 ? void 0 : node.data.back_type) === 'custom';
30317
+ if (_this7.isCustomBack) {
30318
+ if (!_this7.runtimeData.customBackNodes) {
30319
+ _this7.runtimeData.customBackNodes = RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(node === null || node === void 0 ? void 0 : node.data.custom_back_nodes);
30228
30320
  }
30229
- _this6.workflowReq.page_operate.custom_back_node_code = _this6.runtimeData.customBackNodes[0];
30321
+ _this7.workflowReq.page_operate.custom_back_node_code = _this7.runtimeData.customBackNodes[0];
30230
30322
  }
30231
30323
  case 13:
30232
30324
  case "end":
30233
- return _context3.stop();
30325
+ return _context4.stop();
30234
30326
  }
30235
- }, _callee3);
30327
+ }, _callee4);
30236
30328
  }))();
30237
30329
  },
30238
30330
  /**
@@ -30240,47 +30332,47 @@ var CHECK_ACTION = {
30240
30332
  * @param nodeHandler {NodeHandler}
30241
30333
  */
30242
30334
  nodeHandlerChange: function nodeHandlerChange(nodeHandler) {
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;
30335
+ var _this8 = this;
30336
+ return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
30337
+ var _data$data4, _data$data5, _this8$runtimeData, _this8$runtimeData2;
30246
30338
  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) {
30339
+ return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
30340
+ while (1) switch (_context5.prev = _context5.next) {
30249
30341
  case 0:
30250
30342
  map = nodeHandler.map();
30251
- if (!(map.node.size === Object.keys(_this7.workflow.node_json.node).length)) {
30252
- _context4.next = 3;
30343
+ if (!(map.node.size === Object.keys(_this8.workflow.node_json.node).length)) {
30344
+ _context5.next = 3;
30253
30345
  break;
30254
30346
  }
30255
- return _context4.abrupt("return");
30347
+ return _context5.abrupt("return");
30256
30348
  case 3:
30257
30349
  result = {};
30258
30350
  Object.keys(map).forEach(function (key) {
30259
30351
  result[key] = Object.fromEntries(map[key]);
30260
30352
  });
30261
- _this7.workflowReq.node_json = result;
30262
- _this7.eadApi.getModelValues().workflow_req = _this7.workflowReq;
30263
- _context4.next = 9;
30264
- return _this7.eadApi.runCurrentAction();
30353
+ _this8.workflowReq.node_json = result;
30354
+ _this8.eadApi.getModelValues().workflow_req = _this8.workflowReq;
30355
+ _context5.next = 9;
30356
+ return _this8.eadApi.runCurrentAction();
30265
30357
  case 9:
30266
- data = _context4.sent;
30358
+ data = _context5.sent;
30267
30359
  if (data) {
30268
- _context4.next = 14;
30360
+ _context5.next = 14;
30269
30361
  break;
30270
30362
  }
30271
- _this7.loading = false;
30272
- _this7.$emit('close');
30273
- return _context4.abrupt("return");
30363
+ _this8.loading = false;
30364
+ _this8.$emit('close');
30365
+ return _context5.abrupt("return");
30274
30366
  case 14:
30275
30367
  // runtime数据
30276
- _this7.workflow = data === null || data === void 0 || (_data$data4 = data.data) === null || _data$data4 === void 0 ? void 0 : _data$data4.workflow;
30368
+ _this8.workflow = data === null || data === void 0 || (_data$data4 = data.data) === null || _data$data4 === void 0 ? void 0 : _data$data4.workflow;
30277
30369
  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
30370
  if (runtimeData && Object.keys(runtimeData).length) {
30279
- _this7.runtimeData = runtimeData;
30371
+ _this8.runtimeData = runtimeData;
30280
30372
  }
30281
30373
  // 后续步骤默认执行人配置 selected init
30282
- if (_this7.runtimeData.todos) {
30283
- _this7.runtimeData.todos.forEach(function (item) {
30374
+ if (_this8.runtimeData.todos) {
30375
+ _this8.runtimeData.todos.forEach(function (item) {
30284
30376
  // 非自选 且 选择的为空,默认全选
30285
30377
  if (!item.optional || item.optional && !item.optional.enable) {
30286
30378
  if (!item.selected || !item.selected.length) {
@@ -30303,46 +30395,46 @@ var CHECK_ACTION = {
30303
30395
  }
30304
30396
  // item filter
30305
30397
  // 【FEATURE】响应式更新支持
30306
- if (_this7.runtimeData.todos) {
30307
- _this7.runtimeData.todos.forEach(function (item) {
30398
+ if (_this8.runtimeData.todos) {
30399
+ _this8.runtimeData.todos.forEach(function (item) {
30308
30400
  if (!item.actorfilter) item.actorfilter = '';
30309
30401
  item.actorsf = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(item.actors));
30310
30402
  });
30311
30403
  }
30312
30404
  // user cache
30313
30405
  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));
30406
+ if ((_this8$runtimeData = _this8.runtimeData) !== null && _this8$runtimeData !== void 0 && (_this8$runtimeData = _this8$runtimeData.involve) !== null && _this8$runtimeData !== void 0 && _this8$runtimeData.actors) {
30407
+ users.push.apply(users, RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(_this8.runtimeData.involve.actors));
30316
30408
  }
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));
30409
+ if ((_this8$runtimeData2 = _this8.runtimeData) !== null && _this8$runtimeData2 !== void 0 && (_this8$runtimeData2 = _this8$runtimeData2.reassign) !== null && _this8$runtimeData2 !== void 0 && _this8$runtimeData2.actors) {
30410
+ users.push.apply(users, RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(_this8.runtimeData.reassign.actors));
30319
30411
  }
30320
- if (_this7.runtimeData.todos) {
30321
- _this7.runtimeData.todos.forEach(function (item) {
30412
+ if (_this8.runtimeData.todos) {
30413
+ _this8.runtimeData.todos.forEach(function (item) {
30322
30414
  users.push.apply(users, RuntimeWorkFlowvue_type_script_lang_js_toConsumableArray(item.actors));
30323
30415
  });
30324
30416
  }
30325
- _this7.userCache = {};
30417
+ _this8.userCache = {};
30326
30418
  users.forEach(function (user) {
30327
- _this7.userCache[user.uid] = "".concat(user.name, "\uFF08").concat(user.org_name, "\uFF09");
30419
+ _this8.userCache[user.uid] = "".concat(user.name, "\uFF08").concat(user.org_name, "\uFF09");
30328
30420
  });
30329
30421
  // 后续步骤处理
30330
- _this7.currentTodo = null;
30331
- _this7.validExpression();
30332
- _this7.loadTodo();
30422
+ _this8.currentTodo = null;
30423
+ _this8.validExpression();
30424
+ _this8.loadTodo();
30333
30425
  case 28:
30334
30426
  case "end":
30335
- return _context4.stop();
30427
+ return _context5.stop();
30336
30428
  }
30337
- }, _callee4);
30429
+ }, _callee5);
30338
30430
  }))();
30339
30431
  },
30340
30432
  showFullScreenFlow: function showFullScreenFlow() {
30341
- var _this8 = this;
30433
+ var _this9 = this;
30342
30434
  this.fullscreenLoading = true;
30343
30435
  setTimeout(function () {
30344
- _this8.$nextTick(function () {
30345
- _this8.fullscreen = true;
30436
+ _this9.$nextTick(function () {
30437
+ _this9.fullscreen = true;
30346
30438
  });
30347
30439
  }, 50);
30348
30440
  },
@@ -30351,58 +30443,58 @@ var CHECK_ACTION = {
30351
30443
  this.fullscreen = false;
30352
30444
  },
30353
30445
  handleItemChange: function handleItemChange(value, attr) {
30354
- var _this9 = this;
30355
- return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
30446
+ var _this10 = this;
30447
+ return RuntimeWorkFlowvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().mark(function _callee6() {
30356
30448
  var name, fd, res;
30357
- return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
30358
- while (1) switch (_context5.prev = _context5.next) {
30449
+ return RuntimeWorkFlowvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee6$(_context6) {
30450
+ while (1) switch (_context6.prev = _context6.next) {
30359
30451
  case 0:
30360
30452
  name = attr.name;
30361
30453
  if (!(value instanceof FileList)) {
30362
- _context5.next = 14;
30454
+ _context6.next = 14;
30363
30455
  break;
30364
30456
  }
30365
30457
  if (!value[0]) {
30366
- _context5.next = 11;
30458
+ _context6.next = 11;
30367
30459
  break;
30368
30460
  }
30369
30461
  fd = new FormData();
30370
30462
  fd.append(name, value[0]);
30371
- _context5.next = 7;
30372
- return _this9.$api.post('/upload', fd);
30463
+ _context6.next = 7;
30464
+ return _this10.$api.post('/upload', fd);
30373
30465
  case 7:
30374
- res = _context5.sent;
30466
+ res = _context6.sent;
30375
30467
  value = res.data.data[name];
30376
- _context5.next = 12;
30468
+ _context6.next = 12;
30377
30469
  break;
30378
30470
  case 11:
30379
30471
  value = null;
30380
30472
  case 12:
30381
- _context5.next = 15;
30473
+ _context6.next = 15;
30382
30474
  break;
30383
30475
  case 14:
30384
30476
  if (value instanceof Date) {
30385
- value = _this9.moment(value).format('YYYY-MM-DD');
30477
+ value = _this10.moment(value).format('YYYY-MM-DD');
30386
30478
  }
30387
30479
  case 15:
30388
30480
  // this.actionModel.data[name] = value
30389
30481
 
30390
30482
  // ISSUE:1 兼容格式化 ---------------------------------------------------
30391
30483
  if (['time', 'datetime'].includes(attr.dataType)) {
30392
- value = _this9.moment(value, 'YYYY-MM-DD HH:mm').valueOf();
30484
+ value = _this10.moment(value, 'YYYY-MM-DD HH:mm').valueOf();
30393
30485
  }
30394
30486
  if (['date'].includes(attr.dataType)) {
30395
- value = _this9.moment(value, 'YYYY-MM-DD').valueOf();
30487
+ value = _this10.moment(value, 'YYYY-MM-DD').valueOf();
30396
30488
  }
30397
30489
  // -----------------------------------------------------------
30398
30490
 
30399
- _this9.actionModel[name] = value;
30400
- _this9.loadTodo();
30491
+ _this10.actionModel[name] = value;
30492
+ _this10.loadTodo();
30401
30493
  case 19:
30402
30494
  case "end":
30403
- return _context5.stop();
30495
+ return _context6.stop();
30404
30496
  }
30405
- }, _callee5);
30497
+ }, _callee6);
30406
30498
  }))();
30407
30499
  },
30408
30500
  validExpression: function validExpression() {
@@ -30446,7 +30538,7 @@ var CHECK_ACTION = {
30446
30538
  return list;
30447
30539
  },
30448
30540
  loadTodo: function loadTodo() {
30449
- var _this10 = this;
30541
+ var _this11 = this;
30450
30542
  if (!this.runtimeData.todos) {
30451
30543
  return;
30452
30544
  }
@@ -30470,7 +30562,7 @@ var CHECK_ACTION = {
30470
30562
  }
30471
30563
  } else {
30472
30564
  if (!this.availableTodo(this.runtimeData.todos.find(function (todo) {
30473
- return todo.node_code === _this10.currentTodo;
30565
+ return todo.node_code === _this11.currentTodo;
30474
30566
  }))) {
30475
30567
  this.currentTodo = null;
30476
30568
  this.loadTodo();
@@ -30478,7 +30570,7 @@ var CHECK_ACTION = {
30478
30570
  }
30479
30571
  },
30480
30572
  availableTodo: function availableTodo(todo) {
30481
- var _this11 = this;
30573
+ var _this12 = this;
30482
30574
  if (this.expressionError) {
30483
30575
  return false;
30484
30576
  }
@@ -30490,7 +30582,7 @@ var CHECK_ACTION = {
30490
30582
  var data = {};
30491
30583
  // eslint-disable-next-line no-return-assign
30492
30584
  this.activityColumns.forEach(function (column) {
30493
- return data[column] = _this11.actionModel[column];
30585
+ return data[column] = _this12.actionModel[column];
30494
30586
  });
30495
30587
  // eslint-disable-next-line no-new-func
30496
30588
  var expressionFn = new Function(Object.keys(data), 'return ' + expression);
@@ -30507,8 +30599,8 @@ var CHECK_ACTION = {
30507
30599
  });
30508
30600
  // CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=script&lang=js
30509
30601
  /* harmony default export */ var runtime_RuntimeWorkFlowvue_type_script_lang_js = (RuntimeWorkFlowvue_type_script_lang_js);
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");
30602
+ // EXTERNAL MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue?vue&type=style&index=0&id=5970b818&prod&lang=less&scoped=true
30603
+ var RuntimeWorkFlowvue_type_style_index_0_id_5970b818_prod_lang_less_scoped_true = __webpack_require__("8e84");
30512
30604
 
30513
30605
  // CONCATENATED MODULE: ../src/web/components/forms/flow/runtime/RuntimeWorkFlow.vue
30514
30606
 
@@ -30521,11 +30613,11 @@ var RuntimeWorkFlowvue_type_style_index_0_id_3f2edf36_prod_lang_less_scoped_true
30521
30613
 
30522
30614
  var RuntimeWorkFlow_component = normalizeComponent(
30523
30615
  runtime_RuntimeWorkFlowvue_type_script_lang_js,
30524
- RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_render,
30525
- RuntimeWorkFlowvue_type_template_id_3f2edf36_scoped_true_staticRenderFns,
30616
+ RuntimeWorkFlowvue_type_template_id_5970b818_scoped_true_render,
30617
+ RuntimeWorkFlowvue_type_template_id_5970b818_scoped_true_staticRenderFns,
30526
30618
  false,
30527
30619
  null,
30528
- "3f2edf36",
30620
+ "5970b818",
30529
30621
  null
30530
30622
 
30531
30623
  )
@@ -31915,17 +32007,6 @@ var variable = __webpack_require__("aa23");
31915
32007
  /* unused harmony reexport * */
31916
32008
 
31917
32009
 
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
-
31929
32010
  /***/ }),
31930
32011
 
31931
32012
  /***/ "1f44":
@@ -33178,6 +33259,13 @@ module.exports = require("@antv/g6");
33178
33259
 
33179
33260
  /***/ }),
33180
33261
 
33262
+ /***/ "5304":
33263
+ /***/ (function(module, exports, __webpack_require__) {
33264
+
33265
+ // extracted by mini-css-extract-plugin
33266
+
33267
+ /***/ }),
33268
+
33181
33269
  /***/ "5596":
33182
33270
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
33183
33271
 
@@ -45977,6 +46065,17 @@ module.exports = require("vue");
45977
46065
  /* unused harmony reexport * */
45978
46066
 
45979
46067
 
46068
+ /***/ }),
46069
+
46070
+ /***/ "8e84":
46071
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
46072
+
46073
+ "use strict";
46074
+ /* 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_5970b818_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5304");
46075
+ /* 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_5970b818_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_5970b818_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
46076
+ /* unused harmony reexport * */
46077
+
46078
+
45980
46079
  /***/ }),
45981
46080
 
45982
46081
  /***/ "8eee":
@@ -52065,13 +52164,6 @@ module.exports = require("vuex/dist/logger");
52065
52164
 
52066
52165
  /***/ }),
52067
52166
 
52068
- /***/ "feb3":
52069
- /***/ (function(module, exports, __webpack_require__) {
52070
-
52071
- // extracted by mini-css-extract-plugin
52072
-
52073
- /***/ }),
52074
-
52075
52167
  /***/ "ff21":
52076
52168
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
52077
52169