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