eoss-mobiles 0.3.12 → 0.3.14

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.
@@ -22,7 +22,10 @@
22
22
  @click="handlePicker"
23
23
  :disabled="disabled || readonly"
24
24
  :right-icon="disabled || readonly ? '' : 'arrow'"
25
- />
25
+ >
26
+ <template v-for="(index, name) in $slots" :slot="name">
27
+ <slot :name="name" /> </template
28
+ ></em-input>
26
29
  <em-input
27
30
  v-else
28
31
  readonly
@@ -37,7 +40,7 @@
37
40
  :right-icon="disabled || readonly ? '' : 'arrow'"
38
41
  >
39
42
  <template slot="input">
40
- <div style="width:100%">
43
+ <div style="width: 100%">
41
44
  <slot name="textTop"></slot>
42
45
  <div v-if="pickerValue.length > 0">
43
46
  <em-tag
@@ -50,7 +53,7 @@
50
53
  >{{ r[labelKey] || r.name }}</em-tag
51
54
  >
52
55
  </div>
53
- <div v-else style="color:#c8c9cc">
56
+ <div v-else style="color: #c8c9cc">
54
57
  {{
55
58
  (disabled || readonly) && placeholder == undefined
56
59
  ? ' 暂无数据'
@@ -280,7 +283,7 @@ export default {
280
283
  val[this.sysAppCode ? 'cciValue' : this.valueKey]
281
284
  );
282
285
  } else if (!this.objectType && val.length != undefined) {
283
- val.map(x => {
286
+ val.map((x) => {
284
287
  if (typeof x === 'object') {
285
288
  x = x[this.sysAppCode ? 'cciValue' : this.valueKey];
286
289
  }
@@ -351,7 +354,7 @@ export default {
351
354
  }
352
355
  } else if (this.isCheck) {
353
356
  let data = this.value;
354
- data.map(item => {
357
+ data.map((item) => {
355
358
  this.checkList.push(item[this.valueKey] || item.value || item);
356
359
  });
357
360
  }
@@ -362,7 +365,7 @@ export default {
362
365
 
363
366
  if (this.columns.length > 0) {
364
367
  this.newColumns = this.columns.filter(
365
- x => x[this.labelKey].indexOf(this.keyWord) != -1
368
+ (x) => x[this.labelKey].indexOf(this.keyWord) != -1
366
369
  );
367
370
  if (!this.keyWord) {
368
371
  this.newColumns = this.columns;
@@ -401,7 +404,7 @@ export default {
401
404
  deleteList(val, res) {
402
405
  if (this.disabled || this.readonly) return;
403
406
  this.pickerValue.splice(val, 1);
404
- this.checkList = this.checkList.filter(x => x != res.value);
407
+ this.checkList = this.checkList.filter((x) => x != res.value);
405
408
  this.$emit('input', this.pickerValue);
406
409
 
407
410
  this.$emit('tagDelete', this.pickerValue);
@@ -413,8 +416,8 @@ export default {
413
416
  if (isConfirm) {
414
417
  if (this.isCheck) {
415
418
  let data = [];
416
- this.newColumns.filter(x => {
417
- this.checkList.find(y => {
419
+ this.newColumns.filter((x) => {
420
+ this.checkList.find((y) => {
418
421
  if (x.value === y) {
419
422
  data.push(x);
420
423
  }
@@ -427,7 +430,7 @@ export default {
427
430
  } else {
428
431
  if (this.isCheck) {
429
432
  this.checkList = [];
430
- this.pickerValue.map(x => {
433
+ this.pickerValue.map((x) => {
431
434
  this.checkList.push(x.value);
432
435
  });
433
436
  }
@@ -440,8 +443,8 @@ export default {
440
443
  if (this.isCheck) {
441
444
  let val = [];
442
445
  if (this.newColumns && this.newColumns.length > 0) {
443
- this.newColumns.filter(x => {
444
- this.value.find(y => {
446
+ this.newColumns.filter((x) => {
447
+ this.value.find((y) => {
445
448
  if (x[this.valueKey] == y || x[this.valueKey] == y.value) {
446
449
  val.push(x);
447
450
  }
@@ -470,7 +473,7 @@ export default {
470
473
  this.newDefaultIndex = index;
471
474
  } else {
472
475
  let list = [];
473
- this.value.map(item => {
476
+ this.value.map((item) => {
474
477
  if (item[this.labelKey] || item[this.newValueKey]) {
475
478
  list.push(item[this.labelKey] || item[this.newValueKey]);
476
479
  } else if (typeof item === 'string') {
@@ -524,7 +527,7 @@ export default {
524
527
  }
525
528
  this.newLoading = true;
526
529
  request(params)
527
- .then(res => {
530
+ .then((res) => {
528
531
  const { status, data, message, rCode, results } = res;
529
532
  this.listLoading = false;
530
533
  if (status == 'success' || rCode === 0 || status === true) {
@@ -535,7 +538,7 @@ export default {
535
538
  : data
536
539
  ? data
537
540
  : results;
538
- info.map(x => {
541
+ info.map((x) => {
539
542
  if (this.isCheck) {
540
543
  x.name =
541
544
  x[sysAppCode ? 'shortName' : this.labelKey] &&
@@ -575,7 +578,7 @@ export default {
575
578
  }
576
579
  this.newLoading = false;
577
580
  })
578
- .catch(err => {
581
+ .catch((err) => {
579
582
  this.$toast(err.message);
580
583
  });
581
584
  },
@@ -24,7 +24,7 @@
24
24
  @click="handleClick"
25
25
  class="em-flow-tabs"
26
26
  type="card"
27
- style="margin:10px 0px"
27
+ style="margin: 10px 0px"
28
28
  >
29
29
  <em-tab
30
30
  :title="item.label"
@@ -153,8 +153,8 @@ export default {
153
153
  type: String,
154
154
  default: '人'
155
155
  },
156
- disableds:{
157
- type:Array,
156
+ disableds: {
157
+ type: Array,
158
158
  default: () => []
159
159
  },
160
160
  showSearch: {
@@ -293,7 +293,7 @@ export default {
293
293
  selectData: [],
294
294
  timer: null,
295
295
  isSearch: false,
296
- inputSearch:false,
296
+ inputSearch: false,
297
297
  newParam: {},
298
298
  oldIsSearch: false,
299
299
  selectIndex: 0,
@@ -582,7 +582,10 @@ export default {
582
582
  };
583
583
  let copyTabs = this.tabs.split(',');
584
584
  let obj = {};
585
- copyTabs.map(x => {
585
+ copyTabs.map((x) => {
586
+ if(this.param[x]){
587
+ tabs[x].param = {...tabs[x].param, ...this.param[x]};
588
+ }
586
589
  obj[x];
587
590
  });
588
591
  if (this.tabs) {
@@ -593,15 +596,12 @@ export default {
593
596
  }
594
597
  }
595
598
  let newtabs = [];
596
- console.log(copyTabs,this.param,'copyTabs')
597
- copyTabs.map(x => {
598
- if(this.param[x]){
599
- obj[x].param ={...obj[x].param,...this.param[x]};
600
- console.log(this.param[x],'this.param[x]')
599
+ copyTabs.map((x) => {
600
+ if (this.param[x]) {
601
+ obj[x].param = { ...obj[x].param, ...this.param[x] };
601
602
  }
602
603
  newtabs.push(obj[x]);
603
604
  });
604
- console.log(newtabs,'newtabs')
605
605
  return newtabs;
606
606
  }
607
607
  },
@@ -619,7 +619,7 @@ export default {
619
619
  methods: {
620
620
  handleClick(index) {
621
621
  this.selectIndex = index;
622
- this.inputSearch = false
622
+ this.inputSearch = false;
623
623
  this.getContent();
624
624
  },
625
625
  getNodeList(isSearch) {
@@ -636,17 +636,17 @@ export default {
636
636
  }
637
637
  let _this = this;
638
638
  if (this.list && this.list.length > 0) {
639
- this.list.filter(r => {
640
- _this.personnel.find(i => {
639
+ this.list.filter((r) => {
640
+ _this.personnel.find((i) => {
641
641
  if (i[_this.valueKey] === r[_this.valueKey]) {
642
642
  _this.$set(i, 'checked', true);
643
643
  } else if (i.children) {
644
644
  _this.getActiveChildren(i.children, r[_this.valueKey]);
645
- }
645
+ }
646
646
  });
647
647
  });
648
648
  } else {
649
- _this.personnel.map(x => {
649
+ _this.personnel.map((x) => {
650
650
  if (x.children && x.children.length > 0) {
651
651
  this.setChecked(x.children);
652
652
  } else {
@@ -657,16 +657,16 @@ export default {
657
657
  },
658
658
  getActiveChildren(data, id) {
659
659
  const _this = this;
660
- data.map(x => {
660
+ data.map((x) => {
661
661
  if (x[_this.valueKey] === id) {
662
662
  _this.$set(x, 'checked', true);
663
663
  } else if (x.children) {
664
664
  _this.getActiveChildren(x.children, id);
665
- }
665
+ }
666
666
  });
667
667
  },
668
668
  setChecked(list) {
669
- list.map(x => {
669
+ list.map((x) => {
670
670
  if (x.children && x.children.length > 0) {
671
671
  this.setChecked(x.children);
672
672
  } else {
@@ -716,7 +716,7 @@ export default {
716
716
  this.isSearch = !this.isSearch;
717
717
  this.$emit('search', this.namelike);
718
718
  } else {
719
- this.inputSearch = true
719
+ this.inputSearch = true;
720
720
  this.getContent();
721
721
  }
722
722
  }, 1000);
@@ -739,17 +739,19 @@ export default {
739
739
  overlay: true,
740
740
  duration: 0
741
741
  });
742
- this.newParam = {...JSON.parse(JSON.stringify(this.param))};
743
- this.newParam.selecttype = this.newTabs[
744
- this.selectIndex
745
- ].param.selecttype;
742
+ this.newParam = { ...JSON.parse(JSON.stringify(this.param)) };
743
+ this.newParam.selecttype =
744
+ this.newTabs[this.selectIndex].param.selecttype;
746
745
  if (this.newParam.selecttype === 'persongroup') {
747
746
  this.newParam.pid = 'root';
748
747
  this.newParam.myUserid =
749
748
  this.newParam.myUserid || $.getStorage('userId');
750
749
  } else {
751
- this.newParam.pid =this.newTabs[this.selectIndex].param.pid || this.param.pid || 'root';
750
+ this.newParam = {...this.newParam,...this.newTabs[this.selectIndex].param}
751
+ // this.newTabs[this.selectIndex].param.pid || this.param.pid || 'root';
752
752
  }
753
+ delete this.newParam.department
754
+ delete this.newParam.myemployee
753
755
  request({
754
756
  url: this.url
755
757
  ? this.url
@@ -763,22 +765,26 @@ export default {
763
765
  filid: this.filid,
764
766
  ...this.newParam
765
767
  }
766
- }).then(res => {
768
+ }).then((res) => {
767
769
  this.$toast.clear();
768
770
  const { rCode, msg } = res;
769
771
  if (rCode == 0) {
770
- if(this.inputSearch && !this.namelike){this.inputSearch = false} else if(this.namelike.trim()){
771
- this.inputSearch = true
772
+ if (this.inputSearch && !this.namelike) {
773
+ this.inputSearch = false;
774
+ } else if (this.namelike.trim()) {
775
+ this.inputSearch = true;
772
776
  }
773
777
  if (typeof this.selectList == 'string') {
774
778
  this.selectData = [];
775
- this.list = this.getSelectData(JSON.parse(JSON.stringify(res.results)));
779
+ this.list = this.getSelectData(
780
+ JSON.parse(JSON.stringify(res.results))
781
+ );
776
782
  this.$emit('update:selectList', this.list);
777
783
  }
778
- this.personnel =JSON.parse(JSON.stringify(res.results));
784
+ this.personnel = JSON.parse(JSON.stringify(res.results));
779
785
  let _this = this;
780
- this.list.filter(r => {
781
- _this.personnel.find(i => {
786
+ this.list.filter((r) => {
787
+ _this.personnel.find((i) => {
782
788
  if (i[_this.valueKey] === r[_this.valueKey]) {
783
789
  _this.$set(i, 'checked', true);
784
790
  }
@@ -793,8 +799,8 @@ export default {
793
799
  getSelectData(data) {
794
800
  const _this = this;
795
801
  let user = this.selectList.split(',');
796
- user.map(x => {
797
- data.map(i => {
802
+ user.map((x) => {
803
+ data.map((i) => {
798
804
  if (i[_this.valueKey] == x) {
799
805
  this.selectData.push(i);
800
806
  } else if (i.children) {
@@ -825,7 +831,7 @@ export default {
825
831
  ? this.baseUrl + selectObject
826
832
  : selectObject,
827
833
  params: params
828
- }).then(res => {
834
+ }).then((res) => {
829
835
  if (res.rCode == 0) {
830
836
  if (
831
837
  res.results.length > 0 &&
@@ -843,17 +849,17 @@ export default {
843
849
  }
844
850
  this.$set(obj, 'children', res.results);
845
851
  let _this = this;
846
- this.list.filter(r => {
847
- obj.children.find(i => {
852
+ this.list.filter((r) => {
853
+ obj.children.find((i) => {
848
854
  if (i[_this.valueKey] === r[_this.valueKey]) {
849
855
  _this.$set(i, 'checked', true);
850
856
  }
851
857
  });
852
858
  });
853
- if (this.isAllCheck && this.multiple && obj.children.length>0) {
859
+ if (this.isAllCheck && this.multiple && obj.children.length > 0) {
854
860
  let checkList = obj.children
855
861
  .slice(1, obj.children.length)
856
- .filter(x => x.checked);
862
+ .filter((x) => x.checked);
857
863
  if (
858
864
  checkList.length ===
859
865
  obj.children.slice(1, obj.children.length).length
@@ -881,7 +887,11 @@ export default {
881
887
  }
882
888
  }
883
889
  let newData = res.obj;
884
- if ((!newData.children || newData.children.length == 0) && !isStart && data) {
890
+ if (
891
+ (!newData.children || newData.children.length == 0) &&
892
+ !isStart &&
893
+ data
894
+ ) {
885
895
  if (this.nodeList && this.nodeList.length > 0) {
886
896
  this.$toast.loading({
887
897
  message: '加载中...',
@@ -892,44 +902,44 @@ export default {
892
902
  });
893
903
  if (!Array.isArray(data)) {
894
904
  data
895
- .then(res => {
896
- res.map(x => {
905
+ .then((res) => {
906
+ res.map((x) => {
897
907
  !x[_that.nodeKey] && _that.$set(x, 'nocheck', false);
898
908
  });
899
909
  _that.$set(newData, 'children', res);
900
910
  if (_that.selectList && _that.selectList.length > 0) {
901
- _that.selectList.filter(r => {
902
- newData.children.find(i => {
911
+ _that.selectList.filter((r) => {
912
+ newData.children.find((i) => {
903
913
  if (i[_that.valueKey] === r[_that.valueKey]) {
904
914
  _that.$set(i, 'checked', true);
905
915
  }
906
916
  });
907
917
  });
908
918
  } else {
909
- newData.children.find(i => {
919
+ newData.children.find((i) => {
910
920
  _that.$set(i, 'checked', false);
911
921
  });
912
922
  }
913
923
  this.$toast.clear();
914
924
  })
915
- .catch(err => {
925
+ .catch((err) => {
916
926
  this.$toast('数据返回错误');
917
927
  });
918
928
  } else {
919
- data.map(x => {
929
+ data.map((x) => {
920
930
  !x[_that.nodeKey] && _that.$set(x, 'nocheck', false);
921
931
  });
922
932
  _that.$set(newData, 'children', data);
923
933
  if (_that.selectList && _that.selectList.length > 0) {
924
- _that.selectList.filter(r => {
925
- newData.children.find(i => {
934
+ _that.selectList.filter((r) => {
935
+ newData.children.find((i) => {
926
936
  if (i[_that.valueKey] === r[_that.valueKey]) {
927
937
  _that.$set(i, 'checked', true);
928
938
  }
929
939
  });
930
940
  });
931
941
  } else {
932
- newData.children.find(i => {
942
+ newData.children.find((i) => {
933
943
  _that.$set(i, 'checked', false);
934
944
  });
935
945
  }
@@ -948,8 +958,10 @@ export default {
948
958
  // debugger
949
959
  if (
950
960
  this.$listeners['node-click'] &&
951
- (this.$listeners['left-icon'] || (this.showMore && !this.isDefaultNode))
952
- && !isStart) {
961
+ (this.$listeners['left-icon'] ||
962
+ (this.showMore && !this.isDefaultNode)) &&
963
+ !isStart
964
+ ) {
953
965
  if (this.$listeners['left-icon'] && key === 'node') {
954
966
  this.getChiled(res, isStart, 'left-icon');
955
967
  } else if (
@@ -999,12 +1011,12 @@ export default {
999
1011
  },
1000
1012
  checked(res, model) {
1001
1013
  this.oldIsSearch = this.isSearch;
1002
- if(!res.obj.mixType){
1014
+ if (!res.obj.mixType) {
1003
1015
  this.$set(res.obj, 'mixType', this.newTabs[this.selectIndex].name);
1004
1016
  }
1005
1017
  if (res.obj.checked) {
1006
1018
  if (res.obj.isAllCheck) {
1007
- model.map(x => {
1019
+ model.map((x) => {
1008
1020
  for (let i in this.list) {
1009
1021
  if (this.list[i][this.valueKey] == x[this.valueKey]) {
1010
1022
  this.list.splice(i, 1);
@@ -1021,16 +1033,19 @@ export default {
1021
1033
  this.$set(res.obj, 'checked', false);
1022
1034
  }
1023
1035
  } else {
1024
-
1025
1036
  // if (!this.multiple && this.list.length >= 1) {
1026
1037
  // this.$toast(this.promptText);
1027
1038
  // return;
1028
1039
  // }
1029
1040
  if (res.obj.isAllCheck) {
1030
- model.map(x => {
1031
- this.$set(x, 'checked', true);
1041
+ let selectData = [];
1042
+ model.map((x) => {
1043
+ if(!x.disabled && !x.nocheck && !x.isAllCheck){
1044
+ this.$set(x, 'checked', true);
1045
+ selectData.push(x);
1046
+ }
1032
1047
  });
1033
- this.list.push(...model.slice(1, model.length));
1048
+ this.list.push(...selectData);
1034
1049
  } else {
1035
1050
  this.$set(res.obj, 'checked', true);
1036
1051
  if (!this.multiple) {
@@ -1042,21 +1057,25 @@ export default {
1042
1057
  }
1043
1058
  }
1044
1059
  if (this.isAllCheck && this.multiple && model[0].isAllCheck) {
1045
- let checkList = model.slice(1, model.length).filter(x => x.checked);
1060
+ let checkList = model.slice(1, model.length).filter((x) => x.checked);
1046
1061
  var obj = {};
1047
1062
  this.list = this.list.reduce((item, next) => {
1048
1063
  obj[next.showid] ? '' : (obj[next.showid] = true && item.push(next));
1049
1064
  return item;
1050
1065
  }, []);
1051
1066
  if (model.length - 1 === checkList.length) {
1052
- this.$set(model[0], 'checked', true);
1067
+ model.map((x) => {
1068
+ if (!x.disabled) {
1069
+ this.$set(model[0], 'checked', true);
1070
+ }
1071
+ });
1053
1072
  } else {
1054
1073
  this.$set(model[0], 'checked', false);
1055
1074
  }
1056
1075
  }
1057
1076
  },
1058
1077
  setChecked(data, item) {
1059
- data.map(x => {
1078
+ data.map((x) => {
1060
1079
  if (x[this.valueKey] === item[this.valueKey]) {
1061
1080
  this.$set(x, 'checked', true);
1062
1081
  } else {
@@ -71,7 +71,7 @@
71
71
  :class="`iconfont icon-gou select-icon ${isDisabled(item) ? 'disabled' : '' }`"
72
72
  v-show="
73
73
  (enterprise ||
74
- (department &&
74
+ (selectType == departmentValueKey &&
75
75
  item[departmentLabelKey] == departmentValueKey)) &&
76
76
  !showTree
77
77
  "
@@ -82,7 +82,7 @@
82
82
  :class="`iconfont icon-quan select-icon ${isDisabled(item) ? 'disabled' : '' }`"
83
83
  v-show="
84
84
  (enterprise ||
85
- (department &&
85
+ (selectType == departmentValueKey &&
86
86
  item[departmentLabelKey] == departmentValueKey)) &&
87
87
  !showTree
88
88
  "
@@ -184,7 +184,7 @@
184
184
  item.attr &&
185
185
  (!item.nocheck ||
186
186
  enterprise ||
187
- (department &&
187
+ (selectType == departmentValueKey &&
188
188
  item[departmentLabelKey] == departmentValueKey)) &&
189
189
  !showTree &&
190
190
  inputSearch &&
@@ -197,7 +197,7 @@
197
197
  v-if="
198
198
  (!item.nocheck ||
199
199
  enterprise ||
200
- (department &&
200
+ (selectType == departmentValueKey &&
201
201
  item[departmentLabelKey] == departmentValueKey)) &&
202
202
  !showTree
203
203
  "
package/src/config/api.js CHANGED
@@ -29,7 +29,8 @@ export const taskHandleHtmlImg =
29
29
  pending + '/task/taskHandle/taskHandleWithHandwrittenOpinion.dhtml';
30
30
  // 发起流程
31
31
  // export const registerNew = '/api/v1/mecpItask/registerNew.json';
32
- export const registerNew = '/bpm/v1/mecpItask/registerNew.json';
32
+ // export const registerNew = '/bpm/v1/mecpItask/registerNew.json';
33
+ export const registerNew = '/bpm/task/taskHandle/startFlow.dhtml';
33
34
 
34
35
  // 获取节点信息(获取节点属性及办理人,发起)
35
36
  // export const getNodeInfo = '/api/mecp/v1/mecpItask/getNodeInfo.json';
@@ -113,3 +114,9 @@ export const getSysParam = '/api/v1/mecpSys/getSysParam.json';
113
114
  export const getFreeStartFlowParams = '/bpm/bpmBackend/getFreeStartFlowParams';
114
115
  // 获取发起流程列表
115
116
  export const getProcessDefList = '/bpm/v1/mecpItask/getProcessDefList.json';
117
+ // 阅转办提交流程
118
+ export const startReadTransferHandleFlowWithTaskReadEnd =
119
+ '/bpm/bpmBackend/startReadTransferHandleFlowWithTaskReadEnd';
120
+ // 自由发起流程提交
121
+ export const freeStartFlowWithSubmitTask =
122
+ '/bpm/bpmBackend/freeStartFlowWithSubmitTask';
package/src/index.js CHANGED
@@ -105,7 +105,7 @@ if (typeof window !== 'undefined' && window.Vue) {
105
105
  }
106
106
 
107
107
  export default {
108
- version: '0.3.12',
108
+ version: '0.3.14',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,