doway-coms 1.6.55 → 1.6.56

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.55",
3
+ "version": "1.6.56",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -21,12 +21,12 @@
21
21
  <a-tabs default-active-key="msg">
22
22
  <a-tab-pane key="msg" tab="发送消息">
23
23
  <div style="display:flex">
24
- <div
24
+ <!-- <div
25
25
  style="display:flex;justify-content: center;align-items: center;margin-bottom:5px;flex:1"
26
26
  >
27
27
  <div style="flex:1">主题:</div>
28
28
  <a-input v-model:value="subject" style="flex:3" size="small"></a-input>
29
- </div>
29
+ </div> -->
30
30
  <div
31
31
  style="display:flex;justify-content: center;align-items: center;margin-bottom:5px;margin-left:5px;flex:1"
32
32
  >
@@ -80,7 +80,7 @@
80
80
  </a-tab-pane>
81
81
  </a-tabs>
82
82
  </div>
83
- <div class="list" :style="{ height: listHeight - 215 + 'px',maxHeight:listHeight - 215 + 'px' }">
83
+ <div class="list" :style="{ height: listHeight - 215 + 'px' }">
84
84
  <a-list
85
85
  v-if="remarkData.length > 0"
86
86
  item-layout="horizontal"
@@ -112,6 +112,11 @@
112
112
  <span v-for="(action,index) in item.actions" :key="index">{{ action }}</span>
113
113
  </template>-->
114
114
  <template slot="content">
115
+ <template v-if="item.receiver!==null">
116
+ <div style="display:flex;flex-wrap: wrap;">
117
+ <div v-for="(item,index) in item.atUser" :key="index" style="background-color:#eee;margin-right:3px">@{{item}}</div>
118
+ </div>
119
+ </template>
115
120
  <div style="margin-bottom: 5px">{{ item.body }}</div>
116
121
  <div
117
122
  v-if="item.objectCommentAttachDtos.length > 0"
@@ -218,8 +223,8 @@ export default {
218
223
  this.uploadData.resId = this.resId;
219
224
  this.internalServiceUrl = attachGetAttachUrlApi();
220
225
  this.uploadData.picAction = this.internalServiceUrl + "/UploadAttach";
221
- this.getMsgRemarkData();
222
226
  this.getUserInfo();
227
+ this.getMsgRemarkData();
223
228
  },
224
229
  data() {
225
230
  return {
@@ -291,6 +296,17 @@ export default {
291
296
  searchObjectCommentApi(postData).then(res => {
292
297
  let tmp = [];
293
298
  res.content.forEach(item => {
299
+
300
+ if (item.receiver !== null) {
301
+ item["atUser"] = [];
302
+ let atUser = item.receiver.split(",");
303
+ this.userList.forEach(uitem => {
304
+ if (atUser.indexOf(uitem.value) > -1) {
305
+ item.atUser.push(uitem.label);
306
+ }
307
+ });
308
+ }
309
+
294
310
  let flag = tmp.findIndex(titem => {
295
311
  return (
296
312
  titem.createTime ===
@@ -357,7 +373,7 @@ export default {
357
373
  let postData = {
358
374
  content: this.remark,
359
375
  receiver: this.sendUser.join(","),
360
- subject: this.subject,
376
+ subject: this.uploadData.resId,
361
377
  objectName: this.objectName,
362
378
  resId: this.resId
363
379
  };
@@ -382,8 +398,41 @@ export default {
382
398
  }
383
399
  ::v-deep(.ant-upload-list) {
384
400
  display: flex;
385
- flex-wrap: wrap;
401
+ overflow-x: auto;
402
+ margin-bottom: 10px;
403
+ // flex-wrap: wrap;
404
+ }
405
+ ::v-deep(.ant-upload-list::-webkit-scrollbar) {
406
+ width: 5px;
407
+ height: 5px;
408
+ z-index: 10;
409
+ }
410
+ ::v-deep(.ant-upload-list::-webkit-scrollbar-track) {
411
+ background-color: #ffffff;
412
+ z-index: 10;
413
+ }
414
+ /*滚动条里面的小方块,能向上向下移动*/
415
+ ::v-deep(.ant-upload-list::-webkit-scrollbar-thumb) {
416
+ background-color: #bfbfbf;
417
+ border-radius: 5px;
418
+ border: 1px solid #f1f1f1;
419
+ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
420
+ z-index: 10;
421
+ }
422
+ ::v-deep(.ant-upload-list::-webkit-scrollbar-thumb:hover) {
423
+ background-color: #a8a8a8;
424
+ z-index: 10;
386
425
  }
426
+ ::v-deep(.ant-upload-list::-webkit-scrollbar-thumb:active) {
427
+ background-color: #787878;
428
+ z-index: 10;
429
+ }
430
+ /*边角,即两个滚动条的交汇处*/
431
+ ::v-deep(.ant-upload-list::-webkit-scrollbar-corner) {
432
+ background-color: #ffffff;
433
+ z-index: 10;
434
+ }
435
+
387
436
  ::v-deep(.ant-list-item) {
388
437
  padding: 12px 10px;
389
438
  position: relative;
@@ -436,7 +485,7 @@ export default {
436
485
  .input-box {
437
486
  background-color: #fff;
438
487
  padding: 10px 10px 0;
439
- min-height: 210px;
488
+ min-height: 180px;
440
489
  // max-height: 210px;
441
490
  }
442
491
  .msg-content {