@xatlas/rainbow-core 1.2.5 → 1.2.9

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.
@@ -2757,7 +2757,7 @@ function flow_asyncToGenerator(fn) { return function () { var self = this, args
2757
2757
  }, _callee2);
2758
2758
  }))();
2759
2759
  },
2760
- handleFlowQuery: function handleFlowQuery(action) {
2760
+ handleFlowReassign: function handleFlowReassign(action) {
2761
2761
  var _this3 = this;
2762
2762
 
2763
2763
  return flow_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee3() {
@@ -2768,37 +2768,88 @@ function flow_asyncToGenerator(fn) { return function () { var self = this, args
2768
2768
  case 0:
2769
2769
  model = _this3.actionModel;
2770
2770
  _this3.actionConfirmMode = true;
2771
- _this3.actioning = true;
2772
- _context3.next = 5;
2771
+ _context3.next = 4;
2773
2772
  return _this3.saveData({
2774
2773
  key: action.key,
2775
2774
  data: flow_objectSpread({}, model)
2776
2775
  });
2777
2776
 
2778
- case 5:
2777
+ case 4:
2779
2778
  data = _context3.sent;
2780
- _this3.actioning = false;
2781
2779
 
2782
2780
  if (data.data) {
2783
- _context3.next = 9;
2781
+ _context3.next = 7;
2784
2782
  break;
2785
2783
  }
2786
2784
 
2787
2785
  return _context3.abrupt("return");
2788
2786
 
2789
- case 9:
2787
+ case 7:
2790
2788
  _this3.actionConfirmMode = false;
2791
2789
  _this3.actionViewWidget = 'workflow-report';
2790
+ _this3.actionModel = flow_objectSpread(flow_objectSpread({}, model), {}, {
2791
+ data: flow_objectSpread({}, data.data),
2792
+ confirm: 1,
2793
+ deal_note: '',
2794
+ flow_action_name: 'reassign',
2795
+ form_param: [],
2796
+ todo_actors: [],
2797
+ todo_id: data.data.todo_id,
2798
+ back_step: ''
2799
+ });
2792
2800
  _this3.actionParams.flow = data;
2793
2801
  _this3.actionViewVisible = true;
2794
2802
 
2795
- case 13:
2803
+ case 12:
2796
2804
  case "end":
2797
2805
  return _context3.stop();
2798
2806
  }
2799
2807
  }
2800
2808
  }, _callee3);
2801
2809
  }))();
2810
+ },
2811
+ handleFlowQuery: function handleFlowQuery(action) {
2812
+ var _this4 = this;
2813
+
2814
+ return flow_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee4() {
2815
+ var model, data;
2816
+ return regenerator_default.a.wrap(function _callee4$(_context4) {
2817
+ while (1) {
2818
+ switch (_context4.prev = _context4.next) {
2819
+ case 0:
2820
+ model = _this4.actionModel;
2821
+ _this4.actionConfirmMode = true;
2822
+ _this4.actioning = true;
2823
+ _context4.next = 5;
2824
+ return _this4.saveData({
2825
+ key: action.key,
2826
+ data: flow_objectSpread({}, model)
2827
+ });
2828
+
2829
+ case 5:
2830
+ data = _context4.sent;
2831
+ _this4.actioning = false;
2832
+
2833
+ if (data.data) {
2834
+ _context4.next = 9;
2835
+ break;
2836
+ }
2837
+
2838
+ return _context4.abrupt("return");
2839
+
2840
+ case 9:
2841
+ _this4.actionConfirmMode = false;
2842
+ _this4.actionViewWidget = 'workflow-report';
2843
+ _this4.actionParams.flow = data;
2844
+ _this4.actionViewVisible = true;
2845
+
2846
+ case 13:
2847
+ case "end":
2848
+ return _context4.stop();
2849
+ }
2850
+ }
2851
+ }, _callee4);
2852
+ }))();
2802
2853
  }
2803
2854
  }
2804
2855
  });
