eoss-mobiles 0.1.24 → 0.1.26

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.
@@ -7104,13 +7104,20 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7104
7104
  toggleAllSelection: function toggleAllSelection() {
7105
7105
  this.$refs.oaTable.toggleAllSelection();
7106
7106
  },
7107
- checkSelect: function checkSelect(newVal) {
7107
+ toggleRowSelection: function toggleRowSelection(newVal) {
7108
7108
  var _this2 = this;
7109
7109
 
7110
+ newVal.forEach(function (row) {
7111
+ _this2.$refs.oaTable.toggleRowSelection(row, true);
7112
+ });
7113
+ },
7114
+ checkSelect: function checkSelect(newVal) {
7115
+ var _this3 = this;
7116
+
7110
7117
  if (!this.isFirsetCheck && newVal) {
7111
7118
  if (util.getObjectType(newVal) === 'array') {
7112
7119
  newVal.forEach(function (row) {
7113
- _this2.$refs.oaTable.toggleRowSelection(row, true);
7120
+ _this3.$refs.oaTable.toggleRowSelection(row, true);
7114
7121
  });
7115
7122
  } else if (newVal === true) {
7116
7123
  this.toggleAllSelection();
@@ -7119,7 +7126,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7119
7126
  }
7120
7127
  },
7121
7128
  getTableData: function getTableData(res) {
7122
- var _this3 = this;
7129
+ var _this4 = this;
7123
7130
 
7124
7131
  var where = void 0;
7125
7132
  var first = void 0;
@@ -7155,32 +7162,32 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7155
7162
  data: reqData
7156
7163
  }).then(function (res) {
7157
7164
  if (res.rCode === 0 || res.status === 'success') {
7158
- var results = _this3.parseData !== undefined ? _this3.parseData(res.results || res.data || res) : res.results || res.data;
7159
- _this3.list = results.data || results.records || results.list || [];
7160
- _this3.config.totalCount = results.count || results.total || results.totalCount;
7165
+ var results = _this4.parseData !== undefined ? _this4.parseData(res.results || res.data || res) : res.results || res.data;
7166
+ _this4.list = results.data || results.records || results.list || [];
7167
+ _this4.config.totalCount = results.count || results.total || results.totalCount;
7161
7168
  } else {
7162
- _this3.list = [];
7169
+ _this4.list = [];
7163
7170
  }
7164
- _this3.$toast.clear();
7165
- _this3.$emit('success', res);
7171
+ _this4.$toast.clear();
7172
+ _this4.$emit('success', res);
7166
7173
  }).catch(function (err) {
7167
- _this3.$toast.clear();
7174
+ _this4.$toast.clear();
7168
7175
  if (err && err.code && [64, 65, 67].indexOf(err.code) > -1) {
7169
7176
  return;
7170
7177
  }
7171
7178
  if (util.getObjectType(err) === 'string') {
7172
- _this3.$toast(err);
7179
+ _this4.$toast(err);
7173
7180
  } else {
7174
- _this3.$toast(err.message || '数据加载失败,请联系管理员!');
7181
+ _this4.$toast(err.message || '数据加载失败,请联系管理员!');
7175
7182
  }
7176
7183
  });
7177
7184
  },
7178
7185
  currentChange: function currentChange(res) {
7179
- var _this4 = this;
7186
+ var _this5 = this;
7180
7187
 
7181
7188
  this.pageChange = true;
7182
7189
  setTimeout(function () {
7183
- _this4.pageChange = false;
7190
+ _this5.pageChange = false;
7184
7191
  }, 10);
7185
7192
  this.config.pageNum = res;
7186
7193
  this.$emit('page-current-change', res);
@@ -7189,7 +7196,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7189
7196
  }
7190
7197
  },
