eoss-mobiles 0.3.22 → 0.3.24

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/selector.js CHANGED
@@ -2261,8 +2261,8 @@ render._withStripped = true
2261
2261
 
2262
2262
  // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=17308961
2263
2263
 
2264
- // 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-tree.vue?vue&type=template&id=a36bef12
2265
- var selector_treevue_type_template_id_a36bef12_render = function () {
2264
+ // 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-tree.vue?vue&type=template&id=ffacb34a
2265
+ var selector_treevue_type_template_id_ffacb34a_render = function () {
2266
2266
  var _vm = this
2267
2267
  var _h = _vm.$createElement
2268
2268
  var _c = _vm._self._c || _h
@@ -2424,7 +2424,7 @@ var selector_treevue_type_template_id_a36bef12_render = function () {
2424
2424
  [
2425
2425
  _c("img", {
2426
2426
  attrs: {
2427
- src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAABXxJREFUWEfVWUtIHVcY/v7YjVGSaBpFTAQ3JooLpSg+qxSapF30kY2bVshakNgo1rcmPioxtQSyDqTdZJMmXbSaQtH6RClmEWJ0I8SEEK1PfGxqTvkOM8PM3JnrnauF+sMFvXPmzDff+c/3/+e7giMSckRw4kBAlVJ5AEoAvA/gOIDTxt98/78BrADYMf4eFZHpaImJCqhSqhBAPYDPAz74MYBeEZkIeF8wRpVS+QD6AJQGfZBr/AiAWhGZinSeiBhVSnFZmwwWYyKdfJ9xe2QXQJeIMD3Cxr5AlVJxAP4AQDZDYnd3FwsLC3j58iXevHmjP4yUlBT9SUtLQ3p6OmJjY/2A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oVD44HsWrGysqLBDg0N4d27d1Gxe+zYMZSXl2uQp0/T/HMEm18aESEWTzgDglbOsNsl2djY0BJzEAOC0nby5Ek3SLolZX7WTiSWDo0Ih1tit3QmJye1iPMFvIKAWBwKCgrCWTp0SWg8BLd0zIf6uSbmdR7WeMCjQeFlktFg4MGOh0Gf8HVH7OP3dfOMzUUfignODXaYtmMPgG4vC8f9UhEBtbH7/zZy3W9nGBXfAvgs4Nb/BcB3/7k17gGYDPPHBupMuB8b+KMDf2yI2Ao/0NIHZO9QhwfK0UN9csDJ/gXzxuhJ8IbhCwAAAABJRU5ErkJggg==",
2428
2428
  },
2429
2429
  }),
2430
2430
  ]
@@ -2442,14 +2442,14 @@ var selector_treevue_type_template_id_a36bef12_render = function () {
2442
2442
  1
2443
2443
  )
2444
2444
  }
2445
- var selector_treevue_type_template_id_a36bef12_staticRenderFns = []
2446
- selector_treevue_type_template_id_a36bef12_render._withStripped = true
2445
+ var selector_treevue_type_template_id_ffacb34a_staticRenderFns = []
2446
+ selector_treevue_type_template_id_ffacb34a_render._withStripped = true
2447
2447
 
2448
2448
 
2449
- // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=a36bef12
2449
+ // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=ffacb34a
2450
2450
 
2451
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=template&id=4c8a9869
2452
- var treevue_type_template_id_4c8a9869_render = function () {
2451
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=template&id=d9c99060
2452
+ var treevue_type_template_id_d9c99060_render = function () {
2453
2453
  var _vm = this
2454
2454
  var _h = _vm.$createElement
2455
2455
  var _c = _vm._self._c || _h
@@ -2781,11 +2781,6 @@ var treevue_type_template_id_4c8a9869_render = function () {
2781
2781
  "\n " +
2782
2782
  _vm._s(
2783
2783
  item.attr &&
2784
- (!item.nocheck ||
2785
- _vm.enterprise ||
2786
- (_vm.selectType == _vm.departmentValueKey &&
2787
- item[_vm.departmentLabelKey] ==
2788
- _vm.departmentValueKey)) &&
2789
2784
  !_vm.showTree &&
2790
2785
  _vm.inputSearch &&
2791
2786
  _vm.selectType === "employee"
@@ -2844,11 +2839,11 @@ var treevue_type_template_id_4c8a9869_render = function () {
2844
2839
  0
2845
2840
  )
2846
2841
  }
2847
- var treevue_type_template_id_4c8a9869_staticRenderFns = []
2848
- treevue_type_template_id_4c8a9869_render._withStripped = true
2842
+ var treevue_type_template_id_d9c99060_staticRenderFns = []
2843
+ treevue_type_template_id_d9c99060_render._withStripped = true
2849
2844
 
2850
2845
 
2851
- // CONCATENATED MODULE: ./packages/selector/src/tree.vue?vue&type=template&id=4c8a9869
2846
+ // CONCATENATED MODULE: ./packages/selector/src/tree.vue?vue&type=template&id=d9c99060
2852
2847
 
2853
2848
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=script&lang=js
2854
2849
  //
@@ -3277,8 +3272,8 @@ var componentNormalizer = __webpack_require__(1);
3277
3272
 
3278
3273
  var component = Object(componentNormalizer["a" /* default */])(
3279
3274
  src_treevue_type_script_lang_js,
3280
- treevue_type_template_id_4c8a9869_render,
3281
- treevue_type_template_id_4c8a9869_staticRenderFns,
3275
+ treevue_type_template_id_d9c99060_render,
3276
+ treevue_type_template_id_d9c99060_staticRenderFns,
3282
3277
  false,
3283
3278
  null,
3284
3279
  null,
@@ -3301,6 +3296,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3301
3296
 
3302
3297
  var _props, _methods;
3303
3298
 
3299
+ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
3300
+
3304
3301
  //
3305
3302
  //
3306
3303
  //
@@ -3888,12 +3885,30 @@ var _props, _methods;
3888
3885
 
3889
3886
  methods: (_methods = {
3890
3887
  handleClick: function handleClick(index) {
3891
- this.selectIndex = index;
3892
- this.inputSearch = false;
3893
- this.getContent();
3888
+ var _this3 = this;
3889
+
3890
+ return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
3891
+ return regeneratorRuntime.wrap(function _callee$(_context) {
3892
+ while (1) {
3893
+ switch (_context.prev = _context.next) {
3894
+ case 0:
3895
+ _this3.selectIndex = index;
3896
+ _context.next = 3;
3897
+ return _this3.getContent();
3898
+
3899
+ case 3:
3900
+ _this3.inputSearch = false;
3901
+
3902
+ case 4:
3903
+ case 'end':
3904
+ return _context.stop();
3905
+ }
3906
+ }
3907
+ }, _callee, _this3);
3908
+ }))();
3894
3909
  },
3895
3910
  getNodeList: function getNodeList(isSearch) {
3896
- var _this3 = this;
3911
+ var _this4 = this;
3897
3912
 
3898
3913
  this.personnel = JSON.parse(JSON.stringify(this.nodeList));
3899
3914
  // !isSearch && (this.list = $.deepClone(this.selectList));
@@ -3920,7 +3935,7 @@ var _props, _methods;
3920
3935
  } else {
3921
3936
  _this.personnel.map(function (x) {
3922
3937
  if (x.children && x.children.length > 0) {
3923
- _this3.setChecked(x.children);
3938
+ _this4.setChecked(x.children);
3924
3939
  } else {
3925
3940
  _this.$set(x, 'checked', false);
3926
3941
  }
@@ -3938,13 +3953,13 @@ var _props, _methods;
3938
3953
  });
3939
3954
  },
3940
3955
  setChecked: function setChecked(list) {
3941
- var _this4 = this;
3956
+ var _this5 = this;
3942
3957
 
3943
3958
  list.map(function (x) {
3944
3959
  if (x.children && x.children.length > 0) {
3945
- _this4.setChecked(x.children);
3960
+ _this5.setChecked(x.children);
3946
3961
  } else {
3947
- _this4.$set(x, 'checked', false);
3962
+ _this5.$set(x, 'checked', false);
3948
3963
  }
3949
3964
  });
3950
3965
  },
@@ -3984,21 +3999,41 @@ var _props, _methods;
3984
3999
  * @author liufan
3985
4000
  */
3986
4001
  onSearch: function onSearch() {
3987
- var _this5 = this;
4002
+ var _this6 = this;
3988
4003
 
3989
4004
  if (this.timer != null) {
3990
4005
  clearTimeout(this.timer);
3991
4006
  }
3992
- this.timer = setTimeout(function () {
3993
- if (_this5.$listeners.search) {
3994
- _this5.oldIsSearch = _this5.isSearch;
3995
- _this5.isSearch = !_this5.isSearch;
3996
- _this5.$emit('search', _this5.namelike);
3997
- } else {
3998
- _this5.inputSearch = true;
3999
- _this5.getContent();
4000
- }
4001
- }, 1000);
4007
+ this.timer = setTimeout(_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
4008
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
4009
+ while (1) {
4010
+ switch (_context2.prev = _context2.next) {
4011
+ case 0:
4012
+ if (!_this6.$listeners.search) {
4013
+ _context2.next = 6;
4014
+ break;
4015
+ }
4016
+
4017
+ _this6.oldIsSearch = _this6.isSearch;
4018
+ _this6.isSearch = !_this6.isSearch;
4019
+ _this6.$emit('search', _this6.namelike);
4020
+ _context2.next = 9;
4021
+ break;
4022
+
4023
+ case 6:
4024
+ _context2.next = 8;
4025
+ return _this6.getContent();
4026
+
4027
+ case 8:
4028
+ _this6.inputSearch = !!_this6.namelike.trim();
4029
+
4030
+ case 9:
4031
+ case 'end':
4032
+ return _context2.stop();
4033
+ }
4034
+ }
4035
+ }, _callee2, _this6);
4036
+ })), 1000);
4002
4037
  },