@@ -3057,6 +3108,7 @@ var ACTION_ACCESS = {
3057
3108
  'e.flow-submit': 'handleFlowCheck',
3058
3109
  'e.flow-check': 'handleFlowCheck',
3059
3110
  'e.flow-open': 'handleFlowCheck',
3111
+ 'e.flow-reassign': 'handleFlowReassign',
3060
3112
  viewSelect: 'handleViewPicker',
3061
3113
  algorithm: 'handleAlgorithm'
3062
3114
  };
@@ -3827,8 +3879,8 @@ function form_base_defineProperty(obj, key, value) { if (key in obj) { Object.de
3827
3879
  }
3828
3880
  }
3829
3881
  });
3830
- // CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"302e9f43-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/Item.vue?vue&type=template&id=5c935f44&
3831
- var Itemvue_type_template_id_5c935f44_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.showModel)?_c('a-form-model-item',{ref:"item",attrs:{"label":_vm.label,"help":_vm.help,"extra":_vm.extra,"validate-status":_vm.validateStatus,"colon":false,"has-feedback":false,"prop":_vm.prop,"rules":_vm.rules}},[(['select', 'chosen'].includes(_vm.schema.control))?_c('a-select',{staticStyle:{"width":"100%","min-width":"190px"},attrs:{"value":_vm.value,"allowClear":"","showSearch":_vm.schema.control === 'chosen',"optionFilterProp":"children","filterOption":_vm.filterOption,"disabled":_vm.readonly,"dropdownMatchSelectWidth":false,"placeholder":_vm.placeholder},on:{"change":function (value) { return _vm.$emit('change', value); }}},_vm._l((_vm.options),function(item,index){return _c('a-select-option',{key:index,attrs:{"title":item.label,"value":item.value}},[_vm._v(" "+_vm._s(item.label)+" ")])}),1):(['multiple'].includes(_vm.schema.control))?_c('a-select',{staticStyle:{"width":"100%","min-width":"190px"},attrs:{"mode":"multiple","allowClear":"","defaultValue":_vm.value && _vm.value.split(','),"disabled":_vm.readonly,"dropdownMatchSelectWidth":false,"placeholder":_vm.placeholder},on:{"change":function (value) { return _vm.$emit('change', value.join(',')); }}},_vm._l((_vm.options),function(item,index){return _c('a-select-option',{key:index,attrs:{"title":item.label,"value":item.value}},[_vm._v(" "+_vm._s(item.label)+" ")])}),1):(_vm.schema.metaType === 'Boolean')?_c('a-switch',{attrs:{"disabled":_vm.readonly,"defaultChecked":_vm.value},on:{"change":function (e) { return _vm.$emit('change', e.target.value); }}}):(_vm.schema.control === 'daterange')?_c('a-range-picker',{attrs:{"disabled":_vm.readonly,"valueFormat":'YYYY-MM-DD',"placeholder":[("开始" + _vm.placeholder), ("结束" + _vm.placeholder)],"defaultValue":_vm.value ? _vm.value.split(',').map(function (v) { return _vm.moment(Number(v) || v); }) : null,"allowClear":""},on:{"change":function (date, str) {
3882
+ // CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"302e9f43-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/Item.vue?vue&type=template&id=4af280fd&
3883
+ var Itemvue_type_template_id_4af280fd_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.showModel)?_c('a-form-model-item',{ref:"item",attrs:{"label":_vm.label,"help":_vm.help,"extra":_vm.extra,"validate-status":_vm.validateStatus,"colon":false,"has-feedback":false,"prop":_vm.prop,"rules":_vm.rules}},[(['select', 'chosen'].includes(_vm.schema.control))?_c('a-select',{staticStyle:{"width":"100%","min-width":"190px"},attrs:{"value":_vm.value,"allowClear":"","showSearch":_vm.schema.control === 'chosen',"optionFilterProp":"children","filterOption":_vm.filterOption,"disabled":_vm.readonly,"dropdownMatchSelectWidth":false,"placeholder":_vm.placeholder},on:{"change":function (value) { return _vm.$emit('change', value); }}},_vm._l((_vm.options),function(item,index){return _c('a-select-option',{key:index,attrs:{"title":item.label,"value":item.value}},[_vm._v(" "+_vm._s(item.label)+" ")])}),1):(['multiple'].includes(_vm.schema.control))?_c('a-select',{staticStyle:{"width":"100%","min-width":"190px"},attrs:{"mode":"multiple","allowClear":"","defaultValue":_vm.value && _vm.value.split(','),"disabled":_vm.readonly,"dropdownMatchSelectWidth":false,"placeholder":_vm.placeholder},on:{"change":function (value) { return _vm.$emit('change', value.join(',')); }}},_vm._l((_vm.options),function(item,index){return _c('a-select-option',{key:index,attrs:{"title":item.label,"value":item.value}},[_vm._v(" "+_vm._s(item.label)+" ")])}),1):(_vm.schema.metaType === 'Boolean')?_c('a-switch',{attrs:{"disabled":_vm.readonly,"defaultChecked":_vm.value},on:{"change":function (e) { return _vm.$emit('change', e.target.value); }}}):(_vm.schema.control === 'daterange')?_c('a-range-picker',{attrs:{"disabled":_vm.readonly,"valueFormat":'YYYY-MM-DD',"placeholder":[("开始" + _vm.placeholder), ("结束" + _vm.placeholder)],"defaultValue":_vm.value ? _vm.value.split(',').map(function (v) { return _vm.moment(Number(v) || v); }) : null,"allowClear":""},on:{"change":function (date, str) {
3832
3884
  _vm.$emit('change', str.join(','))
3833
3885
  }}}):(
3834
3886
  ['date', 'datetime'].includes(_vm.schema.control) ||
@@ -3856,17 +3908,17 @@ var Itemvue_type_template_id_5c935f44_render = function () {var _vm=this;var _h=
3856
3908
  _vm.schema.params && _vm.schema.params.fileSize
3857
3909
  ? _vm.schema.params.fileSize
3858
3910
  : null
3859
- )}}},[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v(" 批量上传 ")],1)],1),_vm._l((_vm.defaultFileList),function(file,index){return _c('div',{key:index,staticClass:"form-file-upload"},[_c('a-row',{attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('a-col',[_vm._v(_vm._s(file.file_name || file.name))]),_c('a-col',[_c('a-icon',{attrs:{"type":"close"},on:{"click":function($event){return _vm.handleRemove(index)}}})],1)],1)],1)})],2):(_vm.schema.control === 'image')?_c('a-upload',{staticClass:"avatar-uploader",attrs:{"accept":"image/*","list-type":"picture-card","default-file-list":_vm.defaultFileList,"before-upload":_vm.beforeUpload,"remove":function () { return _vm.$emit('change', null); }}},[(!_vm.formModel[_vm.schema.name])?_c('div',[_c('a-icon',{attrs:{"type":'plus'}}),_c('div',{staticClass:"ant-upload-text"},[_vm._v("上传")])],1):_vm._e()]):(_vm.schema.control === 'view-select' && !_vm.readonly)?_c('a-input',{attrs:{"placeholder":_vm.placeholder,"read-only":"","value":_vm.valueLabel,"allowClear":""}},[_c('a-icon',{attrs:{"slot":"addonAfter","type":"search"},on:{"click":function($event){return _vm.handlePickerShow(_vm.schema)}},slot:"addonAfter"})],1):(_vm.schema.control === 'textarea')?_c('a-textarea',{attrs:{"placeholder":_vm.placeholder,"defaultValue":_vm.value,"disabled":_vm.readonly,"maxLength":_vm.schema.maxLength ? _vm.schema.maxLength : 512,"auto-size":{ minRows: 1, maxRows: 10 },"allowClear":""},on:{"blur":function (e) { return _vm.$emit('change', e.target.value); },"pressEnter":function (e) { return _vm.$emit('change', e.target.value); }}}):(_vm.schema.control === 'csv-json')?_c('span',[_c('a-textarea',{attrs:{"defaultValue":_vm.value,"placeholder":_vm.placeholder,"disabled":_vm.readonly,"maxLength":_vm.schema.maxLength ? _vm.schema.maxLength : 512,"auto-size":{ minRows: 1, maxRows: 10 },"allowClear":""},on:{"blur":function (e) { return _vm.$emit('change', e.target.value); },"pressEnter":function (e) { return _vm.$emit('change', e.target.value); }}})],1):(_vm.schema.control === 'tree-suggest')?_c('a-tree-select',{staticStyle:{"width":"100%","min-width":"190px"},attrs:{"placeholder":_vm.placeholder,"dropdownStyle":{ maxHeight: '300px', overflow: 'auto' },"treeData":_vm.async ? _vm.asyncTreeData : _vm.treeData,"loadData":(_vm.async && _vm.handleAsyncLoadData) || null,"allowClear":"","value":_vm.value},on:{"change":function (value) { return _vm.$emit('change', value); }}}):(_vm.schema.control === 'tree-select')?_c('div',[(0)?undefined:_vm._e(),_c('a-tree',{attrs:{"replaceFields":{ title: 'label' },"treeData":_vm.async ? _vm.asyncTreeData : _vm.treeData,"selectedKeys":[_vm.defaultValue],"loadData":(_vm.async && _vm.handleAsyncLoadData) || null,"defaultExpandedKeys":[_vm.treeData[0] && _vm.treeData[0].key]},on:{"select":_vm.handleTreeSelect}})],1):(_vm.schema.control === 'password')?_c("a-input-password",{tag:"component",attrs:{"name":_vm.schema.name,"placeholder":_vm.placeholder,"allowClear":""},on:{"change":function (e) { return _vm.$emit('change', e.target.value); }}}):(_vm.schema.control === 'editor')?_c('Editor',{attrs:{"placeholder":_vm.placeholder,"disabled":_vm.readonly},on:{"change":function (val) { return _vm.$emit('change', val); }},model:{value:(_vm.formModel[_vm.schema.name]),callback:function ($$v) {_vm.$set(_vm.formModel, _vm.schema.name, $$v)},expression:"formModel[schema.name]"}}):(_vm.schema.control === 'verify')?_c('VerificationCode',{attrs:{"placeholder":_vm.placeholder,"url":_vm.schema.params.url,"time":_vm.schema.params.time,"phone":_vm.formModel[_vm.schema.params.phoneName]},on:{"change":function (val) { return _vm.$emit('change', val); }}}):(_vm.schema.control === 'map-marker')?_c('MapMarker',{attrs:{"placeholder":_vm.placeholder,"name":_vm.schema.name,"mapCenter":_vm.schema.params &&
3911
+ )}}},[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v(" 批量上传 ")],1)],1),_vm._l((_vm.defaultFileList),function(file,index){return _c('div',{key:index,staticClass:"form-file-upload"},[_c('a-row',{attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('a-col',[_vm._v(_vm._s(file.file_name || file.name))]),_c('a-col',[_c('a-icon',{attrs:{"type":"close"},on:{"click":function($event){return _vm.handleRemove(index)}}})],1)],1)],1)})],2):(_vm.schema.control === 'image')?_c('a-upload',{staticClass:"avatar-uploader",attrs:{"accept":"image/*","list-type":"picture-card","default-file-list":_vm.defaultFileList,"before-upload":_vm.beforeUpload,"remove":function () { return _vm.$emit('change', null); }}},[(!_vm.formModel[_vm.schema.name])?_c('div',[_c('a-icon',{attrs:{"type":'plus'}}),_c('div',{staticClass:"ant-upload-text"},[_vm._v("上传")])],1):_vm._e()]):(_vm.schema.control === 'view-select' && !_vm.readonly)?_c('a-input',{attrs:{"placeholder":_vm.placeholder,"read-only":"","value":_vm.valueLabel,"allowClear":""}},[_c('a-icon',{attrs:{"slot":"addonAfter","type":"search"},on:{"click":function($event){return _vm.handlePickerShow(_vm.schema)}},slot:"addonAfter"})],1):(_vm.schema.control === 'textarea')?_c('a-textarea',{attrs:{"placeholder":_vm.placeholder,"defaultValue":_vm.value,"disabled":_vm.readonly,"maxLength":_vm.schema.maxLength ? _vm.schema.maxLength : 512,"auto-size":{ minRows: 1, maxRows: 10 },"allowClear":""},on:{"blur":function (e) { return _vm.$emit('change', e.target.value); },"pressEnter":function (e) { return _vm.$emit('change', e.target.value); }}}):(_vm.schema.control === 'csv-json')?_c('span',[_c('a-textarea',{attrs:{"defaultValue":_vm.value,"placeholder":_vm.placeholder,"disabled":_vm.readonly,"maxLength":_vm.schema.maxLength ? _vm.schema.maxLength : 512,"auto-size":{ minRows: 1, maxRows: 10 },"allowClear":""},on:{"blur":function (e) { return _vm.$emit('change', e.target.value); },"pressEnter":function (e) { return _vm.$emit('change', e.target.value); }}})],1):(_vm.schema.control === 'tree-suggest')?_c('a-tree-select',{staticStyle:{"width":"100%","min-width":"190px"},attrs:{"placeholder":_vm.placeholder,"dropdownStyle":{ maxHeight: '300px', overflow: 'auto' },"treeData":_vm.async ? _vm.asyncTreeData : _vm.treeData,"loadData":(_vm.async && _vm.handleAsyncLoadData) || null,"allowClear":"","value":_vm.value},on:{"change":function (value) { return _vm.$emit('change', value); }}}):(_vm.schema.control === 'tree-suggests')?_c('a-tree-select',{staticStyle:{"width":"100%","min-width":"190px"},attrs:{"placeholder":_vm.placeholder,"dropdownStyle":{ maxHeight: '300px', overflow: 'auto' },"treeData":_vm.async ? _vm.asyncTreeData : _vm.treeData,"loadData":(_vm.async && _vm.handleAsyncLoadData) || null,"allowClear":"","multiple":"","value":_vm.value ? _vm.value.split(',') : undefined},on:{"change":function (value) { return _vm.$emit('change', value ? value.join(',') : undefined); }}}):(_vm.schema.control === 'tree-select')?_c('div',[(0)?undefined:_vm._e(),_c('a-tree',{attrs:{"replaceFields":{ title: 'label' },"treeData":_vm.async ? _vm.asyncTreeData : _vm.treeData,"selectedKeys":[_vm.defaultValue],"loadData":(_vm.async && _vm.handleAsyncLoadData) || null,"defaultExpandedKeys":[_vm.treeData[0] && _vm.treeData[0].key]},on:{"select":_vm.handleTreeSelect}})],1):(_vm.schema.control === 'password')?_c("a-input-password",{tag:"component",attrs:{"name":_vm.schema.name,"placeholder":_vm.placeholder,"allowClear":""},on:{"change":function (e) { return _vm.$emit('change', e.target.value); }}}):(_vm.schema.control === 'editor')?_c('Editor',{attrs:{"placeholder":_vm.placeholder,"disabled":_vm.readonly},on:{"change":function (val) { return _vm.$emit('change', val); }},model:{value:(_vm.formModel[_vm.schema.name]),callback:function ($$v) {_vm.$set(_vm.formModel, _vm.schema.name, $$v)},expression:"formModel[schema.name]"}}):(_vm.schema.control === 'verify')?_c('VerificationCode',{attrs:{"placeholder":_vm.placeholder,"url":_vm.schema.params.url,"time":_vm.schema.params.time,"phone":_vm.formModel[_vm.schema.params.phoneName]},on:{"change":function (val) { return _vm.$emit('change', val); }}}):(_vm.schema.control === 'map-marker')?_c('MapMarker',{attrs:{"placeholder":_vm.placeholder,"name":_vm.schema.name,"mapCenter":_vm.schema.params &&
3860
3912
  (_vm.schema.params.mapCenter
3861
3913
  ? JSON.parse(_vm.schema.params.mapCenter)
3862
3914
  : _vm.schema.params.control.mapCenter)},on:{"change":function (val) { return _vm.$emit('change', val); },"map":_vm.handleMapComplete},model:{value:(_vm.formModel[_vm.schema.name]),callback:function ($$v) {_vm.$set(_vm.formModel, _vm.schema.name, $$v)},expression:"formModel[schema.name]"}}):(_vm.schema.control === 'map-polygon')?_c('MapPolygon',{attrs:{"placeholder":_vm.placeholder,"name":_vm.schema.name,"mapCenter":_vm.schema.params &&
3863
3915
  (_vm.schema.params.mapCenter
3864
3916
  ? JSON.parse(_vm.schema.params.mapCenter)
3865
3917
  : _vm.schema.params.control.mapCenter)},on:{"change":function (val) { return _vm.$emit('change', val); }},model:{value:(_vm.formModel[_vm.schema.name]),callback:function ($$v) {_vm.$set(_vm.formModel, _vm.schema.name, $$v)},expression:"formModel[schema.name]"}}):(_vm.schema.control === 'transfer')?_c('Transfer',{attrs:{"placeholder":_vm.placeholder,"treeUrl":_vm.schema.params.control.url,"titleName":_vm.schema.params.control.displayValue,"keyName":_vm.schema.params.control.realValue},on:{"submit":_vm.handlePickerComplete,"selected":_vm.handlePickerSelected},model:{value:(_vm.formModel[_vm.schema.name]),callback:function ($$v) {_vm.$set(_vm.formModel, _vm.schema.name, $$v)},expression:"formModel[schema.name]"}}):_c(("a-" + _vm.type),{ref:"aInput",tag:"component",attrs:{"defaultValue":_vm.value,"name":_vm.schema.name,"placeholder":_vm.placeholder,"disabled":_vm.readonly,"allowClear":""},on:{"blur":function (e) { return _vm.$emit('change', e.target.value); },"pressEnter":function (e) { return _vm.$emit('change', e.target.value); }}}),(_vm.pickerViewShow)?_c('Popup',{attrs:{"visible":_vm.pickerViewShow,"title":_vm.schema.alias,"type":'modal',"okButtonProps":{ props: { icon: 'check' } },"cancelButtonProps":{ props: { icon: 'close' } }},on:{"ok":_vm.handlePickerComplete,"close":_vm.handlePickerClose,"cancel":_vm.handlePickerClose}},[(_vm.pickerViewShow)?_c('Picker',_vm._b({ref:"picker",attrs:{"viewKey":_vm.schema.name,"params":{ filters: _vm.pickerFilter },"mode":"picker"},on:{"selected":_vm.handlePickerSelected}},'Picker',_vm.pickerViewOptions,false)):_vm._e()],1):_vm._e()],2):_vm._e()}
