doway-coms 1.6.60 → 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.60",
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>
@@ -174,7 +174,7 @@ import {
174
174
  export default {
175
175
  name: "LeaveAMessage",
176
176
  props: {
177
- orderNum: {
177
+ topic: {
178
178
  type: String
179
179
  },
180
180
  modalHeight: {
@@ -249,7 +249,6 @@ export default {
249
249
  uploadHeaders: {
250
250
  Authorization: null
251
251
  },
252
- subject: "",
253
252
  sendUser: [],
254
253
  userList: [],
255
254
  remark: "",
@@ -373,9 +372,8 @@ export default {
373
372
  userInfoSearchApi().then(res => {
374
373
  res.content.forEach(item => {
375
374
  this.userList.push({
376
- value: item.name,
375
+ value: item.id,
377
376
  label: item.name,
378
- code: item.id
379
377
  });
380
378
  });
381
379
  });
@@ -383,17 +381,10 @@ export default {
383
381
  },
384
382
  sendMsg() {
385
383
  let tmp = [];
386
- this.userList.forEach(uitem => {
387
- this.sendUser.forEach(sitem => {
388
- if (uitem.label === sitem) {
389
- tmp.push(uitem.code);
390
- }
391
- });
392
- });
393
384
  let postData = {
394
385
  content: this.remark,
395
- receiver: tmp.join(","),
396
- subject: this.subject,
386
+ receiver: this.sendUser.join(","),
387
+ subject: this.topic,
397
388
  objectName: this.objectName,
398
389
  resId: this.resId
399
390
  };
@@ -402,6 +393,22 @@ export default {
402
393
  this.sendUser = [];
403
394
  this.getMsgRemarkData();
404
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
+ }
405
412
  }
406
413
  }
407
414
  };