doway-coms 1.6.61 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.6.61",
3
+ "version": "1.6.62",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -38,7 +38,7 @@
38
38
  style="width: 85%;flex:3"
39
39
  :options="userList"
40
40
  size="small"
41
- :filter-option="true"
41
+ :filter-option="selectPinYin"
42
42
  ></a-select>
43
43
  </div>
44
44
  </div>
@@ -372,9 +372,8 @@ export default {
372
372
  userInfoSearchApi().then(res => {
373
373
  res.content.forEach(item => {
374
374
  this.userList.push({
375
- value: item.name,
375
+ value: item.id,
376
376
  label: item.name,
377
- code: item.id
378
377
  });
379
378
  });
380
379
  });
@@ -382,16 +381,9 @@ export default {
382
381
  },
383
382
  sendMsg() {
384
383
  let tmp = [];
385
- this.userList.forEach(uitem => {
386
- this.sendUser.forEach(sitem => {
387
- if (uitem.label === sitem) {
388
- tmp.push(uitem.code);
389
- }
390
- });
391
- });
392
384
  let postData = {
393
385
  content: this.remark,
394
- receiver: tmp.join(","),
386
+ receiver: this.sendUser.join(","),
395
387
  subject: this.topic,
396
388
  objectName: this.objectName,
397
389
  resId: this.resId
@@ -401,6 +393,22 @@ export default {
401
393
  this.sendUser = [];
402
394
  this.getMsgRemarkData();
403
395
  });
396
+ },
397
+ selectPinYin(input, option) {
398
+ if (input.charCodeAt() >= 32 && input.charCodeAt() <= 126) {
399
+ console.log(option.componentOptions.children[0].text.toLowerCase());
400
+ return (
401
+ option.componentOptions.children[0].text
402
+ .toLowerCase()
403
+ .indexOf(input.toLowerCase()) >= 0
404
+ );
405
+ } else {
406
+ return (
407
+ option.componentOptions.children[0].text
408
+ .toLowerCase()
409
+ .indexOf(input.toLowerCase()) >= 0
410
+ );
411
+ }
404
412
  }
405
413
  }
406
414
  };