doway-coms 1.6.59 → 1.6.60

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.59",
3
+ "version": "1.6.60",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -33,11 +33,12 @@
33
33
  <div style="flex:1">发送给:</div>
34
34
  <a-select
35
35
  v-model:value="sendUser"
36
- :show-search="true"
36
+ show-search
37
37
  mode="multiple"
38
38
  style="width: 85%;flex:3"
39
39
  :options="userList"
40
40
  size="small"
41
+ :filter-option="true"
41
42
  ></a-select>
42
43
  </div>
43
44
  </div>
@@ -55,7 +56,7 @@
55
56
  <a-icon style="font-size: 16px; cursor: pointer; margin: 5px 10px" type="paper-clip" />
56
57
  </a-upload>-->
57
58
  <div style="display: flex; justify-content: flex-end;margin-top:5px">
58
- <a-button @click="sendMsg">发送</a-button>
59
+ <a-button @click="sendMsg" :disabled="sendUser.length < 1 || remark ===''">发送</a-button>
59
60
  </div>
60
61
  </a-tab-pane>
61
62
  <a-tab-pane key="remark" tab="记录备注">
@@ -76,7 +77,7 @@
76
77
  />
77
78
  </a-upload>
78
79
  <div style="display: flex; justify-content: flex-end">
79
- <a-button @click="addMsgRemark">记录</a-button>
80
+ <a-button @click="addMsgRemark" :disabled="remark !==''">记录</a-button>
80
81
  </div>
81
82
  </a-tab-pane>
82
83
  </a-tabs>
@@ -173,7 +174,7 @@ import {
173
174
  export default {
174
175
  name: "LeaveAMessage",
175
176
  props: {
176
- orderNum:{
177
+ orderNum: {
177
178
  type: String
178
179
  },
179
180
  modalHeight: {
@@ -371,16 +372,28 @@ export default {
371
372
  getUserInfo() {
372
373
  userInfoSearchApi().then(res => {
373
374
  res.content.forEach(item => {
374
- this.userList.push({ value: item.id, label: item.name });
375
+ this.userList.push({
376
+ value: item.name,
377
+ label: item.name,
378
+ code: item.id
379
+ });
375
380
  });
376
381
  });
377
382
  console.log(this.userList);
378
383
  },
379
384
  sendMsg() {
385
+ 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
+ });
380
393
  let postData = {
381
394
  content: this.remark,
382
- receiver: this.sendUser.join(","),
383
- subject: this.orderNum,
395
+ receiver: tmp.join(","),
396
+ subject: this.subject,
384
397
  objectName: this.objectName,
385
398
  resId: this.resId
386
399
  };