eoss-mobiles 0.1.22 → 0.1.23

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.
@@ -6996,6 +6996,14 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
6996
6996
  type: String,
6997
6997
  default: ''
6998
6998
  },
6999
+ labelKey: {
7000
+ type: String,
7001
+ default: 'title'
7002
+ },
7003
+ valueKey: {
7004
+ type: String,
7005
+ default: 'field'
7006
+ },
6999
7007
  // 默认选中,类型为Boolean时默认全(不)选
7000
7008
  checked: {
7001
7009
  type: [Boolean, Array],
@@ -7078,10 +7086,10 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7078
7086
  if (this.list) {
7079
7087
  return this.list;
7080
7088
  }
7081
- if (this.page && this.data && this.data.length && this.config.totalCount < this.data.length + 1) {
7082
- this.config.totalCount = this.data.length - this.lose;
7089
+ if (this.page && this.data && this.data.length && this.config['total-items'] < this.data.length + 1) {
7090
+ this.config['total-items'] = this.data.length - this.lose;
7083
7091
  return this.data.filter(function (item, index) {
7084
- return index > (_this.config.pageNum - 1) * _this.config.pageSize - 1 && index < _this.config.pageNum * _this.config.pageSize;
7092
+ return index > (_this.config.pageNum - 1) * _this.config['items-per-page'] - 1 && index < _this.config.pageNum * _this.config['items-per-page'];
7085
7093
  });
7086
7094
  }
7087
7095
 
@@ -7134,7 +7142,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7134
7142
  });
7135
7143
  var reqData = util.extend({}, this.param, {
7136
7144
  pageNum: this.config.pageNum,
7137
- pageSize: this.config.pageSize
7145
+ pageSize: this.config['items-per-page']
7138
7146
  });
7139
7147
  if (where) {
7140
7148
  reqData = util.extend({}, reqData, where);
@@ -7149,7 +7157,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7149
7157
  if (res.rCode === 0 || res.status === 'success') {
7150
7158
  var results = _this3.parseData !== undefined ? _this3.parseData(res.results || res.data || res) : res.results || res.data;
7151
7159
  _this3.list = results.data || results.records || results.list || [];
7152
- _this3.config.totalCount = results.count || results.total || results.totalCount;
7160
+ _this3.config['total-items'] = results.count || results.total || results['total-items'];
7153
7161
  } else {
7154
7162
  _this3.list = [];
7155
7163
  }
@@ -7197,7 +7205,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7197
7205
  } else {
7198
7206
  _this5.theadData = results.theadData || [];
7199
7207
  _this5.list = results.data || results.records || [];
7200
- _this5.config.totalCount = results.count || results.total || results.totalCount;
7208
+ _this5.config['total-items'] = results.count || results.total || results['total-items'];
7201
7209
  }
