doway-coms 1.6.34 → 1.6.35
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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<!-- style="overflow: auto" -->
|
|
4
4
|
<div class="list">
|
|
5
5
|
<a-list
|
|
6
|
+
v-if="remark.length > 0"
|
|
6
7
|
item-layout="horizontal"
|
|
7
8
|
:data-source="remarkData"
|
|
8
9
|
style="box-shadow: 3px 3px 6px #cad1d7"
|
|
@@ -16,6 +17,17 @@
|
|
|
16
17
|
}"
|
|
17
18
|
>
|
|
18
19
|
<template v-if="item.type !== 'date'">
|
|
20
|
+
<a-popconfirm
|
|
21
|
+
placement="topRight"
|
|
22
|
+
title="确认删除当前备注吗?"
|
|
23
|
+
ok-text="确认"
|
|
24
|
+
cancel-text="取消"
|
|
25
|
+
@confirm="delMsgRemark(item)"
|
|
26
|
+
>
|
|
27
|
+
<div v-show="userId === item.createUserId" class="close-icon">
|
|
28
|
+
<a-icon type="close" />
|
|
29
|
+
</div>
|
|
30
|
+
</a-popconfirm>
|
|
19
31
|
<a-comment :author="item.createUserName" :avatar="item.avatar">
|
|
20
32
|
<!-- <template slot="actions">
|
|
21
33
|
<span v-for="(action,index) in item.actions" :key="index">{{ action }}</span>
|
|
@@ -58,6 +70,7 @@
|
|
|
58
70
|
</template>
|
|
59
71
|
</a-list-item>
|
|
60
72
|
</a-list>
|
|
73
|
+
<div v-else></div>
|
|
61
74
|
</div>
|
|
62
75
|
<div class="input-box">
|
|
63
76
|
<!-- :auto-size="{ minRows: 2, maxRows: 2 }" -->
|
|
@@ -137,7 +150,7 @@ export default {
|
|
|
137
150
|
let viewDatas =
|
|
138
151
|
this.$store.getters.moduleViewInfo[this.$route.meta.moduleCode];
|
|
139
152
|
this.objectName = viewDatas.objectName;
|
|
140
|
-
|
|
153
|
+
this.userId = this.$store.getters.userId;
|
|
141
154
|
},
|
|
142
155
|
mounted() {
|
|
143
156
|
this.uploadHeaders.Authorization = `Bearer ${this.$store.getters.token}`;
|
|
@@ -149,6 +162,7 @@ export default {
|
|
|
149
162
|
},
|
|
150
163
|
data() {
|
|
151
164
|
return {
|
|
165
|
+
userId: null,
|
|
152
166
|
fileList: [],
|
|
153
167
|
remarkData: [],
|
|
154
168
|
uploadData: {
|
|
@@ -254,6 +268,13 @@ export default {
|
|
|
254
268
|
});
|
|
255
269
|
}
|
|
256
270
|
},
|
|
271
|
+
delMsgRemark(val) {
|
|
272
|
+
deleteObjectCommentApi({
|
|
273
|
+
keyIds: [val.id],
|
|
274
|
+
}).then((res) => {
|
|
275
|
+
this.getMsgRemarkData();
|
|
276
|
+
});
|
|
277
|
+
},
|
|
257
278
|
},
|
|
258
279
|
};
|
|
259
280
|
</script>
|
|
@@ -278,6 +299,12 @@ export default {
|
|
|
278
299
|
padding: 15px 15px;
|
|
279
300
|
height: 540px;
|
|
280
301
|
overflow: auto;
|
|
302
|
+
.close-icon {
|
|
303
|
+
position: absolute;
|
|
304
|
+
top: 30%;
|
|
305
|
+
right: 5%;
|
|
306
|
+
cursor: pointer;
|
|
307
|
+
}
|
|
281
308
|
}
|
|
282
309
|
/*滚动条整体部分*/
|
|
283
310
|
.list::-webkit-scrollbar {
|