@xatlas/rainbow-core 1.6.1 → 1.6.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.
@@ -2110,8 +2110,8 @@ function file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg)
2110
2110
 
2111
2111
  function file_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
2112
2112
 
2113
- var openDownload = function openDownload(apiBaseURL) {
2114
- window.open("".concat(apiBaseURL, "/api/download?_time='").concat(new Date().getTime()), '_blank');
2113
+ var openDownload = function openDownload(apiBaseURL, fileId) {
2114
+ window.open("/file/getfile/".concat(fileId, "?_time='").concat(new Date().getTime()), '_blank');
2115
2115
  };
2116
2116
 
2117
2117
  /* harmony default export */ var action_file = ({
@@ -2207,7 +2207,7 @@ var openDownload = function openDownload(apiBaseURL) {
2207
2207
  case 3:
2208
2208
  result = _context3.sent;
2209
2209
  hide();
2210
- if (!(result instanceof Error)) openDownload(_this3.apiBaseURL);
2210
+ if (!(result instanceof Error)) openDownload(_this3.apiBaseURL, result.file_id);
2211
2211
 
2212
2212
  case 6:
2213
2213
  case "end":
@@ -2281,7 +2281,7 @@ var openDownload = function openDownload(apiBaseURL) {
2281
2281
  case 3:
2282
2282
  result = _context5.sent;
2283
2283
  hide();
2284
- if (!(result instanceof Error)) openDownload(_this4.apiBaseURL);
2284
+ if (!(result instanceof Error)) openDownload(_this4.apiBaseURL, result.file_id);
2285
2285
 
2286
2286
  case 6:
2287
2287
  case "end":
@@ -2353,7 +2353,7 @@ var openDownload = function openDownload(apiBaseURL) {
2353
2353
  case 3:
2354
2354
  result = _context7.sent;
2355
2355
  hide();
2356
- if (!(result instanceof Error)) openDownload(_this5.apiBaseURL);
2356
+ if (!(result instanceof Error)) openDownload(_this5.apiBaseURL, result.file_id);
2357
2357
 
2358
2358
  case 6:
2359
2359
  case "end":
@@ -3024,7 +3024,7 @@ function flow_asyncToGenerator(fn) { return function () { var self = this, args
3024
3024
  var _this = this;
3025
3025
 
3026
3026
  return flow_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
3027
- var model, data, rowSelectionType;
3027
+ var model, data;
3028
3028
  return regenerator_default.a.wrap(function _callee$(_context) {
3029
3029
  while (1) {
3030
3030
  switch (_context.prev = _context.next) {
@@ -3054,13 +3054,10 @@ function flow_asyncToGenerator(fn) { return function () { var self = this, args
3054
3054
  todo_actors: []
3055
3055
  });
3056
3056
  _this.actionViewWidget = 'workflow-report';
3057
- rowSelectionType = action.params && action.params.rowSelectionType ? action.params.rowSelectionType : null;
3058
- _this.actionParams.flow = rowSelectionType ? flow_objectSpread(flow_objectSpread({}, data), {}, {
3059
- rowSelectionType: rowSelectionType
3060
- }) : data;
3057
+ _this.actionParams.flow = data;
3061
3058
  _this.actionViewVisible = true;
3062
3059
 
3063
- case 13:
3060
+ case 12:
3064
3061
  case "end":
3065
3062
  return _context.stop();
3066
3063
  }
@@ -12709,8 +12706,8 @@ var PickerSelectView_component = normalizeComponent(
12709
12706
  )
12710
12707
 
12711
12708
  /* harmony default export */ var PickerSelectView = (PickerSelectView_component.exports);
12712
- // CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"842ff382-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/WorkflowReport.vue?vue&type=template&id=5fc116f7&
12713
- var WorkflowReportvue_type_template_id_5fc116f7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-form-model',{ref:"form",staticStyle:{"min-height":"400px"},attrs:{"model":_vm.actionModel,"rules":_vm.rules}},[_c('a-tabs',{attrs:{"tab-position":'top'},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:"activeName"}},[(_vm.actionModel.confirm)?_c('a-tab-pane',{key:"1",staticClass:"flow-approve-content",attrs:{"tab":"上报/审批","bodyStyle":{ 'overflow-y': 'auto', 'max-height': '350px' }}},[(_vm.actionModel.flow_action_name)?_c('a-card',{attrs:{"size":"small"}},[_c('a-form-model-item',{attrs:{"prop":"flow_action_name","size":"small"}},[_c('a-radio-group',{attrs:{"defaultValue":"submit"},model:{value:(_vm.actionModel.flow_action_name),callback:function ($$v) {_vm.$set(_vm.actionModel, "flow_action_name", $$v)},expression:"actionModel.flow_action_name"}},[_c('a-radio-button',{attrs:{"value":"submit"}},[_vm._v("审批通过")]),(_vm.allowBack)?_c('a-radio-button',{attrs:{"value":"back"}},[_vm._v("审批退回")]):_vm._e()],1)],1),_vm._l((_vm.attrs),function(attr){return _c('Item',{key:attr.name,attrs:{"formModel":_vm.actionModel,"prop":attr.name,"schema":attr,"required":attr.required,"params":{}},on:{"change":function($event){return _vm.handleItemChange($event, attr)}},model:{value:(_vm.actionModel[attr.name]),callback:function ($$v) {_vm.$set(_vm.actionModel, attr.name, $$v)},expression:"actionModel[attr.name]"}})}),_c('a-form-model-item',{attrs:{"label":"审批意见","prop":"deal_note","size":"small"}},[_c('a-textarea',{attrs:{"placeholder":"请输入审批或退回意见","auto-size":{ minRows: 4, maxRows: 6 }},model:{value:(_vm.actionModel.deal_note),callback:function ($$v) {_vm.$set(_vm.actionModel, "deal_note", $$v)},expression:"actionModel.deal_note"}})],1),(
12709
+ // CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"842ff382-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/WorkflowReport.vue?vue&type=template&id=16e8cc18&
12710
+ var WorkflowReportvue_type_template_id_16e8cc18_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-form-model',{ref:"form",staticStyle:{"min-height":"400px"},attrs:{"model":_vm.actionModel,"rules":_vm.rules}},[_c('a-tabs',{attrs:{"tab-position":'top'},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:"activeName"}},[(_vm.actionModel.confirm)?_c('a-tab-pane',{key:"1",staticClass:"flow-approve-content",attrs:{"tab":"上报/审批","bodyStyle":{ 'overflow-y': 'auto', 'max-height': '350px' }}},[(_vm.actionModel.flow_action_name)?_c('a-card',{attrs:{"size":"small"}},[_c('a-form-model-item',{attrs:{"prop":"flow_action_name","size":"small"}},[_c('a-radio-group',{attrs:{"defaultValue":"submit"},model:{value:(_vm.actionModel.flow_action_name),callback:function ($$v) {_vm.$set(_vm.actionModel, "flow_action_name", $$v)},expression:"actionModel.flow_action_name"}},[_c('a-radio-button',{attrs:{"value":"submit"}},[_vm._v("审批通过")]),(_vm.allowBack)?_c('a-radio-button',{attrs:{"value":"back"}},[_vm._v("审批退回")]):_vm._e()],1)],1),_vm._l((_vm.attrs),function(attr){return _c('Item',{key:attr.name,attrs:{"formModel":_vm.actionModel,"prop":attr.name,"schema":attr,"required":attr.required,"params":{}},on:{"change":function($event){return _vm.handleItemChange($event, attr)}},model:{value:(_vm.actionModel[attr.name]),callback:function ($$v) {_vm.$set(_vm.actionModel, attr.name, $$v)},expression:"actionModel[attr.name]"}})}),_c('a-form-model-item',{attrs:{"label":"审批意见","prop":"deal_note","size":"small"}},[_c('a-textarea',{attrs:{"placeholder":"请输入审批或退回意见","auto-size":{ minRows: 4, maxRows: 6 }},model:{value:(_vm.actionModel.deal_note),callback:function ($$v) {_vm.$set(_vm.actionModel, "deal_note", $$v)},expression:"actionModel.deal_note"}})],1),(
12714
12711
  _vm.actionModel.flow_action_name === 'back' && _vm.backs && _vm.backs.length
12715
12712
  )?_c('a-form-model-item',{attrs:{"label":"退回步骤","prop":"deal_note","size":"small"}},[_c('a-select',_vm._l((_vm.backs),function(step){return _c('a-select-option',{key:step.step_id,attrs:{"value":step.step_id},model:{value:(_vm.actionModel.back_step),callback:function ($$v) {_vm.$set(_vm.actionModel, "back_step", $$v)},expression:"actionModel.back_step"}},[_vm._v(" "+_vm._s(step.step_name)+" ")])}),1)],1):_vm._e(),(_vm.allowOver)?_c('a-form-model-item',{attrs:{"label":"结束工作流","prop":"allow_over","size":"small"}},[_c('a-switch',{model:{value:(_vm.actionModel.is_over),callback:function ($$v) {_vm.$set(_vm.actionModel, "is_over", $$v)},expression:"actionModel.is_over"}})],1):_vm._e()],2):_vm._e(),(!_vm.actionModel.flow_action_name)?_c('a-card',_vm._l((_vm.attrs),function(attr){return _c('Item',{key:attr.name,attrs:{"formModel":_vm.actionModel,"prop":attr.name,"schema":attr,"params":{}},on:{"change":function($event){return _vm.handleItemChange($event, attr)}},model:{value:(_vm.actionModel[attr.name]),callback:function ($$v) {_vm.$set(_vm.actionModel, attr.name, $$v)},expression:"actionModel[attr.name]"}})}),1):_vm._e(),(
12716
12713
  _vm.todos.length &&
@@ -12729,10 +12726,10 @@ var WorkflowReportvue_type_template_id_5fc116f7_render = function () {var _vm=th
12729
12726
  : _vm.stepIndex === index
12730
12727
  ? 'green'
12731
12728
  : '#999'}},[_c('span',[_vm._v(_vm._s(index + 1))]),_vm._v(". "+_vm._s(step.step_name)+" "),(_vm.stepIndex > index)?_c('span',[_vm._v(" ("+_vm._s(_vm.logs[index + _vm.dealIndex + 1] ? _vm.logs[index + _vm.dealIndex + 1].operator.actor_name : '')+") ")]):_vm._e(),(_vm.stepIndex === index)?_c('span',[_vm._v(" "+_vm._s(_vm.operatorName)+" ")]):_vm._e()])}),1)],1)],1),_c('a-tab-pane',{key:"4",attrs:{"tab":"流程图","forceRender":""}},[_c('a-card',{attrs:{"bodyStyle":{ 'overflow-y': 'auto', 'max-height': '350px' }}},[_c('div',{ref:"graph"})])],1)],1)],1)}
