doway-coms 1.6.61 → 1.6.63

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.63",
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>
@@ -352,7 +352,6 @@ export default {
352
352
  body: this.remark,
353
353
  objectCommentAttachIds: this.attachment
354
354
  };
355
- console.log(this.fileList);
356
355
  addObjectCommentApi(postData).then(res => {
357
356
  this.remark = "";
358
357
  this.attachment = [];
@@ -372,26 +371,17 @@ export default {
372
371
  userInfoSearchApi().then(res => {
373
372
  res.content.forEach(item => {
374
373
  this.userList.push({
375
- value: item.name,
374
+ value: item.id,
376
375
  label: item.name,
377
- code: item.id
378
376
  });
379
377
  });
380
378
  });
381
- console.log(this.userList);
382
379
  },
383
380
  sendMsg() {
384
381
  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
382
  let postData = {
393
383
  content: this.remark,
394
- receiver: tmp.join(","),
384
+ receiver: this.sendUser.join(","),
395
385
  subject: this.topic,
396
386
  objectName: this.objectName,
397
387
  resId: this.resId
@@ -401,6 +391,21 @@ export default {
401
391
  this.sendUser = [];
402
392
  this.getMsgRemarkData();
403
393
  });
394
+ },
395
+ selectPinYin(input, option) {
396
+ if (input.charCodeAt() >= 32 && input.charCodeAt() <= 126) {
397
+ return (
398
+ option.componentOptions.children[0].text
399
+ .toLowerCase()
400
+ .indexOf(input.toLowerCase()) >= 0
401
+ );
402
+ } else {
403
+ return (
404
+ option.componentOptions.children[0].text
405
+ .toLowerCase()
406
+ .indexOf(input.toLowerCase()) >= 0
407
+ );
408
+ }
404
409
  }
405
410
  }
406
411
  };