doway-coms 1.6.59 → 1.6.61

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.61",
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
+ topic: {
177
178
  type: String
178
179
  },
179
180
  modalHeight: {
@@ -248,7 +249,6 @@ export default {
248
249
  uploadHeaders: {
249
250
  Authorization: null
250
251
  },
251
- subject: "",
252
252
  sendUser: [],
253
253
  userList: [],
254
254
  remark: "",
@@ -371,16 +371,28 @@ export default {
371
371
  getUserInfo() {
372
372
  userInfoSearchApi().then(res => {
373
373
  res.content.forEach(item => {
374
- this.userList.push({ value: item.id, label: item.name });
374
+ this.userList.push({
375
+ value: item.name,
376
+ label: item.name,
377
+ code: item.id
378
+ });
375
379
  });
376
380
  });
377
381
  console.log(this.userList);
378
382
  },
379
383
  sendMsg() {
384
+ 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
+ });
380
392
  let postData = {
381
393
  content: this.remark,
382
- receiver: this.sendUser.join(","),
383
- subject: this.orderNum,
394
+ receiver: tmp.join(","),
395
+ subject: this.topic,
384
396
  objectName: this.objectName,
385
397
  resId: this.resId
386
398
  };