7202
7210
  } else {
7203
7211
  _this5.theadData = [];
@@ -7380,7 +7388,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7380
7388
  if (handle.action) {
7381
7389
  var isConfirm = handle.confirm || true;
7382
7390
  if (isConfirm) {
7383
- var msg = handle.field ? row[handle.field] : '';
7391
+ var msg = handle[this.valueKey] ? row[handle[this.valueKey]] : '';
7384
7392
  this.$dialog.confirm({
7385
7393
  message: '\u786E\u5B9A\u8981' + handle.text + msg + '\u5417',
7386
7394
  title: '提示',
@@ -7403,7 +7411,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7403
7411
  } else if (handle.event === 'add' || handle.event === 'edit' || handle.event === 'look') {
7404
7412
  var changes = {
7405
7413
  event: handle.event,
7406
- title: handle.title || handle.text,
7414
+ title: handle[this.labelKey] || handle.text,
7407
7415
  values: handle.event === 'add' ? {} : rows,
7408
7416
  readonly: handle.event === 'look',
7409
7417
  actionType: handle.actionType ? handle.actionType : handle.event === 'add' ? 'save' : 'update'
@@ -7469,7 +7477,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7469
7477
  if (handle.exportXls) {
7470
7478
  var text = '操作';
7471
7479
  if (this.thead[this.thead.length - 1] && this.thead[this.thead.length - 1].type === 'handle') {
7472
- text = this.thead[this.thead.length - 1].title;
7480
+ text = this.thead[this.thead.length - 1][this.labelKey];
7473
7481
  }
7474
7482
  thead = thead.map(function (item) {
7475
7483
  return item.filter(function (ele) {
@@ -7508,8 +7516,8 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7508
7516
  props: {
7509
7517
  name: _this10.name,
7510
7518
  item: item,
7511
- prop: item.field,
7512
- label: item.title,
7519
+ prop: item[_this10.valueKey],
7520
+ label: item[_this10.labelKey],
7513
7521
  width: item.width,
7514
7522
  index: index + 1000,
7515
7523
  readonly: _this10.readonly,
@@ -7612,8 +7620,8 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7612
7620
  dom.push(h('em-table-column', {
7613
7621
  props: {
7614
7622
  name: _this11.name,
7615
- prop: items.field,
7616
- label: items.title,
7623
+ prop: items[_this11.valueKey],
7624
+ label: items[_this11.labelKey],
7617
7625
  item: items,
7618
7626
  width: items.width,
7619
7627
  index: indexs,
@@ -7654,9 +7662,9 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7654
7662
  tableContents.push(h('em-pagination', {
7655
7663
  attrs: {
7656
7664
  // ...this.config,
7657
- value: this.config.pageNum,
7658
- 'items-per-page': this.config.pageSize,
7659
- 'total-items': this.config.totalCount
7665
+ pageNum: this.config.pageNum,
7666
+ 'items-per-page': this.config['items-per-page'],
7667
+ 'total-items': this.config['total-items']
7660
7668
  },
7661
7669
  class: 'em-table-page',
7662
7670
  style: { 'text-align': this.page.position || 'center' },
@@ -10590,8 +10598,8 @@ var StartFlow_component = normalizeComponent(
10590
10598
  )
10591
10599
 
10592
10600
  /* harmony default export */ var StartFlow = (StartFlow_component.exports);
10593
- // 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=743f6d6a&
10594
- var Handlevue_type_template_id_743f6d6a_render = function () {
10601
+ // 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=7a1cc1c0&
10602
+ var Handlevue_type_template_id_7a1cc1c0_render = function () {
10595
10603
  var _vm = this
10596
10604
  var _h = _vm.$createElement
10597
10605
  var _c = _vm._self._c || _h
@@ -11537,11 +11545,11 @@ var Handlevue_type_template_id_743f6d6a_render = function () {
11537
11545
  1
11538
11546
  )
11539
11547
  }
11540
- var Handlevue_type_template_id_743f6d6a_staticRenderFns = []
11541
- Handlevue_type_template_id_743f6d6a_render._withStripped = true
11548
+ var Handlevue_type_template_id_7a1cc1c0_staticRenderFns = []
11549
+ Handlevue_type_template_id_7a1cc1c0_render._withStripped = true
11542
11550
 
11543
11551
 
11544
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=743f6d6a&
11552
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=7a1cc1c0&
11545
11553
 
11546
11554
  // 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=4a537b88&
11547
11555
  var Rejectvue_type_template_id_4a537b88_render = function () {
@@ -12751,6 +12759,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
12751
12759
  _that.form.isSubFlow = taskExamineInfo.isSubFlow;
12752
12760
  _that.form.nodeId = taskExamineInfo.nodeId;
12753
12761
  _that.form.nextNodeId = _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode;
12762
+ console.log(_that.form, '_that.form');
12754
12763
  utils_http({
12755
12764
  url: _that.baseUrl ? _that.baseUrl + taskHandleHtml : taskHandleHtml,
12756
12765
  params: Handlevue_type_script_lang_js_extends({
@@ -13184,8 +13193,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
13184
13193
 
13185
13194
  var Handle_component = normalizeComponent(
13186
13195
  components_Handlevue_type_script_lang_js_,
13187
- Handlevue_type_template_id_743f6d6a_render,
13188
- Handlevue_type_template_id_743f6d6a_staticRenderFns,
13196
+ Handlevue_type_template_id_7a1cc1c0_render,
13197
+ Handlevue_type_template_id_7a1cc1c0_staticRenderFns,
13189
13198
  false,
13190
13199
  null,
13191
13200
  null,
@@ -15626,8 +15635,8 @@ stepper_src_main.install = function (Vue) {
15626
15635
  };
15627
15636
 
15628
15637
  /* harmony default export */ var stepper = (stepper_src_main);
15629
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/main.vue?vue&type=template&id=611fc168&
15630
- var mainvue_type_template_id_611fc168_render = function () {
15638
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/main.vue?vue&type=template&id=c6074322&
15639
+ var mainvue_type_template_id_c6074322_render = function () {
15631
15640
  var _vm = this
15632
15641
  var _h = _vm.$createElement
15633
15642
  var _c = _vm._self._c || _h
@@ -15678,11 +15687,11 @@ var mainvue_type_template_id_611fc168_render = function () {
15678
15687
  2
15679
15688
  )
15680
15689
  }
15681
- var mainvue_type_template_id_611fc168_staticRenderFns = []
15682
- mainvue_type_template_id_611fc168_render._withStripped = true
15690
+ var mainvue_type_template_id_c6074322_staticRenderFns = []
15691
+ mainvue_type_template_id_c6074322_render._withStripped = true
15683
15692
 
15684
15693
 
15685
- // CONCATENATED MODULE: ./packages/pagination/src/main.vue?vue&type=template&id=611fc168&
15694
+ // CONCATENATED MODULE: ./packages/pagination/src/main.vue?vue&type=template&id=c6074322&
15686
15695
 
15687
15696
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/main.vue?vue&type=script&lang=js&
15688
15697
  //
@@ -15699,11 +15708,16 @@ mainvue_type_template_id_611fc168_render._withStripped = true
15699
15708
 
15700
15709
  /* harmony default export */ var pagination_src_mainvue_type_script_lang_js_ = ({
15701
15710
  name: 'EmPagination',
15702
- props: ['value'],
15711
+ props: {
15712
+ pageNum: {
15713
+ type: Number,
15714
+ default: 1
15715
+ }
15716
+ },
15703
15717
  computed: {
15704
15718
  newValue: {
15705
15719
  get: function get() {
15706
- return this.value;
15720
+ return this.pageNum;
15707
15721
  },
15708
15722
  set: function set(val) {
15709
15723
  return val;
@@ -15723,8 +15737,8 @@ mainvue_type_template_id_611fc168_render._withStripped = true
15723
15737
 
15724
15738
  var pagination_src_main_component = normalizeComponent(
15725
15739
  packages_pagination_src_mainvue_type_script_lang_js_,
15726
- mainvue_type_template_id_611fc168_render,
15727
- mainvue_type_template_id_611fc168_staticRenderFns,
15740
+ mainvue_type_template_id_c6074322_render,
15741
+ mainvue_type_template_id_c6074322_staticRenderFns,
15728
15742
  false,
15729
15743
  null,
15730
15744
  null,
@@ -15797,7 +15811,7 @@ if (typeof window !== 'undefined' && window.Vue) {
15797
15811
  }
15798
15812
 
15799
15813
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
15800
- version: '0.1.22',
15814
+ version: '0.1.23',
15801
15815
  install: install,
15802
15816
  Button: packages_button,
15803
15817
  ButtonGroup: button_group,
package/lib/flow.js CHANGED
@@ -3094,8 +3094,8 @@ var StartFlow_component = Object(componentNormalizer["a" /* default */])(
3094
3094
  )
3095
3095
 
3096
3096
  /* harmony default export */ var StartFlow = (StartFlow_component.exports);
3097
- // 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=743f6d6a&
3098
- var Handlevue_type_template_id_743f6d6a_render = function () {
3097
+ // 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=7a1cc1c0&
3098
+ var Handlevue_type_template_id_7a1cc1c0_render = function () {
3099
3099
  var _vm = this
3100
3100
  var _h = _vm.$createElement
3101
3101
  var _c = _vm._self._c || _h
@@ -4041,11 +4041,11 @@ var Handlevue_type_template_id_743f6d6a_render = function () {
4041
4041
  1
4042
4042
  )
4043
4043
  }
4044
- var Handlevue_type_template_id_743f6d6a_staticRenderFns = []
4045
- Handlevue_type_template_id_743f6d6a_render._withStripped = true
4044
+ var Handlevue_type_template_id_7a1cc1c0_staticRenderFns = []
4045
+ Handlevue_type_template_id_7a1cc1c0_render._withStripped = true
4046
4046
 
4047
4047
 
4048
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=743f6d6a&
4048
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=7a1cc1c0&
4049
4049
 
4050
4050
  // 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=4a537b88&
4051
4051
  var Rejectvue_type_template_id_4a537b88_render = function () {
@@ -5258,6 +5258,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5258
5258
  _that.form.isSubFlow = taskExamineInfo.isSubFlow;
5259
5259
  _that.form.nodeId = taskExamineInfo.nodeId;
5260
5260
  _that.form.nextNodeId = _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode;
5261
+ console.log(_that.form, '_that.form');
5261
5262
  Object(http["a" /* default */])({
5262
5263
  url: _that.baseUrl ? _that.baseUrl + api["j" /* taskHandleHtml */] : api["j" /* taskHandleHtml */],
5263
5264
  params: Handlevue_type_script_lang_js_extends({
@@ -5691,8 +5692,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5691
5692
 
5692
5693
  var Handle_component = Object(componentNormalizer["a" /* default */])(
5693
5694
  components_Handlevue_type_script_lang_js_,
5694
- Handlevue_type_template_id_743f6d6a_render,
5695
- Handlevue_type_template_id_743f6d6a_staticRenderFns,
5695
+ Handlevue_type_template_id_7a1cc1c0_render,
5696
+ Handlevue_type_template_id_7a1cc1c0_staticRenderFns,
5696
5697
  false,
5697
5698
  null,
5698
5699
  null,