eoss-mobiles 0.3.86 → 0.3.87

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.
@@ -17,6 +17,7 @@
17
17
  v-model="takeAdviceUser"
18
18
  :multiple="newMultiple"
19
19
  :isAllCheck="isAllCheck"
20
+ @selector-click="handleSelectorClick"
20
21
  isEnterprise
21
22
  :tabs="
22
23
  type == 'takeAdvice'
@@ -61,6 +62,7 @@
61
62
  v-model="nextOtherOrgObj"
62
63
  :multiple="newMultiple"
63
64
  :isAllCheck="isAllCheck"
65
+ @selector-click="handleSelectorClick"
64
66
  :mix="otherMix"
65
67
  :tabs="
66
68
  foreignOrgTabs.length > 0
@@ -90,7 +92,7 @@
90
92
  :pendingId="pendingId"
91
93
  @onInputMsg="onInputMsg"
92
94
  :defaultNotificationType="infoList.noticeType"
93
- ></Message>
95
+ ></Message>
94
96
  </div>
95
97
  </div>
96
98
  <div class="btn-list">
@@ -166,7 +168,7 @@ export default {
166
168
  currentOrgTabs: [],
167
169
  foreignOrgTabs: [],
168
170
  otherOrgDisabledObjId: [],
169
- showMessage:false,
171
+ showMessage: false,
170
172
  file: '',
171
173
  infoList: {
172
174
  nextOtherOrgObj: [],
@@ -188,12 +190,12 @@ export default {
188
190
  currentOrgName: '',
189
191
  otherOrgName: '',
190
192
  // newMultiple: true,
191
- params: { pid: 'root',},
193
+ params: { pid: 'root' },
192
194
 
193
195
  isHideOtherOrg: '',
194
196
  isHideCurrentOrg: 0,
195
197
  isOpinionRequired: 0,
196
- otherParams: { pid: 'root'}
198
+ otherParams: { pid: 'root' }
197
199
  };
198
200
  },
199
201
  components: { Opinion, Message },
@@ -204,16 +206,21 @@ export default {
204
206
  ? sessionStorage.getItem('pt') + 'px'
205
207
  : '30px'
206
208
  };
207
- this.otherParams.myUserid = this.params.myUserid = $.getStorage('userId') || this.userId || '';
208
- this.params.nofilid = this.otherParams.nofilid = this.orgId || JSON.parse($.getStorage('userInfo')).orgId || this.userId || '';
209
- if(this.type == 'takeAdvice'){
210
- this.params.only_filid=true
211
- this.params.onlyMyOrg=true
212
- }else{
213
- this.params = {...this.params,...this.selectorParams}
209
+ this.otherParams.myUserid = this.params.myUserid =
210
+ $.getStorage('userId') || this.userId || '';
211
+ this.params.nofilid = this.otherParams.nofilid =
212
+ this.orgId ||
213
+ JSON.parse($.getStorage('userInfo')).orgId ||
214
+ this.userId ||
215
+ '';
216
+ if (this.type == 'takeAdvice') {
217
+ this.params.only_filid = true;
218
+ this.params.onlyMyOrg = true;
219
+ } else {
220
+ this.params = { ...this.params, ...this.selectorParams };
214
221
  }
215
- this.params = {...this.params}
216
- this.otherParams = {...this.otherParams,...this.selectorParams}
222
+ this.params = { ...this.params };
223
+ this.otherParams = { ...this.otherParams, ...this.selectorParams };
217
224
  // this.newMultiple = this.multiple;
218
225
  if (this.type === 'taskReview') return this.getTaskReview();
219
226
  if (this.type === 'takeAdvice') return this.getIsCanStartSubFlow();
@@ -242,6 +249,9 @@ export default {
242
249
  }
243
250
  },
244
251
  methods: {
252
+ handleSelectorClick(val) {
253
+ this.$parent.$emit('selector-click', val);
254
+ },
245
255
  getuserInfo() {
246
256
  request({ url: findUserBaseInfo }).then((res) => {
247
257
  localStorage.setItem('userInfo', JSON.stringify(res.results));
@@ -283,8 +293,9 @@ export default {
283
293
  };
284
294
  request({ url: getNotificationMsg, params, methods: 'post' })
285
295
  .then((res) => {
286
- this.$toast.clear();http://localhost:8080/#/Selector
287
- if (res.status === 'success') {
296
+ this.$toast.clear();
297
+ //localhost:8080/#/Selector
298
+ http: if (res.status === 'success') {
288
299
  this.infoList.noticeInfo = res.message;
289
300
  }
290
301
  })
@@ -302,13 +313,13 @@ export default {
302
313
  const { status, message } = res;
303
314
  this.$toast.clear();
304
315
  if (status === 'success') {
305
- if(!this.hideMessage){
316
+ if (!this.hideMessage) {
306
317
  this.infoList.noticeType = message.split(',');
307
318
  }
308
319
  } else {
309
320
  this.$toast(message || '系统错误,请联系管理员!');
310
321
  }
311
- this.showMessage = true
322
+ this.showMessage = true;
312
323
  })
313
324
  .catch((err) => {
314
325
  this.loading = false;
@@ -320,12 +331,12 @@ export default {
320
331
  changeSelectUser(val, type) {
321
332
  const { list } = val;
322
333
  let newNextUser = [];
323
- let obj = {}
334
+ let obj = {};
324
335
  list.map((item) => {
325
- if(obj[item.mixType]){
326
- obj[item.mixType].push(item.showid)
327
- }else{
328
- obj[item.mixType] = [item.showid]
336
+ if (obj[item.mixType]) {
337
+ obj[item.mixType].push(item.showid);
338
+ } else {
339
+ obj[item.mixType] = [item.showid];
329
340
  }
330
341
  // if (newNextUser) {
331
342
  // newNextUser += `,${item.selecttype}-${item.showid}`;
@@ -333,8 +344,8 @@ export default {
333
344
  // newNextUser = `${item.selecttype}-${item.showid}`;
334
345
  // }
335
346
  });
336
- for(let key in obj){
337
- newNextUser.push(`${key}-${obj[key].join(',')}`)
347
+ for (let key in obj) {
348
+ newNextUser.push(`${key}-${obj[key].join(',')}`);
338
349
  }
339
350
  this.infoList[type] = newNextUser.join('|');
340
351
  this[type] = list;
@@ -426,8 +437,8 @@ export default {
426
437
  }
427
438
  } = res;
428
439
  res.data.otherOrgDisabledObjId &&
429
- (this.otherOrgDisabledObjId =
430
- res.data.otherOrgDisabledObjId.split(','));
440
+ (this.otherOrgDisabledObjId =
441
+ res.data.otherOrgDisabledObjId.split(','));
431
442
  this.notificationMessageReadOnly =
432
443
  notificationMessageReadOnly == 'true';
433
444
  this.readOnlyNotificationType = readOnlyNotificationType;
@@ -471,18 +482,16 @@ export default {
471
482
  pid:
472
483
  param[i] == 'my'
473
484
  ? (this.params.pid = JSON.parse(
474
- $.getStorage('userInfo')
485
+ $.getStorage('userInfo')
475
486
  ).orgId)
476
487
  : param[i],
477
- only_filid:true,
478
- onlyMyOrg:true
488
+ only_filid: true,
489
+ onlyMyOrg: true
479
490
  };
480
491
  });
481
492
  } else {
482
493
  if (this.type == 'takeAdvice') {
483
- this.params.pid = JSON.parse(
484
- $.getStorage('userInfo')
485
- ).orgId;
494
+ this.params.pid = JSON.parse($.getStorage('userInfo')).orgId;
486
495
  }
487
496
  }
488
497
  if (res.data.customizedConfig.foreignOrgSelectorCustomized) {
@@ -499,9 +508,9 @@ export default {
499
508
  // .split(',')
500
509
  // .map((x, i) => {
501
510
  // this.otherParams[x] = { pid: param[i] };
502
-
511
+
503
512
  // });
504
- }
513
+ }
505
514
  }
506
515
  this.getFind();
507
516
  this.getMessage();
@@ -521,7 +530,9 @@ export default {
521
530
  },
522
531
  // 通知消息回调
523
532
  onInputMsg(obj) {
524
- this.infoList.newNoticeType = JSON.parse(JSON.stringify(obj.notificationType));
533
+ this.infoList.newNoticeType = JSON.parse(
534
+ JSON.stringify(obj.notificationType)
535
+ );
525
536
  this.infoList.noticeInfo = obj.notificationMsg;
526
537
  },
527
538
  goBack() {
@@ -72,6 +72,10 @@ export default {
72
72
  showTree: {
73
73
  type: Boolean,
74
74
  default: false
75
+ },
76
+ isClosePopup: {
77
+ type: Boolean,
78
+ default: false
75
79
  }
76
80
  },
77
81
  data() {
@@ -82,13 +86,24 @@ export default {
82
86
  };
83
87
  },
84
88
  watch: {
89
+ isClosePopup: {
90
+ handler(val) {
91
+ if (this.showSelectorTree) {
92
+ this.showSelectorTree = false;
93
+ this.$emit('selector-click', this.showSelectorTree);
94
+ }
95
+ },
96
+ deep: true,
97
+ immediate: true
98
+ },
85
99
  value: {
86
100
  handler(val) {
87
101
  this.selectList = val;
88
102
  if (this.selectList.length > 0) {
89
- this.inputValue = this.selectList[0][
90
- this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
91
- ];
103
+ this.inputValue =
104
+ this.selectList[0][
105
+ this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
106
+ ];
92
107
  } else {
93
108
  this.inputValue = '';
94
109
  }
@@ -118,6 +133,7 @@ export default {
118
133
  handleSelector() {
119
134
  if (this.$attrs.disabled || this.$attrs.readonly) return;
120
135
  this.showSelectorTree = !this.showSelectorTree;
136
+ this.$emit('selector-click', this.showSelectorTree);
121
137
  },
122
138
  /**
123
139
  * handleDispose
@@ -141,6 +157,7 @@ export default {
141
157
  }
142
158
  }
143
159
  this.showSelectorTree = false;
160
+ this.$emit('selector-click', this.showSelectorTree);
144
161
  },
145
162
  /**
146
163
  * handleChangeSel
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.86',
108
+ version: '0.3.87',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,