7191
7198
  getTheads: function getTheads() {
7192
- var _this5 = this;
7199
+ var _this6 = this;
7193
7200
 
7194
7201
  util.ajax({
7195
7202
  url: this.thead,
@@ -7201,24 +7208,24 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7201
7208
  if (res.rCode === 0) {
7202
7209
  var results = res.results;
7203
7210
  if (Array.isArray(results)) {
7204
- _this5.theadData = results;
7211
+ _this6.theadData = results;
7205
7212
  } else {
7206
- _this5.theadData = results.theadData || [];
7207
- _this5.list = results.data || results.records || [];
7208
- _this5.config.totalCount = results.count || results.total || results.totalCount;
7213
+ _this6.theadData = results.theadData || [];
7214
+ _this6.list = results.data || results.records || [];
7215
+ _this6.config.totalCount = results.count || results.total || results.totalCount;
7209
7216
  }
7210
7217
  } else {
7211
- _this5.theadData = [];
7218
+ _this6.theadData = [];
7212
7219
  }
7213
- _this5.$emit('success', res);
7220
+ _this6.$emit('success', res);
7214
7221
  }).catch(function (err) {
7215
7222
  if (err && err.code && [64, 65, 67].indexOf(err.code) > -1) {
7216
7223
  return;
7217
7224
  }
7218
7225
  if (util.getObjectType(err) === 'string') {
7219
- _this5.$message.error(err);
7226
+ _this6.$message.error(err);
7220
7227
  } else {
7221
- _this5.$message.error(err.message || '数据加载失败,请联系管理员!');
7228
+ _this6.$message.error(err.message || '数据加载失败,请联系管理员!');
7222
7229
  }
7223
7230
  });
7224
7231
  },
@@ -7232,51 +7239,51 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7232
7239
  this.$emit('focus', data, this.datas);
7233
7240
  },
7234
7241
  formChange: function formChange(data) {
7235
- var _this6 = this;
7242
+ var _this7 = this;
7236
7243
 
7237
7244
  if (this.pageChange) return;
7238
7245
  if (data.type) {
7239
7246
  this.pageChange = true;
7240
7247
  setTimeout(function () {
7241
- _this6.pageChange = false;
7248
+ _this7.pageChange = false;
7242
7249
  }, 20);
7243
7250
  }
7244
7251
  this.$emit('edit', data, this.datas);
7245
7252
  },