4003
4038
 
4004
4039
  /**
@@ -4008,7 +4043,7 @@ var _props, _methods;
4008
4043
  * @author liufan
4009
4044
  */
4010
4045
  getContent: function getContent(name) {
4011
- var _this6 = this;
4046
+ var _this7 = this;
4012
4047
 
4013
4048
  if (name) {
4014
4049
  this.label = name;
@@ -4032,7 +4067,7 @@ var _props, _methods;
4032
4067
  }
4033
4068
  delete this.newParam.department;
4034
4069
  delete this.newParam.myemployee;
4035
- Object(http["a" /* default */])({
4070
+ return Object(http["a" /* default */])({
4036
4071
  url: this.url ? this.url : this.baseUrl ? this.baseUrl + api["x" /* selectObject */] : api["x" /* selectObject */],
4037
4072
  params: _extends({
4038
4073
  objType: this.objType,
@@ -4041,45 +4076,40 @@ var _props, _methods;
4041
4076
  filid: this.filid
4042
4077
  }, this.newParam)
4043
4078
  }).then(function (res) {
4044
- _this6.$toast.clear();
4079
+ _this7.$toast.clear();
4045
4080
  var rCode = res.rCode,
4046
4081
  msg = res.msg;
4047
4082
 
4048
4083
  if (rCode == 0) {
4049
- if (_this6.inputSearch && !_this6.namelike) {
4050
- _this6.inputSearch = false;
4051
- } else if (_this6.namelike.trim()) {
4052
- _this6.inputSearch = true;
4053
- }
4054
- if (typeof _this6.selectList == 'string') {
4055
- _this6.selectData = [];
4056
- _this6.list = _this6.getSelectData(JSON.parse(JSON.stringify(res.results)));
4057
- _this6.$emit('update:selectList', _this6.list);
4084
+ if (typeof _this7.selectList == 'string') {
4085
+ _this7.selectData = [];
4086
+ _this7.list = _this7.getSelectData(JSON.parse(JSON.stringify(res.results)));
4087
+ _this7.$emit('update:selectList', _this7.list);
4058
4088
  }
4059
- _this6.personnel = JSON.parse(JSON.stringify(res.results));
4060
- var _this = _this6;
4061
- _this6.list.filter(function (r) {
4089
+ _this7.personnel = JSON.parse(JSON.stringify(res.results));
4090
+ var _this = _this7;
4091
+ _this7.list.filter(function (r) {
4062
4092
  _this.personnel.find(function (i) {
4063
4093
  if (i[_this.valueKey] === r[_this.valueKey]) {
4064
4094
  _this.$set(i, 'checked', true);
4065
4095
  }
4066
4096
  });
4067
4097
  });
4068
- _this6.genre = JSON.parse(JSON.stringify(res.results));
4098
+ _this7.genre = JSON.parse(JSON.stringify(res.results));
4069
4099
  } else {
4070
- _this6.$toast(msg);
4100
+ _this7.$toast(msg);
4071
4101
  }
4072
4102
  });
4073
4103
  },
4074
4104
  getSelectData: function getSelectData(data) {
4075
- var _this7 = this;
4105
+ var _this8 = this;
4076
4106
 
4077
4107
  var _this = this;
4078
4108
  var user = this.selectList.split(',');
4079
4109
  user.map(function (x) {
4080
4110
  data.map(function (i) {
4081
4111
  if (i[_this.valueKey] == x) {
4082
- _this7.selectData.push(i);
4112
+ _this8.selectData.push(i);
4083
4113
  } else if (i.children) {
4084
4114
  _this.getSelectData(i.children);
4085
4115
  }
@@ -4088,7 +4118,7 @@ var _props, _methods;
4088
4118
  return this.selectData;
4089
4119
  },
4090
4120
  getData: function getData(obj) {
4091
- var _this8 = this;
4121
+ var _this9 = this;
4092
4122
 
4093
4123
  var params = _extends({}, this.newParam, {
4094
4124
  pid: obj[this.valueKey],
@@ -4107,7 +4137,7 @@ var _props, _methods;
4107
4137
  params: params
4108
4138
  }).then(function (res) {
4109
4139
  if (res.rCode == 0) {
4110
- if (res.results.length > 0 && res.results[0].nocheck == false && _this8.isAllCheck && _this8.multiple) {
4140
+ if (res.results.length > 0 && res.results[0].nocheck == false && _this9.isAllCheck && _this9.multiple) {
4111
4141
  res.results.unshift({
4112
4142
  showshortname: '全选',
4113
4143
  checked: false,
@@ -4116,16 +4146,16 @@ var _props, _methods;
4116
4146
  parentshowid: res.results[0].parentshowid
4117
4147
  });
4118
4148
  }
4119
- _this8.$set(obj, 'children', res.results);
4120
- var _this = _this8;
4121
- _this8.list.filter(function (r) {
4149
+ _this9.$set(obj, 'children', res.results);
4150
+ var _this = _this9;
4151
+ _this9.list.filter(function (r) {
4122
4152
  obj.children.find(function (i) {
4123
4153
  if (i[_this.valueKey] === r[_this.valueKey]) {
4124
4154
  _this.$set(i, 'checked', true);
4125
4155
  }
4126
4156
  });
4127
4157
  });
4128
- if (_this8.isAllCheck && _this8.multiple && obj.children.length > 0) {
4158
+ if (_this9.isAllCheck && _this9.multiple && obj.children.length > 0) {
4129
4159
  var checkList = obj.children.slice(1, obj.children.length).filter(function (x) {
4130
4160
  return x.checked;
4131
4161
  });
@@ -4134,11 +4164,11 @@ var _props, _methods;
4134
4164
  }
4135
4165
  }
4136
4166
  }
4137
- _this8.$toast.clear();
4167
+ _this9.$toast.clear();
4138
4168
  });
4139
4169
  },
4140
4170
  getChiled: function getChiled(res, isStart, key) {
4141
- var _this9 = this;
4171
+ var _this10 = this;
4142
4172
 
4143
4173
  var _that = this;
4144
4174
  var data = [];
@@ -4181,9 +4211,9 @@ var _props, _methods;
4181
4211
  _that.$set(i, 'checked', false);
4182
4212
  });
4183
4213
  }
4184
- _this9.$toast.clear();
4214
+ _this10.$toast.clear();
4185
4215
  }).catch(function (err) {
4186
- _this9.$toast('数据返回错误');
4216
+ _this10.$toast('数据返回错误');
4187
4217
  });
4188
4218
  } else {
4189
4219
  data.map(function (x) {
@@ -4244,7 +4274,7 @@ var _props, _methods;
4244
4274
  }
4245
4275
  },
4246
4276
  checked: function checked(res, model) {
4247
- var _this10 = this;
4277
+ var _this11 = this;
4248
4278
 
4249
4279
  this.oldIsSearch = this.isSearch;
4250
4280
  if (!res.obj.mixType) {
@@ -4253,12 +4283,12 @@ var _props, _methods;
4253
4283
  if (res.obj.checked) {
4254
4284
  if (res.obj.isAllCheck) {
4255
4285
  model.map(function (x) {
4256
- for (var i in _this10.list) {
4257
- if (_this10.list[i][_this10.valueKey] == x[_this10.valueKey]) {
4258
- _this10.list.splice(i, 1);
4286
+ for (var i in _this11.list) {
4287
+ if (_this11.list[i][_this11.valueKey] == x[_this11.valueKey]) {
4288
+ _this11.list.splice(i, 1);
4259
4289
  }
4260
4290
  }
4261
- _this10.$set(x, 'checked', false);
4291
+ _this11.$set(x, 'checked', false);
4262
4292
  });
4263
4293
  } else {
4264
4294
  for (var i in this.list) {
@@ -4278,8 +4308,8 @@ var _props, _methods;
4278
4308
 
4279
4309
  var selectData = [];
4280
4310
  model.map(function (x) {
4281
- if (!x.disabled && !x.nocheck && !x.isAllCheck) {
4282
- _this10.$set(x, 'checked', true);
4311
+ if (!x.disabled && !x.nocheck && !x.isAllCheck && x.selecttype == _this11.newParam.selecttype) {
4312
+ _this11.$set(x, 'checked', true);
4283
4313
  selectData.push(x);
4284
4314
  }
4285
4315
  });
@@ -4303,10 +4333,13 @@ var _props, _methods;
4303
4333
  obj[next.showid] ? '' : obj[next.showid] = true && item.push(next);
4304
4334
  return item;
4305
4335
  }, []);
4306
- if (model.length - 1 === checkList.length) {
4336
+ var newArr = model.filter(function (x) {
4337
+ return !x.disabled && !x.nocheck && x.selecttype == _this11.newParam.selecttype;
4338
+ });
4339
+ if (newArr.length === checkList.length) {
4307
4340
  model.map(function (x) {
4308
4341
  if (!x.disabled) {
4309
- _this10.$set(model[0], 'checked', true);
4342
+ _this11.$set(model[0], 'checked', true);
4310
4343
  }
4311
4344
  });
4312
4345
  } else {
@@ -4315,16 +4348,16 @@ var _props, _methods;
4315
4348
  }
4316
4349
  }
4317
4350
  }, _methods['setChecked'] = function setChecked(data, item) {
4318
- var _this11 = this;
4351
+ var _this12 = this;
4319
4352
 
4320
4353
  data.map(function (x) {
4321
- if (x[_this11.valueKey] === item[_this11.valueKey]) {
4322
- _this11.$set(x, 'checked', true);
4354
+ if (x[_this12.valueKey] === item[_this12.valueKey]) {
4355
+ _this12.$set(x, 'checked', true);
4323
4356
  } else {
4324
- _this11.$set(x, 'checked', false);
4357
+ _this12.$set(x, 'checked', false);
4325
4358
  }
4326
4359
  if (x.children) {
4327
- _this11.setChecked(x.children, item);
4360
+ _this12.setChecked(x.children, item);
4328
4361
  }
4329
4362
  });
4330
4363
  }, _methods.dispose = function dispose() {
@@ -4351,8 +4384,8 @@ var _props, _methods;
4351
4384
 
4352
4385
  var selector_tree_component = Object(componentNormalizer["a" /* default */])(
4353
4386
  src_selector_treevue_type_script_lang_js,
4354
- selector_treevue_type_template_id_a36bef12_render,
4355
- selector_treevue_type_template_id_a36bef12_staticRenderFns,
4387
+ selector_treevue_type_template_id_ffacb34a_render,
4388
+ selector_treevue_type_template_id_ffacb34a_staticRenderFns,
4356
4389
  false,
4357
4390
  null,
4358
4391
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-mobiles",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -638,14 +638,14 @@ export default {
638
638
  request({
639
639
  url: _that.apiBaseUrl ? _that.apiBaseUrl + getNodeInfo : getNodeInfo,
640
640
  params: {
641
- // params: {
641
+ params: {
642
642
  processDefinitionId: this.processObj.processDefinitionId,
643
643
  nextNodeId: res,
644
644
  businessId: this.processObj.businessId,
645
645
  // taskId: this.processObj.taskId,
646
646
  pendingId: this.processObj.pendingId,
647
647
  userId: _that.userId
648
- // }
648
+ }
649
649
  }
650
650
  }).then((res) => {
651
651
  this.$toast.clear();
@@ -16,8 +16,10 @@
16
16
  @onInputMsg="onInputMsg"
17
17
  ></Message>
18
18
  <em-flow-list
19
+ v-if="showFlowList"
19
20
  style="flex: 1; overflow-y: auto"
20
21
  type="4"
22
+ :data="flowList"
21
23
  ref="flowList"
22
24
  businessId="7358f2ba425d49018e13386eb987cd45"
23
25
  :show-btn="false"
@@ -46,8 +48,10 @@ export default {
46
48
  data() {
47
49
  return {
48
50
  form: {
49
- title: '123'
50
- }
51
+ title: '',
52
+ },
53
+ flowList:[],
54
+ showFlowList:false,
51
55
  };
52
56
  },
53
57
  mounted() {
@@ -55,26 +59,21 @@ export default {
55
59
  },
56
60
  methods: {
57
61
  onSubmit() {
58
- console.log('点击了提交');
59
62
  let selectInfo = this.$refs.flowList.$children[0].selectedData;
60
63
  if(selectInfo.length == 0) return this.$toast('请选择需要督办的流程');
61
- console.log(selectInfo)
62
- return;
63
- if (!this.form.notificationMsg) {
64
- this.$toast('请填写通知消息内容');
65
- return;
66
- }
64
+
67
65
  let { noticeType, notificationMsg, pendingUserIds } = this.form;
68
66
  let params = {
69
67
  url: toTaskSuperviseSub,
70
68
  params: {
71
69
  userId: util.getStorage('userId'),
72
- urgeUserIds: pendingUserIds,
73
- notificationType: noticeType,
70
+ urgeUserIds: selectInfo.map(item=>item.userid).join(','),
71
+ notificationType: Array.isArray(noticeType) ? noticeType.join(',') : noticeType,
74
72
  notificationMessage: notificationMsg,
75
73
  businessId: this.businessId
76
74
  }
77
75
  };
76
+
78
77
  this.$toast.loading({
79
78
  duration: 0,
80
79
  forbidClick: true,
@@ -83,7 +82,7 @@ export default {
83
82
  request(params).then((res) => {
84
83
  this.$toast.clear();
85
84
  if (res.rCode == 0 || res.status == 'success') {
86
- this.$toast('提交成功');
85
+ this.$toast('发送成功');
87
86
  this.$parent.$emit('success');
88
87
  } else {
89
88
  this.$message.error(res.message || '系统错误,请联系管理员!');
@@ -109,7 +108,10 @@ export default {
109
108
  this.$toast.clear();
110
109
  if (res.rCode == 0) {
111
110
  this.form = res.results;
112
- this.form.noticeType = res.results.defaultNotificationType.split(',');
111
+ this.form.notificationMsg = res.results.notifyMessage
112
+ this.flowList = res.results.taskSuperviseHistories;
113
+ this.form.noticeType = res.results.fixedNotificationType.split(',');
114
+ this.showFlowList = true;
113
115
  } else {
114
116
  this.$toast(res.msg);
115
117
  this.goBack();
@@ -3,7 +3,7 @@
3
3
  class="em-flow-list"
4
4
  :style="`background:${type == '3' ? 'unset' : '#fff'}`"
5
5
  >
6
- <TaskRead v-if="type == '3' || type == '4'" :businessId="businessId" :type="type" v-bind="$attrs" />
6
+ <TaskRead v-if="type == '3' || type == '4'" :businessId="businessId" :type="type" :data="data" v-bind="$attrs" />
7
7
  <div v-else-if="isgw && processList.length > 0" class="list">
8
8
  <div
9
9
  v-for="(item, index) in processList"
@@ -222,7 +222,6 @@ export default {
222
222
  immediate: true
223
223
  }
224
224
  },
225
- methods: {},
226
225
  methods: {
227
226
  getFlowList(apprecordId) {
228
227
  request({
@@ -29,7 +29,7 @@
29
29
  <p class="name-area">
30
30
  <span class="handle-name-flow">{{ item.userName }}</span>
31
31
  <span class="user-name-flow">{{ item.itemname }}</span>
32
- <span :class="`handle-status ${item.pendstate == 1?'success' : ''}`">{{ item.querykeywords }}</span>
32
+ <span :class="`handle-status ${item.pendstate == 1?'success' : ''}`">{{ getTagValue(item.pendstate) }}</span>
33
33
  </p>
34
34
  <p class="time">{{ item.createtime }}</p>
35
35
  </van-checkbox>
@@ -123,6 +123,10 @@ export default {
123
123
  showBtn:{
124
124
  type: Boolean,
125
125
  default: true
126
+ },
127
+ data: {
128
+ type: Array,
129
+ default: () => []
126
130
  }
127
131
  },
128
132
  data() {
@@ -136,6 +140,10 @@ export default {
136
140
  };
137
141
  },
138
142
  mounted() {
143
+ if(this.data.length>0){
144
+ this.handleUserList = this.data;
145
+ return
146
+ }
139
147
  if (this.type == 3) {
140
148
  this.getReadData(1);
141
149
  this.getReadData(2);
@@ -144,6 +152,28 @@ export default {
144
152
  }
145
153
  },
146
154
  methods: {
155
+ getTagValue(type){
156
+ switch (type) {
157
+ case -1:
158
+ return '预备';
159
+ case 0:
160
+ return '未签收';
161
+ case 1:
162
+ return '未办理';
163
+ case 2:
164
+ return '已办理';
165
+ case 3:
166
+ return '驳回';
167
+ case 4:
168
+ return '撤回';
169
+ case 5:
170
+ return '串行会签预备';
171
+ case 6:
172
+ return '自动办理';
173
+ default:
174
+ return '';
175
+ }
176
+ },
147
177
  getpendedhistoryList() {
148
178
  request({
149
179
  url: pendedhistoryList,
@@ -212,7 +242,6 @@ export default {
212
242
  this.$parent.$emit('close');
213
243
  },
214
244
  handleSelectChange(val) {
215
- console.log(val,'点击了')
216
245
  this.selectedData = this.handleUserList.filter(x => val.includes(x.id))
217
246
  if (this.selectedIds.length === this.handleUserList.length) {
218
247
  this.isSelectAll = true;