eoss-mobiles 0.2.61 → 0.2.62

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
@@ -4000,8 +4000,8 @@ var selector_tree_component = Object(componentNormalizer["a" /* default */])(
4000
4000
  )
4001
4001
 
4002
4002
  /* harmony default export */ var selector_tree = (selector_tree_component.exports);
4003
- // 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-field.vue?vue&type=template&id=75a060f2&
4004
- var selector_fieldvue_type_template_id_75a060f2_render = function () {
4003
+ // 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-field.vue?vue&type=template&id=eed3d698&
4004
+ var selector_fieldvue_type_template_id_eed3d698_render = function () {
4005
4005
  var _vm = this
4006
4006
  var _h = _vm.$createElement
4007
4007
  var _c = _vm._self._c || _h
@@ -4059,7 +4059,7 @@ var selector_fieldvue_type_template_id_75a060f2_render = function () {
4059
4059
  direction: "horizontal",
4060
4060
  },
4061
4061
  on: {
4062
- change: function ($event) {
4062
+ click: function ($event) {
4063
4063
  _vm.handleChange($event, item)
4064
4064
  },
4065
4065
  },
@@ -4164,11 +4164,11 @@ var selector_fieldvue_type_template_id_75a060f2_render = function () {
4164
4164
  1
4165
4165
  )
4166
4166
  }
4167
- var selector_fieldvue_type_template_id_75a060f2_staticRenderFns = []
4168
- selector_fieldvue_type_template_id_75a060f2_render._withStripped = true
4167
+ var selector_fieldvue_type_template_id_eed3d698_staticRenderFns = []
4168
+ selector_fieldvue_type_template_id_eed3d698_render._withStripped = true
4169
4169
 
4170
4170
 
4171
- // CONCATENATED MODULE: ./packages/selector/src/selector-field.vue?vue&type=template&id=75a060f2&
4171
+ // CONCATENATED MODULE: ./packages/selector/src/selector-field.vue?vue&type=template&id=eed3d698&
4172
4172
 
4173
4173
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-field.vue?vue&type=script&lang=js&
4174
4174
  //
@@ -4355,6 +4355,7 @@ selector_fieldvue_type_template_id_75a060f2_render._withStripped = true
4355
4355
  }, []);
4356
4356
  },