7246
7253
  resetHeight: function resetHeight() {
7247
- var _this7 = this;
7254
+ var _this8 = this;
7248
7255
 
7249
7256
  this.$nextTick(function () {
7250
- if (_this7.full && !_this7.height && !_this7.maxHeight) {
7251
- var height = _this7.$el.parentNode.offsetHeight - parseInt(util.getStyle(_this7.$el.parentNode, 'paddingTop'), 10) - parseInt(util.getStyle(_this7.$el.parentNode, 'paddingBottom'), 10);
7252
- for (var i = 0; i < _this7.$el.parentNode.childNodes.length; i++) {
7253
- var ele = _this7.$el.parentNode.childNodes[i];
7254
- if (ele !== _this7.$el) {
7257
+ if (_this8.full && !_this8.height && !_this8.maxHeight) {
7258
+ var height = _this8.$el.parentNode.offsetHeight - parseInt(util.getStyle(_this8.$el.parentNode, 'paddingTop'), 10) - parseInt(util.getStyle(_this8.$el.parentNode, 'paddingBottom'), 10);
7259
+ for (var i = 0; i < _this8.$el.parentNode.childNodes.length; i++) {
7260
+ var ele = _this8.$el.parentNode.childNodes[i];
7261
+ if (ele !== _this8.$el) {
7255
7262
  height -= ele.offsetHeight === undefined ? 0 : ele.offsetHeight;
7256
7263
  }
7257
7264
  }
7258
- for (var _i = 0; _i < _this7.$el.childNodes.length; _i++) {
7259
- var _ele = _this7.$el.childNodes[_i];
7260
- if (_ele !== _this7.$refs.esTableContent) {
7265
+ for (var _i = 0; _i < _this8.$el.childNodes.length; _i++) {
7266
+ var _ele = _this8.$el.childNodes[_i];
7267
+ if (_ele !== _this8.$refs.esTableContent) {
7261
7268
  height -= _ele.offsetHeight === undefined ? 0 : _ele.offsetHeight;
7262
7269
  }
7263
7270
  }
7264
- _this7.styles = { height: height + 'px' };
7265
- var loadingDom = _this7.$refs.esTableContent.querySelector('.el-loading-mask');
7266
- for (var _i2 = 0; _i2 < _this7.$refs.esTableContent.childNodes.length; _i2++) {
7267
- var _ele2 = _this7.$refs.esTableContent.childNodes[_i2];
7268
- if (_ele2 !== _this7.$refs.oaTable.$el && (!loadingDom || _ele2 !== loadingDom)) {
7271
+ _this8.styles = { height: height + 'px' };
7272
+ var loadingDom = _this8.$refs.esTableContent.querySelector('.el-loading-mask');
7273
+ for (var _i2 = 0; _i2 < _this8.$refs.esTableContent.childNodes.length; _i2++) {
7274
+ var _ele2 = _this8.$refs.esTableContent.childNodes[_i2];
7275
+ if (_ele2 !== _this8.$refs.oaTable.$el && (!loadingDom || _ele2 !== loadingDom)) {
7269
7276
  height -= _ele2.offsetHeight === undefined ? 0 : _ele2.offsetHeight;
7270
7277
  }
7271
7278
  }
7272
- var pt = parseInt(util.getStyle(_this7.$refs.esTableContent, 'paddingTop'), 10);
7273
- var pb = parseInt(util.getStyle(_this7.$refs.esTableContent, 'paddingBottom'), 10);
7274
- _this7.tableHeight = height - pt - pb + (_this7.page ? 2 : 1) + 'px';
7279
+ var pt = parseInt(util.getStyle(_this8.$refs.esTableContent, 'paddingTop'), 10);
7280
+ var pb = parseInt(util.getStyle(_this8.$refs.esTableContent, 'paddingBottom'), 10);
7281
+ _this8.tableHeight = height - pt - pb + (_this8.page ? 2 : 1) + 'px';
7275
7282
  }
7276
7283
  });
7277
7284
  },
7278
7285
  handleAjax: function handleAjax(handle, row) {
7279
- var _this8 = this;
7286
+ var _this9 = this;
7280
7287
 
7281
7288
  this.$toast.loading({
7282
7289
  message: '加载中...',
@@ -7338,9 +7345,9 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7338
7345
  method: handle.method,
7339
7346
  format: handle.format
7340
7347
  }).then(function (res) {
7341
- _this8.$toast.clear();
7348
+ _this9.$toast.clear();
7342
7349
  if (res.rCode === 0) {
7343
- _this8.$message({
7350
+ _this9.$message({
7344
7351
  message: handle.text + '\u6210\u529F',
7345
7352
  duration: 2000,
7346
7353
  type: 'success',
@@ -7348,17 +7355,17 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7348
7355
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
7349
7356
  var reload = handle.reload || true;
7350
7357
  if (reload) {
7351
- _this8.reload({}, first);
7358
+ _this9.reload({}, first);
7352
7359
  }
7353
7360
  }
7354
7361
  });
7355
7362
  } else {
7356
- _this8.$toast(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7363
+ _this9.$toast(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7357
7364
  }
7358
7365
  }).catch(function () {});
7359
7366
  },
7360
7367
  handleClick: function handleClick(res) {
7361
- var _this9 = this;
7368
+ var _this10 = this;
7362
7369
 
7363
7370
  var row = res.row,
7364
7371
  handle = res.handle;
@@ -7396,7 +7403,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7396
7403
  cancelButtonText: '取消',
7397
7404
  type: 'warning'
7398
7405
  }).then(function () {
7399
- _this9.handleAjax(handle, rows);
7406
+ _this10.handleAjax(handle, rows);
7400
7407
  }).catch(function () {});
7401
7408
  } else {
7402
7409
  this.handleAjax(handle, rows);
@@ -7503,34 +7510,34 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7503
7510
  this.$emit('row-click', row, column, event);
7504
7511
  },
7505
7512
  getChildrens: function getChildrens(h, items) {
7506
- var _this10 = this;
7513
+ var _this11 = this;
7507
7514
 
7508
7515
  var doms = [];
7509
7516
  items.childHead.forEach(function (item, index) {
7510
7517
  if (!item.hide) {
7511
7518
  var childs = [];
7512
7519
  if (item.childHead && item.childHead.length) {
7513
- childs = _this10.getChildrens(h, item);
7520
+ childs = _this11.getChildrens(h, item);
7514
7521
  }
7515
7522
  doms.push(h('em-table-column', {
7516
7523
  props: {
7517
- name: _this10.name,
7524
+ name: _this11.name,
7518
7525
  item: item,
7519
- prop: item[_this10.valueKey],
7520
- label: item[_this10.labelKey],
7526
+ prop: item[_this11.valueKey],
7527
+ label: item[_this11.labelKey],
7521
7528
  width: item.width,
7522
7529
  index: index + 1000,
7523
- readonly: _this10.readonly,
7524
- optionData: _this10.optionDatas,
7525
- form: _this10.form,
7526
- minWidth: _this10.minWidth
7530
+ readonly: _this11.readonly,
7531
+ optionData: _this11.optionDatas,
7532
+ form: _this11.form,
7533
+ minWidth: _this11.minWidth
7527
7534
  },
7528
7535
  on: {
7529
- handleClick: _this10.handleClick,
7530
- formBlur: _this10.formBlur,
7531
- formFocus: _this10.formFocus,
7532
- tableColumns: _this10.getTableColumns,
7533
- formChange: _this10.formChange
7536
+ handleClick: _this11.handleClick,
7537
+ formBlur: _this11.formBlur,
7538
+ formFocus: _this11.formFocus,
7539
+ tableColumns: _this11.getTableColumns,
7540
+ formChange: _this11.formChange
7534
7541
  }
7535
7542
  }, childs));
7536
7543
  }
@@ -7551,7 +7558,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7551
7558
  }
7552
7559
  },
7553
7560
  render: function render(h) {
7554
- var _this11 = this;
7561
+ var _this12 = this;
7555
7562
 
7556
7563
  var tag = 'div';
7557
7564
  var dom = [];
@@ -7615,27 +7622,27 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7615
7622
  } else if (!items.hide) {
7616
7623
  var tds = [];
7617
7624
  if (items.childHead && items.childHead.length) {
7618
- tds = _this11.getChildrens(h, items);
7625
+ tds = _this12.getChildrens(h, items);
7619
7626
  }
7620
7627
  dom.push(h('em-table-column', {
7621
7628
  props: {
7622
- name: _this11.name,
7623
- prop: items[_this11.valueKey],
7624
- label: items[_this11.labelKey],
7629
+ name: _this12.name,
7630
+ prop: items[_this12.valueKey],
7631
+ label: items[_this12.labelKey],
7625
7632
  item: items,
7626
7633
  width: items.width,
7627
7634
  index: indexs,
7628
- readonly: _this11.readonly,
7629
- optionData: _this11.optionDatas,
7630
- form: _this11.form,
7631
- minWidth: _this11.minWidth
7635
+ readonly: _this12.readonly,
7636
+ optionData: _this12.optionDatas,
7637
+ form: _this12.form,
7638
+ minWidth: _this12.minWidth
7632
7639
  },
7633
7640
  on: {
7634
- handleClick: _this11.handleClick,
7635
- formBlur: _this11.formBlur,
7636
- formFocus: _this11.formFocus,
7637
- tableColumns: _this11.getTableColumns,
7638
- formChange: _this11.formChange
7641
+ handleClick: _this12.handleClick,
7642
+ formBlur: _this12.formBlur,
7643
+ formFocus: _this12.formFocus,
7644
+ tableColumns: _this12.getTableColumns,
7645
+ formChange: _this12.formChange
7639
7646
  },
7640
7647
  key: indexs
7641
7648
  }, tds));
@@ -9480,8 +9487,8 @@ mainvue_type_template_id_7b6f32d8_render._withStripped = true
9480
9487
 
9481
9488
  // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=7b6f32d8&
9482
9489
 
9483
- // 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/StartFlow.vue?vue&type=template&id=0aa260ad&
9484
- var StartFlowvue_type_template_id_0aa260ad_render = function () {
9490
+ // 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/StartFlow.vue?vue&type=template&id=3eb91d37&
9491
+ var StartFlowvue_type_template_id_3eb91d37_render = function () {
9485
9492
  var _vm = this
9486
9493
  var _h = _vm.$createElement
9487
9494
  var _c = _vm._self._c || _h
@@ -9682,11 +9689,11 @@ var StartFlowvue_type_template_id_0aa260ad_render = function () {
9682
9689
  ]),
9683
9690
  ])
9684
9691
  }
9685
- var StartFlowvue_type_template_id_0aa260ad_staticRenderFns = []
9686
- StartFlowvue_type_template_id_0aa260ad_render._withStripped = true
9692
+ var StartFlowvue_type_template_id_3eb91d37_staticRenderFns = []
9693
+ StartFlowvue_type_template_id_3eb91d37_render._withStripped = true
9687
9694
 
9688
9695
 
9689
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=0aa260ad&
9696
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=3eb91d37&
9690
9697
 
9691
9698
  // 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/Opinion.vue?vue&type=template&id=ca53795c&
9692
9699
  var Opinionvue_type_template_id_ca53795c_render = function () {
@@ -10245,7 +10252,8 @@ var Message_component = normalizeComponent(
10245
10252
  beforeSubmit: Function,
10246
10253
  businessId: String, //提交意见附件所需id一般是业务id
10247
10254
  defId: String, //流程id
10248
- baseUrl: String //流程地址
10255
+ baseUrl: String, //流程地址
10256
+ orgId: String
10249
10257
  },
10250
10258
  data: function data() {
10251
10259
  return {
@@ -10588,8 +10596,8 @@ var Message_component = normalizeComponent(
10588
10596
 
10589
10597
  var StartFlow_component = normalizeComponent(
10590
10598
  components_StartFlowvue_type_script_lang_js_,
10591
- StartFlowvue_type_template_id_0aa260ad_render,
10592
- StartFlowvue_type_template_id_0aa260ad_staticRenderFns,
10599
+ StartFlowvue_type_template_id_3eb91d37_render,
10600
+ StartFlowvue_type_template_id_3eb91d37_staticRenderFns,
10593
10601
  false,
10594
10602
  null,
10595
10603
  null,
@@ -15839,7 +15847,7 @@ if (typeof window !== 'undefined' && window.Vue) {
15839
15847
  }
15840
15848
 
15841
15849
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
15842
- version: '0.1.24',
15850
+ version: '0.1.26',
15843
15851
  install: install,
15844
15852
  Button: packages_button,
15845
15853
  ButtonGroup: button_group,
package/lib/flow.js CHANGED
@@ -1967,8 +1967,8 @@ render._withStripped = true
1967
1967
 
1968
1968
  // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=7b6f32d8&
1969
1969
 
1970
- // 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/StartFlow.vue?vue&type=template&id=0aa260ad&
1971
- var StartFlowvue_type_template_id_0aa260ad_render = function () {
1970
+ // 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/StartFlow.vue?vue&type=template&id=3eb91d37&
1971
+ var StartFlowvue_type_template_id_3eb91d37_render = function () {
1972
1972
  var _vm = this
1973
1973
  var _h = _vm.$createElement
1974
1974
  var _c = _vm._self._c || _h
@@ -2169,11 +2169,11 @@ var StartFlowvue_type_template_id_0aa260ad_render = function () {
2169
2169
  ]),
2170
2170
  ])
2171
2171
  }
2172
- var StartFlowvue_type_template_id_0aa260ad_staticRenderFns = []
2173
- StartFlowvue_type_template_id_0aa260ad_render._withStripped = true
2172
+ var StartFlowvue_type_template_id_3eb91d37_staticRenderFns = []
2173
+ StartFlowvue_type_template_id_3eb91d37_render._withStripped = true
2174
2174
 
2175
2175
 
2176
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=0aa260ad&
2176
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=3eb91d37&
2177
2177
 
2178
2178
  // EXTERNAL MODULE: ./src/config/api.js
2179
2179
  var api = __webpack_require__(2);
@@ -2741,7 +2741,8 @@ var Message_component = Object(componentNormalizer["a" /* default */])(
2741
2741
  beforeSubmit: Function,
2742
2742
  businessId: String, //提交意见附件所需id一般是业务id
2743
2743
  defId: String, //流程id
2744
- baseUrl: String //流程地址
2744
+ baseUrl: String, //流程地址
2745
+ orgId: String
2745
2746
  },
2746
2747
  data: function data() {
2747
2748
  return {
@@ -3084,8 +3085,8 @@ var Message_component = Object(componentNormalizer["a" /* default */])(
3084
3085
 
3085
3086
  var StartFlow_component = Object(componentNormalizer["a" /* default */])(
3086
3087
  components_StartFlowvue_type_script_lang_js_,
3087
- StartFlowvue_type_template_id_0aa260ad_render,
3088
- StartFlowvue_type_template_id_0aa260ad_staticRenderFns,
3088
+ StartFlowvue_type_template_id_3eb91d37_render,
3089
+ StartFlowvue_type_template_id_3eb91d37_staticRenderFns,
3089
3090
  false,
3090
3091
  null,
3091
3092
  null,