eoss-mobiles 0.1.78 → 0.1.81

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.
@@ -3734,8 +3734,8 @@ var selector_tree_component = normalizeComponent(
3734
3734
  )
3735
3735
 
3736
3736
  /* harmony default export */ var selector_tree = (selector_tree_component.exports);
3737
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-field.vue?vue&type=template&id=43641679&
3738
- var selector_fieldvue_type_template_id_43641679_render = function () {
3737
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-field.vue?vue&type=template&id=723827d0&
3738
+ var selector_fieldvue_type_template_id_723827d0_render = function () {
3739
3739
  var _vm = this
3740
3740
  var _h = _vm.$createElement
3741
3741
  var _c = _vm._self._c || _h
@@ -3833,7 +3833,7 @@ var selector_fieldvue_type_template_id_43641679_render = function () {
3833
3833
  _vm._v(
3834
3834
  "\n " +
3835
3835
  _vm._s(
3836
- r[_vm.labelKey].length > 10
3836
+ r[_vm.labelKey] && r[_vm.labelKey].length > 10
3837
3837
  ? r[_vm.labelKey].slice(0, 10) + "..."
3838
3838
  : r[_vm.labelKey]
3839
3839
  ) +
@@ -3894,11 +3894,11 @@ var selector_fieldvue_type_template_id_43641679_render = function () {
3894
3894
  1
3895
3895
  )
3896
3896
  }
3897
- var selector_fieldvue_type_template_id_43641679_staticRenderFns = []
3898
- selector_fieldvue_type_template_id_43641679_render._withStripped = true
3897
+ var selector_fieldvue_type_template_id_723827d0_staticRenderFns = []
3898
+ selector_fieldvue_type_template_id_723827d0_render._withStripped = true
3899
3899
 
3900
3900
 
3901
- // CONCATENATED MODULE: ./packages/selector/src/selector-field.vue?vue&type=template&id=43641679&
3901
+ // CONCATENATED MODULE: ./packages/selector/src/selector-field.vue?vue&type=template&id=723827d0&
3902
3902
 
3903
3903
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-field.vue?vue&type=script&lang=js&
3904
3904
  //
@@ -4150,8 +4150,8 @@ selector_fieldvue_type_template_id_43641679_render._withStripped = true
4150
4150
 
4151
4151
  var selector_field_component = normalizeComponent(
4152
4152
  src_selector_fieldvue_type_script_lang_js_,
4153
- selector_fieldvue_type_template_id_43641679_render,
4154
- selector_fieldvue_type_template_id_43641679_staticRenderFns,
4153
+ selector_fieldvue_type_template_id_723827d0_render,
4154
+ selector_fieldvue_type_template_id_723827d0_staticRenderFns,
4155
4155
  false,
4156
4156
  null,
4157
4157
  null,
@@ -4775,8 +4775,8 @@ radio_src_main.install = function (Vue) {
4775
4775
  };
4776
4776
 
4777
4777
  /* harmony default export */ var packages_radio = (radio_src_main);
4778
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=template&id=7e0b8a29&
4779
- var mainvue_type_template_id_7e0b8a29_render = function () {
4778
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=template&id=1fa63cee&
4779
+ var mainvue_type_template_id_1fa63cee_render = function () {
4780
4780
  var _vm = this
4781
4781
  var _h = _vm.$createElement
4782
4782
  var _c = _vm._self._c || _h
@@ -5056,11 +5056,11 @@ var mainvue_type_template_id_7e0b8a29_render = function () {
5056
5056
  1
5057
5057
  )
5058
5058
  }
5059
- var mainvue_type_template_id_7e0b8a29_staticRenderFns = []
5060
- mainvue_type_template_id_7e0b8a29_render._withStripped = true
5059
+ var mainvue_type_template_id_1fa63cee_staticRenderFns = []
5060
+ mainvue_type_template_id_1fa63cee_render._withStripped = true
5061
5061
 
5062
5062
 
5063
- // CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=7e0b8a29&
5063
+ // CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=1fa63cee&
5064
5064
 
5065
5065
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=script&lang=js&
5066
5066
  var src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -5432,10 +5432,12 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
5432
5432
  this.pickerValue = value;
5433
5433
  }
5434
5434
  } else {
5435
- this.checkList = [];
5436
- this.pickerValue.map(function (x) {
5437
- _this2.checkList.push(x.value);
5438
- });
5435
+ if (this.isCheck) {
5436
+ this.checkList = [];
5437
+ this.pickerValue.map(function (x) {
5438
+ _this2.checkList.push(x.value);
5439
+ });
5440
+ }
5439
5441
  }
5440
5442
 
5441
5443
  this.showPicker = false;
@@ -5593,8 +5595,8 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
5593
5595
 
5594
5596
  var picker_src_main_component = normalizeComponent(
5595
5597
  packages_picker_src_mainvue_type_script_lang_js_,
5596
- mainvue_type_template_id_7e0b8a29_render,
5597
- mainvue_type_template_id_7e0b8a29_staticRenderFns,
5598
+ mainvue_type_template_id_1fa63cee_render,
5599
+ mainvue_type_template_id_1fa63cee_staticRenderFns,
5598
5600
  false,
5599
5601
  null,
5600
5602
  null,
@@ -7570,8 +7572,10 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7570
7572
  selected: null,
7571
7573
  pageChange: false,
7572
7574
  tableHeight: 'auto',
7575
+ validateSuccess: true,
7573
7576
  options: {},
7574
7577
  theadData: [],
7578
+ errForm: [],
7575
7579
  list: null,
7576
7580
  wheres: {},
7577
7581
  config: {
@@ -7656,23 +7660,49 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7656
7660
  }
7657
7661
  },
7658
7662
  methods: {
7663
+ validValue: function validValue(val) {
7664
+ val && this.$toast(val);
7665
+ this.validateSuccess = !val;
7666
+ },
7667
+ validate: function validate() {
7668
+ var _this2 = this;
7669
+
7670
+ var success = true;
7671
+ var _that = this;
7672
+ if (_that.form) {
7673
+ _that.theads.map(function (item) {
7674
+ if (item.rules && item.rules.required) {
7675
+ _this2.datas.map(function (x) {
7676
+ if (!x[item.field] && !item.rules.validator) {
7677
+ _that.$toast(item.rules.message);
7678
+ success = false;
7679
+ } else if (item.rules.validator) {
7680
+ item.rules.validator(x[item.field], _that.validValue);
7681
+ success = _that.validateSuccess;
7682
+ }
7683
+ });
7684
+ }
7685
+ });
7686
+ }
7687
+ return success;
7688
+ },
7659
7689
  toggleAllSelection: function toggleAllSelection() {
7660
7690
  this.$refs.oaTable.toggleAllSelection();
7661
7691
  },
7662
7692
  toggleRowSelection: function toggleRowSelection(newVal) {
7663
- var _this2 = this;
7693
+ var _this3 = this;
7664
7694
 
7665
7695
  newVal.forEach(function (row) {
7666
- _this2.$refs.oaTable.toggleRowSelection(row, true);
7696
+ _this3.$refs.oaTable.toggleRowSelection(row, true);
7667
7697
  });
7668
7698
  },
7669
7699
  checkSelect: function checkSelect(newVal) {
7670
- var _this3 = this;
7700
+ var _this4 = this;
7671
7701
 
7672
7702
  if (!this.isFirsetCheck && newVal) {
7673
7703
  if (util.getObjectType(newVal) === 'array') {
7674
7704
  newVal.forEach(function (row) {
7675
- _this3.$refs.oaTable.toggleRowSelection(row, true);
7705
+ _this4.$refs.oaTable.toggleRowSelection(row, true);
7676
7706
  });
7677
7707
  } else if (newVal === true) {
7678
7708
  this.toggleAllSelection();
@@ -7681,7 +7711,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7681
7711
  }
7682
7712
  },
7683
7713
  getTableData: function getTableData(res) {
7684
- var _this4 = this;
7714
+ var _this5 = this;
7685
7715
 
7686
7716
  var where = void 0;
7687
7717
  var first = void 0;
@@ -7717,32 +7747,32 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7717
7747
  data: reqData
7718
7748
  }).then(function (res) {
7719
7749
  if (res.rCode === 0 || res.status === 'success') {
7720
- var results = _this4.parseData !== undefined ? _this4.parseData(res.results || res.data || res) : res.results || res.data;
7721
- _this4.list = results.data || results.records || results.list || [];
7722
- _this4.config.totalCount = results.count || results.total || results.totalCount;
7750
+ var results = _this5.parseData !== undefined ? _this5.parseData(res.results || res.data || res) : res.results || res.data;
7751
+ _this5.list = results.data || results.records || results.list || [];
7752
+ _this5.config.totalCount = results.count || results.total || results.totalCount;
7723
7753
  } else {
7724
- _this4.list = [];
7754
+ _this5.list = [];
7725
7755
  }
7726
- _this4.$toast.clear();
7727
- _this4.$emit('success', res);
7756
+ _this5.$toast.clear();
7757
+ _this5.$emit('success', res);
7728
7758
  }).catch(function (err) {
7729
- _this4.$toast.clear();
7759
+ _this5.$toast.clear();
7730
7760
  if (err && err.code && [64, 65, 67].indexOf(err.code) > -1) {
7731
7761
  return;
7732
7762
  }
7733
7763
  if (util.getObjectType(err) === 'string') {
7734
- _this4.$toast(err);
7764
+ _this5.$toast(err);
7735
7765
  } else {
7736
- _this4.$toast(err.message || '数据加载失败,请联系管理员!');
7766
+ _this5.$toast(err.message || '数据加载失败,请联系管理员!');
7737
7767
  }
7738
7768
  });
7739
7769
  },
7740
7770
  currentChange: function currentChange(res) {
7741
- var _this5 = this;
7771
+ var _this6 = this;
7742
7772
 
7743
7773
  this.pageChange = true;
7744
7774
  setTimeout(function () {
7745
- _this5.pageChange = false;
7775
+ _this6.pageChange = false;
7746
7776
  }, 10);
7747
7777
  this.config.pageNum = res;
7748
7778
  this.$emit('page-current-change', res);
@@ -7751,7 +7781,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7751
7781
  }
7752
7782
  },
7753
7783
  getTheads: function getTheads() {
7754
- var _this6 = this;
7784
+ var _this7 = this;
7755
7785
 
7756
7786
  util.ajax({
7757
7787
  url: this.thead,
@@ -7763,24 +7793,24 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7763
7793
  if (res.rCode === 0) {
7764
7794
  var results = res.results;
7765
7795
  if (Array.isArray(results)) {
7766
- _this6.theadData = results;
7796
+ _this7.theadData = results;
7767
7797
  } else {
7768
- _this6.theadData = results.theadData || [];
7769
- _this6.list = results.data || results.records || [];
7770
- _this6.config.totalCount = results.count || results.total || results.totalCount;
7798
+ _this7.theadData = results.theadData || [];
7799
+ _this7.list = results.data || results.records || [];
7800
+ _this7.config.totalCount = results.count || results.total || results.totalCount;
7771
7801
  }
7772
7802
  } else {
7773
- _this6.theadData = [];
7803
+ _this7.theadData = [];
7774
7804
  }
7775
- _this6.$emit('success', res);
7805
+ _this7.$emit('success', res);
7776
7806
  }).catch(function (err) {
7777
7807
  if (err && err.code && [64, 65, 67].indexOf(err.code) > -1) {
7778
7808
  return;
7779
7809
  }
7780
7810
  if (util.getObjectType(err) === 'string') {
7781
- _this6.$message.error(err);
7811
+ _this7.$message.error(err);
7782
7812
  } else {
7783
- _this6.$message.error(err.message || '数据加载失败,请联系管理员!');
7813
+ _this7.$message.error(err.message || '数据加载失败,请联系管理员!');
7784
7814
  }
7785
7815
  });
7786
7816
  },
@@ -7794,51 +7824,51 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7794
7824
  this.$emit('focus', data, this.datas);
7795
7825
  },
7796
7826
  formChange: function formChange(data) {
7797
- var _this7 = this;
7827
+ var _this8 = this;
7798
7828
 
7799
7829
  if (this.pageChange) return;
7800
7830
  if (data.type) {
7801
7831
  this.pageChange = true;
7802
7832
  setTimeout(function () {
7803
- _this7.pageChange = false;
7833
+ _this8.pageChange = false;
7804
7834
  }, 20);
7805
7835
  }
7806
7836
  this.$emit('edit', data, this.datas);
7807
7837
  },
7808
7838
  resetHeight: function resetHeight() {
7809
- var _this8 = this;
7839
+ var _this9 = this;
7810
7840
 
7811
7841
  this.$nextTick(function () {
7812
- if (_this8.full && !_this8.height && !_this8.maxHeight) {
7813
- var height = _this8.$el.parentNode.offsetHeight - parseInt(util.getStyle(_this8.$el.parentNode, 'paddingTop'), 10) - parseInt(util.getStyle(_this8.$el.parentNode, 'paddingBottom'), 10);
7814
- for (var i = 0; i < _this8.$el.parentNode.childNodes.length; i++) {
7815
- var ele = _this8.$el.parentNode.childNodes[i];
7816
- if (ele !== _this8.$el) {
7842
+ if (_this9.full && !_this9.height && !_this9.maxHeight) {
7843
+ var height = _this9.$el.parentNode.offsetHeight - parseInt(util.getStyle(_this9.$el.parentNode, 'paddingTop'), 10) - parseInt(util.getStyle(_this9.$el.parentNode, 'paddingBottom'), 10);
7844
+ for (var i = 0; i < _this9.$el.parentNode.childNodes.length; i++) {
7845
+ var ele = _this9.$el.parentNode.childNodes[i];
7846
+ if (ele !== _this9.$el) {
7817
7847
  height -= ele.offsetHeight === undefined ? 0 : ele.offsetHeight;
7818
7848
  }
7819
7849
  }
7820
- for (var _i = 0; _i < _this8.$el.childNodes.length; _i++) {
7821
- var _ele = _this8.$el.childNodes[_i];
7822
- if (_ele !== _this8.$refs.esTableContent) {
7850
+ for (var _i = 0; _i < _this9.$el.childNodes.length; _i++) {
7851
+ var _ele = _this9.$el.childNodes[_i];
7852
+ if (_ele !== _this9.$refs.esTableContent) {
7823
7853
  height -= _ele.offsetHeight === undefined ? 0 : _ele.offsetHeight;
7824
7854
  }
7825
7855
  }
7826
- _this8.styles = { height: height + 'px' };
7827
- var loadingDom = _this8.$refs.esTableContent.querySelector('.el-loading-mask');
7828
- for (var _i2 = 0; _i2 < _this8.$refs.esTableContent.childNodes.length; _i2++) {
7829
- var _ele2 = _this8.$refs.esTableContent.childNodes[_i2];
7830
- if (_ele2 !== _this8.$refs.oaTable.$el && (!loadingDom || _ele2 !== loadingDom)) {
7856
+ _this9.styles = { height: height + 'px' };
7857
+ var loadingDom = _this9.$refs.esTableContent.querySelector('.el-loading-mask');
7858
+ for (var _i2 = 0; _i2 < _this9.$refs.esTableContent.childNodes.length; _i2++) {
7859
+ var _ele2 = _this9.$refs.esTableContent.childNodes[_i2];
7860
+ if (_ele2 !== _this9.$refs.oaTable.$el && (!loadingDom || _ele2 !== loadingDom)) {
7831
7861
  height -= _ele2.offsetHeight === undefined ? 0 : _ele2.offsetHeight;
7832
7862
  }
7833
7863
  }
7834
- var pt = parseInt(util.getStyle(_this8.$refs.esTableContent, 'paddingTop'), 10);
7835
- var pb = parseInt(util.getStyle(_this8.$refs.esTableContent, 'paddingBottom'), 10);
7836
- _this8.tableHeight = height - pt - pb + (_this8.page ? 2 : 1) + 'px';
7864
+ var pt = parseInt(util.getStyle(_this9.$refs.esTableContent, 'paddingTop'), 10);
7865
+ var pb = parseInt(util.getStyle(_this9.$refs.esTableContent, 'paddingBottom'), 10);
7866
+ _this9.tableHeight = height - pt - pb + (_this9.page ? 2 : 1) + 'px';
7837
7867
  }
7838
7868
  });
7839
7869
  },
7840
7870
  handleAjax: function handleAjax(handle, row) {
7841
- var _this9 = this;
7871
+ var _this10 = this;
7842
7872
 
7843
7873
  this.$toast.loading({
7844
7874
  message: '加载中...',
@@ -7900,9 +7930,9 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7900
7930
  method: handle.method,
7901
7931
  format: handle.format
7902
7932
  }).then(function (res) {
7903
- _this9.$toast.clear();
7933
+ _this10.$toast.clear();
7904
7934
  if (res.rCode === 0) {
7905
- _this9.$message({
7935
+ _this10.$message({
7906
7936
  message: handle.text + '\u6210\u529F',
7907
7937
  duration: 2000,
7908
7938
  type: 'success',
@@ -7910,17 +7940,17 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7910
7940
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
7911
7941
  var reload = handle.reload || true;
7912
7942
  if (reload) {
7913
- _this9.reload({}, first);
7943
+ _this10.reload({}, first);
7914
7944
  }
7915
7945
  }
7916
7946
  });
7917
7947
  } else {
7918
- _this9.$toast(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7948
+ _this10.$toast(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7919
7949
  }
7920
7950
  }).catch(function () {});
7921
7951
  },
7922
7952
  handleClick: function handleClick(res) {
7923
- var _this10 = this;
7953
+ var _this11 = this;
7924
7954
 
7925
7955
  var row = res.row,
7926
7956
  handle = res.handle;
@@ -7958,7 +7988,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7958
7988
  cancelButtonText: '取消',
7959
7989
  type: 'warning'
7960
7990
  }).then(function () {
7961
- _this10.handleAjax(handle, rows);
7991
+ _this11.handleAjax(handle, rows);
7962
7992
  }).catch(function () {});
7963
7993
  } else {
7964
7994
  this.handleAjax(handle, rows);
@@ -8065,34 +8095,35 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8065
8095
  this.$emit('row-click', row, column, event);
8066
8096
  },
8067
8097
  getChildrens: function getChildrens(h, items) {
8068
- var _this11 = this;
8098
+ var _this12 = this;
8069
8099
 
8070
8100
  var doms = [];
8071
8101
  items.childHead.forEach(function (item, index) {
8072
8102
  if (!item.hide) {
8073
8103
  var childs = [];
8074
8104
  if (item.childHead && item.childHead.length) {
8075
- childs = _this11.getChildrens(h, item);
8105
+ childs = _this12.getChildrens(h, item);
8076
8106
  }
8077
8107
  doms.push(h('em-table-column', {
8108
+ ref: 'emTableColum',
8078
8109
  props: {
8079
- name: _this11.name,
8110
+ name: _this12.name,
8080
8111
  item: item,
8081
- prop: item[_this11.valueKey],
8082
- label: item[_this11.labelKey],
8112
+ prop: item[_this12.valueKey],
8113
+ label: item[_this12.labelKey],
8083
8114
  width: item.width,
8084
8115
  index: index + 1000,
8085
- readonly: _this11.readonly,
8086
- optionData: _this11.optionDatas,
8087
- form: _this11.form,
8088
- minWidth: _this11.minWidth
8116
+ readonly: _this12.readonly,
8117
+ optionData: _this12.optionDatas,
8118
+ form: _this12.form,
8119
+ minWidth: _this12.minWidth
8089
8120
  },
8090
8121
  on: {
8091
- handleClick: _this11.handleClick,
8092
- formBlur: _this11.formBlur,
8093
- formFocus: _this11.formFocus,
8094
- tableColumns: _this11.getTableColumns,
8095
- formChange: _this11.formChange
8122
+ handleClick: _this12.handleClick,
8123
+ formBlur: _this12.formBlur,
8124
+ formFocus: _this12.formFocus,
8125
+ tableColumns: _this12.getTableColumns,
8126
+ formChange: _this12.formChange
8096
8127
  }
8097
8128
  }, childs));
8098
8129
  }
@@ -8113,7 +8144,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8113
8144
  }
8114
8145
  },
8115
8146
  render: function render(h) {
8116
- var _this12 = this;
8147
+ var _this13 = this;
8117
8148
 
8118
8149
  var tag = 'div';
8119
8150
  var dom = [];
@@ -8152,6 +8183,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8152
8183
  if (items.type && (items.type === 'selection' || items.type === 'index')) {
8153
8184
  if (items.type === 'index') {
8154
8185
  dom.push(h('em-table-column', {
8186
+ ref: 'emTableColum',
8155
8187
  props: util.extend({}, {
8156
8188
  type: 'index',
8157
8189
  label: '序号',
@@ -8164,6 +8196,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8164
8196
  }));
8165
8197
  } else {
8166
8198
  dom.push(h('em-table-column', {
8199
+ ref: 'emTableColum',
8167
8200
  props: util.extend({}, {
8168
8201
  type: 'selection',
8169
8202
  width: '55',
@@ -8177,27 +8210,28 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8177
8210
  } else if (!items.hide) {
8178
8211
  var tds = [];
8179
8212
  if (items.childHead && items.childHead.length) {
8180
- tds = _this12.getChildrens(h, items);
8213
+ tds = _this13.getChildrens(h, items);
8181
8214
  }
8182
8215
  dom.push(h('em-table-column', {
8216
+ ref: 'emTableColum',
8183
8217
  props: {
8184
- name: _this12.name,
8185
- prop: items[_this12.valueKey],
8186
- label: items[_this12.labelKey],
8218
+ name: _this13.name,
8219
+ prop: items[_this13.valueKey],
8220
+ label: items[_this13.labelKey],
8187
8221
  item: items,
8188
8222
  width: items.width,
8189
8223
  index: indexs,
8190
- readonly: _this12.readonly,
8191
- optionData: _this12.optionDatas,
8192
- form: _this12.form,
8193
- minWidth: _this12.minWidth
8224
+ readonly: _this13.readonly,
8225
+ optionData: _this13.optionDatas,
8226
+ form: _this13.form,
8227
+ minWidth: _this13.minWidth
8194
8228
  },
8195
8229
  on: {
8196
- handleClick: _this12.handleClick,
8197
- formBlur: _this12.formBlur,
8198
- formFocus: _this12.formFocus,
8199
- tableColumns: _this12.getTableColumns,
8200
- formChange: _this12.formChange
8230
+ handleClick: _this13.handleClick,
8231
+ formBlur: _this13.formBlur,
8232
+ formFocus: _this13.formFocus,
8233
+ tableColumns: _this13.getTableColumns,
8234
+ formChange: _this13.formChange
8201
8235
  },
8202
8236
  key: indexs
8203
8237
  }, tds));
@@ -8282,8 +8316,8 @@ table_src_main.install = function (Vue) {
8282
8316
  };
8283
8317
 
8284
8318
  /* harmony default export */ var table = (table_src_main);
8285
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table-column/src/main.vue?vue&type=template&id=7eca6cd2&
8286
- var mainvue_type_template_id_7eca6cd2_render = function () {
8319
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table-column/src/main.vue?vue&type=template&id=1ced7a5e&
8320
+ var mainvue_type_template_id_1ced7a5e_render = function () {
8287
8321
  var _vm = this
8288
8322
  var _h = _vm.$createElement
8289
8323
  var _c = _vm._self._c || _h
@@ -8438,6 +8472,7 @@ var mainvue_type_template_id_7eca6cd2_render = function () {
8438
8472
  modifiers: { lazy: true },
8439
8473
  },
8440
8474
  ],
8475
+ ref: "emInput",
8441
8476
  staticClass:
8442
8477
  "el-input__inner",
8443
8478
  attrs: {
@@ -8561,6 +8596,7 @@ var mainvue_type_template_id_7eca6cd2_render = function () {
8561
8596
  "em-input",
8562
8597
  _vm._b(
8563
8598
  {
8599
+ ref: "emInput",
8564
8600
  staticClass: "em-table-input",
8565
8601
  attrs: {
8566
8602
  label: _vm.item.title,
@@ -8931,11 +8967,11 @@ var mainvue_type_template_id_7eca6cd2_render = function () {
8931
8967
  )
8932
8968
  : _vm._e()
8933
8969
  }
8934
- var mainvue_type_template_id_7eca6cd2_staticRenderFns = []
8935
- mainvue_type_template_id_7eca6cd2_render._withStripped = true
8970
+ var mainvue_type_template_id_1ced7a5e_staticRenderFns = []
8971
+ mainvue_type_template_id_1ced7a5e_render._withStripped = true
8936
8972
 
8937
8973
 
8938
- // CONCATENATED MODULE: ./packages/table-column/src/main.vue?vue&type=template&id=7eca6cd2&
8974
+ // CONCATENATED MODULE: ./packages/table-column/src/main.vue?vue&type=template&id=1ced7a5e&
8939
8975
 
8940
8976
  // CONCATENATED MODULE: ./packages/table-column/src/mixins/table.js
8941
8977
  /* harmony default export */ var mixins_table = ({
@@ -9538,6 +9574,8 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
9538
9574
  //
9539
9575
  //
9540
9576
  //
9577
+ //
9578
+ //
9541
9579
 
9542
9580
 
9543
9581
 
@@ -9583,6 +9621,10 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
9583
9621
  }
9584
9622
  },
9585
9623
  methods: (_methods = {
9624
+ handleFailed: function handleFailed(val) {
9625
+ console.log(this.$refs.emInput, 'Failed');
9626
+ console.log(this.$refs, 'Failed');
9627
+ },
9586
9628
  getValue: function getValue(row) {
9587
9629
  var str = void 0;
9588
9630
  var _item = this.item,
@@ -9701,8 +9743,8 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
9701
9743
 
9702
9744
  var table_column_src_main_component = normalizeComponent(
9703
9745
  packages_table_column_src_mainvue_type_script_lang_js_,
9704
- mainvue_type_template_id_7eca6cd2_render,
9705
- mainvue_type_template_id_7eca6cd2_staticRenderFns,
9746
+ mainvue_type_template_id_1ced7a5e_render,
9747
+ mainvue_type_template_id_1ced7a5e_staticRenderFns,
9706
9748
  false,
9707
9749
  null,
9708
9750
  null,
@@ -11284,8 +11326,8 @@ var StartFlow_component = normalizeComponent(
11284
11326
  )
11285
11327
 
11286
11328
  /* harmony default export */ var StartFlow = (StartFlow_component.exports);
11287
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=4ff9cecf&
11288
- var Handlevue_type_template_id_4ff9cecf_render = function () {
11329
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=870cfad8&
11330
+ var Handlevue_type_template_id_870cfad8_render = function () {
11289
11331
  var _vm = this
11290
11332
  var _h = _vm.$createElement
11291
11333
  var _c = _vm._self._c || _h
@@ -12266,11 +12308,11 @@ var Handlevue_type_template_id_4ff9cecf_render = function () {
12266
12308
  1
12267
12309
  )
12268
12310
  }
12269
- var Handlevue_type_template_id_4ff9cecf_staticRenderFns = []
12270
- Handlevue_type_template_id_4ff9cecf_render._withStripped = true
12311
+ var Handlevue_type_template_id_870cfad8_staticRenderFns = []
12312
+ Handlevue_type_template_id_870cfad8_render._withStripped = true
12271
12313
 
12272
12314
 
12273
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=4ff9cecf&
12315
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=870cfad8&
12274
12316
 
12275
12317
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=template&id=244de01c&
12276
12318
  var Rejectvue_type_template_id_244de01c_render = function () {
@@ -13490,7 +13532,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
13490
13532
  duration: 0
13491
13533
  });
13492
13534
  utils_http({
13493
- url: taskReadHtml,
13535
+ url: this.baseUrl ? this.baseUrl + taskReadHtml : taskReadHtml,
13494
13536
  headers: {
13495
13537
  Accept: 'application/json,text/plain'
13496
13538
  },
@@ -13995,7 +14037,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
13995
14037
  var _this5 = this;
13996
14038
 
13997
14039
  utils_http({
13998
- url: toStartTaskReadHtml,
14040
+ url: this.baseUrl ? this.baseUrl + toStartTaskReadHtml : toStartTaskReadHtml,
13999
14041
  params: { pendingId: this.pendingId }
14000
14042
  }).then(function (res) {
14001
14043
  var status = res.status,
@@ -14175,8 +14217,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
14175
14217
 
14176
14218
  var Handle_component = normalizeComponent(
14177
14219
  components_Handlevue_type_script_lang_js_,
14178
- Handlevue_type_template_id_4ff9cecf_render,
14179
- Handlevue_type_template_id_4ff9cecf_staticRenderFns,
14220
+ Handlevue_type_template_id_870cfad8_render,
14221
+ Handlevue_type_template_id_870cfad8_staticRenderFns,
14180
14222
  false,
14181
14223
  null,
14182
14224
  null,
@@ -16200,21 +16242,22 @@ count_down_src_main.install = function (Vue) {
16200
16242
  };
16201
16243
 
16202
16244
  /* harmony default export */ var count_down = (count_down_src_main);
16203
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=152d0360&
16204
- var mainvue_type_template_id_152d0360_render = function () {
16245
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=5aa23c3c&
16246
+ var mainvue_type_template_id_5aa23c3c_render = function () {
16205
16247
  var _vm = this
16206
16248
  var _h = _vm.$createElement
16207
16249
  var _c = _vm._self._c || _h
16208
16250
  return _c(
16209
16251
  "van-form",
16210
- _vm._g(
16211
- _vm._b(
16212
- { ref: "emForm", staticClass: "em-form" },
16213
- "van-form",
16214
- _vm.$attrs,
16215
- false
16216
- ),
16217
- _vm.$listeners
16252
+ _vm._b(
16253
+ {
16254
+ ref: "emForm",
16255
+ staticClass: "em-form",
16256
+ on: { failed: _vm.handleFailed, submit: _vm.handleSubmit },
16257
+ },
16258
+ "van-form",
16259
+ _vm.$attrs,
16260
+ false
16218
16261
  ),
16219
16262
  [
16220
16263
  _vm._l(_vm.newContent, function (item, index) {
@@ -16540,10 +16583,12 @@ var mainvue_type_template_id_152d0360_render = function () {
16540
16583
  "em-table",
16541
16584
  _vm._b(
16542
16585
  {
16586
+ ref: "emFormTable",
16587
+ refInFor: true,
16543
16588
  staticClass: "em-form-table",
16544
16589
  style: "margin:" + (item.margin || 10) + "px 0px",
16545
16590
  attrs: {
16546
- data: _vm.model[item.name] || [],
16591
+ data: _vm.model[item.name],
16547
16592
  thead: item.tHead,
16548
16593
  form:
16549
16594
  !item.disabled &&
@@ -16614,11 +16659,11 @@ var mainvue_type_template_id_152d0360_render = function () {
16614
16659
  2
16615
16660
  )
16616
16661
  }
16617
- var mainvue_type_template_id_152d0360_staticRenderFns = []
16618
- mainvue_type_template_id_152d0360_render._withStripped = true
16662
+ var mainvue_type_template_id_5aa23c3c_staticRenderFns = []
16663
+ mainvue_type_template_id_5aa23c3c_render._withStripped = true
16619
16664
 
16620
16665
 
16621
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=152d0360&
16666
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=5aa23c3c&
16622
16667
 
16623
16668
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=script&lang=js&
16624
16669
  //
@@ -16805,7 +16850,6 @@ mainvue_type_template_id_152d0360_render._withStripped = true
16805
16850
  //
16806
16851
  //
16807
16852
  //
16808
- //
16809
16853
 
16810
16854
  /* harmony default export */ var form_src_mainvue_type_script_lang_js_ = ({
16811
16855
  name: 'EmForm',
@@ -16876,27 +16920,42 @@ mainvue_type_template_id_152d0360_render._withStripped = true
16876
16920
  },
16877
16921
 
16878
16922
  methods: {
16879
- // setBtnType() {
16880
- // let tableList = this.contents.filter(x => x.type == 'table');
16881
- // if (tableList.length > 0) {
16882
- // tableList.map(x => {
16883
- // if (x.type == 'handle' && x.events) {
16884
- // x.events.map(y => {
16885
- // y['native-type'] = 'button';
16886
- // });
16887
- // }
16888
- // });
16889
- // }
16890
- // this.contents
16891
- // },
16923
+ handleFailed: function handleFailed(values) {
16924
+ this.$refs.emFormTable.map(function (item) {
16925
+ item.validate();
16926
+ });
16927
+ this.$emit('failed', { errors: values.errors, values: this.model });
16928
+ },
16929
+ handleSubmit: function handleSubmit() {
16930
+ var errForm = false;
16931
+ this.$refs.emFormTable.map(function (item) {
16932
+ if (!item.validate()) {
16933
+ errForm = true;
16934
+ }
16935
+ });
16936
+ if (errForm) {
16937
+ this.$emit('failed', { errors: [], values: this.model });
16938
+ } else {
16939
+ this.$emit('submit', this.model);
16940
+ }
16941
+ },
16892
16942
  handleChange: function handleChange(key, value) {
16893
16943
  this.$emit('change', key, value);
16894
16944
  },
16895
16945
  handleBtnClick: function handleBtnClick(val) {
16896
16946
  this.$emit('table-btn-click', val);
16897
16947
  },
16898
- validate: function validate() {
16899
- this.$refs.emForm.validate();
16948
+ validate: function validate(name) {
16949
+ this.$refs.emForm.validate(name);
16950
+ },
16951
+ submit: function submit() {
16952
+ this.$refs.emForm.submit();
16953
+ },
16954
+ resetValidation: function resetValidation(name) {
16955
+ this.$refs.emForm.resetValidation(name);
16956
+ },
16957
+ scrollToField: function scrollToField(name, alignToTop) {
16958
+ this.$refs.emForm.scrollToField(name, alignToTop);
16900
16959
  },
16901
16960
  handleClick: function handleClick(val) {
16902
16961
  this.$emit('click', { values: this.model, btn: val });
@@ -16915,8 +16974,8 @@ mainvue_type_template_id_152d0360_render._withStripped = true
16915
16974
 
16916
16975
  var form_src_main_component = normalizeComponent(
16917
16976
  packages_form_src_mainvue_type_script_lang_js_,
16918
- mainvue_type_template_id_152d0360_render,
16919
- mainvue_type_template_id_152d0360_staticRenderFns,
16977
+ mainvue_type_template_id_5aa23c3c_render,
16978
+ mainvue_type_template_id_5aa23c3c_staticRenderFns,
16920
16979
  false,
16921
16980
  null,
16922
16981
  null,
@@ -17914,7 +17973,7 @@ if (typeof window !== 'undefined' && window.Vue) {
17914
17973
  }
17915
17974
 
17916
17975
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
17917
- version: '0.1.78',
17976
+ version: '0.1.81',
17918
17977
  install: install,
17919
17978
  Button: packages_button,
17920
17979
  ButtonGroup: button_group,