4357
4357
  handleChange: function handleChange(val, info) {
4358
+ console.log('点击了');
4358
4359
  var _this = this;
4359
4360
  if (_this.multiple) {
4360
4361
  if (info.checked) {
@@ -4428,8 +4429,8 @@ selector_fieldvue_type_template_id_75a060f2_render._withStripped = true
4428
4429
 
4429
4430
  var selector_field_component = Object(componentNormalizer["a" /* default */])(
4430
4431
  src_selector_fieldvue_type_script_lang_js_,
4431
- selector_fieldvue_type_template_id_75a060f2_render,
4432
- selector_fieldvue_type_template_id_75a060f2_staticRenderFns,
4432
+ selector_fieldvue_type_template_id_eed3d698_render,
4433
+ selector_fieldvue_type_template_id_eed3d698_staticRenderFns,
4433
4434
  false,
4434
4435
  null,
4435
4436
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-mobiles",
3
- "version": "0.2.61",
3
+ "version": "0.2.62",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -32,9 +32,9 @@
32
32
  v-model="newValue"
33
33
  v-on="$listeners"
34
34
  :checked-color="checkedColor"
35
- :disabled="item.disabled"
35
+ :disabled="disabled"
36
36
  :name="$attrs[valueKey]"
37
- >{{ $attrs[labelKey] }}
37
+ >{{ $attrs.name }}
38
38
  </van-checkbox>
39
39
  </div>
40
40
  </template>
@@ -117,7 +117,7 @@ import request from '../../../../src/utils/http.js';
117
117
  import Opinion from './Opinion.vue';
118
118
  import Message from './Message.vue';
119
119
  import { Dialog } from 'eoss-mobile-vant';
120
- import $ from '../../../../src/utils/util'
120
+ import $ from '../../../../src/utils/util';
121
121
  export default {
122
122
  name: 'StartFlow',
123
123
  inheritAttrs: false,
@@ -137,17 +137,17 @@ export default {
137
137
  type: [String, Number],
138
138
  default: 0
139
139
  },
140
- isAllCheck:{
141
- type:Boolean,
142
- default:false
140
+ isAllCheck: {
141
+ type: Boolean,
142
+ default: false
143
143
  },
144
144
  esign: {
145
145
  type: Boolean,
146
146
  default: false
147
147
  },
148
- userId:{
149
- type:String,
150
- default:''
148
+ userId: {
149
+ type: String,
150
+ default: ''
151
151
  }
152
152
  },
153
153
  data() {
@@ -287,7 +287,7 @@ export default {
287
287
  nodeId: this.form.nodeId,
288
288
  notificationMsg: this.form.notificationMsg,
289
289
  loginType: 2, //登录方式
290
- isImageOpinion:this.form.isImageOpinion,
290
+ isImageOpinion: this.form.isImageOpinion,
291
291
  userId: this.userId || $.getStorage('userId')
292
292
  };
293
293
  if (this.beforeSubmit) {
@@ -315,7 +315,7 @@ export default {
315
315
  url: _that.apiBaseUrl ? _that.apiBaseUrl + registerNew : registerNew,
316
316
  type: 'post',
317
317
  params: info,
318
- format:false
318
+ format: false
319
319
  }).then(res => {
320
320
  this.$toast.clear();
321
321
  if (res.rCode == 0) {
@@ -415,7 +415,7 @@ export default {
415
415
  return new Promise(function(resolve, reiect) {
416
416
  request({
417
417
  url: that.apiBaseUrl ? that.apiBaseUrl + toStartFlow : toStartFlow,
418
- params: {...res,userId:that.userId}
418
+ params: { ...res, userId: that.userId || $.getStorage('userId') }
419
419
  }).then(res => {
420
420
  if (res.rCode == 0) {
421
421
  res.results.nodeExtr.submitTipsMsg &&
@@ -447,6 +447,11 @@ export default {
447
447
  that.form.nextNodeName = that.nextList[0].list[0].nodeName;
448
448
  that.nextList[0].list[0].transactorInfos &&
449
449
  (that.nextUserList = that.nextList[0].list[0].transactorInfos);
450
+ if (that.nextUserList) {
451
+ that.nextUserList.map(x => {
452
+ x.checked = false;
453
+ });
454
+ }
450
455
  that.form.notificationMsg = res.results.notificationMsg;
451
456
  that.form.nodeId = res.results.nodeId;
452
457
  let defaultNotificationTypes = [];
@@ -496,7 +501,26 @@ export default {
496
501
  }
497
502
  });
498
503
  this.form.nextUserId = idStr;
499
- this.nextUserSelectList = list.filter(x => x.showname && x.showid);
504
+ if (res.results.nodeExtr) {
505
+ if (
506
+ res.results.nodeExtr.isDefSelectedObj == 1 &&
507
+ this.nextUserList.length > 0
508
+ ) {
509
+ this.nextUserList[0].checked = true;
510
+ this.nextUserSelectList = [this.nextUserList[0]];
511
+ }
512
+ if (
513
+ res.results.nodeExtr.isSelectedAllObj == 1 &&
514
+ this.nextUserList.length > 0
515
+ ) {
516
+ this.nextUserSelectList = []
517
+ this.nextUserList.map(x => {
518
+ x.checked = true
519
+ this.nextUserSelectList.push(x)
520
+ });
521
+ }
522
+ }
523
+ // this.nextUserSelectList = list.filter(x => x.showname && x.showid);
500
524
  this.getTreeChangeType();
501
525
  }
502
526
  } else {
@@ -24,7 +24,7 @@
24
24
  v-model="item.checked"
25
25
  :name="item.name"
26
26
  direction="horizontal"
27
- @change="handleChange($event, item)"
27
+ @click="handleChange($event, item)"
28
28
  />
29
29
  </div>
30
30
 
@@ -182,6 +182,7 @@ export default {
182
182
  }, []);
183
183
  },
184
184
  handleChange(val, info) {
185
+ console.log('点击了');
185
186
  const _this = this;
186
187
  if (_this.multiple) {
187
188
  if (info.checked) {
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.2.61',
108
+ version: '0.2.62',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,