12732
- var WorkflowReportvue_type_template_id_5fc116f7_staticRenderFns = []
12729
+ var WorkflowReportvue_type_template_id_16e8cc18_staticRenderFns = []
12733
12730
 
12734
12731
 
12735
- // CONCATENATED MODULE: ../src/web/components/forms/WorkflowReport.vue?vue&type=template&id=5fc116f7&
12732
+ // CONCATENATED MODULE: ../src/web/components/forms/WorkflowReport.vue?vue&type=template&id=16e8cc18&
12736
12733
 
12737
12734
  // EXTERNAL MODULE: external {"root":"@antv/g6","commonjs2":"@antv/g6","commonjs":"@antv/g6","amd":"@antv/g6"}
12738
12735
  var g6_ = __webpack_require__("336c");
@@ -13063,13 +13060,19 @@ var Plugin = __webpack_require__("019f");
13063
13060
  while (1) {
13064
13061
  switch (_context.prev = _context.next) {
13065
13062
  case 0:
13066
- // if (this.todos[0].todo_actors.length && !this.actionModel.todo_actors.length && this.actionModel.flow_action_name !== 'back') {
13067
- // this.$message.error('请选择下一步审批者')
13068
- // return
13069
- // }
13063
+ if (!(_this3.todos[0].todo_actors.length && !_this3.actionModel.todo_actors.length && _this3.actionModel.flow_action_name !== 'back' && !_this3.params.todoActorsNotRequired)) {
13064
+ _context.next = 3;
13065
+ break;
13066
+ }
13067
+
13068
+ _this3.$message.error('请选择下一步审批者');
13069
+
13070
+ return _context.abrupt("return");
13071
+
13072
+ case 3:
13070
13073
  _this3.$emit('commit', _this3.actionModel);
13071
13074
 
13072
- case 1:
13075
+ case 4:
13073
13076
  case "end":
13074
13077
  return _context.stop();
13075
13078
  }
@@ -13303,8 +13306,8 @@ var WorkflowReportvue_type_style_index_0_lang_css_ = __webpack_require__("632f")
13303
13306
 
13304
13307
  var WorkflowReport_component = normalizeComponent(
13305
13308
  forms_WorkflowReportvue_type_script_lang_js_,
13306
- WorkflowReportvue_type_template_id_5fc116f7_render,
13307
- WorkflowReportvue_type_template_id_5fc116f7_staticRenderFns,
13309
+ WorkflowReportvue_type_template_id_16e8cc18_render,
13310
+ WorkflowReportvue_type_template_id_16e8cc18_staticRenderFns,
13308
13311
  false,
13309
13312
  null,
13310
13313
  null,