eoss-mobiles 0.1.21 → 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.
package/lib/pagination.js CHANGED
@@ -199,7 +199,7 @@ function normalizeComponent(
199
199
  // ESM COMPAT FLAG
200
200
  __webpack_require__.r(__webpack_exports__);
201
201
 
202
- // 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&
202
+ // 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&
203
203
  var render = function () {
204
204
  var _vm = this
205
205
  var _h = _vm.$createElement
@@ -255,7 +255,7 @@ var staticRenderFns = []
255
255
  render._withStripped = true
256
256
 
257
257
 
258
- // CONCATENATED MODULE: ./packages/pagination/src/main.vue?vue&type=template&id=611fc168&
258
+ // CONCATENATED MODULE: ./packages/pagination/src/main.vue?vue&type=template&id=c6074322&
259
259
 
260
260
  // 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&
261
261
  //
@@ -272,11 +272,16 @@ render._withStripped = true
272
272
 
273
273
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
274
274
  name: 'EmPagination',
275
- props: ['value'],
275
+ props: {
276
+ pageNum: {
277
+ type: Number,
278
+ default: 1
279
+ }
280
+ },
276
281
  computed: {
277
282
  newValue: {
278
283
  get: function get() {
279
- return this.value;
284
+ return this.pageNum;
280
285
  },
281
286
  set: function set(val) {
282
287
  return val;
package/lib/table.js CHANGED
@@ -1904,6 +1904,14 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
1904
1904
  type: String,
1905
1905
  default: ''
1906
1906
  },
1907
+ labelKey: {
1908
+ type: String,
1909
+ default: 'title'
1910
+ },
1911
+ valueKey: {
1912
+ type: String,
1913
+ default: 'field'
1914
+ },
1907
1915
  // 默认选中,类型为Boolean时默认全(不)选
1908
1916
  checked: {
1909
1917
  type: [Boolean, Array],
@@ -1986,10 +1994,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
1986
1994
  if (this.list) {
1987
1995
  return this.list;
1988
1996
  }
1989
- if (this.page && this.data && this.data.length && this.config.totalCount < this.data.length + 1) {
1990
- this.config.totalCount = this.data.length - this.lose;
1997
+ if (this.page && this.data && this.data.length && this.config['total-items'] < this.data.length + 1) {
1998
+ this.config['total-items'] = this.data.length - this.lose;
1991
1999
  return this.data.filter(function (item, index) {
1992
- return index > (_this.config.pageNum - 1) * _this.config.pageSize - 1 && index < _this.config.pageNum * _this.config.pageSize;
2000
+ return index > (_this.config.pageNum - 1) * _this.config['items-per-page'] - 1 && index < _this.config.pageNum * _this.config['items-per-page'];
1993
2001
  });
1994
2002
  }
1995
2003
 
@@ -2042,7 +2050,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2042
2050
  });
2043
2051
  var reqData = util["a" /* default */].extend({}, this.param, {
2044
2052
  pageNum: this.config.pageNum,
2045
- pageSize: this.config.pageSize
2053
+ pageSize: this.config['items-per-page']
2046
2054
  });
2047
2055
  if (where) {
2048
2056
  reqData = util["a" /* default */].extend({}, reqData, where);
@@ -2057,7 +2065,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2057
2065
  if (res.rCode === 0 || res.status === 'success') {
2058
2066
  var results = _this3.parseData !== undefined ? _this3.parseData(res.results || res.data || res) : res.results || res.data;
2059
2067
  _this3.list = results.data || results.records || results.list || [];
2060
- _this3.config.totalCount = results.count || results.total || results.totalCount;
2068
+ _this3.config['total-items'] = results.count || results.total || results['total-items'];
2061
2069
  } else {
2062
2070
  _this3.list = [];
2063
2071
  }
@@ -2105,7 +2113,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2105
2113
  } else {
2106
2114
  _this5.theadData = results.theadData || [];
2107
2115
  _this5.list = results.data || results.records || [];
2108
- _this5.config.totalCount = results.count || results.total || results.totalCount;
2116
+ _this5.config['total-items'] = results.count || results.total || results['total-items'];
2109
2117
  }
2110
2118
  } else {
2111
2119
  _this5.theadData = [];
@@ -2288,7 +2296,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2288
2296
  if (handle.action) {
2289
2297
  var isConfirm = handle.confirm || true;
2290
2298
  if (isConfirm) {
2291
- var msg = handle.field ? row[handle.field] : '';
2299
+ var msg = handle[this.valueKey] ? row[handle[this.valueKey]] : '';
2292
2300
  this.$dialog.confirm({
2293
2301
  message: '\u786E\u5B9A\u8981' + handle.text + msg + '\u5417',
2294
2302
  title: '提示',
@@ -2311,7 +2319,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2311
2319
  } else if (handle.event === 'add' || handle.event === 'edit' || handle.event === 'look') {
2312
2320
  var changes = {
2313
2321
  event: handle.event,
2314
- title: handle.title || handle.text,
2322
+ title: handle[this.labelKey] || handle.text,
2315
2323
  values: handle.event === 'add' ? {} : rows,
2316
2324
  readonly: handle.event === 'look',
2317
2325
  actionType: handle.actionType ? handle.actionType : handle.event === 'add' ? 'save' : 'update'
@@ -2377,7 +2385,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2377
2385
  if (handle.exportXls) {
2378
2386
  var text = '操作';
2379
2387
  if (this.thead[this.thead.length - 1] && this.thead[this.thead.length - 1].type === 'handle') {
2380
- text = this.thead[this.thead.length - 1].title;
2388
+ text = this.thead[this.thead.length - 1][this.labelKey];
2381
2389
  }
2382
2390
  thead = thead.map(function (item) {
2383
2391
  return item.filter(function (ele) {
@@ -2416,8 +2424,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2416
2424
  props: {
2417
2425
  name: _this10.name,
2418
2426
  item: item,
2419
- prop: item.field,
2420
- label: item.title,
2427
+ prop: item[_this10.valueKey],
2428
+ label: item[_this10.labelKey],
2421
2429
  width: item.width,
2422
2430
  index: index + 1000,
2423
2431
  readonly: _this10.readonly,
@@ -2520,8 +2528,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2520
2528
  dom.push(h('em-table-column', {
2521
2529
  props: {
2522
2530
  name: _this11.name,
2523
- prop: items.field,
2524
- label: items.title,
2531
+ prop: items[_this11.valueKey],
2532
+ label: items[_this11.labelKey],
2525
2533
  item: items,
2526
2534
  width: items.width,
2527
2535
  index: indexs,
@@ -2562,9 +2570,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2562
2570
  tableContents.push(h('em-pagination', {
2563
2571
  attrs: {
2564
2572
  // ...this.config,
2565
- value: this.config.pageNum,
2566
- 'items-per-page': this.config.pageSize,
2567
- 'total-items': this.config.totalCount
2573
+ pageNum: this.config.pageNum,
2574
+ 'items-per-page': this.config['items-per-page'],
2575
+ 'total-items': this.config['total-items']
2568
2576
  },
2569
2577
  class: 'em-table-page',
2570
2578
  style: { 'text-align': this.page.position || 'center' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-mobiles",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -435,7 +435,7 @@ export default {
435
435
  caOpinion: undefined, //加密意见
436
436
  isReturnRejectNode: undefined, //是否提交驳回节点
437
437
  isSerialSubmit: undefined, //串行默认提交
438
- loginType: undefined, //登录方式
438
+ loginType: 2, //登录方式
439
439
  nodeOpinionTemplate: undefined, //意见模板
440
440
  businessSubCenterCode: undefined, //业务中心编码
441
441
  nextRoleId: undefined, // 下步办理角色id
@@ -674,6 +674,7 @@ export default {
674
674
  _that.form.isSubFlow = taskExamineInfo.isSubFlow;
675
675
  _that.form.nodeId = taskExamineInfo.nodeId ;
676
676
  _that.form.nextNodeId = _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode
677
+ console.log(_that.form,'_that.form')
677
678
  request({
678
679
  url: _that.baseUrl ? _that.baseUrl + taskHandleHtml : taskHandleHtml,
679
680
  params: {
@@ -871,7 +872,6 @@ export default {
871
872
  ) {
872
873
  that.form.nextNodeId =undefined;
873
874
  that.form.nextNodeName = undefined;
874
- console.log(that.form.nextNodeId,'that.form.nextNodeId')
875
875
  } else {
876
876
  that.nodeList = that.taskOperations[0].taskNodeList;
877
877
  let info = [];
@@ -909,7 +909,6 @@ export default {
909
909
  }
910
910
  });
911
911
  if(info.length == 0 && that.nodeList.length !=0) info =[that.nodeList[0]]
912
- console.log(info,'infoinfo')
913
912
  if (info.length > 0) {
914
913
  that.form.nextNodeId = info[0].nodeId;
915
914
  that.form.nextNodeName = info[0].nodeName;
@@ -918,12 +917,10 @@ export default {
918
917
  // that.form.nextNodeName = that.nodeList[0].nodeName;
919
918
  }
920
919
  }
921
- console.log(that.taskOperations, that.form, 'asdsdsa');
922
920
  if (item.key == 9) {
923
921
  that.isReject = true;
924
922
  }
925
923
  }
926
- console.log(that.form, 'that.form');
927
924
  });
928
925
  if (!isSelected) {
929
926
  that.form.nextOperate = that.taskOperations[0].key;
@@ -43,7 +43,6 @@ import { taskRejectHtml, toTaskRejectHtml } from '../../../../src/config/api';
43
43
  import request from '../../../../src/utils/http.js';
44
44
  import Opinion from './Opinion.vue';
45
45
  import Message from './Message.vue';
46
- import util from '../../../../src/utils/util';
47
46
  export default {
48
47
  name: 'Reject',
49
48
  props: {
@@ -61,7 +60,8 @@ export default {
61
60
  form: {
62
61
  opinion: undefined, // 审批意见
63
62
  notificationMsg: undefined, //系统消息
64
- nextNodeId: undefined
63
+ nextNodeId: undefined,
64
+ loginType: 2, //登录方式
65
65
  },
66
66
  processObj: {
67
67
  taskExamine: { nodeName: undefined },
@@ -243,7 +243,7 @@ export default {
243
243
  nodeId: this.form.nodeId,
244
244
  userId: sessionStorage.getItem('userId'),
245
245
  notificationMsg: this.form.notificationMsg,
246
- loginType: 'a' //登录方式
246
+ loginType: 2 //登录方式
247
247
  };
248
248
  if (this.beforeSubmit) {
249
249
  this.beforeSubmit(info);
@@ -292,6 +292,7 @@ export default {
292
292
  notificationMsgType: this.form.notificationMsgType,
293
293
  notificationMsg: this.form.notificationMsg,
294
294
  isImageOpinion: 0,
295
+ loginType: 2,
295
296
  taskAction: this.type
296
297
  }
297
298
  };
@@ -368,6 +369,7 @@ export default {
368
369
  choiceOrgId,
369
370
  businessName,
370
371
  processDefinitionId,
372
+ loginType: 2,
371
373
  handleExplain: this.form.handleExplain,
372
374
  currentOrgProcessKey: processDefinitionId,
373
375
  noticeType: this.form.notificationMsgType,
@@ -12,11 +12,16 @@
12
12
  <script>
13
13
  export default {
14
14
  name: 'EmPagination',
15
- props: ['value'],
15
+ props: {
16
+ pageNum:{
17
+ type:Number,
18
+ default:1
19
+ },
20
+ },
16
21
  computed: {
17
22
  newValue: {
18
23
  get() {
19
- return this.value;
24
+ return this.pageNum;
20
25
  },
21
26
  set(val) {
22
27
  return val;
@@ -67,6 +67,14 @@ export default {
67
67
  type: String,
68
68
  default: ''
69
69
  },
70
+ labelKey: {
71
+ type: String,
72
+ default: 'title'
73
+ },
74
+ valueKey: {
75
+ type: String,
76
+ default: 'field'
77
+ },
70
78
  // 默认选中,类型为Boolean时默认全(不)选
71
79
  checked: {
72
80
  type: [Boolean, Array],
@@ -147,13 +155,13 @@ export default {
147
155
  this.page &&
148
156
  this.data &&
149
157
  this.data.length &&
150
- this.config.totalCount < this.data.length + 1
158
+ this.config['total-items'] < this.data.length + 1
151
159
  ) {
152
- this.config.totalCount = this.data.length - this.lose;
160
+ this.config['total-items'] = this.data.length - this.lose;
153
161
  return this.data.filter((item, index) => {
154
162
  return (
155
- index > (this.config.pageNum - 1) * this.config.pageSize - 1 &&
156
- index < this.config.pageNum * this.config.pageSize
163
+ index > (this.config.pageNum - 1) * this.config['items-per-page'] - 1 &&
164
+ index < this.config.pageNum * this.config['items-per-page']
157
165
  );
158
166
  });
159
167
  }
@@ -203,7 +211,7 @@ export default {
203
211
  });
204
212
  let reqData = util.extend({}, this.param, {
205
213
  pageNum: this.config.pageNum,
206
- pageSize: this.config.pageSize
214
+ pageSize: this.config['items-per-page']
207
215
  });
208
216
  if (where) {
209
217
  reqData = util.extend({}, reqData, where);
@@ -223,8 +231,8 @@ export default {
223
231
  ? this.parseData(res.results || res.data || res)
224
232
  : res.results || res.data;
225
233
  this.list = results.data || results.records || results.list || [];
226
- this.config.totalCount =
227
- results.count || results.total || results.totalCount;
234
+ this.config['total-items'] =
235
+ results.count || results.total || results['total-items'];
228
236
  } else {
229
237
  this.list = [];
230
238
  }
@@ -271,8 +279,8 @@ export default {
271
279
  } else {
272
280
  this.theadData = results.theadData || [];
273
281
  this.list = results.data || results.records || [];
274
- this.config.totalCount =
275
- results.count || results.total || results.totalCount;
282
+ this.config['total-items'] =
283
+ results.count || results.total || results['total-items'];
276
284
  }
277
285
  } else {
278
286
  this.theadData = [];
@@ -469,7 +477,7 @@ export default {
469
477
  if (handle.action) {
470
478
  let isConfirm = handle.confirm || true;
471
479
  if (isConfirm) {
472
- let msg = handle.field ? row[handle.field] : '';
480
+ let msg = handle[this.valueKey] ? row[handle[this.valueKey]] : '';
473
481
  this.$dialog
474
482
  .confirm({
475
483
  message: `确定要${handle.text}${msg}吗`,
@@ -500,7 +508,7 @@ export default {
500
508
  ) {
501
509
  let changes = {
502
510
  event: handle.event,
503
- title: handle.title || handle.text,
511
+ title: handle[this.labelKey] || handle.text,
504
512
  values: handle.event === 'add' ? {} : rows,
505
513
  readonly: handle.event === 'look',
506
514
  actionType: handle.actionType
@@ -577,7 +585,7 @@ export default {
577
585
  this.thead[this.thead.length - 1] &&
578
586
  this.thead[this.thead.length - 1].type === 'handle'
579
587
  ) {
580
- text = this.thead[this.thead.length - 1].title;
588
+ text = this.thead[this.thead.length - 1][this.labelKey];
581
589
  }
582
590
  thead = thead.map(item => {
583
591
  return item.filter(ele => {
@@ -617,8 +625,8 @@ export default {
617
625
  props: {
618
626
  name: this.name,
619
627
  item: item,
620
- prop: item.field,
621
- label: item.title,
628
+ prop: item[this.valueKey],
629
+ label: item[this.labelKey],
622
630
  width: item.width,
623
631
  index: index + 1000,
624
632
  readonly: this.readonly,
@@ -741,8 +749,8 @@ export default {
741
749
  {
742
750
  props: {
743
751
  name: this.name,
744
- prop: items.field,
745
- label: items.title,
752
+ prop: items[this.valueKey],
753
+ label: items[this.labelKey],
746
754
  item: items,
747
755
  width: items.width,
748
756
  index: indexs,
@@ -794,9 +802,9 @@ export default {
794
802
  h('em-pagination', {
795
803
  attrs: {
796
804
  // ...this.config,
797
- value: this.config.pageNum,
798
- 'items-per-page': this.config.pageSize,
799
- 'total-items': this.config.totalCount
805
+ pageNum: this.config.pageNum,
806
+ 'items-per-page': this.config['items-per-page'],
807
+ 'total-items': this.config['total-items']
800
808
  },
801
809
  class: 'em-table-page',
802
810
  style: { 'text-align': this.page.position || 'center' },
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ if (typeof window !== 'undefined' && window.Vue) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '0.1.21',
92
+ version: '0.1.23',
93
93
  install,
94
94
  Button,
95
95
  ButtonGroup,