3866
- var Itemvue_type_template_id_5c935f44_staticRenderFns = []
3918
+ var Itemvue_type_template_id_4af280fd_staticRenderFns = []
3867
3919
 
3868
3920
 
3869
- // CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=template&id=5c935f44&
3921
+ // CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=template&id=4af280fd&
3870
3922
 
3871
3923
  // CONCATENATED MODULE: ../src/core/form/item.js
3872
3924
 
@@ -4034,6 +4086,8 @@ function item_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
4034
4086
  return [];
4035
4087
  },
4036
4088
  treeData: function treeData() {
4089
+ var _this2 = this;
4090
+
4037
4091
  if (this.schema.dataType === 'wordbook' && this.schema.typeObject) {
4038
4092
  var label = this.schema.typeObject.model.attrs.find(function (item) {
4039
4093
  return item.display === 'title';
@@ -4047,6 +4101,7 @@ function item_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
4047
4101
  label: item[label],
4048
4102
  value: item[idName],
4049
4103
  key: item[idName],
4104
+ disabled: _this2.schema.params && _this2.schema.params.control.leafCheck && !!item._childList,
4050
4105
  children: item._childList ? transform(item._childList) : null
4051
4106
  };
4052
4107
  });
@@ -4180,7 +4235,7 @@ function item_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
4180
4235
  initDate: function initDate() {},
4181
4236
  reset: function reset() {},
4182
4237
  watch: function watch() {
4183
- var _this2 = this;
4238
+ var _this3 = this;
4184
4239
 
4185
4240
  var _this$schema$params = this.schema.params;
4186
4241
  _this$schema$params = _this$schema$params === void 0 ? {} : _this$schema$params;
@@ -4196,27 +4251,27 @@ function item_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
4196
4251
  var values = rule.split('|');
4197
4252
 
4198
4253
  if (values[0] === 'filter') {
4199
- _this2.filterRules.push({
4254
+ _this3.filterRules.push({
4200
4255
  key: keys[1],
4201
4256
  value: values[1]
4202
4257
  });
4203
4258
  } else if (values[0] === 'show') {
4204
- _this2.showRules.push({
4259
+ _this3.showRules.push({
4205
4260
  key: keys[1],
4206
4261
  value: values[1]
4207
4262
  });
4208
4263
  } else if (values[0] === 'hide') {
4209
- _this2.hideRules.push({
4264
+ _this3.hideRules.push({
4210
4265
  key: keys[1],
4211
4266
  value: values[1]
4212
4267
  });
4213
4268
  } else if (values[0] === 'require') {
4214
- _this2.requireRules.push({
4269
+ _this3.requireRules.push({
4215
4270
  key: keys[1],
4216
4271
  value: values[1]
4217
4272
  });
4218
4273
  } else if (values[0] === 'swift') {
4219
- _this2.swiftRules.push({
4274
+ _this3.swiftRules.push({
4220
4275
  key: keys[1],
4221
4276
  value: values[1].split('/').map(function (item) {
4222
4277
  var items = item.split(':');
@@ -4236,46 +4291,46 @@ function item_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
4236
4291
  }
4237
4292
 
4238
4293
  this.showRules.forEach(function (show) {
4239
- _this2.$watch("formModel.".concat(show.key), function () {
4240
- _this2.show(show.key, show.value.split(','));
4294
+ _this3.$watch("formModel.".concat(show.key), function () {
4295
+ _this3.show(show.key, show.value.split(','));
4241
4296
  });
4242
4297
 
4243
- _this2.show(show.key, show.value.split(','));
4298
+ _this3.show(show.key, show.value.split(','));
4244
4299
  });
4245
4300
  this.hideRules.forEach(function (show) {
4246
- _this2.$watch("formModel.".concat(show.key), function () {
4247
- _this2.hide(show.key, show.value.split(','));
4301
+ _this3.$watch("formModel.".concat(show.key), function () {
4302
+ _this3.hide(show.key, show.value.split(','));
4248
4303
  });
4249
4304
 
4250
- _this2.hide(show.key, show.value.split(','));
4305
+ _this3.hide(show.key, show.value.split(','));
4251
4306
  });
4252
4307
  this.requireRules.forEach(function (show) {
4253
- _this2.$watch("formModel.".concat(show.key), function () {
4254
- _this2.require(show.key, show.value.split(','));
4308
+ _this3.$watch("formModel.".concat(show.key), function () {
4309
+ _this3.require(show.key, show.value.split(','));
4255
4310
  });
4256
4311
 
4257
- _this2.require(show.key, show.value.split(','));
4312
+ _this3.require(show.key, show.value.split(','));
4258
4313
  });
4259
4314
  this.filterRules.forEach(function (show) {
4260
- _this2.$watch("formModel.".concat(show.key), function () {
4261
- if (_this2.schema.required && _this2.options.length) {
4315
+ _this3.$watch("formModel.".concat(show.key), function () {
4316
+ if (_this3.schema.required && _this3.options.length) {
4262
4317
  // 判断值是否属于 options 中的某一项,如果 options 根据其它表单项动态过滤,自动填充表单时,本地存储的值不在 options 中,就会默认选中第一项
4263
- var belongOptions = _this2.options.find(function (item) {
4264
- return item.value === _this2.value;
4318
+ var hasValue = _this3.options.find(function (item) {
4319
+ return item.value === _this3.value;
4265
4320
  });
4266
4321
 
4267
- _this2.$emit('change', belongOptions && _this2.value || _this2.options[0].value);
4322
+ _this3.$emit('change', hasValue && _this3.value || _this3.options[0].value);
4268
4323
  } else {
4269
- _this2.$emit('change', '');
4324
+ _this3.$emit('change', '');
4270
4325
  }
4271
4326
  });
4272
4327
  });
4273
4328
  this.swiftRules.forEach(function (show) {
4274
- _this2.$watch("formModel.".concat(show.key), function (value) {
4275
- if (_this2.schema.required && _this2.options.length && value) {
4276
- _this2.$emit('change', _this2.options[0].value);
4329
+ _this3.$watch("formModel.".concat(show.key), function (value) {
4330
+ if (_this3.schema.required && _this3.options.length && value) {
4331
+ _this3.$emit('change', _this3.options[0].value);
4277
4332
  } else {
4278
- _this2.$emit('change', '');
4333
+ _this3.$emit('change', '');
4279
4334
  }
4280
4335
  });
4281
4336
  });
@@ -4401,29 +4456,29 @@ function item_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
4401
4456
  this.reUpload = true; // this.$emit('change', null)
4402
4457
  },
4403
4458
  handleAsyncLoadData: function handleAsyncLoadData(node) {
4404
- var _this3 = this;
4459
+ var _this4 = this;
4405
4460
 
4406
4461
  return item_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
4407
- var _this3$schema$typeObj, attrs, idName, url, label, _yield$_this3$$api$ge, collection;
4462
+ var _this4$schema$typeObj, attrs, idName, url, label, _yield$_this4$$api$ge, collection;
4408
4463
 
4409
4464
  return regenerator_default.a.wrap(function _callee$(_context) {
4410
4465
  while (1) {
4411
4466
  switch (_context.prev = _context.next) {
4412
4467
  case 0:
4413
- _this3$schema$typeObj = _this3.schema.typeObject.model, attrs = _this3$schema$typeObj.attrs, idName = _this3$schema$typeObj.idName;
4414
- url = _this3.view.apiURL;
4468
+ _this4$schema$typeObj = _this4.schema.typeObject.model, attrs = _this4$schema$typeObj.attrs, idName = _this4$schema$typeObj.idName;
4469
+ url = _this4.view.apiURL;
4415
4470
  label = attrs.find(function (item) {
4416
4471
  return item.display === 'title';
4417
4472
  });
4418
4473
  label = label.name || idName;
4419
4474
  _context.next = 6;
4420
- return _this3.$api.get("".concat(url, "/").concat(_this3.schema.name, "?_node=").concat(node.eventKey), {
4475
+ return _this4.$api.get("".concat(url, "/").concat(_this4.schema.name, "?_node=").concat(node.eventKey), {
4421
4476
  baseURL: ''
4422
4477
  });
4423
4478
 
4424
4479
  case 6:
4425
- _yield$_this3$$api$ge = _context.sent;
4426
- collection = _yield$_this3$$api$ge.data.collection;
4480
+ _yield$_this4$$api$ge = _context.sent;
4481
+ collection = _yield$_this4$$api$ge.data.collection;
4427
4482
  node.dataRef.children = collection.map(function (item) {
4428
4483
  return {
4429
4484
  label: item[label],
@@ -4431,7 +4486,7 @@ function item_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
4431
4486
  key: item[idName]
4432
4487
  };
4433
4488
  });
4434
- _this3.asyncTreeData = item_toConsumableArray(_this3.asyncTreeData);
4489
+ _this4.asyncTreeData = item_toConsumableArray(_this4.asyncTreeData);
4435
4490
  return _context.abrupt("return", new Promise(function (resolve) {
4436
4491
  return resolve();
4437
4492
  }));
@@ -6461,6 +6516,19 @@ var Popup_component = normalizeComponent(
6461
6516
  //
6462
6517
  //
6463
6518
  //
6519
+ //
6520
+ //
6521
+ //
6522
+ //
6523
+ //
6524
+ //
6525
+ //
6526
+ //
6527
+ //
6528
+ //
6529
+ //
6530
+ //
6531
+ //
6464
6532
  //
6465
6533
  // import Editor from '@/web/components/cell/Editor/Index'
6466
6534
  // import Editor from '@/web/components/cell/TinyMCE'
@@ -6510,8 +6578,8 @@ var Itemvue_type_style_index_0_lang_css_ = __webpack_require__("bb5f");
6510
6578
 
6511
6579
  var Item_component = normalizeComponent(
6512
6580
  forms_Itemvue_type_script_lang_js_,
6513
- Itemvue_type_template_id_5c935f44_render,
6514
- Itemvue_type_template_id_5c935f44_staticRenderFns,
6581
+ Itemvue_type_template_id_4af280fd_render,
6582
+ Itemvue_type_template_id_4af280fd_staticRenderFns,
6515
6583
  false,
6516
6584
  null,
6517
6585
  null,